Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayashsatolia403 committed Aug 10, 2023
1 parent cb421c0 commit 9443cfc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/tokenomics_tests/blobber_challenge_reward_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,10 +501,10 @@ func assertChallengeRewardsForTwoDelegatesEach(t *test.SystemTest, allocationId
require.InEpsilon(t, validator1DelegatesTotalReward, validator2DelegatesTotalReward, 0.05, "Validator 1 and Validator 2 delegate rewards are not equal")

// check if both blobber delegates got the same amount of reward with 5% error margin
require.InEpsilon(t, blobber1Delegate1TotalReward*stakes[1], blobber1Delegate2TotalReward*stakes[0], 0.05, "Blobber 1 Delegate 1 and Blobber 1 Delegate 2 rewards are not in correct proportion")
require.InEpsilon(t, blobber1Delegate1TotalReward*stakes[2], blobber1Delegate2TotalReward*stakes[0], 0.05, "Blobber 1 Delegate 1 and Blobber 1 Delegate 2 rewards are not in correct proportion")
require.InEpsilon(t, blobber2Delegate1TotalReward*stakes[3], blobber2Delegate2TotalReward*stakes[1], 0.05, "Blobber 2 Delegate 1 and Blobber 2 Delegate 2 rewards are not in correct proportion")

// check if both validator delegates got the same amount of reward with 5% error margin
require.InEpsilon(t, validator1Delegate1TotalReward*stakes[5], validator1Delegate2TotalReward*stakes[4], 0.05, "Validator 1 Delegate 1 and Validator 1 Delegate 2 rewards are not in correct proportion")
require.InEpsilon(t, validator2Delegate1TotalReward*stakes[7], validator2Delegate2TotalReward*stakes[6], 0.05, "Validator 2 Delegate 1 and Validator 2 Delegate 2 rewards are not in correct proportion")
require.InEpsilon(t, validator1Delegate1TotalReward*stakes[6], validator1Delegate2TotalReward*stakes[4], 0.05, "Validator 1 Delegate 1 and Validator 1 Delegate 2 rewards are not in correct proportion")
require.InEpsilon(t, validator2Delegate1TotalReward*stakes[7], validator2Delegate2TotalReward*stakes[5], 0.05, "Validator 2 Delegate 1 and Validator 2 Delegate 2 rewards are not in correct proportion")
}

0 comments on commit 9443cfc

Please sign in to comment.