Protocol designed to be 200% overcollateralized. This mean that user should provide at least 2 USD collateral for every 1 DSC got from protocol.
If user's health factor significantly dropped but not yet get liquidated, they may only cover debt in a way to health factor become bigger then MIN_HEALTH_FACTOR.
Consider
Alice deposited $200 of weth into protocol and minter $100 of DSC.
Price of weth dropped and not Alice has $150 of weth collateral and $100 DSC debt. Position is now insolvent but not yet liquidated.
Alice used $90 of DSC for some activity but holds other $10 and want to repay these $10 to improve her health factor a bit while searching for additional funding.
It would be impossible as health factor would be still broken and engine would not allow her to do so.
Users may lots funds on liquidation that would be possible to save
Foundry tests
Result
Allow users to improve health factor while burning DSC while still be insolvent
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.