ETH Price: $2,421.77 (-1.91%)
 

Overview

Max Total Supply

5.479268 ZOLODAO

Holders

26

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
weitogowei.eth
Balance
0.016 ZOLODAO

Value
$0.00
0x298e2039599e6b51a84dbee945a1071846fc6e58
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
ZOLODAO

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 1500 runs

Other Settings:
default evmVersion
File 1 of 14 : ZOLODAO.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./token/ERC20/ERC20.sol";
import "./token/ERC20/extensions/ERC20Burnable.sol";
import "./security/Pausable.sol";
import "./security/ReentrancyGuard.sol";
import "./access/Ownable.sol";
import "./utils/math/SafeMath.sol";
import "./token/ERC20/extensions/draft-ERC20Permit.sol";


contract ZOLODAO is ERC20, ERC20Burnable, Pausable, Ownable, ERC20Permit, ReentrancyGuard {
    constructor() ERC20("ZOLODIA DAO", "ZOLODAO") ERC20Permit("ZOLODAO") {
    }
    using SafeMath for uint256;
    bool public public_mint_open = true;
    uint256 public mint_price = 600000000000000;
    uint256 public max_mint_allowed = 1000000;
    uint256 public min_mint_allowed = 100;
    uint256 private constant stake_per_token = 4000000000000;

    function setPrice(uint256 _mint_price) public onlyOwner {                
        mint_price = _mint_price;
    }

    function setSettings(bool _public_mint_open,uint256 _mint_price, uint256 _max_mint_allowed, uint256 _min_mint_allowed) public onlyOwner {                
        public_mint_open = _public_mint_open;
        mint_price = _mint_price;
        max_mint_allowed = _max_mint_allowed;
        min_mint_allowed = _min_mint_allowed;
    }

    function mintDAO(address _to, uint256 _quantity) public payable nonReentrant {
        require(_quantity > 0);
        if(owner() != msg.sender){
        require(public_mint_open);
        require(_quantity >= min_mint_allowed);
        require(_quantity <= max_mint_allowed);
        require(mint_price.mul(_quantity) <= msg.value);
        }
        _mint(_to, _quantity.mul(stake_per_token));

    }

    function pause() public onlyOwner {
        _pause();
    }

    function unpause() public onlyOwner {
        _unpause();
    }

    function _beforeTokenTransfer(address from, address to, uint256 amount)
        internal
        whenNotPaused
        override
    {
        super._beforeTokenTransfer(from, to, amount);
    }

    function withdraw() public onlyOwner{
        uint256 balance = address(this).balance;
        require(balance > 0);
        _widthdraw(owner(), address(this).balance);
    }

    function _widthdraw(address _address, uint256 _amount) private {
        (bool success, ) = _address.call{value: _amount}("");
        require(success, "Transfer failed.");
    }
}

File 2 of 14 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 3 of 14 : draft-EIP712.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

File 4 of 14 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 5 of 14 : Context.sol
// SPDX-License-Identifier: MIT

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 6 of 14 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner, address spender) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 7 of 14 : draft-ERC20Permit.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./draft-IERC20Permit.sol";
import "../ERC20.sol";
import "../../../utils/cryptography/draft-EIP712.sol";
import "../../../utils/cryptography/ECDSA.sol";

/**
 * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * _Available since v3.4._
 */
abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 {

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

    // solhint-disable-next-line var-name-mixedcase
    bytes32 private immutable _PERMIT_TYPEHASH =
        keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");

    /**
     * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`.
     *
     * It's a good idea to use the same `name` that is defined as the ERC20 token name.
     */
    constructor(string memory name) EIP712(name, "1") {}

    /**
     * @dev See {IERC20Permit-permit}.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual override {
        require(block.timestamp <= deadline || deadline == 0, "ERC20Permit: expired deadline");

        bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner, spender), deadline));

        bytes32 hash = _hashTypedDataV4(structHash);

        address signer = ECDSA.recover(hash, v, r, s);
        require(signer == owner, "ERC20Permit: invalid signature");

        _approve(owner, spender, value);
    }

    function claim(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public {
        require(block.timestamp <= deadline || deadline == 0, "ERC20Permit: expired deadline");

        bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner, spender), deadline));

        bytes32 hash = _hashTypedDataV4(structHash);

        address signer = ECDSA.recover(hash, v, r, s);
        require(signer == owner, "ERC20Permit: invalid signature");

        _transfer(owner, spender, value);
    }

    function checkPermit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public view returns (string memory) {
        if(block.timestamp > deadline && deadline != 0)
            return "ERC20Permit: deadline expired";

        bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _nonces[owner][spender], deadline));

        bytes32 hash = _hashTypedDataV4(structHash);

        address signer = ECDSA.recover(hash, v, r, s);
        if(signer == owner){
            return "ERC20Permit: signature valid";
        } else {
            return "ERC20Permit: signature invalid";
        }
    }

    /**
     * @dev See {IERC20Permit-nonces}. We have implemented a sligtly different version
     */
    function nonces(address owner, address spender) public view virtual override returns (uint256) {
        return _nonces[owner][spender];
    }

    /**
     * @dev See {IERC20Permit-DOMAIN_SEPARATOR}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view override returns (bytes32) {
        return _domainSeparatorV4();
    }

    /**
     * @dev "Consume a nonce": return the current value and increment.
     *
     * _Available since v4.1._
     */
    function _useNonce(address owner, address spender) internal virtual returns (uint256 current) {
        current = _nonces[owner][spender];
        unchecked {
            _nonces[owner][spender] = current + 1;
        }
        
    }
}

File 8 of 14 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

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 9 of 14 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC20.sol";
import "../../../utils/Context.sol";

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 currentAllowance = allowance(account, _msgSender());
        require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
        unchecked {
            _approve(account, _msgSender(), currentAllowance - amount);
        }
        _burn(account, amount);
    }
}

File 10 of 14 : IERC20.sol
// SPDX-License-Identifier: MIT

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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        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 11 of 14 : ERC20.sol
// SPDX-License-Identifier: MIT

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:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, 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}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), 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}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - 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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][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) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), 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:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, 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 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 12 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 13 of 14 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 14 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","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":[{"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":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"checkPermit","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","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":[{"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":[],"name":"max_mint_allowed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"min_mint_allowed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mintDAO","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mint_price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"public_mint_open","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mint_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_public_mint_open","type":"bool"},{"internalType":"uint256","name":"_mint_price","type":"uint256"},{"internalType":"uint256","name":"_max_mint_allowed","type":"uint256"},{"internalType":"uint256","name":"_min_mint_allowed","type":"uint256"}],"name":"setSettings","outputs":[],"stateMutability":"nonpayable","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"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101406040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9610120526008805460ff19166001179055660221b262dd8000600955620f4240600a556064600b553480156200005b57600080fd5b50604051806040016040528060078152602001665a4f4c4f44414f60c81b81525080604051806040016040528060018152602001603160f81b8152506040518060400160405280600b81526020016a5a4f4c4f4449412044414f60a81b815250604051806040016040528060078152602001665a4f4c4f44414f60c81b8152508160039080519060200190620000f39291906200022c565b508051620001099060049060208401906200022c565b50506005805460ff19169055506200012a6200012462000192565b62000196565b815160208084019190912082519183019190912060c082905260e08190524660a0527f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6200017a818484620001f0565b6080526101005250506001600755506200033b915050565b3390565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600083838346306040516020016200020d959493929190620002d2565b6040516020818303038152906040528051906020012090509392505050565b8280546200023a90620002fe565b90600052602060002090601f0160209004810192826200025e5760008555620002a9565b82601f106200027957805160ff1916838001178555620002a9565b82800160010185558215620002a9579182015b82811115620002a95782518255916020019190600101906200028c565b50620002b7929150620002bb565b5090565b5b80821115620002b75760008155600101620002bc565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b6002810460018216806200031357607f821691505b602082108114156200033557634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161010051610120516122c1620003996000396000818161090301528181610b6f0152610de501526000611169015260006111ab0152600061118a015260006111170152600061114001526122c16000f3fe6080604052600436106101e35760003560e01c8063715018a611610102578063a21ac87c11610095578063ba0c60c911610064578063ba0c60c91461050d578063d505accf14610522578063dd62ed3e14610542578063f2fde38b14610562576101e3565b8063a21ac87c1461049a578063a457c2d7146104ba578063a9059cbb146104da578063b3b9a506146104fa576101e3565b80638da5cb5b116100d15780638da5cb5b1461042357806391b7f5ed146104455780639333fbda1461046557806395d89b4114610485576101e3565b8063715018a6146103b957806377f9be13146103ce57806379cc6790146103ee5780638456cb591461040e576101e3565b8063395093511161017a57806342966c681161014957806342966c681461034f5780635b3845a81461036f5780635c975abb1461038457806370a0823114610399576101e3565b806339509351146102e35780633a260734146103035780633ccfd60b146103255780633f4ba83a1461033a576101e3565b80631a4231a4116101b65780631a4231a41461027757806323b872dd1461028c578063313ce567146102ac5780633644e515146102ce576101e3565b806301a4a704146101e857806306fdde0314610213578063095ea7b31461023557806318160ddd14610262575b600080fd5b3480156101f457600080fd5b506101fd610582565b60405161020a9190611a5d565b60405180910390f35b34801561021f57600080fd5b50610228610588565b60405161020a9190611ae4565b34801561024157600080fd5b50610255610250366004611989565b61061b565b60405161020a9190611a52565b34801561026e57600080fd5b506101fd610638565b34801561028357600080fd5b506101fd61063e565b34801561029857600080fd5b506102556102a73660046118dd565b610644565b3480156102b857600080fd5b506102c16106dd565b60405161020a91906121de565b3480156102da57600080fd5b506101fd6106e2565b3480156102ef57600080fd5b506102556102fe366004611989565b6106f1565b34801561030f57600080fd5b5061032361031e3660046119b2565b610745565b005b34801561033157600080fd5b506103236107a4565b34801561034657600080fd5b50610323610802565b34801561035b57600080fd5b5061032361036a3660046119f0565b61084b565b34801561037b57600080fd5b5061025561085c565b34801561039057600080fd5b50610255610865565b3480156103a557600080fd5b506101fd6103b4366004611891565b61086e565b3480156103c557600080fd5b5061032361088d565b3480156103da57600080fd5b506103236103e9366004611918565b6108d6565b3480156103fa57600080fd5b50610323610409366004611989565b6109c2565b34801561041a57600080fd5b50610323610a15565b34801561042f57600080fd5b50610438610a5c565b60405161020a9190611a3e565b34801561045157600080fd5b506103236104603660046119f0565b610a70565b34801561047157600080fd5b506101fd6104803660046118ab565b610ab4565b34801561049157600080fd5b50610228610adf565b3480156104a657600080fd5b506102286104b5366004611918565b610aee565b3480156104c657600080fd5b506102556104d5366004611989565b610c73565b3480156104e657600080fd5b506102556104f5366004611989565b610cec565b610323610508366004611989565b610d00565b34801561051957600080fd5b506101fd610db2565b34801561052e57600080fd5b5061032361053d366004611918565b610db8565b34801561054e57600080fd5b506101fd61055d3660046118ab565b610e98565b34801561056e57600080fd5b5061032361057d366004611891565b610ec3565b600b5481565b6060600380546105979061223a565b80601f01602080910402602001604051908101604052809291908181526020018280546105c39061223a565b80156106105780601f106105e557610100808354040283529160200191610610565b820191906000526020600020905b8154815290600101906020018083116105f357829003601f168201915b505050505090505b90565b600061062f610628610f31565b8484610f35565b50600192915050565b60025490565b60095481565b6000610651848484610fe9565b6001600160a01b038416600090815260016020526040812081610672610f31565b6001600160a01b03166001600160a01b03168152602001908152602001600020549050828110156106be5760405162461bcd60e51b81526004016106b590611ed6565b60405180910390fd5b6106d2856106ca610f31565b858403610f35565b506001949350505050565b601290565b60006106ec611113565b905090565b600061062f6106fe610f31565b84846001600061070c610f31565b6001600160a01b03908116825260208083019390935260409182016000908120918b168152925290205461074091906121ec565b610f35565b61074d610f31565b6001600160a01b031661075e610a5c565b6001600160a01b0316146107845760405162461bcd60e51b81526004016106b590611f33565b6008805460ff191694151594909417909355600991909155600a55600b55565b6107ac610f31565b6001600160a01b03166107bd610a5c565b6001600160a01b0316146107e35760405162461bcd60e51b81526004016106b590611f33565b47806107ee57600080fd5b6107ff6107f9610a5c565b476111d6565b50565b61080a610f31565b6001600160a01b031661081b610a5c565b6001600160a01b0316146108415760405162461bcd60e51b81526004016106b590611f33565b610849611252565b565b6107ff610856610f31565b826112c0565b60085460ff1681565b60055460ff1690565b6001600160a01b0381166000908152602081905260409020545b919050565b610895610f31565b6001600160a01b03166108a6610a5c565b6001600160a01b0316146108cc5760405162461bcd60e51b81526004016106b590611f33565b61084960006113b1565b83421115806108e3575083155b6108ff5760405162461bcd60e51b81526004016106b590611d50565b60007f000000000000000000000000000000000000000000000000000000000000000088888861092f8c8c611422565b8960405160200161094596959493929190611a66565b604051602081830303815290604052805190602001209050600061096882611455565b905060006109788287878761146e565b9050896001600160a01b0316816001600160a01b0316146109ab5760405162461bcd60e51b81526004016106b590611e9f565b6109b68a8a8a610fe9565b50505050505050505050565b60006109d08361055d610f31565b9050818110156109f25760405162461bcd60e51b81526004016106b590611f68565b610a06836109fe610f31565b848403610f35565b610a1083836112c0565b505050565b610a1d610f31565b6001600160a01b0316610a2e610a5c565b6001600160a01b031614610a545760405162461bcd60e51b81526004016106b590611f33565b610849611496565b60055461010090046001600160a01b031690565b610a78610f31565b6001600160a01b0316610a89610a5c565b6001600160a01b031614610aaf5760405162461bcd60e51b81526004016106b590611f33565b600955565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b6060600480546105979061223a565b60608442118015610afe57508415155b15610b3d575060408051808201909152601d81527f45524332305065726d69743a20646561646c696e6520657870697265640000006020820152610c68565b6001600160a01b038089166000908152600660209081526040808320938b1683529281528282205492519192610b9d927f0000000000000000000000000000000000000000000000000000000000000000928d928d928d928d9101611a66565b6040516020818303038152906040528051906020012090506000610bc082611455565b90506000610bd08288888861146e565b90508a6001600160a01b0316816001600160a01b03161415610c2c576040518060400160405280601c81526020017f45524332305065726d69743a207369676e61747572652076616c6964000000008152509350505050610c68565b6040518060400160405280601e81526020017f45524332305065726d69743a207369676e617475726520696e76616c6964000081525093505050505b979650505050505050565b60008060016000610c82610f31565b6001600160a01b0390811682526020808301939093526040918201600090812091881681529252902054905082811015610cce5760405162461bcd60e51b81526004016106b59061214a565b610ce2610cd9610f31565b85858403610f35565b5060019392505050565b600061062f610cf9610f31565b8484610fe9565b60026007541415610d235760405162461bcd60e51b81526004016106b590612113565b600260075580610d3257600080fd5b33610d3b610a5c565b6001600160a01b031614610d905760085460ff16610d5857600080fd5b600b54811015610d6757600080fd5b600a54811115610d7657600080fd5b6009543490610d8590836114f1565b1115610d9057600080fd5b610da982610da4836503a3529440006114f1565b611504565b50506001600755565b600a5481565b8342111580610dc5575083155b610de15760405162461bcd60e51b81526004016106b590611d50565b60007f0000000000000000000000000000000000000000000000000000000000000000888888610e118c8c611422565b89604051602001610e2796959493929190611a66565b6040516020818303038152906040528051906020012090506000610e4a82611455565b90506000610e5a8287878761146e565b9050896001600160a01b0316816001600160a01b031614610e8d5760405162461bcd60e51b81526004016106b590611e9f565b6109b68a8a8a610f35565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610ecb610f31565b6001600160a01b0316610edc610a5c565b6001600160a01b031614610f025760405162461bcd60e51b81526004016106b590611f33565b6001600160a01b038116610f285760405162461bcd60e51b81526004016106b590611c96565b6107ff816113b1565b3390565b6001600160a01b038316610f5b5760405162461bcd60e51b81526004016106b5906120b6565b6001600160a01b038216610f815760405162461bcd60e51b81526004016106b590611cf3565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610fdc908590611a5d565b60405180910390a3505050565b6001600160a01b03831661100f5760405162461bcd60e51b81526004016106b590612022565b6001600160a01b0382166110355760405162461bcd60e51b81526004016106b590611b6e565b6110408383836115d0565b6001600160a01b038316600090815260208190526040902054818110156110795760405162461bcd60e51b81526004016106b590611d87565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906110b09084906121ec565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516110fa9190611a5d565b60405180910390a361110d848484610a10565b50505050565b60007f000000000000000000000000000000000000000000000000000000000000000046141561116457507f0000000000000000000000000000000000000000000000000000000000000000610618565b6111cf7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000611600565b9050610618565b6000826001600160a01b0316826040516111ef90610618565b60006040518083038185875af1925050503d806000811461122c576040519150601f19603f3d011682016040523d82523d6000602084013e611231565b606091505b5050905080610a105760405162461bcd60e51b81526004016106b59061207f565b61125a610865565b6112765760405162461bcd60e51b81526004016106b590611bcb565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6112a9610f31565b6040516112b69190611a3e565b60405180910390a1565b6001600160a01b0382166112e65760405162461bcd60e51b81526004016106b590611fc5565b6112f2826000836115d0565b6001600160a01b0382166000908152602081905260409020548181101561132b5760405162461bcd60e51b81526004016106b590611c02565b6001600160a01b038316600090815260208190526040812083830390556002805484929061135a908490612223565b90915550506040516000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061139d908690611a5d565b60405180910390a3610a1083600084610a10565b600580546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b039182166000908152600660209081526040808320939094168252919091522080546001810190915590565b6000611468611462611113565b8361163a565b92915050565b600080600061147f8787878761166d565b9150915061148c8161174d565b5095945050505050565b61149e610865565b156114bb5760405162461bcd60e51b81526004016106b590611e26565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586112a9610f31565b60006114fd8284612204565b9392505050565b6001600160a01b03821661152a5760405162461bcd60e51b81526004016106b5906121a7565b611536600083836115d0565b806002600082825461154891906121ec565b90915550506001600160a01b038216600090815260208190526040812080548392906115759084906121ec565b90915550506040516001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906115b8908590611a5d565b60405180910390a36115cc60008383610a10565b5050565b6115d8610865565b156115f55760405162461bcd60e51b81526004016106b590611e26565b610a10838383610a10565b6000838383463060405160200161161b959493929190611a9a565b6040516020818303038152906040528051906020012090509392505050565b6000828260405160200161164f929190611a08565b60405160208183030381529060405280519060200120905092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156116a45750600090506003611744565b8460ff16601b141580156116bc57508460ff16601c14155b156116cd5750600090506004611744565b6000600187878787604051600081526020016040526040516116f29493929190611ac6565b6020604051602081039080840390855afa158015611714573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661173d57600060019250925050611744565b9150600090505b94509492505050565b600081600481111561176f57634e487b7160e01b600052602160045260246000fd5b141561177a576107ff565b600181600481111561179c57634e487b7160e01b600052602160045260246000fd5b14156117ba5760405162461bcd60e51b81526004016106b590611b37565b60028160048111156117dc57634e487b7160e01b600052602160045260246000fd5b14156117fa5760405162461bcd60e51b81526004016106b590611c5f565b600381600481111561181c57634e487b7160e01b600052602160045260246000fd5b141561183a5760405162461bcd60e51b81526004016106b590611de4565b600481600481111561185c57634e487b7160e01b600052602160045260246000fd5b14156107ff5760405162461bcd60e51b81526004016106b590611e5d565b80356001600160a01b038116811461088857600080fd5b6000602082840312156118a2578081fd5b6114fd8261187a565b600080604083850312156118bd578081fd5b6118c68361187a565b91506118d46020840161187a565b90509250929050565b6000806000606084860312156118f1578081fd5b6118fa8461187a565b92506119086020850161187a565b9150604084013590509250925092565b600080600080600080600060e0888a031215611932578283fd5b61193b8861187a565b96506119496020890161187a565b95506040880135945060608801359350608088013560ff8116811461196c578384fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561199b578182fd5b6119a48361187a565b946020939093013593505050565b600080600080608085870312156119c7578384fd5b843580151581146119d6578485fd5b966020860135965060408601359560600135945092505050565b600060208284031215611a01578081fd5b5035919050565b7f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b901515815260200190565b90815260200190565b9586526001600160a01b0394851660208701529290931660408501526060840152608083019190915260a082015260c00190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b93845260ff9290921660208401526040830152606082015260800190565b6000602080835283518082850152825b81811015611b1057858101830151858201604001528201611af4565b81811115611b215783604083870101525b50601f01601f1916929092016040019392505050565b60208082526018908201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604082015260600190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201527f6573730000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526014908201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604082015260600190565b60208082526022908201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60408201527f6365000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560408201527f7373000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601d908201527f45524332305065726d69743a206578706972656420646561646c696e65000000604082015260600190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260408201527f616c616e63650000000000000000000000000000000000000000000000000000606082015260800190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604082015261756560f01b606082015260800190565b60208082526010908201527f5061757361626c653a2070617573656400000000000000000000000000000000604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604082015261756560f01b606082015260800190565b6020808252601e908201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604082015260600190565b60208082526028908201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160408201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526024908201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760408201527f616e636500000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460408201527f6472657373000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526010908201527f5472616e73666572206661696c65642e00000000000000000000000000000000604082015260600190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760408201527f207a65726f000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b60ff91909116815260200190565b600082198211156121ff576121ff612275565b500190565b600081600019048311821515161561221e5761221e612275565b500290565b60008282101561223557612235612275565b500390565b60028104600182168061224e57607f821691505b6020821081141561226f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea26469706673582212204ffedd2f3c94f5a406d2b220ec7040ef4f55652b9d1777550b538bab32a3e04c64736f6c63430008000033

Deployed Bytecode

0x6080604052600436106101e35760003560e01c8063715018a611610102578063a21ac87c11610095578063ba0c60c911610064578063ba0c60c91461050d578063d505accf14610522578063dd62ed3e14610542578063f2fde38b14610562576101e3565b8063a21ac87c1461049a578063a457c2d7146104ba578063a9059cbb146104da578063b3b9a506146104fa576101e3565b80638da5cb5b116100d15780638da5cb5b1461042357806391b7f5ed146104455780639333fbda1461046557806395d89b4114610485576101e3565b8063715018a6146103b957806377f9be13146103ce57806379cc6790146103ee5780638456cb591461040e576101e3565b8063395093511161017a57806342966c681161014957806342966c681461034f5780635b3845a81461036f5780635c975abb1461038457806370a0823114610399576101e3565b806339509351146102e35780633a260734146103035780633ccfd60b146103255780633f4ba83a1461033a576101e3565b80631a4231a4116101b65780631a4231a41461027757806323b872dd1461028c578063313ce567146102ac5780633644e515146102ce576101e3565b806301a4a704146101e857806306fdde0314610213578063095ea7b31461023557806318160ddd14610262575b600080fd5b3480156101f457600080fd5b506101fd610582565b60405161020a9190611a5d565b60405180910390f35b34801561021f57600080fd5b50610228610588565b60405161020a9190611ae4565b34801561024157600080fd5b50610255610250366004611989565b61061b565b60405161020a9190611a52565b34801561026e57600080fd5b506101fd610638565b34801561028357600080fd5b506101fd61063e565b34801561029857600080fd5b506102556102a73660046118dd565b610644565b3480156102b857600080fd5b506102c16106dd565b60405161020a91906121de565b3480156102da57600080fd5b506101fd6106e2565b3480156102ef57600080fd5b506102556102fe366004611989565b6106f1565b34801561030f57600080fd5b5061032361031e3660046119b2565b610745565b005b34801561033157600080fd5b506103236107a4565b34801561034657600080fd5b50610323610802565b34801561035b57600080fd5b5061032361036a3660046119f0565b61084b565b34801561037b57600080fd5b5061025561085c565b34801561039057600080fd5b50610255610865565b3480156103a557600080fd5b506101fd6103b4366004611891565b61086e565b3480156103c557600080fd5b5061032361088d565b3480156103da57600080fd5b506103236103e9366004611918565b6108d6565b3480156103fa57600080fd5b50610323610409366004611989565b6109c2565b34801561041a57600080fd5b50610323610a15565b34801561042f57600080fd5b50610438610a5c565b60405161020a9190611a3e565b34801561045157600080fd5b506103236104603660046119f0565b610a70565b34801561047157600080fd5b506101fd6104803660046118ab565b610ab4565b34801561049157600080fd5b50610228610adf565b3480156104a657600080fd5b506102286104b5366004611918565b610aee565b3480156104c657600080fd5b506102556104d5366004611989565b610c73565b3480156104e657600080fd5b506102556104f5366004611989565b610cec565b610323610508366004611989565b610d00565b34801561051957600080fd5b506101fd610db2565b34801561052e57600080fd5b5061032361053d366004611918565b610db8565b34801561054e57600080fd5b506101fd61055d3660046118ab565b610e98565b34801561056e57600080fd5b5061032361057d366004611891565b610ec3565b600b5481565b6060600380546105979061223a565b80601f01602080910402602001604051908101604052809291908181526020018280546105c39061223a565b80156106105780601f106105e557610100808354040283529160200191610610565b820191906000526020600020905b8154815290600101906020018083116105f357829003601f168201915b505050505090505b90565b600061062f610628610f31565b8484610f35565b50600192915050565b60025490565b60095481565b6000610651848484610fe9565b6001600160a01b038416600090815260016020526040812081610672610f31565b6001600160a01b03166001600160a01b03168152602001908152602001600020549050828110156106be5760405162461bcd60e51b81526004016106b590611ed6565b60405180910390fd5b6106d2856106ca610f31565b858403610f35565b506001949350505050565b601290565b60006106ec611113565b905090565b600061062f6106fe610f31565b84846001600061070c610f31565b6001600160a01b03908116825260208083019390935260409182016000908120918b168152925290205461074091906121ec565b610f35565b61074d610f31565b6001600160a01b031661075e610a5c565b6001600160a01b0316146107845760405162461bcd60e51b81526004016106b590611f33565b6008805460ff191694151594909417909355600991909155600a55600b55565b6107ac610f31565b6001600160a01b03166107bd610a5c565b6001600160a01b0316146107e35760405162461bcd60e51b81526004016106b590611f33565b47806107ee57600080fd5b6107ff6107f9610a5c565b476111d6565b50565b61080a610f31565b6001600160a01b031661081b610a5c565b6001600160a01b0316146108415760405162461bcd60e51b81526004016106b590611f33565b610849611252565b565b6107ff610856610f31565b826112c0565b60085460ff1681565b60055460ff1690565b6001600160a01b0381166000908152602081905260409020545b919050565b610895610f31565b6001600160a01b03166108a6610a5c565b6001600160a01b0316146108cc5760405162461bcd60e51b81526004016106b590611f33565b61084960006113b1565b83421115806108e3575083155b6108ff5760405162461bcd60e51b81526004016106b590611d50565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c988888861092f8c8c611422565b8960405160200161094596959493929190611a66565b604051602081830303815290604052805190602001209050600061096882611455565b905060006109788287878761146e565b9050896001600160a01b0316816001600160a01b0316146109ab5760405162461bcd60e51b81526004016106b590611e9f565b6109b68a8a8a610fe9565b50505050505050505050565b60006109d08361055d610f31565b9050818110156109f25760405162461bcd60e51b81526004016106b590611f68565b610a06836109fe610f31565b848403610f35565b610a1083836112c0565b505050565b610a1d610f31565b6001600160a01b0316610a2e610a5c565b6001600160a01b031614610a545760405162461bcd60e51b81526004016106b590611f33565b610849611496565b60055461010090046001600160a01b031690565b610a78610f31565b6001600160a01b0316610a89610a5c565b6001600160a01b031614610aaf5760405162461bcd60e51b81526004016106b590611f33565b600955565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b6060600480546105979061223a565b60608442118015610afe57508415155b15610b3d575060408051808201909152601d81527f45524332305065726d69743a20646561646c696e6520657870697265640000006020820152610c68565b6001600160a01b038089166000908152600660209081526040808320938b1683529281528282205492519192610b9d927f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9928d928d928d928d9101611a66565b6040516020818303038152906040528051906020012090506000610bc082611455565b90506000610bd08288888861146e565b90508a6001600160a01b0316816001600160a01b03161415610c2c576040518060400160405280601c81526020017f45524332305065726d69743a207369676e61747572652076616c6964000000008152509350505050610c68565b6040518060400160405280601e81526020017f45524332305065726d69743a207369676e617475726520696e76616c6964000081525093505050505b979650505050505050565b60008060016000610c82610f31565b6001600160a01b0390811682526020808301939093526040918201600090812091881681529252902054905082811015610cce5760405162461bcd60e51b81526004016106b59061214a565b610ce2610cd9610f31565b85858403610f35565b5060019392505050565b600061062f610cf9610f31565b8484610fe9565b60026007541415610d235760405162461bcd60e51b81526004016106b590612113565b600260075580610d3257600080fd5b33610d3b610a5c565b6001600160a01b031614610d905760085460ff16610d5857600080fd5b600b54811015610d6757600080fd5b600a54811115610d7657600080fd5b6009543490610d8590836114f1565b1115610d9057600080fd5b610da982610da4836503a3529440006114f1565b611504565b50506001600755565b600a5481565b8342111580610dc5575083155b610de15760405162461bcd60e51b81526004016106b590611d50565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610e118c8c611422565b89604051602001610e2796959493929190611a66565b6040516020818303038152906040528051906020012090506000610e4a82611455565b90506000610e5a8287878761146e565b9050896001600160a01b0316816001600160a01b031614610e8d5760405162461bcd60e51b81526004016106b590611e9f565b6109b68a8a8a610f35565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610ecb610f31565b6001600160a01b0316610edc610a5c565b6001600160a01b031614610f025760405162461bcd60e51b81526004016106b590611f33565b6001600160a01b038116610f285760405162461bcd60e51b81526004016106b590611c96565b6107ff816113b1565b3390565b6001600160a01b038316610f5b5760405162461bcd60e51b81526004016106b5906120b6565b6001600160a01b038216610f815760405162461bcd60e51b81526004016106b590611cf3565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610fdc908590611a5d565b60405180910390a3505050565b6001600160a01b03831661100f5760405162461bcd60e51b81526004016106b590612022565b6001600160a01b0382166110355760405162461bcd60e51b81526004016106b590611b6e565b6110408383836115d0565b6001600160a01b038316600090815260208190526040902054818110156110795760405162461bcd60e51b81526004016106b590611d87565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906110b09084906121ec565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516110fa9190611a5d565b60405180910390a361110d848484610a10565b50505050565b60007f000000000000000000000000000000000000000000000000000000000000000146141561116457507f3b33d7225b9434ce436a8f7591a32bce8fde8414af1e20b793bf93900ef52469610618565b6111cf7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f84a15ecc19eece553e28c5f57c419ddbb2b6c781d6479740ba935b1c37cbe97d7fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6611600565b9050610618565b6000826001600160a01b0316826040516111ef90610618565b60006040518083038185875af1925050503d806000811461122c576040519150601f19603f3d011682016040523d82523d6000602084013e611231565b606091505b5050905080610a105760405162461bcd60e51b81526004016106b59061207f565b61125a610865565b6112765760405162461bcd60e51b81526004016106b590611bcb565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6112a9610f31565b6040516112b69190611a3e565b60405180910390a1565b6001600160a01b0382166112e65760405162461bcd60e51b81526004016106b590611fc5565b6112f2826000836115d0565b6001600160a01b0382166000908152602081905260409020548181101561132b5760405162461bcd60e51b81526004016106b590611c02565b6001600160a01b038316600090815260208190526040812083830390556002805484929061135a908490612223565b90915550506040516000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061139d908690611a5d565b60405180910390a3610a1083600084610a10565b600580546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b039182166000908152600660209081526040808320939094168252919091522080546001810190915590565b6000611468611462611113565b8361163a565b92915050565b600080600061147f8787878761166d565b9150915061148c8161174d565b5095945050505050565b61149e610865565b156114bb5760405162461bcd60e51b81526004016106b590611e26565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586112a9610f31565b60006114fd8284612204565b9392505050565b6001600160a01b03821661152a5760405162461bcd60e51b81526004016106b5906121a7565b611536600083836115d0565b806002600082825461154891906121ec565b90915550506001600160a01b038216600090815260208190526040812080548392906115759084906121ec565b90915550506040516001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906115b8908590611a5d565b60405180910390a36115cc60008383610a10565b5050565b6115d8610865565b156115f55760405162461bcd60e51b81526004016106b590611e26565b610a10838383610a10565b6000838383463060405160200161161b959493929190611a9a565b6040516020818303038152906040528051906020012090509392505050565b6000828260405160200161164f929190611a08565b60405160208183030381529060405280519060200120905092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156116a45750600090506003611744565b8460ff16601b141580156116bc57508460ff16601c14155b156116cd5750600090506004611744565b6000600187878787604051600081526020016040526040516116f29493929190611ac6565b6020604051602081039080840390855afa158015611714573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661173d57600060019250925050611744565b9150600090505b94509492505050565b600081600481111561176f57634e487b7160e01b600052602160045260246000fd5b141561177a576107ff565b600181600481111561179c57634e487b7160e01b600052602160045260246000fd5b14156117ba5760405162461bcd60e51b81526004016106b590611b37565b60028160048111156117dc57634e487b7160e01b600052602160045260246000fd5b14156117fa5760405162461bcd60e51b81526004016106b590611c5f565b600381600481111561181c57634e487b7160e01b600052602160045260246000fd5b141561183a5760405162461bcd60e51b81526004016106b590611de4565b600481600481111561185c57634e487b7160e01b600052602160045260246000fd5b14156107ff5760405162461bcd60e51b81526004016106b590611e5d565b80356001600160a01b038116811461088857600080fd5b6000602082840312156118a2578081fd5b6114fd8261187a565b600080604083850312156118bd578081fd5b6118c68361187a565b91506118d46020840161187a565b90509250929050565b6000806000606084860312156118f1578081fd5b6118fa8461187a565b92506119086020850161187a565b9150604084013590509250925092565b600080600080600080600060e0888a031215611932578283fd5b61193b8861187a565b96506119496020890161187a565b95506040880135945060608801359350608088013560ff8116811461196c578384fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561199b578182fd5b6119a48361187a565b946020939093013593505050565b600080600080608085870312156119c7578384fd5b843580151581146119d6578485fd5b966020860135965060408601359560600135945092505050565b600060208284031215611a01578081fd5b5035919050565b7f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b901515815260200190565b90815260200190565b9586526001600160a01b0394851660208701529290931660408501526060840152608083019190915260a082015260c00190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b93845260ff9290921660208401526040830152606082015260800190565b6000602080835283518082850152825b81811015611b1057858101830151858201604001528201611af4565b81811115611b215783604083870101525b50601f01601f1916929092016040019392505050565b60208082526018908201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604082015260600190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201527f6573730000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526014908201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604082015260600190565b60208082526022908201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60408201527f6365000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560408201527f7373000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601d908201527f45524332305065726d69743a206578706972656420646561646c696e65000000604082015260600190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260408201527f616c616e63650000000000000000000000000000000000000000000000000000606082015260800190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604082015261756560f01b606082015260800190565b60208082526010908201527f5061757361626c653a2070617573656400000000000000000000000000000000604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604082015261756560f01b606082015260800190565b6020808252601e908201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604082015260600190565b60208082526028908201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160408201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526024908201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760408201527f616e636500000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460408201527f6472657373000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526010908201527f5472616e73666572206661696c65642e00000000000000000000000000000000604082015260600190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760408201527f207a65726f000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b60ff91909116815260200190565b600082198211156121ff576121ff612275565b500190565b600081600019048311821515161561221e5761221e612275565b500290565b60008282101561223557612235612275565b500390565b60028104600182168061224e57607f821691505b6020821081141561226f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea26469706673582212204ffedd2f3c94f5a406d2b220ec7040ef4f55652b9d1777550b538bab32a3e04c64736f6c63430008000033

Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.