DeFi Saver
Action that gets and receives a flash loan from the Maker protocol.
Inputs are not parsed as the FL action is always the first action and there are no return values before this action.
The flash loan fee and limit are set by the Maker Governance, they are liable to change in the future. Currently the fee is set at 0% and the loan limit is 0.5 * 1e9 DAI.
There is no token parameter as the protocol only supports DAI loans.


  • uint256 amount - Amount of DAI being flash loaned.
  • address flParamGetterAddr - Address of an on chain contract that can change (amount, token) while calling the action. If it's an empty address it will not be called.
  • bytes flParamGetterData - Data that will be supplied to flParamGetter contract.
  • {} - An extra empty parameter (explained why it's needed in the Flash loans section).
The return value of this action is amount + fee.
Last modified 1mo ago
Copy link