diff --git a/shared/services/rewards/generator-impl-v9-v10-rolling.go b/shared/services/rewards/generator-impl-v9-v10-rolling.go index 87741fa85..10fb360e2 100644 --- a/shared/services/rewards/generator-impl-v9-v10-rolling.go +++ b/shared/services/rewards/generator-impl-v9-v10-rolling.go @@ -687,6 +687,9 @@ func (r *treeGeneratorImpl_v9_v10_rolling) calculateNodeRewards() (*big.Int, *bi // Calculate the reduced bonus for each minipool // Because of integer division, this will be less than the actual bonus by up to 1 wei for _, mpd := range nsd.Minipools { + if mpd.MinipoolBonus == nil { + continue + } mpd.MinipoolBonus.Mul(mpd.MinipoolBonus, remainingBalance) mpd.MinipoolBonus.Div(mpd.MinipoolBonus, totalConsensusBonus) } diff --git a/shared/services/rewards/generator-impl-v9-v10.go b/shared/services/rewards/generator-impl-v9-v10.go index ef9683629..dc48fcb04 100644 --- a/shared/services/rewards/generator-impl-v9-v10.go +++ b/shared/services/rewards/generator-impl-v9-v10.go @@ -740,6 +740,9 @@ func (r *treeGeneratorImpl_v9_v10) calculateNodeRewards() (*big.Int, *big.Int, * // Calculate the reduced bonus for each minipool // Because of integer division, this will be less than the actual bonus by up to 1 wei for _, mpd := range nsd.Minipools { + if mpd.MinipoolBonus == nil { + continue + } mpd.MinipoolBonus.Mul(mpd.MinipoolBonus, remainingBalance) mpd.MinipoolBonus.Div(mpd.MinipoolBonus, totalConsensusBonus) }