IERC 3156 Flash Borrower Upgradeable
Interface of the ERC3156 FlashBorrower, as defined in https://eips.ethereum.org/EIPS/eip-3156[ERC-3156]. Available since v4.1.
Methods
onFlashLoan
Receive a flash loan.
Parameters
Name
Type
Description
initiator
address
The initiator of the loan.
token
address
The loan currency.
amount
uint256
The amount of tokens lent.
fee
uint256
The additional amount of tokens to repay.
data
bytes
Arbitrary data structure, intended to contain user-defined parameters.
Returns
Name
Type
Description
_0
bytes32
The keccak256 hash of "ERC3156FlashBorrower.onFlashLoan"
Last updated