The _revert_if_health_factor_is_broken
function is responsible for ensuring that a user's health factor meets the minimum required standard. There is only implementation for WETH.
In the function, there is only implementation for WETH.
Value of the MIN_HEALTH_FACTOR=10^18
is higher than the Satoshi factor which is 10^8.
As a result, for WBTC, the user_health_factor
can be inflated to more than 101010^{10} times its normal value.
Bigger value of MIN_HEALTH_FACTOR for WBTC allows on bigger value of user_health_factor
and wrong value when
function should revert.
manual review
Add MIN_HEALTH_FACTOR also for WBTC.
The `_calculate_health_factor` function will return result with 8 decimals for WBTC tokens and the check for `MIN_HEALTH_FACTOR` will always revert.
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.