Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

IFlashMintSafeDispatcherTrait

Fully qualified path: opus::interfaces::flash_mint::IFlashMintSafeDispatcherTrait

Part of the group: dispatchers

pub trait IFlashMintSafeDispatcherTrait<T>

Trait functions

flash_loan

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

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

max_flash_loan

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

fn max_flash_loan(self: T, token: ContractAddress) -> Result<u256, Array<felt252>>

flash_fee

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

fn flash_fee(self: T, token: ContractAddress, amount: u256) -> Result<u256, Array<felt252>>