M-02 MitigationConfirmed #13
Labels
confirmed for report
This issue is confirmed for report
edited-by-warden
mitigation-confirmed
MR-M-02
satisfactory
satisfies C4 submission criteria; eligible for awards
Lines of code
Vulnerability details
Lines of code
Vulnerability details
C4 issue
M-02: Withdrawals and Claims are meant to be pausable, but it is not possible in practice
Link to issue
Comments
The
WithdrawQueue
contract’s original implementation does not include thewhenNotPaused
modifier on thewithdraw
orclaim
functions, even though the Renzo protocol documentation mentions the protocol has the ability to pause/unpause deposits and withdrawals.As a result, neither the
withdraw
nor theclaim
functions can be paused if needed. This could pose a problem if the functionality needs to be paused.Mitigation
PR: Pull Request 87 - M02FIX
The mitigation adds the
whenNotPaused
modifier to thewithdraw
andclaim
functions in theWithdrawQueue
contract. This allows the functions to be paused when necessary.Test
New test cases have been added to ensure the correct functioning of the
whenNotPaused
modifier, and all tests are passing.Contract: WithdrawQueueForkTest
Tests:
Conclusion
The addition of the
whenNotPaused
modifier to thewithdraw
andclaim
functions ensures that these functions can be paused if necessary.The text was updated successfully, but these errors were encountered: