Contract 66ef2e49157eebe509bf949afd3014bd3bf135cdb29ea8f0f483b7c41f67d836

← Back to Index 📥 Download WASM

Meta

rssdkver 23.2.1#ab415a33cc1f6bdce20ac4a12f0ddbe41a648949
rsver 1.92.0

Instances

  • CBLJQYGMZPCBYPOBUBAADU2U4ZCXRDUYSEZAQ2HGDTMMHMG6QMVVLNZ2

Interface

fn admin(env: soroban_sdk::Env) -> soroban_sdk::Address

Aggregate multiple contract calls in a single tx, taking affiliate fees up front.

Auth model: the user signs the outer tx as the source account. Soroban's source-account auth covers user.require_auth() calls in any sub-frame rooted at this tx, so targets like Aquarius can do user.require_auth()

  • token.transfer(user, …) without the router holding or approving funds. The router never custodies user funds — it only orchestrates and bills fees.
fn execute(
    env: soroban_sdk::Env,
    user: soroban_sdk::Address,
    input_token: soroban_sdk::Address,
    input_amount: u128,
    instructions: soroban_sdk::Vec,
    affiliate_fees: soroban_sdk::Vec,
) -> u128
fn set_admin(env: soroban_sdk::Env, new_admin: soroban_sdk::Address)
fn __constructor(env: soroban_sdk::Env, admin: soroban_sdk::Address)
fn is_whitelisted(env: soroban_sdk::Env, target: soroban_sdk::Address) -> bool
fn add_to_whitelist(env: soroban_sdk::Env, target: soroban_sdk::Address)
fn remove_from_whitelist(env: soroban_sdk::Env, target: soroban_sdk::Address)

Imports

WebAssembly Text (WAT) ▶