Resilient Price Oracle
The Resilient Price Oracle is Rheofi's multi-source price feed infrastructure, designed to deliver accurate and tamper-resistant asset pricing across all supported markets. By aggregating data from multiple independent oracle providers, the system mitigates the risks associated with single points of failure and price manipulation attacks.
Architecture Overview
The oracle framework fetches price data from several on-chain and off-chain sources, including decentralized oracle networks, on-chain TWAP (Time-Weighted Average Price) feeds, and DEX-based price references. Each data source operates independently, and the system evaluates their outputs collectively before settling on a final price for any given asset.
Primary, Pivot, and Fallback Design
The Resilient Price Oracle employs a three-tier oracle architecture:
-
Primary Oracle: The default price source for each asset, typically sourced from a leading decentralized oracle network. Under normal conditions, this feed is used for all protocol operations.
-
Pivot Oracle: A secondary reference used to validate the primary oracle's output. If the primary price deviates beyond an acceptable threshold relative to the pivot, the system flags the discrepancy and may reject the primary value.
-
Fallback Oracle: Activated when both the primary and pivot oracles are unavailable or produce conflicting data. The fallback ensures that pricing continuity is maintained even during oracle outages or network disruptions.
Validation Mechanisms
Every price update undergoes validation checks before being accepted by the protocol. These checks include deviation bounds between the primary and pivot feeds, staleness thresholds to reject outdated data, and sanity checks against extreme price swings. This layered validation approach significantly reduces exposure to oracle manipulation and flash loan-driven price exploits.
Chain-Specific Oracle Configurations
Rheofi operates exclusively on the XRPL Sidechain. Oracle configurations are tailored for XRPL Testnet and Mainnet, leveraging available decentralized oracle feeds and applying robust validation logic for price integrity.