staleCheckLatestRoundData
function returns oracle price, but has no check if price comes as 0
, it also returns 3 hour time delay, this time is high, need to be lowered
Oracles may have problems from time to time, so 0 value may come, 0 value should be checked.
However, there is no 0 value control in the function.
Price oracle could get a stale price without checking roundId.
Manuel Code Review
In the LUNA event, although the oracle price has stopped, users have suffered from platforms using the price for hours, so a 3 hour option is a very high time frame, it is recommended to reduce it to a reasonable time
Check answer, updateAt and roundId when getting price:
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.