Contract dc1523c9c9cea321dc6edf78df896a84317b8e9ca60aaf756d256e41b9b8a560

← Back to Index 📥 Download WASM

Meta

rssdkver 25.1.1#94c2a3b3a5ded6b9cf9cef0c207bf8804f3eb294
rsver 1.93.1

Instances

  • CDA3COG7GGA24P2YQE3PCPABV5FJAOTMHCSQISMEFUFUXG3RNZOINMUX

Interface

Batch-fetch oracle prices for multiple assets in a single invocation.

Calls lastprice(self, asset) on the FXDao Reflector oracle for each asset. Uses this contract's own address as the requester — the oracle calls require_auth() on it, which succeeds because a contract automatically authorizes calls it makes.

fn get_prices(
    env: soroban_sdk::Env,
    oracle: soroban_sdk::Address,
    assets: soroban_sdk::Vec,
) -> soroban_sdk::Map>

Imports

WebAssembly Text (WAT) ▶