@@ -26,8 +26,6 @@ contract ConstantsManager is Ownable {
2626 uint256 public baseRewardPerSecond;
2727 uint256 public offlinePenaltyThresholdBlocksNum;
2828 uint256 public offlinePenaltyThresholdTime;
29- uint256 public targetGasPowerPerSecond;
30- uint256 public gasPriceBalancingCounterweight;
3129
3230 // The number of epochs to calculate the average uptime ratio from, acceptable bound [10, 87600].
3331 // Is also the minimum number of epochs necessary for deactivation of offline validators.
@@ -81,14 +79,14 @@ contract ConstantsManager is Ownable {
8179 }
8280
8381 function updateBurntFeeShare (uint256 v ) external onlyOwner {
84- if (v > Decimal.unit () / 2 ) {
82+ if (v + treasuryFeeShare > Decimal.unit ()) {
8583 revert ValueTooLarge ();
8684 }
8785 burntFeeShare = v;
8886 }
8987
9088 function updateTreasuryFeeShare (uint256 v ) external onlyOwner {
91- if (v > Decimal.unit () / 2 ) {
89+ if (v + burntFeeShare > Decimal.unit ()) {
9290 revert ValueTooLarge ();
9391 }
9492 treasuryFeeShare = v;
@@ -115,9 +113,6 @@ contract ConstantsManager is Ownable {
115113 }
116114
117115 function updateBaseRewardPerSecond (uint256 v ) external virtual onlyOwner {
118- if (v < Decimal.unit () / 2 ) {
119- revert ValueTooSmall ();
120- }
121116 if (v > 32 * Decimal.unit ()) {
122117 revert ValueTooLarge ();
123118 }
@@ -144,27 +139,7 @@ contract ConstantsManager is Ownable {
144139 offlinePenaltyThresholdBlocksNum = v;
145140 }
146141
147- function updateTargetGasPowerPerSecond (uint256 v ) external virtual onlyOwner {
148- if (v < 1000000 ) {
149- revert ValueTooSmall ();
150- }
151- if (v > 500000000 ) {
152- revert ValueTooLarge ();
153- }
154- targetGasPowerPerSecond = v;
155- }
156-
157- function updateGasPriceBalancingCounterweight (uint256 v ) external virtual onlyOwner {
158- if (v < 100 ) {
159- revert ValueTooSmall ();
160- }
161- if (v > 10 * 86400 ) {
162- revert ValueTooLarge ();
163- }
164- gasPriceBalancingCounterweight = v;
165- }
166-
167- function updateAverageUptimeEpochWindow (uint32 v ) external onlyOwner {
142+ function updateAverageUptimeEpochWindow (uint32 v ) external virtual onlyOwner {
168143 if (v < 10 ) {
169144 // needs to be long enough to allow permissible downtime for validators maintenance
170145 revert ValueTooSmall ();
0 commit comments