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.