Throughout the protocol, any arithmetic on RAY and WAD precision values are handled by using functions from
WadRayMath.sol
for efficiently handling the fixed-point math intricacies of ray values.
However, the LendingPool::calculateHealthFactor
implementation uses simple division operator (/) instead of the dedicated rayDiv
function from the WadRayMath library resulting in systematic inconsistencies, and precision loss.
Manual Review
Replace the use of the simple division operator for ray values with the rayDiv
function from WadRayMath.
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.