diff --git a/contracts/utils.go b/contracts/utils.go index cd007afad6..6e5f453bd6 100644 --- a/contracts/utils.go +++ b/contracts/utils.go @@ -466,7 +466,12 @@ func GetRewardBalancesRate(foundationWalletAddr common.Address, statedb *state.S foundationReward := new(big.Int).Mul(totalReward, new(big.Int).SetInt64(common.RewardFoundationPercent)) foundationReward = new(big.Int).Div(foundationReward, new(big.Int).SetInt64(100)) - balances[foundationWalletAddr] = foundationReward + + if balances[foundationWalletAddr] != nil { + balances[foundationWalletAddr].Add(balances[foundationWalletAddr], foundationReward) + } else { + balances[foundationWalletAddr] = foundationReward + } jsonHolders, err := json.Marshal(balances) if err != nil {