Chains cannot see outside themselves. An oracle is the mechanism that feeds external data
in, and it is a trust point.
The problem
A contract has no access to prices, weather, election results, or anything happening off
chain. It only sees its own state.
Applications that need external data, such as lending markets that need collateral prices,
require a way to bring that data in.
How oracles work
Multiple off-chain sources report values to on-chain contracts. The contract aggregates them,
often using a median, and publishes a price.
Different designs use different sources, aggregation methods and update frequencies.
Where it goes wrong
- Single-source oracles can be manipulated by trading on a thin market
- Stale prices during volatility, if updates are infrequent
- Aggregation errors when one source deviates wildly
- Update threshold settings that are too loose during fast moves
- Oracle failures during exactly the conditions the application most needs data
Why this matters for you
If you borrow against collateral whose price comes from an oracle, a bad oracle reading can
trigger a liquidation that a different data source would not have triggered.
Conversely, a manipulated reading can let someone borrow more than they should.
What to check
- Which data sources the oracle uses, and whether they are deep markets
- How frequently it updates, and what the deviation threshold is
- How values are aggregated, and whether outliers are handled
- Whether the oracle has been manipulated before, and how it responded
- What the application does if the oracle fails or lags
The takeaway
Oracles are the seam between chains and reality, and seams are where failures appear.
Check the data source before you trust a price that triggers liquidation.