OracleLib
functions staleCheckLatestRoundData
is used to get price data for calculating collateral value, however it doesn't check if the price feed returning correct non-zero price, this can cause issue if oracle have problem and cause problem to the protocol.
staleCheckLatestRoundData
doesn't check if price is non-zero :
This function is used to calculate token amount in term of usd when liquidate and calculating health factor,
protocol will be break if the price feed have problem.
Manual review
Check the returned price, if the returned price is 0, revert the call.
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.