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)