{
    "Function": "slitherConstructorConstantVariables",
    "File": "contracts/v3/alchemix/AlToken.sol",
    "Parent Contracts": [
        "node_modules/@openzeppelin/contracts/token/ERC20/ERC20.sol",
        "node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol",
        "node_modules/@openzeppelin/contracts/access/AccessControl.sol",
        "node_modules/@openzeppelin/contracts/GSN/Context.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "keccak256(bytes)",
        "keccak256(bytes)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "contract AlToken is AccessControl, ERC20('Yaxis USD', 'yalUSD') {\n    using SafeERC20 for ERC20;\n\n    /// @dev The identifier of the role which maintains other roles.\n    bytes32 public constant ADMIN_ROLE = keccak256('ADMIN');\n\n    /// @dev The identifier of the role which allows accounts to mint tokens.\n    bytes32 public constant SENTINEL_ROLE = keccak256('SENTINEL');\n\n    /// @dev addresses whitelisted for minting new tokens\n    mapping(address => bool) public whiteList;\n\n    /// @dev addresses blacklisted for minting new tokens\n    mapping(address => bool) public blacklist;\n\n    /// @dev addresses paused for minting new tokens\n    mapping(address => bool) public paused;\n\n    /// @dev ceiling per address for minting new tokens\n    mapping(address => uint256) public ceiling;\n\n    /// @dev already minted amount per address to track the ceiling\n    mapping(address => uint256) public hasMinted;\n\n    event Paused(address alchemistAddress, bool isPaused);\n\n    constructor() public {\n        _setupRole(ADMIN_ROLE, msg.sender);\n        _setupRole(SENTINEL_ROLE, msg.sender);\n        _setRoleAdmin(SENTINEL_ROLE, ADMIN_ROLE);\n        _setRoleAdmin(ADMIN_ROLE, ADMIN_ROLE);\n    }\n\n    /// @dev A modifier which checks if whitelisted for minting.\n    modifier onlyWhitelisted() {\n        require(whiteList[msg.sender], 'AlUSD: Alchemist is not whitelisted');\n        _;\n    }\n\n    /// @dev Mints tokens to a recipient.\n    ///\n    /// This function reverts if the caller does not have the minter role.\n    ///\n    /// @param _recipient the account to mint tokens to.\n    /// @param _amount    the amount of tokens to mint.\n    function mint(address _recipient, uint256 _amount) external onlyWhitelisted {\n        require(!blacklist[msg.sender], 'AlUSD: Alchemist is blacklisted.');\n        uint256 _total = _amount.add(hasMinted[msg.sender]);\n        require(_total <= ceiling[msg.sender], \"AlUSD: Alchemist's ceiling was breached.\");\n        require(!paused[msg.sender], 'AlUSD: user is currently paused.');\n        hasMinted[msg.sender] = hasMinted[msg.sender].add(_amount);\n        _mint(_recipient, _amount);\n    }\n\n    /// This function reverts if the caller does not have the admin role.\n    ///\n    /// @param _toWhitelist the account to mint tokens to.\n    /// @param _state the whitelist state.\n\n    function setWhitelist(address _toWhitelist, bool _state) external onlyAdmin {\n        whiteList[_toWhitelist] = _state;\n    }\n\n    /// This function reverts if the caller does not have the admin role.\n    ///\n    /// @param _newSentinel the account to set as sentinel.\n\n    function setSentinel(address _newSentinel) external onlyAdmin {\n        _setupRole(SENTINEL_ROLE, _newSentinel);\n    }\n\n    /// This function reverts if the caller does not have the admin role.\n    ///\n    /// @param _toBlacklist the account to mint tokens to.\n    function setBlacklist(address _toBlacklist) external onlySentinel {\n        blacklist[_toBlacklist] = true;\n    }\n\n    /// This function reverts if the caller does not have the admin role.\n    function pauseAlchemist(address _toPause, bool _state) external onlySentinel {\n        paused[_toPause] = _state;\n        Paused(_toPause, _state);\n    }\n\n    /// This function reverts if the caller does not have the admin role.\n    ///\n    /// @param _toSetCeiling the account set the ceiling off.\n    /// @param _ceiling the max amount of tokens the account is allowed to mint.\n    function setCeiling(address _toSetCeiling, uint256 _ceiling) external onlyAdmin {\n        ceiling[_toSetCeiling] = _ceiling;\n    }\n\n    /// @dev A modifier which checks that the caller has the admin role.\n    modifier onlyAdmin() {\n        require(hasRole(ADMIN_ROLE, msg.sender), 'only admin');\n        _;\n    }\n    /// @dev A modifier which checks that the caller has the sentinel role.\n    modifier onlySentinel() {\n        require(hasRole(SENTINEL_ROLE, msg.sender), 'only sentinel');\n        _;\n    }\n\n    /**\n     * @dev Destroys `amount` tokens from the caller.\n     *\n     * See {ERC20-_burn}.\n     */\n    function burn(uint256 amount) public virtual {\n        _burn(_msgSender(), amount);\n    }\n\n    /**\n     * @dev Destroys `amount` tokens from `account`, deducting from the caller's\n     * allowance.\n     *\n     * See {ERC20-_burn} and {ERC20-allowance}.\n     *\n     * Requirements:\n     *\n     * - the caller must have allowance for ``accounts``'s tokens of at least\n     * `amount`.\n     */\n    function burnFrom(address account, uint256 amount) public virtual {\n        uint256 decreasedAllowance = allowance(account, _msgSender()).sub(\n            amount,\n            'ERC20: burn amount exceeds allowance'\n        );\n\n        _approve(account, _msgSender(), decreasedAllowance);\n        _burn(account, amount);\n    }\n\n    /**\n     * @dev lowers hasminted from the caller's allocation\n     *\n     */\n    function lowerHasMinted(uint256 amount) public onlyWhitelisted {\n        hasMinted[msg.sender] = hasMinted[msg.sender].sub(amount);\n    }\n}"
}