FLAction
Last updated
// @param tokens Array of tokens being flash loaned
// @param amounts Array of amounts being flash loaned
// @param modes Modes we want to flash loan (repay debt or incur debt, only 0 debt type is supported).
// @param onBehalfOf If we are not repaying the flash loan what address will incur the debt (can be empty if we are just repaying the loan)
// @param 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. Not used in this implementation.
// @param flParamGetterData Used to choose between FL providers
// @param recipeData Recipe data for post fl execution inside recipe
struct FlashLoanParams {
address[] tokens;
uint256[] amounts;
uint256[] modes;
address onBehalfOf;
address flParamGetterAddr;
bytes flParamGetterData;
bytes recipeData;
}return bytes32(amount);emit ActionEvent("FLAction", abi.encode("<FL_PROVIDER_NAME>", flParams);