Function prepareFlashLoanEnd
- prepareFlashLoanEnd(
pool: Pool,
userAddr: string,
reserveAddr: string,
repaymentAmount: number | bigint,
params: SuggestedParams,
): 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[]
Transaction[] flash loan end group transaction
- pool: Pool
Returns a group transaction to end flash loan. Must be groped together with flash_loan_begin call.