Token CyberCity Token

 

Overview ERC-20

Price
$0.00 @ 0.000000 MATIC
Fully Diluted Market Cap
Total Supply:
37,441,877.826141 CYBR

Holders:
1,179 addresses
Contract:
0x728d06c26be85ebc8efa334453863b1df00ec4930x728D06c26bE85eBc8efA334453863B1Df00Ec493

Decimals:
18

Social Profiles:
Not Available, Update ?

 
Balance
33.92857075 CYBR

Value
$0.00
0x198d91c1ef1dc2f6f6602776c8cdce8e4213fb9f
Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

Click here to update the token ICO / general information
# Exchange Pair Price  24H Volume % Volume
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CyberCityToken

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 16 : CyberCityToken.sol
// SPDX-License-Identifier: MIT

pragma solidity =0.8.10;

import "./interfaces/IAntibot.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "./ExceptionalList.sol";
import "./RBAC.sol";

/**
 * @title CyberCityToken - Deflation ERC20 token with burn and owner transaction fees.
 */
contract CyberCityToken is ERC20, ExceptionalList {
    uint256 public constant SYSTEM_DECIMAL = 10_000;
    uint256 public constant MAX_SUPPLY = 300_000_000e18; // 300M

    address public devFeeTo;
    uint256 public devFee;
    uint256 public burnFee;

    IAntibot public antibot;
    bool public antibotEnabled;

    event BurnFeeChanged(uint256 indexed percent);
    event DevFeeChanged(uint256 indexed percent);
    event DevFeeToChanged(address indexed feeTo);

    constructor(address _premintRecipient, uint256 _premintAmount, address _admin, address _dev)
        ERC20("CyberCity Token", "CYBR")
        RBAC(_admin)
    {
        require(_premintAmount <= MAX_SUPPLY, "Premint max supply overflow");

        devFee = 250; // 2,5%
        burnFee = 250; // 2,5%
        devFeeTo = _dev;
        if (!isMember(_dev)) {
            _members[_dev] = true;
        }
        if (!isMember(_premintRecipient)) {
            _members[_premintRecipient] = true;
        }

        _mint(_premintRecipient, _premintAmount);
    }

    /// @dev Creates `_amount` token to `_to`.
    function mint(address _to, uint256 _amount) external onlyRole(MINTER_ROLE) {
        _mint(_to, _amount);

        require(totalSupply() <= MAX_SUPPLY, "MAX_SUPPLY overflow");
    }

    // @dev Destroys `amount` tokens from the caller.
    function burn(uint256 _amount) external onlyRole(BURNER_ROLE) {
        _burn(_msgSender(), _amount);
    }

    // @dev Set burn fee percent. _percent depended on SYSTEM_DECIMAL
    function setBurnFee(uint256 _percent) external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(_percent + devFee <= SYSTEM_DECIMAL / 2, "SYSTEM_DECIMAL overset");

        burnFee = _percent;
        emit BurnFeeChanged(_percent);
    }

    // @dev Set dev fee percent.
    function setDevFee(uint256 _percent) external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(_percent + burnFee <= SYSTEM_DECIMAL / 2, "SYSTEM_DECIMAL overset");

        devFee = _percent;
        emit DevFeeChanged(_percent);
    }

    // @dev Set dev fee recipient.
    function setDevFeeTo(address _feeTo) external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(address(0) != _feeTo, "ZERO_ADDRESS");

        if (isMember(devFeeTo)) {
            _members[devFeeTo] = false;
        }
        if (!isMember(_feeTo)) {
            _members[_feeTo] = true;
        }

        devFeeTo = _feeTo;
        emit DevFeeToChanged(_feeTo);
    }

    // @dev Remove deflation.
    function disableAllFees() external onlyRole(DEFAULT_ADMIN_ROLE) {
        devFee = 0;
        burnFee = 0;

        emit DevFeeChanged(0);
        emit BurnFeeChanged(0);
    }

    // @dev See {ERC20-transfer}.
    function transfer(address _recipient, uint256 _amount)
        public
        override(ERC20)
        returns (bool)
    {
        if (isMember(_msgSender()) || isMember(_recipient)) {
            _transfer(_msgSender(), _recipient, _amount);
        } else {
            uint256 burned = _excludeFee(_amount, burnFee);
            uint256 toDev = _excludeFee(_amount, devFee);
            if (burned > 0) {
                _burn(_msgSender(), burned);
            }
            if (toDev > 0) {
                _transfer(_msgSender(), devFeeTo, toDev);
            }

            _transfer(_msgSender(), _recipient, (_amount - burned) - toDev);
        }

        return true;
    }

    // @dev See {ERC20-transferFrom}.
    function transferFrom(
        address _sender,
        address _recipient,
        uint256 _amount
    ) public override(ERC20) returns (bool) {
        uint256 currentAllowance = allowance(_sender, _msgSender());

        require(
            currentAllowance >= _amount,
            "ERC20: transfer amount exceeds allowance"
        );

        if (isMember(_sender) || isMember(_recipient)) {
            _transfer(_sender, _recipient, _amount);
        } else {
            uint256 burned = _excludeFee(_amount, burnFee);
            uint256 toDev = _excludeFee(_amount, devFee);
            if (burned > 0) {
                _burn(_sender, burned);
            }
            if (toDev > 0) {
                _transfer(_sender, devFeeTo, toDev);
            }

            _transfer(_sender, _recipient, (_amount - burned) - toDev);
        }

        _approve(_sender, _msgSender(), currentAllowance - _amount);

        return true;
    }

    // @dev Returns tx excluded amount and recipient amount.
    function estimateOutput(
        address _sender,
        address _recipient,
        uint256 _amountIn
    ) external view returns (uint256 amountOut, uint256 excluded) {
        if (isMember(_sender) || isMember(_recipient)) {
            amountOut = _amountIn;
        } else {
            uint256 burned = _excludeFee(_amountIn, burnFee);
            uint256 toDev = _excludeFee(_amountIn, devFee);
            amountOut = (_amountIn - burned) - toDev;
            excluded = burned + toDev;
        }
    }

    function _excludeFee(uint256 _amount, uint256 _fee)
        internal
        pure
        returns (uint256 excluded)
    {
        excluded = (_amount * _fee) / SYSTEM_DECIMAL;
    }

    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        if (antibotEnabled && address(antibot) != address(0)) {
            require(antibot.assureCanTransfer(from, to, amount), "Antibot: call protected");
        }
    }

    function setAntibotEnabled(bool enabled) external onlyRole(DEFAULT_ADMIN_ROLE) {
        antibotEnabled = enabled;
    }

    function setAntibotContractAddress(address address_) external onlyRole(DEFAULT_ADMIN_ROLE) {
        antibot = IAntibot(address_);
    }
}

File 2 of 16 : IAntibot.sol
// SPDX-License-Identifier: MIT

pragma solidity =0.8.10;

interface IAntibot {
    function assureCanTransfer(
        address from,
        address to,
        uint256 amount
    ) external returns (bool response);
}

File 3 of 16 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, _allowances[owner][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = _allowances[owner][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Spend `amount` form the allowance of `owner` toward `spender`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 4 of 16 : ExceptionalList.sol
// SPDX-License-Identifier: MIT

pragma solidity =0.8.10;

import "./RBAC.sol";

/**
 * @title ExceptionalList - exceptional list alike whitelist.
 */
abstract contract ExceptionalList is RBAC {
	event MemberAdded(address indexed member);
	event MemberRemoved(address indexed member);

	mapping(address => bool) internal _members;

	/**
	 * @dev A method to verify whether an address is a member of the whitelist
	 * @param _account The address to verify.
	 * @return Whether the address is a member of the whitelist.
	 */
	function isMember(address _account) public view returns (bool) {
		return _members[_account];
	}

	/**
	 * @dev A method to add a member to the whitelist
	 * @param _account The member to add as a member.
	 */
	function addMember(address _account) external onlyRole(EL_MANAGER_ROLE) {
		require(!isMember(_account), "Whitelist: Address is member already");

		_members[_account] = true;
		emit MemberAdded(_account);
	}

	/**
	 * @dev A method to add a member to the whitelist
	 * @param _accounts The _members to add as a member.
	 */
	function addMembers(address[] calldata _accounts) external onlyRole(EL_MANAGER_ROLE) {
		uint256 l = _accounts.length;
		uint256 i;
		for (i; i < l; i++) {
			require(
				!isMember(_accounts[i]),
				"Whitelist: Address is member already"
			);

			_members[_accounts[i]] = true;
			emit MemberAdded(_accounts[i]);
		}
	}

	/**
	 * @dev A method to remove a member from the whitelist
	 * @param _account The member to remove as a member.
	 */
	function removeMember(address _account) external onlyRole(EL_MANAGER_ROLE) {
		require(isMember(_account), "Whitelist: Not member of whitelist");

		delete _members[_account];
		emit MemberRemoved(_account);
	}

	/**
	 * @dev A method to remove a _members from the whitelist
	 * @param _accounts The _members to remove as a member.
	 */
	function removeMembers(address[] calldata _accounts) external onlyRole(EL_MANAGER_ROLE) {
		uint256 l = _accounts.length;
		uint256 i;
		for (i; i < l; i++) {
			require(
				isMember(_accounts[i]),
				"Whitelist: Address is no member"
			);

			delete _members[_accounts[i]];
			emit MemberRemoved(_accounts[i]);
		}
	}
}

File 5 of 16 : RBAC.sol
/// SPDX-License-Identifier: MIT

pragma solidity =0.8.10;

import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";

/**
 * @title RBAC - right based access control.
 */
contract RBAC is AccessControlEnumerable {
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");
    bytes32 public constant EL_MANAGER_ROLE = keccak256("EL_MANAGER_ROLE"); // exceptional list manager role

    constructor(address _admin) {
        _setupRole(DEFAULT_ADMIN_ROLE, _admin);
    }

    // @dev Returns roles hash.
    function getRoleHash(string memory _role) external pure returns (bytes32 hash) {
        hash = keccak256(abi.encodePacked(_role));
    }
}

File 6 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 7 of 16 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 8 of 16 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 9 of 16 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlEnumerable.sol";
import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override {
        super._grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override {
        super._revokeRole(role, account);
        _roleMembers[role].remove(account);
    }
}

File 10 of 16 : IAccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable is IAccessControl {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

File 11 of 16 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 12 of 16 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 13 of 16 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 14 of 16 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 15 of 16 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 16 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 10000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_premintRecipient","type":"address"},{"internalType":"uint256","name":"_premintAmount","type":"uint256"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_dev","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"percent","type":"uint256"}],"name":"BurnFeeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"percent","type":"uint256"}],"name":"DevFeeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"feeTo","type":"address"}],"name":"DevFeeToChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"member","type":"address"}],"name":"MemberAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"member","type":"address"}],"name":"MemberRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BURNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EL_MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SYSTEM_DECIMAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"addMember","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_accounts","type":"address[]"}],"name":"addMembers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"antibot","outputs":[{"internalType":"contract IAntibot","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"antibotEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devFeeTo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableAllFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amountIn","type":"uint256"}],"name":"estimateOutput","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"excluded","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_role","type":"string"}],"name":"getRoleHash","outputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isMember","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"removeMember","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_accounts","type":"address[]"}],"name":"removeMembers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"}],"name":"setAntibotContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setAntibotEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_percent","type":"uint256"}],"name":"setBurnFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_percent","type":"uint256"}],"name":"setDevFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeTo","type":"address"}],"name":"setDevFeeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162003186380380620031868339810160408190526200003491620005f3565b604080518082018252600f81526e21bcb132b921b4ba3c902a37b5b2b760891b60208083019182528351808501909452600484526321aca12960e11b90840152815185939162000088916003919062000530565b5080516200009e90600490602084019062000530565b50620000b091506000905082620001de565b506af8277896582678ac000000831115620001125760405162461bcd60e51b815260206004820152601b60248201527f5072656d696e74206d617820737570706c79206f766572666c6f77000000000060448201526064015b60405180910390fd5b60fa6009819055600a55600880546001600160a01b0319166001600160a01b0383161790556200015a816001600160a01b031660009081526007602052604090205460ff1690565b62000183576001600160a01b0381166000908152600760205260409020805460ff191660011790555b6001600160a01b03841660009081526007602052604090205460ff16620001c8576001600160a01b0384166000908152600760205260409020805460ff191660011790555b620001d48484620001ee565b50505050620006d6565b620001ea8282620002dd565b5050565b6001600160a01b038216620002465760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640162000109565b80600260008282546200025a919062000647565b90915550506001600160a01b038216600090815260208190526040812080548392906200028990849062000647565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3620001ea6000838362000320565b620002f482826200041a60201b620016951760201c565b60008281526006602090815260409091206200031b91839062001737620004be821b17901c565b505050565b600b54600160a01b900460ff168015620003445750600b546001600160a01b031615155b156200031b57600b5460405163cddd4fe760e01b81526001600160a01b0385811660048301528481166024830152604482018490529091169063cddd4fe7906064016020604051808303816000875af1158015620003a6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003cc91906200066e565b6200031b5760405162461bcd60e51b815260206004820152601760248201527f416e7469626f743a2063616c6c2070726f746563746564000000000000000000604482015260640162000109565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff16620001ea5760008281526005602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200047a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000620004d5836001600160a01b038416620004de565b90505b92915050565b60008181526001830160205260408120546200052757508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620004d8565b506000620004d8565b8280546200053e9062000699565b90600052602060002090601f016020900481019282620005625760008555620005ad565b82601f106200057d57805160ff1916838001178555620005ad565b82800160010185558215620005ad579182015b82811115620005ad57825182559160200191906001019062000590565b50620005bb929150620005bf565b5090565b5b80821115620005bb5760008155600101620005c0565b80516001600160a01b0381168114620005ee57600080fd5b919050565b600080600080608085870312156200060a57600080fd5b6200061585620005d6565b9350602085015192506200062c60408601620005d6565b91506200063c60608601620005d6565b905092959194509250565b600082198211156200066957634e487b7160e01b600052601160045260246000fd5b500190565b6000602082840312156200068157600080fd5b815180151581146200069257600080fd5b9392505050565b600181811c90821680620006ae57607f821691505b60208210811415620006d057634e487b7160e01b600052602260045260246000fd5b50919050565b612aa080620006e66000396000f3fe608060405234801561001057600080fd5b50600436106102ff5760003560e01c806356fb18131161019c578063a230c524116100ee578063d539139311610097578063f275f1af11610071578063f275f1af14610706578063f2f3125f14610719578063fce589d81461072c57600080fd5b8063d539139314610693578063d547741f146106ba578063dd62ed3e146106cd57600080fd5b8063b9f7c3e3116100c8578063b9f7c3e314610645578063ca15c8731461066d578063ca6d56dc1461068057600080fd5b8063a230c524146105f3578063a457c2d71461061f578063a9059cbb1461063257600080fd5b80638db07c4d1161015057806391d148541161012a57806391d14854146105aa57806395d89b41146105e3578063a217fddf146105eb57600080fd5b80638db07c4d1461057b5780638e2587971461058e5780639010d07c1461059757600080fd5b80636f4d469b116101815780636f4d469b1461053757806370a082311461054a578063741af87f1461057357600080fd5b806356fb1813146105075780636827e7641461052e57600080fd5b80632f2ff15d11610255578063395093511161020957806342966c68116101e357806342966c68146104ce57806346ee84b0146104e15780634bf2c7c9146104f457600080fd5b8063395093511461048357806340c10f191461049657806341bf9fdc146104a957600080fd5b8063313ce5671161023a578063313ce5671461044f57806332cb6b0c1461045e57806336568abe1461047057600080fd5b80632f2ff15d14610411578063305c4c801461042457600080fd5b806318160ddd116102b757806323b872dd1161029157806323b872dd146103b4578063248a9ca3146103c7578063282c51f3146103ea57600080fd5b806318160ddd1461037c5780631c75b6b21461038e57806321a45442146103a157600080fd5b8063095ea7b3116102e8578063095ea7b3146103415780630b1ca49a146103545780631655222c1461036957600080fd5b806301ffc9a71461030457806306fdde031461032c575b600080fd5b61031761031236600461242c565b610735565b60405190151581526020015b60405180910390f35b610334610791565b604051610323919061249a565b61031761034f366004612507565b610823565b610367610362366004612531565b61083b565b005b610367610377366004612531565b610943565b6002545b604051908152602001610323565b61036761039c36600461254c565b61098a565b6103676103af366004612531565b610a32565b6103176103c2366004612565565b610b81565b6103806103d536600461254c565b60009081526005602052604090206001015490565b6103807f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b61036761041f3660046125a1565b610ce9565b600b54610437906001600160a01b031681565b6040516001600160a01b039091168152602001610323565b60405160128152602001610323565b6103806af8277896582678ac00000081565b61036761047e3660046125a1565b610d14565b610317610491366004612507565b610da0565b6103676104a4366004612507565b610dda565b600b546103179074010000000000000000000000000000000000000000900460ff1681565b6103676104dc36600461254c565b610e72565b6103676104ef3660046125cd565b610ea8565b61036761050236600461254c565b611016565b6103807f65b3ba3a6da189f238630a0785fb22201c8645fc92e56e8b9f043d897519324881565b61038060095481565b6103676105453660046125cd565b6110be565b610380610558366004612531565b6001600160a01b031660009081526020819052604090205490565b61036761123f565b600854610437906001600160a01b031681565b61038061271081565b6104376105a5366004612642565b6112ad565b6103176105b83660046125a1565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6103346112cc565b610380600081565b610317610601366004612531565b6001600160a01b031660009081526007602052604090205460ff1690565b61031761062d366004612507565b6112db565b610317610640366004612507565b611385565b610658610653366004612565565b61142f565b60408051928352602083019190915201610323565b61038061067b36600461254c565b6114cb565b61036761068e366004612531565b6114e2565b6103807f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6103676106c83660046125a1565b6115e8565b6103806106db366004612664565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6103806107143660046126bd565b61160e565b61036761072736600461279d565b61163e565b610380600a5481565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f5a05180f00000000000000000000000000000000000000000000000000000000148061078b575061078b8261174c565b92915050565b6060600380546107a0906127ba565b80601f01602080910402602001604051908101604052809291908181526020018280546107cc906127ba565b80156108195780601f106107ee57610100808354040283529160200191610819565b820191906000526020600020905b8154815290600101906020018083116107fc57829003601f168201915b5050505050905090565b6000336108318185856117e3565b5060019392505050565b7f65b3ba3a6da189f238630a0785fb22201c8645fc92e56e8b9f043d8975193248610866813361193b565b6001600160a01b03821660009081526007602052604090205460ff166108f95760405162461bcd60e51b815260206004820152602260248201527f57686974656c6973743a204e6f74206d656d626572206f662077686974656c6960448201527f737400000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6001600160a01b038216600081815260076020526040808220805460ff19169055517f6e76fb4c77256006d9c38ec7d82b45a8c8f3c27b1d6766fffc42dfb8de6844929190a25050565b600061094f813361193b565b50600b80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000610996813361193b565b6109a3600261271061283d565b600a546109b09084612878565b11156109fe5760405162461bcd60e51b815260206004820152601660248201527f53595354454d5f444543494d414c206f7665727365740000000000000000000060448201526064016108f0565b600982905560405182907f65822b56009ccbc2bbd8ac032421c4fe100d6ad3aff3cd54751bf6b0e3c301cb90600090a25050565b6000610a3e813361193b565b6001600160a01b038216610a945760405162461bcd60e51b815260206004820152600c60248201527f5a45524f5f41444452455353000000000000000000000000000000000000000060448201526064016108f0565b6008546001600160a01b031660009081526007602052604090205460ff1615610ada576008546001600160a01b03166000908152600760205260409020805460ff191690555b6001600160a01b03821660009081526007602052604090205460ff16610b1e576001600160a01b0382166000908152600760205260409020805460ff191660011790555b600880547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384169081179091556040517f6534da0f33b8a3c1847ff97fc4638a78c6c29d7c6db0c675f6e0c7e3cbb2c33390600090a25050565b600080610b8e85336106db565b905082811015610c065760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084016108f0565b6001600160a01b03851660009081526007602052604090205460ff1680610c4557506001600160a01b03841660009081526007602052604090205460ff165b15610c5a57610c558585856119d9565b610cca565b6000610c6884600a54611bfc565b90506000610c7885600954611bfc565b90508115610c8a57610c8a8783611c15565b8015610ca857600854610ca89088906001600160a01b0316836119d9565b610cc7878783610cb8868a612890565b610cc29190612890565b6119d9565b50505b610cde8533610cd98685612890565b6117e3565b506001949350505050565b600082815260056020526040902060010154610d05813361193b565b610d0f8383611da1565b505050565b6001600160a01b0381163314610d925760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016108f0565b610d9c8282611dc3565b5050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906108319082908690610cd9908790612878565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610e05813361193b565b610e0f8383611de5565b6af8277896582678ac000000610e2460025490565b1115610d0f5760405162461bcd60e51b815260206004820152601360248201527f4d41585f535550504c59206f766572666c6f770000000000000000000000000060448201526064016108f0565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848610e9d813361193b565b610d9c335b83611c15565b7f65b3ba3a6da189f238630a0785fb22201c8645fc92e56e8b9f043d8975193248610ed3813361193b565b8160005b8181101561100f57610f09858583818110610ef457610ef46128a7565b90506020020160208101906106019190612531565b610f555760405162461bcd60e51b815260206004820152601f60248201527f57686974656c6973743a2041646472657373206973206e6f206d656d6265720060448201526064016108f0565b60076000868684818110610f6b57610f6b6128a7565b9050602002016020810190610f809190612531565b6001600160a01b031681526020810191909152604001600020805460ff19169055848482818110610fb357610fb36128a7565b9050602002016020810190610fc89190612531565b6001600160a01b03167f6e76fb4c77256006d9c38ec7d82b45a8c8f3c27b1d6766fffc42dfb8de68449260405160405180910390a280611007816128d6565b915050610ed7565b5050505050565b6000611022813361193b565b61102f600261271061283d565b60095461103c9084612878565b111561108a5760405162461bcd60e51b815260206004820152601660248201527f53595354454d5f444543494d414c206f7665727365740000000000000000000060448201526064016108f0565b600a82905560405182907f68dac930a93153dffb1740de0efe1723955196bf1aacbe0cbe5419cd922d1ab390600090a25050565b7f65b3ba3a6da189f238630a0785fb22201c8645fc92e56e8b9f043d89751932486110e9813361193b565b8160005b8181101561100f5761110a858583818110610ef457610ef46128a7565b1561117c5760405162461bcd60e51b8152602060048201526024808201527f57686974656c6973743a2041646472657373206973206d656d62657220616c7260448201527f656164790000000000000000000000000000000000000000000000000000000060648201526084016108f0565b600160076000878785818110611194576111946128a7565b90506020020160208101906111a99190612531565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558484828181106111e3576111e36128a7565b90506020020160208101906111f89190612531565b6001600160a01b03167fb251eb052afc73ffd02ffe85ad79990a8b3fed60d76dbc2fa2fdd7123dffd91460405160405180910390a280611237816128d6565b9150506110ed565b600061124b813361193b565b60006009819055600a8190556040517f65822b56009ccbc2bbd8ac032421c4fe100d6ad3aff3cd54751bf6b0e3c301cb908290a26040516000907f68dac930a93153dffb1740de0efe1723955196bf1aacbe0cbe5419cd922d1ab3908290a250565b60008281526006602052604081206112c59083611ecc565b9392505050565b6060600480546107a0906127ba565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156113785760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016108f0565b610cde82868684036117e3565b600061139033610601565b806113b357506001600160a01b03831660009081526007602052604090205460ff165b156113c8576113c33384846119d9565b611426565b60006113d683600a54611bfc565b905060006113e684600954611bfc565b905081156113f7576113f733610ea2565b801561141357611413336008546001600160a01b0316836119d9565b611423338683610cb88689612890565b50505b50600192915050565b6001600160a01b038316600090815260076020526040812054819060ff168061147057506001600160a01b03841660009081526007602052604090205460ff165b1561147d578291506114c3565b600061148b84600a54611bfc565b9050600061149b85600954611bfc565b9050806114a88387612890565b6114b29190612890565b93506114be8183612878565b925050505b935093915050565b600081815260066020526040812061078b90611ed8565b7f65b3ba3a6da189f238630a0785fb22201c8645fc92e56e8b9f043d897519324861150d813361193b565b6001600160a01b03821660009081526007602052604090205460ff161561159b5760405162461bcd60e51b8152602060048201526024808201527f57686974656c6973743a2041646472657373206973206d656d62657220616c7260448201527f656164790000000000000000000000000000000000000000000000000000000060648201526084016108f0565b6001600160a01b038216600081815260076020526040808220805460ff19166001179055517fb251eb052afc73ffd02ffe85ad79990a8b3fed60d76dbc2fa2fdd7123dffd9149190a25050565b600082815260056020526040902060010154611604813361193b565b610d0f8383611dc3565b600081604051602001611621919061290f565b604051602081830303815290604052805190602001209050919050565b600061164a813361193b565b50600b805491151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff16610d9c5760008281526005602090815260408083206001600160a01b03851684529091529020805460ff191660011790556116f33390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006112c5836001600160a01b038416611ee2565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061078b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161461078b565b6001600160a01b03831661185e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016108f0565b6001600160a01b0382166118da5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016108f0565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff16610d9c57611979816001600160a01b03166014611f31565b611984836020611f31565b60405160200161199592919061292b565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905262461bcd60e51b82526108f09160040161249a565b6001600160a01b038316611a555760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016108f0565b6001600160a01b038216611ad15760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016108f0565b6001600160a01b03831660009081526020819052604090205481811015611b605760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016108f0565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611b97908490612878565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611be391815260200190565b60405180910390a3611bf684848461215a565b50505050565b6000612710611c0b83856129ac565b6112c5919061283d565b6001600160a01b038216611c915760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016108f0565b6001600160a01b03821660009081526020819052604090205481811015611d205760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016108f0565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611d4f908490612890565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3610d0f8360008461215a565b611dab8282611695565b6000828152600660205260409020610d0f9082611737565b611dcd8282612277565b6000828152600660205260409020610d0f90826122fa565b6001600160a01b038216611e3b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016108f0565b8060026000828254611e4d9190612878565b90915550506001600160a01b03821660009081526020819052604081208054839290611e7a908490612878565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3610d9c6000838361215a565b60006112c5838361230f565b600061078b825490565b6000818152600183016020526040812054611f295750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561078b565b50600061078b565b60606000611f408360026129ac565b611f4b906002612878565b67ffffffffffffffff811115611f6357611f6361268e565b6040519080825280601f01601f191660200182016040528015611f8d576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611fc457611fc46128a7565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612027576120276128a7565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006120638460026129ac565b61206e906001612878565b90505b600181111561210b577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106120af576120af6128a7565b1a60f81b8282815181106120c5576120c56128a7565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93612104816129e9565b9050612071565b5083156112c55760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016108f0565b600b5474010000000000000000000000000000000000000000900460ff16801561218e5750600b546001600160a01b031615155b15610d0f57600b546040517fcddd4fe70000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301528481166024830152604482018490529091169063cddd4fe7906064016020604051808303816000875af1158015612207573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061222b9190612a1e565b610d0f5760405162461bcd60e51b815260206004820152601760248201527f416e7469626f743a2063616c6c2070726f74656374656400000000000000000060448201526064016108f0565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff1615610d9c5760008281526005602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006112c5836001600160a01b038416612339565b6000826000018281548110612326576123266128a7565b9060005260206000200154905092915050565b6000818152600183016020526040812054801561242257600061235d600183612890565b855490915060009061237190600190612890565b90508181146123d6576000866000018281548110612391576123916128a7565b90600052602060002001549050808760000184815481106123b4576123b46128a7565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806123e7576123e7612a3b565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061078b565b600091505061078b565b60006020828403121561243e57600080fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146112c557600080fd5b60005b83811015612489578181015183820152602001612471565b83811115611bf65750506000910152565b60208152600082518060208401526124b981604085016020870161246e565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b80356001600160a01b038116811461250257600080fd5b919050565b6000806040838503121561251a57600080fd5b612523836124eb565b946020939093013593505050565b60006020828403121561254357600080fd5b6112c5826124eb565b60006020828403121561255e57600080fd5b5035919050565b60008060006060848603121561257a57600080fd5b612583846124eb565b9250612591602085016124eb565b9150604084013590509250925092565b600080604083850312156125b457600080fd5b823591506125c4602084016124eb565b90509250929050565b600080602083850312156125e057600080fd5b823567ffffffffffffffff808211156125f857600080fd5b818501915085601f83011261260c57600080fd5b81358181111561261b57600080fd5b8660208260051b850101111561263057600080fd5b60209290920196919550909350505050565b6000806040838503121561265557600080fd5b50508035926020909101359150565b6000806040838503121561267757600080fd5b612680836124eb565b91506125c4602084016124eb565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000602082840312156126cf57600080fd5b813567ffffffffffffffff808211156126e757600080fd5b818401915084601f8301126126fb57600080fd5b81358181111561270d5761270d61268e565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019083821181831017156127535761275361268e565b8160405282815287602084870101111561276c57600080fd5b826020860160208301376000928101602001929092525095945050505050565b801515811461279a57600080fd5b50565b6000602082840312156127af57600080fd5b81356112c58161278c565b600181811c908216806127ce57607f821691505b60208210811415612808577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082612873577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000821982111561288b5761288b61280e565b500190565b6000828210156128a2576128a261280e565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156129085761290861280e565b5060010190565b6000825161292181846020870161246e565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161296381601785016020880161246e565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516129a081602884016020880161246e565b01602801949350505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156129e4576129e461280e565b500290565b6000816129f8576129f861280e565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600060208284031215612a3057600080fd5b81516112c58161278c565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea26469706673582212201f99f6daf24b7984fa4828de0545a5fc4b9dd725a5c05c46b88effa6a294619764736f6c634300080a00330000000000000000000000003fb29fca35eadcb81a1033ad99b99b46f39b3c3f0000000000000000000000000000000000000000001f04ef12cb04cf158000000000000000000000000000003fb29fca35eadcb81a1033ad99b99b46f39b3c3f0000000000000000000000003fb29fca35eadcb81a1033ad99b99b46f39b3c3f

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000003fb29fca35eadcb81a1033ad99b99b46f39b3c3f0000000000000000000000000000000000000000001f04ef12cb04cf158000000000000000000000000000003fb29fca35eadcb81a1033ad99b99b46f39b3c3f0000000000000000000000003fb29fca35eadcb81a1033ad99b99b46f39b3c3f

-----Decoded View---------------
Arg [0] : _premintRecipient (address): 0x3fb29fca35eadcb81a1033ad99b99b46f39b3c3f
Arg [1] : _premintAmount (uint256): 37500000000000000000000000
Arg [2] : _admin (address): 0x3fb29fca35eadcb81a1033ad99b99b46f39b3c3f
Arg [3] : _dev (address): 0x3fb29fca35eadcb81a1033ad99b99b46f39b3c3f

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000003fb29fca35eadcb81a1033ad99b99b46f39b3c3f
Arg [1] : 0000000000000000000000000000000000000000001f04ef12cb04cf15800000
Arg [2] : 0000000000000000000000003fb29fca35eadcb81a1033ad99b99b46f39b3c3f
Arg [3] : 0000000000000000000000003fb29fca35eadcb81a1033ad99b99b46f39b3c3f


Loading