msg.senderwho calls the Flash Loans function.
IFlashloanReceiverinterface by implementing
executeOperationfunction as the example below.
flashLoan(address receiver, uint amount, bytes calldata params)on supported crTokens(Lending, IronBank), 3 parameters are required.
receiver: The Flash Loan contract address you deployed.
amount: Keep in mind that the decimal of amount is dependent on crToken's underlying asset.
params: encoded parameter for
executeOperationfunction by using the built-in
doFlashloan(address cToken, uint256 borrowAmount)of the above example.