Default _maxLockMultiplier exceeds the MAX_LOCK_MULTIPLIER_LIMIT
Summary
Default _maxLockMultiplier exceeds the MAX_LOCK_MULTIPLIER_LIMIT
Vulnerability Detail
The default _maxLockMultiplier set on initialization is 20000(200%) which is greater than the constant MAX_LOCK_MULTIPLIER_LIMIT = 15000(150%).
This constraint is only applied on setLockMultiplierSettings
Honour
Medium
Default _maxLockMultiplier exceeds the MAX_LOCK_MULTIPLIER_LIMIT
Summary
Default _maxLockMultiplier exceeds the MAX_LOCK_MULTIPLIER_LIMIT
Vulnerability Detail
The default _maxLockMultiplier set on initialization is 20000(200%) which is greater than the constant MAX_LOCK_MULTIPLIER_LIMIT = 15000(150%). This constraint is only applied on
setLockMultiplierSettings
Impact
Contradictory functionality
Code Snippet
https://github.com/sherlock-audit/2024-06-magicsea/blob/main/magicsea-staking/src/MlumStaking.sol#L67-L73
https://github.com/sherlock-audit/2024-06-magicsea/blob/main/magicsea-staking/src/MlumStaking.sol#L103-L110
Tool used
Manual Review
Recommendation
Either
_maxLockMultiplier
or MAX_LOCK_MULTIPLIER_LIMIT should be set appropriatelyDuplicate of #125