Contract c718a9ef6321aa3889786141d6fbb623f7f81106ee8c7bb87c62256f6040c507

← Back to Index 📥 Download WASM

Meta

cliver 26.0.0#60f7458e7ecffddf2f2d91dc6d0d2db4fab03ecc
rssdkver 23.4.0#673d6c4f2368d282d25da29bda55c21b8be69ca6
rsver 1.90.0

Instances

  • CARMP37TGSTOTDOXBTUQIINFUUEOT4D5IKG47DP3QJOPYFKOD5GE2BO4

Interface

Constructs the adapter contract.

Assets are fixed at construction — no post-deploy mutations. To change the set of supported assets, deploy a new contract instance.

Arguments

  • admin - contract's administrator
  • base_asset - asset that will be the result of the base() endpoint call
  • decimals - number of decimals in the output price
  • feeds - token address → RedStone price feed contract address mapping
fn __constructor(
    env: soroban_sdk::Env,
    base_asset: Asset,
    decimals: u32,
    feeds: soroban_sdk::Map,
)
fn base(env: soroban_sdk::Env) -> Asset
fn assets(env: soroban_sdk::Env) -> soroban_sdk::Vec
fn decimals(env: soroban_sdk::Env) -> u32
fn resolution(env: soroban_sdk::Env) -> u32
fn price(env: soroban_sdk::Env, asset: Asset, timestamp: u64) -> Option
fn prices(
    env: soroban_sdk::Env,
    asset: Asset,
    records: u32,
) -> Option>
fn lastprice(env: soroban_sdk::Env, asset: Asset) -> Option

Imports

WebAssembly Text (WAT) ▶