Contract 1ba5ead911678bf453d2ac298b9df0bfec7d66af66eb7db3ab1086ee1907d226

← Back to Index 📥 Download WASM

Meta

cliver 26.0.0#60f7458e7ecffddf2f2d91dc6d0d2db4fab03ecc
rssdk_spec_shaking 2
rssdkver 25.3.1#e50d95af029c83196dd122f0154bac3f1302394b
rsver 1.93.0-nightly

Instances

  • CCB4CMWG7V4RU7UP6PYYCSPOXH43OX4FYUL4XJFE6XIQUC6COLFZETG3

Interface

Current admin, or None if ownership was renounced.

fn get_admin(env: soroban_sdk::Env) -> Option

Read-only quote for one leg (no auth, no transfers). data is the 32-byte Aquarius pool_index, as in execute_leg.

fn quote_leg(
    env: soroban_sdk::Env,
    token_in: soroban_sdk::Address,
    token_out: soroban_sdk::Address,
    amount_in: i128,
    data: soroban_sdk::Bytes,
) -> i128

The Batching Router allowed to drive this adapter.

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

Re-point the adapter at a new Router. Admin-only; evented.

fn set_router(env: soroban_sdk::Env, router: soroban_sdk::Address)

Execute one swap leg through the wrapped Aquarius pool. Router-only.

Precondition: the caller (Batching Router) has already transferred amount_in of token_in to this adapter. The resulting token_out is sent to recipient. min_out is a per-leg floor (the Batching Router passes 0 and enforces the overall minimum itself). data is the 32-byte Aquarius pool_index selecting one pool of the pair's set.

fn execute_leg(
    env: soroban_sdk::Env,
    recipient: soroban_sdk::Address,
    token_in: soroban_sdk::Address,
    token_out: soroban_sdk::Address,
    amount_in: i128,
    min_out: i128,
    data: soroban_sdk::Bytes,
) -> i128

Accept a pending admin transfer (proposed admin's auth required).

fn accept_admin(env: soroban_sdk::Env)

Deploy-time setup (atomic with deployment). admin owns the adapter (can re-point the venue and the router); aqua_router is the Aquarius AMM Router this adapter wraps; router is the only caller allowed to drive this adapter's fund-moving entry points.

fn __constructor(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    aqua_router: soroban_sdk::Address,
    router: soroban_sdk::Address,
)

Begin a two-step admin transfer. live_until_ledger = 0 cancels.

fn propose_admin(
    env: soroban_sdk::Env,
    new_admin: soroban_sdk::Address,
    live_until_ledger: u32,
)

The Aquarius AMM Router this adapter wraps.

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

Re-point the adapter at a new aqua router (Aquarius upgrades in place, but a registry move stays survivable). Admin-only; evented.

fn set_aqua_router(env: soroban_sdk::Env, aqua_router: soroban_sdk::Address)

Imports

WebAssembly Text (WAT) ▶