From 9f1fbbaa421f7ba503a1affa51d1095a50da3832 Mon Sep 17 00:00:00 2001 From: xiong Date: Wed, 12 Apr 2023 12:38:47 -0700 Subject: [PATCH] error fix --- x/pot/keeper/distribute.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/pot/keeper/distribute.go b/x/pot/keeper/distribute.go index 806919b8..f6fd7104 100644 --- a/x/pot/keeper/distribute.go +++ b/x/pot/keeper/distribute.go @@ -413,7 +413,7 @@ func (k Keeper) GetTotalConsumedNoz(trafficList []types.SingleWalletVolume) sdk. totalTraffic := sdk.ZeroInt() for _, vol := range trafficList { toAdd := vol.Volume - totalTraffic = totalTraffic.Add(*toAdd) + totalTraffic = totalTraffic.Add(toAdd) } return totalTraffic }