We check user's HF while liquidation call and start liquidation procces if under treshold. User suppose to be liquidated if he didn't repay his debt at the grace perioud after initiating liquidation proccess. The problem is, while finalisation of liquidation we don't check a HF again. If collateral value increased while liquidation and we below treshold liquidation will occur anyway.
LendingPool.sol finalizeLiquidation() do not check for HF before liquidation. Like initiateLiquidation() do
Since grace period to react on liquidation will likely defined as 3 days there is a chance value of the property would increase while this perioud and user will be liquidated unfairly.
There is a second option, since user can deposit NFT while liquidation proccess his HF should also be increased, it proves my statement about unfair liquidation.
unfair liquidation of the user
manual review
add such lines to lendingPool.sol finalizeLiquidation()
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.