What is an oracle and how does it fail?
Advanced · Updated
An oracle is the mechanism that brings a fact from outside the chain into a contract. The common case is a price. Lending contracts and perpetuals read that number to value collateral and to decide liquidations. The contract does not see the market. It sees what the oracle wrote. If the number is right and arrives on time, liquidation follows the rule that was programmed. If the number is wrong or late, the rule still runs, on the wrong number.
The failure has plain shapes. The source can be a single thin market, the delay can be longer than the move, the set of reporters can stop, or the oracle's administrator can switch the source. A contract that trusts that number can liquidate a position that still had collateral on other markets, or fail to liquidate one that no longer does. The loss falls on whoever held the position and, if the bad debt is left uncovered, on whoever lent. This describes the effect. It does not describe how to push a source. An oracle is not an official price and it does not make liquidation fair: it makes it automatic.
Informational text from Criptos.ai. It is not a buy or sell recommendation, and it is not tax advice. This is general information, not financial, tax or legal advice. We do not promise gains.
Related tools
In the glossary
Articles
In the Academy: Advanced · In the Academy · In the glossary