Contract 520fc09a2fe6f9371bb5634b3f09f7ac1cbfc95a5d7cbc2822e92a4c421c2851

← Back to Index 📥 Download WASM

Meta

rssdkver 22.0.7#211569aa49c8d896877dfca1f2eb4fe9071121c8
rsver 1.86.0

Instances

  • CCXJGQ7ZDQYEAEE5ZG7KZSLFG4TBFFQM5E5OFM7NURTL45P2RELDIOGO

Interface

fn initialize(env: soroban_sdk::Env, owner: soroban_sdk::Address)

Execute a pre‑built route returned by the off‑chain path‑finder.

  • actions ‑ serialized route description (see Action)
  • max_amount ‑ cap on input the router may deploy
  • min_profit ‑ minimum acceptable profit (slippage guard)

The caller must be the owner and signs one authorization that covers the tuple (actions, max_amount, min_profit).

fn execute(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    actions: soroban_sdk::Vec,
    max_amount: u128,
    min_profit: u128,
) -> u128
fn withdraw(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    token: soroban_sdk::Address,
    to: soroban_sdk::Address,
    amount: u128,
)
fn __check_auth(
    env: soroban_sdk::Env,
    _payload: soroban_sdk::BytesN<32>,
    _sigs: soroban_sdk::Vec,
    _invocs: soroban_sdk::Vec,
) -> bool

Imports

WebAssembly Text (WAT) ▶