Contract 6ba93bf4a5b385b6d0846e2679a53b6627c678492165b006afcae06cd57b8820

← Back to Index 📥 Download WASM

Meta

rssdkver 22.0.11#34f7f53ae31e0fd02aab436a9872e79fa671ca02
rsver 1.93.0

Instances

  • CBTJX4LODQ6RGR62RRZZSHPPFLKN23MAYQM43NWJMBACYUKMGPPLD2S3

Interface

On the patched WASM, balance(from) returns the user's strategy-share count directly (NOT asset-equivalent USD value). Backend's PositionSyncService is updated to handle AQUARIUS pools by deriving asset value externally from pool reserves + total LP shares + the strategy's LP holdings — keeps the on-chain function tiny.

fn balance(env: soroban_sdk::Env, from: soroban_sdk::Address) -> i128
fn initialize(
    env: soroban_sdk::Env,
    registry: soroban_sdk::Address,
    asset: soroban_sdk::Address,
    paired_asset: soroban_sdk::Address,
    router: soroban_sdk::Address,
    pool: soroban_sdk::Address,
    pool_index: soroban_sdk::BytesN<32>,
)
fn share_balance(env: soroban_sdk::Env, from: soroban_sdk::Address) -> i128

Phase 1 of the split deposit. See lifecycle docs above.

fn deposit_phase1(
    env: soroban_sdk::Env,
    amount: i128,
    from: soroban_sdk::Address,
) -> u128

Phase 2 of the split deposit. See lifecycle docs above.

fn deposit_phase2(env: soroban_sdk::Env, from: soroban_sdk::Address) -> i128

Phase 1 of the split withdraw. See lifecycle docs above.

fn withdraw_phase1(
    env: soroban_sdk::Env,
    amount: i128,
    from: soroban_sdk::Address,
    to: soroban_sdk::Address,
) -> (i128, i128)

Phase 2 of the split withdraw. See lifecycle docs above.

fn withdraw_phase2(env: soroban_sdk::Env, from: soroban_sdk::Address) -> i128

Imports

WebAssembly Text (WAT) ▶