IERC 3156 Flash Lender Upgradeable
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
Name | Type | Description |
---|---|---|
token | address | The loan currency. |
amount | uint256 | The amount of tokens lent. |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | The amount of |
flashLoan
Initiate a flash loan.
Parameters
Name | Type | Description |
---|---|---|
receiver | contract IERC3156FlashBorrowerUpgradeable | 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
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
maxFlashLoan
The amount of currency available to be lended.
Parameters
Name | Type | Description |
---|---|---|
token | address | The loan currency. |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | The amount of |
Last updated