There is a precision loss in _calculateHealthFactor
function leading to collateral being liquidated when it does not need to be.
The function _calculateHealthFactor
is an important function that is used throughout the code. It is responsible for calculating the health factor of an account. However, there is a precision loss that occurs during the multiplication and division process, the affected code is used to check if the account has a good health factor and is not at risk of being liquidated.
The precision loss issue results in collateral being liquidated when it does not need to be.
Manual Review
It is recommended to multiply first than divide:
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.