Flash Loans
Overview
/**
* @notice Flash loan funds to a given account.
* @param receiver The receiver address for the funds
* @param token The loan currency. Must match the address of this contract's underlying.
* @param amount The amount of the funds to be loaned
* @param data The other data
* @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
*/
function flashLoan(
ERC3156FlashBorrowerInterface receiver,
address token,
uint256 amount,
bytes calldata data
) external returns (bool);Step by step guide
Last updated