This repository has been archived by the owner on May 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
berndartmueller - Chainlink's latestRoundData
might return stale or incorrect results
#137
Comments
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
berndartmueller
medium
Chainlink's
latestRoundData
might return stale or incorrect resultsSummary
Chainlink's
latestRoundData()
is used but there is no check if the return value indicates stale data. This could lead to stale prices according to the Chainlink documentation:Vulnerability Detail
The
PricerInternal._latestAnswer64x64
function uses Chainlink'slatestRoundData()
to get the latest price. However, there is no check if the return value indicates stale data.Impact
The
PricerInternal
could return stale price data for the underlying asset.Code Snippet
PricerInternal._latestAnswer64x64
Tool Used
Manual review
Recommendation
Consider adding checks for stale data. e.g
The text was updated successfully, but these errors were encountered: