Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

IFlashMint

Fully qualified path: opus::interfaces::flash_mint::IFlashMint

pub trait IFlashMint<TContractState>

Trait functions

flash_loan

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

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

max_flash_loan

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

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

flash_fee

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

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