Heartbeat Update Interval
The heartbeat update interval is a predefined time period after which an oracle must report a price update, regardless of whether the asset's price has changed. This ensures that the protocol always has access to a fresh price, preventing the use of stale data.
Even in quiet markets with little price movement, the heartbeat ensures that the system knows the current state of the market. This is crucial for liquidation engines, as they need to verify that a position is still safe even if the price has been stagnant.
The interval is a trade-off between gas costs and data freshness; more frequent updates cost more but provide higher security. By setting an appropriate heartbeat, developers can balance the cost of maintaining the oracle with the need for reliable, timely information.
It is a fundamental configuration parameter for any protocol relying on external price data. Consistent heartbeats prevent the risk of undetected staleness in the system.