{
    "Function": "claimNRN",
    "File": "src/RankedBattle.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "Neuron"
    ],
    "Internal Calls": [
        "require(bool,string)",
        "getNrnDistribution"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function claimNRN() external {\n        require(numRoundsClaimed[msg.sender] < roundId, \"Already claimed NRNs for this period\");\n        uint256 claimableNRN = 0;\n        uint256 nrnDistribution;\n        uint32 lowerBound = numRoundsClaimed[msg.sender];\n        for (uint32 currentRound = lowerBound; currentRound < roundId; currentRound++) {\n            nrnDistribution = getNrnDistribution(currentRound);\n            claimableNRN += (\n                accumulatedPointsPerAddress[msg.sender][currentRound] * nrnDistribution   \n            ) / totalAccumulatedPoints[currentRound];\n            numRoundsClaimed[msg.sender] += 1;\n        }\n        if (claimableNRN > 0) {\n            amountClaimed[msg.sender] += claimableNRN;\n            _neuronInstance.mint(msg.sender, claimableNRN);\n            emit Claimed(msg.sender, claimableNRN);\n        }\n    }"
}