Some of our pools allow flash-loaning assets for a small fee.
function flashLoan(address receiver,IERC20 token,uint256 amount,bytes memory params) external;
Caller must provide a valid receiver address that inherits IFlashLoanReceiver interface.
function executeOperation(address pool,address token,uint256 amount,uint256 fee,bytes calldata params) external;
executeOperation, the pool must have the initial liquidity back along with the associated fee. If the requirement is not met, then the transaction will fail.
We provide a basic example of a flashloan borrower contract.
vETH2 pool (
alETH pool (
D4 pool (