Contract 2eeeba73daa2dfb243ef73ae69a2535bd90cf5b07b2788d6a7676838c12eb734

← Back to Index 📥 Download WASM

Meta

cliver 26.1.0#1228cff8022b804659750b94b315932b0e0f3f6a
rssdkver 25.3.1#e50d95af029c83196dd122f0154bac3f1302394b
rsver 1.96.0

Instances

  • CD2HWOVQFUABQEMEI3X4AT2GJUWRRYYBT76O3NWJY5BHCJ3MOLZA35VC

Interface

fn deposit(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    asset_value: u128,
    min_usst_receive: Option,
) -> u32

Explicit upgrade, using registry’s AccessControl for UPGRADER_ROLE

fn upgrade(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    new_wasm_hash: soroban_sdk::BytesN<32>,
)
fn version(env: soroban_sdk::Env) -> u64
fn has_role(
    env: soroban_sdk::Env,
    account: soroban_sdk::Address,
    role: soroban_sdk::String,
) -> bool

withdraw(tokenId) – user withdraw for themselves

fn withdraw(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    token_id: u32,
    min_asset_receive: Option,
)
fn grant_role(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    account: soroban_sdk::Address,
    role: soroban_sdk::String,
) -> bool
fn deposit_for(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    asset_value: u128,
    yld_receiver: soroban_sdk::Address,
    min_usst_receive: Option,
) -> u32
fn revoke_role(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    account: soroban_sdk::Address,
    role: soroban_sdk::String,
) -> bool
fn __constructor(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    registry: soroban_sdk::Address,
    asset_id: u64,
)
fn renounce_role(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    account: soroban_sdk::Address,
    role: soroban_sdk::String,
) -> bool
fn withdraw_fees(env: soroban_sdk::Env, caller: soroban_sdk::Address)
fn fetch_asset_id(env: soroban_sdk::Env) -> u64
fn fetch_registry(env: soroban_sdk::Env) -> soroban_sdk::Address
fn get_role_admin(
    env: soroban_sdk::Env,
    role: soroban_sdk::String,
) -> soroban_sdk::String
fn modify_staking(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    token_ids: soroban_sdk::Vec,
    stakes: soroban_sdk::Vec,
    flags: soroban_sdk::Vec,
)
fn distribute_yield(env: soroban_sdk::Env, caller: soroban_sdk::Address)
fn fetch_vault_data(env: soroban_sdk::Env) -> VaultStruct
fn update_role_admin(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    role: soroban_sdk::String,
    new_admin: soroban_sdk::String,
) -> bool
fn emergency_withdraw(env: soroban_sdk::Env, caller: soroban_sdk::Address)
fn calculate_price_differentiation(env: soroban_sdk::Env) -> u128

Imports

WebAssembly Text (WAT) ▶