Skip to main content

How Does a Decentralized Exchange Handle a Sudden, Temporary Oracle Outage?

A decentralized exchange (DEX) typically implements safeguards for oracle outages. It may revert to the last known good price, temporarily halt all liquidations and high-risk operations, or switch to a fallback oracle.

The system is designed to prioritize the protection of user funds over the continuous operation of high-risk functions. Trading may continue, but functions dependent on the oracle, like margin calls, are paused until the feed is restored.

Can a Contract without a Fallback Function Still Participate in a Reentrancy Attack?
How Have Recent Versions of Solidity Changed the Behavior of Fallback Functions to Mitigate This Risk?
How Does the Use of a Fallback Oracle Mitigate Risk?
What Is the “Gresham’s Law” Analogy in Crypto?