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
withdrawDepositsToL1 is lacking a pausable modifier
Severity: Informational
Difficulty:High
Type: Data Validation
Target: src/FusionLock.sol
Description
The FusionLock contract is designed to be pausable, with the documentation saying that all user functionalities can be paused by the owner. However, the withdrawDepositsToL1 function does not have the whenNotPaused modifier. As a result, L1 withdrawals cannot be paused.
withdrawDepositsToL1
is lacking a pausable modifierSeverity: Informational
Difficulty:High
Type: Data Validation
Target: src/FusionLock.sol
Description
The FusionLock contract is designed to be pausable, with the documentation saying that all user functionalities can be paused by the owner. However, the
withdrawDepositsToL1
function does not have thewhenNotPaused
modifier. As a result, L1 withdrawals cannot be paused.fusion-lock/src/FusionLock.sol
Lines 222 to 226 in 0e606d2
Recommendations
Short term, add the
whenNotPaused
modifier to the function.Long term, improve unit testing to uncover edge cases and ensure intended behavior throughout the system.
The text was updated successfully, but these errors were encountered: