@@ -371,7 +371,7 @@ contract RewardsCoordinator is
371371 */
372372 function _setOperatorSplit (OperatorSplit storage operatorSplit , uint16 split , uint32 activatedAt ) internal {
373373 require (split <= ONE_HUNDRED_IN_BIPS, SplitExceedsMax ());
374-
374+
375375 require (block .timestamp > operatorSplit.activatedAt, PreviousSplitPending ());
376376
377377 if (operatorSplit.activatedAt == 0 ) {
@@ -555,20 +555,20 @@ contract RewardsCoordinator is
555555 * @param operatorSplit The split struct for an Operator
556556 * @return The split in basis points.
557557 */
558- function _getOperatorSplit (OperatorSplit memory operatorSplit ) internal view returns (uint16 ) {
558+ function _getOperatorSplit (
559+ OperatorSplit memory operatorSplit
560+ ) internal view returns (uint16 ) {
559561 if (
560- (operatorSplit.activatedAt == 0 ) ||
561- (operatorSplit.oldSplitBips == type (uint16 ).max && block .timestamp < operatorSplit.activatedAt)
562+ (operatorSplit.activatedAt == 0 )
563+ || (operatorSplit.oldSplitBips == type (uint16 ).max && block .timestamp < operatorSplit.activatedAt)
562564 ) {
563565 // Return the Default Operator Split if the operator split has not been initialized.
564566 // Also return the Default Operator Split if the operator split has been initialized but not activated yet. (i.e the first initialization)
565567 return defaultOperatorSplitBips;
566568 } else {
567569 // Return the new split if the new split has been activated, else return the old split.
568570 return
569- (block .timestamp >= operatorSplit.activatedAt)
570- ? operatorSplit.newSplitBips
571- : operatorSplit.oldSplitBips;
571+ (block .timestamp >= operatorSplit.activatedAt) ? operatorSplit.newSplitBips : operatorSplit.oldSplitBips;
572572 }
573573 }
574574
0 commit comments