Contract baeae60ea5758135bd21fcccc6ac29197d649fdd89f2a3a32b3bded71c838ab2

← Back to Index 📥 Download WASM

Meta

cliver 27.0.0#5a7c5fe76530bf4248477ac812fc757146b98cc4
rssdkver 27.0.0#e5cb4b52c3da8e56fc48adfd7b85d85976c1a059
rsver 1.93.0

Instances

  • CATYLNZ4PCHA7OXA7ETPX2FOO2IYWUJ2XPYWAOD44XII3BJ54N2TJAAH

Interface

fn execute(
    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>)

Execute against an owner-selected Blend pool and reserve. This keeps the legacy fixed-pool entrypoint intact while allowing one upgraded executor/receiver pair to serve multiple audited Blend pools.

fn execute_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,
    receiver: soroban_sdk::Address,
    asset: soroban_sdk::Address,
)

Imports

WebAssembly Text (WAT) ▶