Contract c040c4bf9bfc86c543dafe6288c24ce8ccbe93fe3dc3c786ccaffb8c6ebcc60d

← Back to Index 📥 Download WASM

Meta

rssdkver 27.0.5#ea54f95d3f2f49e0487b29fd1a9f469638f09aba
rsver 1.95.0

Instances

  • CBNI2QR4LBM7GLLKSYOIASACBRSKNDMLDZAGUOTBBHMCAPCZH5HSHPXP

Interface

Withdraw accumulated fees. Admin only.

fn withdraw(
    env: soroban_sdk::Env,
    token: soroban_sdk::Address,
    amount: i128,
    to: soroban_sdk::Address,
) -> Result<(), FeeVaultError>

Get the admin address.

fn get_admin(env: soroban_sdk::Env) -> Result

Transfer admin to a new address. Admin only.

fn set_admin(
    env: soroban_sdk::Env,
    new_admin: soroban_sdk::Address,
) -> Result<(), FeeVaultError>

Query the fee balance for a given token — the actual token balance held by this contract.

fn get_balance(env: soroban_sdk::Env, token: soroban_sdk::Address) -> i128

Deploy-time constructor — atomic with deployment, cannot be front-run.

fn __constructor(env: soroban_sdk::Env, admin: soroban_sdk::Address)

Imports

WebAssembly Text (WAT) ▶