@@ -501,7 +501,7 @@ func TestMockIntervalDefaultsTreegenv11(tt *testing.T) {
501501 }
502502
503503 // Make sure it got ETH
504- expectedEthAmount , _ := big .NewInt (0 ).SetString ("858194864048338368 " , 10 )
504+ expectedEthAmount , _ := big .NewInt (0 ).SetString ("813695871097683786 " , 10 )
505505 ethAmount := rewardsFile .GetNodeSmoothingPoolEth (node .Address )
506506 if ethAmount .Cmp (expectedEthAmount ) != 0 {
507507 t .Fatalf ("ETH amount does not match expected value for node %s: %s != %s" , node .Notes , ethAmount .String (), expectedEthAmount .String ())
@@ -529,7 +529,7 @@ func TestMockIntervalDefaultsTreegenv11(tt *testing.T) {
529529 }
530530
531531 // Make sure it got ETH
532- expectedEthAmount , _ := big .NewInt (0 ).SetString ("3824794394091977170 " , 10 )
532+ expectedEthAmount , _ := big .NewInt (0 ).SetString ("3780295401141322588 " , 10 )
533533 ethAmount := rewardsFile .GetNodeSmoothingPoolEth (node .Address )
534534 if ethAmount .Cmp (expectedEthAmount ) != 0 {
535535 t .Fatalf ("ETH amount does not match expected value for node %s: %s != %s" , node .Notes , ethAmount .String (), expectedEthAmount .String ())
@@ -558,7 +558,7 @@ func TestMockIntervalDefaultsTreegenv11(tt *testing.T) {
558558 }
559559
560560 // Make sure it got ETH
561- expectedEthAmount , _ := big .NewInt (0 ).SetString ("3873307989258140312 " , 10 )
561+ expectedEthAmount , _ := big .NewInt (0 ).SetString ("3828808996307485730 " , 10 )
562562 ethAmount := rewardsFile .GetNodeSmoothingPoolEth (node .Address )
563563 if ethAmount .Cmp (expectedEthAmount ) != 0 {
564564 t .Fatalf ("ETH amount does not match expected value for node %s: %s != %s" , node .Notes , ethAmount .String (), expectedEthAmount .String ())
@@ -602,14 +602,14 @@ func TestMockIntervalDefaultsTreegenv11(tt *testing.T) {
602602 }
603603
604604 // Make sure it got voter share ETH
605- exepectedVoterShareEthAmount , _ := big .NewInt (0 ).SetString ("944580815709969788 " , 10 )
605+ expectedVoterShareEthAmount , _ := big .NewInt (0 ).SetString ("966830312185297079 " , 10 )
606606 // Multiply by i+1 since the number of validators scales with i+1
607- exepectedVoterShareEthAmount .Mul (exepectedVoterShareEthAmount , big .NewInt (int64 (validatorCount )))
607+ expectedVoterShareEthAmount .Mul (expectedVoterShareEthAmount , big .NewInt (int64 (validatorCount )))
608608 voterShareEthAmount := rewardsFile .GetNodeVoterShareEth (node .Address )
609- diff := new (big.Int ).Sub (voterShareEthAmount , exepectedVoterShareEthAmount )
609+ diff := new (big.Int ).Sub (voterShareEthAmount , expectedVoterShareEthAmount )
610610 diff .Abs (diff )
611611 if diff .Cmp (big .NewInt (1 )) > 0 { // allow off by one wei
612- t .Fatalf ("Voter share ETH amount does not match expected value for node %s: %s != %s" , node .Notes , voterShareEthAmount .String (), exepectedVoterShareEthAmount .String ())
612+ t .Fatalf ("Voter share ETH amount does not match expected value for node %s: %s != %s" , node .Notes , voterShareEthAmount .String (), expectedVoterShareEthAmount .String ())
613613 }
614614 }
615615
@@ -638,12 +638,12 @@ func TestMockIntervalDefaultsTreegenv11(tt *testing.T) {
638638 }
639639
640640 // Make sure it got voter share ETH
641- exepectedVoterShareEthAmount , _ := big .NewInt (0 ).SetString ("944580815709969788 " , 10 )
641+ expectedVoterShareEthAmount , _ := big .NewInt (0 ).SetString ("966830312185297079 " , 10 )
642642 // Multiply by i+1 since the number of validators scales with i+1
643- exepectedVoterShareEthAmount .Mul (exepectedVoterShareEthAmount , big .NewInt (int64 (validatorCount )))
643+ expectedVoterShareEthAmount .Mul (expectedVoterShareEthAmount , big .NewInt (int64 (validatorCount )))
644644 voterShareEthAmount := rewardsFile .GetNodeVoterShareEth (node .Address )
645- if voterShareEthAmount .Cmp (exepectedVoterShareEthAmount ) != 0 {
646- t .Fatalf ("Voter share ETH amount does not match expected value for node %s: %s != %s" , node .Notes , voterShareEthAmount .String (), exepectedVoterShareEthAmount .String ())
645+ if voterShareEthAmount .Cmp (expectedVoterShareEthAmount ) != 0 {
646+ t .Fatalf ("Voter share ETH amount does not match expected value for node %s: %s != %s" , node .Notes , voterShareEthAmount .String (), expectedVoterShareEthAmount .String ())
647647 }
648648 }
649649
@@ -675,14 +675,14 @@ func TestMockIntervalDefaultsTreegenv11(tt *testing.T) {
675675 }
676676
677677 // Make sure it got voter share ETH
678- exepectedVoterShareEthAmount , _ := big .NewInt (0 ).SetString ("944580815709969788 " , 10 )
678+ expectedVoterShareEthAmount , _ := big .NewInt (0 ).SetString ("966830312185297080 " , 10 )
679679 // Multiply by i+1 since the number of validators scales with i+1
680- exepectedVoterShareEthAmount .Mul (exepectedVoterShareEthAmount , big .NewInt (int64 (validatorCount )))
680+ expectedVoterShareEthAmount .Mul (expectedVoterShareEthAmount , big .NewInt (int64 (validatorCount )))
681681 voterShareEthAmount := rewardsFile .GetNodeVoterShareEth (node .Address )
682- diff := new (big.Int ).Sub (voterShareEthAmount , exepectedVoterShareEthAmount )
682+ diff := new (big.Int ).Sub (voterShareEthAmount , expectedVoterShareEthAmount )
683683 diff .Abs (diff )
684684 if diff .Cmp (big .NewInt (1 )) > 0 { // allow off by one wei
685- t .Fatalf ("Voter share ETH amount does not match expected value for node %s: %s != %s" , node .Notes , voterShareEthAmount .String (), exepectedVoterShareEthAmount .String ())
685+ t .Fatalf ("Voter share ETH amount does not match expected value for node %s: %s != %s" , node .Notes , voterShareEthAmount .String (), expectedVoterShareEthAmount .String ())
686686 }
687687 }
688688
@@ -699,7 +699,7 @@ func TestMockIntervalDefaultsTreegenv11(tt *testing.T) {
699699 }
700700
701701 // Make sure it got ETH
702- expectedEthAmount , _ := big .NewInt (0 ).SetString ("286064954682779456 " , 10 )
702+ expectedEthAmount , _ := big .NewInt (0 ).SetString ("271231957032561262 " , 10 )
703703 // Multiply by i+1 since the number of validators scales with i+1
704704 expectedEthAmount .Mul (expectedEthAmount , big .NewInt (int64 (validatorCount )))
705705 ethAmount := rewardsFile .GetNodeSmoothingPoolEth (node .Address )
@@ -714,14 +714,14 @@ func TestMockIntervalDefaultsTreegenv11(tt *testing.T) {
714714 }
715715
716716 // Make sure it got voter share ETH
717- exepectedVoterShareEthAmount , _ := big .NewInt (0 ).SetString ("944580815709969788 " , 10 )
717+ expectedVoterShareEthAmount , _ := big .NewInt (0 ).SetString ("966830312185297079 " , 10 )
718718 // Multiply by i+1 since the number of validators scales with i+1
719- exepectedVoterShareEthAmount .Mul (exepectedVoterShareEthAmount , big .NewInt (int64 (validatorCount )))
719+ expectedVoterShareEthAmount .Mul (expectedVoterShareEthAmount , big .NewInt (int64 (validatorCount )))
720720 voterShareEthAmount := rewardsFile .GetNodeVoterShareEth (node .Address )
721- diff := new (big.Int ).Sub (voterShareEthAmount , exepectedVoterShareEthAmount )
721+ diff := new (big.Int ).Sub (voterShareEthAmount , expectedVoterShareEthAmount )
722722 diff .Abs (diff )
723723 if diff .Cmp (big .NewInt (1 )) > 0 { // allow off by one wei
724- t .Fatalf ("Voter share ETH amount does not match expected value for node %s: %s != %s" , node .Notes , voterShareEthAmount .String (), exepectedVoterShareEthAmount .String ())
724+ t .Fatalf ("Voter share ETH amount does not match expected value for node %s: %s != %s" , node .Notes , voterShareEthAmount .String (), expectedVoterShareEthAmount .String ())
725725 }
726726 }
727727
@@ -738,7 +738,7 @@ func TestMockIntervalDefaultsTreegenv11(tt *testing.T) {
738738 }
739739
740740 // Make sure it got ETH
741- expectedEthAmount , _ := big .NewInt (0 ).SetString ("3252664484726418258 " , 10 )
741+ expectedEthAmount , _ := big .NewInt (0 ).SetString ("3237831487076200064 " , 10 )
742742 // Multiply by i+1 since the number of validators scales with i+1
743743 expectedEthAmount .Mul (expectedEthAmount , big .NewInt (int64 (validatorCount )))
744744 ethAmount := rewardsFile .GetNodeSmoothingPoolEth (node .Address )
@@ -753,7 +753,7 @@ func TestMockIntervalDefaultsTreegenv11(tt *testing.T) {
753753 }
754754
755755 // Make sure it got voter share ETH
756- exepectedVoterShareEthAmount , _ := big .NewInt (0 ).SetString ("944580815709969788 " , 10 )
756+ exepectedVoterShareEthAmount , _ := big .NewInt (0 ).SetString ("966830312185297079 " , 10 )
757757 // Multiply by i+1 since the number of validators scales with i+1
758758 exepectedVoterShareEthAmount .Mul (exepectedVoterShareEthAmount , big .NewInt (int64 (validatorCount )))
759759 voterShareEthAmount := rewardsFile .GetNodeVoterShareEth (node .Address )
@@ -779,7 +779,7 @@ func TestMockIntervalDefaultsTreegenv11(tt *testing.T) {
779779
780780 // Make sure it got ETH
781781 minipoolEthAmount , _ := big .NewInt (0 ).SetString ("2698353474320241690" , 10 )
782- expectedEthAmount , _ := big .NewInt (0 ).SetString ("444444780127559583 " , 10 )
782+ expectedEthAmount , _ := big .NewInt (0 ).SetString ("429611782477341389 " , 10 )
783783 ethAmount := rewardsFile .GetNodeSmoothingPoolEth (node .Address )
784784 // Multiply by i+1 since the number of validators scales with i+1
785785 expectedEthAmount .Mul (expectedEthAmount , big .NewInt (int64 (validatorCount )))
@@ -798,26 +798,26 @@ func TestMockIntervalDefaultsTreegenv11(tt *testing.T) {
798798 }
799799
800800 // Make sure it got voter share ETH
801- exepectedVoterShareEthAmount , _ := big .NewInt (0 ).SetString ("944580815709969789 " , 10 )
801+ expectedVoterShareEthAmount , _ := big .NewInt (0 ).SetString ("966830312185297080 " , 10 )
802802 // Multiply by i+1 since the number of validators scales with i+1
803- exepectedVoterShareEthAmount .Mul (exepectedVoterShareEthAmount , big .NewInt (int64 (validatorCount )))
803+ expectedVoterShareEthAmount .Mul (expectedVoterShareEthAmount , big .NewInt (int64 (validatorCount )))
804804 voterShareEthAmount := rewardsFile .GetNodeVoterShareEth (node .Address )
805- diff = new (big.Int ).Sub (voterShareEthAmount , exepectedVoterShareEthAmount )
805+ diff = new (big.Int ).Sub (voterShareEthAmount , expectedVoterShareEthAmount )
806806 diff .Abs (diff )
807807 if diff .Cmp (big .NewInt (1 )) > 0 { // allow off by one wei
808- t .Fatalf ("Voter share ETH amount does not match expected value for node %s: %s != %s" , node .Notes , voterShareEthAmount .String (), exepectedVoterShareEthAmount .String ())
808+ t .Fatalf ("Voter share ETH amount does not match expected value for node %s: %s != %s" , node .Notes , voterShareEthAmount .String (), expectedVoterShareEthAmount .String ())
809809 }
810810 }
811811 // Validate merkle root
812812 v11MerkleRoot := v11Artifacts .RewardsFile .GetMerkleRoot ()
813813
814814 // Expected merkle root:
815- // 0x45c2300d804f26dd032623948da6696c27ba4c02d3a52c4b44b64c87d68a3ac7
815+ // 0x069f9bc9acc83fe4f809dac3c16534861a0324839293cc003324ce0dc5460cfc
816816 //
817817 // If this does not match, it implies either you updated the set of default mock nodes,
818818 // or you introduced a regression in treegen.
819819 // DO NOT update this value unless you know what you are doing.
820- expectedMerkleRoot := "0x45c2300d804f26dd032623948da6696c27ba4c02d3a52c4b44b64c87d68a3ac7 "
820+ expectedMerkleRoot := "0x069f9bc9acc83fe4f809dac3c16534861a0324839293cc003324ce0dc5460cfc "
821821 if ! strings .EqualFold (v11MerkleRoot , expectedMerkleRoot ) {
822822 t .Fatalf ("Merkle root does not match expected value %s != %s" , v11MerkleRoot , expectedMerkleRoot )
823823 } else {
0 commit comments