You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the original issue, WithdrawQueue.sol inherits from PausableUpgradeable. However, the whenNotPaused modifier is not used, resulting in withdrawals and claims not being able to be paused.
This mitigation proposes the usage of the whenNotPaused modifier:
- function withdraw(uint256 _amount, address _assetOut) external nonReentrant {
+ function withdraw(uint256 _amount, address _assetOut) external nonReentrant whenNotPaused {
- function claim(uint256 withdrawRequestIndex) external nonReentrant {
+ function claim(uint256 withdrawRequestIndex) external nonReentrant whenNotPaused {
Comments
This mitigation succesfully mitigates the original issue. Due to the proposed usage of whenNotPaused, when the project decides to call pause(), users will not be able to call withdraw() or claim(), resulting in succesfully pausing these functions.
Suggestion
n/a
Conclusion
LGTM
The text was updated successfully, but these errors were encountered:
Lines of code
Vulnerability details
Original Issue Summary
In the original issue,
WithdrawQueue.sol
inherits fromPausableUpgradeable
. However, thewhenNotPaused
modifier is not used, resulting in withdrawals and claims not being able to be paused.Mitigation
This mitigation proposes the usage of the
whenNotPaused
modifier:Comments
This mitigation succesfully mitigates the original issue. Due to the proposed usage of
whenNotPaused
, when the project decides to callpause()
, users will not be able to callwithdraw()
orclaim()
, resulting in succesfully pausing these functions.Suggestion
n/a
Conclusion
LGTM
The text was updated successfully, but these errors were encountered: