Contract 214c7cbad25f58ab91898c37d7da952c7a749fd3155e6e64cd80bdbf0b46422e

← Back to Index 📥 Download WASM

Meta

binver 2.0.0
rssdkver 25.3.1#e50d95af029c83196dd122f0154bac3f1302394b
rsver 1.93.0

Instances

  • CBHHRFGQ5DWYPV2VREW6RNLWEAHS47VNW4MJHQNYKTYIB3MOAOYXVR2P
  • CBSGRFVJHV4GBZXJGFYEIQ53VUAZPHEK5E7BD6VZRFSAERWRAXDSGQCX

Interface

MANDATORY: CoreTX upgrade pattern

fn upgrade(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    new_wasm_hash: soroban_sdk::BytesN<32>,
)

MANDATORY: CoreTX admin transfer

fn set_admin(
    env: soroban_sdk::Env,
    current_admin: soroban_sdk::Address,
    new_admin: soroban_sdk::Address,
)

MANDATORY: Public TTL extend function

fn extend_ttl(env: soroban_sdk::Env)

Get the current configuration

fn get_config(env: soroban_sdk::Env) -> Config

Initialize the router with admin and routing destinations.

fn initialize(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    vault: soroban_sdk::Address,
    treasury: soroban_sdk::Address,
    bribe_fund: soroban_sdk::Address,
    ice_lock: soroban_sdk::Address,
)

Sweep and route all accumulated yield for a specific token Anyone can call this function to process the yields.

fn route_yield(env: soroban_sdk::Env, token: soroban_sdk::Address)

Update routing destinations

fn update_config(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    vault: soroban_sdk::Address,
    treasury: soroban_sdk::Address,
    bribe_fund: soroban_sdk::Address,
    ice_lock: soroban_sdk::Address,
)

Imports

WebAssembly Text (WAT) ▶