{
    "Function": "slitherConstructorConstantVariables",
    "File": "contracts/x-vader/XVader.sol",
    "Parent Contracts": [
        "node_modules/@openzeppelin/contracts/security/ReentrancyGuard.sol",
        "node_modules/@openzeppelin/contracts/token/ERC20/extensions/ERC20Votes.sol",
        "node_modules/@openzeppelin/contracts/interfaces/IERC5805.sol",
        "node_modules/@openzeppelin/contracts/governance/utils/IVotes.sol",
        "node_modules/@openzeppelin/contracts/interfaces/IERC6372.sol",
        "node_modules/@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol",
        "node_modules/@openzeppelin/contracts/utils/cryptography/EIP712.sol",
        "node_modules/@openzeppelin/contracts/interfaces/IERC5267.sol",
        "node_modules/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol",
        "node_modules/@openzeppelin/contracts/token/ERC20/ERC20.sol",
        "node_modules/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol",
        "node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol",
        "node_modules/@openzeppelin/contracts/utils/Context.sol",
        "contracts/shared/ProtocolConstants.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "contract XVader is ProtocolConstants, ERC20Votes, ReentrancyGuard {\n    // Address of vader token\n    IERC20 public immutable vader;\n\n    /*\n     * @dev Initializes contract's state by setting vader's tokens address and\n     * setting current token's name and symbol.\n     **/\n    constructor(IERC20 _vader)\n        ERC20Permit(\"XVader\")\n        ERC20(\"XVader\", \"xVADER\")\n    {\n        require(\n            _vader != IERC20(_ZERO_ADDRESS),\n            \"XVader::constructor: _vader cannot be a zero address\"\n        );\n        vader = _vader;\n    }\n\n    // Locks vader and mints xVader\n    function enter(uint256 _amount) external nonReentrant {\n        // Gets the amount of vader locked in the contract\n        uint256 totalVader = vader.balanceOf(address(this));\n        // Gets the amount of xVader in existence\n        uint256 totalShares = totalSupply();\n\n        uint256 xVADERToMint = totalShares == 0 || totalVader == 0\n            // If no xVader exists, mint it 1:1 to the amount put in\n            ? _amount\n            // Calculate and mint the amount of xVader the vader is worth.\n            // The ratio will change overtime, as xVader is burned/minted and\n            // vader deposited + gained from fees / withdrawn.\n            : (_amount * totalShares) / totalVader;\n\n        _mint(msg.sender, xVADERToMint);\n\n        // Lock the vader in the contract\n        vader.transferFrom(msg.sender, address(this), _amount);\n    }\n\n    // Claim back your VADER\n    // Unlocks the staked + gained vader and burns xVader\n    function leave(uint256 _shares) external nonReentrant {\n        // Calculates the amount of vader the xVader is worth\n        uint vaderAmount = (_shares * vader.balanceOf(address(this))) / totalSupply();\n\n        _burn(msg.sender, _shares);\n        vader.transfer(msg.sender, vaderAmount);\n    }\n}"
}