From 3e43756fd7678ce88062c32671bd7559ff1c7a25 Mon Sep 17 00:00:00 2001 From: benjamin202410 Date: Wed, 20 Aug 2025 01:25:44 -0700 Subject: [PATCH] fix: add TIP condition for reward bug fix (#1360) Co-authored-by: liam.lai --- contracts/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/utils.go b/contracts/utils.go index 6e5f453bd6..2d65fe2217 100644 --- a/contracts/utils.go +++ b/contracts/utils.go @@ -467,7 +467,7 @@ 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)) - if balances[foundationWalletAddr] != nil { + if blockNumber >= common.TIPUpgradeReward.Uint64() && balances[foundationWalletAddr] != nil { balances[foundationWalletAddr].Add(balances[foundationWalletAddr], foundationReward) } else { balances[foundationWalletAddr] = foundationReward