Oracles
Read v24 normalized prices, calendar states, and oracle identity.
Oracle model
v24 uses a normalized priceWad at a 1e18 scale. Verify the asset, quote unit, collateral policy, source identity, and configuration for the selected market; an arbitrary feed with the same numeric price is not interchangeable. Price reads also carry timestamps, confidence, status, and digests.
OraclePolicyV24 validates source availability, price bounds, confidence, age, calendar state, and sequencer state. A successful source update does not guarantee an executable pool action.
Supported adapters
ChainlinkFeedOracleV24reads the bound Chainlink feed and validates its normalized sample through the v24 policy.PythPullOracleV24reads the bound cached Pyth sample. A supported paid-update path refreshes it; view reads do not update it.DexTwapOracleV24binds an approved TWAP source, runtime identity, asset/collateral pair, observation window, and liquidity constraints. It is not the legacy unrestricted spot-reserve adapter. Its sample represents the rolling observation window, not a provider heartbeat.
Read the actual policy's age, confidence, and price limits. For the 0.5.1 development baseline, ordinary maxAge must be positive and no more than seven days. A nonzero closureMaxAge must be at least maxAge and no more than seven days; zero falls back to the ordinary window. Adapters can impose tighter bounds: Pyth's ordinary live-age configuration is 15–60 seconds. These are configuration limits, not permission to accept any seven-day-old sample. Do not import old v22 defaults into a v24 integration.
Calendar and sequencer states
A valid read can be Live, ScheduledClosed, ClosureFrozen, or ReopenGrace. Stale, unavailable, out-of-bounds, overly uncertain, or sequencer-blocked results do not become executable prices merely because they contain a number.
New price exposure and LP additions require Live status. Valid closure or reopen-grace reads can support allowed risk-reducing actions, subject to their remaining checks. A configured closure age limit is not unlimited permission to trade against an old price.
Sequencer downtime and restart grace can block dependent actions. Trading calendars can include sessions, holidays, shortened sessions, and timezone transitions. Check the selected deployment's binding and schedule.
Normal scheduled closures and valid reopen grace can count toward funding when the source, sequencer, and calendar evidence is continuous. Unknown or invalid coverage is not charged later; calendar-version changes conservatively re-anchor coverage. Long-closure exit handling retains current price-age and schedule-identity checks and does not guarantee an exit with a stale sample. See Funding accounting.
Oracle changes
Pool oracle rotation uses proposeOracleChangeV24 and acceptOracleChangeV24. The current v24 rotation delay is 24 hours. Proposal and acceptance validate the registered candidate, current state, and both sources; the candidate must remain within the 2% deviation bound from the current source.
Rotation is not an escape from an unreadable old source. EmergencyPause and non-normal accounting block it; ReduceOnly does not by itself block a valid rotation. Changed configuration or expired proposals require refreshed authorization and guards.