```\n            if (rewardDebtDiff > userRewardDebts[msg.sender][rewardToken.token]) {\n                userRewardDebts[msg.sender][rewardToken.token] = 0;\n                cachedUserRewards[msg.sender][rewardToken.token] +=\n                    rewardDebtDiff -\n                    userRewardDebts[msg.sender][rewardToken.token];\n            } else {\n                userRewardDebts[msg.sender][rewardToken.token] -= rewardDebtDiff;\n            }\n```\n