Prismtestnet
HomeXDRAPIGitHub

Prism is open-source software built for the Stellar community. View on GitHub

Contract

CBTVRC6X5Q6KJGAC7SOQHAKBQS4RS5MTOERWKPH5M5OF6FLGVCO6OOHC

Overview

ExecutableWASM contract
WASM Hashe0858cb252a9e7208a8c28863c8455eb25742ddacb3847d1ac2452c23babd06f
WASM Size22,164 bytes
Live Until Ledger#5,943,730
Last Modified Ledger#5,421,886

Functions (6)

migrate(migration_data: MigrationData, operator: Address)
upgrade(new_wasm_hash: BytesN, operator: Address)
get_price(symbol: Symbol) → I128
set_price(caller: Address, symbol: Symbol, price: I128)
initialize(config_manager: Address)
last_update(symbol: Symbol) → U64

Events (6)

UpgradeProposedtopics ["upgprp"] data (vec) [wasm_hash: BytesN, eta: U64]
UpgradeCancelledtopics ["upgcan"] data (vec) [caller: Address]
SetRoottopics ["set_root"] data (map) [root: Bytes]
SetClaimedtopics ["set_claimed"] data (map) [index: Val]
Pausedtopics ["paused"]
Unpausedtopics ["unpaused"]

Types (19)

OracleError errorAlreadyInitialized = 1, NotInitialized = 2, Unauthorized = 3, NoPriceSet = 4
StorageKey unionInitialized | ConfigManager | Price(Symbol) | LastUpdate(Symbol) | Version
Position struct{ collateral: I128, entry_borrow_index: I128, entry_funding_index: I128, entry_price: I128, execution_fee_escrow: I128, is_long: Bool, last_increased_time: U64, size: I128, stop_loss: I128, take_profit: I128 }
MarketInfo struct{ acc_borrow_index: I128, acc_funding_index: I128, global_long_avg_price: I128, global_short_avg_price: I128, last_index_update: U64, long_open_interest: I128, short_open_interest: I128 }
OracleConfig struct{ cache_duration: U64, max_deviation_bps: I128, min_required_sources: U32, staleness_threshold: U64 }
MigrationData struct{ version: U32 }
PendingUpgrade struct{ eta: U64, wasm_hash: BytesN }
UpgradeableError errorMigrationNotAllowed = 1100
MerkleDistributorError errorRootNotSet = 1300, IndexAlreadyClaimed = 1301, InvalidProof = 1302
MerkleDistributorStorageKey unionRoot | Claimed(U32)
Rounding unionFloor | Ceil | Truncate
SorobanFixedPointError errorOverflow = 1500, DivisionByZero = 1501
CryptoError errorMerkleProofOutOfBounds = 1400, MerkleIndexOutOfBounds = 1401, HasherEmptyState = 1402
PausableError errorEnforcedPause = 1000, ExpectedPause = 1001
PausableStorageKey unionPaused
FeeConfig struct{ liquidation_bounty_bps: U32, open_fee_bps: U32, tp_sl_execution_fee: I128 }
FeeSplits struct{ dev_bps: U32, lp_bps: U32, staker_bps: U32 }
ProtocolLimits struct{ adl_pnl_bps: U32, adl_utilization_bps: U32, cooldown_duration: U64, funding_cut_bps: U32, liquidation_threshold_bps: U32, max_utilization_ratio: I128, min_collateral: I128, min_position_lifetime: U64 }
BorrowRateConfig struct{ base_borrow_rate_bps: I128, base_funding_rate_bps: I128, optimal_utilization_bps: I128, slope1_bps: I128, slope2_bps: I128 }

Invoke (simulate)

Simulates the call against current ledger state — read-only, nothing is signed or submitted, no funds at risk.

Storage

KeyValue
["ConfigManager"]CDDOA6JJWVH4Q7SXTL7P6S56VFCVSIUKNPTBBXQYVD27V3P3PWSKBNBP
["Initialized"]true
["LastUpdate","BTCUSD"]1793133070
["LastUpdate","ETHUSD"]1793132750
["LastUpdate","XLMUSD"]1793132725
["Price","BTCUSD"]806960050000
["Price","ETHUSD"]23471650000
["Price","XLMUSD"]1701500

Look up a specific persistent/temporary storage entry by key. Soroban RPC has no way to list all storage keys for a contract — you need to already know the key you're after.

Recent Invocationsauto-updating

No recent invocations found. This contract may not emit events (invocation history is derived from them), or its recent activity may be outside the RPC node's retention window.

Eventsauto-updating

No events emitted by this contract in the last ~24h (the RPC node's retention window).