Skip to main content

IBatchFlashBorrower

Methods

onBatchFlashLoan

function onBatchFlashLoan(address sender, contract IERC20[] tokens, uint256[] amounts, uint256[] fees, bytes data) external nonpayable

The callback for batched flashloans. Every amount + fee needs to repayed to msg.sender before this call returns.

Parameters

NameTypeDescription
senderaddressThe address of the invoker of this flashloan.
tokenscontract IERC20[]Array of addresses for ERC-20 tokens that is loaned.
amountsuint256[]A one-to-one map to tokens that is loaned.
feesuint256[]A one-to-one map to tokens that needs to be paid on top for each loan. Needs to be the same token.
databytesAdditional data that was passed to the flashloan function.