Contract 1b24eb1b0743f8597a9ee778a0c13586ac8f9825dbacf0a5862d4f5f78ecb133

← Back to Index 📥 Download WASM

Meta

cliver 27.0.0#5a7c5fe76530bf4248477ac812fc757146b98cc4
rssdkver 27.0.0#e5cb4b52c3da8e56fc48adfd7b85d85976c1a059
rsver 1.93.0

Interface

fn exec_op(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    token: soroban_sdk::Address,
    amount: i128,
    fee: i128,
)
fn prepare(
    env: soroban_sdk::Env,
    amount: i128,
    repay_amount: i128,
    min_profit: i128,
    valid_until_ledger: u32,
    route: soroban_sdk::Vec<
        (
            u32,
            soroban_sdk::Address,
            soroban_sdk::Vec,
            soroban_sdk::BytesN<32>,
            soroban_sdk::Address,
        ),
    >,
)

Replace this contract's executable while preserving its address and instance storage. The new Wasm must already be uploaded to the ledger.

fn upgrade(env: soroban_sdk::Env, new_wasm_hash: soroban_sdk::BytesN<32>)

Prepare an owner-authorized flash loan from a selected Blend pool and reserve. The callback authenticates this exact pool and asset.

fn prepare_pool(
    env: soroban_sdk::Env,
    blend_pool: soroban_sdk::Address,
    asset: soroban_sdk::Address,
    amount: i128,
    repay_amount: i128,
    min_profit: i128,
    valid_until_ledger: u32,
    route: soroban_sdk::Vec<
        (
            u32,
            soroban_sdk::Address,
            soroban_sdk::Vec,
            soroban_sdk::BytesN<32>,
            soroban_sdk::Address,
        ),
    >,
)
fn __constructor(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
    blend_pool: soroban_sdk::Address,
    router: soroban_sdk::Address,
    asset: soroban_sdk::Address,
)

Imports

WebAssembly Text (WAT) ▶