UniversalFlashLoan
Inherits: MorphoFlashLoans, AaveV3FlashLoans, AaveV2FlashLoans, BalancerV2FlashLoans, FlashLoanCallbacks
Title: Flash loan aggregator
Author: 1delta Labs AG
Functions
_universalFlashLoan
Executes flash loan operations for all supported providers
Routes to appropriate flash loan provider based on flash loan type
Note: calldata-offset-table:
| Offset | Length (bytes) | Description |
|---|---|---|
| 0 | 1 | flashLoanType |
| 1 | Variable | flashLoanParams |
function _universalFlashLoan(uint256 currentOffset, address callerAddress) internal virtual returns (uint256);
Parameters
| Name | Type | Description |
|---|---|---|
currentOffset |
uint256 |
Current position in the calldata |
callerAddress |
address |
Address of the original caller |
Returns
| Name | Type | Description |
|---|---|---|
<none> |
uint256 |
Updated calldata offset after processing |