The closeLiquidation function should allow users to repay their debts and close the liquidation within the grace period but the current implementation doesn't have any logic that allows the user to repay the debts.
The function is designed to close liquidation but:
No transfer of CrvUSD from user to protocol
No debt reduction logic
No validation of repayment amount against debt
No update to the user's debt balance
Also, the closeLiquidation function incorrectly reverts when debt is above DUST_THRESHOLD, effectively preventing users from closing their liquidation even when they should be able to.
Users can't repay their debts whenever they are under liquidation.
Manual
Add logic for users to repay debts in closeLiquidation
Remove/modify the DUST_THRESHOLD check
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.