@@ -23,7 +23,7 @@ library ConfigurationLib {
2323 uint256 internal constant LOCK_AMOUNT_UPPER = type (uint96 ).max; // Maximum for compressed storage (uint96)
2424
2525 Timestamp internal constant TIME_LOWER = Timestamp.wrap (60 );
26- Timestamp internal constant TIME_UPPER = Timestamp.wrap (30 * 24 * 3600 );
26+ Timestamp internal constant TIME_UPPER = Timestamp.wrap (90 * 24 * 3600 );
2727
2828 /**
2929 * @notice The delay after which a withdrawal can be finalized.
@@ -66,12 +66,13 @@ library ConfigurationLib {
6666 );
6767
6868 // Beyond checking the bounds like this, it might be useful to ensure that the value is larger than the withdrawal
69- // delay
70- // this, can be useful if one want to ensure that the "locker" cannot himself vote in the proposal, but as it is
71- // unclear
72- // if this is a useful property, it is not enforced.
69+ // delay. this, can be useful if one want to ensure that the "locker" cannot himself vote in the proposal, but as
70+ // it is unclear if this is a useful property, it is not enforced.
7371 require (_self.proposeConfig.lockDelay >= TIME_LOWER, Errors.Governance__ConfigurationLib__TimeTooSmall ("LockDelay " ));
74- require (_self.proposeConfig.lockDelay <= TIME_UPPER, Errors.Governance__ConfigurationLib__TimeTooBig ("LockDelay " ));
72+ require (
73+ _self.proposeConfig.lockDelay <= Timestamp.wrap (type (uint32 ).max),
74+ Errors.Governance__ConfigurationLib__TimeTooBig ("LockDelay " )
75+ );
7576
7677 require (_self.votingDelay >= TIME_LOWER, Errors.Governance__ConfigurationLib__TimeTooSmall ("VotingDelay " ));
7778 require (_self.votingDelay <= TIME_UPPER, Errors.Governance__ConfigurationLib__TimeTooBig ("VotingDelay " ));
0 commit comments