{
    "Function": "vestFor",
    "File": "contracts/tokens/vesting/LinearVesting.sol",
    "Parent Contracts": [
        "node_modules/@openzeppelin/contracts/access/Ownable.sol",
        "node_modules/@openzeppelin/contracts/utils/Context.sol",
        "contracts/shared/ProtocolConstants.sol",
        "contracts/interfaces/tokens/vesting/ILinearVesting.sol"
    ],
    "High-Level Calls": [
        "IERC20"
    ],
    "Internal Calls": [
        "require(bool,string)",
        "hasStarted",
        "onlyConverter",
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function vestFor(address user, uint256 amount)\r\n        external\r\n        override\r\n        onlyConverter\r\n        hasStarted\r\n    {\r\n        require(\r\n            amount <= type(uint192).max,\r\n            \"LinearVesting::vestFor: Amount Overflows uint192\"\r\n        );\r\n        require(\r\n            vest[user].amount == 0,\r\n            \"LinearVesting::vestFor: Already a vester\"\r\n        );\r\n        vest[user] = Vester(\r\n            uint192(amount),\r\n            0,\r\n            uint128(block.timestamp),\r\n            uint128(block.timestamp + 365 days)\r\n        );\r\n        vader.transferFrom(msg.sender, address(this), amount);\r\n\r\n        emit VestingCreated(user, amount);\r\n    }"
}