Price Deviation Threshold
The Price Deviation Threshold is a specific percentage change in an asset's price that triggers an immediate update from an oracle to the blockchain. This mechanism complements the heartbeat update by ensuring that significant price moves are captured instantly, rather than waiting for the next scheduled heartbeat.
If the price of an asset moves by more than the threshold, the oracle pushes a new update to the protocol. This is essential for protecting the system during periods of high volatility when prices can change rapidly.
By reacting to both time and price movement, the oracle provides a robust and responsive data feed that is critical for the safety of margin-based protocols. It allows the system to adjust to market shifts in real-time, reducing the risk of outdated pricing causing financial loss.