saddle.finance
Search…
How to Flash-loan Assets from Saddle
Some of our pools allow flash-loaning assets for a small fee.
1
function flashLoan(
2
address receiver,
3
IERC20 token,
4
uint256 amount,
5
bytes memory params
6
) external;
Copied!
Caller must provide a valid receiver address that inherits IFlashLoanReceiver interface.
1
function executeOperation(
2
address pool,
3
address token,
4
uint256 amount,
5
uint256 fee,
6
bytes calldata params
7
) external;
Copied!
Upon finishing 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.

Flash-loan Supported Pools

    vETH2 pool (0xdec2157831D6ABC3Ec328291119cc91B337272b5)
    alETH pool (0xa6018520EAACC06C30fF2e1B3ee2c7c22e64196a)
    D4 pool (0xC69DDcd4DFeF25D8a793241834d4cc4b3668EAD6)
Last modified 8d ago