{
    "Function": "deployVesting",
    "File": "contracts/SecondSwap_VestingDeployer.sol",
    "Parent Contracts": [
        "node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"
    ],
    "High-Level Calls": [
        "IVestingManager"
    ],
    "Internal Calls": [
        "require(bool,string)",
        "require(bool,string)",
        "require(bool,string)",
        "require(bool,string)",
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function deployVesting(\n        address tokenAddress,\n        uint256 startTime,\n        uint256 endTime,\n        uint256 steps,\n        string memory vestingId\n    ) external {\n        require(_tokenOwner[msg.sender] == tokenAddress, \"SS_VestingDeployer: caller is not the token owner\");\n        //require(_tokenOwner[msg.sender] == address(SecondSwap_StepVesting(_stepVesting).token()), \"SS_VestingDeployer: caller is not the token owner\"); Can't implement this as the stepVesting Contract is not deployed\n        require(tokenAddress != address(0), \"SS_VestingDeployer: token address is zero\"); // 3.2. Arbitrary transfer of vesting\n\n        require(startTime < endTime, \"SS_VestingDeployer: start time must be before end time\");\n        require(steps > 0, \"SS_VestingDeployer: steps must be greater than 0\");\n        require(manager != address(0), \"SS_VestingDeployer: manager not set\");\n\n        address newVesting = address(\n            new SecondSwap_StepVesting(\n                msg.sender,\n                manager,\n                IERC20(tokenAddress),\n                startTime,\n                endTime,\n                steps,\n                address(this)\n            )\n        );\n        IVestingManager(manager).setSellable(newVesting, true);\n        emit VestingDeployed(tokenAddress, newVesting, vestingId);\n    }"
}