Oracles
Drift Protocol has a number of resiliency checks around new oracle data as well as updates an oracle TWAP for its margin risk engine. Each market tracks the last seen oracle values and updates an EMA of TWAP for both 1 hr (funding period) and 5 min intervals.
Drift utilises as an oracle source. The protocol has the flexibility to update and customize as necessary on a per-market basis.
Validity Checks
For robustness, Drift's program checks oracle validity. The validity is evaluated on a per-check and action basis to determine whether to block actions. See Protocol Guard Rails for more details.
When the oracle for a Perpetuals Market is deemed invalid, the market can block some order fills, withdraws, liquidations, and funding rate updates (if they increase protocol risk).

