```\n    function _accumulateInternalRewards() internal view returns (uint256[] memory) {\n        uint256 numInternalRewardTokens = internalRewardTokens.length;\n        uint256[] memory accumulatedInternalRewards = new uint256[](numInternalRewardTokens);\n\n\n        for (uint256 i; i < numInternalRewardTokens; ) {\n            InternalRewardToken memory rewardToken = internalRewardTokens[i];\n\n\n            uint256 totalRewards;\n            if (totalLP > 0) {\n                uint256 timeDiff = block.timestamp - rewardToken.lastRewardTime;\n                totalRewards = (timeDiff * rewardToken.rewardsPerSecond);\n            }\n\n\n            accumulatedInternalRewards[i] = totalRewards;\n\n\n            unchecked {\n                ++i;\n            }\n        }\n\n\n        return accumulatedInternalRewards;\n    }\n```\n