IERC 3156 Flash Lender
Interface of the ERC3156 FlashLender, as defined in https://eips.ethereum.org/EIPS/eip-3156[ERC-3156]. Available since v4.1.
Methods
flashFee
The fee to be charged for a given loan.
Parameters
token
address
The loan currency.
amount
uint256
The amount of tokens lent.
Returns
_0
uint256
The amount of token
to be charged for the loan, on top of the returned principal.
flashLoan
Initiate a flash loan.
Parameters
receiver
contract IERC3156FlashBorrower
The receiver of the tokens in the loan, and the receiver of the callback.
token
address
The loan currency.
amount
uint256
The amount of tokens lent.
data
bytes
Arbitrary data structure, intended to contain user-defined parameters.
Returns
_0
bool
undefined
maxFlashLoan
The amount of currency available to be lended.
Parameters
token
address
The loan currency.
Returns
_0
uint256
The amount of token
that can be borrowed.
Last updated