ETH Price: $2,815.78 (+7.49%)
 

Overview

TokenID

141

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

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:
LoongCity

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 5 : LoongCity.sol
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

import './erc404/ERC404.sol';
import './erc404/Strings.sol';

contract LoongCity is ERC404 {
    string public dataURI;
    string public baseTokenURI;
    uint epoch = 0; // 0-not start 1-start 2-end

    mapping(address => uint) userHasMinted;
    mapping (address => bool) public whitelists;

    mapping(uint => address) public mintIndex;

    uint public totalMinted;

    constructor() ERC404('LoongCity', 'LoongCity', 18, 210000000, msg.sender) {
        balanceOf[address(this)] = 210000000 * 10 ** 18;
        whitelist[msg.sender] = true;
        whitelist[address(this)] = true;
    }

    function withdraw() public onlyOwner {
        uint balance = balanceOf[address(this)];
        balanceOf[address(this)] = 0;
        balanceOf[owner] += balance;
    }

    function withdrawETH() public onlyOwner {
        payable(owner).transfer(address(this).balance);
    }

    function setEpoch(uint _epoch) public onlyOwner {
        epoch = _epoch;
    }

    function setWhitelist(address[] calldata users) public onlyOwner {
        for(uint i=0;i<users.length;){

            whitelists[users[i]] = true;
            unchecked{
                i++;
            }
        }
    }

    function mint(uint256 _amount) public payable {
        require(epoch != 0, 'Minting is not start');
        require(
            balanceOf[address(this)] >= _amount * _getUnit(),
            'Not enough balance of pool'
        );
        require((totalMinted + _amount) < 21000, 'Not enough NFTs');

        if (epoch == 1) {
            require(whitelists[msg.sender], 'You are not in whitelist');
            require(_amount == 1, 'Minting amount must be 1');
            require(userHasMinted[msg.sender] == 0, 'You have already minted');
            _transfer(address(this),msg.sender, _getUnit());
            userHasMinted[msg.sender] += 1;
            _updateMintIndex(_amount);
            totalMinted += 1;
        }

        if (epoch == 2) {
            require(
                _amount >= 1 && _amount <= 20,
                'Minting amount must be between 1 and 20'
            );
            require(
                (userHasMinted[msg.sender] + _amount) <= 20,
                'You have already minted'
            );
            require((_amount * 0.01688 ether) == msg.value, 'Incorrect ETH value');
            _transfer(address(this),msg.sender, _getUnit() * _amount);
            userHasMinted[msg.sender] += _amount;
            _updateMintIndex(_amount);
            totalMinted += _amount;
        }
    }

    function _updateMintIndex(uint _amount) internal {
         for (uint i = totalMinted; i < (totalMinted + _amount); ) {
            mintIndex[i] = msg.sender;
            unchecked {
                i++;
            }
        }
    }

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

    function setTokenURI(string memory _tokenURI) public onlyOwner {
        baseTokenURI = _tokenURI;
    }

    function setNameSymbol(
        string memory _name,
        string memory _symbol
    ) public onlyOwner {
        _setNameSymbol(_name, _symbol);
    }

    function tokenURI(uint256 id) public view override returns (string memory) {
        if (bytes(baseTokenURI).length > 0) {
            return string.concat(baseTokenURI, Strings.toString(id));
        } else {
            return 'https://loongcity.4everland.store/box.jpg';
        }
    }
}

File 2 of 5 : ERC404.sol
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

abstract contract Ownable {
    event OwnershipTransferred(address indexed user, address indexed newOwner);

    error Unauthorized();
    error InvalidOwner();

    address public owner;

    modifier onlyOwner() virtual {
        if (msg.sender != owner) revert Unauthorized();

        _;
    }

    constructor(address _owner) {
        if (_owner == address(0)) revert InvalidOwner();

        owner = _owner;

        emit OwnershipTransferred(address(0), _owner);
    }

    function transferOwnership(address _owner) public virtual onlyOwner {
        if (_owner == address(0)) revert InvalidOwner();

        owner = _owner;

        emit OwnershipTransferred(msg.sender, _owner);
    }

    function revokeOwnership() public virtual onlyOwner {
        owner = address(0);

        emit OwnershipTransferred(msg.sender, address(0));
    }
}

abstract contract ERC721Receiver {
    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC721Receiver.onERC721Received.selector;
    }
}

/// @notice ERC404
///         A gas-efficient, mixed ERC20 / ERC721 implementation
///         with native liquidity and fractionalization.
///
///         This is an experimental standard designed to integrate
///         with pre-existing ERC20 / ERC721 support as smoothly as
///         possible.
///
/// @dev    In order to support full functionality of ERC20 and ERC721
///         supply assumptions are made that slightly constraint usage.
///         Ensure decimals are sufficiently large (standard 18 recommended)
///         as ids are effectively encoded in the lowest range of amounts.
///
///         NFTs are spent on ERC20 functions in a FILO queue, this is by
///         design.
///
abstract contract ERC404 is Ownable {
    // Events
    event ERC20Transfer(
        address indexed from,
        address indexed to,
        uint256 amount
    );
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 amount
    );
    event Transfer(
        address indexed from,
        address indexed to,
        uint256 indexed id
    );
    event ERC721Approval(
        address indexed owner,
        address indexed spender,
        uint256 indexed id
    );
    event ApprovalForAll(
        address indexed owner,
        address indexed operator,
        bool approved
    );

    // Errors
    error NotFound();
    error AlreadyExists();
    error InvalidRecipient();
    error InvalidSender();
    error UnsafeRecipient();

    // Metadata
    /// @dev Token name
    string public name;

    /// @dev Token symbol
    string public symbol;

    /// @dev Decimals for fractional representation
    uint8 public immutable decimals;

    /// @dev Total supply in fractionalized representation
    uint256 public immutable totalSupply;

    /// @dev Current mint counter, monotonically increasing to ensure accurate ownership
    uint256 public minted;

    // Mappings
    /// @dev Balance of user in fractional representation
    mapping(address => uint256) public balanceOf;

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

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

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

    /// @dev Owner of id in native representation
    mapping(uint256 => address) internal _ownerOf;

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

    /// @dev Tracks indices for the _owned mapping
    mapping(uint256 => uint256) internal _ownedIndex;

    /// @dev Addresses whitelisted from minting / burning for gas savings (pairs, routers, etc)
    mapping(address => bool) public whitelist;

    // Constructor
    constructor(
        string memory _name,
        string memory _symbol,
        uint8 _decimals,
        uint256 _totalNativeSupply,
        address _owner
    ) Ownable(_owner) {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;
        totalSupply = _totalNativeSupply * (10 ** decimals);
    }

    /// @notice Initialization function to set pairs / etc
    ///         saving gas by avoiding mint / burn on unnecessary targets
    function setWhitelist(address target, bool state) public onlyOwner {
        whitelist[target] = state;
    }

    /// @notice Function to find owner of a given native token
    function ownerOf(uint256 id) public view virtual returns (address owner) {
        owner = _ownerOf[id];

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

    /// @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 id / native if amount less than or equal to current max id
    function approve(
        address spender,
        uint256 amountOrId
    ) public virtual returns (bool) {
        if (amountOrId <= minted && amountOrId > 0) {
            address owner = _ownerOf[amountOrId];

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

            getApproved[amountOrId] = spender;

            emit Approval(owner, spender, amountOrId);
        } else {
            allowance[msg.sender][spender] = amountOrId;

            emit Approval(msg.sender, spender, amountOrId);
        }

        return true;
    }

    /// @notice Function native approvals
    function setApprovalForAll(address operator, bool approved) public virtual {
        isApprovedForAll[msg.sender][operator] = approved;

        emit ApprovalForAll(msg.sender, operator, approved);
    }

    /// @notice Function for mixed transfers
    /// @dev This function assumes id / native if amount less than or equal to current max id
    function transferFrom(
        address from,
        address to,
        uint256 amountOrId
    ) public virtual {
        if (amountOrId <= minted) {
            if (from != _ownerOf[amountOrId]) {
                revert InvalidSender();
            }

            if (to == address(0)) {
                revert InvalidRecipient();
            }

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

            balanceOf[from] -= _getUnit();

            unchecked {
                balanceOf[to] += _getUnit();
            }

            _ownerOf[amountOrId] = to;
            delete getApproved[amountOrId];

            // update _owned for sender
            uint256 updatedId = _owned[from][_owned[from].length - 1];
            _owned[from][_ownedIndex[amountOrId]] = updatedId;
            // pop
            _owned[from].pop();
            // update index for the moved id
            _ownedIndex[updatedId] = _ownedIndex[amountOrId];
            // push token to to owned
            _owned[to].push(amountOrId);
            // update index for to owned
            _ownedIndex[amountOrId] = _owned[to].length - 1;

            emit Transfer(from, to, amountOrId);
            emit ERC20Transfer(from, to, _getUnit());
        } else {
            uint256 allowed = allowance[from][msg.sender];

            if (allowed != type(uint256).max)
                allowance[from][msg.sender] = allowed - amountOrId;

            _transfer(from, to, amountOrId);
        }
    }

    /// @notice Function for fractional transfers
    function transfer(
        address to,
        uint256 amount
    ) public virtual returns (bool) {
        return _transfer(msg.sender, to, amount);
    }

    /// @notice Function for native transfers with contract support
    function safeTransferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        transferFrom(from, to, id);

        if (
            to.code.length != 0 &&
            ERC721Receiver(to).onERC721Received(msg.sender, from, id, '') !=
            ERC721Receiver.onERC721Received.selector
        ) {
            revert UnsafeRecipient();
        }
    }

    /// @notice Function for native transfers with contract support and callback data
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes calldata data
    ) public virtual {
        transferFrom(from, to, id);

        if (
            to.code.length != 0 &&
            ERC721Receiver(to).onERC721Received(msg.sender, from, id, data) !=
            ERC721Receiver.onERC721Received.selector
        ) {
            revert UnsafeRecipient();
        }
    }

    /// @notice Internal function for fractional transfers
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal returns (bool) {
        uint256 unit = _getUnit();
        uint256 balanceBeforeSender = balanceOf[from];
        uint256 balanceBeforeReceiver = balanceOf[to];

        balanceOf[from] -= amount;

        unchecked {
            balanceOf[to] += amount;
        }

        // Skip burn for certain addresses to save gas
        if (!whitelist[from]) {
            uint256 tokens_to_burn = (balanceBeforeSender / unit) -
                (balanceOf[from] / unit);
            for (uint256 i = 0; i < tokens_to_burn; i++) {
                _burn(from);
            }
        }

        // Skip minting for certain addresses to save gas
        if (!whitelist[to]) {
            uint256 tokens_to_mint = (balanceOf[to] / unit) -
                (balanceBeforeReceiver / unit);
            for (uint256 i = 0; i < tokens_to_mint; i++) {
                _mint(to);
            }
        }

        emit ERC20Transfer(from, to, amount);
        return true;
    }

    // Internal utility logic
    function _getUnit() internal view returns (uint256) {
        return  (10 ** decimals) * 9000;
    }

    function _mint(address to) internal virtual {
        if (to == address(0)) {
            revert InvalidRecipient();
        }

        unchecked {
            minted++;
        }

        uint256 id = minted;

        if (_ownerOf[id] != address(0)) {
            revert AlreadyExists();
        }

        _ownerOf[id] = to;
        _owned[to].push(id);
        _ownedIndex[id] = _owned[to].length - 1;

        emit Transfer(address(0), to, id);
    }

    function _burn(address from) internal virtual {
        if (from == address(0)) {
            revert InvalidSender();
        }

        uint256 id = _owned[from][_owned[from].length - 1];
        _owned[from].pop();
        delete _ownedIndex[id];
        delete _ownerOf[id];
        delete getApproved[id];

        emit Transfer(from, address(0), id);
    }

    function _setNameSymbol(
        string memory _name,
        string memory _symbol
    ) internal {
        name = _name;
        symbol = _symbol;
    }
}

File 3 of 5 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @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 4 of 5 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

/**
 * @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 5 of 5 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)

pragma solidity ^0.8.20;

import {Math} from "./Math.sol";
import {SignedMath} from "./SignedMath.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));
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyExists","type":"error"},{"inputs":[],"name":"InvalidOwner","type":"error"},{"inputs":[],"name":"InvalidRecipient","type":"error"},{"inputs":[],"name":"InvalidSender","type":"error"},{"inputs":[],"name":"NotFound","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":"amount","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20Transfer","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":"ERC721Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","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":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"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":"amountOrId","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintIndex","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[],"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":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"revokeOwnership","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"_epoch","type":"uint256"}],"name":"setEpoch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"name":"setNameSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bool","name":"state","type":"bool"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"}],"name":"setWhitelist","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":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amountOrId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040526000600e553480156200001657600080fd5b506040805180820182526009808252684c6f6f6e674369747960b81b6020808401829052845180860190955291845290830152906012630c84588033808062000072576040516349e27cff60e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b03831690811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001620000c98682620001f8565b506002620000d88582620001f8565b5060ff83166080819052620000ef90600a620003d9565b620000fb9083620003f1565b60a05250503060008181526004602090815260408083206aadb53acfa41aee120000009055338352600b9091528082208054600160ff19918216811790925593835291208054909216179055506200040b915050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200017c57607f821691505b6020821081036200019d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001f3576000816000526020600020601f850160051c81016020861015620001ce5750805b601f850160051c820191505b81811015620001ef57828155600101620001da565b5050505b505050565b81516001600160401b0381111562000214576200021462000151565b6200022c8162000225845462000167565b84620001a3565b602080601f8311600181146200026457600084156200024b5750858301515b600019600386901b1c1916600185901b178555620001ef565b600085815260208120601f198616915b82811015620002955788860151825594840194600190910190840162000274565b5085821015620002b45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b808511156200031b578160001904821115620002ff57620002ff620002c4565b808516156200030d57918102915b93841c9390800290620002df565b509250929050565b6000826200033457506001620003d3565b816200034357506000620003d3565b81600181146200035c5760028114620003675762000387565b6001915050620003d3565b60ff8411156200037b576200037b620002c4565b50506001821b620003d3565b5060208310610133831016604e8410600b8410161715620003ac575081810a620003d3565b620003b88383620002da565b8060001904821115620003cf57620003cf620002c4565b0290505b92915050565b6000620003ea60ff84168362000323565b9392505050565b8082028115828204841417620003d357620003d3620002c4565b60805160a0516124db6200043860003960006102e60152600081816103ad01526116f301526124db6000f3fe6080604052600436106102045760003560e01c80638da5cb5b11610118578063c87b56dd116100a0578063e0df5b6f1161006f578063e0df5b6f1461065f578063e985e9c51461067f578063f28ca1dd146106ba578063f2fde38b146106cf578063f4217648146106ef57600080fd5b8063c87b56dd146105dd578063d547cfb7146105fd578063dd62ed3e14610612578063e086e5ec1461064a57600080fd5b8063a22cb465116100e7578063a22cb46514610531578063a2309ff814610551578063a9059cbb14610567578063b0b50ed514610587578063b88d4fde146105bd57600080fd5b80638da5cb5b146104b957806395d89b41146104d95780639b19251a146104ee578063a0712d681461051e57600080fd5b80632b9689581161019b5780634f02c4201161016a5780634f02c42014610416578063504334c21461042c57806353d6fd591461044c5780636352211e1461046c57806370a082311461048c57600080fd5b80632b96895814610386578063313ce5671461039b5780633ccfd60b146103e157806342842e0e146103f657600080fd5b806318160ddd116101d757806318160ddd146102d457806318d217c3146103165780631e7be2101461033657806323b872dd1461036657600080fd5b806306fdde0314610209578063081812fc14610234578063095ea7b3146102825780630ceb2cef146102b2575b600080fd5b34801561021557600080fd5b5061021e61070f565b60405161022b9190611cf2565b60405180910390f35b34801561024057600080fd5b5061026a61024f366004611d25565b6006602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161022b565b34801561028e57600080fd5b506102a261029d366004611d55565b61079d565b604051901515815260200161022b565b3480156102be57600080fd5b506102d26102cd366004611d25565b6108ee565b005b3480156102e057600080fd5b506103087f000000000000000000000000000000000000000000000000000000000000000081565b60405190815260200161022b565b34801561032257600080fd5b506102d2610331366004611e22565b61091d565b34801561034257600080fd5b506102a2610351366004611e5f565b60106020526000908152604090205460ff1681565b34801561037257600080fd5b506102d2610381366004611e7a565b610957565b34801561039257600080fd5b506102d2610ce0565b3480156103a757600080fd5b506103cf7f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff909116815260200161022b565b3480156103ed57600080fd5b506102d2610d46565b34801561040257600080fd5b506102d2610411366004611e7a565b610daf565b34801561042257600080fd5b5061030860035481565b34801561043857600080fd5b506102d2610447366004611eb6565b610e84565b34801561045857600080fd5b506102d2610467366004611f1a565b610eb8565b34801561047857600080fd5b5061026a610487366004611d25565b610f0d565b34801561049857600080fd5b506103086104a7366004611e5f565b60046020526000908152604090205481565b3480156104c557600080fd5b5060005461026a906001600160a01b031681565b3480156104e557600080fd5b5061021e610f48565b3480156104fa57600080fd5b506102a2610509366004611e5f565b600b6020526000908152604090205460ff1681565b6102d261052c366004611d25565b610f55565b34801561053d57600080fd5b506102d261054c366004611f1a565b61135d565b34801561055d57600080fd5b5061030860125481565b34801561057357600080fd5b506102a2610582366004611d55565b6113c9565b34801561059357600080fd5b5061026a6105a2366004611d25565b6011602052600090815260409020546001600160a01b031681565b3480156105c957600080fd5b506102d26105d8366004611f56565b6113dd565b3480156105e957600080fd5b5061021e6105f8366004611d25565b6114a0565b34801561060957600080fd5b5061021e61150a565b34801561061e57600080fd5b5061030861062d366004611ff1565b600560209081526000928352604080842090915290825290205481565b34801561065657600080fd5b506102d2611517565b34801561066b57600080fd5b506102d261067a366004611e22565b61157b565b34801561068b57600080fd5b506102a261069a366004611ff1565b600760209081526000928352604080842090915290825290205460ff1681565b3480156106c657600080fd5b5061021e6115b1565b3480156106db57600080fd5b506102d26106ea366004611e5f565b6115be565b3480156106fb57600080fd5b506102d261070a366004612024565b61165a565b6001805461071c90612099565b80601f016020809104026020016040519081016040528092919081815260200182805461074890612099565b80156107955780601f1061076a57610100808354040283529160200191610795565b820191906000526020600020905b81548152906001019060200180831161077857829003601f168201915b505050505081565b600060035482111580156107b15750600082115b15610888576000828152600860205260409020546001600160a01b031633811480159061080257506001600160a01b038116600090815260076020908152604080832033845290915290205460ff16155b1561081f576040516282b42960e81b815260040160405180910390fd5b60008381526006602090815260409182902080546001600160a01b0319166001600160a01b038881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3506108e4565b3360008181526005602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b6000546001600160a01b03163314610918576040516282b42960e81b815260040160405180910390fd5b600e55565b6000546001600160a01b03163314610947576040516282b42960e81b815260040160405180910390fd5b600c6109538282612123565b5050565b6003548111610c71576000818152600860205260409020546001600160a01b0384811691161461099a57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0382166109c157604051634e46966960e11b815260040160405180910390fd5b336001600160a01b038416148015906109fe57506001600160a01b038316600090815260076020908152604080832033845290915290205460ff16155b8015610a2157506000818152600660205260409020546001600160a01b03163314155b15610a3e576040516282b42960e81b815260040160405180910390fd5b610a466116ec565b6001600160a01b03841660009081526004602052604081208054909190610a6e9084906121f9565b90915550610a7c90506116ec565b6001600160a01b03808416600081815260046020908152604080832080549096019095558582526008815284822080546001600160a01b031990811690941790556006815284822080549093169092559186168252600990529081208054610ae6906001906121f9565b81548110610af657610af661220c565b60009182526020808320909101546001600160a01b0387168352600982526040808420868552600a90935290922054815492935083928110610b3a57610b3a61220c565b60009182526020808320909101929092556001600160a01b0386168152600990915260409020805480610b6f57610b6f612222565b600082815260208082208301600019908101839055909201909255838252600a8152604080832054848452818420556001600160a01b038616808452600983529083208054600181810183558286529385200186905592529054610bd391906121f9565b6000838152600a602052604080822092909255905183916001600160a01b0380871692908816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4826001600160a01b0316846001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e031487610c5a6116ec565b60405190815260200160405180910390a350505050565b6001600160a01b03831660009081526005602090815260408083203384529091529020546000198114610ccd57610ca882826121f9565b6001600160a01b03851660009081526005602090815260408083203384529091529020555b610cd884848461172a565b50505b505050565b6000546001600160a01b03163314610d0a576040516282b42960e81b815260040160405180910390fd5b600080546001600160a01b031916815560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3565b6000546001600160a01b03163314610d70576040516282b42960e81b815260040160405180910390fd5b3060009081526004602052604080822080549083905582546001600160a01b03168352908220805491928392610da7908490612238565b909155505050565b610dba838383610957565b6001600160a01b0382163b15801590610e665750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610e35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e59919061224b565b6001600160e01b03191614155b15610cdb57604051633da6393160e01b815260040160405180910390fd5b6000546001600160a01b03163314610eae576040516282b42960e81b815260040160405180910390fd5b61095382826118d8565b6000546001600160a01b03163314610ee2576040516282b42960e81b815260040160405180910390fd5b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b6000818152600860205260409020546001600160a01b031680610f435760405163c5723b5160e01b815260040160405180910390fd5b919050565b6002805461071c90612099565b600e54600003610fa35760405162461bcd60e51b8152602060048201526014602482015273135a5b9d1a5b99c81a5cc81b9bdd081cdd185c9d60621b60448201526064015b60405180910390fd5b610fab6116ec565b610fb59082612275565b3060009081526004602052604090205410156110135760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420656e6f7567682062616c616e6365206f6620706f6f6c0000000000006044820152606401610f9a565b615208816012546110249190612238565b106110635760405162461bcd60e51b815260206004820152600f60248201526e4e6f7420656e6f756768204e46547360881b6044820152606401610f9a565b600e546001036111ce573360009081526010602052604090205460ff166110cc5760405162461bcd60e51b815260206004820152601860248201527f596f7520617265206e6f7420696e2077686974656c69737400000000000000006044820152606401610f9a565b8060011461111c5760405162461bcd60e51b815260206004820152601860248201527f4d696e74696e6720616d6f756e74206d757374206265203100000000000000006044820152606401610f9a565b336000908152600f6020526040902054156111735760405162461bcd60e51b8152602060048201526017602482015276165bdd481a185d9948185b1c9958591e481b5a5b9d1959604a1b6044820152606401610f9a565b61118530336111806116ec565b61172a565b50336000908152600f602052604081208054600192906111a6908490612238565b909155506111b59050816118f1565b6001601260008282546111c89190612238565b90915550505b600e5460020361135a57600181101580156111ea575060148111155b6112465760405162461bcd60e51b815260206004820152602760248201527f4d696e74696e6720616d6f756e74206d757374206265206265747765656e2031604482015266020616e642032360cc1b6064820152608401610f9a565b336000908152600f6020526040902054601490611264908390612238565b11156112ac5760405162461bcd60e51b8152602060048201526017602482015276165bdd481a185d9948185b1c9958591e481b5a5b9d1959604a1b6044820152606401610f9a565b346112be82663bf84543cf0000612275565b146113015760405162461bcd60e51b8152602060048201526013602482015272496e636f7272656374204554482076616c756560681b6044820152606401610f9a565b61131930338361130f6116ec565b6111809190612275565b50336000908152600f602052604081208054839290611339908490612238565b909155506113489050816118f1565b8060126000828254610da79190612238565b50565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006113d633848461172a565b9392505050565b6113e8858585610957565b6001600160a01b0384163b158015906114825750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a02906114329033908a9089908990899060040161228c565b6020604051808303816000875af1158015611451573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611475919061224b565b6001600160e01b03191614155b15610cd857604051633da6393160e01b815260040160405180910390fd5b60606000600d80546114b190612099565b905011156114eb57600d6114c483611930565b6040516020016114d59291906122e0565b6040516020818303038152906040529050919050565b60405180606001604052806029815260200161247d6029913992915050565b600d805461071c90612099565b6000546001600160a01b03163314611541576040516282b42960e81b815260040160405180910390fd5b600080546040516001600160a01b03909116914780156108fc02929091818181858888f1935050505015801561135a573d6000803e3d6000fd5b6000546001600160a01b031633146115a5576040516282b42960e81b815260040160405180910390fd5b600d6109538282612123565b600c805461071c90612099565b6000546001600160a01b031633146115e8576040516282b42960e81b815260040160405180910390fd5b6001600160a01b03811661160f576040516349e27cff60e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b6000546001600160a01b03163314611684576040516282b42960e81b815260040160405180910390fd5b60005b81811015610cdb576001601060008585858181106116a7576116a761220c565b90506020020160208101906116bc9190611e5f565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055600101611687565b60006117197f0000000000000000000000000000000000000000000000000000000000000000600a61244b565b61172590612328612275565b905090565b6000806117356116ec565b6001600160a01b038087166000818152600460205260408082208054948a168352908220549282529394509192909186919061177183866121f9565b90915550506001600160a01b03808716600090815260046020908152604080832080548a019055928a168252600b9052205460ff16611803576001600160a01b0387166000908152600460205260408120546117ce90859061245a565b6117d8858561245a565b6117e291906121f9565b905060005b81811015611800576117f8896119c3565b6001016117e7565b50505b6001600160a01b0386166000908152600b602052604090205460ff1661187e57600061182f848361245a565b6001600160a01b03881660009081526004602052604090205461185390869061245a565b61185d91906121f9565b905060005b8181101561187b5761187388611aeb565b600101611862565b50505b856001600160a01b0316876001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e031487876040516118c391815260200190565b60405180910390a35060019695505050505050565b60016118e48382612123565b506002610cdb8282612123565b6012545b816012546119039190612238565b81101561095357600081815260116020526040902080546001600160a01b031916331790556001016118f5565b6060600061193d83611bf6565b600101905060008167ffffffffffffffff81111561195d5761195d611d7f565b6040519080825280601f01601f191660200182016040528015611987576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461199157509392505050565b6001600160a01b0381166119ea57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b03811660009081526009602052604081208054611a10906001906121f9565b81548110611a2057611a2061220c565b9060005260206000200154905060096000836001600160a01b03166001600160a01b03168152602001908152602001600020805480611a6157611a61612222565b600082815260208082208301600019908101839055909201909255828252600a815260408083208390556008825280832080546001600160a01b031990811690915560069092528083208054909216909155518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b038116611b1257604051634e46966960e11b815260040160405180910390fd5b60038054600101908190556000818152600860205260409020546001600160a01b031615611b535760405163119b4fd360e11b815260040160405180910390fd5b600081815260086020908152604080832080546001600160a01b0319166001600160a01b038716908117909155808452600983529083208054600181810183558286529385200185905592529054611bab91906121f9565b6000828152600a602052604080822092909255905182916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611c355772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611c61576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611c7f57662386f26fc10000830492506010015b6305f5e1008310611c97576305f5e100830492506008015b6127108310611cab57612710830492506004015b60648310611cbd576064830492506002015b600a83106108e85760010192915050565b60005b83811015611ce9578181015183820152602001611cd1565b50506000910152565b6020815260008251806020840152611d11816040850160208701611cce565b601f01601f19169190910160400192915050565b600060208284031215611d3757600080fd5b5035919050565b80356001600160a01b0381168114610f4357600080fd5b60008060408385031215611d6857600080fd5b611d7183611d3e565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112611da657600080fd5b813567ffffffffffffffff80821115611dc157611dc1611d7f565b604051601f8301601f19908116603f01168101908282118183101715611de957611de9611d7f565b81604052838152866020858801011115611e0257600080fd5b836020870160208301376000602085830101528094505050505092915050565b600060208284031215611e3457600080fd5b813567ffffffffffffffff811115611e4b57600080fd5b611e5784828501611d95565b949350505050565b600060208284031215611e7157600080fd5b6113d682611d3e565b600080600060608486031215611e8f57600080fd5b611e9884611d3e565b9250611ea660208501611d3e565b9150604084013590509250925092565b60008060408385031215611ec957600080fd5b823567ffffffffffffffff80821115611ee157600080fd5b611eed86838701611d95565b93506020850135915080821115611f0357600080fd5b50611f1085828601611d95565b9150509250929050565b60008060408385031215611f2d57600080fd5b611f3683611d3e565b915060208301358015158114611f4b57600080fd5b809150509250929050565b600080600080600060808688031215611f6e57600080fd5b611f7786611d3e565b9450611f8560208701611d3e565b935060408601359250606086013567ffffffffffffffff80821115611fa957600080fd5b818801915088601f830112611fbd57600080fd5b813581811115611fcc57600080fd5b896020828501011115611fde57600080fd5b9699959850939650602001949392505050565b6000806040838503121561200457600080fd5b61200d83611d3e565b915061201b60208401611d3e565b90509250929050565b6000806020838503121561203757600080fd5b823567ffffffffffffffff8082111561204f57600080fd5b818501915085601f83011261206357600080fd5b81358181111561207257600080fd5b8660208260051b850101111561208757600080fd5b60209290920196919550909350505050565b600181811c908216806120ad57607f821691505b6020821081036120cd57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610cdb576000816000526020600020601f850160051c810160208610156120fc5750805b601f850160051c820191505b8181101561211b57828155600101612108565b505050505050565b815167ffffffffffffffff81111561213d5761213d611d7f565b6121518161214b8454612099565b846120d3565b602080601f831160018114612186576000841561216e5750858301515b600019600386901b1c1916600185901b17855561211b565b600085815260208120601f198616915b828110156121b557888601518255948401946001909101908401612196565b50858210156121d35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b818103818111156108e8576108e86121e3565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b808201808211156108e8576108e86121e3565b60006020828403121561225d57600080fd5b81516001600160e01b0319811681146113d657600080fd5b80820281158282048414176108e8576108e86121e3565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008084546122ee81612099565b60018281168015612306576001811461231b5761234a565b60ff198416875282151583028701945061234a565b8860005260208060002060005b858110156123415781548a820152908401908201612328565b50505082870194505b50505050835161235e818360208801611cce565b01949350505050565b600181815b808511156123a2578160001904821115612388576123886121e3565b8085161561239557918102915b93841c939080029061236c565b509250929050565b6000826123b9575060016108e8565b816123c6575060006108e8565b81600181146123dc57600281146123e657612402565b60019150506108e8565b60ff8411156123f7576123f76121e3565b50506001821b6108e8565b5060208310610133831016604e8410600b8410161715612425575081810a6108e8565b61242f8383612367565b8060001904821115612443576124436121e3565b029392505050565b60006113d660ff8416836123aa565b60008261247757634e487b7160e01b600052601260045260246000fd5b50049056fe68747470733a2f2f6c6f6f6e67636974792e34657665726c616e642e73746f72652f626f782e6a7067a2646970667358221220234d722cdbc721f10cd9cc1475b93feba81bf9276744c023a1b970582cc671e164736f6c63430008180033

Deployed Bytecode

0x6080604052600436106102045760003560e01c80638da5cb5b11610118578063c87b56dd116100a0578063e0df5b6f1161006f578063e0df5b6f1461065f578063e985e9c51461067f578063f28ca1dd146106ba578063f2fde38b146106cf578063f4217648146106ef57600080fd5b8063c87b56dd146105dd578063d547cfb7146105fd578063dd62ed3e14610612578063e086e5ec1461064a57600080fd5b8063a22cb465116100e7578063a22cb46514610531578063a2309ff814610551578063a9059cbb14610567578063b0b50ed514610587578063b88d4fde146105bd57600080fd5b80638da5cb5b146104b957806395d89b41146104d95780639b19251a146104ee578063a0712d681461051e57600080fd5b80632b9689581161019b5780634f02c4201161016a5780634f02c42014610416578063504334c21461042c57806353d6fd591461044c5780636352211e1461046c57806370a082311461048c57600080fd5b80632b96895814610386578063313ce5671461039b5780633ccfd60b146103e157806342842e0e146103f657600080fd5b806318160ddd116101d757806318160ddd146102d457806318d217c3146103165780631e7be2101461033657806323b872dd1461036657600080fd5b806306fdde0314610209578063081812fc14610234578063095ea7b3146102825780630ceb2cef146102b2575b600080fd5b34801561021557600080fd5b5061021e61070f565b60405161022b9190611cf2565b60405180910390f35b34801561024057600080fd5b5061026a61024f366004611d25565b6006602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161022b565b34801561028e57600080fd5b506102a261029d366004611d55565b61079d565b604051901515815260200161022b565b3480156102be57600080fd5b506102d26102cd366004611d25565b6108ee565b005b3480156102e057600080fd5b506103087f000000000000000000000000000000000000000000adb53acfa41aee1200000081565b60405190815260200161022b565b34801561032257600080fd5b506102d2610331366004611e22565b61091d565b34801561034257600080fd5b506102a2610351366004611e5f565b60106020526000908152604090205460ff1681565b34801561037257600080fd5b506102d2610381366004611e7a565b610957565b34801561039257600080fd5b506102d2610ce0565b3480156103a757600080fd5b506103cf7f000000000000000000000000000000000000000000000000000000000000001281565b60405160ff909116815260200161022b565b3480156103ed57600080fd5b506102d2610d46565b34801561040257600080fd5b506102d2610411366004611e7a565b610daf565b34801561042257600080fd5b5061030860035481565b34801561043857600080fd5b506102d2610447366004611eb6565b610e84565b34801561045857600080fd5b506102d2610467366004611f1a565b610eb8565b34801561047857600080fd5b5061026a610487366004611d25565b610f0d565b34801561049857600080fd5b506103086104a7366004611e5f565b60046020526000908152604090205481565b3480156104c557600080fd5b5060005461026a906001600160a01b031681565b3480156104e557600080fd5b5061021e610f48565b3480156104fa57600080fd5b506102a2610509366004611e5f565b600b6020526000908152604090205460ff1681565b6102d261052c366004611d25565b610f55565b34801561053d57600080fd5b506102d261054c366004611f1a565b61135d565b34801561055d57600080fd5b5061030860125481565b34801561057357600080fd5b506102a2610582366004611d55565b6113c9565b34801561059357600080fd5b5061026a6105a2366004611d25565b6011602052600090815260409020546001600160a01b031681565b3480156105c957600080fd5b506102d26105d8366004611f56565b6113dd565b3480156105e957600080fd5b5061021e6105f8366004611d25565b6114a0565b34801561060957600080fd5b5061021e61150a565b34801561061e57600080fd5b5061030861062d366004611ff1565b600560209081526000928352604080842090915290825290205481565b34801561065657600080fd5b506102d2611517565b34801561066b57600080fd5b506102d261067a366004611e22565b61157b565b34801561068b57600080fd5b506102a261069a366004611ff1565b600760209081526000928352604080842090915290825290205460ff1681565b3480156106c657600080fd5b5061021e6115b1565b3480156106db57600080fd5b506102d26106ea366004611e5f565b6115be565b3480156106fb57600080fd5b506102d261070a366004612024565b61165a565b6001805461071c90612099565b80601f016020809104026020016040519081016040528092919081815260200182805461074890612099565b80156107955780601f1061076a57610100808354040283529160200191610795565b820191906000526020600020905b81548152906001019060200180831161077857829003601f168201915b505050505081565b600060035482111580156107b15750600082115b15610888576000828152600860205260409020546001600160a01b031633811480159061080257506001600160a01b038116600090815260076020908152604080832033845290915290205460ff16155b1561081f576040516282b42960e81b815260040160405180910390fd5b60008381526006602090815260409182902080546001600160a01b0319166001600160a01b038881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3506108e4565b3360008181526005602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b6000546001600160a01b03163314610918576040516282b42960e81b815260040160405180910390fd5b600e55565b6000546001600160a01b03163314610947576040516282b42960e81b815260040160405180910390fd5b600c6109538282612123565b5050565b6003548111610c71576000818152600860205260409020546001600160a01b0384811691161461099a57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0382166109c157604051634e46966960e11b815260040160405180910390fd5b336001600160a01b038416148015906109fe57506001600160a01b038316600090815260076020908152604080832033845290915290205460ff16155b8015610a2157506000818152600660205260409020546001600160a01b03163314155b15610a3e576040516282b42960e81b815260040160405180910390fd5b610a466116ec565b6001600160a01b03841660009081526004602052604081208054909190610a6e9084906121f9565b90915550610a7c90506116ec565b6001600160a01b03808416600081815260046020908152604080832080549096019095558582526008815284822080546001600160a01b031990811690941790556006815284822080549093169092559186168252600990529081208054610ae6906001906121f9565b81548110610af657610af661220c565b60009182526020808320909101546001600160a01b0387168352600982526040808420868552600a90935290922054815492935083928110610b3a57610b3a61220c565b60009182526020808320909101929092556001600160a01b0386168152600990915260409020805480610b6f57610b6f612222565b600082815260208082208301600019908101839055909201909255838252600a8152604080832054848452818420556001600160a01b038616808452600983529083208054600181810183558286529385200186905592529054610bd391906121f9565b6000838152600a602052604080822092909255905183916001600160a01b0380871692908816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4826001600160a01b0316846001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e031487610c5a6116ec565b60405190815260200160405180910390a350505050565b6001600160a01b03831660009081526005602090815260408083203384529091529020546000198114610ccd57610ca882826121f9565b6001600160a01b03851660009081526005602090815260408083203384529091529020555b610cd884848461172a565b50505b505050565b6000546001600160a01b03163314610d0a576040516282b42960e81b815260040160405180910390fd5b600080546001600160a01b031916815560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3565b6000546001600160a01b03163314610d70576040516282b42960e81b815260040160405180910390fd5b3060009081526004602052604080822080549083905582546001600160a01b03168352908220805491928392610da7908490612238565b909155505050565b610dba838383610957565b6001600160a01b0382163b15801590610e665750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610e35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e59919061224b565b6001600160e01b03191614155b15610cdb57604051633da6393160e01b815260040160405180910390fd5b6000546001600160a01b03163314610eae576040516282b42960e81b815260040160405180910390fd5b61095382826118d8565b6000546001600160a01b03163314610ee2576040516282b42960e81b815260040160405180910390fd5b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b6000818152600860205260409020546001600160a01b031680610f435760405163c5723b5160e01b815260040160405180910390fd5b919050565b6002805461071c90612099565b600e54600003610fa35760405162461bcd60e51b8152602060048201526014602482015273135a5b9d1a5b99c81a5cc81b9bdd081cdd185c9d60621b60448201526064015b60405180910390fd5b610fab6116ec565b610fb59082612275565b3060009081526004602052604090205410156110135760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420656e6f7567682062616c616e6365206f6620706f6f6c0000000000006044820152606401610f9a565b615208816012546110249190612238565b106110635760405162461bcd60e51b815260206004820152600f60248201526e4e6f7420656e6f756768204e46547360881b6044820152606401610f9a565b600e546001036111ce573360009081526010602052604090205460ff166110cc5760405162461bcd60e51b815260206004820152601860248201527f596f7520617265206e6f7420696e2077686974656c69737400000000000000006044820152606401610f9a565b8060011461111c5760405162461bcd60e51b815260206004820152601860248201527f4d696e74696e6720616d6f756e74206d757374206265203100000000000000006044820152606401610f9a565b336000908152600f6020526040902054156111735760405162461bcd60e51b8152602060048201526017602482015276165bdd481a185d9948185b1c9958591e481b5a5b9d1959604a1b6044820152606401610f9a565b61118530336111806116ec565b61172a565b50336000908152600f602052604081208054600192906111a6908490612238565b909155506111b59050816118f1565b6001601260008282546111c89190612238565b90915550505b600e5460020361135a57600181101580156111ea575060148111155b6112465760405162461bcd60e51b815260206004820152602760248201527f4d696e74696e6720616d6f756e74206d757374206265206265747765656e2031604482015266020616e642032360cc1b6064820152608401610f9a565b336000908152600f6020526040902054601490611264908390612238565b11156112ac5760405162461bcd60e51b8152602060048201526017602482015276165bdd481a185d9948185b1c9958591e481b5a5b9d1959604a1b6044820152606401610f9a565b346112be82663bf84543cf0000612275565b146113015760405162461bcd60e51b8152602060048201526013602482015272496e636f7272656374204554482076616c756560681b6044820152606401610f9a565b61131930338361130f6116ec565b6111809190612275565b50336000908152600f602052604081208054839290611339908490612238565b909155506113489050816118f1565b8060126000828254610da79190612238565b50565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006113d633848461172a565b9392505050565b6113e8858585610957565b6001600160a01b0384163b158015906114825750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a02906114329033908a9089908990899060040161228c565b6020604051808303816000875af1158015611451573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611475919061224b565b6001600160e01b03191614155b15610cd857604051633da6393160e01b815260040160405180910390fd5b60606000600d80546114b190612099565b905011156114eb57600d6114c483611930565b6040516020016114d59291906122e0565b6040516020818303038152906040529050919050565b60405180606001604052806029815260200161247d6029913992915050565b600d805461071c90612099565b6000546001600160a01b03163314611541576040516282b42960e81b815260040160405180910390fd5b600080546040516001600160a01b03909116914780156108fc02929091818181858888f1935050505015801561135a573d6000803e3d6000fd5b6000546001600160a01b031633146115a5576040516282b42960e81b815260040160405180910390fd5b600d6109538282612123565b600c805461071c90612099565b6000546001600160a01b031633146115e8576040516282b42960e81b815260040160405180910390fd5b6001600160a01b03811661160f576040516349e27cff60e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b6000546001600160a01b03163314611684576040516282b42960e81b815260040160405180910390fd5b60005b81811015610cdb576001601060008585858181106116a7576116a761220c565b90506020020160208101906116bc9190611e5f565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055600101611687565b60006117197f0000000000000000000000000000000000000000000000000000000000000012600a61244b565b61172590612328612275565b905090565b6000806117356116ec565b6001600160a01b038087166000818152600460205260408082208054948a168352908220549282529394509192909186919061177183866121f9565b90915550506001600160a01b03808716600090815260046020908152604080832080548a019055928a168252600b9052205460ff16611803576001600160a01b0387166000908152600460205260408120546117ce90859061245a565b6117d8858561245a565b6117e291906121f9565b905060005b81811015611800576117f8896119c3565b6001016117e7565b50505b6001600160a01b0386166000908152600b602052604090205460ff1661187e57600061182f848361245a565b6001600160a01b03881660009081526004602052604090205461185390869061245a565b61185d91906121f9565b905060005b8181101561187b5761187388611aeb565b600101611862565b50505b856001600160a01b0316876001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e031487876040516118c391815260200190565b60405180910390a35060019695505050505050565b60016118e48382612123565b506002610cdb8282612123565b6012545b816012546119039190612238565b81101561095357600081815260116020526040902080546001600160a01b031916331790556001016118f5565b6060600061193d83611bf6565b600101905060008167ffffffffffffffff81111561195d5761195d611d7f565b6040519080825280601f01601f191660200182016040528015611987576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461199157509392505050565b6001600160a01b0381166119ea57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b03811660009081526009602052604081208054611a10906001906121f9565b81548110611a2057611a2061220c565b9060005260206000200154905060096000836001600160a01b03166001600160a01b03168152602001908152602001600020805480611a6157611a61612222565b600082815260208082208301600019908101839055909201909255828252600a815260408083208390556008825280832080546001600160a01b031990811690915560069092528083208054909216909155518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b038116611b1257604051634e46966960e11b815260040160405180910390fd5b60038054600101908190556000818152600860205260409020546001600160a01b031615611b535760405163119b4fd360e11b815260040160405180910390fd5b600081815260086020908152604080832080546001600160a01b0319166001600160a01b038716908117909155808452600983529083208054600181810183558286529385200185905592529054611bab91906121f9565b6000828152600a602052604080822092909255905182916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611c355772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611c61576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611c7f57662386f26fc10000830492506010015b6305f5e1008310611c97576305f5e100830492506008015b6127108310611cab57612710830492506004015b60648310611cbd576064830492506002015b600a83106108e85760010192915050565b60005b83811015611ce9578181015183820152602001611cd1565b50506000910152565b6020815260008251806020840152611d11816040850160208701611cce565b601f01601f19169190910160400192915050565b600060208284031215611d3757600080fd5b5035919050565b80356001600160a01b0381168114610f4357600080fd5b60008060408385031215611d6857600080fd5b611d7183611d3e565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112611da657600080fd5b813567ffffffffffffffff80821115611dc157611dc1611d7f565b604051601f8301601f19908116603f01168101908282118183101715611de957611de9611d7f565b81604052838152866020858801011115611e0257600080fd5b836020870160208301376000602085830101528094505050505092915050565b600060208284031215611e3457600080fd5b813567ffffffffffffffff811115611e4b57600080fd5b611e5784828501611d95565b949350505050565b600060208284031215611e7157600080fd5b6113d682611d3e565b600080600060608486031215611e8f57600080fd5b611e9884611d3e565b9250611ea660208501611d3e565b9150604084013590509250925092565b60008060408385031215611ec957600080fd5b823567ffffffffffffffff80821115611ee157600080fd5b611eed86838701611d95565b93506020850135915080821115611f0357600080fd5b50611f1085828601611d95565b9150509250929050565b60008060408385031215611f2d57600080fd5b611f3683611d3e565b915060208301358015158114611f4b57600080fd5b809150509250929050565b600080600080600060808688031215611f6e57600080fd5b611f7786611d3e565b9450611f8560208701611d3e565b935060408601359250606086013567ffffffffffffffff80821115611fa957600080fd5b818801915088601f830112611fbd57600080fd5b813581811115611fcc57600080fd5b896020828501011115611fde57600080fd5b9699959850939650602001949392505050565b6000806040838503121561200457600080fd5b61200d83611d3e565b915061201b60208401611d3e565b90509250929050565b6000806020838503121561203757600080fd5b823567ffffffffffffffff8082111561204f57600080fd5b818501915085601f83011261206357600080fd5b81358181111561207257600080fd5b8660208260051b850101111561208757600080fd5b60209290920196919550909350505050565b600181811c908216806120ad57607f821691505b6020821081036120cd57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610cdb576000816000526020600020601f850160051c810160208610156120fc5750805b601f850160051c820191505b8181101561211b57828155600101612108565b505050505050565b815167ffffffffffffffff81111561213d5761213d611d7f565b6121518161214b8454612099565b846120d3565b602080601f831160018114612186576000841561216e5750858301515b600019600386901b1c1916600185901b17855561211b565b600085815260208120601f198616915b828110156121b557888601518255948401946001909101908401612196565b50858210156121d35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b818103818111156108e8576108e86121e3565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b808201808211156108e8576108e86121e3565b60006020828403121561225d57600080fd5b81516001600160e01b0319811681146113d657600080fd5b80820281158282048414176108e8576108e86121e3565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008084546122ee81612099565b60018281168015612306576001811461231b5761234a565b60ff198416875282151583028701945061234a565b8860005260208060002060005b858110156123415781548a820152908401908201612328565b50505082870194505b50505050835161235e818360208801611cce565b01949350505050565b600181815b808511156123a2578160001904821115612388576123886121e3565b8085161561239557918102915b93841c939080029061236c565b509250929050565b6000826123b9575060016108e8565b816123c6575060006108e8565b81600181146123dc57600281146123e657612402565b60019150506108e8565b60ff8411156123f7576123f76121e3565b50506001821b6108e8565b5060208310610133831016604e8410600b8410161715612425575081810a6108e8565b61242f8383612367565b8060001904821115612443576124436121e3565b029392505050565b60006113d660ff8416836123aa565b60008261247757634e487b7160e01b600052601260045260246000fd5b50049056fe68747470733a2f2f6c6f6f6e67636974792e34657665726c616e642e73746f72652f626f782e6a7067a2646970667358221220234d722cdbc721f10cd9cc1475b93feba81bf9276744c023a1b970582cc671e164736f6c63430008180033

Loading...
Loading
Loading...
Loading
[ 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.