AlcorDocs

Alcor Price Oracle vs DelphiOracle

How the Alcor TWAP oracle differs from DelphiOracle.

DelphiOracle is an oracle contract on Antelope chains. Block producers fetch prices from centralized exchanges and write them on-chain, and the contract publishes the latest values for a small set of pairs. The Alcor Price Oracle is computed from trading in Alcor Swap pools.

Alcor Price OracleDelphiOracle
Data sourceTrades in Alcor Swap pools, on-chainPrices from centralized exchanges, written by block producers
Price typeTime-weighted average over any window, or spotLatest reported price
HistoryAs many observations as the pool keeps; can be extended by paying for RAMRecent values only
PairsEvery Alcor Swap poolA few major pairs, such as WAX/USD
FreshnessLags the market during fast moves, by design of the averaging windowFollows external markets, updated as producers report
ManipulationRequires holding the pool price off-market for the whole window; safer with deep liquidity and a longer windowRequires compromising the reporting producers
Cost to extendRAM for extra observationsNone for users