IFlashLoanModule
Inherits: IMorphoFlashLoanCallback
Functions
requestFlashLoan
Requests a flash loan.
function requestFlashLoan(FlashLoanRequest calldata request) external;Parameters
| Name | Type | Description |
|---|---|---|
| request | FlashLoanRequest | The request for the flash loan. |
Structs
FlashLoanRequest
Generic flash loan params.
struct FlashLoanRequest {
address taker;
FlashLoanProvider provider;
IWeirollComponent.Instruction instruction;
address token;
uint256 amount;
}Properties
| Name | Type | Description |
|---|---|---|
| taker | address | The address of the contract that will receive the flash loan. |
| provider | FlashLoanProvider | The provider of the flash loan. |
| instruction | IWeirollComponent.Instruction | The instruction to execute. |
| token | address | The token to borrow. |
| amount | uint256 | The amount to borrow. |
Enums
FlashLoanProvider
The enum for the flash loan providers.
Deprecated entries are intentionally preserved to maintain stable enum indexing and avoid breaking compatibility with Makina integrations.
enum FlashLoanProvider {
DEPRECATED_0,
DEPRECATED_1,
DEPRECATED_2,
MORPHO,
DEPRECATED_3
}Variants
| Name | Description |
|---|---|
| DEPRECATED_0 | |
| DEPRECATED_1 | |
| DEPRECATED_2 | |
| MORPHO | |
| DEPRECATED_3 |