Price oracles
Stella Trade employs a robust, custom-built price oracle system designed to support the protocol's critical functionalities. The price oracle triggers the liquidation engine by calculating the mark price to determine when positions are eligible for liquidation.
Stella Trade's price feed system leverages external data from multiple high-volume exchanges, such as Binance, Coinbase, and OKX. Using a weighted median approach, the oracle aggregates and cross-references prices across these platforms to provide reliable and representative index and mark prices for supported trading pairs.
Exchange List & Assigned Weightage
EXCHANGE
TIER
WEIGHT
Binance
1
3
Coinbase
2
2
Bybit
2
2
OKX
2
2
Kucoin
3
1
Gate.io
3
1
MEXC
3
1
Kraken
3
1
Contingency plans
The protocol's price oracle is an off-chain mechanism built for low-latency performance, ensuring fast and reliable data without compromising security. In the event of an outage or failure of the primary oracle, Stella Trade has built-in contingency measures that involve a secondary on-chain oracle to maintain system integrity and avoid reliance on a single point of failure.
Last updated