Function prepareFlashLoanEnd

  • Returns a group transaction to end flash loan. Must be groped together with flash_loan_begin call.

    Returns

    Transaction[] flash loan end group transaction

    Parameters

    • pool: Pool

      pool borrowed from

    • userAddr: string

      account address for the user

    • reserveAddr: string

      account address to receive the protocol revenue from the flash loan fee

    • repaymentAmount: number | bigint

      the amount of the asset to repay (borrow amount plus flash loan fee)

    • params: SuggestedParams

      suggested params for the transactions with the fees overwritten

    Returns Transaction[]

Generated using TypeDoc