Only the owner may initialize
fn initialize(env: soroban_sdk::Env, owner: soroban_sdk::Address)
Execute a chain of swaps across different AMMs
fn execute(
env: soroban_sdk::Env,
caller: soroban_sdk::Address,
actions: soroban_sdk::Vec>,
max_amount: u128,
min_profit: u128,
) -> u128
Owner‐only withdraw
fn withdraw(
env: soroban_sdk::Env,
caller: soroban_sdk::Address,
token: soroban_sdk::Address,
to: soroban_sdk::Address,
amount: u128,
)
This is the actual entrypoint Soroban will call when
me.require_auth() runs. It must live inside
#[contractimpl] so the host can find it.
fn __check_auth(
env: soroban_sdk::Env,
_payload: soroban_sdk::BytesN<32>,
_sigs: soroban_sdk::Vec,
_ctxs: soroban_sdk::Vec,
) -> bool