owner can change the liquidation grace period, this can make some accounts instantly liquidatable.
If user collateral value is less than the required threshold, the account is marked as liquidable using LendingPool:initiateLiquidation, after this call user has some time liquidationGracePeriod to repay and avoid the liquidation.
Let’s say the liquidationGracePeriod is 2 days when the user was flagged for liquidation, he is now thinking of repaying the loan and close liquidation on day 2 for some reason to avoid liquidation. After 1 day has passed if the owner decides to change the grace period from 2 days to 1 day using LendingPool:setParameters, then the user will get liquidated without having any time to repay.
as you can see because of this check liquidationStartTime[userAddress] + liquidationGracePeriod user cannot close his liquidation even if he repay the loan.
user will get instantly liquidated if gracePeriod is decreased.
when the user is flagged for liquidation, the current liquidationGracePeriod should be saved in a state variable associated with the user and later that should be user instead of the latest one. This will make sure that user are getting the grace period as they were promised initially.
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.