Skip to content
AdvancedLook up a term

What is oracle manipulation?

Author
CRYPTO PORT Editorial
Published
Updated
Reading time
6 min

In short

Oracle manipulation distorts the price feed a contract relies on, so that lending or liquidation happens at a wrong price. It works best when the feed comes from a single thin market, and combining independent sources is the standard defence. As a user, the thing to check is where the protocol you use gets its prices.

Key points

  • Distorting a price feed to force wrong liquidations or loans
  • Single, thin sources are the vulnerable design
  • Multiple independent feeds and time-averaging are the standard fix
  • Check where a protocol sources its prices before using it

Definition

An attack that temporarily distorts the market a smart contract reads prices from, so the contract executes against a price that does not reflect reality.

A smart contract knows nothing about the outside world. When it needs a price — to value collateral or decide a liquidation — that price has to be brought on-chain, and the mechanism that does so is an oracle. Protocol safety therefore rests on the correctness of that feed.

If the feed reads a single decentralised exchange pair with little liquidity, that price is comparatively easy to move for a moment. A distorted reading can let someone borrow against collateral that should not cover it, or mark a healthy position for liquidation. The loss stays with the protocol and its users once the price snaps back.

Designs mitigate this by aggregating several independent sources, using a time-weighted average so a single instant cannot dominate, and adding circuit breakers that halt operations on implausible moves. Using a dedicated price-feed network is another common choice.

What you can check is straightforward: does the documentation state where prices come from, does it depend on one venue, and does the protocol accept thinly traded new assets as collateral? Restricting your own collateral to deeply traded major assets is a practical extra safeguard.

Watch out for

  • · Read the protocol's documentation for where prices come from and how they are aggregated
  • · Avoid putting large sums into anything that reads a single exchange for its prices
  • · Post only deeply traded assets as collateral, never thinly traded new ones

Related coins

Read next

Crypto quizzes

Answer a few questions and get your result instantly.

Start