In LiquidationPool, we're using latestRoundData
but there is no check if the return value indicates stale data.
However, this doesn't check if the price provided is from the latest round. For some reason, the oracle could be frozen and give stale price data.
Incorrect or stale rice returned from Chainlink oracle could lead to different problems like incorrect calculations or even incurring a bad debt if a user borrows against an asset with an incorrect price.
Manual review
Implement the following correction:
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.