oracle_adapter is a specialized contract responsible for managing external market data securely. The protection engine relies entirely on this data to determine if a claim is valid.
Core Responsibilities
- Price Storage: Stores the most recent scaled price (typically up to 7 or 8 decimals) of supported assets (e.g., USDC, USDT, DAI).
- Admin Authentication: Only the protocol admin or a heavily permissioned oracle bot can update the prices.
- Data Availability: Exposes a secure getter function so the
protection_enginecan read the price at the exact moment a user attempts to claim a position.