Skip to main content

What Is a “Deviation Threshold” and How Does It Prevent Stale Prices?

A deviation threshold is a percentage change in the asset's price that must be exceeded to trigger a new oracle update. For example, a 0.5% threshold means the oracle only updates if the price has moved by at least 0.5% since the last update.

This mechanism prevents stale prices by forcing an update when the market price has moved materially, while saving on gas costs by avoiding unnecessary updates during stable periods.

What Is a “Deviation Threshold” in Oracle Price Feeds?
How Does Adding Liquidity to a Pool Affect Its Resistance to Price Manipulation?
What Is a ‘Front-Running’ Attack in the Context of an Oracle Price Update?
How Does a ‘Deviation Threshold’ Affect a Data Feed Update?