{
    "Function": "createLock",
    "File": "contracts/VoterProxy.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "SafeERC20",
        "SafeERC20",
        "IVoteEscrow"
    ],
    "Internal Calls": [
        "require(bool,string)"
    ],
    "Library Calls": [
        "safeApprove",
        "safeApprove"
    ],
    "Low-Level Calls": [],
    "Code": "function createLock(uint256 _value, uint256 _unlockTime) external returns (bool) {\n        require(msg.sender == depositor, \"!auth\");\n        IERC20(veAsset).safeApprove(escrow, 0);\n        IERC20(veAsset).safeApprove(escrow, _value);\n        IVoteEscrow(escrow).create_lock(_value, _unlockTime);\n        return true;\n    }"
}