{
    "Function": "claim",
    "File": "contracts/SecondSwap_StepVesting.sol",
    "Parent Contracts": [
        "contracts/interface/SecondSwap_Vesting.sol"
    ],
    "High-Level Calls": [
        "SafeERC20"
    ],
    "Internal Calls": [
        "claimable",
        "require(bool,string)"
    ],
    "Library Calls": [
        "safeTransfer"
    ],
    "Low-Level Calls": [],
    "Code": "function claim() external {\n        (uint256 claimableAmount, uint256 claimableSteps) = claimable(msg.sender);\n        require(claimableAmount > 0, \"SS_StepVesting: nothing to claim\");\n\n        Vesting storage vesting = _vestings[msg.sender];\n        vesting.stepsClaimed += claimableSteps;\n        vesting.amountClaimed += claimableAmount;\n\n        token.safeTransfer(msg.sender, claimableAmount); //  3.6. DOS caused by the use of transfer and transferFrom functions\n        emit Claimed(msg.sender, claimableAmount);\n    }"
}