Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

IFlashMintDispatcherTrait

Fully qualified path: opus::interfaces::flash_mint::IFlashMintDispatcherTrait

Part of the group: dispatchers

pub trait IFlashMintDispatcherTrait<T>

Trait functions

flash_loan

Fully qualified path: opus::interfaces::flash_mint::IFlashMintDispatcherTrait::flash_loan

fn flash_loan(
    self: T,
    receiver: ContractAddress,
    token: ContractAddress,
    amount: u256,
    call_data: Span<felt252>,
) -> bool

max_flash_loan

Fully qualified path: opus::interfaces::flash_mint::IFlashMintDispatcherTrait::max_flash_loan

fn max_flash_loan(self: T, token: ContractAddress) -> u256

flash_fee

Fully qualified path: opus::interfaces::flash_mint::IFlashMintDispatcherTrait::flash_fee

fn flash_fee(self: T, token: ContractAddress, amount: u256) -> u256