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

Overview

Max Total Supply

750 ANARKEY

Holders

177

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
6 ANARKEY
0x491968b05d95979ba3a52d73d8a39ea96693f011
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:
AnarKey

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "./erc721x/contracts/ERC721X.sol";

/**
 * @title AnarKey
 * @notice ANARKEY ERC721X NFT collection
 */

contract AnarKey is Ownable, ERC721X, Pausable, IERC2981  {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;
    using Strings for uint256;

    IERC20 public USDT; // USDT token

    bool public isMetadataLocked;
    bool public isMaxSupplyLocked;
    bool public autoStageChange;
    uint256 public maxSupply = 1111;
    uint256 private BatchSize = 100;
    string public baseTokenURI;
    address public royalties;
    uint256 public royaltiesPercentage;

    uint256 public MaxMintPerTX = 10;
    uint256 public NFT_PRICE = 5000;
    uint256 public TokenDecimal = 1000000;
    uint256 public saleStage = 0;
    uint256 private publicSaleKey;
    uint256 public CurrentMintIndex = 0;
    uint256 public EndRoundMintIndex = 200;
    uint256 public NextEndRoundMintIndex = 400;
    uint256 public NextRoundMintPrice = 5000;
    uint256 public MaxMintIndex = 750;

    address public immutable withdrawWallet1 = 0x4Da56C7c284d56094b21fCC56888BeeaCac53365;
    address public immutable withdrawWallet2 = 0xac488462d5Ed9a904842e8946290698694B2391f;

    mapping(address => uint256) private _userMints;

    event Withdraw(uint256 amount);
    event LockMetadata();
    event LockMaxSupply();

    constructor() ERC721X("AnarKey", "ANARKEY", BatchSize, maxSupply) {
        autoStageChange = true;
    }

    modifier callerIsUser() {
        require(tx.origin == msg.sender, "The caller is another contract");
        _;
    }

    /**
     * @notice Allows the owner to lock the contract
     * @dev Callable by owner
     */
    function lockMetadata() external onlyOwner {
        require(!isMetadataLocked, "Contract is locked");
        require(bytes(baseTokenURI).length > 0, "BaseUri not set");
        isMetadataLocked = true;
        emit LockMetadata();
    }

    function setAutoStageChange(bool _stage) external onlyOwner {
        autoStageChange = _stage;
    }

    /**
     * @notice Allows the owner to lock the max supply
     * @dev Callable by owner
     */
    function lockMaxSupply() external onlyOwner {
        require(!isMaxSupplyLocked, "Max supply is locked");
        require(maxSupply > 0, "Max supply not set");
        isMaxSupplyLocked = true;
        emit LockMaxSupply();
    }

    function mint(uint256 _quantity, uint256 _CallerPublicSaleKey) external callerIsUser whenNotPaused {
        uint256 userBalance = USDT.balanceOf(msg.sender);
        uint256 costToMint = NFT_PRICE * TokenDecimal * _quantity;

        require(totalSupply().add(_quantity) <= maxSupply, "NFT: Total supply reached");
        require(totalSupply().add(_quantity) <= MaxMintIndex, "Total supply reached max mint supply");
        require(totalSupply().add(_quantity) <= EndRoundMintIndex, "Your quantity is over than limit");
        require(publicSaleKey == _CallerPublicSaleKey, "Called with incorrect public sale key");
        require(costToMint <= userBalance, "User balance is not enough");
        require(_quantity <= MaxMintPerTX, "Mint exceed the limit per TX");      
        require(saleStage > 0, "Sale is not active at the moment");
        require(CurrentMintIndex + _quantity <= EndRoundMintIndex, "Supply over the swap supply limit");

        USDT.safeTransferFrom(msg.sender, address(this), costToMint); 
        _userMints[msg.sender] = _userMints[msg.sender] + _quantity;
        CurrentMintIndex = CurrentMintIndex + _quantity;
        _safeMint(msg.sender, _quantity);

        if (totalSupply() >= EndRoundMintIndex) {
            if (autoStageChange) {
                EndRoundMintIndex = NextEndRoundMintIndex;
                NFT_PRICE = NextRoundMintPrice;
                saleStage++;
            }       
        }
    }

    function ownerMintBulk(address[] memory _accounts, uint256[] memory _quantity) external onlyOwner{
        require(_accounts.length == _quantity.length,"arrays must have same length");

        for (uint256 i = 0; i < _accounts.length; i++) {
            require(totalSupply().add(_quantity[i]) <= maxSupply, "NFT: Total supply reached");
            CurrentMintIndex = CurrentMintIndex + _quantity[i];
            _safeMint(_accounts[i], _quantity[i]);
        }
    }

    function setMaxSupply(uint256 _maxSupply) external onlyOwner {
        require(!isMaxSupplyLocked, "Operations: Max supply is locked");
        setCollectionSize(_maxSupply);
        maxSupply = _maxSupply;
    }

    /**
     * @notice Allows the owner to set the base URI to be used for all token IDs
     * @param _uri: base URI
     * @dev Callable by owner
     */
    function setBaseURI(string memory _uri) external onlyOwner {
        require(!isMetadataLocked, "Operations: Contract is locked");
        baseTokenURI = _uri;
    }

    /**
     * @notice Returns the Uniform Resource Identifier (URI) for a token ID
     * @param tokenId: token ID
     */
    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        require(_exists(tokenId), "Invalid tokenId");
        return bytes(baseTokenURI).length > 0 ? string(abi.encodePacked(baseTokenURI, tokenId.toString(), ".json")) : "";
    }


    function setRoyalties(address _royalties) public onlyOwner {
        royalties = _royalties;
    }

    function setRoyaltiesPercentage(uint256 _percentage) public onlyOwner {
        royaltiesPercentage = _percentage;
    }

    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view override returns (address, uint256 royaltyAmount) {
        _tokenId; // silence solc warning
        royaltyAmount = (_salePrice / 100) * royaltiesPercentage;
        return (royalties, royaltyAmount);
    }


    function setUSDTAddress(IERC20 _address) external onlyOwner {
        USDT = _address;
    }

    function setTokenDecimal(uint256 _tokenDecimal) external onlyOwner {
        TokenDecimal = _tokenDecimal;
    }

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

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

    function _withdraw(uint256 amount) private {
        require(amount <= USDT.balanceOf(address(this)), "amount > balance");
        require(amount > 0, "Empty amount");

        uint256 amount1 = amount.mul(50).div(100);
        uint256 amount2 = amount.mul(50).div(100);

        USDT.safeTransfer(withdrawWallet1, amount1);
        USDT.safeTransfer(withdrawWallet2, amount2);
        emit Withdraw(amount);
    }


    function withdraw(uint256 amount) external onlyOwner {
        _withdraw(amount);
    }


    function withdrawAll() external onlyOwner {
        _withdraw(USDT.balanceOf(address(this)));
    }

    function setMaxperTX(uint256 _MaxMintPerTX) external onlyOwner {
        MaxMintPerTX = _MaxMintPerTX;
    }

    function setMintPrice(uint256 _MintPrice) external onlyOwner {
        NFT_PRICE = _MintPrice;
    }

    function setCurrentMintIndex(uint256 _Index) external onlyOwner {
        CurrentMintIndex = _Index;
    }

    function setEndRoundMintIndex(uint256 _Index) external onlyOwner {
        EndRoundMintIndex = _Index;
    }

    function setNextEndRoundMintIndex(uint256 _Index) external onlyOwner {
        NextEndRoundMintIndex = _Index;
    }

    function setNextRoundPrice(uint256 _Index) external onlyOwner {
        NextRoundMintPrice = _Index;
    }

    function setMaxMintIndex(uint256 _Index) external onlyOwner {
        MaxMintIndex = _Index;
    }

    function setSaleStage(uint256 _SaleStage, uint256 _price, uint256 _endIndex) external onlyOwner {
        saleStage = _SaleStage;
        NFT_PRICE = _price;
        EndRoundMintIndex = _endIndex;
    }

    function setPublicSaleKey(uint256 _PublicSaleKey) external onlyOwner {
        publicSaleKey = _PublicSaleKey;
    }
}

File 2 of 18 : ERC721X.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * Assumes the number of issuable tokens (collection size) is capped and fits in a uint128.
 *
 * Does not support burning tokens to address(0).
 */
contract ERC721X is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    struct TokenOwnership {
        address addr;
        uint64 startTimestamp;
    }

    struct AddressData {
        uint64 balance;
        uint64 numberMinted;
    }

    uint256 private currentIndex = 0;
    uint256 private burnedIndex = 0;

    uint256 internal collectionSize;
    uint256 internal maxBatchSize;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) private _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
    * @dev
    * `maxBatchSize` refers to how much a minter can mint at a time.
    * `collectionSize_` refers to how many tokens are in the collection.
    */
    constructor(
        string memory name_,
        string memory symbol_,
        uint256 maxBatchSize_,
        uint256 collectionSize_
    ) {
        require(collectionSize_ > 0, "ERC721X: collection must have a nonzero supply");
        require(maxBatchSize_ > 0, "ERC721X: max batch size must be nonzero");
        _name = name_;
        _symbol = symbol_;
        maxBatchSize = maxBatchSize_;
        collectionSize = collectionSize_;
    }

    /**
    * @dev See Remove store data in IERC721Enumerable {IERC721Enumerable-totalSupply}.
    */
    function totalSupply() public view returns (uint256) {
        return currentIndex - burnedIndex;
    }

    /**
    * @dev See Remove store data in IERC721Enumerable {IERC721Enumerable-totalSupply}.
    */
    function setCollectionSize(uint256 _collectionSize) internal {
         collectionSize = _collectionSize;
    }

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

    /**
    * @dev See {IERC721-balanceOf}.
    */
    function balanceOf(address owner) public view override returns (uint256) {
        require(owner != address(0), "ERC721X: balance query for the zero address");
        return uint256(_addressData[owner].balance);
    }

    function _numberMinted(address owner) internal view returns (uint256) {
        require(owner != address(0), "ERC721X: number minted query for the zero address");
        return uint256(_addressData[owner].numberMinted);
    }

    function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        require(_exists(tokenId), "ERC721X: owner query for nonexistent token");
        uint256 lowestTokenToCheck;
        if (tokenId >= maxBatchSize) {
            lowestTokenToCheck = tokenId - maxBatchSize + 1;
        }

        for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) {
            TokenOwnership memory ownership = _ownerships[curr];
            if (ownership.addr != address(0)) {
                return ownership;
            }
        }
        revert("ERC721X: unable to determine the owner of token");
    }

    /**
    * @dev See {IERC721-ownerOf}.
    */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return ownershipOf(tokenId).addr;
    }

    /**
    * @dev See {IERC721Metadata-name}.
    */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
    * @dev See {IERC721Metadata-symbol}.
    */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
    * @dev See {IERC721Metadata-tokenURI}.
    */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString(), ".json")): "";
    }

    /**
    * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
    * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
    * by default, can be overriden in child contracts.
    */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
    * @dev See {IERC721-approve}.
    */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721X.ownerOf(tokenId);
        require(to != owner, "ERC721X: approval to current owner");
        require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()),"ERC721X: approve caller is not owner nor approved for all");
        _approve(to, tokenId, owner);
    }

    /**
    * @dev See {IERC721-getApproved}.
    */
    function getApproved(uint256 tokenId) public view override returns (address) {
        require(_exists(tokenId), "ERC721X: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
    * @dev See {IERC721-setApprovalForAll}.
    */
    function setApprovalForAll(address operator, bool approved) public override {
        require(operator != _msgSender(), "ERC721X: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
    * @dev See {IERC721-isApprovedForAll}.
    */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool){
        return _operatorApprovals[owner][operator];
    }

    /**
    * @dev See {IERC721-transferFrom}.
    */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override {
        _transfer(from, to, tokenId);
    }

    /**
    * @dev See {IERC721-safeTransferFrom}.
    */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
    * @dev See {IERC721-safeTransferFrom}.
    */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public override {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721X: transfer to non ERC721Receiver implementer");
    }

    /**
    * @dev Returns whether `tokenId` exists.
    *
    * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
    *
    * Tokens start existing when they are minted (`_mint`),
    */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return tokenId < currentIndex;
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721X: operator query for nonexistent token");
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);
        return(spender == prevOwnership.addr || getApproved(tokenId) == spender || isApprovedForAll(prevOwnership.addr, spender));
        //return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, "");
    }

    /**
    * @dev Mints `quantity` tokens and transfers them to `to`.
    *
    * Requirements:
    *
    * - there must be `quantity` tokens remaining unminted in the total collection.
    * - `to` cannot be the zero address.
    * - `quantity` cannot be larger than the max batch size.
    *
    * Emits a {Transfer} event.
    */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        uint256 startTokenId = currentIndex;
        require(to != address(0), "ERC721X: mint to the zero address");
        require(!_exists(startTokenId), "ERC721X: token already minted");
        require(quantity <= maxBatchSize, "ERC721X: quantity to mint over than max batch size");

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp));

            uint256 updatedIndex = startTokenId;

            for (uint256 i = 0; i < quantity; i++) {
                updatedIndex++;
                emit Transfer(address(0), to, updatedIndex);
                require(_checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721X: transfer to non ERC721Receiver implementer");         
            }
            currentIndex = updatedIndex;
            _afterTokenTransfers(address(0), to, startTokenId, quantity);
        }
    }

    /**
    * @dev burn function Transfers `tokenId` from `from` to `unused address`.
    *
    * Requirements:
    *
    * - `to` cannot be the zero address and fix to unused address.
    * - `tokenId` token must be owned by `from`.
    *
    * Emits a {Transfer} event.
    */

    function _burn(
        address from,
        uint256 tokenId
        ) internal virtual {
        address to = 0x000000000000000000000000000000000000dEaD;
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        //bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
        //getApproved(tokenId) == _msgSender() ||
        //isApprovedForAll(prevOwnership.addr, _msgSender()));

        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721X: burn caller is not owner nor approved");
        require(prevOwnership.addr == from, "ERC721X: burn from incorrect owner");

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, prevOwnership.addr);

        _addressData[from].balance -= 1;
        _addressData[to].balance += 1;
        _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp));

        // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
        // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
        uint256 nextTokenId = tokenId + 1;
        if (_ownerships[nextTokenId].addr == address(0)) {
            if (_exists(nextTokenId)) {
                _ownerships[nextTokenId] = TokenOwnership(
                prevOwnership.addr,
                prevOwnership.startTimestamp
                );
            }
        }
        emit Transfer(from, to, tokenId);
        burnedIndex++;
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
    * @dev Transfers `tokenId` from `from` to `to`.
    *
    * Requirements:
    *
    * - `to` cannot be the zero address.
    * - `tokenId` token must be owned by `from`.
    *
    * Emits a {Transfer} event.
    */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        //bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
        //getApproved(tokenId) == _msgSender() ||
        //isApprovedForAll(prevOwnership.addr, _msgSender()));

        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721X: transfer caller is not owner nor approved");
        require(prevOwnership.addr == from, "ERC721X: transfer from incorrect owner");
        require(to != address(0), "ERC721X: transfer to the zero address");

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, prevOwnership.addr);

        _addressData[from].balance -= 1;
        _addressData[to].balance += 1;
        _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp));

        // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
        // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
        uint256 nextTokenId = tokenId + 1;
        if (_ownerships[nextTokenId].addr == address(0)) {
            if (_exists(nextTokenId)) {
                _ownerships[nextTokenId] = TokenOwnership(
                prevOwnership.addr,
                prevOwnership.startTimestamp
                );
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
    * @dev Approve `to` to operate on `tokenId`
    *
    * Emits a {Approval} event.
    */
    function _approve(
        address to,
        uint256 tokenId,
        address owner
    ) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    uint256 public nextOwnerToExplicitlySet = 0;

    /**
    * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf().
    */
    function _setOwnersExplicit(uint256 quantity) internal {
        uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet;
        require(quantity > 0, "quantity must be nonzero");
        uint256 endIndex = oldNextOwnerToSet + quantity - 1;
        if (endIndex > collectionSize - 1) {
            endIndex = collectionSize - 1;
        }
        // We know if the last one in the group exists, all in the group exist, due to serial ordering.
        require(_exists(endIndex), "not enough minted yet for this cleanup");
        for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) {
            if (_ownerships[i].addr == address(0)) {
                TokenOwnership memory ownership = ownershipOf(i);
                _ownerships[i] = TokenOwnership(
                ownership.addr,
                ownership.startTimestamp
                );
            }
        }
        nextOwnerToExplicitlySet = endIndex + 1;
    }

    /**
    * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
    * The call is not executed if the target address is not a contract.
    *
    * @param from address representing the previous owner of the given token ID
    * @param to target address that will receive the tokens
    * @param tokenId uint256 ID of the token to be transferred
    * @param _data bytes optional data to send along with the call
    * @return bool whether the call correctly returned the expected magic value
    */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try
                IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data)
            returns (bytes4 retval) {
                return retval == IERC721Receiver(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721X: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
    * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
    *
    * startTokenId - the first token id to be transferred
    * quantity - the amount to be transferred
    *
    * Calling conditions:
    *
    * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
    * transferred to `to`.
    * - When `from` is zero, `tokenId` will be minted for `to`.
    */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
    * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
    * minting.
    *
    * startTokenId - the first token id to be transferred
    * quantity - the amount to be transferred
    *
    * Calling conditions:
    *
    * - when `from` and `to` are both non-zero.
    * - `from` and `to` are never both zero.
    */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

File 3 of 18 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

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

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

File 4 of 18 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 18 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to
     * 0 before setting it to a non-zero value.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

File 6 of 18 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "../utils/introspection/IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 7 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @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 {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _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 8 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 9 of 18 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

    /**
     * @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), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @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) {
        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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        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);
    }
}

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

pragma solidity ^0.8.0;

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

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

File 11 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 12 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @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 13 of 18 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 14 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 15 of 18 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 18 of 18 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @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 up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (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; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 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.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            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 (rounding == Rounding.Up && 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 down.
     *
     * 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 + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * 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 + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * 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 + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * 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 10, 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 + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","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":[],"name":"LockMaxSupply","type":"event"},{"anonymous":false,"inputs":[],"name":"LockMetadata","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"CurrentMintIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EndRoundMintIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MaxMintIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MaxMintPerTX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NFT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NextEndRoundMintIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NextRoundMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TokenDecimal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDT","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"autoStageChange","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMaxSupplyLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMetadataLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"uint256","name":"_CallerPublicSaleKey","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","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":"address[]","name":"_accounts","type":"address[]"},{"internalType":"uint256[]","name":"_quantity","type":"uint256[]"}],"name":"ownerMintBulk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royalties","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltiesPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","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":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleStage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_stage","type":"bool"}],"name":"setAutoStageChange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_Index","type":"uint256"}],"name":"setCurrentMintIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_Index","type":"uint256"}],"name":"setEndRoundMintIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_Index","type":"uint256"}],"name":"setMaxMintIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_MaxMintPerTX","type":"uint256"}],"name":"setMaxperTX","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_MintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_Index","type":"uint256"}],"name":"setNextEndRoundMintIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_Index","type":"uint256"}],"name":"setNextRoundPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_PublicSaleKey","type":"uint256"}],"name":"setPublicSaleKey","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_royalties","type":"address"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_percentage","type":"uint256"}],"name":"setRoyaltiesPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_SaleStage","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_endIndex","type":"uint256"}],"name":"setSaleStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenDecimal","type":"uint256"}],"name":"setTokenDecimal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_address","type":"address"}],"name":"setUSDTAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawWallet1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawWallet2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60c0604052600060018190556002819055600b819055610457600d556064600e55600a6012556113886013819055620f4240601455601582905560179190915560c8601855610190601955601a556102ee601b55734da56c7c284d56094b21fcc56888beeacac5336560805273ac488462d5ed9a904842e8946290698694b2391f60a0523480156200009057600080fd5b5060405180604001604052806007815260200166416e61724b657960c81b81525060405180604001604052806007815260200166414e41524b455960c81b815250600e54600d54620000f1620000eb6200020560201b60201c565b62000209565b600081116200015e5760405162461bcd60e51b815260206004820152602e60248201527f455243373231583a20636f6c6c656374696f6e206d757374206861766520612060448201526d6e6f6e7a65726f20737570706c7960901b60648201526084015b60405180910390fd5b60008211620001c05760405162461bcd60e51b815260206004820152602760248201527f455243373231583a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b606482015260840162000155565b6005620001ce8582620002fe565b506006620001dd8482620002fe565b506004919091556003555050600c805460ff60ff60b81b011916600160b81b179055620003ca565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200028457607f821691505b602082108103620002a557634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002f957600081815260208120601f850160051c81016020861015620002d45750805b601f850160051c820191505b81811015620002f557828155600101620002e0565b5050505b505050565b81516001600160401b038111156200031a576200031a62000259565b62000332816200032b84546200026f565b84620002ab565b602080601f8311600181146200036a5760008415620003515750858301515b600019600386901b1c1916600185901b178555620002f5565b600085815260208120601f198616915b828110156200039b578886015182559484019460019091019084016200037a565b5085821015620003ba5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a0516132f4620003fe600039600081816107fe0152611f320152600081816107390152611ef601526132f46000f3fe608060405234801561001057600080fd5b50600436106103c55760003560e01c80636f8b44b0116101ff578063c54e44eb1161011a578063df0995f7116100ad578063f4a0a5281161007c578063f4a0a528146107d5578063f8d8b8d8146107e8578063fca76c26146107f1578063ffeea273146107f957600080fd5b8063df0995f714610789578063e985e9c51461079c578063f053dc5c146107af578063f2fde38b146107c257600080fd5b8063d547cfb7116100e9578063d547cfb71461075b578063d5abeb0114610763578063d7224ba01461076c578063d7e45cd71461077557600080fd5b8063c54e44eb14610700578063c87b56dd14610718578063cafa8dfe1461072b578063ce3be6bb1461073457600080fd5b80639466d20611610192578063a969d1de11610161578063a969d1de146106c7578063acca6fe4146106d0578063b88d4fde146106d9578063b8ffc962146106ec57600080fd5b80639466d2061461069157806395d89b41146106a4578063989bdbb6146106ac578063a22cb465146106b457600080fd5b8063853828b6116101ce578063853828b61461065c5780638a0313b9146106645780638da5cb5b1461066d5780638db29eb21461067e57600080fd5b80636f8b44b01461062657806370a0823114610639578063715018a61461064c5780638456cb591461065457600080fd5b80633a07e840116102ef5780634f1afc4e116102825780635ec73fdc116102515780635ec73fdc146105e45780636352211e146105f7578063676dd5631461060a5780636d3f8edd1461061357600080fd5b80634f1afc4e146105a057806355eba868146105b357806355f804b3146105c65780635c975abb146105d957600080fd5b80633f4ba83a116102be5780633f4ba83a1461056957806342842e0e1461057157806347d3a991146105845780634aaca86d1461059757600080fd5b80633a07e840146105315780633ad0b9711461053a5780633ba230b11461054d5780633cda61471461056057600080fd5b80631b2ef1ca116103675780632a9e63c6116103365780632a9e63c6146104e45780632e1a7d4d146104f757806330581d8a1461050a5780633140909f1461051d57600080fd5b80631b2ef1ca1461047957806323b872dd1461048c5780632a09f2f21461049f5780632a55205a146104b257600080fd5b8063081812fc116103a3578063081812fc1461041e578063095ea7b3146104495780631134cfff1461045e57806318160ddd1461047157600080fd5b806301ffc9a7146103ca57806306fdde03146103f257806307f3934714610407575b600080fd5b6103dd6103d8366004612a14565b610820565b60405190151581526020015b60405180910390f35b6103fa610872565b6040516103e99190612a81565b61041060195481565b6040519081526020016103e9565b61043161042c366004612a94565b610904565b6040516001600160a01b0390911681526020016103e9565b61045c610457366004612ac2565b610994565b005b61045c61046c366004612a94565b610aab565b610410610ab8565b61045c610487366004612aee565b610acf565b61045c61049a366004612b10565b610f47565b61045c6104ad366004612a94565b610f52565b6104c56104c0366004612aee565b610f5f565b604080516001600160a01b0390931683526020830191909152016103e9565b61045c6104f2366004612b51565b610f92565b61045c610505366004612a94565b610fbc565b61045c610518366004612a94565b610fd0565b600c546103dd90600160b81b900460ff1681565b610410601b5481565b61045c610548366004612a94565b610fdd565b61045c61055b366004612a94565b610fea565b61041060175481565b61045c610ff7565b61045c61057f366004612b10565b611009565b61045c610592366004612a94565b611024565b61041060155481565b61045c6105ae366004612b6e565b611031565b61045c6105c1366004612b51565b611047565b61045c6105d4366004612c37565b611077565b600c5460ff166103dd565b61045c6105f2366004612d0d565b6110e9565b610431610605366004612a94565b61123b565b61041060135481565b61045c610621366004612ddc565b61124d565b61045c610634366004612a94565b611273565b610410610647366004612b51565b6112e3565b61045c611374565b61045c611386565b61045c611396565b610410601a5481565b6000546001600160a01b0316610431565b61045c61068c366004612a94565b611416565b61045c61069f366004612a94565b611423565b6103fa611430565b61045c61143f565b61045c6106c2366004612df9565b611524565b61041060145481565b61041060125481565b61045c6106e7366004612e32565b6115e8565b600c546103dd90600160b01b900460ff1681565b600c546104319061010090046001600160a01b031681565b6103fa610726366004612a94565b61161b565b61041060115481565b6104317f000000000000000000000000000000000000000000000000000000000000000081565b6103fa6116c2565b610410600d5481565b610410600b5481565b600c546103dd90600160a81b900460ff1681565b61045c610797366004612a94565b611750565b6103dd6107aa366004612eb1565b61175d565b601054610431906001600160a01b031681565b61045c6107d0366004612b51565b61178b565b61045c6107e3366004612a94565b611801565b61041060185481565b61045c61180e565b6104317f000000000000000000000000000000000000000000000000000000000000000081565b60006001600160e01b031982166380ac58cd60e01b148061085157506001600160e01b03198216635b5e139f60e01b145b8061086c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606005805461088190612edf565b80601f01602080910402602001604051908101604052809291908181526020018280546108ad90612edf565b80156108fa5780601f106108cf576101008083540402835291602001916108fa565b820191906000526020600020905b8154815290600101906020018083116108dd57829003601f168201915b5050505050905090565b6000610911826001541190565b6109785760405162461bcd60e51b815260206004820152602d60248201527f455243373231583a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600960205260409020546001600160a01b031690565b600061099f8261123b565b9050806001600160a01b0316836001600160a01b031603610a0d5760405162461bcd60e51b815260206004820152602260248201527f455243373231583a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b606482015260840161096f565b336001600160a01b0382161480610a295750610a29813361175d565b610a9b5760405162461bcd60e51b815260206004820152603960248201527f455243373231583a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000606482015260840161096f565b610aa68383836118ec565b505050565b610ab3611948565b601855565b6000600254600154610aca9190612f2f565b905090565b323314610b1e5760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604482015260640161096f565b610b266119a2565b600c546040516370a0823160e01b815233600482015260009161010090046001600160a01b0316906370a0823190602401602060405180830381865afa158015610b74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b989190612f42565b9050600083601454601354610bad9190612f5b565b610bb79190612f5b565b9050600d54610bce85610bc8610ab8565b906119e8565b1115610c185760405162461bcd60e51b81526020600482015260196024820152781391950e88151bdd185b081cdd5c1c1b1e481c995858da1959603a1b604482015260640161096f565b601b54610c2785610bc8610ab8565b1115610c815760405162461bcd60e51b8152602060048201526024808201527f546f74616c20737570706c792072656163686564206d6178206d696e7420737560448201526370706c7960e01b606482015260840161096f565b601854610c9085610bc8610ab8565b1115610cde5760405162461bcd60e51b815260206004820181905260248201527f596f7572207175616e74697479206973206f766572207468616e206c696d6974604482015260640161096f565b8260165414610d3d5760405162461bcd60e51b815260206004820152602560248201527f43616c6c6564207769746820696e636f7272656374207075626c69632073616c60448201526465206b657960d81b606482015260840161096f565b81811115610d8d5760405162461bcd60e51b815260206004820152601a60248201527f557365722062616c616e6365206973206e6f7420656e6f756768000000000000604482015260640161096f565b601254841115610ddf5760405162461bcd60e51b815260206004820152601c60248201527f4d696e742065786365656420746865206c696d69742070657220545800000000604482015260640161096f565b600060155411610e315760405162461bcd60e51b815260206004820181905260248201527f53616c65206973206e6f742061637469766520617420746865206d6f6d656e74604482015260640161096f565b60185484601754610e429190612f72565b1115610e9a5760405162461bcd60e51b815260206004820152602160248201527f537570706c79206f76657220746865207377617020737570706c79206c696d696044820152601d60fa1b606482015260840161096f565b600c54610eb79061010090046001600160a01b03163330846119fb565b336000908152601c6020526040902054610ed2908590612f72565b336000908152601c6020526040902055601754610ef0908590612f72565b601755610efd3385611a66565b601854610f08610ab8565b10610f4157600c54600160b81b900460ff1615610f4157601954601855601a5460135560158054906000610f3b83612f85565b91905055505b50505050565b610aa6838383611a80565b610f5a611948565b601655565b600080601154606484610f729190612f9e565b610f7c9190612f5b565b6010546001600160a01b03169590945092505050565b610f9a611948565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b610fc4611948565b610fcd81611dbf565b50565b610fd8611948565b601455565b610fe5611948565b601a55565b610ff2611948565b601755565b610fff611948565b611007611f8f565b565b610aa6838383604051806020016040528060008152506115e8565b61102c611948565b601955565b611039611948565b601592909255601355601855565b61104f611948565b600c80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b61107f611948565b600c54600160a81b900460ff16156110d95760405162461bcd60e51b815260206004820152601e60248201527f4f7065726174696f6e733a20436f6e7472616374206973206c6f636b65640000604482015260640161096f565b600f6110e5828261300e565b5050565b6110f1611948565b80518251146111425760405162461bcd60e51b815260206004820152601c60248201527f617272617973206d75737420686176652073616d65206c656e67746800000000604482015260640161096f565b60005b8251811015610aa657600d54611176838381518110611166576111666130cd565b6020026020010151610bc8610ab8565b11156111c05760405162461bcd60e51b81526020600482015260196024820152781391950e88151bdd185b081cdd5c1c1b1e481c995858da1959603a1b604482015260640161096f565b8181815181106111d2576111d26130cd565b60200260200101516017546111e79190612f72565b601781905550611229838281518110611202576112026130cd565b602002602001015183838151811061121c5761121c6130cd565b6020026020010151611a66565b8061123381612f85565b915050611145565b600061124682611fe1565b5192915050565b611255611948565b600c8054911515600160b81b0260ff60b81b19909216919091179055565b61127b611948565b600c54600160b01b900460ff16156112d55760405162461bcd60e51b815260206004820181905260248201527f4f7065726174696f6e733a204d617820737570706c79206973206c6f636b6564604482015260640161096f565b6112de81600355565b600d55565b60006001600160a01b03821661134f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231583a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b606482015260840161096f565b506001600160a01b03166000908152600860205260409020546001600160401b031690565b61137c611948565b611007600061214f565b61138e611948565b61100761219f565b61139e611948565b600c546040516370a0823160e01b81523060048201526110079161010090046001600160a01b0316906370a0823190602401602060405180830381865afa1580156113ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114119190612f42565b611dbf565b61141e611948565b601b55565b61142b611948565b601155565b60606006805461088190612edf565b611447611948565b600c54600160a81b900460ff16156114965760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81b1bd8dad95960721b604482015260640161096f565b6000600f80546114a590612edf565b9050116114e65760405162461bcd60e51b815260206004820152600f60248201526e10985cd9555c9a481b9bdd081cd95d608a1b604482015260640161096f565b600c805460ff60a81b1916600160a81b1790556040517f95a231e0e633252fd44273c53079a71e951df22e856f058d0114c54c6430e81c90600090a1565b336001600160a01b0383160361157c5760405162461bcd60e51b815260206004820152601a60248201527f455243373231583a20617070726f766520746f2063616c6c6572000000000000604482015260640161096f565b336000818152600a602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6115f3848484611a80565b6115ff848484846121dc565b610f415760405162461bcd60e51b815260040161096f906130e3565b6060611628826001541190565b6116665760405162461bcd60e51b815260206004820152600f60248201526e125b9d985b1a59081d1bdad95b9259608a1b604482015260640161096f565b6000600f805461167590612edf565b905011611691576040518060200160405280600081525061086c565b600f61169c836122de565b6040516020016116ad929190613136565b60405160208183030381529060405292915050565b600f80546116cf90612edf565b80601f01602080910402602001604051908101604052809291908181526020018280546116fb90612edf565b80156117485780601f1061171d57610100808354040283529160200191611748565b820191906000526020600020905b81548152906001019060200180831161172b57829003601f168201915b505050505081565b611758611948565b601255565b6001600160a01b039182166000908152600a6020908152604080832093909416825291909152205460ff1690565b611793611948565b6001600160a01b0381166117f85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161096f565b610fcd8161214f565b611809611948565b601355565b611816611948565b600c54600160b01b900460ff16156118675760405162461bcd60e51b815260206004820152601460248201527313585e081cdd5c1c1b1e481a5cc81b1bd8dad95960621b604482015260640161096f565b6000600d54116118ae5760405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481b9bdd081cd95d60721b604482015260640161096f565b600c805460ff60b01b1916600160b01b1790556040517fcb05127102e959540e425cdbe8127c6ae5cdff90f0ba6763e98b7ddc818f7fb890600090a1565b60008281526009602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000546001600160a01b031633146110075760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161096f565b600c5460ff16156110075760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161096f565b60006119f48284612f72565b9392505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610f419085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612370565b6110e5828260405180602001604052806000815250612445565b6000611a8b82611fe1565b9050611a9733836126a7565b611afe5760405162461bcd60e51b815260206004820152603260248201527f455243373231583a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161096f565b836001600160a01b031681600001516001600160a01b031614611b725760405162461bcd60e51b815260206004820152602660248201527f455243373231583a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b606482015260840161096f565b6001600160a01b038316611bd65760405162461bcd60e51b815260206004820152602560248201527f455243373231583a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b606482015260840161096f565b611be660008383600001516118ec565b6001600160a01b0384166000908152600860205260408120805460019290611c189084906001600160401b03166131cd565b82546101009290920a6001600160401b038181021990931691831602179091556001600160a01b03851660009081526008602052604081208054600194509092611c64918591166131f4565b82546101009290920a6001600160401b038181021990931691831602179091556040805180820182526001600160a01b03878116825242841660208084019182526000898152600790915293842092518354915192166001600160e01b031990911617600160a01b9190941602929092179091559050611ce5836001612f72565b6000818152600760205260409020549091506001600160a01b0316611d7657611d0f816001541190565b15611d765760408051808201825283516001600160a01b0390811682526020808601516001600160401b039081168285019081526000878152600790935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b600c546040516370a0823160e01b81523060048201526101009091046001600160a01b0316906370a0823190602401602060405180830381865afa158015611e0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e2f9190612f42565b811115611e715760405162461bcd60e51b815260206004820152601060248201526f616d6f756e74203e2062616c616e636560801b604482015260640161096f565b60008111611eb05760405162461bcd60e51b815260206004820152600c60248201526b115b5c1d1e48185b5bdd5b9d60a21b604482015260640161096f565b6000611ec86064611ec2846032612772565b9061277e565b90506000611edc6064611ec2856032612772565b600c54909150611f1b9061010090046001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000008461278a565b600c54611f579061010090046001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000008361278a565b6040518381527f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d9060200160405180910390a1505050565b611f976127ba565b600c805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6040805180820190915260008082526020820152612000826001541190565b61205f5760405162461bcd60e51b815260206004820152602a60248201527f455243373231583a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b606482015260840161096f565b60006004548310612085576004546120779084612f2f565b612082906001612f72565b90505b825b8181106120ee576000818152600760209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b031691830191909152156120db57949350505050565b50806120e681613214565b915050612087565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231583a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b606482015260840161096f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6121a76119a2565b600c805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611fc43390565b60006001600160a01b0384163b156122d257604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061222090339089908890889060040161322b565b6020604051808303816000875af192505050801561225b575060408051601f3d908101601f1916820190925261225891810190613268565b60015b6122b8573d808015612289576040519150601f19603f3d011682016040523d82523d6000602084013e61228e565b606091505b5080516000036122b05760405162461bcd60e51b815260040161096f906130e3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506122d6565b5060015b949350505050565b606060006122eb83612803565b60010190506000816001600160401b0381111561230a5761230a612b9a565b6040519080825280601f01601f191660200182016040528015612334576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461233e57509392505050565b60006123c5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166128db9092919063ffffffff16565b90508051600014806123e65750808060200190518101906123e69190613285565b610aa65760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161096f565b6001546001600160a01b0384166124a85760405162461bcd60e51b815260206004820152602160248201527f455243373231583a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161096f565b6124b3816001541190565b156125005760405162461bcd60e51b815260206004820152601d60248201527f455243373231583a20746f6b656e20616c7265616479206d696e746564000000604482015260640161096f565b60045483111561256d5760405162461bcd60e51b815260206004820152603260248201527f455243373231583a207175616e7469747920746f206d696e74206f766572207460448201527168616e206d61782062617463682073697a6560701b606482015260840161096f565b6001600160a01b0380851660008181526008602090815260408083208054680100000000000000006001600160401b038083168c01811667ffffffffffffffff198416811783900482168d0182169092026fffffffffffffffffffffffffffffffff1990931690911791909117909155815180830183529485524281168584019081528785526007909352908320935184549251909116600160a01b026001600160e01b031990921694169390931792909217905581905b8481101561269c5760405160019092019182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461267860008784876121dc565b6126945760405162461bcd60e51b815260040161096f906130e3565b600101612625565b506001819055611db8565b60006126b4826001541190565b6127165760405162461bcd60e51b815260206004820152602d60248201527f455243373231583a206f70657261746f7220717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b606482015260840161096f565b600061272183611fe1565b905080600001516001600160a01b0316846001600160a01b031614806127605750836001600160a01b031661275584610904565b6001600160a01b0316145b806122d6575080516122d6908561175d565b60006119f48284612f5b565b60006119f48284612f9e565b6040516001600160a01b038316602482015260448101829052610aa690849063a9059cbb60e01b90606401611a2f565b600c5460ff166110075760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161096f565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106128425772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061286e576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061288c57662386f26fc10000830492506010015b6305f5e10083106128a4576305f5e100830492506008015b61271083106128b857612710830492506004015b606483106128ca576064830492506002015b600a831061086c5760010192915050565b60606122d6848460008585600080866001600160a01b0316858760405161290291906132a2565b60006040518083038185875af1925050503d806000811461293f576040519150601f19603f3d011682016040523d82523d6000602084013e612944565b606091505b509150915061295587838387612960565b979650505050505050565b606083156129cf5782516000036129c8576001600160a01b0385163b6129c85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161096f565b50816122d6565b6122d683838151156129e45781518083602001fd5b8060405162461bcd60e51b815260040161096f9190612a81565b6001600160e01b031981168114610fcd57600080fd5b600060208284031215612a2657600080fd5b81356119f4816129fe565b60005b83811015612a4c578181015183820152602001612a34565b50506000910152565b60008151808452612a6d816020860160208601612a31565b601f01601f19169290920160200192915050565b6020815260006119f46020830184612a55565b600060208284031215612aa657600080fd5b5035919050565b6001600160a01b0381168114610fcd57600080fd5b60008060408385031215612ad557600080fd5b8235612ae081612aad565b946020939093013593505050565b60008060408385031215612b0157600080fd5b50508035926020909101359150565b600080600060608486031215612b2557600080fd5b8335612b3081612aad565b92506020840135612b4081612aad565b929592945050506040919091013590565b600060208284031215612b6357600080fd5b81356119f481612aad565b600080600060608486031215612b8357600080fd5b505081359360208301359350604090920135919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612bd857612bd8612b9a565b604052919050565b60006001600160401b03831115612bf957612bf9612b9a565b612c0c601f8401601f1916602001612bb0565b9050828152838383011115612c2057600080fd5b828260208301376000602084830101529392505050565b600060208284031215612c4957600080fd5b81356001600160401b03811115612c5f57600080fd5b8201601f81018413612c7057600080fd5b6122d684823560208401612be0565b60006001600160401b03821115612c9857612c98612b9a565b5060051b60200190565b600082601f830112612cb357600080fd5b81356020612cc8612cc383612c7f565b612bb0565b82815260059290921b84018101918181019086841115612ce757600080fd5b8286015b84811015612d025780358352918301918301612ceb565b509695505050505050565b60008060408385031215612d2057600080fd5b82356001600160401b0380821115612d3757600080fd5b818501915085601f830112612d4b57600080fd5b81356020612d5b612cc383612c7f565b82815260059290921b84018101918181019089841115612d7a57600080fd5b948201945b83861015612da1578535612d9281612aad565b82529482019490820190612d7f565b96505086013592505080821115612db757600080fd5b50612dc485828601612ca2565b9150509250929050565b8015158114610fcd57600080fd5b600060208284031215612dee57600080fd5b81356119f481612dce565b60008060408385031215612e0c57600080fd5b8235612e1781612aad565b91506020830135612e2781612dce565b809150509250929050565b60008060008060808587031215612e4857600080fd5b8435612e5381612aad565b93506020850135612e6381612aad565b92506040850135915060608501356001600160401b03811115612e8557600080fd5b8501601f81018713612e9657600080fd5b612ea587823560208401612be0565b91505092959194509250565b60008060408385031215612ec457600080fd5b8235612ecf81612aad565b91506020830135612e2781612aad565b600181811c90821680612ef357607f821691505b602082108103612f1357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561086c5761086c612f19565b600060208284031215612f5457600080fd5b5051919050565b808202811582820484141761086c5761086c612f19565b8082018082111561086c5761086c612f19565b600060018201612f9757612f97612f19565b5060010190565b600082612fbb57634e487b7160e01b600052601260045260246000fd5b500490565b601f821115610aa657600081815260208120601f850160051c81016020861015612fe75750805b601f850160051c820191505b8181101561300657828155600101612ff3565b505050505050565b81516001600160401b0381111561302757613027612b9a565b61303b816130358454612edf565b84612fc0565b602080601f83116001811461307057600084156130585750858301515b600019600386901b1c1916600185901b178555613006565b600085815260208120601f198616915b8281101561309f57888601518255948401946001909101908401613080565b50858210156130bd5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b60208082526033908201527f455243373231583a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b600080845461314481612edf565b6001828116801561315c5760018114613171576131a0565b60ff19841687528215158302870194506131a0565b8860005260208060002060005b858110156131975781548a82015290840190820161317e565b50505082870194505b5050505083516131b4818360208801612a31565b64173539b7b760d91b9101908152600501949350505050565b6001600160401b038281168282160390808211156131ed576131ed612f19565b5092915050565b6001600160401b038181168382160190808211156131ed576131ed612f19565b60008161322357613223612f19565b506000190190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061325e90830184612a55565b9695505050505050565b60006020828403121561327a57600080fd5b81516119f4816129fe565b60006020828403121561329757600080fd5b81516119f481612dce565b600082516132b4818460208701612a31565b919091019291505056fea2646970667358221220b98c648696ccc8fc5e7bc00282537d70a86efe13839fabd365f0bc5b39261b2f64736f6c63430008120033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103c55760003560e01c80636f8b44b0116101ff578063c54e44eb1161011a578063df0995f7116100ad578063f4a0a5281161007c578063f4a0a528146107d5578063f8d8b8d8146107e8578063fca76c26146107f1578063ffeea273146107f957600080fd5b8063df0995f714610789578063e985e9c51461079c578063f053dc5c146107af578063f2fde38b146107c257600080fd5b8063d547cfb7116100e9578063d547cfb71461075b578063d5abeb0114610763578063d7224ba01461076c578063d7e45cd71461077557600080fd5b8063c54e44eb14610700578063c87b56dd14610718578063cafa8dfe1461072b578063ce3be6bb1461073457600080fd5b80639466d20611610192578063a969d1de11610161578063a969d1de146106c7578063acca6fe4146106d0578063b88d4fde146106d9578063b8ffc962146106ec57600080fd5b80639466d2061461069157806395d89b41146106a4578063989bdbb6146106ac578063a22cb465146106b457600080fd5b8063853828b6116101ce578063853828b61461065c5780638a0313b9146106645780638da5cb5b1461066d5780638db29eb21461067e57600080fd5b80636f8b44b01461062657806370a0823114610639578063715018a61461064c5780638456cb591461065457600080fd5b80633a07e840116102ef5780634f1afc4e116102825780635ec73fdc116102515780635ec73fdc146105e45780636352211e146105f7578063676dd5631461060a5780636d3f8edd1461061357600080fd5b80634f1afc4e146105a057806355eba868146105b357806355f804b3146105c65780635c975abb146105d957600080fd5b80633f4ba83a116102be5780633f4ba83a1461056957806342842e0e1461057157806347d3a991146105845780634aaca86d1461059757600080fd5b80633a07e840146105315780633ad0b9711461053a5780633ba230b11461054d5780633cda61471461056057600080fd5b80631b2ef1ca116103675780632a9e63c6116103365780632a9e63c6146104e45780632e1a7d4d146104f757806330581d8a1461050a5780633140909f1461051d57600080fd5b80631b2ef1ca1461047957806323b872dd1461048c5780632a09f2f21461049f5780632a55205a146104b257600080fd5b8063081812fc116103a3578063081812fc1461041e578063095ea7b3146104495780631134cfff1461045e57806318160ddd1461047157600080fd5b806301ffc9a7146103ca57806306fdde03146103f257806307f3934714610407575b600080fd5b6103dd6103d8366004612a14565b610820565b60405190151581526020015b60405180910390f35b6103fa610872565b6040516103e99190612a81565b61041060195481565b6040519081526020016103e9565b61043161042c366004612a94565b610904565b6040516001600160a01b0390911681526020016103e9565b61045c610457366004612ac2565b610994565b005b61045c61046c366004612a94565b610aab565b610410610ab8565b61045c610487366004612aee565b610acf565b61045c61049a366004612b10565b610f47565b61045c6104ad366004612a94565b610f52565b6104c56104c0366004612aee565b610f5f565b604080516001600160a01b0390931683526020830191909152016103e9565b61045c6104f2366004612b51565b610f92565b61045c610505366004612a94565b610fbc565b61045c610518366004612a94565b610fd0565b600c546103dd90600160b81b900460ff1681565b610410601b5481565b61045c610548366004612a94565b610fdd565b61045c61055b366004612a94565b610fea565b61041060175481565b61045c610ff7565b61045c61057f366004612b10565b611009565b61045c610592366004612a94565b611024565b61041060155481565b61045c6105ae366004612b6e565b611031565b61045c6105c1366004612b51565b611047565b61045c6105d4366004612c37565b611077565b600c5460ff166103dd565b61045c6105f2366004612d0d565b6110e9565b610431610605366004612a94565b61123b565b61041060135481565b61045c610621366004612ddc565b61124d565b61045c610634366004612a94565b611273565b610410610647366004612b51565b6112e3565b61045c611374565b61045c611386565b61045c611396565b610410601a5481565b6000546001600160a01b0316610431565b61045c61068c366004612a94565b611416565b61045c61069f366004612a94565b611423565b6103fa611430565b61045c61143f565b61045c6106c2366004612df9565b611524565b61041060145481565b61041060125481565b61045c6106e7366004612e32565b6115e8565b600c546103dd90600160b01b900460ff1681565b600c546104319061010090046001600160a01b031681565b6103fa610726366004612a94565b61161b565b61041060115481565b6104317f0000000000000000000000004da56c7c284d56094b21fcc56888beeacac5336581565b6103fa6116c2565b610410600d5481565b610410600b5481565b600c546103dd90600160a81b900460ff1681565b61045c610797366004612a94565b611750565b6103dd6107aa366004612eb1565b61175d565b601054610431906001600160a01b031681565b61045c6107d0366004612b51565b61178b565b61045c6107e3366004612a94565b611801565b61041060185481565b61045c61180e565b6104317f000000000000000000000000ac488462d5ed9a904842e8946290698694b2391f81565b60006001600160e01b031982166380ac58cd60e01b148061085157506001600160e01b03198216635b5e139f60e01b145b8061086c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606005805461088190612edf565b80601f01602080910402602001604051908101604052809291908181526020018280546108ad90612edf565b80156108fa5780601f106108cf576101008083540402835291602001916108fa565b820191906000526020600020905b8154815290600101906020018083116108dd57829003601f168201915b5050505050905090565b6000610911826001541190565b6109785760405162461bcd60e51b815260206004820152602d60248201527f455243373231583a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600960205260409020546001600160a01b031690565b600061099f8261123b565b9050806001600160a01b0316836001600160a01b031603610a0d5760405162461bcd60e51b815260206004820152602260248201527f455243373231583a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b606482015260840161096f565b336001600160a01b0382161480610a295750610a29813361175d565b610a9b5760405162461bcd60e51b815260206004820152603960248201527f455243373231583a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000606482015260840161096f565b610aa68383836118ec565b505050565b610ab3611948565b601855565b6000600254600154610aca9190612f2f565b905090565b323314610b1e5760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604482015260640161096f565b610b266119a2565b600c546040516370a0823160e01b815233600482015260009161010090046001600160a01b0316906370a0823190602401602060405180830381865afa158015610b74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b989190612f42565b9050600083601454601354610bad9190612f5b565b610bb79190612f5b565b9050600d54610bce85610bc8610ab8565b906119e8565b1115610c185760405162461bcd60e51b81526020600482015260196024820152781391950e88151bdd185b081cdd5c1c1b1e481c995858da1959603a1b604482015260640161096f565b601b54610c2785610bc8610ab8565b1115610c815760405162461bcd60e51b8152602060048201526024808201527f546f74616c20737570706c792072656163686564206d6178206d696e7420737560448201526370706c7960e01b606482015260840161096f565b601854610c9085610bc8610ab8565b1115610cde5760405162461bcd60e51b815260206004820181905260248201527f596f7572207175616e74697479206973206f766572207468616e206c696d6974604482015260640161096f565b8260165414610d3d5760405162461bcd60e51b815260206004820152602560248201527f43616c6c6564207769746820696e636f7272656374207075626c69632073616c60448201526465206b657960d81b606482015260840161096f565b81811115610d8d5760405162461bcd60e51b815260206004820152601a60248201527f557365722062616c616e6365206973206e6f7420656e6f756768000000000000604482015260640161096f565b601254841115610ddf5760405162461bcd60e51b815260206004820152601c60248201527f4d696e742065786365656420746865206c696d69742070657220545800000000604482015260640161096f565b600060155411610e315760405162461bcd60e51b815260206004820181905260248201527f53616c65206973206e6f742061637469766520617420746865206d6f6d656e74604482015260640161096f565b60185484601754610e429190612f72565b1115610e9a5760405162461bcd60e51b815260206004820152602160248201527f537570706c79206f76657220746865207377617020737570706c79206c696d696044820152601d60fa1b606482015260840161096f565b600c54610eb79061010090046001600160a01b03163330846119fb565b336000908152601c6020526040902054610ed2908590612f72565b336000908152601c6020526040902055601754610ef0908590612f72565b601755610efd3385611a66565b601854610f08610ab8565b10610f4157600c54600160b81b900460ff1615610f4157601954601855601a5460135560158054906000610f3b83612f85565b91905055505b50505050565b610aa6838383611a80565b610f5a611948565b601655565b600080601154606484610f729190612f9e565b610f7c9190612f5b565b6010546001600160a01b03169590945092505050565b610f9a611948565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b610fc4611948565b610fcd81611dbf565b50565b610fd8611948565b601455565b610fe5611948565b601a55565b610ff2611948565b601755565b610fff611948565b611007611f8f565b565b610aa6838383604051806020016040528060008152506115e8565b61102c611948565b601955565b611039611948565b601592909255601355601855565b61104f611948565b600c80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b61107f611948565b600c54600160a81b900460ff16156110d95760405162461bcd60e51b815260206004820152601e60248201527f4f7065726174696f6e733a20436f6e7472616374206973206c6f636b65640000604482015260640161096f565b600f6110e5828261300e565b5050565b6110f1611948565b80518251146111425760405162461bcd60e51b815260206004820152601c60248201527f617272617973206d75737420686176652073616d65206c656e67746800000000604482015260640161096f565b60005b8251811015610aa657600d54611176838381518110611166576111666130cd565b6020026020010151610bc8610ab8565b11156111c05760405162461bcd60e51b81526020600482015260196024820152781391950e88151bdd185b081cdd5c1c1b1e481c995858da1959603a1b604482015260640161096f565b8181815181106111d2576111d26130cd565b60200260200101516017546111e79190612f72565b601781905550611229838281518110611202576112026130cd565b602002602001015183838151811061121c5761121c6130cd565b6020026020010151611a66565b8061123381612f85565b915050611145565b600061124682611fe1565b5192915050565b611255611948565b600c8054911515600160b81b0260ff60b81b19909216919091179055565b61127b611948565b600c54600160b01b900460ff16156112d55760405162461bcd60e51b815260206004820181905260248201527f4f7065726174696f6e733a204d617820737570706c79206973206c6f636b6564604482015260640161096f565b6112de81600355565b600d55565b60006001600160a01b03821661134f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231583a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b606482015260840161096f565b506001600160a01b03166000908152600860205260409020546001600160401b031690565b61137c611948565b611007600061214f565b61138e611948565b61100761219f565b61139e611948565b600c546040516370a0823160e01b81523060048201526110079161010090046001600160a01b0316906370a0823190602401602060405180830381865afa1580156113ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114119190612f42565b611dbf565b61141e611948565b601b55565b61142b611948565b601155565b60606006805461088190612edf565b611447611948565b600c54600160a81b900460ff16156114965760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81b1bd8dad95960721b604482015260640161096f565b6000600f80546114a590612edf565b9050116114e65760405162461bcd60e51b815260206004820152600f60248201526e10985cd9555c9a481b9bdd081cd95d608a1b604482015260640161096f565b600c805460ff60a81b1916600160a81b1790556040517f95a231e0e633252fd44273c53079a71e951df22e856f058d0114c54c6430e81c90600090a1565b336001600160a01b0383160361157c5760405162461bcd60e51b815260206004820152601a60248201527f455243373231583a20617070726f766520746f2063616c6c6572000000000000604482015260640161096f565b336000818152600a602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6115f3848484611a80565b6115ff848484846121dc565b610f415760405162461bcd60e51b815260040161096f906130e3565b6060611628826001541190565b6116665760405162461bcd60e51b815260206004820152600f60248201526e125b9d985b1a59081d1bdad95b9259608a1b604482015260640161096f565b6000600f805461167590612edf565b905011611691576040518060200160405280600081525061086c565b600f61169c836122de565b6040516020016116ad929190613136565b60405160208183030381529060405292915050565b600f80546116cf90612edf565b80601f01602080910402602001604051908101604052809291908181526020018280546116fb90612edf565b80156117485780601f1061171d57610100808354040283529160200191611748565b820191906000526020600020905b81548152906001019060200180831161172b57829003601f168201915b505050505081565b611758611948565b601255565b6001600160a01b039182166000908152600a6020908152604080832093909416825291909152205460ff1690565b611793611948565b6001600160a01b0381166117f85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161096f565b610fcd8161214f565b611809611948565b601355565b611816611948565b600c54600160b01b900460ff16156118675760405162461bcd60e51b815260206004820152601460248201527313585e081cdd5c1c1b1e481a5cc81b1bd8dad95960621b604482015260640161096f565b6000600d54116118ae5760405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481b9bdd081cd95d60721b604482015260640161096f565b600c805460ff60b01b1916600160b01b1790556040517fcb05127102e959540e425cdbe8127c6ae5cdff90f0ba6763e98b7ddc818f7fb890600090a1565b60008281526009602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000546001600160a01b031633146110075760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161096f565b600c5460ff16156110075760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161096f565b60006119f48284612f72565b9392505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610f419085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612370565b6110e5828260405180602001604052806000815250612445565b6000611a8b82611fe1565b9050611a9733836126a7565b611afe5760405162461bcd60e51b815260206004820152603260248201527f455243373231583a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161096f565b836001600160a01b031681600001516001600160a01b031614611b725760405162461bcd60e51b815260206004820152602660248201527f455243373231583a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b606482015260840161096f565b6001600160a01b038316611bd65760405162461bcd60e51b815260206004820152602560248201527f455243373231583a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b606482015260840161096f565b611be660008383600001516118ec565b6001600160a01b0384166000908152600860205260408120805460019290611c189084906001600160401b03166131cd565b82546101009290920a6001600160401b038181021990931691831602179091556001600160a01b03851660009081526008602052604081208054600194509092611c64918591166131f4565b82546101009290920a6001600160401b038181021990931691831602179091556040805180820182526001600160a01b03878116825242841660208084019182526000898152600790915293842092518354915192166001600160e01b031990911617600160a01b9190941602929092179091559050611ce5836001612f72565b6000818152600760205260409020549091506001600160a01b0316611d7657611d0f816001541190565b15611d765760408051808201825283516001600160a01b0390811682526020808601516001600160401b039081168285019081526000878152600790935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b600c546040516370a0823160e01b81523060048201526101009091046001600160a01b0316906370a0823190602401602060405180830381865afa158015611e0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e2f9190612f42565b811115611e715760405162461bcd60e51b815260206004820152601060248201526f616d6f756e74203e2062616c616e636560801b604482015260640161096f565b60008111611eb05760405162461bcd60e51b815260206004820152600c60248201526b115b5c1d1e48185b5bdd5b9d60a21b604482015260640161096f565b6000611ec86064611ec2846032612772565b9061277e565b90506000611edc6064611ec2856032612772565b600c54909150611f1b9061010090046001600160a01b03167f0000000000000000000000004da56c7c284d56094b21fcc56888beeacac533658461278a565b600c54611f579061010090046001600160a01b03167f000000000000000000000000ac488462d5ed9a904842e8946290698694b2391f8361278a565b6040518381527f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d9060200160405180910390a1505050565b611f976127ba565b600c805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6040805180820190915260008082526020820152612000826001541190565b61205f5760405162461bcd60e51b815260206004820152602a60248201527f455243373231583a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b606482015260840161096f565b60006004548310612085576004546120779084612f2f565b612082906001612f72565b90505b825b8181106120ee576000818152600760209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b031691830191909152156120db57949350505050565b50806120e681613214565b915050612087565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231583a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b606482015260840161096f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6121a76119a2565b600c805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611fc43390565b60006001600160a01b0384163b156122d257604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061222090339089908890889060040161322b565b6020604051808303816000875af192505050801561225b575060408051601f3d908101601f1916820190925261225891810190613268565b60015b6122b8573d808015612289576040519150601f19603f3d011682016040523d82523d6000602084013e61228e565b606091505b5080516000036122b05760405162461bcd60e51b815260040161096f906130e3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506122d6565b5060015b949350505050565b606060006122eb83612803565b60010190506000816001600160401b0381111561230a5761230a612b9a565b6040519080825280601f01601f191660200182016040528015612334576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461233e57509392505050565b60006123c5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166128db9092919063ffffffff16565b90508051600014806123e65750808060200190518101906123e69190613285565b610aa65760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161096f565b6001546001600160a01b0384166124a85760405162461bcd60e51b815260206004820152602160248201527f455243373231583a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161096f565b6124b3816001541190565b156125005760405162461bcd60e51b815260206004820152601d60248201527f455243373231583a20746f6b656e20616c7265616479206d696e746564000000604482015260640161096f565b60045483111561256d5760405162461bcd60e51b815260206004820152603260248201527f455243373231583a207175616e7469747920746f206d696e74206f766572207460448201527168616e206d61782062617463682073697a6560701b606482015260840161096f565b6001600160a01b0380851660008181526008602090815260408083208054680100000000000000006001600160401b038083168c01811667ffffffffffffffff198416811783900482168d0182169092026fffffffffffffffffffffffffffffffff1990931690911791909117909155815180830183529485524281168584019081528785526007909352908320935184549251909116600160a01b026001600160e01b031990921694169390931792909217905581905b8481101561269c5760405160019092019182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461267860008784876121dc565b6126945760405162461bcd60e51b815260040161096f906130e3565b600101612625565b506001819055611db8565b60006126b4826001541190565b6127165760405162461bcd60e51b815260206004820152602d60248201527f455243373231583a206f70657261746f7220717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b606482015260840161096f565b600061272183611fe1565b905080600001516001600160a01b0316846001600160a01b031614806127605750836001600160a01b031661275584610904565b6001600160a01b0316145b806122d6575080516122d6908561175d565b60006119f48284612f5b565b60006119f48284612f9e565b6040516001600160a01b038316602482015260448101829052610aa690849063a9059cbb60e01b90606401611a2f565b600c5460ff166110075760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161096f565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106128425772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061286e576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061288c57662386f26fc10000830492506010015b6305f5e10083106128a4576305f5e100830492506008015b61271083106128b857612710830492506004015b606483106128ca576064830492506002015b600a831061086c5760010192915050565b60606122d6848460008585600080866001600160a01b0316858760405161290291906132a2565b60006040518083038185875af1925050503d806000811461293f576040519150601f19603f3d011682016040523d82523d6000602084013e612944565b606091505b509150915061295587838387612960565b979650505050505050565b606083156129cf5782516000036129c8576001600160a01b0385163b6129c85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161096f565b50816122d6565b6122d683838151156129e45781518083602001fd5b8060405162461bcd60e51b815260040161096f9190612a81565b6001600160e01b031981168114610fcd57600080fd5b600060208284031215612a2657600080fd5b81356119f4816129fe565b60005b83811015612a4c578181015183820152602001612a34565b50506000910152565b60008151808452612a6d816020860160208601612a31565b601f01601f19169290920160200192915050565b6020815260006119f46020830184612a55565b600060208284031215612aa657600080fd5b5035919050565b6001600160a01b0381168114610fcd57600080fd5b60008060408385031215612ad557600080fd5b8235612ae081612aad565b946020939093013593505050565b60008060408385031215612b0157600080fd5b50508035926020909101359150565b600080600060608486031215612b2557600080fd5b8335612b3081612aad565b92506020840135612b4081612aad565b929592945050506040919091013590565b600060208284031215612b6357600080fd5b81356119f481612aad565b600080600060608486031215612b8357600080fd5b505081359360208301359350604090920135919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612bd857612bd8612b9a565b604052919050565b60006001600160401b03831115612bf957612bf9612b9a565b612c0c601f8401601f1916602001612bb0565b9050828152838383011115612c2057600080fd5b828260208301376000602084830101529392505050565b600060208284031215612c4957600080fd5b81356001600160401b03811115612c5f57600080fd5b8201601f81018413612c7057600080fd5b6122d684823560208401612be0565b60006001600160401b03821115612c9857612c98612b9a565b5060051b60200190565b600082601f830112612cb357600080fd5b81356020612cc8612cc383612c7f565b612bb0565b82815260059290921b84018101918181019086841115612ce757600080fd5b8286015b84811015612d025780358352918301918301612ceb565b509695505050505050565b60008060408385031215612d2057600080fd5b82356001600160401b0380821115612d3757600080fd5b818501915085601f830112612d4b57600080fd5b81356020612d5b612cc383612c7f565b82815260059290921b84018101918181019089841115612d7a57600080fd5b948201945b83861015612da1578535612d9281612aad565b82529482019490820190612d7f565b96505086013592505080821115612db757600080fd5b50612dc485828601612ca2565b9150509250929050565b8015158114610fcd57600080fd5b600060208284031215612dee57600080fd5b81356119f481612dce565b60008060408385031215612e0c57600080fd5b8235612e1781612aad565b91506020830135612e2781612dce565b809150509250929050565b60008060008060808587031215612e4857600080fd5b8435612e5381612aad565b93506020850135612e6381612aad565b92506040850135915060608501356001600160401b03811115612e8557600080fd5b8501601f81018713612e9657600080fd5b612ea587823560208401612be0565b91505092959194509250565b60008060408385031215612ec457600080fd5b8235612ecf81612aad565b91506020830135612e2781612aad565b600181811c90821680612ef357607f821691505b602082108103612f1357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561086c5761086c612f19565b600060208284031215612f5457600080fd5b5051919050565b808202811582820484141761086c5761086c612f19565b8082018082111561086c5761086c612f19565b600060018201612f9757612f97612f19565b5060010190565b600082612fbb57634e487b7160e01b600052601260045260246000fd5b500490565b601f821115610aa657600081815260208120601f850160051c81016020861015612fe75750805b601f850160051c820191505b8181101561300657828155600101612ff3565b505050505050565b81516001600160401b0381111561302757613027612b9a565b61303b816130358454612edf565b84612fc0565b602080601f83116001811461307057600084156130585750858301515b600019600386901b1c1916600185901b178555613006565b600085815260208120601f198616915b8281101561309f57888601518255948401946001909101908401613080565b50858210156130bd5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b60208082526033908201527f455243373231583a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b600080845461314481612edf565b6001828116801561315c5760018114613171576131a0565b60ff19841687528215158302870194506131a0565b8860005260208060002060005b858110156131975781548a82015290840190820161317e565b50505082870194505b5050505083516131b4818360208801612a31565b64173539b7b760d91b9101908152600501949350505050565b6001600160401b038281168282160390808211156131ed576131ed612f19565b5092915050565b6001600160401b038181168382160190808211156131ed576131ed612f19565b60008161322357613223612f19565b506000190190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061325e90830184612a55565b9695505050505050565b60006020828403121561327a57600080fd5b81516119f4816129fe565b60006020828403121561329757600080fd5b81516119f481612dce565b600082516132b4818460208701612a31565b919091019291505056fea2646970667358221220b98c648696ccc8fc5e7bc00282537d70a86efe13839fabd365f0bc5b39261b2f64736f6c63430008120033

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.