Protocol dont check the return data from Chainlink aggregators is stale or not.
Protocol utilize chainlink's oracle functionality. However, it is important to note that there is currently no check in place to determine if the return value from chainlink indicates stale data. This can lead to inaccurate or outdated results if not handled properly.
Currently, there is one place where chainlink can return price data use latestRoundData
function, all of them need to check the answer is stale or not, includes roundId
, answer
, startedAt
, updatedAt
and answeredInRound
.
Protocol maybe use stale price data and will be sandwiched attack by MEV.
vscode, Manual Review
Add below code check the returned data:
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.