Flash Loan Interface
The following is interface for a flash loan receiver contract.
abstract contract IFlashLoanReceiver {
function flashLoanCallback(
address token,
address user,
uint256 totalAmountDue
) external virtual {}
}
Within the flashLoanCallback function the totalAmountDue must be paid back to the calling smart contract through approvals.
Last updated