{
    "Function": "_checkpoint",
    "File": "contracts/ConvexStakingWrapper.sol",
    "Parent Contracts": [
        "node_modules/@openzeppelin/contracts/security/Pausable.sol",
        "node_modules/@openzeppelin/contracts/security/ReentrancyGuard.sol",
        "node_modules/@openzeppelin/contracts/access/Ownable.sol",
        "node_modules/@openzeppelin/contracts/utils/Context.sol"
    ],
    "High-Level Calls": [
        "IRewardStaking"
    ],
    "Internal Calls": [
        "paused",
        "_calcRewardIntegral",
        "_getTotalSupply",
        "_getDepositedBalance"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _checkpoint(uint256 _pid, address _account) internal {\n        //if shutdown, no longer checkpoint in case there are problems\n        if (paused()) return;\n\n        uint256 supply = _getTotalSupply(_pid);\n        uint256 depositedBalance = _getDepositedBalance(_pid, _account);\n\n        IRewardStaking(convexPool[_pid]).getReward(address(this), true);\n\n        uint256 rewardCount = rewards[_pid].length;\n        for (uint256 i = 0; i < rewardCount; i++) {\n            _calcRewardIntegral(_pid, i, _account, depositedBalance, supply);\n        }\n    }"
}