{
    "Function": "attachTokenToGauge",
    "File": "contracts/contracts/Voter.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "IVotingEscrow"
    ],
    "Internal Calls": [
        "require(bool)",
        "require(bool)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function attachTokenToGauge(uint tokenId, address account) external {\n        require(isGauge[msg.sender]);\n        require(isAlive[msg.sender]); // killed gauges cannot attach tokens to themselves\n        if (tokenId > 0) IVotingEscrow(_ve).attach(tokenId);\n        emit Attach(account, msg.sender, tokenId);\n    }"
}