Price Feed Latency Risks
Price feed latency risks occur when there is a significant delay between the actual market price of an asset and the price reported on-chain by an oracle. In fast-moving markets, even a few seconds of delay can lead to outdated information being used to execute trades or liquidations.
If a protocol uses an old price, an attacker can exploit the difference to profit at the expense of the protocol or its users. For example, if an asset price crashes in the real world but the oracle has not yet updated, a user could borrow against the now-overvalued collateral before the protocol catches up.
Mitigating this requires high-frequency updates and efficient data delivery mechanisms. However, frequent updates can lead to higher gas costs, forcing a trade-off between accuracy and efficiency.
Developers must carefully calibrate the frequency of updates to balance cost and risk. Understanding latency is essential for maintaining the integrity of automated systems that rely on real-time financial data.