Function prepareFlashLoanBegin

  • Returns a transaction to begin flash loan Must be groped together with flash_loan_end call.

    Returns

    Transaction flash loan begin transaction

    Parameters

    • pool: Pool

      pool to borrow from

    • userAddr: string

      account address for the user

    • receiverAddr: string

      account address to receive the loan

    • borrowAmount: number | bigint

      the amount of the asset to borrow

    • txnIndexForFlashLoanEnd: number

      transaction index in the group transaction for the flash_loan_end call.

    • params: SuggestedParams

      suggested params for the transactions with the fees overwritten

    Returns Transaction

Generated using TypeDoc