{
    "Function": "claim_many",
    "File": "contracts/contracts/RewardsDistributor.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "IVotingEscrow"
    ],
    "Internal Calls": [
        "_claim",
        "_checkpoint_total_supply"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function claim_many(uint[] memory _tokenIds) external returns (bool) {\n        if (block.timestamp >= time_cursor) _checkpoint_total_supply();\n        uint _last_token_time = last_token_time;\n        _last_token_time = _last_token_time / WEEK * WEEK;\n        address _voting_escrow = voting_escrow;\n        uint total = 0;\n\n        for (uint i = 0; i < _tokenIds.length; i++) {\n            uint _tokenId = _tokenIds[i];\n            if (_tokenId == 0) break;\n            uint amount = _claim(_tokenId, _voting_escrow, _last_token_time);\n            if (amount != 0) {\n                IVotingEscrow(_voting_escrow).deposit_for(_tokenId, amount);\n                total += amount;\n            }\n        }\n        if (total != 0) {\n            token_last_balance -= total;\n        }\n\n        return true;\n    }"
}