code-423n4 / 2024-04-revert-mitigation-findings

1 stars 1 forks source link

M-22 MitigationConfirmed #56

Open c4-bot-8 opened 3 months ago

c4-bot-8 commented 3 months ago

Lines of code

Vulnerability details

C4 Issue

М-22: dailyDebtIncreaseLimitLeft is not updated in liquidate()

Issue Details

V3Vault.sol implements a daily limit on the total amount of debt that can be issued. Borrowing decreases the available daily amounts left, while repayments increase it.

Problem was that liquidations did not increase the borrow limit (like repayments), preventing funds returned to the protocol from being utilized

Mitigation

PR-11 successfully mitigates the original issue by incrementing dailyDebtIncreaseLimitLeft inside liquidate() and also adds daily limit logic to a few other relevant functions

Conclusion

Mitigation Confirmed

c4-judge commented 2 months ago

jhsagd76 marked the issue as satisfactory