The initiateLiquidation
function has an incorrect revert message.
The if
condition checks whether the user's health factor is greater or less than healthFactorLiquidationThreshold
. If it is greater, liquidation should not be initiated, and the function should revert.
But the revert message "HealthFactorTooLow" is incorrect; it should be something like "HealthFactorIsGood" to indicate that liquidation cannot proceed.
Incorrect revert message.
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.