Contract 0782c0561cdb7cf18d04654dc6c921d6ea4011c03d3320e50dcf836324e55df1

← Back to Index 📥 Download WASM

Meta

cliver 27.0.0#5a7c5fe76530bf4248477ac812fc757146b98cc4
rssdkver 26.1.0#175aa41306f383057a8cdfc84b68d931664fc34e
rsver 1.93.0

Instances

  • CBMSJ5V6RNIHO55D5CQUPIKRHFMEK2KHFOHIBW4GXJRSMH7TVFYMTZPR

Interface

SEP-40-style read. Consumers (the escrow) check timestamp freshness themselves.

fn lastprice(env: soroban_sdk::Env) -> Option
fn get_config(env: soroban_sdk::Env) -> Result
fn initialize(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    publisher: soroban_sdk::Address,
    min_rate: i128,
    max_rate: i128,
    max_step: i128,
) -> Result<(), soroban_sdk::Error>
fn set_bounds(
    env: soroban_sdk::Env,
    min_rate: i128,
    max_rate: i128,
    max_step: i128,
) -> Result<(), soroban_sdk::Error>
fn set_paused(env: soroban_sdk::Env, paused: bool) -> Result<(), soroban_sdk::Error>

Publisher pushes the current ScopeX rate. Circuit breakers enforced.

fn publish_rate(env: soroban_sdk::Env, rate: i128) -> Result<(), soroban_sdk::Error>
fn set_publisher(
    env: soroban_sdk::Env,
    new: soroban_sdk::Address,
) -> Result<(), soroban_sdk::Error>

Imports

WebAssembly Text (WAT) ▶