Contract 67ecf7d6f9d349dbdef9c3fe57ecf8bdeffc6a5dc67ff7b64874302441037817

← Back to Index 📥 Download WASM

Meta

cliver 27.0.0#5a7c5fe76530bf4248477ac812fc757146b98cc4
rssdkver 27.0.2#45d378a6cb4a026d23fc7286b6ee3add9c9dd0b9
rsver 1.92.0

Instances

  • CCPXPACO3V2FISPN5CY5LGFSU7XI5QBVMHOC25ITJVTCIF2P3OCNILWU

Interface

fn get_status(env: soroban_sdk::Env, owner: soroban_sdk::Address) -> Status

One-time setup. Zero category = block; zero band floor is allowed.

fn initialize(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
    max_per_call: i128,
    max_per_day: i128,
    category_daily: CategoryLimits,
    liquid_low: i128,
    liquid_high: i128,
    auto_yield: bool,
)
fn set_limits(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
    max_per_call: i128,
    max_per_day: i128,
)

Blocks check_spend only — set_paused still works while paused.

fn set_paused(env: soroban_sdk::Env, owner: soroban_sdk::Address, paused: bool)

Enforce + record USDC spend (Hub converts XLM before calling).

fn check_spend(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
    category: SpendCategory,
    amount: i128,
)

Liquid band + auto-yield (published for Hub; not enforced here).

fn set_treasury_band(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
    liquid_low: i128,
    liquid_high: i128,
    auto_yield: bool,
)

Zero = block that category.

fn set_category_limits(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
    category_daily: CategoryLimits,
)

Imports

WebAssembly Text (WAT) ▶