Contract 5168fed569fc2ec1a8337b5bb5ea2b2498621e0cc4aa9acd31a27958017145c7

← Back to Index 📥 Download WASM

Meta

cliver 27.0.0#5a7c5fe76530bf4248477ac812fc757146b98cc4
rssdkver 26.1.1#8ac18efb681a1c0b4b85a38c5a380300344e3f39
rsver 1.93.0

Instances

  • CB4KWCP7NTJ67PDRYHCYVUWWEF4TW5GZVTX4W52YANZLLJSJUZQX3ANT

Interface

fn renew(
    env: soroban_sdk::Env,
    payer: soroban_sdk::Address,
    recipient: soroban_sdk::Address,
    swaps_chain_to_usdc: soroban_sdk::Vec<
        (
            soroban_sdk::Vec,
            soroban_sdk::BytesN<32>,
            soroban_sdk::Address,
        ),
    >,
    swaps_chain_to_ustry: soroban_sdk::Vec<
        (
            soroban_sdk::Vec,
            soroban_sdk::BytesN<32>,
            soroban_sdk::Address,
        ),
    >,
    token_in: soroban_sdk::Address,
    node: soroban_sdk::BytesN<32>,
    duration_years: u32,
    max_amount_in: i128,
    min_ustry_out: i128,
)
fn upgrade(env: soroban_sdk::Env, new_wasm_hash: soroban_sdk::BytesN<32>)
fn register(
    env: soroban_sdk::Env,
    payer: soroban_sdk::Address,
    recipient: soroban_sdk::Address,
    swaps_chain_to_usdc: soroban_sdk::Vec<
        (
            soroban_sdk::Vec,
            soroban_sdk::BytesN<32>,
            soroban_sdk::Address,
        ),
    >,
    swaps_chain_to_ustry: soroban_sdk::Vec<
        (
            soroban_sdk::Vec,
            soroban_sdk::BytesN<32>,
            soroban_sdk::Address,
        ),
    >,
    token_in: soroban_sdk::Address,
    domain: soroban_sdk::String,
    tld: soroban_sdk::String,
    duration_years: u32,
    max_amount_in: i128,
    min_ustry_out: i128,
) -> soroban_sdk::BytesN<32>
fn extend_ttl(env: soroban_sdk::Env)
fn get_keeper(env: soroban_sdk::Env) -> Option
fn initialize(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    registry: soroban_sdk::Address,
    vault: soroban_sdk::Address,
    aquarius: soroban_sdk::Address,
    usdc_token: soroban_sdk::Address,
    ustry_token: soroban_sdk::Address,
)
fn set_keeper(env: soroban_sdk::Env, keeper: soroban_sdk::Address)
fn get_operator(env: soroban_sdk::Env) -> soroban_sdk::Address
fn set_operator(env: soroban_sdk::Env, operator: soroban_sdk::Address)
fn set_xld_token(env: soroban_sdk::Env, xld_token: soroban_sdk::Address)
fn public_deposit(
    env: soroban_sdk::Env,
    payer: soroban_sdk::Address,
    recipient: soroban_sdk::Address,
    swaps_chain: soroban_sdk::Vec<
        (
            soroban_sdk::Vec,
            soroban_sdk::BytesN<32>,
            soroban_sdk::Address,
        ),
    >,
    token_in: soroban_sdk::Address,
    amount_in: i128,
    min_amount_out: i128,
)

Atomic Same-Token Closed-Loop Keeper Mint & Sell (token_in -> Vault::public_deposit_for -> XLD -> Aquarius -> token_in). Strictly restricted to Admin or Authorized Keeper (DataKey::Keeper). Reverts the entire transaction if final_out < amount_in + min_profit.

fn arb_mint_and_sell(
    env: soroban_sdk::Env,
    keeper: soroban_sdk::Address,
    token_in: soroban_sdk::Address,
    xld_token: soroban_sdk::Address,
    amount_in: i128,
    swaps_to_ustry: soroban_sdk::Vec<
        (
            soroban_sdk::Vec,
            soroban_sdk::BytesN<32>,
            soroban_sdk::Address,
        ),
    >,
    swaps_xld_to_token_in: soroban_sdk::Vec<
        (
            soroban_sdk::Vec,
            soroban_sdk::BytesN<32>,
            soroban_sdk::Address,
        ),
    >,
    min_profit: i128,
) -> i128

Atomic single-invocation XLD redemption + Aquarius swap (XLD -> Vault::withdraw -> USTRY -> Aquarius -> token_out). Eliminates two-transaction sandwich risk for user and Keeper redemptions.

fn withdraw_and_swap(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    recipient: soroban_sdk::Address,
    xld_token: soroban_sdk::Address,
    xld_shares: i128,
    swaps_chain_from_ustry: soroban_sdk::Vec<
        (
            soroban_sdk::Vec,
            soroban_sdk::BytesN<32>,
            soroban_sdk::Address,
        ),
    >,
    min_token_out: i128,
) -> i128

Atomic Same-Token Closed-Loop Keeper Buy & Redeem (token_in -> Aquarius -> XLD -> Vault::withdraw -> USTRY -> token_in). Strictly restricted to Admin or Authorized Keeper (DataKey::Keeper). Reverts the entire transaction if final_out < amount_in + min_profit.

fn arb_buy_and_redeem(
    env: soroban_sdk::Env,
    keeper: soroban_sdk::Address,
    token_in: soroban_sdk::Address,
    xld_token: soroban_sdk::Address,
    amount_in: i128,
    swaps_to_xld: soroban_sdk::Vec<
        (
            soroban_sdk::Vec,
            soroban_sdk::BytesN<32>,
            soroban_sdk::Address,
        ),
    >,
    swaps_ustry_to_token_in: soroban_sdk::Vec<
        (
            soroban_sdk::Vec,
            soroban_sdk::BytesN<32>,
            soroban_sdk::Address,
        ),
    >,
    min_profit: i128,
) -> i128

Imports

WebAssembly Text (WAT) ▶