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)