Why Oracles Matter in Lending
A lending protocol is only as safe as its price data. If the collateral oracle reports a stale or manipulated price, liquidations can fail to trigger โ leaving bad debt in the market.
RheoFI's Oracle Adapter
RheoFI abstracts all price queries behind an Oracle Adapter contract. This means the core market contracts never hard-code a specific oracle. When a better or more reliable source becomes available, the adapter can be upgraded without touching market logic.
Current Price Sources
- XRPL Native DEX TWAP: For assets with sufficient on-ledger liquidity, RheoFI uses a time-weighted average price derived from the XRPL order book โ manipulation-resistant by design.
- Chainlink (where available): For major assets with Chainlink feeds on XRPL-compatible networks, we route through the Chainlink aggregator for an independent cross-check.
Oracle Failure Handling
If no valid price is available within a configured staleness window, the market pauses new borrows automatically. Existing positions are not immediately liquidated โ protecting borrowers from spurious oracle downtime.
References
- RheoFI Documentation โ Docs