Contract 7907c6338e67c2f9ceae6f2367cfa1d4d8e0096adb06d35c3da885763d341a77

← Back to Index 📥 Download WASM

Meta

rssdkver 23.5.3#d3e1ab2424388b10893b796b0c8e405c5edd03d2
rsver 1.93.1

Instances

  • CDC2BQ7I6HY3HTTF2TD4M5UCP7GCS7EHYALJZICJ55FUZMNH3QULGAM7

Interface

Keep the contract alive. Anyone may call.

fn ping(env: soroban_sdk::Env)
fn owner(env: soroban_sdk::Env) -> soroban_sdk::Address
fn token(env: soroban_sdk::Env) -> soroban_sdk::Address

Current ZSOZSO balance held by the vault.

fn balance(env: soroban_sdk::Env) -> i128

Withdraw the entire ZSOZSO balance of the vault to the owner. Callable only by the owner, and only after the unlock ledger.

fn withdraw(env: soroban_sdk::Env) -> Result<(), soroban_sdk::Error>

Initialise the vault.

  • owner: the only account that will ever be allowed to withdraw.
  • token: the Stellar Asset Contract address of ZSOZSO on Mainnet.

A random unlock ledger between 365 and 730 days from the current ledger is chosen at construction time.

fn __constructor(
    env: soroban_sdk::Env,
    owner: soroban_sdk::String,
    token: soroban_sdk::String,
)

Ledger sequence at which withdraw becomes callable.

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

Imports

WebAssembly Text (WAT) ▶