Skip to content
LogoLogo

IFlashLoanModule

Git Source

Inherits: IMorphoFlashLoanCallback

Functions

requestFlashLoan

Requests a flash loan.

function requestFlashLoan(FlashLoanRequest calldata request) external;

Parameters

NameTypeDescription
requestFlashLoanRequestThe 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

NameTypeDescription
takeraddressThe address of the contract that will receive the flash loan.
providerFlashLoanProviderThe provider of the flash loan.
instructionIWeirollComponent.InstructionThe instruction to execute.
tokenaddressThe token to borrow.
amountuint256The 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

NameDescription
DEPRECATED_0
DEPRECATED_1
DEPRECATED_2
MORPHO
DEPRECATED_3