Contract 50ba6d6f5def622b2279562b8e026607a6f5ca78c494d05bed7c64f0a9f8d5db

← Back to Index 📥 Download WASM

Meta

cliver 25.2.0#28484880988199233a7e8e87c97cb12dac323cb3
rssdkver 22.0.11#34f7f53ae31e0fd02aab436a9872e79fa671ca02
rsver 1.94.1

Instances

  • CCELO3DO3AWKUKRVI53BYXXVUMZXZTZSFUO2Y66SIHQXGLRCVBOWQAIP

Interface

Upgrades the current contract to a new WASM hash.

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

Withdraws tokens from the treasury to a target address.

fn withdraw(
    env: soroban_sdk::Env,
    token_address: soroban_sdk::Address,
    to: soroban_sdk::Address,
    amount: i128,
)

Initializes the treasury and stores the initial fee split.

fn initialize(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    dao_fee_bps: u32,
    referral_bps: u32,
)

Returns the DAO fee in basis points.

fn get_dao_fee_bps(env: soroban_sdk::Env) -> u32

Updates the DAO share of the total fee split.

fn set_dao_fee_bps(env: soroban_sdk::Env, value: u32)

Returns the referral fee in basis points.

fn get_referral_bps(env: soroban_sdk::Env) -> u32

Updates the referral share of the fee split.

fn set_referral_bps(env: soroban_sdk::Env, value: u32)

Imports

WebAssembly Text (WAT) ▶