ETH Price: $2,869.03 (-9.77%)
Gas: 14 Gwei

Token

ERROR (ERROR)
 

Overview

Max Total Supply

404 ERROR

Holders

229

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
0.037043781397876136 ERROR

Value
$0.00
0x66fe4c132ee98c0691e8e5b5e449b7383f2eff8e
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
ERROR

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
Yes with 200 runs

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

// File @openzeppelin/contracts/utils/[email protected]

// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

/**
 * @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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}


// File @openzeppelin/contracts/access/[email protected]

// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

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

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}


// File @openzeppelin/contracts/utils/introspection/[email protected]

// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

/**
 * @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/token/ERC721/[email protected]


// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol)


/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be
     * reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

// File @openzeppelin/contracts/utils/math/[email protected]


// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)



/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    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 subtraction of two unsigned integers, with an overflow flag.
     */
    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.
     */
    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.
     */
    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.
     */
    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 largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
     * denominator == 0.
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
     * Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.
            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.

            uint256 twos = denominator & (0 - denominator);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
            // works in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
     * towards zero.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        //  `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        //  `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}


// File @openzeppelin/contracts/utils/math/[email protected]


// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)



/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}


// File @openzeppelin/contracts/utils/[email protected]


// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)




/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant HEX_DIGITS = "0123456789abcdef";
    uint8 private constant ADDRESS_LENGTH = 20;

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toStringSigned(int256 value) internal pure returns (string memory) {
        return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        uint256 localValue = value;
        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_DIGITS[localValue & 0xf];
            localValue >>= 4;
        }
        if (localValue != 0) {
            revert StringsInsufficientHexLength(value, length);
        }
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal
     * representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
    }
}


// File contracts/interfaces/IERC404.sol

interface IERC404 is IERC165 {
  error NotFound();
  error InvalidTokenId();
  error AlreadyExists();
  error InvalidRecipient();
  error InvalidSender();
  error InvalidSpender();
  error InvalidOperator();
  error UnsafeRecipient();
  error RecipientIsERC721TransferExempt();
  error Unauthorized();
  error InsufficientAllowance();
  error DecimalsTooLow();
  error PermitDeadlineExpired();
  error InvalidSigner();
  error InvalidApproval();
  error OwnedIndexOverflow();
  error MintLimitReached();
  error InvalidExemption();

  function name() external view returns (string memory);
  function symbol() external view returns (string memory);
  function decimals() external view returns (uint8);
  function totalSupply() external view returns (uint256);
  function erc20TotalSupply() external view returns (uint256);
  function erc721TotalSupply() external view returns (uint256);
  function balanceOf(address owner_) external view returns (uint256);
  function erc721BalanceOf(address owner_) external view returns (uint256);
  function erc20BalanceOf(address owner_) external view returns (uint256);
  function erc721TransferExempt(address account_) external view returns (bool);
  function isApprovedForAll(
    address owner_,
    address operator_
  ) external view returns (bool);
  function allowance(
    address owner_,
    address spender_
  ) external view returns (uint256);
  function owned(address owner_) external view returns (uint256[] memory);
  function ownerOf(uint256 id_) external view returns (address erc721Owner);
  function tokenURI(uint256 id_) external view returns (string memory);
  function approve(
    address spender_,
    uint256 valueOrId_
  ) external returns (bool);
  function erc20Approve(
    address spender_,
    uint256 value_
  ) external returns (bool);
  function erc721Approve(address spender_, uint256 id_) external;
  function setApprovalForAll(address operator_, bool approved_) external;
  function transferFrom(
    address from_,
    address to_,
    uint256 valueOrId_
  ) external returns (bool);
  function erc20TransferFrom(
    address from_,
    address to_,
    uint256 value_
  ) external returns (bool);
  function erc721TransferFrom(address from_, address to_, uint256 id_) external;
  function transfer(address to_, uint256 amount_) external returns (bool);
  function getERC721QueueLength() external view returns (uint256);
  function getERC721TokensInQueue(
    uint256 start_,
    uint256 count_
  ) external view returns (uint256[] memory);
  function setSelfERC721TransferExempt(bool state_) external;
  function safeTransferFrom(address from_, address to_, uint256 id_) external;
  function safeTransferFrom(
    address from_,
    address to_,
    uint256 id_,
    bytes calldata data_
  ) external;
  function DOMAIN_SEPARATOR() external view returns (bytes32);
  function permit(
    address owner_,
    address spender_,
    uint256 value_,
    uint256 deadline_,
    uint8 v_,
    bytes32 r_,
    bytes32 s_
  ) external;
}


// File contracts/lib/DoubleEndedQueue.sol


// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/DoubleEndedQueue.sol)
// Modified by Pandora Labs to support native uint256 operations


/**
 * @dev A sequence of items with the ability to efficiently push and pop items (i.e. insert and remove) on both ends of
 * the sequence (called front and back). Among other access patterns, it can be used to implement efficient LIFO and
 * FIFO queues. Storage use is optimized, and all operations are O(1) constant time. This includes {clear}, given that
 * the existing queue contents are left in storage.
 *
 * The struct is called `Uint256Deque`. This data structure can only be used in storage, and not in memory.
 *
 * ```solidity
 * DoubleEndedQueue.Uint256Deque queue;
 * ```
 */
library DoubleEndedQueue {
  /**
   * @dev An operation (e.g. {front}) couldn't be completed due to the queue being empty.
   */
  error QueueEmpty();

  /**
   * @dev A push operation couldn't be completed due to the queue being full.
   */
  error QueueFull();

  /**
   * @dev An operation (e.g. {at}) couldn't be completed due to an index being out of bounds.
   */
  error QueueOutOfBounds();

  /**
   * @dev Indices are 128 bits so begin and end are packed in a single storage slot for efficient access.
   *
   * Struct members have an underscore prefix indicating that they are "private" and should not be read or written to
   * directly. Use the functions provided below instead. Modifying the struct manually may violate assumptions and
   * lead to unexpected behavior.
   *
   * The first item is at data[begin] and the last item is at data[end - 1]. This range can wrap around.
   */
  struct Uint256Deque {
    uint128 _begin;
    uint128 _end;
    mapping(uint128 index => uint256) _data;
  }

  /**
   * @dev Inserts an item at the end of the queue.
   *
   * Reverts with {QueueFull} if the queue is full.
   */
  function pushBack(Uint256Deque storage deque, uint256 value) internal {
    unchecked {
      uint128 backIndex = deque._end;
      if (backIndex + 1 == deque._begin) revert QueueFull();
      deque._data[backIndex] = value;
      deque._end = backIndex + 1;
    }
  }

  /**
   * @dev Removes the item at the end of the queue and returns it.
   *
   * Reverts with {QueueEmpty} if the queue is empty.
   */
  function popBack(
    Uint256Deque storage deque
  ) internal returns (uint256 value) {
    unchecked {
      uint128 backIndex = deque._end;
      if (backIndex == deque._begin) revert QueueEmpty();
      --backIndex;
      value = deque._data[backIndex];
      delete deque._data[backIndex];
      deque._end = backIndex;
    }
  }

  /**
   * @dev Inserts an item at the beginning of the queue.
   *
   * Reverts with {QueueFull} if the queue is full.
   */
  function pushFront(Uint256Deque storage deque, uint256 value) internal {
    unchecked {
      uint128 frontIndex = deque._begin - 1;
      if (frontIndex == deque._end) revert QueueFull();
      deque._data[frontIndex] = value;
      deque._begin = frontIndex;
    }
  }

  /**
   * @dev Removes the item at the beginning of the queue and returns it.
   *
   * Reverts with `QueueEmpty` if the queue is empty.
   */
  function popFront(
    Uint256Deque storage deque
  ) internal returns (uint256 value) {
    unchecked {
      uint128 frontIndex = deque._begin;
      if (frontIndex == deque._end) revert QueueEmpty();
      value = deque._data[frontIndex];
      delete deque._data[frontIndex];
      deque._begin = frontIndex + 1;
    }
  }

  /**
   * @dev Returns the item at the beginning of the queue.
   *
   * Reverts with `QueueEmpty` if the queue is empty.
   */
  function front(
    Uint256Deque storage deque
  ) internal view returns (uint256 value) {
    if (empty(deque)) revert QueueEmpty();
    return deque._data[deque._begin];
  }

  /**
   * @dev Returns the item at the end of the queue.
   *
   * Reverts with `QueueEmpty` if the queue is empty.
   */
  function back(
    Uint256Deque storage deque
  ) internal view returns (uint256 value) {
    if (empty(deque)) revert QueueEmpty();
    unchecked {
      return deque._data[deque._end - 1];
    }
  }

  /**
   * @dev Return the item at a position in the queue given by `index`, with the first item at 0 and last item at
   * `length(deque) - 1`.
   *
   * Reverts with `QueueOutOfBounds` if the index is out of bounds.
   */
  function at(
    Uint256Deque storage deque,
    uint256 index
  ) internal view returns (uint256 value) {
    if (index >= length(deque)) revert QueueOutOfBounds();
    // By construction, length is a uint128, so the check above ensures that index can be safely downcast to uint128
    unchecked {
      return deque._data[deque._begin + uint128(index)];
    }
  }

  /**
   * @dev Resets the queue back to being empty.
   *
   * NOTE: The current items are left behind in storage. This does not affect the functioning of the queue, but misses
   * out on potential gas refunds.
   */
  function clear(Uint256Deque storage deque) internal {
    deque._begin = 0;
    deque._end = 0;
  }

  /**
   * @dev Returns the number of items in the queue.
   */
  function length(Uint256Deque storage deque) internal view returns (uint256) {
    unchecked {
      return uint256(deque._end - deque._begin);
    }
  }

  /**
   * @dev Returns true if the queue is empty.
   */
  function empty(Uint256Deque storage deque) internal view returns (bool) {
    return deque._end == deque._begin;
  }
}


// File contracts/lib/ERC20Events.sol

library ERC20Events {
  event Approval(address indexed owner, address indexed spender, uint256 value);
  event Transfer(address indexed from, address indexed to, uint256 amount);
}


// File contracts/lib/ERC721Events.sol

library ERC721Events {
  event ApprovalForAll(
    address indexed owner,
    address indexed operator,
    bool approved
  );
  event Approval(
    address indexed owner,
    address indexed spender,
    uint256 indexed id
  );
  event Transfer(address indexed from, address indexed to, uint256 indexed id);
}


// File contracts/ERC404.sol

abstract contract ERC404 is IERC404 {
  using DoubleEndedQueue for DoubleEndedQueue.Uint256Deque;

  /// @dev The queue of ERC-721 tokens stored in the contract.
  DoubleEndedQueue.Uint256Deque private _storedERC721Ids;

  /// @dev Token name
  string public name;

  /// @dev Token symbol
  string public symbol;

  /// @dev Decimals for ERC-20 representation
  uint8 public immutable decimals;

  /// @dev Units for ERC-20 representation
  uint256 public immutable units;

  /// @dev Total supply in ERC-20 representation
  uint256 public totalSupply;

  /// @dev Current mint counter which also represents the highest
  ///      minted id, monotonically increasing to ensure accurate ownership
  uint256 public minted;

  /// @dev Initial chain id for EIP-2612 support
  uint256 internal immutable _INITIAL_CHAIN_ID;

  /// @dev Initial domain separator for EIP-2612 support
  bytes32 internal immutable _INITIAL_DOMAIN_SEPARATOR;

  /// @dev Balance of user in ERC-20 representation
  mapping(address => uint256) public balanceOf;

  /// @dev Allowance of user in ERC-20 representation
  mapping(address => mapping(address => uint256)) public allowance;

  /// @dev Approval in ERC-721 representaion
  mapping(uint256 => address) public getApproved;

  /// @dev Approval for all in ERC-721 representation
  mapping(address => mapping(address => bool)) public isApprovedForAll;

  /// @dev Packed representation of ownerOf and owned indices
  mapping(uint256 => uint256) internal _ownedData;

  /// @dev Array of owned ids in ERC-721 representation
  mapping(address => uint256[]) internal _owned;

  /// @dev Addresses that are exempt from ERC-721 transfer, typically for gas savings (pairs, routers, etc)
  mapping(address => bool) internal _erc721TransferExempt;

  /// @dev EIP-2612 nonces
  mapping(address => uint256) public nonces;

  /// @dev Address bitmask for packed ownership data
  uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

  /// @dev Owned index bitmask for packed ownership data
  uint256 private constant _BITMASK_OWNED_INDEX = ((1 << 96) - 1) << 160;

  /// @dev Constant for token id encoding
  uint256 public constant ID_ENCODING_PREFIX = 1 << 255;

  constructor(string memory name_, string memory symbol_, uint8 decimals_) {
    name = name_;
    symbol = symbol_;

    if (decimals_ < 18) {
      revert DecimalsTooLow();
    }

    decimals = decimals_;
    units = 10 ** decimals;

    // EIP-2612 initialization
    _INITIAL_CHAIN_ID = block.chainid;
    _INITIAL_DOMAIN_SEPARATOR = _computeDomainSeparator();
  }

  /// @notice Function to find owner of a given ERC-721 token
  function ownerOf(
    uint256 id_
  ) public view virtual returns (address erc721Owner) {
    erc721Owner = _getOwnerOf(id_);

    if (!_isValidTokenId(id_)) {
      revert InvalidTokenId();
    }

    if (erc721Owner == address(0)) {
      revert NotFound();
    }
  }

  function owned(
    address owner_
  ) public view virtual returns (uint256[] memory) {
    return _owned[owner_];
  }

  function erc721BalanceOf(
    address owner_
  ) public view virtual returns (uint256) {
    return _owned[owner_].length;
  }

  function erc20BalanceOf(
    address owner_
  ) public view virtual returns (uint256) {
    return balanceOf[owner_];
  }

  function erc20TotalSupply() public view virtual returns (uint256) {
    return totalSupply;
  }

  function erc721TotalSupply() public view virtual returns (uint256) {
    return minted;
  }

  function getERC721QueueLength() public view virtual returns (uint256) {
    return _storedERC721Ids.length();
  }

  function getERC721TokensInQueue(
    uint256 start_,
    uint256 count_
  ) public view virtual returns (uint256[] memory) {
    uint256[] memory tokensInQueue = new uint256[](count_);

    for (uint256 i = start_; i < start_ + count_; ) {
      tokensInQueue[i - start_] = _storedERC721Ids.at(i);

      unchecked {
        ++i;
      }
    }

    return tokensInQueue;
  }

  /// @notice tokenURI must be implemented by child contract
  function tokenURI(uint256 id_) public view virtual returns (string memory);

  /// @notice Function for token approvals
  /// @dev This function assumes the operator is attempting to approve
  ///      an ERC-721 if valueOrId_ is a possibly valid ERC-721 token id.
  ///      Unlike setApprovalForAll, spender_ must be allowed to be 0x0 so
  ///      that approval can be revoked.
  function approve(
    address spender_,
    uint256 valueOrId_
  ) public virtual returns (bool) {
    if (_isValidTokenId(valueOrId_)) {
      erc721Approve(spender_, valueOrId_);
    } else {
      return erc20Approve(spender_, valueOrId_);
    }

    return true;
  }

  function erc721Approve(address spender_, uint256 id_) public virtual {
    // Intention is to approve as ERC-721 token (id).
    address erc721Owner = _getOwnerOf(id_);

    if (
      msg.sender != erc721Owner && !isApprovedForAll[erc721Owner][msg.sender]
    ) {
      revert Unauthorized();
    }

    getApproved[id_] = spender_;

    emit ERC721Events.Approval(erc721Owner, spender_, id_);
  }

  /// @dev Providing type(uint256).max for approval value results in an
  ///      unlimited approval that is not deducted from on transfers.
  function erc20Approve(
    address spender_,
    uint256 value_
  ) public virtual returns (bool) {
    // Prevent granting 0x0 an ERC-20 allowance.
    if (spender_ == address(0)) {
      revert InvalidSpender();
    }

    allowance[msg.sender][spender_] = value_;

    emit ERC20Events.Approval(msg.sender, spender_, value_);

    return true;
  }

  /// @notice Function for ERC-721 approvals
  function setApprovalForAll(address operator_, bool approved_) public virtual {
    // Prevent approvals to 0x0.
    if (operator_ == address(0)) {
      revert InvalidOperator();
    }
    isApprovedForAll[msg.sender][operator_] = approved_;
    emit ERC721Events.ApprovalForAll(msg.sender, operator_, approved_);
  }

  /// @notice Function for mixed transfers from an operator that may be different than 'from'.
  /// @dev This function assumes the operator is attempting to transfer an ERC-721
  ///      if valueOrId is a possible valid token id.
  function transferFrom(
    address from_,
    address to_,
    uint256 valueOrId_
  ) public virtual returns (bool) {
    if (_isValidTokenId(valueOrId_)) {
      erc721TransferFrom(from_, to_, valueOrId_);
    } else {
      // Intention is to transfer as ERC-20 token (value).
      return erc20TransferFrom(from_, to_, valueOrId_);
    }

    return true;
  }

  /// @notice Function for ERC-721 transfers from.
  /// @dev This function is recommended for ERC721 transfers.
  function erc721TransferFrom(
    address from_,
    address to_,
    uint256 id_
  ) public virtual {
    // Prevent minting tokens from 0x0.
    if (from_ == address(0)) {
      revert InvalidSender();
    }

    // Prevent burning tokens to 0x0.
    if (to_ == address(0)) {
      revert InvalidRecipient();
    }

    if (from_ != _getOwnerOf(id_)) {
      revert Unauthorized();
    }

    // Check that the operator is either the sender or approved for the transfer.
    if (
      msg.sender != from_ &&
      !isApprovedForAll[from_][msg.sender] &&
      msg.sender != getApproved[id_]
    ) {
      revert Unauthorized();
    }

    // We only need to check ERC-721 transfer exempt status for the recipient
    // since the sender being ERC-721 transfer exempt means they have already
    // had their ERC-721s stripped away during the rebalancing process.
    if (erc721TransferExempt(to_)) {
      revert RecipientIsERC721TransferExempt();
    }

    // Transfer 1 * units ERC-20 and 1 ERC-721 token.
    // ERC-721 transfer exemptions handled above. Can't make it to this point if either is transfer exempt.
    _transferERC20(from_, to_, units);
    _transferERC721(from_, to_, id_);
  }

  /// @notice Function for ERC-20 transfers from.
  /// @dev This function is recommended for ERC20 transfers
  function erc20TransferFrom(
    address from_,
    address to_,
    uint256 value_
  ) public virtual returns (bool) {
    // Prevent minting tokens from 0x0.
    if (from_ == address(0)) {
      revert InvalidSender();
    }

    // Prevent burning tokens to 0x0.
    if (to_ == address(0)) {
      revert InvalidRecipient();
    }

    uint256 allowed = allowance[from_][msg.sender];

    // Check that the operator has sufficient allowance.
    if (allowed != type(uint256).max) {
      allowance[from_][msg.sender] = allowed - value_;
    }

    // Transferring ERC-20s directly requires the _transferERC20WithERC721 function.
    // Handles ERC-721 exemptions internally.
    return _transferERC20WithERC721(from_, to_, value_);
  }

  /// @notice Function for ERC-20 transfers.
  /// @dev This function assumes the operator is attempting to transfer as ERC-20
  ///      given this function is only supported on the ERC-20 interface.
  ///      Treats even large amounts that are valid ERC-721 ids as ERC-20s.
  function transfer(address to_, uint256 value_) public virtual returns (bool) {
    // Prevent burning tokens to 0x0.
    if (to_ == address(0)) {
      revert InvalidRecipient();
    }

    // Transferring ERC-20s directly requires the _transferERC20WithERC721 function.
    // Handles ERC-721 exemptions internally.
    return _transferERC20WithERC721(msg.sender, to_, value_);
  }

  /// @notice Function for ERC-721 transfers with contract support.
  /// This function only supports moving valid ERC-721 ids, as it does not exist on the ERC-20
  /// spec and will revert otherwise.
  function safeTransferFrom(
    address from_,
    address to_,
    uint256 id_
  ) public virtual {
    safeTransferFrom(from_, to_, id_, "");
  }

  /// @notice Function for ERC-721 transfers with contract support and callback data.
  /// This function only supports moving valid ERC-721 ids, as it does not exist on the
  /// ERC-20 spec and will revert otherwise.
  function safeTransferFrom(
    address from_,
    address to_,
    uint256 id_,
    bytes memory data_
  ) public virtual {
    if (!_isValidTokenId(id_)) {
      revert InvalidTokenId();
    }

    transferFrom(from_, to_, id_);

    if (
      to_.code.length != 0 &&
      IERC721Receiver(to_).onERC721Received(msg.sender, from_, id_, data_) !=
      IERC721Receiver.onERC721Received.selector
    ) {
      revert UnsafeRecipient();
    }
  }

  /// @notice Function for EIP-2612 permits (ERC-20 only).
  /// @dev Providing type(uint256).max for permit value results in an
  ///      unlimited approval that is not deducted from on transfers.
  function permit(
    address owner_,
    address spender_,
    uint256 value_,
    uint256 deadline_,
    uint8 v_,
    bytes32 r_,
    bytes32 s_
  ) public virtual {
    if (deadline_ < block.timestamp) {
      revert PermitDeadlineExpired();
    }

    // permit cannot be used for ERC-721 token approvals, so ensure
    // the value does not fall within the valid range of ERC-721 token ids.
    if (_isValidTokenId(value_)) {
      revert InvalidApproval();
    }

    if (spender_ == address(0)) {
      revert InvalidSpender();
    }

    unchecked {
      address recoveredAddress = ecrecover(
        keccak256(
          abi.encodePacked(
            "\x19\x01",
            DOMAIN_SEPARATOR(),
            keccak256(
              abi.encode(
                keccak256(
                  "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
                ),
                owner_,
                spender_,
                value_,
                nonces[owner_]++,
                deadline_
              )
            )
          )
        ),
        v_,
        r_,
        s_
      );

      if (recoveredAddress == address(0) || recoveredAddress != owner_) {
        revert InvalidSigner();
      }

      allowance[recoveredAddress][spender_] = value_;
    }

    emit ERC20Events.Approval(owner_, spender_, value_);
  }

  /// @notice Returns domain initial domain separator, or recomputes if chain id is not equal to initial chain id
  function DOMAIN_SEPARATOR() public view virtual returns (bytes32) {
    return
      block.chainid == _INITIAL_CHAIN_ID
        ? _INITIAL_DOMAIN_SEPARATOR
        : _computeDomainSeparator();
  }

  function supportsInterface(
    bytes4 interfaceId
  ) public view virtual returns (bool) {
    return
      interfaceId == type(IERC404).interfaceId ||
      interfaceId == type(IERC165).interfaceId;
  }

  /// @notice Function for self-exemption
  function setSelfERC721TransferExempt(bool state_) public virtual {
    _setERC721TransferExempt(msg.sender, state_);
  }

  /// @notice Function to check if address is transfer exempt
  function erc721TransferExempt(
    address target_
  ) public view virtual returns (bool) {
    return target_ == address(0) || _erc721TransferExempt[target_];
  }

  /// @notice For a token token id to be considered valid, it just needs
  ///         to fall within the range of possible token ids, it does not
  ///         necessarily have to be minted yet.
  function _isValidTokenId(uint256 id_) internal pure returns (bool) {
    return id_ > ID_ENCODING_PREFIX && id_ != type(uint256).max;
  }

  /// @notice Internal function to compute domain separator for EIP-2612 permits
  function _computeDomainSeparator() internal view virtual returns (bytes32) {
    return
      keccak256(
        abi.encode(
          keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
          ),
          keccak256(bytes(name)),
          keccak256("1"),
          block.chainid,
          address(this)
        )
      );
  }

  /// @notice This is the lowest level ERC-20 transfer function, which
  ///         should be used for both normal ERC-20 transfers as well as minting.
  /// Note that this function allows transfers to and from 0x0.
  function _transferERC20(
    address from_,
    address to_,
    uint256 value_
  ) internal virtual {
    // Minting is a special case for which we should not check the balance of
    // the sender, and we should increase the total supply.
    if (from_ == address(0)) {
      totalSupply += value_;
    } else {
      // Deduct value from sender's balance.
      balanceOf[from_] -= value_;
    }

    // Update the recipient's balance.
    // Can be unchecked because on mint, adding to totalSupply is checked, and on transfer balance deduction is checked.
    unchecked {
      balanceOf[to_] += value_;
    }

    emit ERC20Events.Transfer(from_, to_, value_);
  }

  /// @notice Consolidated record keeping function for transferring ERC-721s.
  /// @dev Assign the token to the new owner, and remove from the old owner.
  /// Note that this function allows transfers to and from 0x0.
  /// Does not handle ERC-721 exemptions.
  function _transferERC721(
    address from_,
    address to_,
    uint256 id_
  ) internal virtual {
    // If this is not a mint, handle record keeping for transfer from previous owner.
    if (from_ != address(0)) {
      // On transfer of an NFT, any previous approval is reset.
      delete getApproved[id_];

      uint256 updatedId = _owned[from_][_owned[from_].length - 1];
      if (updatedId != id_) {
        uint256 updatedIndex = _getOwnedIndex(id_);
        // update _owned for sender
        _owned[from_][updatedIndex] = updatedId;
        // update index for the moved id
        _setOwnedIndex(updatedId, updatedIndex);
      }

      // pop
      _owned[from_].pop();
    }

    // Check if this is a burn.
    if (to_ != address(0)) {
      // If not a burn, update the owner of the token to the new owner.
      // Update owner of the token to the new owner.
      _setOwnerOf(id_, to_);
      // Push token onto the new owner's stack.
      _owned[to_].push(id_);
      // Update index for new owner's stack.
      _setOwnedIndex(id_, _owned[to_].length - 1);
    } else {
      // If this is a burn, reset the owner of the token to 0x0 by deleting the token from _ownedData.
      delete _ownedData[id_];
    }

    emit ERC721Events.Transfer(from_, to_, id_);
  }

  /// @notice Internal function for ERC-20 transfers. Also handles any ERC-721 transfers that may be required.
  // Handles ERC-721 exemptions.
  function _transferERC20WithERC721(
    address from_,
    address to_,
    uint256 value_
  ) internal virtual returns (bool) {
    uint256 erc20BalanceOfSenderBefore = erc20BalanceOf(from_);
    uint256 erc20BalanceOfReceiverBefore = erc20BalanceOf(to_);

    _transferERC20(from_, to_, value_);

    // Preload for gas savings on branches
    bool isFromERC721TransferExempt = erc721TransferExempt(from_);
    bool isToERC721TransferExempt = erc721TransferExempt(to_);

    // Skip _withdrawAndStoreERC721 and/or _retrieveOrMintERC721 for ERC-721 transfer exempt addresses
    // 1) to save gas
    // 2) because ERC-721 transfer exempt addresses won't always have/need ERC-721s corresponding to their ERC20s.
    if (isFromERC721TransferExempt && isToERC721TransferExempt) {
      // Case 1) Both sender and recipient are ERC-721 transfer exempt. No ERC-721s need to be transferred.
      // NOOP.
    } else if (isFromERC721TransferExempt) {
      // Case 2) The sender is ERC-721 transfer exempt, but the recipient is not. Contract should not attempt
      //         to transfer ERC-721s from the sender, but the recipient should receive ERC-721s
      //         from the bank/minted for any whole number increase in their balance.
      // Only cares about whole number increments.
      uint256 tokensToRetrieveOrMint = (balanceOf[to_] / units) -
        (erc20BalanceOfReceiverBefore / units);
      for (uint256 i = 0; i < tokensToRetrieveOrMint; ) {
        _retrieveOrMintERC721(to_);
        unchecked {
          ++i;
        }
      }
    } else if (isToERC721TransferExempt) {
      // Case 3) The sender is not ERC-721 transfer exempt, but the recipient is. Contract should attempt
      //         to withdraw and store ERC-721s from the sender, but the recipient should not
      //         receive ERC-721s from the bank/minted.
      // Only cares about whole number increments.
      uint256 tokensToWithdrawAndStore = (erc20BalanceOfSenderBefore / units) -
        (balanceOf[from_] / units);
      for (uint256 i = 0; i < tokensToWithdrawAndStore; ) {
        _withdrawAndStoreERC721(from_);
        unchecked {
          ++i;
        }
      }
    } else {
      // Case 4) Neither the sender nor the recipient are ERC-721 transfer exempt.
      // Strategy:
      // 1. First deal with the whole tokens. These are easy and will just be transferred.
      // 2. Look at the fractional part of the value:
      //   a) If it causes the sender to lose a whole token that was represented by an NFT due to a
      //      fractional part being transferred, withdraw and store an additional NFT from the sender.
      //   b) If it causes the receiver to gain a whole new token that should be represented by an NFT
      //      due to receiving a fractional part that completes a whole token, retrieve or mint an NFT to the recevier.

      // Whole tokens worth of ERC-20s get transferred as ERC-721s without any burning/minting.
      uint256 nftsToTransfer = value_ / units;
      for (uint256 i = 0; i < nftsToTransfer; ) {
        // Pop from sender's ERC-721 stack and transfer them (LIFO)
        uint256 indexOfLastToken = _owned[from_].length - 1;
        uint256 tokenId = _owned[from_][indexOfLastToken];
        _transferERC721(from_, to_, tokenId);
        unchecked {
          ++i;
        }
      }

      // If the transfer changes either the sender or the recipient's holdings from a fractional to a non-fractional
      // amount (or vice versa), adjust ERC-721s.

      // First check if the send causes the sender to lose a whole token that was represented by an ERC-721
      // due to a fractional part being transferred.
      //
      // Process:
      // Take the difference between the whole number of tokens before and after the transfer for the sender.
      // If that difference is greater than the number of ERC-721s transferred (whole units), then there was
      // an additional ERC-721 lost due to the fractional portion of the transfer.
      // If this is a self-send and the before and after balances are equal (not always the case but often),
      // then no ERC-721s will be lost here.
      if (
        erc20BalanceOfSenderBefore / units - erc20BalanceOf(from_) / units >
        nftsToTransfer
      ) {
        _withdrawAndStoreERC721(from_);
      }

      // Then, check if the transfer causes the receiver to gain a whole new token which requires gaining
      // an additional ERC-721.
      //
      // Process:
      // Take the difference between the whole number of tokens before and after the transfer for the recipient.
      // If that difference is greater than the number of ERC-721s transferred (whole units), then there was
      // an additional ERC-721 gained due to the fractional portion of the transfer.
      // Again, for self-sends where the before and after balances are equal, no ERC-721s will be gained here.
      if (
        erc20BalanceOf(to_) / units - erc20BalanceOfReceiverBefore / units >
        nftsToTransfer
      ) {
        _retrieveOrMintERC721(to_);
      }
    }

    return true;
  }

  /// @notice Internal function for ERC20 minting
  /// @dev This function will allow minting of new ERC20s.
  ///      If mintCorrespondingERC721s_ is true, and the recipient is not ERC-721 exempt, it will
  ///      also mint the corresponding ERC721s.
  /// Handles ERC-721 exemptions.
  function _mintERC20(address to_, uint256 value_) internal virtual {
    /// You cannot mint to the zero address (you can't mint and immediately burn in the same transfer).
    if (to_ == address(0)) {
      revert InvalidRecipient();
    }

    if (totalSupply + value_ > ID_ENCODING_PREFIX) {
      revert MintLimitReached();
    }

    _transferERC20WithERC721(address(0), to_, value_);
  }

  /// @notice Internal function for ERC-721 minting and retrieval from the bank.
  /// @dev This function will allow minting of new ERC-721s up to the total fractional supply. It will
  ///      first try to pull from the bank, and if the bank is empty, it will mint a new token.
  /// Does not handle ERC-721 exemptions.
  function _retrieveOrMintERC721(address to_) internal virtual {
    if (to_ == address(0)) {
      revert InvalidRecipient();
    }

    uint256 id;

    if (!_storedERC721Ids.empty()) {
      // If there are any tokens in the bank, use those first.
      // Pop off the end of the queue (FIFO).
      id = _storedERC721Ids.popBack();
    } else {
      // Otherwise, mint a new token, should not be able to go over the total fractional supply.
      ++minted;

      // Reserve max uint256 for approvals
      if (minted == type(uint256).max) {
        revert MintLimitReached();
      }

      id = ID_ENCODING_PREFIX + minted;
    }

    address erc721Owner = _getOwnerOf(id);

    // The token should not already belong to anyone besides 0x0 or this contract.
    // If it does, something is wrong, as this should never happen.
    if (erc721Owner != address(0)) {
      revert AlreadyExists();
    }

    // Transfer the token to the recipient, either transferring from the contract's bank or minting.
    // Does not handle ERC-721 exemptions.
    _transferERC721(erc721Owner, to_, id);
  }

  /// @notice Internal function for ERC-721 deposits to bank (this contract).
  /// @dev This function will allow depositing of ERC-721s to the bank, which can be retrieved by future minters.
  // Does not handle ERC-721 exemptions.
  function _withdrawAndStoreERC721(address from_) internal virtual {
    if (from_ == address(0)) {
      revert InvalidSender();
    }

    // Retrieve the latest token added to the owner's stack (LIFO).
    uint256 id = _owned[from_][_owned[from_].length - 1];

    // Transfer to 0x0.
    // Does not handle ERC-721 exemptions.
    _transferERC721(from_, address(0), id);

    // Record the token in the contract's bank queue.
    _storedERC721Ids.pushFront(id);
  }

  /// @notice Initialization function to set pairs / etc, saving gas by avoiding mint / burn on unnecessary targets
  function _setERC721TransferExempt(
    address target_,
    bool state_
  ) internal virtual {
    if (target_ == address(0)) {
      revert InvalidExemption();
    }

    // Adjust the ERC721 balances of the target to respect exemption rules.
    // Despite this logic, it is still recommended practice to exempt prior to the target
    // having an active balance.
    if (state_) {
      _clearERC721Balance(target_);
    } else {
      _reinstateERC721Balance(target_);
    }

    _erc721TransferExempt[target_] = state_;
  }

  /// @notice Function to reinstate balance on exemption removal
  function _reinstateERC721Balance(address target_) private {
    uint256 expectedERC721Balance = erc20BalanceOf(target_) / units;
    uint256 actualERC721Balance = erc721BalanceOf(target_);

    for (uint256 i = 0; i < expectedERC721Balance - actualERC721Balance; ) {
      // Transfer ERC721 balance in from pool
      _retrieveOrMintERC721(target_);
      unchecked {
        ++i;
      }
    }
  }

  /// @notice Function to clear balance on exemption inclusion
  function _clearERC721Balance(address target_) private {
    uint256 erc721Balance = erc721BalanceOf(target_);

    for (uint256 i = 0; i < erc721Balance; ) {
      // Transfer out ERC721 balance
      _withdrawAndStoreERC721(target_);
      unchecked {
        ++i;
      }
    }
  }

  function _getOwnerOf(
    uint256 id_
  ) internal view virtual returns (address ownerOf_) {
    uint256 data = _ownedData[id_];

    assembly {
      ownerOf_ := and(data, _BITMASK_ADDRESS)
    }
  }

  function _setOwnerOf(uint256 id_, address owner_) internal virtual {
    uint256 data = _ownedData[id_];

    assembly {
      data := add(
        and(data, _BITMASK_OWNED_INDEX),
        and(owner_, _BITMASK_ADDRESS)
      )
    }

    _ownedData[id_] = data;
  }

  function _getOwnedIndex(
    uint256 id_
  ) internal view virtual returns (uint256 ownedIndex_) {
    uint256 data = _ownedData[id_];

    assembly {
      ownedIndex_ := shr(160, data)
    }
  }

  function _setOwnedIndex(uint256 id_, uint256 index_) internal virtual {
    uint256 data = _ownedData[id_];

    if (index_ > _BITMASK_OWNED_INDEX >> 160) {
      revert OwnedIndexOverflow();
    }

    assembly {
      data := add(
        and(data, _BITMASK_ADDRESS),
        and(shl(160, index_), _BITMASK_OWNED_INDEX)
      )
    }

    _ownedData[id_] = data;
  }
}


// File contracts/interfaces/UniswapFactory.sol

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}


// File contracts/interfaces/UniswapRouter.sol

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}


// File contracts/ERROR.sol

contract ERROR is ERC404, Ownable {

    string public dataURI;

    bool public swapFees; // should swap fees
    bool public transfersEnable; // is transfer enabled
    bool swapping;

    uint public constant launchFees = 2000; // fees during the launch period (with 4 decimals (/ 10000))
    uint public constant postLaunchFees = 100; // fees during the post launch period (then 0 after) (with 4 decimals (/ 10000))

    uint public launchTimestamp; // timestamp of launch (when allowing transfers) set by the contract
    uint public constant launchPeriod = 100; // duration in seconds of the first period (right after the launch)

    uint public immutable maxTransferAmount = 1e18; // max trading amount (amount sending / receiving / transfering)
    uint public immutable maxWalletAmount = 1e18; // max amount ownable by an address at a certain moment
    uint public constant limitsDuration = 180; // duration in seconds of the limits (max wallet and max amount per transaction)

    uint public minSwapAmount = 1e18; // minimum token amount required to swap fees

    IUniswapV2Router02 public constant router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
    address public immutable WETH;
    address public immutable pair;

    address payable public feesRecipient;

    mapping(address => bool) public isBlacklisted; // blacklisted malicious addresses
    mapping(address => bool) public isFeesExempt; // exclude addresses from fees
    mapping(address => bool) public isLimitsExempt; // exclude addresses from limits (max wallet and max transfer)

    constructor() ERC404("ERROR", "ERROR", 18) Ownable(msg.sender) {
        setDataURI("https://raw.githubusercontent.com/errorcomputer/error/main/error.gif");

        WETH = router.WETH();

        pair = IUniswapV2Factory(router.factory()).createPair(address(this), WETH);

        _setERC721TransferExempt(address(this), true);
        _setERC721TransferExempt(address(pair), true);
        _setERC721TransferExempt(msg.sender, true);

        isFeesExempt[msg.sender] = true;
        isFeesExempt[address(this)] = true;

        isLimitsExempt[pair] = true;
        isLimitsExempt[address(this)] = true;
        isLimitsExempt[msg.sender] = true;

        feesRecipient = payable(msg.sender);

        swapFees = true;

        _mintERC20(msg.sender, 404e18);
    }

    // launch dapp
    function authorizeTransfers() external onlyOwner() {
        require(!transfersEnable);
        transfersEnable = true;

        launchTimestamp = block.timestamp;
    }

    function setERC721TransferExempt(address _account, bool _state) external onlyOwner {
        _setERC721TransferExempt(_account, _state);
    }

    function setFeesRecipient(address _feesRecipient) external {
        require(msg.sender == feesRecipient);
        feesRecipient = payable(_feesRecipient);
    }

    function switchShouldSwapFees() external onlyOwner() {
        swapFees = !swapFees;
    }

    function setMinSwapAmount(uint _minSwapAmount) external onlyOwner {
        minSwapAmount = _minSwapAmount;
    }

    function setFeesExempt(address _account, bool _isExempt) external onlyOwner {
        isFeesExempt[_account] = _isExempt;
    }

    function setLimitsExempt(address _account, bool _isExempt) external onlyOwner {
        isLimitsExempt[_account] = _isExempt;
    }

    function setIsBlacklisted(address _account, bool _isBlacklisted) external onlyOwner {
        isBlacklisted[_account] = _isBlacklisted;
    }

    function setDataURI(string memory _dataURI) public onlyOwner {
        dataURI = _dataURI;
    }

    function tokenURI(uint256 id_) public view override returns (string memory) {
        string memory jsonPre = string.concat(
            string.concat(
                string.concat('{"name": "ERROR #', Strings.toString(id_)),
                '","description":"No good comes without trial and error.","image":"'
            ),
            dataURI            
        );
        
        string memory json = string.concat(jsonPre, '"}');  

        return
            string.concat(
                "data:application/json;utf8,",
                json
            );
    }

    function _swapBack() private {
        uint256 tokensToSell = balanceOf[address(this)];
        if (tokensToSell < minSwapAmount) return;
        swapping = true;
        
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = WETH;

        allowance[address(this)][address(router)] = tokensToSell;
        router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokensToSell,
            0,
            path,
            feesRecipient,
            block.timestamp
        );

        swapping = false;
    }

    function getCurrentFees() public view returns (uint) {
        if (launchTimestamp == 0) return launchFees; // pre launch fees set to launch fees (just in case)
        else if (block.timestamp <= launchTimestamp + launchPeriod) return launchFees; // fees of the launch period
        else return postLaunchFees; // 0% fees after the launch periods
    }

    // emergency function if fees couldn't be sold and transfered automatically
    function collectFees(bool _withdrawEth) external {
        require(msg.sender == feesRecipient);

        if (_withdrawEth) {
            (bool sent, ) = feesRecipient.call{value: address(this).balance}("");
            require(sent);
        } else {
            transfer(feesRecipient, balanceOf[address(this)]);
        }
    }

    function _checkLimits(address from_, address to_, uint value_) private view {
        // require that both from and to are not blacklisted or that to is fees recipient (so blacklisted addresses can send to feesRecipient)
        require((!isBlacklisted[from_] && !isBlacklisted[to_]) || to_ == feesRecipient, "Blacklisted");

        if (launchTimestamp != 0 && block.timestamp >= launchTimestamp + limitsDuration) return;

        if (from_ == pair && !isLimitsExempt[to_]) { // need to verify buying amount < maxTradingAmount and max wallet amount of receiver
            require(balanceOf[to_] + value_ <= maxWalletAmount, "Max wallet amount reached");
            require(value_ <= maxTransferAmount, "Max transfer amount reached");
        } 
            
        else if (to_ == pair && !isLimitsExempt[from_]) { // selling amount cannot be more than max trading amount
            require(value_ <= maxTransferAmount, "Max transfer amount reached");
        } 
            
        else if (!isLimitsExempt[to_]) { // check for simple transfers
            require(balanceOf[to_] + value_ <= maxWalletAmount, "Max wallet amount reached");
            require(value_ <= maxTransferAmount, "Max transfer amount reached");
        }
    }

    function _transferERC20(
        address from_,
        address to_,
        uint256 value_
    ) internal override {
        if (isFeesExempt[from_] || isFeesExempt[to_] || swapping)
            return super._transferERC20(from_, to_, value_);

        require(transfersEnable, "Transfers not enable");

        _checkLimits(from_, to_, value_);

        uint fees;
        if (from_ == pair || to_ == pair) {
            fees = (value_ * getCurrentFees()) / 10000;
            if (fees > 0) super._transferERC20(from_, address(this), fees);
        }

        if (swapFees && from_ != pair) _swapBack(); // swap back tokens to ETH

        return super._transferERC20(from_, to_, value_ - fees);
    }

    function _transferERC721(
        address from_,
        address to_,
        uint256 id_
    ) internal override {
        if (isFeesExempt[from_] || isFeesExempt[to_] || swapping)
            return super._transferERC721(from_, to_, id_);

        require(transfersEnable, "Transfers not enable");

        return super._transferERC721(from_, to_, id_);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyExists","type":"error"},{"inputs":[],"name":"DecimalsTooLow","type":"error"},{"inputs":[],"name":"InsufficientAllowance","type":"error"},{"inputs":[],"name":"InvalidApproval","type":"error"},{"inputs":[],"name":"InvalidExemption","type":"error"},{"inputs":[],"name":"InvalidOperator","type":"error"},{"inputs":[],"name":"InvalidRecipient","type":"error"},{"inputs":[],"name":"InvalidSender","type":"error"},{"inputs":[],"name":"InvalidSigner","type":"error"},{"inputs":[],"name":"InvalidSpender","type":"error"},{"inputs":[],"name":"InvalidTokenId","type":"error"},{"inputs":[],"name":"MintLimitReached","type":"error"},{"inputs":[],"name":"NotFound","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnedIndexOverflow","type":"error"},{"inputs":[],"name":"PermitDeadlineExpired","type":"error"},{"inputs":[],"name":"QueueEmpty","type":"error"},{"inputs":[],"name":"QueueFull","type":"error"},{"inputs":[],"name":"QueueOutOfBounds","type":"error"},{"inputs":[],"name":"RecipientIsERC721TransferExempt","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"UnsafeRecipient","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ID_ENCODING_PREFIX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender_","type":"address"},{"internalType":"uint256","name":"valueOrId_","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"authorizeTransfers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_withdrawEth","type":"bool"}],"name":"collectFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dataURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender_","type":"address"},{"internalType":"uint256","name":"value_","type":"uint256"}],"name":"erc20Approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"}],"name":"erc20BalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc20TotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"value_","type":"uint256"}],"name":"erc20TransferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender_","type":"address"},{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"erc721Approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"}],"name":"erc721BalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc721TotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target_","type":"address"}],"name":"erc721TransferExempt","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"erc721TransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feesRecipient","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getERC721QueueLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"start_","type":"uint256"},{"internalType":"uint256","name":"count_","type":"uint256"}],"name":"getERC721TokensInQueue","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isBlacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isFeesExempt","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isLimitsExempt","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launchFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launchPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launchTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limitsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTransferAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWalletAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minSwapAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"}],"name":"owned","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"erc721Owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"spender_","type":"address"},{"internalType":"uint256","name":"value_","type":"uint256"},{"internalType":"uint256","name":"deadline_","type":"uint256"},{"internalType":"uint8","name":"v_","type":"uint8"},{"internalType":"bytes32","name":"r_","type":"bytes32"},{"internalType":"bytes32","name":"s_","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"postLaunchFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"id_","type":"uint256"},{"internalType":"bytes","name":"data_","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator_","type":"address"},{"internalType":"bool","name":"approved_","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_dataURI","type":"string"}],"name":"setDataURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bool","name":"_state","type":"bool"}],"name":"setERC721TransferExempt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bool","name":"_isExempt","type":"bool"}],"name":"setFeesExempt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feesRecipient","type":"address"}],"name":"setFeesRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bool","name":"_isBlacklisted","type":"bool"}],"name":"setIsBlacklisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bool","name":"_isExempt","type":"bool"}],"name":"setLimitsExempt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minSwapAmount","type":"uint256"}],"name":"setMinSwapAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state_","type":"bool"}],"name":"setSelfERC721TransferExempt","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":"swapFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"switchShouldSwapFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"tokenURI","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":"value_","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":"valueOrId_","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transfersEnable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"units","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

610180604052670de0b6b3a764000061010081905261012081905260125534801562000029575f80fd5b5060408051808201825260058082526422a92927a960d91b60208084018290528451808601909552918452908301523391601260026200006a84826200158f565b5060036200007983826200158f565b5060128160ff161015620000a0576040516398790fd560e01b815260040160405180910390fd5b60ff81166080819052620000b690600a62001768565b60a0524660c052620000c762000375565b60e0525050506001600160a01b038116620000fc57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b620001078162000410565b506200012c60405180608001604052806044815260200162004e616044913962000461565b737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200017d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190620001a391906200177f565b6001600160a01b0316610140526040805163c45a015560e01b81529051737a250d5630b4cf539739df2c5dacb4c659f2488d9163c45a01559160048083019260209291908290030181865afa158015620001ff573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906200022591906200177f565b610140516040516364e329cb60e11b81523060048201526001600160a01b03918216602482015291169063c9c65396906044016020604051808303815f875af115801562000275573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906200029b91906200177f565b6001600160a01b031661016052620002b53060016200047d565b61016051620002c69060016200047d565b620002d33360016200047d565b335f8181526015602090815260408083208054600160ff199182168117909255308086528386208054831684179055610160516001600160a01b0316865260169094528285208054821683179055928452818420805484168217905584845292208054821683179055601380546001600160a01b031916841790556010805490911690911790556200036f906815e6a0538429d00000620004f2565b6200193d565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6002604051620003a89190620017a7565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b600e80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6200046b62000561565b600f6200047982826200158f565b5050565b6001600160a01b038216620004a55760405163a41e3d3f60e01b815260040160405180910390fd5b8015620004bd57620004b78262000592565b620004c8565b620004c882620005c9565b6001600160a01b03919091165f908152600c60205260409020805460ff1916911515919091179055565b6001600160a01b0382166200051a57604051634e46966960e11b815260040160405180910390fd5b600160ff1b816004546200052f919062001821565b11156200054f5760405163303b682f60e01b815260040160405180910390fd5b6200055c5f83836200064d565b505050565b600e546001600160a01b03163314620005905760405163118cdaa760e01b8152336004820152602401620000f3565b565b6001600160a01b0381165f908152600b6020526040812054905b818110156200055c57620005c083620008ec565b600101620005ac565b60a0515f90620005ed836001600160a01b03165f9081526006602052604090205490565b620005f9919062001837565b90505f6200061b836001600160a01b03165f908152600b602052604090205490565b90505f5b6200062b828462001857565b81101562000647576200063e8462000978565b6001016200061f565b50505050565b6001600160a01b038381165f908152600660205260408082205492851682528120549091906200067f86868662000a62565b5f6200068b8762000bf7565b90505f620006998762000bf7565b9050818015620006a65750805b620008de5781156200071f575f60a05184620006c3919062001837565b60a0516001600160a01b038a165f90815260066020526040902054620006ea919062001837565b620006f6919062001857565b90505f5b8181101562000717576200070e8962000978565b600101620006fa565b5050620008de565b80156200078a5760a0516001600160a01b0389165f9081526006602052604081205490916200074e9162001837565b60a0516200075d908762001837565b62000769919062001857565b90505f5b818110156200071757620007818a620008ec565b6001016200076d565b5f60a051876200079b919062001837565b90505f5b8181101562000828576001600160a01b038a165f908152600b6020526040812054620007ce9060019062001857565b6001600160a01b038c165f908152600b602052604081208054929350909183908110620007ff57620007ff6200186d565b905f5260205f20015490506200081d8c8c8362000c2c60201b60201c565b50506001016200079f565b5060a05181906200084d8b6001600160a01b03165f9081526006602052604090205490565b62000859919062001837565b60a05162000868908862001837565b62000874919062001857565b111562000886576200088689620008ec565b8060a0518562000897919062001837565b60a0516001600160a01b038b165f90815260066020526040902054620008be919062001837565b620008ca919062001857565b1115620008dc57620008dc8862000978565b505b506001979650505050505050565b6001600160a01b0381166200091457604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0381165f908152600b6020526040812080546200093b9060019062001857565b815481106200094e576200094e6200186d565b905f5260205f20015490506200096c825f8362000c2c60201b60201c565b620004795f8262000cf7565b6001600160a01b038116620009a057604051634e46966960e11b815260040160405180910390fd5b5f80546001600160801b03808216600160801b9092041614620009d057620009c85f62000d60565b905062000a1e565b60055f8154620009e09062001881565b9091555060055460010162000a085760405163303b682f60e01b815260040160405180910390fd5b60055462000a1b90600160ff1b62001821565b90505b5f818152600a60205260409020546001600160a01b0316801562000a555760405163119b4fd360e11b815260040160405180910390fd5b6200055c81848462000c2c565b6001600160a01b0383165f9081526015602052604090205460ff168062000aa057506001600160a01b0382165f9081526015602052604090205460ff165b8062000ab4575060105462010000900460ff165b1562000ac7576200055c83838362000dce565b601054610100900460ff1662000b205760405162461bcd60e51b815260206004820152601460248201527f5472616e7366657273206e6f7420656e61626c650000000000000000000000006044820152606401620000f3565b62000b2d83838362000e7c565b5f610160516001600160a01b0316846001600160a01b0316148062000b665750610160516001600160a01b0316836001600160a01b0316145b1562000ba75761271062000b7962001131565b62000b8590846200189c565b62000b91919062001837565b9050801562000ba75762000ba784308362000dce565b60105460ff16801562000bcf5750610160516001600160a01b0316846001600160a01b031614155b1562000bdf5762000bdf62001168565b62000647848462000bf1848662001857565b62000dce565b5f6001600160a01b038216158062000c2657506001600160a01b0382165f908152600c602052604090205460ff165b92915050565b6001600160a01b0383165f9081526015602052604090205460ff168062000c6a57506001600160a01b0382165f9081526015602052604090205460ff165b8062000c7e575060105462010000900460ff165b1562000c91576200055c838383620012bd565b601054610100900460ff1662000cea5760405162461bcd60e51b815260206004820152601460248201527f5472616e7366657273206e6f7420656e61626c650000000000000000000000006044820152606401620000f3565b6200055c838383620012bd565b81546001600160801b038082165f190191600160801b900481169082160362000d3357604051638acb5f2760e01b815260040160405180910390fd5b6001600160801b03165f81815260018401602052604090209190915581546001600160801b031916179055565b80545f906001600160801b03600160801b820481169116810362000d97576040516375e52f4f60e01b815260040160405180910390fd5b5f19016001600160801b039081165f818152600185016020526040812080549190558454909216600160801b909102179092555090565b6001600160a01b03831662000dfc578060045f82825462000df0919062001821565b9091555062000e2b9050565b6001600160a01b0383165f908152600660205260408120805483929062000e2590849062001857565b90915550505b6001600160a01b038083165f81815260066020526040908190208054850190555190918516905f8051602062004e418339815191529062000e6f9085815260200190565b60405180910390a3505050565b6001600160a01b0383165f9081526014602052604090205460ff1615801562000ebd57506001600160a01b0382165f9081526014602052604090205460ff16155b8062000ed657506013546001600160a01b038381169116145b62000f125760405162461bcd60e51b815260206004820152600b60248201526a109b1858dadb1a5cdd195960aa1b6044820152606401620000f3565b6011541580159062000f34575060b460115462000f30919062001821565b4210155b1562000f3f57505050565b610160516001600160a01b0316836001600160a01b031614801562000f7c57506001600160a01b0382165f9081526016602052604090205460ff16155b156200105057610120516001600160a01b0383165f9081526006602052604090205462000fab90839062001821565b111562000ffb5760405162461bcd60e51b815260206004820152601960248201527f4d61782077616c6c657420616d6f756e742072656163686564000000000000006044820152606401620000f3565b610100518111156200055c5760405162461bcd60e51b815260206004820152601b60248201527f4d6178207472616e7366657220616d6f756e74207265616368656400000000006044820152606401620000f3565b610160516001600160a01b0316826001600160a01b03161480156200108d57506001600160a01b0383165f9081526016602052604090205460ff16155b15620010e857610100518111156200055c5760405162461bcd60e51b815260206004820152601b60248201527f4d6178207472616e7366657220616d6f756e74207265616368656400000000006044820152606401620000f3565b6001600160a01b0382165f9081526016602052604090205460ff166200055c57610120516001600160a01b0383165f9081526006602052604090205462000fab90839062001821565b5f6011545f036200114357506107d090565b606460115462001154919062001821565b42116200116257506107d090565b50606490565b305f90815260066020526040902054601254811015620011855750565b6010805462ff00001916620100001790556040805160028082526060820183525f9260208301908036833701905050905030815f81518110620011cc57620011cc6200186d565b60200260200101906001600160a01b031690816001600160a01b03168152505061014051816001815181106200120657620012066200186d565b6001600160a01b03928316602091820292909201810191909152305f908152600782526040808220737a250d5630b4cf539739df2c5dacb4c659f2488d8084529352808220869055601354905163791ac94760e01b8152929363791ac947936200127e938893909288929116904290600401620018b6565b5f604051808303815f87803b15801562001296575f80fd5b505af1158015620012a9573d5f803e3d5ffd5b50506010805462ff00001916905550505050565b6001600160a01b03831615620013cd575f81815260086020908152604080832080546001600160a01b03191690556001600160a01b0386168352600b909152812080546200130e9060019062001857565b815481106200132157620013216200186d565b905f5260205f20015490508181146200138f575f828152600a602052604081205460a01c6001600160a01b0386165f908152600b6020526040902080549192508391839081106200137657620013766200186d565b5f918252602090912001556200138d82826200148c565b505b6001600160a01b0384165f908152600b60205260409020805480620013b857620013b862001929565b600190038181905f5260205f20015f90559055505b6001600160a01b0382161562001449575f818152600a6020908152604080832080546001600160a01b0319166001600160a01b038716908101909155808452600b83529083208054600181810183558286529385200185905592529054620014439183916200143d919062001857565b6200148c565b62001458565b5f818152600a60205260408120555b80826001600160a01b0316846001600160a01b03165f8051602062004e4183398151915260405160405180910390a4505050565b5f828152600a60205260409020546001600160601b03821115620014c357604051633f2cd0e360e21b815260040160405180910390fd5b5f928352600a60205260409092206001600160a01b039290921660a09190911b6001600160a01b031916019055565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200151b57607f821691505b6020821081036200153a57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200055c57805f5260205f20601f840160051c81016020851015620015675750805b601f840160051c820191505b8181101562001588575f815560010162001573565b5050505050565b81516001600160401b03811115620015ab57620015ab620014f2565b620015c381620015bc845462001506565b8462001540565b602080601f831160018114620015f9575f8415620015e15750858301515b5f19600386901b1c1916600185901b17855562001653565b5f85815260208120601f198616915b82811015620016295788860151825594840194600190910190840162001608565b50858210156200164757878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b634e487b7160e01b5f52601160045260245ffd5b600181815b80851115620016af57815f19048211156200169357620016936200165b565b80851615620016a157918102915b93841c939080029062001674565b509250929050565b5f82620016c75750600162000c26565b81620016d557505f62000c26565b8160018114620016ee5760028114620016f95762001719565b600191505062000c26565b60ff8411156200170d576200170d6200165b565b50506001821b62000c26565b5060208310610133831016604e8410600b84101617156200173e575081810a62000c26565b6200174a83836200166f565b805f19048211156200176057620017606200165b565b029392505050565b5f6200177860ff841683620016b7565b9392505050565b5f6020828403121562001790575f80fd5b81516001600160a01b038116811462001778575f80fd5b5f808354620017b68162001506565b60018281168015620017d15760018114620017e75762001815565b60ff198416875282151583028701945062001815565b875f526020805f205f5b858110156200180c5781548a820152908401908201620017f1565b50505082870194505b50929695505050505050565b8082018082111562000c265762000c266200165b565b5f826200185257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111562000c265762000c266200165b565b634e487b7160e01b5f52603260045260245ffd5b5f600182016200189557620018956200165b565b5060010190565b808202811582820484141762000c265762000c266200165b565b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b81811015620019085784516001600160a01b031683529383019391830191600101620018e1565b50506001600160a01b03969096166060850152505050608001529392505050565b634e487b7160e01b5f52603160045260245ffd5b60805160a05160c05160e0516101005161012051610140516101605161341562001a2c5f395f818161072001528181611e0c01528181611e4701528181611ec10152818161249c01526125fd01525f81816107b001526127af01525f818161078901528181612512015261270201525f81816107620152818161258d015261265b01525f610c6101525f610c3101525f81816106c1015281816115e6015281816119bc015281816119ff01528181611a7601528181611aa001528181611af201528181611b9901528181611be501528181611c2901528181611c50015261208a01525f61053a01526134155ff3fe608060405234801561000f575f80fd5b50600436106103eb575f3560e01c80638da5cb5b1161020b578063bb7a39721161011f578063dd637699116100b4578063f28ca1dd11610084578063f28ca1dd14610962578063f2fde38b1461096a578063f780bc1a1461097d578063f887ea4014610990578063fe575a87146109ab575f80fd5b8063dd637699146108ed578063dfabc03314610900578063e985e9c514610913578063ed87344514610940575f80fd5b8063c87b56dd116100ef578063c87b56dd1461088a578063d505accf1461089d578063d96ca0b9146108b0578063dd62ed3e146108c3575f80fd5b8063bb7a39721461064e578063c40d24b21461084d578063c5ab3ba61461086f578063c6e672b914610877575f80fd5b8063a9d27847116101a0578063b1ab931711610170578063b1ab9317146107d2578063b3f9ea34146107f2578063b43761071461081a578063b88d4fde1461082d578063b9ccf21d14610840575f80fd5b8063a9d2784714610755578063a9e757231461075d578063aa4bde2814610784578063ad5c4648146107ab575f80fd5b8063a22cb465116101db578063a22cb465146106f6578063a364c8a514610709578063a8aa1b311461071b578063a9059cbb14610742575f80fd5b80638da5cb5b146106a357806395d89b41146106b4578063976a8435146106bc578063a0e38492146106e3575f80fd5b8063451f313a11610302578063702acfa8116102975780637c2f6125116102675780637c2f61251461064e5780637ecebe001461065657806384b7719a1461067557806389fb4c66146106885780638a696e5014610690575f80fd5b8063702acfa81461060c57806370a082311461061f578063715018a61461063e57806371908a0314610646575f80fd5b80635aed8cc3116102d25780635aed8cc3146105dd5780636352211e146105e557806365cf7c9b146105f85780636e8f624b14610601575f80fd5b8063451f313a146105a557806348e21833146105ae5780634d966072146105c15780634f02c420146105d4575f80fd5b806318160ddd11610383578063313ce56711610353578063313ce56714610535578063320d45341461056e578063338246e2146105815780633644e5151461058a57806342842e0e14610592575f80fd5b806318160ddd146104f357806318d217c3146104fc57806323b872dd1461050f578063254d742114610522575f80fd5b8063095ea7b3116103be578063095ea7b3146104a257806309674eb0146104b557806309f0ef65146104d65780630bd41293146104e9575f80fd5b806301ffc9a7146103ef57806302519da31461041757806306fdde031461044d578063081812fc14610462575b5f80fd5b6104026103fd366004612bbd565b6109cd565b60405190151581526020015b60405180910390f35b61043f610425366004612bee565b6001600160a01b03165f9081526006602052604090205490565b60405190815260200161040e565b610455610a03565b60405161040e9190612c54565b61048a610470366004612c66565b60086020525f90815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161040e565b6104026104b0366004612c7d565b610a8f565b5f546001600160801b03808216600160801b9092048116919091031661043f565b6104026104e4366004612bee565b610acc565b6104f1610afc565b005b61043f60045481565b6104f161050a366004612d2c565b610b2d565b61040261051d366004612d79565b610b45565b6104f1610530366004612dc1565b610b81565b61055c7f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff909116815260200161040e565b6104f161057c366004612c66565b610c21565b61043f60125481565b61043f610c2e565b6104f16105a0366004612d79565b610c83565b61043f6107d081565b6104f16105bc366004612dda565b610ca2565b6104026105cf366004612c7d565b610cd4565b61043f60055481565b6104f1610d5f565b61048a6105f3366004612c66565b610d7b565b61043f60115481565b61043f600160ff1b81565b60135461048a906001600160a01b031681565b61043f61062d366004612bee565b60066020525f908152604090205481565b6104f1610de4565b61043f610df7565b61043f606481565b61043f610664366004612bee565b600d6020525f908152604090205481565b6104f1610683366004612bee565b610e2a565b60045461043f565b6104f161069e366004612dc1565b610e62565b600e546001600160a01b031661048a565b610455610e6c565b61043f7f000000000000000000000000000000000000000000000000000000000000000081565b6104f16106f1366004612dda565b610e79565b6104f1610704366004612dda565b610eab565b60105461040290610100900460ff1681565b61048a7f000000000000000000000000000000000000000000000000000000000000000081565b610402610750366004612c7d565b610f3d565b61043f60b481565b61043f7f000000000000000000000000000000000000000000000000000000000000000081565b61043f7f000000000000000000000000000000000000000000000000000000000000000081565b61048a7f000000000000000000000000000000000000000000000000000000000000000081565b6107e56107e0366004612bee565b610f70565b60405161040e9190612e0b565b61043f610800366004612bee565b6001600160a01b03165f908152600b602052604090205490565b6104f1610828366004612dda565b610fd9565b6104f161083b366004612e4e565b61100b565b6010546104029060ff1681565b61040261085b366004612bee565b60156020525f908152604090205460ff1681565b60055461043f565b6104f1610885366004612dda565b6110f6565b610455610898366004612c66565b611108565b6104f16108ab366004612ec5565b6111be565b6104026108be366004612d79565b6113fb565b61043f6108d1366004612f32565b600760209081525f928352604080842090915290825290205481565b6104f16108fb366004612d79565b6114b7565b6104f161090e366004612c7d565b611615565b610402610921366004612f32565b600960209081525f928352604080842090915290825290205460ff1681565b61040261094e366004612bee565b60166020525f908152604090205460ff1681565b6104556116d7565b6104f1610978366004612bee565b6116e4565b6107e561098b366004612f5a565b611723565b61048a737a250d5630b4cf539739df2c5dacb4c659f2488d81565b6104026109b9366004612bee565b60146020525f908152604090205460ff1681565b5f6001600160e01b0319821663caf91ff560e01b14806109fd57506001600160e01b031982166301ffc9a760e01b145b92915050565b60028054610a1090612f7a565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3c90612f7a565b8015610a875780601f10610a5e57610100808354040283529160200191610a87565b820191905f5260205f20905b815481529060010190602001808311610a6a57829003601f168201915b505050505081565b5f610a99826117be565b15610aad57610aa88383611615565b610abe565b610ab78383610cd4565b90506109fd565b50600192915050565b905090565b5f6001600160a01b03821615806109fd5750506001600160a01b03165f908152600c602052604090205460ff1690565b610b046117d5565b601054610100900460ff1615610b18575f80fd5b6010805461ff00191661010017905542601155565b610b356117d5565b600f610b418282612ffd565b5050565b5f610b4f826117be565b15610b6457610b5f8484846114b7565b610b76565b610b6f8484846113fb565b9050610b7a565b5060015b9392505050565b6013546001600160a01b03163314610b97575f80fd5b8015610bf9576013546040515f916001600160a01b03169047908381818185875af1925050503d805f8114610be7576040519150601f19603f3d011682016040523d82523d5f602084013e610bec565b606091505b5050905080610b41575f80fd5b601354305f90815260066020526040902054610b41916001600160a01b031690610f3d565b50565b610c296117d5565b601255565b5f7f00000000000000000000000000000000000000000000000000000000000000004614610c5e57610ac7611802565b507f000000000000000000000000000000000000000000000000000000000000000090565b610c9d83838360405180602001604052805f81525061100b565b505050565b610caa6117d5565b6001600160a01b03919091165f908152601660205260409020805460ff1916911515919091179055565b5f6001600160a01b038316610cfc57604051635461585f60e01b815260040160405180910390fd5b335f8181526007602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350600192915050565b610d676117d5565b6010805460ff19811660ff90911615179055565b5f818152600a60205260409020546001600160a01b0316610d9b826117be565b610db8576040516307ed98ed60e31b815260040160405180910390fd5b6001600160a01b038116610ddf5760405163c5723b5160e01b815260040160405180910390fd5b919050565b610dec6117d5565b610df55f61189b565b565b5f6011545f03610e0857506107d090565b6064601154610e1791906130d1565b4211610e2457506107d090565b50606490565b6013546001600160a01b03163314610e40575f80fd5b601380546001600160a01b0319166001600160a01b0392909216919091179055565b610c1e33826118ec565b60038054610a1090612f7a565b610e816117d5565b6001600160a01b03919091165f908152601460205260409020805460ff1916911515919091179055565b6001600160a01b038216610ed25760405163ccea9e6f60e01b815260040160405180910390fd5b335f8181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b5f6001600160a01b038316610f6557604051634e46966960e11b815260040160405180910390fd5b610b7a33848461195a565b6001600160a01b0381165f908152600b6020908152604091829020805483518184028101840190945280845260609392830182828015610fcd57602002820191905f5260205f20905b815481526020019060010190808311610fb9575b50505050509050919050565b610fe16117d5565b6001600160a01b03919091165f908152601560205260409020805460ff1916911515919091179055565b611014826117be565b611031576040516307ed98ed60e31b815260040160405180910390fd5b61103c848484610b45565b506001600160a01b0383163b158015906110d25750604051630a85bd0160e11b808252906001600160a01b0385169063150b7a02906110859033908990889088906004016130e4565b6020604051808303815f875af11580156110a1573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110c59190613120565b6001600160e01b03191614155b156110f057604051633da6393160e01b815260040160405180910390fd5b50505050565b6110fe6117d5565b610b4182826118ec565b60605f61111483611cc0565b604051602001611124919061313b565b60408051601f198184030181529082905261114191602001613174565b60408051601f198184030181529082905261116191600f90602001613254565b60405160208183030381529060405290505f816040516020016111849190613271565b6040516020818303038152906040529050806040516020016111a69190613296565b60405160208183030381529060405292505050919050565b428410156111df576040516305787bdf60e01b815260040160405180910390fd5b6111e8856117be565b15611206576040516303e7c1bd60e31b815260040160405180910390fd5b6001600160a01b03861661122d57604051635461585f60e01b815260040160405180910390fd5b5f6001611238610c2e565b6001600160a01b038a81165f818152600d602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938d166060840152608083018c905260a083019390935260c08083018b90528151808403909101815260e08301909152805192019190912061190160f01b6101008301526101028201929092526101228101919091526101420160408051601f1981840301815282825280516020918201205f84529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015611340573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b03811615806113755750876001600160a01b0316816001600160a01b031614155b1561139357604051632057875960e21b815260040160405180910390fd5b6001600160a01b039081165f9081526007602090815260408083208a8516808552908352928190208990555188815291928a16917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050565b5f6001600160a01b03841661142357604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b03831661144a57604051634e46966960e11b815260040160405180910390fd5b6001600160a01b0384165f9081526007602090815260408083203384529091529020545f1981146114a35761147f83826132da565b6001600160a01b0386165f9081526007602090815260408083203384529091529020555b6114ae85858561195a565b95945050505050565b6001600160a01b0383166114de57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b03821661150557604051634e46966960e11b815260040160405180910390fd5b5f818152600a60205260409020546001600160a01b0384811691161461153d576040516282b42960e81b815260040160405180910390fd5b336001600160a01b0384161480159061157957506001600160a01b0383165f90815260096020908152604080832033845290915290205460ff16155b801561159b57505f818152600860205260409020546001600160a01b03163314155b156115b8576040516282b42960e81b815260040160405180910390fd5b6115c182610acc565b156115df57604051635ce7539760e01b815260040160405180910390fd5b61160a83837f0000000000000000000000000000000000000000000000000000000000000000611d50565b610c9d838383611f17565b5f818152600a60205260409020546001600160a01b031633811480159061165f57506001600160a01b0381165f90815260096020908152604080832033845290915290205460ff16155b1561167c576040516282b42960e81b815260040160405180910390fd5b5f8281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600f8054610a1090612f7a565b6116ec6117d5565b6001600160a01b03811661171a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610c1e8161189b565b60605f8267ffffffffffffffff81111561173f5761173f612ca5565b604051908082528060200260200182016040528015611768578160200160208202803683370190505b509050835b61177784866130d1565b8110156117b6576117885f82611fd0565b8261179387846132da565b815181106117a3576117a36132ed565b602090810291909101015260010161176d565b509392505050565b5f600160ff1b821180156109fd5750505f19141590565b600e546001600160a01b03163314610df55760405163118cdaa760e01b8152336004820152602401611711565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60026040516118339190613301565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b600e80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0382166119135760405163a41e3d3f60e01b815260040160405180910390fd5b80156119275761192282612039565b611930565b6119308261206c565b6001600160a01b03919091165f908152600c60205260409020805460ff1916911515919091179055565b6001600160a01b038381165f9081526006602052604080822054928516825281205490919061198a868686611d50565b5f61199487610acc565b90505f6119a087610acc565b90508180156119ac5750805b611cb2578115611a52575f6119e17f00000000000000000000000000000000000000000000000000000000000000008561330c565b6001600160a01b0389165f90815260066020526040902054611a24907f00000000000000000000000000000000000000000000000000000000000000009061330c565b611a2e91906132da565b90505f5b81811015611a4b57611a43896120f6565b600101611a32565b5050611cb2565b8015611aec576001600160a01b0388165f90815260066020526040812054611a9b907f00000000000000000000000000000000000000000000000000000000000000009061330c565b611ac57f00000000000000000000000000000000000000000000000000000000000000008761330c565b611acf91906132da565b90505f5b81811015611a4b57611ae48a6121d3565b600101611ad3565b5f611b177f00000000000000000000000000000000000000000000000000000000000000008861330c565b90505f5b81811015611b95576001600160a01b038a165f908152600b6020526040812054611b47906001906132da565b6001600160a01b038c165f908152600b602052604081208054929350909183908110611b7557611b756132ed565b905f5260205f2001549050611b8b8c8c83611f17565b5050600101611b1b565b50807f0000000000000000000000000000000000000000000000000000000000000000611bd68b6001600160a01b03165f9081526006602052604090205490565b611be0919061330c565b611c0a7f00000000000000000000000000000000000000000000000000000000000000008861330c565b611c1491906132da565b1115611c2357611c23896121d3565b80611c4e7f00000000000000000000000000000000000000000000000000000000000000008661330c565b7f0000000000000000000000000000000000000000000000000000000000000000611c8d8b6001600160a01b03165f9081526006602052604090205490565b611c97919061330c565b611ca191906132da565b1115611cb057611cb0886120f6565b505b506001979650505050505050565b60605f611ccc8361224f565b60010190505f8167ffffffffffffffff811115611ceb57611ceb612ca5565b6040519080825280601f01601f191660200182016040528015611d15576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611d1f57509392505050565b6001600160a01b0383165f9081526015602052604090205460ff1680611d8d57506001600160a01b0382165f9081526015602052604090205460ff165b80611da0575060105462010000900460ff165b15611db057610c9d838383612326565b601054610100900460ff16611dfe5760405162461bcd60e51b81526020600482015260146024820152735472616e7366657273206e6f7420656e61626c6560601b6044820152606401611711565b611e098383836123df565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b03161480611e7b57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b0316145b15611eb257612710611e8b610df7565b611e95908461332b565b611e9f919061330c565b90508015611eb257611eb2843083612326565b60105460ff168015611ef657507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b031614155b15611f0357611f0361272d565b6110f08484611f1284866132da565b612326565b6001600160a01b0383165f9081526015602052604090205460ff1680611f5457506001600160a01b0382165f9081526015602052604090205460ff165b80611f67575060105462010000900460ff165b15611f7757610c9d838383612894565b601054610100900460ff16611fc55760405162461bcd60e51b81526020600482015260146024820152735472616e7366657273206e6f7420656e61626c6560601b6044820152606401611711565b610c9d838383612894565b5f611ff383546001600160801b03808216600160801b9092048116919091031690565b82106120125760405163580821e760e01b815260040160405180910390fd5b5081546001600160801b039081168201165f90815260018301602052604090205492915050565b6001600160a01b0381165f908152600b6020526040812054905b81811015610c9d57612064836121d3565b600101612053565b6001600160a01b0381165f908152600660205260408120546120af907f00000000000000000000000000000000000000000000000000000000000000009061330c565b90505f6120d0836001600160a01b03165f908152600b602052604090205490565b90505f5b6120de82846132da565b8110156110f0576120ee846120f6565b6001016120d4565b6001600160a01b03811661211d57604051634e46966960e11b815260040160405180910390fd5b5f80546001600160801b03808216600160801b9092041614612149576121425f612a60565b9050612192565b60055f815461215790613342565b9091555060055460010161217e5760405163303b682f60e01b815260040160405180910390fd5b60055461218f90600160ff1b6130d1565b90505b5f818152600a60205260409020546001600160a01b031680156121c85760405163119b4fd360e11b815260040160405180910390fd5b610c9d818484611f17565b6001600160a01b0381166121fa57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0381165f908152600b60205260408120805461221f906001906132da565b8154811061222f5761222f6132ed565b905f5260205f2001549050612245825f83611f17565b610b415f82612acd565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061228d5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106122b9576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106122d757662386f26fc10000830492506010015b6305f5e10083106122ef576305f5e100830492506008015b612710831061230357612710830492506004015b60648310612315576064830492506002015b600a83106109fd5760010192915050565b6001600160a01b038316612350578060045f82825461234591906130d1565b9091555061237d9050565b6001600160a01b0383165f90815260066020526040812080548392906123779084906132da565b90915550505b6001600160a01b038083165f81815260066020526040908190208054850190555190918516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906123d29085815260200190565b60405180910390a3505050565b6001600160a01b0383165f9081526014602052604090205460ff1615801561241f57506001600160a01b0382165f9081526014602052604090205460ff16155b8061243757506013546001600160a01b038381169116145b6124715760405162461bcd60e51b815260206004820152600b60248201526a109b1858dadb1a5cdd195960aa1b6044820152606401611711565b60115415801590612490575060b460115461248c91906130d1565b4210155b1561249a57505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b03161480156124f357506001600160a01b0382165f9081526016602052604090205460ff16155b156125fb576001600160a01b0382165f908152600660205260409020547f00000000000000000000000000000000000000000000000000000000000000009061253d9083906130d1565b111561258b5760405162461bcd60e51b815260206004820152601960248201527f4d61782077616c6c657420616d6f756e742072656163686564000000000000006044820152606401611711565b7f0000000000000000000000000000000000000000000000000000000000000000811115610c9d5760405162461bcd60e51b815260206004820152601b60248201527f4d6178207472616e7366657220616d6f756e74207265616368656400000000006044820152606401611711565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614801561265457506001600160a01b0383165f9081526016602052604090205460ff16155b156126c9577f0000000000000000000000000000000000000000000000000000000000000000811115610c9d5760405162461bcd60e51b815260206004820152601b60248201527f4d6178207472616e7366657220616d6f756e74207265616368656400000000006044820152606401611711565b6001600160a01b0382165f9081526016602052604090205460ff16610c9d576001600160a01b0382165f908152600660205260409020547f00000000000000000000000000000000000000000000000000000000000000009061253d9083906130d1565b305f908152600660205260409020546012548110156127495750565b6010805462ff00001916620100001790556040805160028082526060820183525f9260208301908036833701905050905030815f8151811061278d5761278d6132ed565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000000000000000000000000000000000000000000000816001815181106127e1576127e16132ed565b6001600160a01b03928316602091820292909201810191909152305f908152600782526040808220737a250d5630b4cf539739df2c5dacb4c659f2488d8084529352808220869055601354905163791ac94760e01b8152929363791ac9479361285793889390928892911690429060040161335a565b5f604051808303815f87803b15801561286e575f80fd5b505af1158015612880573d5f803e3d5ffd5b50506010805462ff00001916905550505050565b6001600160a01b03831615612995575f81815260086020908152604080832080546001600160a01b03191690556001600160a01b0386168352600b909152812080546128e2906001906132da565b815481106128f2576128f26132ed565b905f5260205f200154905081811461295a575f828152600a602052604081205460a01c6001600160a01b0386165f908152600b602052604090208054919250839183908110612943576129436132ed565b5f918252602090912001556129588282612b3e565b505b6001600160a01b0384165f908152600b60205260409020805480612980576129806133cb565b600190038181905f5260205f20015f90559055505b6001600160a01b03821615612a0b575f818152600a6020908152604080832080546001600160a01b0319166001600160a01b038716908101909155808452600b83529083208054600181810183558286529385200185905592529054612a06918391612a0191906132da565b612b3e565b612a1a565b5f818152600a60205260408120555b80826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b80545f906001600160801b03600160801b8204811691168103612a96576040516375e52f4f60e01b815260040160405180910390fd5b5f19016001600160801b039081165f818152600185016020526040812080549190558454909216600160801b909102179092555090565b81546001600160801b038082165f190191600160801b9004811690821603612b0857604051638acb5f2760e01b815260040160405180910390fd5b6001600160801b03165f81815260018401602052604090209190915581546fffffffffffffffffffffffffffffffff1916179055565b5f828152600a60205260409020546bffffffffffffffffffffffff821115612b7957604051633f2cd0e360e21b815260040160405180910390fd5b5f928352600a60205260409092206001600160a01b039290921660a09190911b6001600160a01b031916019055565b6001600160e01b031981168114610c1e575f80fd5b5f60208284031215612bcd575f80fd5b8135610b7a81612ba8565b80356001600160a01b0381168114610ddf575f80fd5b5f60208284031215612bfe575f80fd5b610b7a82612bd8565b5f5b83811015612c21578181015183820152602001612c09565b50505f910152565b5f8151808452612c40816020860160208601612c07565b601f01601f19169290920160200192915050565b602081525f610b7a6020830184612c29565b5f60208284031215612c76575f80fd5b5035919050565b5f8060408385031215612c8e575f80fd5b612c9783612bd8565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b5f67ffffffffffffffff80841115612cd357612cd3612ca5565b604051601f8501601f19908116603f01168101908282118183101715612cfb57612cfb612ca5565b81604052809350858152868686011115612d13575f80fd5b858560208301375f602087830101525050509392505050565b5f60208284031215612d3c575f80fd5b813567ffffffffffffffff811115612d52575f80fd5b8201601f81018413612d62575f80fd5b612d7184823560208401612cb9565b949350505050565b5f805f60608486031215612d8b575f80fd5b612d9484612bd8565b9250612da260208501612bd8565b9150604084013590509250925092565b80358015158114610ddf575f80fd5b5f60208284031215612dd1575f80fd5b610b7a82612db2565b5f8060408385031215612deb575f80fd5b612df483612bd8565b9150612e0260208401612db2565b90509250929050565b602080825282518282018190525f9190848201906040850190845b81811015612e4257835183529284019291840191600101612e26565b50909695505050505050565b5f805f8060808587031215612e61575f80fd5b612e6a85612bd8565b9350612e7860208601612bd8565b925060408501359150606085013567ffffffffffffffff811115612e9a575f80fd5b8501601f81018713612eaa575f80fd5b612eb987823560208401612cb9565b91505092959194509250565b5f805f805f805f60e0888a031215612edb575f80fd5b612ee488612bd8565b9650612ef260208901612bd8565b95506040880135945060608801359350608088013560ff81168114612f15575f80fd5b9699959850939692959460a0840135945060c09093013592915050565b5f8060408385031215612f43575f80fd5b612f4c83612bd8565b9150612e0260208401612bd8565b5f8060408385031215612f6b575f80fd5b50508035926020909101359150565b600181811c90821680612f8e57607f821691505b602082108103612fac57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610c9d57805f5260205f20601f840160051c81016020851015612fd75750805b601f840160051c820191505b81811015612ff6575f8155600101612fe3565b5050505050565b815167ffffffffffffffff81111561301757613017612ca5565b61302b816130258454612f7a565b84612fb2565b602080601f83116001811461305e575f84156130475750858301515b5f19600386901b1c1916600185901b1785556130b5565b5f85815260208120601f198616915b8281101561308c5788860151825594840194600190910190840161306d565b50858210156130a957878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156109fd576109fd6130bd565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f9061311690830184612c29565b9695505050505050565b5f60208284031215613130575f80fd5b8151610b7a81612ba8565b707b226e616d65223a20224552524f52202360781b815281515f90613167816011850160208701612c07565b9190910160110192915050565b5f8251613185818460208701612c07565b7f222c226465736372697074696f6e223a224e6f20676f6f6420636f6d657320779201918252507f6974686f757420747269616c20616e64206572726f722e222c22696d616765226020820152611d1160f11b6040820152604201919050565b5f81546131f181612f7a565b60018281168015613209576001811461321e5761324a565b60ff198416875282151583028701945061324a565b855f526020805f205f5b858110156132415781548a820152908401908201613228565b50505082870194505b5050505092915050565b5f8351613265818460208801612c07565b6114ae818401856131e5565b5f8251613282818460208701612c07565b61227d60f01b920191825250600201919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c000000000081525f82516132cd81601b850160208701612c07565b91909101601b0192915050565b818103818111156109fd576109fd6130bd565b634e487b7160e01b5f52603260045260245ffd5b5f610b7a82846131e5565b5f8261332657634e487b7160e01b5f52601260045260245ffd5b500490565b80820281158282048414176109fd576109fd6130bd565b5f60018201613353576133536130bd565b5060010190565b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b818110156133aa5784516001600160a01b031683529383019391830191600101613385565b50506001600160a01b03969096166060850152505050608001529392505050565b634e487b7160e01b5f52603160045260245ffdfea2646970667358221220e7c62ba010b2833e47ba7796086e0705a766596647481f2fafd4265f7527e84f64736f6c63430008180033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef68747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f6572726f72636f6d70757465722f6572726f722f6d61696e2f6572726f722e676966

Deployed Bytecode

0x608060405234801561000f575f80fd5b50600436106103eb575f3560e01c80638da5cb5b1161020b578063bb7a39721161011f578063dd637699116100b4578063f28ca1dd11610084578063f28ca1dd14610962578063f2fde38b1461096a578063f780bc1a1461097d578063f887ea4014610990578063fe575a87146109ab575f80fd5b8063dd637699146108ed578063dfabc03314610900578063e985e9c514610913578063ed87344514610940575f80fd5b8063c87b56dd116100ef578063c87b56dd1461088a578063d505accf1461089d578063d96ca0b9146108b0578063dd62ed3e146108c3575f80fd5b8063bb7a39721461064e578063c40d24b21461084d578063c5ab3ba61461086f578063c6e672b914610877575f80fd5b8063a9d27847116101a0578063b1ab931711610170578063b1ab9317146107d2578063b3f9ea34146107f2578063b43761071461081a578063b88d4fde1461082d578063b9ccf21d14610840575f80fd5b8063a9d2784714610755578063a9e757231461075d578063aa4bde2814610784578063ad5c4648146107ab575f80fd5b8063a22cb465116101db578063a22cb465146106f6578063a364c8a514610709578063a8aa1b311461071b578063a9059cbb14610742575f80fd5b80638da5cb5b146106a357806395d89b41146106b4578063976a8435146106bc578063a0e38492146106e3575f80fd5b8063451f313a11610302578063702acfa8116102975780637c2f6125116102675780637c2f61251461064e5780637ecebe001461065657806384b7719a1461067557806389fb4c66146106885780638a696e5014610690575f80fd5b8063702acfa81461060c57806370a082311461061f578063715018a61461063e57806371908a0314610646575f80fd5b80635aed8cc3116102d25780635aed8cc3146105dd5780636352211e146105e557806365cf7c9b146105f85780636e8f624b14610601575f80fd5b8063451f313a146105a557806348e21833146105ae5780634d966072146105c15780634f02c420146105d4575f80fd5b806318160ddd11610383578063313ce56711610353578063313ce56714610535578063320d45341461056e578063338246e2146105815780633644e5151461058a57806342842e0e14610592575f80fd5b806318160ddd146104f357806318d217c3146104fc57806323b872dd1461050f578063254d742114610522575f80fd5b8063095ea7b3116103be578063095ea7b3146104a257806309674eb0146104b557806309f0ef65146104d65780630bd41293146104e9575f80fd5b806301ffc9a7146103ef57806302519da31461041757806306fdde031461044d578063081812fc14610462575b5f80fd5b6104026103fd366004612bbd565b6109cd565b60405190151581526020015b60405180910390f35b61043f610425366004612bee565b6001600160a01b03165f9081526006602052604090205490565b60405190815260200161040e565b610455610a03565b60405161040e9190612c54565b61048a610470366004612c66565b60086020525f90815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161040e565b6104026104b0366004612c7d565b610a8f565b5f546001600160801b03808216600160801b9092048116919091031661043f565b6104026104e4366004612bee565b610acc565b6104f1610afc565b005b61043f60045481565b6104f161050a366004612d2c565b610b2d565b61040261051d366004612d79565b610b45565b6104f1610530366004612dc1565b610b81565b61055c7f000000000000000000000000000000000000000000000000000000000000001281565b60405160ff909116815260200161040e565b6104f161057c366004612c66565b610c21565b61043f60125481565b61043f610c2e565b6104f16105a0366004612d79565b610c83565b61043f6107d081565b6104f16105bc366004612dda565b610ca2565b6104026105cf366004612c7d565b610cd4565b61043f60055481565b6104f1610d5f565b61048a6105f3366004612c66565b610d7b565b61043f60115481565b61043f600160ff1b81565b60135461048a906001600160a01b031681565b61043f61062d366004612bee565b60066020525f908152604090205481565b6104f1610de4565b61043f610df7565b61043f606481565b61043f610664366004612bee565b600d6020525f908152604090205481565b6104f1610683366004612bee565b610e2a565b60045461043f565b6104f161069e366004612dc1565b610e62565b600e546001600160a01b031661048a565b610455610e6c565b61043f7f0000000000000000000000000000000000000000000000000de0b6b3a764000081565b6104f16106f1366004612dda565b610e79565b6104f1610704366004612dda565b610eab565b60105461040290610100900460ff1681565b61048a7f000000000000000000000000d2acf6423bf19f920087329c87a9f4d86c1e061181565b610402610750366004612c7d565b610f3d565b61043f60b481565b61043f7f0000000000000000000000000000000000000000000000000de0b6b3a764000081565b61043f7f0000000000000000000000000000000000000000000000000de0b6b3a764000081565b61048a7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6107e56107e0366004612bee565b610f70565b60405161040e9190612e0b565b61043f610800366004612bee565b6001600160a01b03165f908152600b602052604090205490565b6104f1610828366004612dda565b610fd9565b6104f161083b366004612e4e565b61100b565b6010546104029060ff1681565b61040261085b366004612bee565b60156020525f908152604090205460ff1681565b60055461043f565b6104f1610885366004612dda565b6110f6565b610455610898366004612c66565b611108565b6104f16108ab366004612ec5565b6111be565b6104026108be366004612d79565b6113fb565b61043f6108d1366004612f32565b600760209081525f928352604080842090915290825290205481565b6104f16108fb366004612d79565b6114b7565b6104f161090e366004612c7d565b611615565b610402610921366004612f32565b600960209081525f928352604080842090915290825290205460ff1681565b61040261094e366004612bee565b60166020525f908152604090205460ff1681565b6104556116d7565b6104f1610978366004612bee565b6116e4565b6107e561098b366004612f5a565b611723565b61048a737a250d5630b4cf539739df2c5dacb4c659f2488d81565b6104026109b9366004612bee565b60146020525f908152604090205460ff1681565b5f6001600160e01b0319821663caf91ff560e01b14806109fd57506001600160e01b031982166301ffc9a760e01b145b92915050565b60028054610a1090612f7a565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3c90612f7a565b8015610a875780601f10610a5e57610100808354040283529160200191610a87565b820191905f5260205f20905b815481529060010190602001808311610a6a57829003601f168201915b505050505081565b5f610a99826117be565b15610aad57610aa88383611615565b610abe565b610ab78383610cd4565b90506109fd565b50600192915050565b905090565b5f6001600160a01b03821615806109fd5750506001600160a01b03165f908152600c602052604090205460ff1690565b610b046117d5565b601054610100900460ff1615610b18575f80fd5b6010805461ff00191661010017905542601155565b610b356117d5565b600f610b418282612ffd565b5050565b5f610b4f826117be565b15610b6457610b5f8484846114b7565b610b76565b610b6f8484846113fb565b9050610b7a565b5060015b9392505050565b6013546001600160a01b03163314610b97575f80fd5b8015610bf9576013546040515f916001600160a01b03169047908381818185875af1925050503d805f8114610be7576040519150601f19603f3d011682016040523d82523d5f602084013e610bec565b606091505b5050905080610b41575f80fd5b601354305f90815260066020526040902054610b41916001600160a01b031690610f3d565b50565b610c296117d5565b601255565b5f7f00000000000000000000000000000000000000000000000000000000000000014614610c5e57610ac7611802565b507f56384f2105a02c76d8da98f417978b1a5e9baf39ae9a2c17bf7ba98bf87ca2a890565b610c9d83838360405180602001604052805f81525061100b565b505050565b610caa6117d5565b6001600160a01b03919091165f908152601660205260409020805460ff1916911515919091179055565b5f6001600160a01b038316610cfc57604051635461585f60e01b815260040160405180910390fd5b335f8181526007602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350600192915050565b610d676117d5565b6010805460ff19811660ff90911615179055565b5f818152600a60205260409020546001600160a01b0316610d9b826117be565b610db8576040516307ed98ed60e31b815260040160405180910390fd5b6001600160a01b038116610ddf5760405163c5723b5160e01b815260040160405180910390fd5b919050565b610dec6117d5565b610df55f61189b565b565b5f6011545f03610e0857506107d090565b6064601154610e1791906130d1565b4211610e2457506107d090565b50606490565b6013546001600160a01b03163314610e40575f80fd5b601380546001600160a01b0319166001600160a01b0392909216919091179055565b610c1e33826118ec565b60038054610a1090612f7a565b610e816117d5565b6001600160a01b03919091165f908152601460205260409020805460ff1916911515919091179055565b6001600160a01b038216610ed25760405163ccea9e6f60e01b815260040160405180910390fd5b335f8181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b5f6001600160a01b038316610f6557604051634e46966960e11b815260040160405180910390fd5b610b7a33848461195a565b6001600160a01b0381165f908152600b6020908152604091829020805483518184028101840190945280845260609392830182828015610fcd57602002820191905f5260205f20905b815481526020019060010190808311610fb9575b50505050509050919050565b610fe16117d5565b6001600160a01b03919091165f908152601560205260409020805460ff1916911515919091179055565b611014826117be565b611031576040516307ed98ed60e31b815260040160405180910390fd5b61103c848484610b45565b506001600160a01b0383163b158015906110d25750604051630a85bd0160e11b808252906001600160a01b0385169063150b7a02906110859033908990889088906004016130e4565b6020604051808303815f875af11580156110a1573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110c59190613120565b6001600160e01b03191614155b156110f057604051633da6393160e01b815260040160405180910390fd5b50505050565b6110fe6117d5565b610b4182826118ec565b60605f61111483611cc0565b604051602001611124919061313b565b60408051601f198184030181529082905261114191602001613174565b60408051601f198184030181529082905261116191600f90602001613254565b60405160208183030381529060405290505f816040516020016111849190613271565b6040516020818303038152906040529050806040516020016111a69190613296565b60405160208183030381529060405292505050919050565b428410156111df576040516305787bdf60e01b815260040160405180910390fd5b6111e8856117be565b15611206576040516303e7c1bd60e31b815260040160405180910390fd5b6001600160a01b03861661122d57604051635461585f60e01b815260040160405180910390fd5b5f6001611238610c2e565b6001600160a01b038a81165f818152600d602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938d166060840152608083018c905260a083019390935260c08083018b90528151808403909101815260e08301909152805192019190912061190160f01b6101008301526101028201929092526101228101919091526101420160408051601f1981840301815282825280516020918201205f84529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015611340573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b03811615806113755750876001600160a01b0316816001600160a01b031614155b1561139357604051632057875960e21b815260040160405180910390fd5b6001600160a01b039081165f9081526007602090815260408083208a8516808552908352928190208990555188815291928a16917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050565b5f6001600160a01b03841661142357604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b03831661144a57604051634e46966960e11b815260040160405180910390fd5b6001600160a01b0384165f9081526007602090815260408083203384529091529020545f1981146114a35761147f83826132da565b6001600160a01b0386165f9081526007602090815260408083203384529091529020555b6114ae85858561195a565b95945050505050565b6001600160a01b0383166114de57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b03821661150557604051634e46966960e11b815260040160405180910390fd5b5f818152600a60205260409020546001600160a01b0384811691161461153d576040516282b42960e81b815260040160405180910390fd5b336001600160a01b0384161480159061157957506001600160a01b0383165f90815260096020908152604080832033845290915290205460ff16155b801561159b57505f818152600860205260409020546001600160a01b03163314155b156115b8576040516282b42960e81b815260040160405180910390fd5b6115c182610acc565b156115df57604051635ce7539760e01b815260040160405180910390fd5b61160a83837f0000000000000000000000000000000000000000000000000de0b6b3a7640000611d50565b610c9d838383611f17565b5f818152600a60205260409020546001600160a01b031633811480159061165f57506001600160a01b0381165f90815260096020908152604080832033845290915290205460ff16155b1561167c576040516282b42960e81b815260040160405180910390fd5b5f8281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600f8054610a1090612f7a565b6116ec6117d5565b6001600160a01b03811661171a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610c1e8161189b565b60605f8267ffffffffffffffff81111561173f5761173f612ca5565b604051908082528060200260200182016040528015611768578160200160208202803683370190505b509050835b61177784866130d1565b8110156117b6576117885f82611fd0565b8261179387846132da565b815181106117a3576117a36132ed565b602090810291909101015260010161176d565b509392505050565b5f600160ff1b821180156109fd5750505f19141590565b600e546001600160a01b03163314610df55760405163118cdaa760e01b8152336004820152602401611711565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60026040516118339190613301565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b600e80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0382166119135760405163a41e3d3f60e01b815260040160405180910390fd5b80156119275761192282612039565b611930565b6119308261206c565b6001600160a01b03919091165f908152600c60205260409020805460ff1916911515919091179055565b6001600160a01b038381165f9081526006602052604080822054928516825281205490919061198a868686611d50565b5f61199487610acc565b90505f6119a087610acc565b90508180156119ac5750805b611cb2578115611a52575f6119e17f0000000000000000000000000000000000000000000000000de0b6b3a76400008561330c565b6001600160a01b0389165f90815260066020526040902054611a24907f0000000000000000000000000000000000000000000000000de0b6b3a76400009061330c565b611a2e91906132da565b90505f5b81811015611a4b57611a43896120f6565b600101611a32565b5050611cb2565b8015611aec576001600160a01b0388165f90815260066020526040812054611a9b907f0000000000000000000000000000000000000000000000000de0b6b3a76400009061330c565b611ac57f0000000000000000000000000000000000000000000000000de0b6b3a76400008761330c565b611acf91906132da565b90505f5b81811015611a4b57611ae48a6121d3565b600101611ad3565b5f611b177f0000000000000000000000000000000000000000000000000de0b6b3a76400008861330c565b90505f5b81811015611b95576001600160a01b038a165f908152600b6020526040812054611b47906001906132da565b6001600160a01b038c165f908152600b602052604081208054929350909183908110611b7557611b756132ed565b905f5260205f2001549050611b8b8c8c83611f17565b5050600101611b1b565b50807f0000000000000000000000000000000000000000000000000de0b6b3a7640000611bd68b6001600160a01b03165f9081526006602052604090205490565b611be0919061330c565b611c0a7f0000000000000000000000000000000000000000000000000de0b6b3a76400008861330c565b611c1491906132da565b1115611c2357611c23896121d3565b80611c4e7f0000000000000000000000000000000000000000000000000de0b6b3a76400008661330c565b7f0000000000000000000000000000000000000000000000000de0b6b3a7640000611c8d8b6001600160a01b03165f9081526006602052604090205490565b611c97919061330c565b611ca191906132da565b1115611cb057611cb0886120f6565b505b506001979650505050505050565b60605f611ccc8361224f565b60010190505f8167ffffffffffffffff811115611ceb57611ceb612ca5565b6040519080825280601f01601f191660200182016040528015611d15576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611d1f57509392505050565b6001600160a01b0383165f9081526015602052604090205460ff1680611d8d57506001600160a01b0382165f9081526015602052604090205460ff165b80611da0575060105462010000900460ff165b15611db057610c9d838383612326565b601054610100900460ff16611dfe5760405162461bcd60e51b81526020600482015260146024820152735472616e7366657273206e6f7420656e61626c6560601b6044820152606401611711565b611e098383836123df565b5f7f000000000000000000000000d2acf6423bf19f920087329c87a9f4d86c1e06116001600160a01b0316846001600160a01b03161480611e7b57507f000000000000000000000000d2acf6423bf19f920087329c87a9f4d86c1e06116001600160a01b0316836001600160a01b0316145b15611eb257612710611e8b610df7565b611e95908461332b565b611e9f919061330c565b90508015611eb257611eb2843083612326565b60105460ff168015611ef657507f000000000000000000000000d2acf6423bf19f920087329c87a9f4d86c1e06116001600160a01b0316846001600160a01b031614155b15611f0357611f0361272d565b6110f08484611f1284866132da565b612326565b6001600160a01b0383165f9081526015602052604090205460ff1680611f5457506001600160a01b0382165f9081526015602052604090205460ff165b80611f67575060105462010000900460ff165b15611f7757610c9d838383612894565b601054610100900460ff16611fc55760405162461bcd60e51b81526020600482015260146024820152735472616e7366657273206e6f7420656e61626c6560601b6044820152606401611711565b610c9d838383612894565b5f611ff383546001600160801b03808216600160801b9092048116919091031690565b82106120125760405163580821e760e01b815260040160405180910390fd5b5081546001600160801b039081168201165f90815260018301602052604090205492915050565b6001600160a01b0381165f908152600b6020526040812054905b81811015610c9d57612064836121d3565b600101612053565b6001600160a01b0381165f908152600660205260408120546120af907f0000000000000000000000000000000000000000000000000de0b6b3a76400009061330c565b90505f6120d0836001600160a01b03165f908152600b602052604090205490565b90505f5b6120de82846132da565b8110156110f0576120ee846120f6565b6001016120d4565b6001600160a01b03811661211d57604051634e46966960e11b815260040160405180910390fd5b5f80546001600160801b03808216600160801b9092041614612149576121425f612a60565b9050612192565b60055f815461215790613342565b9091555060055460010161217e5760405163303b682f60e01b815260040160405180910390fd5b60055461218f90600160ff1b6130d1565b90505b5f818152600a60205260409020546001600160a01b031680156121c85760405163119b4fd360e11b815260040160405180910390fd5b610c9d818484611f17565b6001600160a01b0381166121fa57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0381165f908152600b60205260408120805461221f906001906132da565b8154811061222f5761222f6132ed565b905f5260205f2001549050612245825f83611f17565b610b415f82612acd565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061228d5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106122b9576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106122d757662386f26fc10000830492506010015b6305f5e10083106122ef576305f5e100830492506008015b612710831061230357612710830492506004015b60648310612315576064830492506002015b600a83106109fd5760010192915050565b6001600160a01b038316612350578060045f82825461234591906130d1565b9091555061237d9050565b6001600160a01b0383165f90815260066020526040812080548392906123779084906132da565b90915550505b6001600160a01b038083165f81815260066020526040908190208054850190555190918516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906123d29085815260200190565b60405180910390a3505050565b6001600160a01b0383165f9081526014602052604090205460ff1615801561241f57506001600160a01b0382165f9081526014602052604090205460ff16155b8061243757506013546001600160a01b038381169116145b6124715760405162461bcd60e51b815260206004820152600b60248201526a109b1858dadb1a5cdd195960aa1b6044820152606401611711565b60115415801590612490575060b460115461248c91906130d1565b4210155b1561249a57505050565b7f000000000000000000000000d2acf6423bf19f920087329c87a9f4d86c1e06116001600160a01b0316836001600160a01b03161480156124f357506001600160a01b0382165f9081526016602052604090205460ff16155b156125fb576001600160a01b0382165f908152600660205260409020547f0000000000000000000000000000000000000000000000000de0b6b3a76400009061253d9083906130d1565b111561258b5760405162461bcd60e51b815260206004820152601960248201527f4d61782077616c6c657420616d6f756e742072656163686564000000000000006044820152606401611711565b7f0000000000000000000000000000000000000000000000000de0b6b3a7640000811115610c9d5760405162461bcd60e51b815260206004820152601b60248201527f4d6178207472616e7366657220616d6f756e74207265616368656400000000006044820152606401611711565b7f000000000000000000000000d2acf6423bf19f920087329c87a9f4d86c1e06116001600160a01b0316826001600160a01b031614801561265457506001600160a01b0383165f9081526016602052604090205460ff16155b156126c9577f0000000000000000000000000000000000000000000000000de0b6b3a7640000811115610c9d5760405162461bcd60e51b815260206004820152601b60248201527f4d6178207472616e7366657220616d6f756e74207265616368656400000000006044820152606401611711565b6001600160a01b0382165f9081526016602052604090205460ff16610c9d576001600160a01b0382165f908152600660205260409020547f0000000000000000000000000000000000000000000000000de0b6b3a76400009061253d9083906130d1565b305f908152600660205260409020546012548110156127495750565b6010805462ff00001916620100001790556040805160028082526060820183525f9260208301908036833701905050905030815f8151811061278d5761278d6132ed565b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816001815181106127e1576127e16132ed565b6001600160a01b03928316602091820292909201810191909152305f908152600782526040808220737a250d5630b4cf539739df2c5dacb4c659f2488d8084529352808220869055601354905163791ac94760e01b8152929363791ac9479361285793889390928892911690429060040161335a565b5f604051808303815f87803b15801561286e575f80fd5b505af1158015612880573d5f803e3d5ffd5b50506010805462ff00001916905550505050565b6001600160a01b03831615612995575f81815260086020908152604080832080546001600160a01b03191690556001600160a01b0386168352600b909152812080546128e2906001906132da565b815481106128f2576128f26132ed565b905f5260205f200154905081811461295a575f828152600a602052604081205460a01c6001600160a01b0386165f908152600b602052604090208054919250839183908110612943576129436132ed565b5f918252602090912001556129588282612b3e565b505b6001600160a01b0384165f908152600b60205260409020805480612980576129806133cb565b600190038181905f5260205f20015f90559055505b6001600160a01b03821615612a0b575f818152600a6020908152604080832080546001600160a01b0319166001600160a01b038716908101909155808452600b83529083208054600181810183558286529385200185905592529054612a06918391612a0191906132da565b612b3e565b612a1a565b5f818152600a60205260408120555b80826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b80545f906001600160801b03600160801b8204811691168103612a96576040516375e52f4f60e01b815260040160405180910390fd5b5f19016001600160801b039081165f818152600185016020526040812080549190558454909216600160801b909102179092555090565b81546001600160801b038082165f190191600160801b9004811690821603612b0857604051638acb5f2760e01b815260040160405180910390fd5b6001600160801b03165f81815260018401602052604090209190915581546fffffffffffffffffffffffffffffffff1916179055565b5f828152600a60205260409020546bffffffffffffffffffffffff821115612b7957604051633f2cd0e360e21b815260040160405180910390fd5b5f928352600a60205260409092206001600160a01b039290921660a09190911b6001600160a01b031916019055565b6001600160e01b031981168114610c1e575f80fd5b5f60208284031215612bcd575f80fd5b8135610b7a81612ba8565b80356001600160a01b0381168114610ddf575f80fd5b5f60208284031215612bfe575f80fd5b610b7a82612bd8565b5f5b83811015612c21578181015183820152602001612c09565b50505f910152565b5f8151808452612c40816020860160208601612c07565b601f01601f19169290920160200192915050565b602081525f610b7a6020830184612c29565b5f60208284031215612c76575f80fd5b5035919050565b5f8060408385031215612c8e575f80fd5b612c9783612bd8565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b5f67ffffffffffffffff80841115612cd357612cd3612ca5565b604051601f8501601f19908116603f01168101908282118183101715612cfb57612cfb612ca5565b81604052809350858152868686011115612d13575f80fd5b858560208301375f602087830101525050509392505050565b5f60208284031215612d3c575f80fd5b813567ffffffffffffffff811115612d52575f80fd5b8201601f81018413612d62575f80fd5b612d7184823560208401612cb9565b949350505050565b5f805f60608486031215612d8b575f80fd5b612d9484612bd8565b9250612da260208501612bd8565b9150604084013590509250925092565b80358015158114610ddf575f80fd5b5f60208284031215612dd1575f80fd5b610b7a82612db2565b5f8060408385031215612deb575f80fd5b612df483612bd8565b9150612e0260208401612db2565b90509250929050565b602080825282518282018190525f9190848201906040850190845b81811015612e4257835183529284019291840191600101612e26565b50909695505050505050565b5f805f8060808587031215612e61575f80fd5b612e6a85612bd8565b9350612e7860208601612bd8565b925060408501359150606085013567ffffffffffffffff811115612e9a575f80fd5b8501601f81018713612eaa575f80fd5b612eb987823560208401612cb9565b91505092959194509250565b5f805f805f805f60e0888a031215612edb575f80fd5b612ee488612bd8565b9650612ef260208901612bd8565b95506040880135945060608801359350608088013560ff81168114612f15575f80fd5b9699959850939692959460a0840135945060c09093013592915050565b5f8060408385031215612f43575f80fd5b612f4c83612bd8565b9150612e0260208401612bd8565b5f8060408385031215612f6b575f80fd5b50508035926020909101359150565b600181811c90821680612f8e57607f821691505b602082108103612fac57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610c9d57805f5260205f20601f840160051c81016020851015612fd75750805b601f840160051c820191505b81811015612ff6575f8155600101612fe3565b5050505050565b815167ffffffffffffffff81111561301757613017612ca5565b61302b816130258454612f7a565b84612fb2565b602080601f83116001811461305e575f84156130475750858301515b5f19600386901b1c1916600185901b1785556130b5565b5f85815260208120601f198616915b8281101561308c5788860151825594840194600190910190840161306d565b50858210156130a957878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156109fd576109fd6130bd565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f9061311690830184612c29565b9695505050505050565b5f60208284031215613130575f80fd5b8151610b7a81612ba8565b707b226e616d65223a20224552524f52202360781b815281515f90613167816011850160208701612c07565b9190910160110192915050565b5f8251613185818460208701612c07565b7f222c226465736372697074696f6e223a224e6f20676f6f6420636f6d657320779201918252507f6974686f757420747269616c20616e64206572726f722e222c22696d616765226020820152611d1160f11b6040820152604201919050565b5f81546131f181612f7a565b60018281168015613209576001811461321e5761324a565b60ff198416875282151583028701945061324a565b855f526020805f205f5b858110156132415781548a820152908401908201613228565b50505082870194505b5050505092915050565b5f8351613265818460208801612c07565b6114ae818401856131e5565b5f8251613282818460208701612c07565b61227d60f01b920191825250600201919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c000000000081525f82516132cd81601b850160208701612c07565b91909101601b0192915050565b818103818111156109fd576109fd6130bd565b634e487b7160e01b5f52603260045260245ffd5b5f610b7a82846131e5565b5f8261332657634e487b7160e01b5f52601260045260245ffd5b500490565b80820281158282048414176109fd576109fd6130bd565b5f60018201613353576133536130bd565b5060010190565b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b818110156133aa5784516001600160a01b031683529383019391830191600101613385565b50506001600160a01b03969096166060850152505050608001529392505050565b634e487b7160e01b5f52603160045260245ffdfea2646970667358221220e7c62ba010b2833e47ba7796086e0705a766596647481f2fafd4265f7527e84f64736f6c63430008180033

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

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