AaveV2FlashLoans
Inherits: Masks
Title: Aave V2 flash loan executor
Author: 1delta Labs AG
Functions
aaveV2FlashLoan
Executes Aave V2 flash loan
We allow ANY aave v2 style pool here
Note: calldata-offset-table:
| Offset | Length (bytes) | Description | |
|---|---|---|---|
| 0 | 20 | asset | |
| 20 | 20 | pool | <-- we allow ANY aave v2 style pool here |
| 40 | 16 | amount | |
| 56 | 2 | paramsLength | |
| 58 | paramsLength | params |
function aaveV2FlashLoan(uint256 currentOffset, address callerAddress) internal returns (uint256);
Parameters
| Name | Type | Description |
|---|---|---|
currentOffset |
uint256 |
Current position in the calldata |
callerAddress |
address |
Address of the caller |
Returns
| Name | Type | Description |
|---|---|---|
<none> |
uint256 |
Updated calldata offset after processing |