```\nfunction calculateRewards(address to)\n public\n virtual\n override\n whenNotPaused\n returns (bool success)\n{\n require(to == \_msgSender(), "ST5");\n uint256 reward = \_calculateRewards(to);\n emit TriggeredCalculateRewards(to, reward, block.timestamp);\n return true;\n}\n```\n