```\nif (virtualSupply > 0) {\n    uint256 blocks = block.number - pool.lastRewardBlock;\n    uint256 tribeReward = (blocks \* tribePerBlock() \* pool.allocPoint) / totalAllocPoint;\n    pool.accTribePerShare = uint128(pool.accTribePerShare + ((tribeReward \* ACC\_TRIBE\_PRECISION) / virtualSupply));\n}\n```\n