MoolahFlashLoanCallback
Inherits: Masks, DeltaErrors
Title: All Moolah flash callbacks
State Variables
LISTA_DAO
Constant Moolah address
address private constant LISTA_DAO = 0xf820fB4680712CD7263a0D3D024D5b5aEA82Fd70
Functions
onMoolahFlashLoan
Moolah callbacks
Handles Moolah flash loan callback
function onMoolahFlashLoan(uint256, bytes calldata) external;
onMoolahSupply
Handles Moolah supply callback
function onMoolahSupply(uint256, bytes calldata) external;
onMoolahRepay
Handles Moolah repay callback
function onMoolahRepay(uint256, bytes calldata) external;
onMoolahSupplyCollateral
Handles Moolah supply collateral callback
function onMoolahSupplyCollateral(uint256, bytes calldata) external;
_onMoolahCallback
Internal callback handler for all Moolah operations
Moolah flash loans are callbacks to msg.sender. Since it is universal batching and the same validation for all Moolah callbacks, we can use the same logic everywhere
Note: calldata-offset-table:
| Offset | Length (bytes) | Description |
|---|---|---|
| 0 | 20 | origCaller |
| 20 | 1 | poolId |
| 21 | Variable | composeOperations |
function _onMoolahCallback() internal;
_deltaComposeInternal
Internal function to execute compose operations
Override point for flash loan callbacks to execute compose operations
function _deltaComposeInternal(address callerAddress, uint256 offset, uint256 length) internal virtual;
Parameters
| Name | Type | Description |
|---|---|---|
callerAddress |
address |
Address of the original caller |
offset |
uint256 |
Current calldata offset |
length |
uint256 |
Length of remaining calldata |