Closed code423n4 closed 3 years ago
0xRajeev
The below comment on the stake lockup period (L52 in StakeLocker.sol constructor) indicates that the default value has not been confirmed:
lockupPeriod = 180 days; // TODO: Confirm default
https://github.com/maple-labs/maple-core/blob/355141befa89c7623150a83b7d56a5f5820819e9/contracts/StakeLocker.sol#L52
Manual Analysis
Confirm the correct default value and delete the TODO comment on stake lockup period.
We are aware of TODOs
Handle
0xRajeev
Vulnerability details
Impact
The below comment on the stake lockup period (L52 in StakeLocker.sol constructor) indicates that the default value has not been confirmed:
lockupPeriod = 180 days; // TODO: Confirm default
Proof of Concept
https://github.com/maple-labs/maple-core/blob/355141befa89c7623150a83b7d56a5f5820819e9/contracts/StakeLocker.sol#L52
Tools Used
Manual Analysis
Recommended Mitigation Steps
Confirm the correct default value and delete the TODO comment on stake lockup period.