The initiateLiquidation function in LendingPool contract uses a confusing error message that contradicts the actual check being performed. When a position's health factor is above the liquidation threshold (i.e., healthy), it reverts with `HealthFactorTooLow` instead of a more accurate message like `HealthFactorIsHealthy`.
The check healthFactor >= healthFactorLiquidationThreshold verifies if a position is healthy and cannot be liquidated. However, when reverting, it uses HealthFactorTooLow which implies the opposite of what's actually happening.
Confusing error messages for integrators and front-end applications
Update the error message to accurately reflect the condition:
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.