@@ -27,6 +27,7 @@ contract RocketDAOProtocolSettingsSecurity is RocketDAOProtocolSettings, RocketD
2727 setBool (keccak256 (abi.encodePacked ("dao.security.allowed.setting " , "minipool " , "minipool.bond.reduction.enabled " )), true );
2828 setBool (keccak256 (abi.encodePacked ("dao.security.allowed.setting " , "network " , "network.submit.balances.enabled " )), true );
2929 setBool (keccak256 (abi.encodePacked ("dao.security.allowed.setting " , "network " , "network.submit.prices.enabled " )), true );
30+ setBool (keccak256 (abi.encodePacked ("dao.security.allowed.setting " , "network " , "network.submit.rewards.enabled " )), true );
3031 setBool (keccak256 (abi.encodePacked ("dao.security.allowed.setting " , "node " , "node.registration.enabled " )), true );
3132 setBool (keccak256 (abi.encodePacked ("dao.security.allowed.setting " , "node " , "node.smoothing.pool.registration.enabled " )), true );
3233 setBool (keccak256 (abi.encodePacked ("dao.security.allowed.setting " , "node " , "node.deposit.enabled " )), true );
@@ -59,6 +60,12 @@ contract RocketDAOProtocolSettingsSecurity is RocketDAOProtocolSettings, RocketD
5960 } else if (settingKey == keccak256 (abi.encodePacked ("proposal.action.time " ))) {
6061 // >= 1 day (RPIP-33)
6162 require (_value >= 1 days, "Value must be >= 1 day " );
63+ } else if (settingKey == keccak256 (abi.encodePacked ("upgradeveto.quorum " ))) {
64+ // >= 33% & < 75%
65+ require (_value >= 0.33 ether && _value <= 0.75 ether, "Quorum setting must be >= 33% & <= 75% " );
66+ } else if (settingKey == keccak256 (abi.encodePacked ("upgrade.delay " ))) {
67+ // >= 7 days
68+ require (_value >= 7 days, "Value must be >= 7 days " );
6269 }
6370 }
6471 // Update setting now
0 commit comments