Skip to content

Commit 4042c8c

Browse files
committed
Update CalculateAverageFeeAndDistributorShares to have a test-friendly arity
1 parent cfb2d63 commit 4042c8c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

shared/services/state/network-state.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ func createNetworkState(batchContracts config.StateManagerContracts, rp *rocketp
240240

241241
// Calculate avg node fees and distributor shares
242242
for _, details := range state.NodeDetails {
243-
rpstate.CalculateAverageFeeAndDistributorShares(rp, contracts, details, state.MinipoolDetailsByNode[details.NodeAddress])
243+
details.CalculateAverageFeeAndDistributorShares(state.MinipoolDetailsByNode[details.NodeAddress])
244244
}
245245

246246
// Oracle DAO member details
@@ -370,7 +370,7 @@ func createNetworkStateForNode(batchContracts config.StateManagerContracts, rp *
370370

371371
// Calculate avg node fees and distributor shares
372372
for _, details := range state.NodeDetails {
373-
rpstate.CalculateAverageFeeAndDistributorShares(rp, contracts, details, state.MinipoolDetailsByNode[details.NodeAddress])
373+
details.CalculateAverageFeeAndDistributorShares(state.MinipoolDetailsByNode[details.NodeAddress])
374374
}
375375

376376
// Get the total network effective RPL stake

0 commit comments

Comments
 (0)