Chainlink's latestRoundData() is used but there is no check if the return value indicates stale data.
there are no checks against the roundID and oraclePriceUSDInt fields.
Impact
Failing to validate the freshness of Chainlink data could result in the CoreChainlinkFeed returning stale or outdated price data for assets. This can lead to incorrect pricing information being used in critical financial calculations within the protocol.
mgf15
medium
MISSING STALENESS CHECKS
Summary
MISSING STALENESS CHECKS
Vulnerability Detail
Chainlink's latestRoundData() is used but there is no check if the return value indicates stale data. there are no checks against the roundID and oraclePriceUSDInt fields.
Impact
Failing to validate the freshness of Chainlink data could result in the CoreChainlinkFeed returning stale or outdated price data for assets. This can lead to incorrect pricing information being used in critical financial calculations within the protocol.
Code Snippet
https://github.com/sherlock-audit/2024-03-arrakis/blob/main/valantis-hot/src/HOTOracle.sol#L138C5-L149C6
Tool used
Manual Review
Recommendation
ChainlinkAdapterOracle should check the returned answer against the minPrice/maxPrice and revert if the answer is outside of the bounds.