Not enough check of oracle price inside staleCheckLatestRoundData
function.
When price is fetched from chainlink oracle price feed, then OracleLib.staleCheckLatestRoundData
is called. Currently, this function only checks if price is fresh.
This is not enough check, though. Function should also check that answer is bigger than 0 and roundId != 0,
Incorrect price can be fetched.
VsCode
Add additional check.
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.