ETH Price: $3,366.10 (-1.48%)
Gas: 7 Gwei

Contract

0xDaa58A1851672a6490E2bb9Fdc8868918cDd86e6
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Approve201706332024-06-25 18:57:2323 hrs ago1719341843IN
0xDaa58A18...18cDd86e6
0 ETH0.000381398.22709151
Transfer201702532024-06-25 17:41:1124 hrs ago1719337271IN
0xDaa58A18...18cDd86e6
0 ETH0.000262477.14288877
Transfer201585302024-06-24 2:21:112 days ago1719195671IN
0xDaa58A18...18cDd86e6
0 ETH0.00008152.21800876
Transfer201437542024-06-22 0:44:474 days ago1719017087IN
0xDaa58A18...18cDd86e6
0 ETH0.000104282.83709168
Approve201424842024-06-21 20:28:354 days ago1719001715IN
0xDaa58A18...18cDd86e6
0 ETH0.000185083.99335884
Transfer201417892024-06-21 18:08:235 days ago1718993303IN
0xDaa58A18...18cDd86e6
0 ETH0.000235927.37675402
Transfer201416832024-06-21 17:47:115 days ago1718992031IN
0xDaa58A18...18cDd86e6
0 ETH0.000321078.73779582
Transfer201201242024-06-18 17:27:118 days ago1718731631IN
0xDaa58A18...18cDd86e6
0 ETH0.000502359.32951062
Transfer201195712024-06-18 15:35:598 days ago1718724959IN
0xDaa58A18...18cDd86e6
0 ETH0.0006405911.89687058
Transfer201185622024-06-18 12:12:238 days ago1718712743IN
0xDaa58A18...18cDd86e6
0 ETH0.000327028.89966017
Transfer201076662024-06-16 23:35:239 days ago1718580923IN
0xDaa58A18...18cDd86e6
0 ETH0.000099862.71683397
Transfer201074062024-06-16 22:43:119 days ago1718577791IN
0xDaa58A18...18cDd86e6
0 ETH0.000101172.75343281
Transfer201073362024-06-16 22:29:119 days ago1718576951IN
0xDaa58A18...18cDd86e6
0 ETH0.000109322.97502322
Transfer201063672024-06-16 19:13:239 days ago1718565203IN
0xDaa58A18...18cDd86e6
0 ETH0.00014453.9325156
Transfer201056922024-06-16 16:57:2310 days ago1718557043IN
0xDaa58A18...18cDd86e6
0 ETH0.000234986.39263732
Transfer201054702024-06-16 16:12:3510 days ago1718554355IN
0xDaa58A18...18cDd86e6
0 ETH0.00017754.83053652
Transfer201053682024-06-16 15:52:1110 days ago1718553131IN
0xDaa58A18...18cDd86e6
0 ETH0.000211755.76260226
Transfer201051762024-06-16 15:13:1110 days ago1718550791IN
0xDaa58A18...18cDd86e6
0 ETH0.000152174.14126498
Transfer201049712024-06-16 14:32:1110 days ago1718548331IN
0xDaa58A18...18cDd86e6
0 ETH0.000174414.74644364
Transfer201047762024-06-16 13:52:5910 days ago1718545979IN
0xDaa58A18...18cDd86e6
0 ETH0.000170074.62699329
Transfer201047002024-06-16 13:37:3510 days ago1718545055IN
0xDaa58A18...18cDd86e6
0 ETH0.000151324.73149277
Transfer201038742024-06-16 10:51:5910 days ago1718535119IN
0xDaa58A18...18cDd86e6
0 ETH0.000154414.20212584
Transfer201035252024-06-16 9:42:1110 days ago1718530931IN
0xDaa58A18...18cDd86e6
0 ETH0.000134863.67127053
Transfer201019542024-06-16 4:26:5910 days ago1718512019IN
0xDaa58A18...18cDd86e6
0 ETH0.00010482.85123513
Transfer201018002024-06-16 3:55:5910 days ago1718510159IN
0xDaa58A18...18cDd86e6
0 ETH0.000097622.65575472
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StarToken

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-03-17
*/

// SPDX-License-Identifier: MIT

// File: @openzeppelin/contracts/utils/math/SafeMath.sol

// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

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 generally not needed starting with Solidity 0.8, since 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: @openzeppelin/contracts/utils/structs/EnumerableSet.sol

// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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

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

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

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

        assembly {
            result := store
        }

        return result;
    }
}

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol

// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

// File: @openzeppelin/contracts/utils/introspection/ERC165.sol

// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

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

// File: @openzeppelin/contracts/utils/Strings.sol

// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

// File: @openzeppelin/contracts/access/IAccessControl.sol

// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/access/IAccessControlEnumerable.sol

// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)

pragma solidity ^0.8.0;

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

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

// File: @openzeppelin/contracts/utils/Context.sol

// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

// File: @openzeppelin/contracts/access/AccessControl.sol

// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

// File: @openzeppelin/contracts/access/AccessControlEnumerable.sol

// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/security/Pausable.sol

// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

/**
 * @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: @openzeppelin/contracts/token/ERC20/IERC20.sol

// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol

// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

/**
 * @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: @openzeppelin/contracts/token/ERC20/ERC20.sol

// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

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

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol

// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Pausable.sol)

pragma solidity ^0.8.0;

/**
 * @dev ERC20 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 */
abstract contract ERC20Pausable is ERC20, Pausable {
    /**
     * @dev See {ERC20-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, amount);

        require(!paused(), "ERC20Pausable: token transfer while paused");
    }
}

// File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol

// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.0;

/**
 * @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 {
        _spendAllowance(account, _msgSender(), amount);
        _burn(account, amount);
    }
}

// File: @openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol

// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/presets/ERC20PresetMinterPauser.sol)

pragma solidity ^0.8.0;

/**
 * @dev {ERC20} token, including:
 *
 *  - ability for holders to burn (destroy) their tokens
 *  - a minter role that allows for token minting (creation)
 *  - a pauser role that allows to stop all token transfers
 *
 * This contract uses {AccessControl} to lock permissioned functions using the
 * different roles - head to its documentation for details.
 *
 * The account that deploys the contract will be granted the minter and pauser
 * roles, as well as the default admin role, which will let it grant both minter
 * and pauser roles to other accounts.
 *
 * _Deprecated in favor of https://wizard.openzeppelin.com/[Contracts Wizard]._
 */
contract ERC20PresetMinterPauser is
    Context,
    AccessControlEnumerable,
    ERC20Burnable,
    ERC20Pausable
{
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");

    /**
     * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the
     * account that deploys the contract.
     *
     * See {ERC20-constructor}.
     */
    constructor(string memory name, string memory symbol) ERC20(name, symbol) {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());

        _setupRole(MINTER_ROLE, _msgSender());
        _setupRole(PAUSER_ROLE, _msgSender());
    }

    /**
     * @dev Creates `amount` new tokens for `to`.
     *
     * See {ERC20-_mint}.
     *
     * Requirements:
     *
     * - the caller must have the `MINTER_ROLE`.
     */
    function mint(address to, uint256 amount) public virtual {
        require(
            hasRole(MINTER_ROLE, _msgSender()),
            "ERC20PresetMinterPauser: must have minter role to mint"
        );
        _mint(to, amount);
    }

    /**
     * @dev Pauses all token transfers.
     *
     * See {ERC20Pausable} and {Pausable-_pause}.
     *
     * Requirements:
     *
     * - the caller must have the `PAUSER_ROLE`.
     */
    function pause() public virtual {
        require(
            hasRole(PAUSER_ROLE, _msgSender()),
            "ERC20PresetMinterPauser: must have pauser role to pause"
        );
        _pause();
    }

    /**
     * @dev Unpauses all token transfers.
     *
     * See {ERC20Pausable} and {Pausable-_unpause}.
     *
     * Requirements:
     *
     * - the caller must have the `PAUSER_ROLE`.
     */
    function unpause() public virtual {
        require(
            hasRole(PAUSER_ROLE, _msgSender()),
            "ERC20PresetMinterPauser: must have pauser role to unpause"
        );
        _unpause();
    }

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

// File: contracts/StarToken.sol

pragma solidity >=0.8.0 <0.9.0;

interface INFTContract {
    function balanceOf(address _user) external view returns (uint256);
}

contract StarToken is ERC20PresetMinterPauser {
    using SafeMath for uint256;

    INFTContract public nftContract;

    uint256 public constant INITIAL_REWARD = 100 ether;
    uint256 public constant REWARD_RATE = 10 ether;
    uint256 public constant SECONDARY_REWARD_RATE = 5 ether;
    // Monday, April 1, 2032 0:00:00
    uint256 public constant REWARD_END = 1964390400;

    mapping(address => uint256) public rewards;
    mapping(address => uint256) public lastUpdate;
    mapping(address => INFTContract) public secondaryContracts;
    address[] public secondaryContractsAddresses;

    event StarClaimed(address indexed account, uint256 reward);
    event StarSpent(address indexed account, uint256 amount);

    bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");

    constructor(address _nftContract)
        ERC20PresetMinterPauser("Star Token", "STAR")
    {
        grantRole(BURNER_ROLE, msg.sender);
        setContract(_nftContract);
    }

    function setContract(address _contract) public {
        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Admin only");
        nftContract = INFTContract(_contract);
        grantRole(BURNER_ROLE, _contract);
    }

    function addSecondaryContract(address _contract) public {
        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Admin only");
        secondaryContracts[_contract] = INFTContract(_contract);
        secondaryContractsAddresses.push(_contract);
        grantRole(BURNER_ROLE, _contract);
    }

    function removeSecondaryContract(address _contract) public {
        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Admin only");
        delete secondaryContracts[_contract];
        uint256 index = 0;
        while (secondaryContractsAddresses[index] != _contract) {
            index++;
        }
        secondaryContractsAddresses[index] = secondaryContractsAddresses[
            secondaryContractsAddresses.length - 1
        ];
        secondaryContractsAddresses.pop();
        revokeRole(BURNER_ROLE, _contract);
    }

    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    function updateRewardOnMint(address _to, uint256 _amount) external {
        require(msg.sender == address(nftContract), "Not allowed");
        uint256 time = min(block.timestamp, REWARD_END);
        uint256 timerUser = lastUpdate[_to];
        if (timerUser > 0)
            rewards[_to] = rewards[_to].add(
                nftContract
                    .balanceOf(_to)
                    .mul(REWARD_RATE.mul((time.sub(timerUser))))
                    .div(86400)
                    .add(_amount.mul(INITIAL_REWARD))
            );
        else rewards[_to] = rewards[_to].add(_amount.mul(INITIAL_REWARD));
        lastUpdate[_to] = time;
    }

    function updateReward(address _from, address _to) external {
        require(
            msg.sender == address(nftContract) ||
                abi.encodePacked(secondaryContracts[msg.sender]).length > 0,
            "Invalid Contract"
        );
        uint256 time = min(block.timestamp, REWARD_END);
        if (_from != address(0)) {
            uint256 timerFrom = lastUpdate[_from];
            if (timerFrom > 0) {
                rewards[_from] += getPendingReward(_from);
            }
            lastUpdate[_from] = lastUpdate[_from] < REWARD_END
                ? time
                : REWARD_END;
        }

        if (_to != address(0)) {
            uint256 timerTo = lastUpdate[_to];
            if (timerTo > 0) {
                rewards[_to] += getPendingReward(_to);
            }
            lastUpdate[_to] = lastUpdate[_to] < REWARD_END ? time : REWARD_END;
        }
    }

    function getReward(address _to) external {
        require(msg.sender == address(nftContract), "Not allowed");
        uint256 reward = rewards[_to];
        if (reward > 0) {
            rewards[_to] = 0;
            _mint(_to, reward);
            emit StarClaimed(_to, reward);
        }
    }

    function getTotalClaimable(address _account)
        external
        view
        returns (uint256)
    {
        return rewards[_account] + getPendingReward(_account);
    }

    function getPendingReward(address _account)
        internal
        view
        returns (uint256)
    {
        uint256 time = min(block.timestamp, REWARD_END);
        uint256 secondary = 0;
        if (secondaryContractsAddresses.length > 0) {
            for (uint256 i = 0; i < secondaryContractsAddresses.length; i++) {
                secondary = secondaryContracts[secondaryContractsAddresses[i]]
                    .balanceOf(_account)
                    .mul(
                        SECONDARY_REWARD_RATE.mul(
                            (time.sub(lastUpdate[_account]))
                        )
                    )
                    .div(86400)
                    .add(secondary);
            }
        }

        return
            nftContract
                .balanceOf(_account)
                .mul(REWARD_RATE.mul((time.sub(lastUpdate[_account]))))
                .div(86400)
                .add(secondary);
    }

    function burn(uint256 value) public override {
        require(
            hasRole(BURNER_ROLE, msg.sender),
            "Must have burner role to burn"
        );
        super._burn(msg.sender, value);
    }

    function spend(address _from, uint256 _amount) external {
        require(
            hasRole(BURNER_ROLE, msg.sender),
            "Must have burner role to spend"
        );
        super._burn(_from, _amount);
        emit StarSpent(_from, _amount);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_nftContract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"StarClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"StarSpent","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":"BURNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INITIAL_REWARD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REWARD_END","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REWARD_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SECONDARY_REWARD_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"addSecondaryContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"value","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":[],"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":"_to","type":"address"}],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getTotalClaimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastUpdate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftContract","outputs":[{"internalType":"contract INFTContract","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":"_contract","type":"address"}],"name":"removeSecondaryContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"secondaryContracts","outputs":[{"internalType":"contract INFTContract","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"secondaryContractsAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"setContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"spend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"}],"name":"updateReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"updateRewardOnMint","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002ec338038062002ec383398101604081905262000034916200066c565b604080518082018252600a81526929ba30b9102a37b5b2b760b11b60208083019182528351808501909452600484526329aa20a960e11b908401528151919291839183916200008691600591620005c6565b5080516200009c906006906020840190620005c6565b50506007805460ff1916905550620000b66000336200014f565b620000e27f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336200014f565b6200010e7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336200014f565b506200013d90507f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848336200015f565b62000148816200018e565b506200084e565b6200015b828262000229565b5050565b6000828152602081905260409020600101546200017d813362000267565b62000189838362000229565b505050565b6200019b600033620002ea565b620001da5760405162461bcd60e51b815260206004820152600a60248201526941646d696e206f6e6c7960b01b60448201526064015b60405180910390fd5b60078054610100600160a81b0319166101006001600160a01b03841602179055620002267f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848826200015f565b50565b6200024082826200031560201b620014401760201c565b600082815260016020908152604090912062000189918390620014c46200039d821b17901c565b620002738282620002ea565b6200015b5762000299816001600160a01b03166014620003bb60201b620014d91760201c565b620002af836020620014d9620003bb821b17811c565b604051602001620002c292919062000697565b60408051601f198184030181529082905262461bcd60e51b8252620001d19160040162000710565b6000828152602081815260408083206001600160a01b038516845290915290205460ff165b92915050565b620003218282620002ea565b6200015b576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620003593390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000620003b4836001600160a01b03841662000574565b9392505050565b60606000620003cc83600262000760565b620003d990600262000745565b6001600160401b03811115620003f357620003f362000838565b6040519080825280601f01601f1916602001820160405280156200041e576020820181803683370190505b509050600360fc1b816000815181106200043c576200043c62000822565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106200046e576200046e62000822565b60200101906001600160f81b031916908160001a90535060006200049484600262000760565b620004a190600162000745565b90505b600181111562000523576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110620004d957620004d962000822565b1a60f81b828281518110620004f257620004f262000822565b60200101906001600160f81b031916908160001a90535060049490941c936200051b81620007b5565b9050620004a4565b508315620003b45760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401620001d1565b6000818152600183016020526040812054620005bd575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556200030f565b5060006200030f565b828054620005d490620007cf565b90600052602060002090601f016020900481019282620005f8576000855562000643565b82601f106200061357805160ff191683800117855562000643565b8280016001018555821562000643579182015b828111156200064357825182559160200191906001019062000626565b506200065192915062000655565b5090565b5b8082111562000651576000815560010162000656565b6000602082840312156200067f57600080fd5b81516001600160a01b0381168114620003b457600080fd5b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351620006d181601785016020880162000782565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516200070481602884016020880162000782565b01602801949350505050565b60208152600082518060208401526200073181604085016020870162000782565b601f01601f19169190910160400192915050565b600082198211156200075b576200075b6200080c565b500190565b60008160001904831182151516156200077d576200077d6200080c565b500290565b60005b838110156200079f57818101518382015260200162000785565b83811115620007af576000848401525b50505050565b600081620007c757620007c76200080c565b506000190190565b600181811c90821680620007e457607f821691505b602082108114156200080657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b612665806200085e6000396000f3fe608060405234801561001057600080fd5b506004361061028a5760003560e01c806379cc67901161015c578063c00007b0116100ce578063d539139311610087578063d5391393146105c8578063d547741f146105ef578063d56d229d14610602578063d57382591461061a578063dd62ed3e1461062d578063e63ab1e91461066657600080fd5b8063c00007b014610549578063ca15c8731461055c578063cb03fb1e1461056f578063cc240c011461058f578063ce6af681146105a2578063d230af3a146105b557600080fd5b806395d89b411161012057806395d89b41146104d7578063a2081dc1146104df578063a217fddf14610508578063a457c2d714610510578063a9059cbb14610523578063af7d6ca31461053657600080fd5b806379cc67901461048b5780638456cb591461049e5780638acecfc5146104a65780639010d07c146104b157806391d14854146104c457600080fd5b8063313ce5671161020057806340c10f19116101b957806340c10f191461040f57806342966c68146104225780635997bb37146104355780635c975abb1461044457806370a082311461044f57806375f890ab1461047857600080fd5b8063313ce567146103b357806336568abe146103c257806336bcf7d6146103d5578063381b9801146103e557806339509351146103f45780633f4ba83a1461040757600080fd5b806318160ddd1161025257806318160ddd1461033857806323b872dd14610340578063248a9ca314610353578063267e8ab614610376578063282c51f3146103895780632f2ff15d1461039e57600080fd5b806301ffc9a71461028f57806306fdde03146102b75780630700037d146102cc578063095ea7b3146102fa5780630f0b45a51461030d575b600080fd5b6102a261029d36600461239f565b61068d565b60405190151581526020015b60405180910390f35b6102bf6106b8565b6040516102ae9190612457565b6102ec6102da36600461228d565b60086020526000908152604090205481565b6040519081526020016102ae565b6102a2610308366004612317565b61074a565b61032061031b366004612341565b610762565b6040516001600160a01b0390911681526020016102ae565b6004546102ec565b6102a261034e3660046122db565b61078c565b6102ec610361366004612341565b60009081526020819052604090206001015490565b6102ec61038436600461228d565b6107b0565b6102ec60008051602061261083398151915281565b6103b16103ac36600461235a565b6107de565b005b604051601281526020016102ae565b6103b16103d036600461235a565b610809565b6102ec68056bc75e2d6310000081565b6102ec674563918244f4000081565b6102a2610402366004612317565b61088c565b6103b16108cb565b6103b161041d366004612317565b610971565b6103b1610430366004612341565b610a10565b6102ec678ac7230489e8000081565b60075460ff166102a2565b6102ec61045d36600461228d565b6001600160a01b031660009081526002602052604090205490565b6103b161048636600461228d565b610a81565b6103b1610499366004612317565b610ae0565b6103b1610af5565b6102ec637516380081565b6103206104bf36600461237d565b610b99565b6102a26104d236600461235a565b610bb8565b6102bf610be1565b6103206104ed36600461228d565b600a602052600090815260409020546001600160a01b031681565b6102ec600081565b6102a261051e366004612317565b610bf0565b6102a2610531366004612317565b610c82565b6103b1610544366004612317565b610c90565b6103b161055736600461228d565b610d45565b6102ec61056a366004612341565b610e0f565b6102ec61057d36600461228d565b60096020526000908152604090205481565b6103b161059d366004612317565b610e26565b6103b16105b036600461228d565b611008565b6103b16105c33660046122a8565b6110ac565b6102ec7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6103b16105fd36600461235a565b6112be565b6007546103209061010090046001600160a01b031681565b6103b161062836600461228d565b6112e4565b6102ec61063b3660046122a8565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b6102ec7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b60006001600160e01b03198216635a05180f60e01b14806106b257506106b282611675565b92915050565b6060600580546106c790612561565b80601f01602080910402602001604051908101604052809291908181526020018280546106f390612561565b80156107405780601f1061071557610100808354040283529160200191610740565b820191906000526020600020905b81548152906001019060200180831161072357829003601f168201915b5050505050905090565b6000336107588185856116aa565b5060019392505050565b600b818154811061077257600080fd5b6000918252602090912001546001600160a01b0316905081565b60003361079a8582856117ce565b6107a5858585611860565b506001949350505050565b60006107bb82611a39565b6001600160a01b0383166000908152600860205260409020546106b291906124ae565b6000828152602081905260409020600101546107fa8133611bc3565b6108048383611c27565b505050565b6001600160a01b038116331461087e5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6108888282611c49565b5050565b3360008181526003602090815260408083206001600160a01b038716845290915281205490919061075890829086906108c69087906124ae565b6116aa565b6108f57f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610bb8565b6109675760405162461bcd60e51b815260206004820152603960248201527f45524332305072657365744d696e7465725061757365723a206d75737420686160448201527f76652070617573657220726f6c6520746f20756e7061757365000000000000006064820152608401610875565b61096f611c6b565b565b61099b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610bb8565b610a065760405162461bcd60e51b815260206004820152603660248201527f45524332305072657365744d696e7465725061757365723a206d7573742068616044820152751d99481b5a5b9d195c881c9bdb19481d1bc81b5a5b9d60521b6064820152608401610875565b6108888282611cfe565b610a2860008051602061261083398151915233610bb8565b610a745760405162461bcd60e51b815260206004820152601d60248201527f4d7573742068617665206275726e657220726f6c6520746f206275726e0000006044820152606401610875565b610a7e3382611de9565b50565b610a8c600033610bb8565b610aa85760405162461bcd60e51b81526004016108759061248a565b60078054610100600160a81b0319166101006001600160a01b03841602179055610a7e600080516020612610833981519152826107de565b610aeb8233836117ce565b6108888282611de9565b610b1f7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610bb8565b610b915760405162461bcd60e51b815260206004820152603760248201527f45524332305072657365744d696e7465725061757365723a206d75737420686160448201527f76652070617573657220726f6c6520746f2070617573650000000000000000006064820152608401610875565b61096f611f43565b6000828152600160205260408120610bb19083611fbe565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600680546106c790612561565b3360008181526003602090815260408083206001600160a01b038716845290915281205490919083811015610c755760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610875565b6107a582868684036116aa565b600033610758818585611860565b610ca860008051602061261083398151915233610bb8565b610cf45760405162461bcd60e51b815260206004820152601e60248201527f4d7573742068617665206275726e657220726f6c6520746f207370656e6400006044820152606401610875565b610cfe8282611de9565b816001600160a01b03167f447a8ed4bfe48145b98ef39019552a767b491c5c1bf60576eeca757b4486ec8a82604051610d3991815260200190565b60405180910390a25050565b60075461010090046001600160a01b03163314610d925760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610875565b6001600160a01b0381166000908152600860205260409020548015610888576001600160a01b038216600090815260086020526040812055610dd48282611cfe565b816001600160a01b03167f600ea3891141b95cbf6042c7c0054a72001860c514e9fc9ab158e3ed63f90ec782604051610d3991815260200190565b60008181526001602052604081206106b290611fca565b60075461010090046001600160a01b03163314610e735760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610875565b6000610e83426375163800611fd4565b6001600160a01b0384166000908152600960205260409020549091508015610fb757610f99610f7a610ebe8568056bc75e2d63100000611fea565b610f7462015180610f6e610ee4610ed58989611ff6565b678ac7230489e8000090611fea565b6007546040516370a0823160e01b81526001600160a01b038d81166004830152610100909204909116906370a08231906024015b60206040518083038186803b158015610f3057600080fd5b505afa158015610f44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6891906123c9565b90611fea565b90612002565b9061200e565b6001600160a01b0386166000908152600860205260409020549061200e565b6001600160a01b038516600090815260086020526040902055610fe7565b610fcd610f7a8468056bc75e2d63100000611fea565b6001600160a01b0385166000908152600860205260409020555b506001600160a01b0390921660009081526009602052604090209190915550565b611013600033610bb8565b61102f5760405162461bcd60e51b81526004016108759061248a565b6001600160a01b0381166000818152600a6020526040812080546001600160a01b03199081168417909155600b805460018101825592527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db990910180549091169091179055610a7e600080516020612610833981519152826107de565b60075461010090046001600160a01b031633148061110b5750336000908152600a6020908152604080832054905160609190911b6bffffffffffffffffffffffff19169181019190915260340160405160208183030381529060405251115b61114a5760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a590810dbdb9d1c9858dd60821b6044820152606401610875565b600061115a426375163800611fd4565b90506001600160a01b0383161561120b576001600160a01b03831660009081526009602052604090205480156111c15761119384611a39565b6001600160a01b038516600090815260086020526040812080549091906111bb9084906124ae565b90915550505b6001600160a01b0384166000908152600960205260409020546375163800116111ee5763751638006111f0565b815b6001600160a01b038516600090815260096020526040902055505b6001600160a01b03821615610804576001600160a01b03821660009081526009602052604090205480156112705761124283611a39565b6001600160a01b0384166000908152600860205260408120805490919061126a9084906124ae565b90915550505b6001600160a01b03831660009081526009602052604090205463751638001161129d57637516380061129f565b815b6001600160a01b03841660009081526009602052604090205550505050565b6000828152602081905260409020600101546112da8133611bc3565b6108048383611c49565b6112ef600033610bb8565b61130b5760405162461bcd60e51b81526004016108759061248a565b6001600160a01b0381166000908152600a6020526040812080546001600160a01b03191690555b816001600160a01b0316600b828154811061134f5761134f6125e3565b6000918252602090912001546001600160a01b03161461137b57806113738161259c565b915050611332565b600b805461138b90600190612507565b8154811061139b5761139b6125e3565b600091825260209091200154600b80546001600160a01b0390921691839081106113c7576113c76125e3565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600b805480611406576114066125cd565b600082815260209020810160001990810180546001600160a01b0319169055019055610888600080516020612610833981519152836112be565b61144a8282610bb8565b610888576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556114803390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000610bb1836001600160a01b03841661201a565b606060006114e88360026124e8565b6114f39060026124ae565b67ffffffffffffffff81111561150b5761150b6125f9565b6040519080825280601f01601f191660200182016040528015611535576020820181803683370190505b509050600360fc1b81600081518110611550576115506125e3565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061157f5761157f6125e3565b60200101906001600160f81b031916908160001a90535060006115a38460026124e8565b6115ae9060016124ae565b90505b6001811115611626576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106115e2576115e26125e3565b1a60f81b8282815181106115f8576115f86125e3565b60200101906001600160f81b031916908160001a90535060049490941c9361161f8161254a565b90506115b1565b508315610bb15760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610875565b60006001600160e01b03198216637965db0b60e01b14806106b257506301ffc9a760e01b6001600160e01b03198316146106b2565b6001600160a01b03831661170c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610875565b6001600160a01b03821661176d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610875565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03838116600090815260036020908152604080832093861683529290522054600019811461185a578181101561184d5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610875565b61185a84848484036116aa565b50505050565b6001600160a01b0383166118c45760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610875565b6001600160a01b0382166119265760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610875565b611931838383612069565b6001600160a01b038316600090815260026020526040902054818110156119a95760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610875565b6001600160a01b038085166000908152600260205260408082208585039055918516815290812080548492906119e09084906124ae565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611a2c91815260200190565b60405180910390a361185a565b600080611a4a426375163800611fd4565b600b5490915060009015611b3a5760005b600b54811015611b3857611b2482610f7462015180610f6e611abd611aae600960008d6001600160a01b03166001600160a01b03168152602001908152602001600020548a611ff690919063ffffffff16565b674563918244f4000090611fea565b600a6000600b8981548110611ad457611ad46125e3565b6000918252602080832091909101546001600160a01b03908116845290830193909352604091820190205490516370a0823160e01b81528d831660048201529116906370a0823190602401610f18565b915080611b308161259c565b915050611a5b565b505b611bbb81610f7462015180610f6e611b83610ed5600960008c6001600160a01b03166001600160a01b031681526020019081526020016000205489611ff690919063ffffffff16565b6007546040516370a0823160e01b81526001600160a01b038c81166004830152610100909204909116906370a0823190602401610f18565b949350505050565b611bcd8282610bb8565b61088857611be5816001600160a01b031660146114d9565b611bf08360206114d9565b604051602001611c019291906123e2565b60408051601f198184030181529082905262461bcd60e51b825261087591600401612457565b611c318282611440565b600082815260016020526040902061080490826114c4565b611c538282612074565b600082815260016020526040902061080490826120d9565b60075460ff16611cb45760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610875565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038216611d545760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610875565b611d6060008383612069565b8060046000828254611d7291906124ae565b90915550506001600160a01b03821660009081526002602052604081208054839290611d9f9084906124ae565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038216611e495760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610875565b611e5582600083612069565b6001600160a01b03821660009081526002602052604090205481811015611ec95760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610875565b6001600160a01b0383166000908152600260205260408120838303905560048054849290611ef8908490612507565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b60075460ff1615611f895760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610875565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611ce13390565b6000610bb183836120ee565b60006106b2825490565b6000818310611fe35781610bb1565b5090919050565b6000610bb182846124e8565b6000610bb18284612507565b6000610bb182846124c6565b6000610bb182846124ae565b6000818152600183016020526040812054612061575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556106b2565b5060006106b2565b610804838383612118565b61207e8282610bb8565b15610888576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610bb1836001600160a01b03841661217e565b6000826000018281548110612105576121056125e3565b9060005260206000200154905092915050565b60075460ff16156108045760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b6064820152608401610875565b600081815260018301602052604081205480156122675760006121a2600183612507565b85549091506000906121b690600190612507565b905081811461221b5760008660000182815481106121d6576121d66125e3565b90600052602060002001549050808760000184815481106121f9576121f96125e3565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061222c5761222c6125cd565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506106b2565b60009150506106b2565b80356001600160a01b038116811461228857600080fd5b919050565b60006020828403121561229f57600080fd5b610bb182612271565b600080604083850312156122bb57600080fd5b6122c483612271565b91506122d260208401612271565b90509250929050565b6000806000606084860312156122f057600080fd5b6122f984612271565b925061230760208501612271565b9150604084013590509250925092565b6000806040838503121561232a57600080fd5b61233383612271565b946020939093013593505050565b60006020828403121561235357600080fd5b5035919050565b6000806040838503121561236d57600080fd5b823591506122d260208401612271565b6000806040838503121561239057600080fd5b50508035926020909101359150565b6000602082840312156123b157600080fd5b81356001600160e01b031981168114610bb157600080fd5b6000602082840312156123db57600080fd5b5051919050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161241a81601785016020880161251e565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161244b81602884016020880161251e565b01602801949350505050565b602081526000825180602084015261247681604085016020870161251e565b601f01601f19169190910160400192915050565b6020808252600a908201526941646d696e206f6e6c7960b01b604082015260600190565b600082198211156124c1576124c16125b7565b500190565b6000826124e357634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615612502576125026125b7565b500290565b600082821015612519576125196125b7565b500390565b60005b83811015612539578181015183820152602001612521565b8381111561185a5750506000910152565b600081612559576125596125b7565b506000190190565b600181811c9082168061257557607f821691505b6020821081141561259657634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156125b0576125b06125b7565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfe3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848a264697066735822122062d384acda37df5710313d1ae2af35fbcd555129af3f26547defc4db166b8c8564736f6c63430008070033000000000000000000000000c9d198089d6c31d0ca5cc5b92c97a57a97bbfde2

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061028a5760003560e01c806379cc67901161015c578063c00007b0116100ce578063d539139311610087578063d5391393146105c8578063d547741f146105ef578063d56d229d14610602578063d57382591461061a578063dd62ed3e1461062d578063e63ab1e91461066657600080fd5b8063c00007b014610549578063ca15c8731461055c578063cb03fb1e1461056f578063cc240c011461058f578063ce6af681146105a2578063d230af3a146105b557600080fd5b806395d89b411161012057806395d89b41146104d7578063a2081dc1146104df578063a217fddf14610508578063a457c2d714610510578063a9059cbb14610523578063af7d6ca31461053657600080fd5b806379cc67901461048b5780638456cb591461049e5780638acecfc5146104a65780639010d07c146104b157806391d14854146104c457600080fd5b8063313ce5671161020057806340c10f19116101b957806340c10f191461040f57806342966c68146104225780635997bb37146104355780635c975abb1461044457806370a082311461044f57806375f890ab1461047857600080fd5b8063313ce567146103b357806336568abe146103c257806336bcf7d6146103d5578063381b9801146103e557806339509351146103f45780633f4ba83a1461040757600080fd5b806318160ddd1161025257806318160ddd1461033857806323b872dd14610340578063248a9ca314610353578063267e8ab614610376578063282c51f3146103895780632f2ff15d1461039e57600080fd5b806301ffc9a71461028f57806306fdde03146102b75780630700037d146102cc578063095ea7b3146102fa5780630f0b45a51461030d575b600080fd5b6102a261029d36600461239f565b61068d565b60405190151581526020015b60405180910390f35b6102bf6106b8565b6040516102ae9190612457565b6102ec6102da36600461228d565b60086020526000908152604090205481565b6040519081526020016102ae565b6102a2610308366004612317565b61074a565b61032061031b366004612341565b610762565b6040516001600160a01b0390911681526020016102ae565b6004546102ec565b6102a261034e3660046122db565b61078c565b6102ec610361366004612341565b60009081526020819052604090206001015490565b6102ec61038436600461228d565b6107b0565b6102ec60008051602061261083398151915281565b6103b16103ac36600461235a565b6107de565b005b604051601281526020016102ae565b6103b16103d036600461235a565b610809565b6102ec68056bc75e2d6310000081565b6102ec674563918244f4000081565b6102a2610402366004612317565b61088c565b6103b16108cb565b6103b161041d366004612317565b610971565b6103b1610430366004612341565b610a10565b6102ec678ac7230489e8000081565b60075460ff166102a2565b6102ec61045d36600461228d565b6001600160a01b031660009081526002602052604090205490565b6103b161048636600461228d565b610a81565b6103b1610499366004612317565b610ae0565b6103b1610af5565b6102ec637516380081565b6103206104bf36600461237d565b610b99565b6102a26104d236600461235a565b610bb8565b6102bf610be1565b6103206104ed36600461228d565b600a602052600090815260409020546001600160a01b031681565b6102ec600081565b6102a261051e366004612317565b610bf0565b6102a2610531366004612317565b610c82565b6103b1610544366004612317565b610c90565b6103b161055736600461228d565b610d45565b6102ec61056a366004612341565b610e0f565b6102ec61057d36600461228d565b60096020526000908152604090205481565b6103b161059d366004612317565b610e26565b6103b16105b036600461228d565b611008565b6103b16105c33660046122a8565b6110ac565b6102ec7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6103b16105fd36600461235a565b6112be565b6007546103209061010090046001600160a01b031681565b6103b161062836600461228d565b6112e4565b6102ec61063b3660046122a8565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b6102ec7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b60006001600160e01b03198216635a05180f60e01b14806106b257506106b282611675565b92915050565b6060600580546106c790612561565b80601f01602080910402602001604051908101604052809291908181526020018280546106f390612561565b80156107405780601f1061071557610100808354040283529160200191610740565b820191906000526020600020905b81548152906001019060200180831161072357829003601f168201915b5050505050905090565b6000336107588185856116aa565b5060019392505050565b600b818154811061077257600080fd5b6000918252602090912001546001600160a01b0316905081565b60003361079a8582856117ce565b6107a5858585611860565b506001949350505050565b60006107bb82611a39565b6001600160a01b0383166000908152600860205260409020546106b291906124ae565b6000828152602081905260409020600101546107fa8133611bc3565b6108048383611c27565b505050565b6001600160a01b038116331461087e5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6108888282611c49565b5050565b3360008181526003602090815260408083206001600160a01b038716845290915281205490919061075890829086906108c69087906124ae565b6116aa565b6108f57f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610bb8565b6109675760405162461bcd60e51b815260206004820152603960248201527f45524332305072657365744d696e7465725061757365723a206d75737420686160448201527f76652070617573657220726f6c6520746f20756e7061757365000000000000006064820152608401610875565b61096f611c6b565b565b61099b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610bb8565b610a065760405162461bcd60e51b815260206004820152603660248201527f45524332305072657365744d696e7465725061757365723a206d7573742068616044820152751d99481b5a5b9d195c881c9bdb19481d1bc81b5a5b9d60521b6064820152608401610875565b6108888282611cfe565b610a2860008051602061261083398151915233610bb8565b610a745760405162461bcd60e51b815260206004820152601d60248201527f4d7573742068617665206275726e657220726f6c6520746f206275726e0000006044820152606401610875565b610a7e3382611de9565b50565b610a8c600033610bb8565b610aa85760405162461bcd60e51b81526004016108759061248a565b60078054610100600160a81b0319166101006001600160a01b03841602179055610a7e600080516020612610833981519152826107de565b610aeb8233836117ce565b6108888282611de9565b610b1f7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610bb8565b610b915760405162461bcd60e51b815260206004820152603760248201527f45524332305072657365744d696e7465725061757365723a206d75737420686160448201527f76652070617573657220726f6c6520746f2070617573650000000000000000006064820152608401610875565b61096f611f43565b6000828152600160205260408120610bb19083611fbe565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600680546106c790612561565b3360008181526003602090815260408083206001600160a01b038716845290915281205490919083811015610c755760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610875565b6107a582868684036116aa565b600033610758818585611860565b610ca860008051602061261083398151915233610bb8565b610cf45760405162461bcd60e51b815260206004820152601e60248201527f4d7573742068617665206275726e657220726f6c6520746f207370656e6400006044820152606401610875565b610cfe8282611de9565b816001600160a01b03167f447a8ed4bfe48145b98ef39019552a767b491c5c1bf60576eeca757b4486ec8a82604051610d3991815260200190565b60405180910390a25050565b60075461010090046001600160a01b03163314610d925760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610875565b6001600160a01b0381166000908152600860205260409020548015610888576001600160a01b038216600090815260086020526040812055610dd48282611cfe565b816001600160a01b03167f600ea3891141b95cbf6042c7c0054a72001860c514e9fc9ab158e3ed63f90ec782604051610d3991815260200190565b60008181526001602052604081206106b290611fca565b60075461010090046001600160a01b03163314610e735760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610875565b6000610e83426375163800611fd4565b6001600160a01b0384166000908152600960205260409020549091508015610fb757610f99610f7a610ebe8568056bc75e2d63100000611fea565b610f7462015180610f6e610ee4610ed58989611ff6565b678ac7230489e8000090611fea565b6007546040516370a0823160e01b81526001600160a01b038d81166004830152610100909204909116906370a08231906024015b60206040518083038186803b158015610f3057600080fd5b505afa158015610f44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6891906123c9565b90611fea565b90612002565b9061200e565b6001600160a01b0386166000908152600860205260409020549061200e565b6001600160a01b038516600090815260086020526040902055610fe7565b610fcd610f7a8468056bc75e2d63100000611fea565b6001600160a01b0385166000908152600860205260409020555b506001600160a01b0390921660009081526009602052604090209190915550565b611013600033610bb8565b61102f5760405162461bcd60e51b81526004016108759061248a565b6001600160a01b0381166000818152600a6020526040812080546001600160a01b03199081168417909155600b805460018101825592527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db990910180549091169091179055610a7e600080516020612610833981519152826107de565b60075461010090046001600160a01b031633148061110b5750336000908152600a6020908152604080832054905160609190911b6bffffffffffffffffffffffff19169181019190915260340160405160208183030381529060405251115b61114a5760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a590810dbdb9d1c9858dd60821b6044820152606401610875565b600061115a426375163800611fd4565b90506001600160a01b0383161561120b576001600160a01b03831660009081526009602052604090205480156111c15761119384611a39565b6001600160a01b038516600090815260086020526040812080549091906111bb9084906124ae565b90915550505b6001600160a01b0384166000908152600960205260409020546375163800116111ee5763751638006111f0565b815b6001600160a01b038516600090815260096020526040902055505b6001600160a01b03821615610804576001600160a01b03821660009081526009602052604090205480156112705761124283611a39565b6001600160a01b0384166000908152600860205260408120805490919061126a9084906124ae565b90915550505b6001600160a01b03831660009081526009602052604090205463751638001161129d57637516380061129f565b815b6001600160a01b03841660009081526009602052604090205550505050565b6000828152602081905260409020600101546112da8133611bc3565b6108048383611c49565b6112ef600033610bb8565b61130b5760405162461bcd60e51b81526004016108759061248a565b6001600160a01b0381166000908152600a6020526040812080546001600160a01b03191690555b816001600160a01b0316600b828154811061134f5761134f6125e3565b6000918252602090912001546001600160a01b03161461137b57806113738161259c565b915050611332565b600b805461138b90600190612507565b8154811061139b5761139b6125e3565b600091825260209091200154600b80546001600160a01b0390921691839081106113c7576113c76125e3565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600b805480611406576114066125cd565b600082815260209020810160001990810180546001600160a01b0319169055019055610888600080516020612610833981519152836112be565b61144a8282610bb8565b610888576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556114803390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000610bb1836001600160a01b03841661201a565b606060006114e88360026124e8565b6114f39060026124ae565b67ffffffffffffffff81111561150b5761150b6125f9565b6040519080825280601f01601f191660200182016040528015611535576020820181803683370190505b509050600360fc1b81600081518110611550576115506125e3565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061157f5761157f6125e3565b60200101906001600160f81b031916908160001a90535060006115a38460026124e8565b6115ae9060016124ae565b90505b6001811115611626576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106115e2576115e26125e3565b1a60f81b8282815181106115f8576115f86125e3565b60200101906001600160f81b031916908160001a90535060049490941c9361161f8161254a565b90506115b1565b508315610bb15760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610875565b60006001600160e01b03198216637965db0b60e01b14806106b257506301ffc9a760e01b6001600160e01b03198316146106b2565b6001600160a01b03831661170c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610875565b6001600160a01b03821661176d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610875565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03838116600090815260036020908152604080832093861683529290522054600019811461185a578181101561184d5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610875565b61185a84848484036116aa565b50505050565b6001600160a01b0383166118c45760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610875565b6001600160a01b0382166119265760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610875565b611931838383612069565b6001600160a01b038316600090815260026020526040902054818110156119a95760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610875565b6001600160a01b038085166000908152600260205260408082208585039055918516815290812080548492906119e09084906124ae565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611a2c91815260200190565b60405180910390a361185a565b600080611a4a426375163800611fd4565b600b5490915060009015611b3a5760005b600b54811015611b3857611b2482610f7462015180610f6e611abd611aae600960008d6001600160a01b03166001600160a01b03168152602001908152602001600020548a611ff690919063ffffffff16565b674563918244f4000090611fea565b600a6000600b8981548110611ad457611ad46125e3565b6000918252602080832091909101546001600160a01b03908116845290830193909352604091820190205490516370a0823160e01b81528d831660048201529116906370a0823190602401610f18565b915080611b308161259c565b915050611a5b565b505b611bbb81610f7462015180610f6e611b83610ed5600960008c6001600160a01b03166001600160a01b031681526020019081526020016000205489611ff690919063ffffffff16565b6007546040516370a0823160e01b81526001600160a01b038c81166004830152610100909204909116906370a0823190602401610f18565b949350505050565b611bcd8282610bb8565b61088857611be5816001600160a01b031660146114d9565b611bf08360206114d9565b604051602001611c019291906123e2565b60408051601f198184030181529082905262461bcd60e51b825261087591600401612457565b611c318282611440565b600082815260016020526040902061080490826114c4565b611c538282612074565b600082815260016020526040902061080490826120d9565b60075460ff16611cb45760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610875565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038216611d545760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610875565b611d6060008383612069565b8060046000828254611d7291906124ae565b90915550506001600160a01b03821660009081526002602052604081208054839290611d9f9084906124ae565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038216611e495760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610875565b611e5582600083612069565b6001600160a01b03821660009081526002602052604090205481811015611ec95760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610875565b6001600160a01b0383166000908152600260205260408120838303905560048054849290611ef8908490612507565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b60075460ff1615611f895760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610875565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611ce13390565b6000610bb183836120ee565b60006106b2825490565b6000818310611fe35781610bb1565b5090919050565b6000610bb182846124e8565b6000610bb18284612507565b6000610bb182846124c6565b6000610bb182846124ae565b6000818152600183016020526040812054612061575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556106b2565b5060006106b2565b610804838383612118565b61207e8282610bb8565b15610888576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610bb1836001600160a01b03841661217e565b6000826000018281548110612105576121056125e3565b9060005260206000200154905092915050565b60075460ff16156108045760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e736665722077686044820152691a5b19481c185d5cd95960b21b6064820152608401610875565b600081815260018301602052604081205480156122675760006121a2600183612507565b85549091506000906121b690600190612507565b905081811461221b5760008660000182815481106121d6576121d66125e3565b90600052602060002001549050808760000184815481106121f9576121f96125e3565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061222c5761222c6125cd565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506106b2565b60009150506106b2565b80356001600160a01b038116811461228857600080fd5b919050565b60006020828403121561229f57600080fd5b610bb182612271565b600080604083850312156122bb57600080fd5b6122c483612271565b91506122d260208401612271565b90509250929050565b6000806000606084860312156122f057600080fd5b6122f984612271565b925061230760208501612271565b9150604084013590509250925092565b6000806040838503121561232a57600080fd5b61233383612271565b946020939093013593505050565b60006020828403121561235357600080fd5b5035919050565b6000806040838503121561236d57600080fd5b823591506122d260208401612271565b6000806040838503121561239057600080fd5b50508035926020909101359150565b6000602082840312156123b157600080fd5b81356001600160e01b031981168114610bb157600080fd5b6000602082840312156123db57600080fd5b5051919050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161241a81601785016020880161251e565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161244b81602884016020880161251e565b01602801949350505050565b602081526000825180602084015261247681604085016020870161251e565b601f01601f19169190910160400192915050565b6020808252600a908201526941646d696e206f6e6c7960b01b604082015260600190565b600082198211156124c1576124c16125b7565b500190565b6000826124e357634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615612502576125026125b7565b500290565b600082821015612519576125196125b7565b500390565b60005b83811015612539578181015183820152602001612521565b8381111561185a5750506000910152565b600081612559576125596125b7565b506000190190565b600181811c9082168061257557607f821691505b6020821081141561259657634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156125b0576125b06125b7565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfe3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848a264697066735822122062d384acda37df5710313d1ae2af35fbcd555129af3f26547defc4db166b8c8564736f6c63430008070033

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

000000000000000000000000c9d198089d6c31d0ca5cc5b92c97a57a97bbfde2

-----Decoded View---------------
Arg [0] : _nftContract (address): 0xC9d198089D6c31d0Ca5Cc5B92C97a57A97BBfdE2

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000c9d198089d6c31d0ca5cc5b92c97a57a97bbfde2


Deployed Bytecode Sourcemap

64945:5788:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38233:290;;;;;;:::i;:::-;;:::i;:::-;;;4021:14:1;;4014:22;3996:41;;3984:2;3969:18;38233:290:0;;;;;;;;48413:100;;;:::i;:::-;;;;;;;:::i;65339:42::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;4194:25:1;;;4182:2;4167:18;65339:42:0;4048:177:1;50905:242:0;;;;;;:::i;:::-;;:::i;65505:44::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;3812:32:1;;;3794:51;;3782:2;3767:18;65505:44:0;3648:203:1;49533:108:0;49621:12;;49533:108;;51727:295;;;;;;:::i;:::-;;:::i;33892:181::-;;;;;;:::i;:::-;34011:7;34043:12;;;;;;;;;;:22;;;;33892:181;69075;;;;;;:::i;:::-;;:::i;65688:62::-;;-1:-1:-1;;;;;;;;;;;65688:62:0;;34335:188;;;;;;:::i;:::-;;:::i;:::-;;49375:93;;;49458:2;14021:36:1;;14009:2;13994:18;49375:93:0;13879:184:1;35465:287:0;;;;;;:::i;:::-;;:::i;65073:50::-;;65114:9;65073:50;;65183:55;;65231:7;65183:55;;52431:272;;;;;;:::i;:::-;;:::i;64324:215::-;;;:::i;63441:242::-;;;;;;:::i;:::-;;:::i;70240:216::-;;;;;;:::i;:::-;;:::i;65130:46::-;;65168:8;65130:46;;41420:86;41491:7;;;;41420:86;;49704:177;;;;;;:::i;:::-;-1:-1:-1;;;;;49855:18:0;49823:7;49855:18;;;:9;:18;;;;;;;49704:177;65950:222;;;;;;:::i;:::-;;:::i;61507:164::-;;;;;;:::i;:::-;;:::i;63897:209::-;;;:::i;65283:47::-;;65320:10;65283:47;;39122:203;;;;;;:::i;:::-;;:::i;32711:197::-;;;;;;:::i;:::-;;:::i;48632:104::-;;;:::i;65440:58::-;;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;65440:58:0;;;31726:49;;31771:4;31726:49;;53206:507;;;;;;:::i;:::-;;:::i;50087:234::-;;;;;;:::i;:::-;;:::i;70464:266::-;;;;;;:::i;:::-;;:::i;68763:304::-;;;;;;:::i;:::-;;:::i;39499:192::-;;;;;;:::i;:::-;;:::i;65388:45::-;;;;;;:::i;:::-;;;;;;;;;;;;;;67158:667;;;;;;:::i;:::-;;:::i;66180:303::-;;;;;;:::i;:::-;;:::i;67833:922::-;;;;;;:::i;:::-;;:::i;62683:62::-;;62721:24;62683:62;;34768:190;;;;;;:::i;:::-;;:::i;65033:31::-;;;;;;;;-1:-1:-1;;;;;65033:31:0;;;66491:545;;;;;;:::i;:::-;;:::i;50384:201::-;;;;;;:::i;:::-;-1:-1:-1;;;;;50550:18:0;;;50518:7;50550:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;50384:201;62752:62;;62790:24;62752:62;;38233:290;38363:4;-1:-1:-1;;;;;;38405:57:0;;-1:-1:-1;;;38405:57:0;;:110;;;38479:36;38503:11;38479:23;:36::i;:::-;38385:130;38233:290;-1:-1:-1;;38233:290:0:o;48413:100::-;48467:13;48500:5;48493:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48413:100;:::o;50905:242::-;51024:4;29624:10;51085:32;29624:10;51101:7;51110:6;51085:8;:32::i;:::-;-1:-1:-1;51135:4:0;;50905:242;-1:-1:-1;;;50905:242:0:o;65505:44::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;65505:44:0;;-1:-1:-1;65505:44:0;:::o;51727:295::-;51858:4;29624:10;51916:38;51932:4;29624:10;51947:6;51916:15;:38::i;:::-;51965:27;51975:4;51981:2;51985:6;51965:9;:27::i;:::-;-1:-1:-1;52010:4:0;;51727:295;-1:-1:-1;;;;51727:295:0:o;69075:181::-;69170:7;69222:26;69239:8;69222:16;:26::i;:::-;-1:-1:-1;;;;;69202:17:0;;;;;;:7;:17;;;;;;:46;;;;:::i;34335:188::-;34011:7;34043:12;;;;;;;;;;:22;;;32217:30;32228:4;29624:10;32217;:30::i;:::-;34490:25:::1;34501:4;34507:7;34490:10;:25::i;:::-;34335:188:::0;;;:::o;35465:287::-;-1:-1:-1;;;;;35607:23:0;;29624:10;35607:23;35585:120;;;;-1:-1:-1;;;35585:120:0;;12712:2:1;35585:120:0;;;12694:21:1;12751:2;12731:18;;;12724:30;12790:34;12770:18;;;12763:62;-1:-1:-1;;;12841:18:1;;;12834:45;12896:19;;35585:120:0;;;;;;;;;35718:26;35730:4;35736:7;35718:11;:26::i;:::-;35465:287;;:::o;52431:272::-;29624:10;52546:4;52632:18;;;:11;:18;;;;;;;;-1:-1:-1;;;;;52632:27:0;;;;;;;;;;52546:4;;29624:10;52607:66;;29624:10;;52632:27;;:40;;52662:10;;52632:40;:::i;:::-;52607:8;:66::i;64324:215::-;64391:34;62790:24;29624:10;32711:197;:::i;64391:34::-;64369:141;;;;-1:-1:-1;;;64369:141:0;;6566:2:1;64369:141:0;;;6548:21:1;6605:2;6585:18;;;6578:30;6644:34;6624:18;;;6617:62;6715:27;6695:18;;;6688:55;6760:19;;64369:141:0;6364:421:1;64369:141:0;64521:10;:8;:10::i;:::-;64324:215::o;63441:242::-;63531:34;62721:24;29624:10;32711:197;:::i;63531:34::-;63509:138;;;;-1:-1:-1;;;63509:138:0;;9549:2:1;63509:138:0;;;9531:21:1;9588:2;9568:18;;;9561:30;9627:34;9607:18;;;9600:62;-1:-1:-1;;;9678:18:1;;;9671:52;9740:19;;63509:138:0;9347:418:1;63509:138:0;63658:17;63664:2;63668:6;63658:5;:17::i;70240:216::-;70318:32;-1:-1:-1;;;;;;;;;;;70339:10:0;70318:7;:32::i;:::-;70296:111;;;;-1:-1:-1;;;70296:111:0;;10780:2:1;70296:111:0;;;10762:21:1;10819:2;10799:18;;;10792:30;10858:31;10838:18;;;10831:59;10907:18;;70296:111:0;10578:353:1;70296:111:0;70418:30;70430:10;70442:5;70418:11;:30::i;:::-;70240:216;:::o;65950:222::-;66016:41;31771:4;29624:10;32711:197;:::i;66016:41::-;66008:64;;;;-1:-1:-1;;;66008:64:0;;;;;;;:::i;:::-;66083:11;:37;;-1:-1:-1;;;;;;66083:37:0;;-1:-1:-1;;;;;66083:37:0;;;;;;66131:33;-1:-1:-1;;;;;;;;;;;66083:37:0;66131:9;:33::i;61507:164::-;61584:46;61600:7;29624:10;61623:6;61584:15;:46::i;:::-;61641:22;61647:7;61656:6;61641:5;:22::i;63897:209::-;63962:34;62790:24;29624:10;32711:197;:::i;63962:34::-;63940:139;;;;-1:-1:-1;;;63940:139:0;;11543:2:1;63940:139:0;;;11525:21:1;11582:2;11562:18;;;11555:30;11621:34;11601:18;;;11594:62;11692:25;11672:18;;;11665:53;11735:19;;63940:139:0;11341:419:1;63940:139:0;64090:8;:6;:8::i;39122:203::-;39257:7;39289:18;;;:12;:18;;;;;:28;;39311:5;39289:21;:28::i;:::-;39282:35;39122:203;-1:-1:-1;;;39122:203:0:o;32711:197::-;32842:4;32871:12;;;;;;;;;;;-1:-1:-1;;;;;32871:29:0;;;;;;;;;;;;;;;32711:197::o;48632:104::-;48688:13;48721:7;48714:14;;;;;:::i;53206:507::-;29624:10;53326:4;53414:18;;;:11;:18;;;;;;;;-1:-1:-1;;;;;53414:27:0;;;;;;;;;;53326:4;;29624:10;53474:35;;;;53452:122;;;;-1:-1:-1;;;53452:122:0;;12306:2:1;53452:122:0;;;12288:21:1;12345:2;12325:18;;;12318:30;12384:34;12364:18;;;12357:62;-1:-1:-1;;;12435:18:1;;;12428:35;12480:19;;53452:122:0;12104:401:1;53452:122:0;53610:60;53619:5;53626:7;53654:15;53635:16;:34;53610:8;:60::i;50087:234::-;50202:4;29624:10;50263:28;29624:10;50280:2;50284:6;50263:9;:28::i;70464:266::-;70553:32;-1:-1:-1;;;;;;;;;;;70574:10:0;70553:7;:32::i;:::-;70531:112;;;;-1:-1:-1;;;70531:112:0;;8850:2:1;70531:112:0;;;8832:21:1;8889:2;8869:18;;;8862:30;8928:32;8908:18;;;8901:60;8978:18;;70531:112:0;8648:354:1;70531:112:0;70654:27;70666:5;70673:7;70654:11;:27::i;:::-;70707:5;-1:-1:-1;;;;;70697:25:0;;70714:7;70697:25;;;;4194::1;;4182:2;4167:18;;4048:177;70697:25:0;;;;;;;;70464:266;;:::o;68763:304::-;68845:11;;;;;-1:-1:-1;;;;;68845:11:0;68823:10;:34;68815:58;;;;-1:-1:-1;;;68815:58:0;;9209:2:1;68815:58:0;;;9191:21:1;9248:2;9228:18;;;9221:30;-1:-1:-1;;;9267:18:1;;;9260:41;9318:18;;68815:58:0;9007:335:1;68815:58:0;-1:-1:-1;;;;;68901:12:0;;68884:14;68901:12;;;:7;:12;;;;;;68928:10;;68924:136;;-1:-1:-1;;;;;68955:12:0;;68970:1;68955:12;;;:7;:12;;;;;:16;68986:18;68963:3;68997:6;68986:5;:18::i;:::-;69036:3;-1:-1:-1;;;;;69024:24:0;;69041:6;69024:24;;;;4194:25:1;;4182:2;4167:18;;4048:177;39499:192:0;39624:7;39656:18;;;:12;:18;;;;;:27;;:25;:27::i;67158:667::-;67266:11;;;;;-1:-1:-1;;;;;67266:11:0;67244:10;:34;67236:58;;;;-1:-1:-1;;;67236:58:0;;9209:2:1;67236:58:0;;;9191:21:1;9248:2;9228:18;;;9221:30;-1:-1:-1;;;9267:18:1;;;9260:41;9318:18;;67236:58:0;9007:335:1;67236:58:0;67305:12;67320:32;67324:15;65320:10;67320:3;:32::i;:::-;-1:-1:-1;;;;;67383:15:0;;67363:17;67383:15;;;:10;:15;;;;;;67305:47;;-1:-1:-1;67413:13:0;;67409:375;;67456:252;67491:202;67665:27;:7;65114:9;67665:11;:27::i;:::-;67491:147;67632:5;67491:114;67566:38;67583:19;:4;67592:9;67583:8;:19::i;:::-;65168:8;;67566:15;:38::i;:::-;67491:11;;:48;;-1:-1:-1;;;67491:48:0;;-1:-1:-1;;;;;3812:32:1;;;67491:48:0;;;3794:51:1;67491:11:0;;;;;;;;:43;;3767:18:1;;67491:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:74;;:114::i;:::-;:140;;:147::i;:::-;:173;;:202::i;:::-;-1:-1:-1;;;;;67456:12:0;;;;;;:7;:12;;;;;;;:16;:252::i;:::-;-1:-1:-1;;;;;67441:12:0;;;;;;:7;:12;;;;;:267;67409:375;;;67739:45;67756:27;:7;65114:9;67756:11;:27::i;67739:45::-;-1:-1:-1;;;;;67724:12:0;;;;;;:7;:12;;;;;:60;67409:375;-1:-1:-1;;;;;;67795:15:0;;;;;;;:10;:15;;;;;:22;;;;-1:-1:-1;67158:667:0:o;66180:303::-;66255:41;31771:4;29624:10;32711:197;:::i;66255:41::-;66247:64;;;;-1:-1:-1;;;66247:64:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;66322:29:0;;;;;;:18;:29;;;;;:55;;-1:-1:-1;;;;;;66322:55:0;;;;;;;;66388:27;:43;;66322:55;66388:43;;;;;;;;;;;;;;;;;;;;66442:33;-1:-1:-1;;;;;;;;;;;66367:9:0;66442;:33::i;67833:922::-;67947:11;;;;;-1:-1:-1;;;;;67947:11:0;67925:10;:34;;:114;;-1:-1:-1;68016:10:0;68038:1;67997:30;;;:18;:30;;;;;;;;;67980:48;;2772:2:1;2768:15;;;;-1:-1:-1;;2768:15:1;67980:48:0;;;2752:66:1;;;;2834:12;;67980:48:0;;;;;;;;;;;;:55;:59;67925:114;67903:180;;;;-1:-1:-1;;;67903:180:0;;8505:2:1;67903:180:0;;;8487:21:1;8544:2;8524:18;;;8517:30;-1:-1:-1;;;8563:18:1;;;8556:46;8619:18;;67903:180:0;8303:340:1;67903:180:0;68094:12;68109:32;68113:15;65320:10;68109:3;:32::i;:::-;68094:47;-1:-1:-1;;;;;;68156:19:0;;;68152:317;;-1:-1:-1;;;;;68212:17:0;;68192;68212;;;:10;:17;;;;;;68248:13;;68244:95;;68300:23;68317:5;68300:16;:23::i;:::-;-1:-1:-1;;;;;68282:14:0;;;;;;:7;:14;;;;;:41;;:14;;;:41;;;;;:::i;:::-;;;;-1:-1:-1;;68244:95:0;-1:-1:-1;;;;;68373:17:0;;;;;;:10;:17;;;;;;65320:10;-1:-1:-1;68373:84:0;;65320:10;68373:84;;;68423:4;68373:84;-1:-1:-1;;;;;68353:17:0;;;;;;:10;:17;;;;;:104;-1:-1:-1;68152:317:0;-1:-1:-1;;;;;68485:17:0;;;68481:267;;-1:-1:-1;;;;;68537:15:0;;68519;68537;;;:10;:15;;;;;;68571:11;;68567:89;;68619:21;68636:3;68619:16;:21::i;:::-;-1:-1:-1;;;;;68603:12:0;;;;;;:7;:12;;;;;:37;;:12;;;:37;;;;;:::i;:::-;;;;-1:-1:-1;;68567:89:0;-1:-1:-1;;;;;68688:15:0;;;;;;:10;:15;;;;;;65320:10;-1:-1:-1;68688:48:0;;65320:10;68688:48;;;68719:4;68688:48;-1:-1:-1;;;;;68670:15:0;;;;;;:10;:15;;;;;:66;-1:-1:-1;67892:863:0;67833:922;;:::o;34768:190::-;34011:7;34043:12;;;;;;;;;;:22;;;32217:30;32228:4;29624:10;32217;:30::i;:::-;34924:26:::1;34936:4;34942:7;34924:11;:26::i;66491:545::-:0;66569:41;31771:4;29624:10;32711:197;:::i;66569:41::-;66561:64;;;;-1:-1:-1;;;66561:64:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;66643:29:0;;;;;;:18;:29;;;;;66636:36;;-1:-1:-1;;;;;;66636:36:0;;;66711:90;66756:9;-1:-1:-1;;;;;66718:47:0;:27;66746:5;66718:34;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;66718:34:0;:47;66711:90;;66782:7;;;;:::i;:::-;;;;66711:90;;;66848:27;66890:34;;:38;;66927:1;;66890:38;:::i;:::-;66848:91;;;;;;;;:::i;:::-;;;;;;;;;;;66811:27;:34;;-1:-1:-1;;;;;66848:91:0;;;;66839:5;;66811:34;;;;;;:::i;:::-;;;;;;;;;:128;;;;;-1:-1:-1;;;;;66811:128:0;;;;;-1:-1:-1;;;;;66811:128:0;;;;;;66950:27;:33;;;;;;;:::i;:::-;;;;;;;;;;-1:-1:-1;;66950:33:0;;;;;-1:-1:-1;;;;;;66950:33:0;;;;;;66994:34;-1:-1:-1;;;;;;;;;;;67018:9:0;66994:10;:34::i;37035:238::-;37119:22;37127:4;37133:7;37119;:22::i;:::-;37114:152;;37158:6;:12;;;;;;;;;;;-1:-1:-1;;;;;37158:29:0;;;;;;;;;:36;;-1:-1:-1;;37158:36:0;37190:4;37158:36;;;37241:12;29624:10;;29544:98;37241:12;-1:-1:-1;;;;;37214:40:0;37232:7;-1:-1:-1;;;;;37214:40:0;37226:4;37214:40;;;;;;;;;;37035:238;;:::o;15296:175::-;15384:4;15413:50;15418:3;-1:-1:-1;;;;;15438:23:0;;15413:4;:50::i;23916:483::-;24018:13;24049:19;24081:10;24085:6;24081:1;:10;:::i;:::-;:14;;24094:1;24081:14;:::i;:::-;24071:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24071:25:0;;24049:47;;-1:-1:-1;;;24107:6:0;24114:1;24107:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;24107:15:0;;;;;;;;;-1:-1:-1;;;24133:6:0;24140:1;24133:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;24133:15:0;;;;;;;;-1:-1:-1;24164:9:0;24176:10;24180:6;24176:1;:10;:::i;:::-;:14;;24189:1;24176:14;:::i;:::-;24164:26;;24159:135;24196:1;24192;:5;24159:135;;;-1:-1:-1;;;24244:5:0;24252:3;24244:11;24231:25;;;;;;;:::i;:::-;;;;24219:6;24226:1;24219:9;;;;;;;;:::i;:::-;;;;:37;-1:-1:-1;;;;;24219:37:0;;;;;;;;-1:-1:-1;24281:1:0;24271:11;;;;;24199:3;;;:::i;:::-;;;24159:135;;;-1:-1:-1;24312:10:0;;24304:55;;;;-1:-1:-1;;;24304:55:0;;5049:2:1;24304:55:0;;;5031:21:1;;;5068:18;;;5061:30;5127:34;5107:18;;;5100:62;5179:18;;24304:55:0;4847:356:1;32339:280:0;32469:4;-1:-1:-1;;;;;;32511:47:0;;-1:-1:-1;;;32511:47:0;;:100;;-1:-1:-1;;;;;;;;;;22197:40:0;;;32575:36;22038:207;56948:380;-1:-1:-1;;;;;57084:19:0;;57076:68;;;;-1:-1:-1;;;57076:68:0;;11138:2:1;57076:68:0;;;11120:21:1;11177:2;11157:18;;;11150:30;11216:34;11196:18;;;11189:62;-1:-1:-1;;;11267:18:1;;;11260:34;11311:19;;57076:68:0;10936:400:1;57076:68:0;-1:-1:-1;;;;;57163:21:0;;57155:68;;;;-1:-1:-1;;;57155:68:0;;6992:2:1;57155:68:0;;;6974:21:1;7031:2;7011:18;;;7004:30;7070:34;7050:18;;;7043:62;-1:-1:-1;;;7121:18:1;;;7114:32;7163:19;;57155:68:0;6790:398:1;57155:68:0;-1:-1:-1;;;;;57236:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;57288:32;;4194:25:1;;;57288:32:0;;4167:18:1;57288:32:0;;;;;;;56948:380;;;:::o;57615:502::-;-1:-1:-1;;;;;50550:18:0;;;57750:24;50550:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;-1:-1:-1;;57817:37:0;;57813:297;;57917:6;57897:16;:26;;57871:117;;;;-1:-1:-1;;;57871:117:0;;7395:2:1;57871:117:0;;;7377:21:1;7434:2;7414:18;;;7407:30;7473:31;7453:18;;;7446:59;7522:18;;57871:117:0;7193:353:1;57871:117:0;58032:51;58041:5;58048:7;58076:6;58057:16;:25;58032:8;:51::i;:::-;57739:378;57615:502;;;:::o;54192:708::-;-1:-1:-1;;;;;54323:18:0;;54315:68;;;;-1:-1:-1;;;54315:68:0;;10374:2:1;54315:68:0;;;10356:21:1;10413:2;10393:18;;;10386:30;10452:34;10432:18;;;10425:62;-1:-1:-1;;;10503:18:1;;;10496:35;10548:19;;54315:68:0;10172:401:1;54315:68:0;-1:-1:-1;;;;;54402:16:0;;54394:64;;;;-1:-1:-1;;;54394:64:0;;5410:2:1;54394:64:0;;;5392:21:1;5449:2;5429:18;;;5422:30;5488:34;5468:18;;;5461:62;-1:-1:-1;;;5539:18:1;;;5532:33;5582:19;;54394:64:0;5208:399:1;54394:64:0;54471:38;54492:4;54498:2;54502:6;54471:20;:38::i;:::-;-1:-1:-1;;;;;54544:15:0;;54522:19;54544:15;;;:9;:15;;;;;;54592:21;;;;54570:109;;;;-1:-1:-1;;;54570:109:0;;7753:2:1;54570:109:0;;;7735:21:1;7792:2;7772:18;;;7765:30;7831:34;7811:18;;;7804:62;-1:-1:-1;;;7882:18:1;;;7875:36;7928:19;;54570:109:0;7551:402:1;54570:109:0;-1:-1:-1;;;;;54715:15:0;;;;;;;:9;:15;;;;;;54733:20;;;54715:38;;54775:13;;;;;;;;:23;;54747:6;;54715:15;54775:23;;54747:6;;54775:23;:::i;:::-;;;;;;;;54831:2;-1:-1:-1;;;;;54816:26:0;54825:4;-1:-1:-1;;;;;54816:26:0;;54835:6;54816:26;;;;4194:25:1;;4182:2;4167:18;;4048:177;54816:26:0;;;;;;;;54855:37;34335:188;69264:968;69358:7;69383:12;69398:32;69402:15;65320:10;69398:3;:32::i;:::-;69477:27;:34;69383:47;;-1:-1:-1;69441:17:0;;69477:38;69473:535;;69537:9;69532:465;69556:27;:34;69552:38;;69532:465;;;69628:353;69971:9;69628:316;69938:5;69628:283;69773:115;69830:30;69839:10;:20;69850:8;-1:-1:-1;;;;;69839:20:0;-1:-1:-1;;;;;69839:20:0;;;;;;;;;;;;;69830:4;:8;;:30;;;;:::i;:::-;65231:7;;69773:25;:115::i;:::-;69628:18;:50;69647:27;69675:1;69647:30;;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;;;;;69647:30:0;;;69628:50;;;;;;;;;;;;;;;;:92;;-1:-1:-1;;;69628:92:0;;3812:32:1;;;69628:92:0;;;3794:51:1;69628:50:0;;;:82;;3767:18:1;;69628:92:0;3648:203:1;69628:353:0;69616:365;-1:-1:-1;69592:3:0;;;;:::i;:::-;;;;69532:465;;;;69473:535;70040:184;70214:9;70040:151;70185:5;70040:122;70112:49;70129:30;70138:10;:20;70149:8;-1:-1:-1;;;;;70138:20:0;-1:-1:-1;;;;;70138:20:0;;;;;;;;;;;;;70129:4;:8;;:30;;;;:::i;70112:49::-;70040:11;;:49;;-1:-1:-1;;;70040:49:0;;-1:-1:-1;;;;;3812:32:1;;;70040:49:0;;;3794:51:1;70040:11:0;;;;;;;;:39;;3767:18:1;;70040:49:0;3648:203:1;70040:184:0;70020:204;69264:968;-1:-1:-1;;;;69264:968:0:o;33198:505::-;33287:22;33295:4;33301:7;33287;:22::i;:::-;33282:414;;33475:41;33503:7;-1:-1:-1;;;;;33475:41:0;33513:2;33475:19;:41::i;:::-;33589:38;33617:4;33624:2;33589:19;:38::i;:::-;33380:270;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;33380:270:0;;;;;;;;;;-1:-1:-1;;;33326:358:0;;;;;;;:::i;39784:201::-;39904:31;39921:4;39927:7;39904:16;:31::i;:::-;39946:18;;;;:12;:18;;;;;:31;;39969:7;39946:22;:31::i;40079:206::-;40200:32;40218:4;40224:7;40200:17;:32::i;:::-;40243:18;;;;:12;:18;;;;;:34;;40269:7;40243:25;:34::i;42479:120::-;41491:7;;;;42015:41;;;;-1:-1:-1;;;42015:41:0;;5814:2:1;42015:41:0;;;5796:21:1;5853:2;5833:18;;;5826:30;-1:-1:-1;;;5872:18:1;;;5865:50;5932:18;;42015:41:0;5612:344:1;42015:41:0;42538:7:::1;:15:::0;;-1:-1:-1;;42538:15:0::1;::::0;;42569:22:::1;29624:10:::0;42578:12:::1;42569:22;::::0;-1:-1:-1;;;;;3812:32:1;;;3794:51;;3782:2;3767:18;42569:22:0::1;;;;;;;42479:120::o:0;55187:399::-;-1:-1:-1;;;;;55271:21:0;;55263:65;;;;-1:-1:-1;;;55263:65:0;;13128:2:1;55263:65:0;;;13110:21:1;13167:2;13147:18;;;13140:30;13206:33;13186:18;;;13179:61;13257:18;;55263:65:0;12926:355:1;55263:65:0;55341:49;55370:1;55374:7;55383:6;55341:20;:49::i;:::-;55419:6;55403:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;55436:18:0;;;;;;:9;:18;;;;;:28;;55458:6;;55436:18;:28;;55458:6;;55436:28;:::i;:::-;;;;-1:-1:-1;;55480:37:0;;4194:25:1;;;-1:-1:-1;;;;;55480:37:0;;;55497:1;;55480:37;;4182:2:1;4167:18;55480:37:0;;;;;;;35465:287;;:::o;55919:591::-;-1:-1:-1;;;;;56003:21:0;;55995:67;;;;-1:-1:-1;;;55995:67:0;;9972:2:1;55995:67:0;;;9954:21:1;10011:2;9991:18;;;9984:30;10050:34;10030:18;;;10023:62;-1:-1:-1;;;10101:18:1;;;10094:31;10142:19;;55995:67:0;9770:397:1;55995:67:0;56075:49;56096:7;56113:1;56117:6;56075:20;:49::i;:::-;-1:-1:-1;;;;;56162:18:0;;56137:22;56162:18;;;:9;:18;;;;;;56199:24;;;;56191:71;;;;-1:-1:-1;;;56191:71:0;;6163:2:1;56191:71:0;;;6145:21:1;6202:2;6182:18;;;6175:30;6241:34;6221:18;;;6214:62;-1:-1:-1;;;6292:18:1;;;6285:32;6334:19;;56191:71:0;5961:398:1;56191:71:0;-1:-1:-1;;;;;56298:18:0;;;;;;:9;:18;;;;;56319:23;;;56298:44;;56364:12;:22;;56336:6;;56298:18;56364:22;;56336:6;;56364:22;:::i;:::-;;;;-1:-1:-1;;56404:37:0;;4194:25:1;;;56430:1:0;;-1:-1:-1;;;;;56404:37:0;;;;;4182:2:1;4167:18;56404:37:0;;;;;;;34335:188;;;:::o;42220:118::-;41491:7;;;;41745:9;41737:38;;;;-1:-1:-1;;;41737:38:0;;8160:2:1;41737:38:0;;;8142:21:1;8199:2;8179:18;;;8172:30;-1:-1:-1;;;8218:18:1;;;8211:46;8274:18;;41737:38:0;7958:340:1;41737:38:0;42280:7:::1;:14:::0;;-1:-1:-1;;42280:14:0::1;42290:4;42280:14;::::0;;42310:20:::1;42317:12;29624:10:::0;;29544:98;16670:190;16771:7;16827:22;16831:3;16843:5;16827:3;:22::i;16199:117::-;16262:7;16289:19;16297:3;11431:18;;11348:109;67044:106;67102:7;67133:1;67129;:5;:13;;67141:1;67129:13;;;-1:-1:-1;67137:1:0;;67044:106;-1:-1:-1;67044:106:0:o;3793:98::-;3851:7;3878:5;3882:1;3878;:5;:::i;3436:98::-;3494:7;3521:5;3525:1;3521;:5;:::i;4192:98::-;4250:7;4277:5;4281:1;4277;:5;:::i;3055:98::-;3113:7;3140:5;3144:1;3140;:5;:::i;9005:414::-;9068:4;11230:19;;;:12;;;:19;;;;;;9085:327;;-1:-1:-1;9128:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;9311:18;;9289:19;;;:12;;;:19;;;;;;:40;;;;9344:11;;9085:327;-1:-1:-1;9395:5:0;9388:12;;64547:217;64712:44;64739:4;64745:2;64749:6;64712:26;:44::i;37405:239::-;37489:22;37497:4;37503:7;37489;:22::i;:::-;37485:152;;;37560:5;37528:12;;;;;;;;;;;-1:-1:-1;;;;;37528:29:0;;;;;;;;;;:37;;-1:-1:-1;;37528:37:0;;;37585:40;29624:10;;37528:12;;37585:40;;37560:5;37585:40;37405:239;;:::o;15647:181::-;15738:4;15767:53;15775:3;-1:-1:-1;;;;;15795:23:0;;15767:7;:53::i;11811:152::-;11905:7;11937:3;:11;;11949:5;11937:18;;;;;;;;:::i;:::-;;;;;;;;;11930:25;;11811:152;;;;:::o;60241:272::-;41491:7;;;;60449:9;60441:64;;;;-1:-1:-1;;;60441:64:0;;13488:2:1;60441:64:0;;;13470:21:1;13527:2;13507:18;;;13500:30;13566:34;13546:18;;;13539:62;-1:-1:-1;;;13617:18:1;;;13610:40;13667:19;;60441:64:0;13286:406:1;9595:1420:0;9661:4;9800:19;;;:12;;;:19;;;;;;9836:15;;9832:1176;;10211:21;10235:14;10248:1;10235:10;:14;:::i;:::-;10284:18;;10211:38;;-1:-1:-1;10264:17:0;;10284:22;;10305:1;;10284:22;:::i;:::-;10264:42;;10340:13;10327:9;:26;10323:405;;10374:17;10394:3;:11;;10406:9;10394:22;;;;;;;;:::i;:::-;;;;;;;;;10374:42;;10548:9;10519:3;:11;;10531:13;10519:26;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;10633:23;;;:12;;;:23;;;;;:36;;;10323:405;10809:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;10904:3;:12;;:19;10917:5;10904:19;;;;;;;;;;;10897:26;;;10947:4;10940:11;;;;;;;9832:1176;10991:5;10984:12;;;;;14:173:1;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:186::-;251:6;304:2;292:9;283:7;279:23;275:32;272:52;;;320:1;317;310:12;272:52;343:29;362:9;343:29;:::i;383:260::-;451:6;459;512:2;500:9;491:7;487:23;483:32;480:52;;;528:1;525;518:12;480:52;551:29;570:9;551:29;:::i;:::-;541:39;;599:38;633:2;622:9;618:18;599:38;:::i;:::-;589:48;;383:260;;;;;:::o;648:328::-;725:6;733;741;794:2;782:9;773:7;769:23;765:32;762:52;;;810:1;807;800:12;762:52;833:29;852:9;833:29;:::i;:::-;823:39;;881:38;915:2;904:9;900:18;881:38;:::i;:::-;871:48;;966:2;955:9;951:18;938:32;928:42;;648:328;;;;;:::o;981:254::-;1049:6;1057;1110:2;1098:9;1089:7;1085:23;1081:32;1078:52;;;1126:1;1123;1116:12;1078:52;1149:29;1168:9;1149:29;:::i;:::-;1139:39;1225:2;1210:18;;;;1197:32;;-1:-1:-1;;;981:254:1:o;1240:180::-;1299:6;1352:2;1340:9;1331:7;1327:23;1323:32;1320:52;;;1368:1;1365;1358:12;1320:52;-1:-1:-1;1391:23:1;;1240:180;-1:-1:-1;1240:180:1:o;1425:254::-;1493:6;1501;1554:2;1542:9;1533:7;1529:23;1525:32;1522:52;;;1570:1;1567;1560:12;1522:52;1606:9;1593:23;1583:33;;1635:38;1669:2;1658:9;1654:18;1635:38;:::i;1684:248::-;1752:6;1760;1813:2;1801:9;1792:7;1788:23;1784:32;1781:52;;;1829:1;1826;1819:12;1781:52;-1:-1:-1;;1852:23:1;;;1922:2;1907:18;;;1894:32;;-1:-1:-1;1684:248:1:o;1937:286::-;1995:6;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2090:23;;-1:-1:-1;;;;;;2142:32:1;;2132:43;;2122:71;;2189:1;2186;2179:12;2413:184;2483:6;2536:2;2524:9;2515:7;2511:23;2507:32;2504:52;;;2552:1;2549;2542:12;2504:52;-1:-1:-1;2575:16:1;;2413:184;-1:-1:-1;2413:184:1:o;2857:786::-;3268:25;3263:3;3256:38;3238:3;3323:6;3317:13;3339:62;3394:6;3389:2;3384:3;3380:12;3373:4;3365:6;3361:17;3339:62;:::i;:::-;-1:-1:-1;;;3460:2:1;3420:16;;;3452:11;;;3445:40;3510:13;;3532:63;3510:13;3581:2;3573:11;;3566:4;3554:17;;3532:63;:::i;:::-;3615:17;3634:2;3611:26;;2857:786;-1:-1:-1;;;;2857:786:1:o;4459:383::-;4608:2;4597:9;4590:21;4571:4;4640:6;4634:13;4683:6;4678:2;4667:9;4663:18;4656:34;4699:66;4758:6;4753:2;4742:9;4738:18;4733:2;4725:6;4721:15;4699:66;:::i;:::-;4826:2;4805:15;-1:-1:-1;;4801:29:1;4786:45;;;;4833:2;4782:54;;4459:383;-1:-1:-1;;4459:383:1:o;11765:334::-;11967:2;11949:21;;;12006:2;11986:18;;;11979:30;-1:-1:-1;;;12040:2:1;12025:18;;12018:40;12090:2;12075:18;;11765:334::o;14068:128::-;14108:3;14139:1;14135:6;14132:1;14129:13;14126:39;;;14145:18;;:::i;:::-;-1:-1:-1;14181:9:1;;14068:128::o;14201:217::-;14241:1;14267;14257:132;;14311:10;14306:3;14302:20;14299:1;14292:31;14346:4;14343:1;14336:15;14374:4;14371:1;14364:15;14257:132;-1:-1:-1;14403:9:1;;14201:217::o;14423:168::-;14463:7;14529:1;14525;14521:6;14517:14;14514:1;14511:21;14506:1;14499:9;14492:17;14488:45;14485:71;;;14536:18;;:::i;:::-;-1:-1:-1;14576:9:1;;14423:168::o;14596:125::-;14636:4;14664:1;14661;14658:8;14655:34;;;14669:18;;:::i;:::-;-1:-1:-1;14706:9:1;;14596:125::o;14726:258::-;14798:1;14808:113;14822:6;14819:1;14816:13;14808:113;;;14898:11;;;14892:18;14879:11;;;14872:39;14844:2;14837:10;14808:113;;;14939:6;14936:1;14933:13;14930:48;;;-1:-1:-1;;14974:1:1;14956:16;;14949:27;14726:258::o;14989:136::-;15028:3;15056:5;15046:39;;15065:18;;:::i;:::-;-1:-1:-1;;;15101:18:1;;14989:136::o;15130:380::-;15209:1;15205:12;;;;15252;;;15273:61;;15327:4;15319:6;15315:17;15305:27;;15273:61;15380:2;15372:6;15369:14;15349:18;15346:38;15343:161;;;15426:10;15421:3;15417:20;15414:1;15407:31;15461:4;15458:1;15451:15;15489:4;15486:1;15479:15;15343:161;;15130:380;;;:::o;15515:135::-;15554:3;-1:-1:-1;;15575:17:1;;15572:43;;;15595:18;;:::i;:::-;-1:-1:-1;15642:1:1;15631:13;;15515:135::o;15655:127::-;15716:10;15711:3;15707:20;15704:1;15697:31;15747:4;15744:1;15737:15;15771:4;15768:1;15761:15;15787:127;15848:10;15843:3;15839:20;15836:1;15829:31;15879:4;15876:1;15869:15;15903:4;15900:1;15893:15;15919:127;15980:10;15975:3;15971:20;15968:1;15961:31;16011:4;16008:1;16001:15;16035:4;16032:1;16025:15;16051:127;16112:10;16107:3;16103:20;16100:1;16093:31;16143:4;16140:1;16133:15;16167:4;16164:1;16157:15

Swarm Source

ipfs://62d384acda37df5710313d1ae2af35fbcd555129af3f26547defc4db166b8c85

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.