Contract b0b5b4223a34d6d323b56531dee6d530ab1bf7c4023d978396952cb15cd2beda

← Back to Index 📥 Download WASM

Meta

rssdkver 23.2.1#ab415a33cc1f6bdce20ac4a12f0ddbe41a648949
rsver 1.92.0

Instances

  • CBSYFFHXWXDRSOVXA4QFWFMNNCGQAND23LTZTXZP7YHUYGJKPDEIVFRH

Interface

Current admin.

fn admin(env: soroban_sdk::Env) -> soroban_sdk::Address

Permissionless instance-TTL keep-alive (mirrors the router).

fn bump_ttl(env: soroban_sdk::Env)

Admin-gated withdraw of amount of token to to. The collector holds tokens as a Soroban C-address SAC balance, so no trustline is ever needed on this contract regardless of asset type.

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

Admin-gated rotation. New admin takes over immediately.

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

One-shot init. Sets the admin who can withdraw and rotate.

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

Admin-gated batched withdraw. Each item is (token, amount, to). Single admin.require_auth() covers the whole batch — the admin signs once, and Soroban host atomicity ensures the entire batch either commits or reverts together. Useful for sweeping many accumulated assets to many destinations in one tx.

fn withdraw_batch(
    env: soroban_sdk::Env,
    items: soroban_sdk::Vec<(soroban_sdk::Address, i128, soroban_sdk::Address)>,
)

Imports

WebAssembly Text (WAT) ▶