The current implementation and checks for price data is not stringent enough and could lead to chainlink returning stale prices
getPrice
which is a function used in Querying the provided Chainlink Price Feed for the margin collateral oracle price is susceptible to returning stale prices due the roundId
comparison against the previous answeredInRound
not being checked.
It is very essential to ensure that the prices returned from chainlink are not data from previous round Ids in order not to receive stale prices.
Chainlink can return stale prices
Manual review
Compare and ascertain that the latest roundId
is different from the previous answeredInRound
.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.