Skip to content

Commit 35d5b4e

Browse files
committed
fixes after second review
1 parent c8906c8 commit 35d5b4e

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

Diff for: epochStart/metachain/baseRewards_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -1168,13 +1168,13 @@ func getBaseRewardsArguments() BaseRewardsCreatorArgs {
11681168
rewardsTopUpGradientPoint, _ := big.NewInt(0).SetString("3000000000000000000000000", 10)
11691169

11701170
rewardsHandler := &mock.RewardsHandlerStub{
1171-
RewardsTopUpGradientPointInEpochCalled: func(epoch uint32) *big.Int {
1171+
RewardsTopUpGradientPointInEpochCalled: func(_ uint32) *big.Int {
11721172
return rewardsTopUpGradientPoint
11731173
},
1174-
RewardsTopUpFactorInEpochCalled: func(epoch uint32) float64 {
1174+
RewardsTopUpFactorInEpochCalled: func(_ uint32) float64 {
11751175
return 0.25
11761176
},
1177-
ProtocolSustainabilityAddressInEpochCalled: func(epoch uint32) string {
1177+
ProtocolSustainabilityAddressInEpochCalled: func(_ uint32) string {
11781178
return "11"
11791179
},
11801180
}

Diff for: epochStart/metachain/economics_test.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -1585,19 +1585,19 @@ func createArgsForComputeEndOfEpochEconomics(
15851585
MaxInflationRateCalled: func(_ uint32) float64 {
15861586
return 0.1
15871587
},
1588-
ProtocolSustainabilityAddressInEpochCalled: func(epoch uint32) string {
1588+
ProtocolSustainabilityAddressInEpochCalled: func(_ uint32) string {
15891589
return commAddress
15901590
},
1591-
ProtocolSustainabilityPercentageInEpochCalled: func(epoch uint32) float64 {
1591+
ProtocolSustainabilityPercentageInEpochCalled: func(_ uint32) float64 {
15921592
return 0.1
15931593
},
1594-
LeaderPercentageInEpochCalled: func(epoch uint32) float64 {
1594+
LeaderPercentageInEpochCalled: func(_ uint32) float64 {
15951595
return 0.1
15961596
},
1597-
RewardsTopUpFactorInEpochCalled: func(epoch uint32) float64 {
1597+
RewardsTopUpFactorInEpochCalled: func(_ uint32) float64 {
15981598
return 0.25
15991599
},
1600-
RewardsTopUpGradientPointInEpochCalled: func(epoch uint32) *big.Int {
1600+
RewardsTopUpGradientPointInEpochCalled: func(_ uint32) *big.Int {
16011601
return big.NewInt(0).Div(args.GenesisTotalSupply, big.NewInt(10))
16021602
},
16031603
}

Diff for: epochStart/metachain/rewardsV2_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -1767,10 +1767,10 @@ func getRewardsCreatorV2Arguments() RewardsCreatorArgsV2 {
17671767
topUpRewardFactor := 0.25
17681768

17691769
rewardsHandler := &economicsmocks.EconomicsHandlerMock{
1770-
RewardsTopUpGradientPointInEpochCalled: func(epoch uint32) *big.Int {
1770+
RewardsTopUpGradientPointInEpochCalled: func(_ uint32) *big.Int {
17711771
return big.NewInt(0).Set(rewardsTopUpGradientPoint)
17721772
},
1773-
RewardsTopUpFactorInEpochCalled: func(epoch uint32) float64 {
1773+
RewardsTopUpFactorInEpochCalled: func(_ uint32) float64 {
17741774
return topUpRewardFactor
17751775
},
17761776
}
@@ -1787,10 +1787,10 @@ func getRewardsCreatorV35Arguments() RewardsCreatorArgsV2 {
17871787
topUpRewardFactor := 0.5
17881788

17891789
rewardsHandler := &economicsmocks.EconomicsHandlerMock{
1790-
RewardsTopUpGradientPointInEpochCalled: func(epoch uint32) *big.Int {
1790+
RewardsTopUpGradientPointInEpochCalled: func(_ uint32) *big.Int {
17911791
return big.NewInt(0).Set(rewardsTopUpGradientPoint)
17921792
},
1793-
RewardsTopUpFactorInEpochCalled: func(epoch uint32) float64 {
1793+
RewardsTopUpFactorInEpochCalled: func(_ uint32) float64 {
17941794
return topUpRewardFactor
17951795
},
17961796
}

0 commit comments

Comments
 (0)