ETH Price: $3,391.83 (-0.86%)
Gas: 7.72 Gwei

Token

NO HANDLE (NO)
 

Overview

Max Total Supply

10,000 NO

Holders

79

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
2.936923209096799322 NO

Value
$0.00
0x4aa597aa3839a2c554abb717e7d3af595cf621cb
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:
NOHANDLE

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2024-02-15
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/// @title DN404
/// @notice DN404 is a hybrid ERC20 and ERC721 implementation that mints
/// and burns NFTs based on an account's ERC20 token balance.
///
/// @author vectorized.eth (@optimizoor)
/// @author Quit (@0xQuit)
/// @author Michael Amadi (@AmadiMichaels)
/// @author cygaar (@0xCygaar)
/// @author Thomas (@0xjustadev)
/// @author Harrison (@PopPunkOnChain)
///
/// @dev Note:
/// - The ERC721 data is stored in this base DN404 contract, however a
///   DN404Mirror contract ***MUST*** be deployed and linked during
///   initialization.
abstract contract DN404 {
    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                           EVENTS                           */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Emitted when `amount` tokens is transferred from `from` to `to`.
    event Transfer(address indexed from, address indexed to, uint256 amount);

    /// @dev Emitted when `amount` tokens is approved by `owner` to be used by `spender`.
    event Approval(address indexed owner, address indexed spender, uint256 amount);

    /// @dev Emitted when `target` sets their skipNFT flag to `status`.
    event SkipNFTSet(address indexed target, bool status);

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                        CUSTOM ERRORS                       */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Thrown when attempting to double-initialize the contract.
    error DNAlreadyInitialized();

    /// @dev Thrown when attempting to transfer or burn more tokens than sender's balance.
    error InsufficientBalance();

    /// @dev Thrown when a spender attempts to transfer tokens with an insufficient allowance.
    error InsufficientAllowance();

    /// @dev Thrown when minting an amount of tokens that would overflow the max tokens.
    error TotalSupplyOverflow();

    /// @dev Thrown when the caller for a fallback NFT function is not the mirror contract.
    error SenderNotMirror();

    /// @dev Thrown when attempting to transfer tokens to the zero address.
    error TransferToZeroAddress();

    /// @dev Thrown when the mirror address provided for initialization is the zero address.
    error MirrorAddressIsZero();

    /// @dev Thrown when the link call to the mirror contract reverts.
    error LinkMirrorContractFailed();

    /// @dev Thrown when setting an NFT token approval
    /// and the caller is not the owner or an approved operator.
    error ApprovalCallerNotOwnerNorApproved();

    /// @dev Thrown when transferring an NFT
    /// and the caller is not the owner or an approved operator.
    error TransferCallerNotOwnerNorApproved();

    /// @dev Thrown when transferring an NFT and the from address is not the current owner.
    error TransferFromIncorrectOwner();

    /// @dev Thrown when checking the owner or approved address for an non-existent NFT.
    error TokenDoesNotExist();

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                         CONSTANTS                          */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Amount of token balance that is equal to one NFT.
    uint256 internal constant _WAD = 10 ** 18;

    /// @dev The maximum token ID allowed for an NFT.
    uint256 internal constant _MAX_TOKEN_ID = 0xffffffff;

    /// @dev The maximum possible token supply.
    uint256 internal constant _MAX_SUPPLY = 10 ** 18 * 0xffffffff - 1;

    /// @dev The flag to denote that the address data is initialized.
    uint8 internal constant _ADDRESS_DATA_INITIALIZED_FLAG = 1 << 0;

    /// @dev The flag to denote that the address should skip NFTs.
    uint8 internal constant _ADDRESS_DATA_SKIP_NFT_FLAG = 1 << 1;

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                          STORAGE                           */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Struct containing an address's token data and settings.
    struct AddressData {
        // Auxiliary data.
        uint88 aux;
        // Flags for `initialized` and `skipNFT`.
        uint8 flags;
        // The alias for the address. Zero means absence of an alias.
        uint32 addressAlias;
        // The number of NFT tokens.
        uint32 ownedLength;
        // The token balance in wei.
        uint96 balance;
    }

    /// @dev A uint32 map in storage.
    struct Uint32Map {
        mapping(uint256 => uint256) map;
    }

    /// @dev Struct containing the base token contract storage.
    struct DN404Storage {
        // Current number of address aliases assigned.
        uint32 numAliases;
        // Next token ID to assign for an NFT mint.
        uint32 nextTokenId;
        // Total supply of minted NFTs.
        uint32 totalNFTSupply;
        // Total supply of tokens.
        uint96 totalSupply;
        // Address of the NFT mirror contract.
        address mirrorERC721;
        // Mapping of a user alias number to their address.
        mapping(uint32 => address) aliasToAddress;
        // Mapping of user operator approvals for NFTs.
        mapping(address => mapping(address => bool)) operatorApprovals;
        // Mapping of NFT token approvals to approved operators.
        mapping(uint256 => address) tokenApprovals;
        // Mapping of user allowances for token spenders.
        mapping(address => mapping(address => uint256)) allowance;
        // Mapping of NFT token IDs owned by an address.
        mapping(address => Uint32Map) owned;
        // Even indices: owner aliases. Odd indices: owned indices.
        Uint32Map oo;
        // Mapping of user account AddressData
        mapping(address => AddressData) addressData;
    }

    /// @dev Returns a storage pointer for DN404Storage.
    function _getDN404Storage() internal pure virtual returns (DN404Storage storage $) {
        /// @solidity memory-safe-assembly
        assembly {
        // `uint72(bytes9(keccak256("DN404_STORAGE")))`.
            $.slot := 0xa20d6e21d0e5255308 // Truncate to 9 bytes to reduce bytecode size.
        }
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                         INITIALIZER                        */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Initializes the DN404 contract with an
    /// `initialTokenSupply`, `initialTokenOwner` and `mirror` NFT contract address.
    function _initializeDN404(
        uint256 initialTokenSupply,
        address initialSupplyOwner,
        address mirror
    ) internal virtual {
        DN404Storage storage $ = _getDN404Storage();

        if ($.nextTokenId != 0) revert DNAlreadyInitialized();

        if (mirror == address(0)) revert MirrorAddressIsZero();
        _linkMirrorContract(mirror);

        $.nextTokenId = 1;
        $.mirrorERC721 = mirror;

        if (initialTokenSupply > 0) {
            if (initialSupplyOwner == address(0)) revert TransferToZeroAddress();
            if (initialTokenSupply > _MAX_SUPPLY) revert TotalSupplyOverflow();

            $.totalSupply = uint96(initialTokenSupply);
            AddressData storage initialOwnerAddressData = _addressData(initialSupplyOwner);
            initialOwnerAddressData.balance = uint96(initialTokenSupply);

            emit Transfer(address(0), initialSupplyOwner, initialTokenSupply);

            _setSkipNFT(initialSupplyOwner, true);
        }
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*               METADATA FUNCTIONS TO OVERRIDE               */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Returns the name of the token.
    function name() public view virtual returns (string memory);

    /// @dev Returns the symbol of the token.
    function symbol() public view virtual returns (string memory);

    /// @dev Returns the Uniform Resource Identifier (URI) for token `id`.
    function tokenURI(uint256 id) public view virtual returns (string memory);

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                      ERC20 OPERATIONS                      */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Returns the decimals places of the token. Always 18.
    function decimals() public pure returns (uint8) {
        return 18;
    }

    /// @dev Returns the amount of tokens in existence.
    function totalSupply() public view virtual returns (uint256) {
        return uint256(_getDN404Storage().totalSupply);
    }

    /// @dev Returns the amount of tokens owned by `owner`.
    function balanceOf(address owner) public view virtual returns (uint256) {
        return _getDN404Storage().addressData[owner].balance;
    }

    /// @dev Returns the amount of tokens that `spender` can spend on behalf of `owner`.
    function allowance(address owner, address spender) public view returns (uint256) {
        return _getDN404Storage().allowance[owner][spender];
    }

    /// @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
    ///
    /// Emits a {Approval} event.
    function approve(address spender, uint256 amount) public virtual returns (bool) {
        DN404Storage storage $ = _getDN404Storage();

        $.allowance[msg.sender][spender] = amount;

        emit Approval(msg.sender, spender, amount);

        return true;
    }

    /// @dev Transfer `amount` tokens from the caller to `to`.
    ///
    /// Will burn sender NFTs if balance after transfer is less than
    /// the amount required to support the current NFT balance.
    ///
    /// Will mint NFTs to `to` if the recipient's new balance supports
    /// additional NFTs ***AND*** the `to` address's skipNFT flag is
    /// set to false.
    ///
    /// Requirements:
    /// - `from` must at least have `amount`.
    ///
    /// Emits a {Transfer} event.
    function transfer(address to, uint256 amount) public virtual returns (bool) {
        _transfer(msg.sender, to, amount);
        return true;
    }

    /// @dev Transfers `amount` tokens from `from` to `to`.
    ///
    /// Note: Does not update the allowance if it is the maximum uint256 value.
    ///
    /// Will burn sender NFTs if balance after transfer is less than
    /// the amount required to support the current NFT balance.
    ///
    /// Will mint NFTs to `to` if the recipient's new balance supports
    /// additional NFTs ***AND*** the `to` address's skipNFT flag is
    /// set to false.
    ///
    /// Requirements:
    /// - `from` must at least have `amount`.
    /// - The caller must have at least `amount` of allowance to transfer the tokens of `from`.
    ///
    /// Emits a {Transfer} event.
    function transferFrom(address from, address to, uint256 amount) public virtual returns (bool) {
        DN404Storage storage $ = _getDN404Storage();

        uint256 allowed = $.allowance[from][msg.sender];

        if (allowed != type(uint256).max) {
            if (amount > allowed) revert InsufficientAllowance();
        unchecked {
            $.allowance[from][msg.sender] = allowed - amount;
        }
        }

        _transfer(from, to, amount);

        return true;
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                  INTERNAL MINT FUNCTIONS                   */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Mints `amount` tokens to `to`, increasing the total supply.
    ///
    /// Will mint NFTs to `to` if the recipient's new balance supports
    /// additional NFTs ***AND*** the `to` address's skipNFT flag is
    /// set to false.
    ///
    /// Emits a {Transfer} event.
    function _mint(address to, uint256 amount) internal virtual {
        if (to == address(0)) revert TransferToZeroAddress();

        DN404Storage storage $ = _getDN404Storage();

        AddressData storage toAddressData = _addressData(to);

    unchecked {
        uint256 currentTokenSupply = uint256($.totalSupply) + amount;
        if (amount > _MAX_SUPPLY || currentTokenSupply > _MAX_SUPPLY) {
            revert TotalSupplyOverflow();
        }
        $.totalSupply = uint96(currentTokenSupply);

        uint256 toBalance = toAddressData.balance + amount;
        toAddressData.balance = uint96(toBalance);

        if (toAddressData.flags & _ADDRESS_DATA_SKIP_NFT_FLAG == 0) {
            Uint32Map storage toOwned = $.owned[to];
            uint256 toIndex = toAddressData.ownedLength;
            uint256 toEnd = toBalance / _WAD;
            _PackedLogs memory packedLogs = _packedLogsMalloc(_zeroFloorSub(toEnd, toIndex));

            if (packedLogs.logs.length != 0) {
                uint256 maxNFTId = $.totalSupply / _WAD;
                uint32 toAlias = _registerAndResolveAlias(toAddressData, to);
                uint256 id = $.nextTokenId;
                $.totalNFTSupply += uint32(packedLogs.logs.length);
                toAddressData.ownedLength = uint32(toEnd);
                // Mint loop.
                do {
                    while (_get($.oo, _ownershipIndex(id)) != 0) {
                        if (++id > maxNFTId) id = 1;
                    }
                    _set(toOwned, toIndex, uint32(id));
                    _setOwnerAliasAndOwnedIndex($.oo, id, toAlias, uint32(toIndex++));
                    _packedLogsAppend(packedLogs, to, id, 0);
                    if (++id > maxNFTId) id = 1;
                } while (toIndex != toEnd);
                $.nextTokenId = uint32(id);
                _packedLogsSend(packedLogs, $.mirrorERC721);
            }
        }
    }
        emit Transfer(address(0), to, amount);
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                  INTERNAL BURN FUNCTIONS                   */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Burns `amount` tokens from `from`, reducing the total supply.
    ///
    /// Will burn sender NFTs if balance after transfer is less than
    /// the amount required to support the current NFT balance.
    ///
    /// Emits a {Transfer} event.
    function _burn(address from, uint256 amount) internal virtual {
        DN404Storage storage $ = _getDN404Storage();

        AddressData storage fromAddressData = _addressData(from);

        uint256 fromBalance = fromAddressData.balance;
        if (amount > fromBalance) revert InsufficientBalance();

        uint256 currentTokenSupply = $.totalSupply;

    unchecked {
        fromBalance -= amount;
        fromAddressData.balance = uint96(fromBalance);
        currentTokenSupply -= amount;
        $.totalSupply = uint96(currentTokenSupply);

        Uint32Map storage fromOwned = $.owned[from];
        uint256 fromIndex = fromAddressData.ownedLength;
        uint256 nftAmountToBurn = _zeroFloorSub(fromIndex, fromBalance / _WAD);

        if (nftAmountToBurn != 0) {
            $.totalNFTSupply -= uint32(nftAmountToBurn);

            _PackedLogs memory packedLogs = _packedLogsMalloc(nftAmountToBurn);

            uint256 fromEnd = fromIndex - nftAmountToBurn;
            // Burn loop.
            do {
                uint256 id = _get(fromOwned, --fromIndex);
                _setOwnerAliasAndOwnedIndex($.oo, id, 0, 0);
                delete $.tokenApprovals[id];
                _packedLogsAppend(packedLogs, from, id, 1);
            } while (fromIndex != fromEnd);

            fromAddressData.ownedLength = uint32(fromIndex);
            _packedLogsSend(packedLogs, $.mirrorERC721);
        }
    }
        emit Transfer(from, address(0), amount);
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                INTERNAL TRANSFER FUNCTIONS                 */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Moves `amount` of tokens from `from` to `to`.
    ///
    /// Will burn sender NFTs if balance after transfer is less than
    /// the amount required to support the current NFT balance.
    ///
    /// Will mint NFTs to `to` if the recipient's new balance supports
    /// additional NFTs ***AND*** the `to` address's skipNFT flag is
    /// set to false.
    ///
    /// Emits a {Transfer} event.
    function _transfer(address from, address to, uint256 amount) internal virtual {
        if (to == address(0)) revert TransferToZeroAddress();

        DN404Storage storage $ = _getDN404Storage();

        AddressData storage fromAddressData = _addressData(from);
        AddressData storage toAddressData = _addressData(to);

        _TransferTemps memory t;
        t.fromOwnedLength = fromAddressData.ownedLength;
        t.toOwnedLength = toAddressData.ownedLength;
        t.fromBalance = fromAddressData.balance;

        if (amount > t.fromBalance) revert InsufficientBalance();

    unchecked {
        t.fromBalance -= amount;
        fromAddressData.balance = uint96(t.fromBalance);
        toAddressData.balance = uint96(t.toBalance = toAddressData.balance + amount);

        t.nftAmountToBurn = _zeroFloorSub(t.fromOwnedLength, t.fromBalance / _WAD);

        if (toAddressData.flags & _ADDRESS_DATA_SKIP_NFT_FLAG == 0) {
            if (from == to) t.toOwnedLength = t.fromOwnedLength - t.nftAmountToBurn;
            t.nftAmountToMint = _zeroFloorSub(t.toBalance / _WAD, t.toOwnedLength);
        }

        _PackedLogs memory packedLogs = _packedLogsMalloc(t.nftAmountToBurn + t.nftAmountToMint);

        if (t.nftAmountToBurn != 0) {
            Uint32Map storage fromOwned = $.owned[from];
            uint256 fromIndex = t.fromOwnedLength;
            uint256 fromEnd = fromIndex - t.nftAmountToBurn;
            $.totalNFTSupply -= uint32(t.nftAmountToBurn);
            fromAddressData.ownedLength = uint32(fromEnd);
            // Burn loop.
            do {
                uint256 id = _get(fromOwned, --fromIndex);
                _setOwnerAliasAndOwnedIndex($.oo, id, 0, 0);
                delete $.tokenApprovals[id];
                _packedLogsAppend(packedLogs, from, id, 1);
            } while (fromIndex != fromEnd);
        }

        if (t.nftAmountToMint != 0) {
            Uint32Map storage toOwned = $.owned[to];
            uint256 toIndex = t.toOwnedLength;
            uint256 toEnd = toIndex + t.nftAmountToMint;
            uint32 toAlias = _registerAndResolveAlias(toAddressData, to);
            uint256 maxNFTId = $.totalSupply / _WAD;
            uint256 id = $.nextTokenId;
            $.totalNFTSupply += uint32(t.nftAmountToMint);
            toAddressData.ownedLength = uint32(toEnd);
            // Mint loop.
            do {
                while (_get($.oo, _ownershipIndex(id)) != 0) {
                    if (++id > maxNFTId) id = 1;
                }
                _set(toOwned, toIndex, uint32(id));
                _setOwnerAliasAndOwnedIndex($.oo, id, toAlias, uint32(toIndex++));
                _packedLogsAppend(packedLogs, to, id, 0);
                if (++id > maxNFTId) id = 1;
            } while (toIndex != toEnd);
            $.nextTokenId = uint32(id);
        }

        if (packedLogs.logs.length != 0) {
            _packedLogsSend(packedLogs, $.mirrorERC721);
        }
    }
        emit Transfer(from, to, amount);
    }

    /// @dev Transfers token `id` from `from` to `to`.
    ///
    /// Requirements:
    ///
    /// - Call must originate from the mirror contract.
    /// - Token `id` must exist.
    /// - `from` must be the owner of the token.
    /// - `to` cannot be the zero address.
    ///   `msgSender` must be the owner of the token, or be approved to manage the token.
    ///
    /// Emits a {Transfer} event.
    function _transferFromNFT(address from, address to, uint256 id, address msgSender)
    internal
    virtual
    {
        DN404Storage storage $ = _getDN404Storage();

        if (to == address(0)) revert TransferToZeroAddress();

        address owner = $.aliasToAddress[_get($.oo, _ownershipIndex(id))];

        if (from != owner) revert TransferFromIncorrectOwner();

        if (msgSender != from) {
            if (!$.operatorApprovals[from][msgSender]) {
                if (msgSender != $.tokenApprovals[id]) {
                    revert TransferCallerNotOwnerNorApproved();
                }
            }
        }

        AddressData storage fromAddressData = _addressData(from);
        AddressData storage toAddressData = _addressData(to);

        fromAddressData.balance -= uint96(_WAD);

    unchecked {
        toAddressData.balance += uint96(_WAD);

        _set($.oo, _ownershipIndex(id), _registerAndResolveAlias(toAddressData, to));
        delete $.tokenApprovals[id];

        uint256 updatedId = _get($.owned[from], --fromAddressData.ownedLength);
        _set($.owned[from], _get($.oo, _ownedIndex(id)), uint32(updatedId));

        uint256 n = toAddressData.ownedLength++;
        _set($.oo, _ownedIndex(updatedId), _get($.oo, _ownedIndex(id)));
        _set($.owned[to], n, uint32(id));
        _set($.oo, _ownedIndex(id), uint32(n));
    }

        emit Transfer(from, to, _WAD);
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                 DATA HITCHHIKING FUNCTIONS                 */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Returns the auxiliary data for `owner`.
    /// Minting, transferring, burning the tokens of `owner` will not change the auxiliary data.
    /// Auxiliary data can be set for any address, even if it does not have any tokens.
    function _getAux(address owner) internal view virtual returns (uint88) {
        return _getDN404Storage().addressData[owner].aux;
    }

    /// @dev Set the auxiliary data for `owner` to `value`.
    /// Minting, transferring, burning the tokens of `owner` will not change the auxiliary data.
    /// Auxiliary data can be set for any address, even if it does not have any tokens.
    function _setAux(address owner, uint88 value) internal virtual {
        _getDN404Storage().addressData[owner].aux = value;
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                     SKIP NFT FUNCTIONS                     */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Returns true if account `a` will skip NFT minting on token mints and transfers.
    /// Returns false if account `a` will mint NFTs on token mints and transfers.
    function getSkipNFT(address a) public view virtual returns (bool) {
        AddressData storage d = _getDN404Storage().addressData[a];
        if (d.flags & _ADDRESS_DATA_INITIALIZED_FLAG == 0) return _hasCode(a);
        return d.flags & _ADDRESS_DATA_SKIP_NFT_FLAG != 0;
    }

    /// @dev Sets the caller's skipNFT flag to `skipNFT`
    ///
    /// Emits a {SkipNFTSet} event.
    function setSkipNFT(bool skipNFT) public virtual {
        _setSkipNFT(msg.sender, skipNFT);
    }

    /// @dev Internal function to set account `a` skipNFT flag to `state`
    ///
    /// Initializes account `a` AddressData if it is not currently initialized.
    ///
    /// Emits a {SkipNFTSet} event.
    function _setSkipNFT(address a, bool state) internal virtual {
        AddressData storage d = _addressData(a);
        if ((d.flags & _ADDRESS_DATA_SKIP_NFT_FLAG != 0) != state) {
            d.flags ^= _ADDRESS_DATA_SKIP_NFT_FLAG;
        }
        emit SkipNFTSet(a, state);
    }

    /// @dev Returns a storage data pointer for account `a` AddressData
    ///
    /// Initializes account `a` AddressData if it is not currently initialized.
    function _addressData(address a) internal virtual returns (AddressData storage d) {
        DN404Storage storage $ = _getDN404Storage();
        d = $.addressData[a];

        if (d.flags & _ADDRESS_DATA_INITIALIZED_FLAG == 0) {
            uint8 flags = _ADDRESS_DATA_INITIALIZED_FLAG;
            if (_hasCode(a)) flags |= _ADDRESS_DATA_SKIP_NFT_FLAG;
            d.flags = flags;
        }
    }

    /// @dev Returns the `addressAlias` of account `to`.
    ///
    /// Assigns and registers the next alias if `to` alias was not previously registered.
    function _registerAndResolveAlias(AddressData storage toAddressData, address to)
    internal
    virtual
    returns (uint32 addressAlias)
    {
        DN404Storage storage $ = _getDN404Storage();
        addressAlias = toAddressData.addressAlias;
        if (addressAlias == 0) {
            addressAlias = ++$.numAliases;
            toAddressData.addressAlias = addressAlias;
            $.aliasToAddress[addressAlias] = to;
        }
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                     MIRROR OPERATIONS                      */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Returns the address of the mirror NFT contract.
    function mirrorERC721() public view virtual returns (address) {
        return _getDN404Storage().mirrorERC721;
    }

    /// @dev Returns the total NFT supply.
    function _totalNFTSupply() internal view virtual returns (uint256) {
        return _getDN404Storage().totalNFTSupply;
    }

    /// @dev Returns `owner` NFT balance.
    function _balanceOfNFT(address owner) internal view virtual returns (uint256) {
        return _getDN404Storage().addressData[owner].ownedLength;
    }

    /// @dev Returns the owner of token `id`.
    /// Returns the zero address instead of reverting if the token does not exist.
    function _ownerAt(uint256 id) internal view virtual returns (address) {
        DN404Storage storage $ = _getDN404Storage();
        return $.aliasToAddress[_get($.oo, _ownershipIndex(id))];
    }

    /// @dev Returns the owner of token `id`.
    ///
    /// Requirements:
    /// - Token `id` must exist.
    function _ownerOf(uint256 id) internal view virtual returns (address) {
        if (!_exists(id)) revert TokenDoesNotExist();
        return _ownerAt(id);
    }

    /// @dev Returns if token `id` exists.
    function _exists(uint256 id) internal view virtual returns (bool) {
        return _ownerAt(id) != address(0);
    }

    /// @dev Returns the account approved to manage token `id`.
    ///
    /// Requirements:
    /// - Token `id` must exist.
    function _getApproved(uint256 id) internal view virtual returns (address) {
        if (!_exists(id)) revert TokenDoesNotExist();
        return _getDN404Storage().tokenApprovals[id];
    }

    /// @dev Sets `spender` as the approved account to manage token `id`, using `msgSender`.
    ///
    /// Requirements:
    /// - `msgSender` must be the owner or an approved operator for the token owner.
    function _approveNFT(address spender, uint256 id, address msgSender)
    internal
    virtual
    returns (address)
    {
        DN404Storage storage $ = _getDN404Storage();

        address owner = $.aliasToAddress[_get($.oo, _ownershipIndex(id))];

        if (msgSender != owner) {
            if (!$.operatorApprovals[owner][msgSender]) {
                revert ApprovalCallerNotOwnerNorApproved();
            }
        }

        $.tokenApprovals[id] = spender;

        return owner;
    }

    /// @dev Approve or remove the `operator` as an operator for `msgSender`,
    /// without authorization checks.
    function _setApprovalForAll(address operator, bool approved, address msgSender)
    internal
    virtual
    {
        _getDN404Storage().operatorApprovals[msgSender][operator] = approved;
    }

    /// @dev Calls the mirror contract to link it to this contract.
    ///
    /// Reverts if the call to the mirror contract reverts.
    function _linkMirrorContract(address mirror) internal virtual {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, 0x0f4599e5) // `linkMirrorContract(address)`.
            mstore(0x20, caller())
            if iszero(and(eq(mload(0x00), 1), call(gas(), mirror, 0, 0x1c, 0x24, 0x00, 0x20))) {
                mstore(0x00, 0xd125259c) // `LinkMirrorContractFailed()`.
                revert(0x1c, 0x04)
            }
        }
    }

    /// @dev Fallback modifier to dispatch calls from the mirror NFT contract
    /// to internal functions in this contract.
    modifier dn404Fallback() virtual {
        DN404Storage storage $ = _getDN404Storage();

        uint256 fnSelector = _calldataload(0x00) >> 224;

        // `isApprovedForAll(address,address)`.
        if (fnSelector == 0xe985e9c5) {
            if (msg.sender != $.mirrorERC721) revert SenderNotMirror();
            if (msg.data.length < 0x44) revert();

            address owner = address(uint160(_calldataload(0x04)));
            address operator = address(uint160(_calldataload(0x24)));

            _return($.operatorApprovals[owner][operator] ? 1 : 0);
        }
        // `ownerOf(uint256)`.
        if (fnSelector == 0x6352211e) {
            if (msg.sender != $.mirrorERC721) revert SenderNotMirror();
            if (msg.data.length < 0x24) revert();

            uint256 id = _calldataload(0x04);

            _return(uint160(_ownerOf(id)));
        }
        // `transferFromNFT(address,address,uint256,address)`.
        if (fnSelector == 0xe5eb36c8) {
            if (msg.sender != $.mirrorERC721) revert SenderNotMirror();
            if (msg.data.length < 0x84) revert();

            address from = address(uint160(_calldataload(0x04)));
            address to = address(uint160(_calldataload(0x24)));
            uint256 id = _calldataload(0x44);
            address msgSender = address(uint160(_calldataload(0x64)));

            _transferFromNFT(from, to, id, msgSender);
            _return(1);
        }
        // `setApprovalForAll(address,bool,address)`.
        if (fnSelector == 0x813500fc) {
            if (msg.sender != $.mirrorERC721) revert SenderNotMirror();
            if (msg.data.length < 0x64) revert();

            address spender = address(uint160(_calldataload(0x04)));
            bool status = _calldataload(0x24) != 0;
            address msgSender = address(uint160(_calldataload(0x44)));

            _setApprovalForAll(spender, status, msgSender);
            _return(1);
        }
        // `approveNFT(address,uint256,address)`.
        if (fnSelector == 0xd10b6e0c) {
            if (msg.sender != $.mirrorERC721) revert SenderNotMirror();
            if (msg.data.length < 0x64) revert();

            address spender = address(uint160(_calldataload(0x04)));
            uint256 id = _calldataload(0x24);
            address msgSender = address(uint160(_calldataload(0x44)));

            _return(uint160(_approveNFT(spender, id, msgSender)));
        }
        // `getApproved(uint256)`.
        if (fnSelector == 0x081812fc) {
            if (msg.sender != $.mirrorERC721) revert SenderNotMirror();
            if (msg.data.length < 0x24) revert();

            uint256 id = _calldataload(0x04);

            _return(uint160(_getApproved(id)));
        }
        // `balanceOfNFT(address)`.
        if (fnSelector == 0xf5b100ea) {
            if (msg.sender != $.mirrorERC721) revert SenderNotMirror();
            if (msg.data.length < 0x24) revert();

            address owner = address(uint160(_calldataload(0x04)));

            _return(_balanceOfNFT(owner));
        }
        // `totalNFTSupply()`.
        if (fnSelector == 0xe2c79281) {
            if (msg.sender != $.mirrorERC721) revert SenderNotMirror();
            if (msg.data.length < 0x04) revert();

            _return(_totalNFTSupply());
        }
        // `implementsDN404()`.
        if (fnSelector == 0xb7a94eb8) {
            _return(1);
        }
        _;
    }

    /// @dev Fallback function for calls from mirror NFT contract.
    fallback() external payable virtual dn404Fallback {}

    receive() external payable virtual {}

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                      PRIVATE HELPERS                       */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Struct containing packed log data for `Transfer` events to be
    /// emitted by the mirror NFT contract.
    struct _PackedLogs {
        uint256[] logs;
        uint256 offset;
    }

    /// @dev Initiates memory allocation for packed logs with `n` log items.
    function _packedLogsMalloc(uint256 n) private pure returns (_PackedLogs memory p) {
        /// @solidity memory-safe-assembly
        assembly {
            let logs := add(mload(0x40), 0x40) // Offset by 2 words for `_packedLogsSend`.
            mstore(logs, n)
            let offset := add(0x20, logs)
            mstore(0x40, add(offset, shl(5, n)))
            mstore(p, logs)
            mstore(add(0x20, p), offset)
        }
    }

    /// @dev Adds a packed log item to `p` with address `a`, token `id` and burn flag `burnBit`.
    function _packedLogsAppend(_PackedLogs memory p, address a, uint256 id, uint256 burnBit)
    private
    pure
    {
        /// @solidity memory-safe-assembly
        assembly {
            let offset := mload(add(0x20, p))
            mstore(offset, or(or(shl(96, a), shl(8, id)), burnBit))
            mstore(add(0x20, p), add(offset, 0x20))
        }
    }

    /// @dev Calls the `mirror` NFT contract to emit Transfer events for packed logs `p`.
    function _packedLogsSend(_PackedLogs memory p, address mirror) private {
        /// @solidity memory-safe-assembly
        assembly {
            let logs := mload(p)
            let o := sub(logs, 0x40) // Start of calldata to send.
            mstore(o, 0x263c69d6) // `logTransfer(uint256[])`.
            mstore(add(o, 0x20), 0x20) // Offset of `logs` in the calldata to send.
            let n := add(0x44, shl(5, mload(logs))) // Length of calldata to send.
            if iszero(and(eq(mload(o), 1), call(gas(), mirror, 0, add(o, 0x1c), n, o, 0x20))) {
                revert(o, 0x00)
            }
        }
    }

    /// @dev Struct of temporary variables for transfers.
    struct _TransferTemps {
        uint256 nftAmountToBurn;
        uint256 nftAmountToMint;
        uint256 fromBalance;
        uint256 toBalance;
        uint256 fromOwnedLength;
        uint256 toOwnedLength;
    }

    /// @dev Returns if `a` has bytecode of non-zero length.
    function _hasCode(address a) private view returns (bool result) {
        /// @solidity memory-safe-assembly
        assembly {
            result := extcodesize(a) // Can handle dirty upper bits.
        }
    }

    /// @dev Returns the calldata value at `offset`.
    function _calldataload(uint256 offset) private pure returns (uint256 value) {
        /// @solidity memory-safe-assembly
        assembly {
            value := calldataload(offset)
        }
    }

    /// @dev Executes a return opcode to return `x` and end the current call frame.
    function _return(uint256 x) private pure {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, x)
            return(0x00, 0x20)
        }
    }

    /// @dev Returns `max(0, x - y)`.
    function _zeroFloorSub(uint256 x, uint256 y) private pure returns (uint256 z) {
        /// @solidity memory-safe-assembly
        assembly {
            z := mul(gt(x, y), sub(x, y))
        }
    }

    /// @dev Returns `i << 1`.
    function _ownershipIndex(uint256 i) private pure returns (uint256) {
        return i << 1;
    }

    /// @dev Returns `(i << 1) + 1`.
    function _ownedIndex(uint256 i) private pure returns (uint256) {
    unchecked {
        return (i << 1) + 1;
    }
    }

    /// @dev Returns the uint32 value at `index` in `map`.
    function _get(Uint32Map storage map, uint256 index) private view returns (uint32 result) {
        result = uint32(map.map[index >> 3] >> ((index & 7) << 5));
    }

    /// @dev Updates the uint32 value at `index` in `map`.
    function _set(Uint32Map storage map, uint256 index, uint32 value) private {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x20, map.slot)
            mstore(0x00, shr(3, index))
            let s := keccak256(0x00, 0x40) // Storage slot.
            let o := shl(5, and(index, 7)) // Storage slot offset (bits).
            let v := sload(s) // Storage slot value.
            let m := 0xffffffff // Value mask.
            sstore(s, xor(v, shl(o, and(m, xor(shr(o, v), value)))))
        }
    }

    /// @dev Sets the owner alias and the owned index together.
    function _setOwnerAliasAndOwnedIndex(
        Uint32Map storage map,
        uint256 id,
        uint32 ownership,
        uint32 ownedIndex
    ) private {
        /// @solidity memory-safe-assembly
        assembly {
            let value := or(shl(32, ownedIndex), and(0xffffffff, ownership))
            mstore(0x20, map.slot)
            mstore(0x00, shr(2, id))
            let s := keccak256(0x00, 0x40) // Storage slot.
            let o := shl(6, and(id, 3)) // Storage slot offset (bits).
            let v := sload(s) // Storage slot value.
            let m := 0xffffffffffffffff // Value mask.
            sstore(s, xor(v, shl(o, and(m, xor(shr(o, v), value)))))
        }
    }
}


/// @title DN404Mirror
/// @notice DN404Mirror provides an interface for interacting with the
/// NFT tokens in a DN404 implementation.
///
/// @author vectorized.eth (@optimizoor)
/// @author Quit (@0xQuit)
/// @author Michael Amadi (@AmadiMichaels)
/// @author cygaar (@0xCygaar)
/// @author Thomas (@0xjustadev)
/// @author Harrison (@PopPunkOnChain)
///
/// @dev Note:
/// - The ERC721 data is stored in the base DN404 contract.
contract DN404Mirror {
    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                           EVENTS                           */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Emitted when token `id` is transferred from `from` to `to`.
    event Transfer(address indexed from, address indexed to, uint256 indexed id);

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

    /// @dev Emitted when `owner` enables or disables `operator` to manage all of their tokens.
    event ApprovalForAll(address indexed owner, address indexed operator, bool isApproved);

    /// @dev `keccak256(bytes("Transfer(address,address,uint256)"))`.
    uint256 private constant _TRANSFER_EVENT_SIGNATURE =
    0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    /// @dev `keccak256(bytes("Approval(address,address,uint256)"))`.
    uint256 private constant _APPROVAL_EVENT_SIGNATURE =
    0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925;

    /// @dev `keccak256(bytes("ApprovalForAll(address,address,bool)"))`.
    uint256 private constant _APPROVAL_FOR_ALL_EVENT_SIGNATURE =
    0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31;

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                        CUSTOM ERRORS                       */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Thrown when a call for an NFT function did not originate
    /// from the base DN404 contract.
    error SenderNotBase();

    /// @dev Thrown when a call for an NFT function did not originate from the deployer.
    error SenderNotDeployer();

    /// @dev Thrown when transferring an NFT to a contract address that
    /// does not implement ERC721Receiver.
    error TransferToNonERC721ReceiverImplementer();

    /// @dev Thrown when linking to the DN404 base contract and the
    /// DN404 supportsInterface check fails or the call reverts.
    error CannotLink();

    /// @dev Thrown when a linkMirrorContract call is received and the
    /// NFT mirror contract has already been linked to a DN404 base contract.
    error AlreadyLinked();

    /// @dev Thrown when retrieving the base DN404 address when a link has not
    /// been established.
    error NotLinked();

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                          STORAGE                           */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Struct contain the NFT mirror contract storage.
    struct DN404NFTStorage {
        address baseERC20;
        address deployer;
    }

    /// @dev Returns a storage pointer for DN404NFTStorage.
    function _getDN404NFTStorage() internal pure virtual returns (DN404NFTStorage storage $) {
        /// @solidity memory-safe-assembly
        assembly {
        // `uint72(bytes9(keccak256("DN404_MIRROR_STORAGE")))`.
            $.slot := 0x3602298b8c10b01230 // Truncate to 9 bytes to reduce bytecode size.
        }
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                        CONSTRUCTOR                         */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    constructor(address deployer) {
        // For non-proxies, we will store the deployer so that only the deployer can
        // link the base contract.
        _getDN404NFTStorage().deployer = deployer;
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                     ERC721 OPERATIONS                      */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Returns the token collection name from the base DN404 contract.
    function name() public view virtual returns (string memory result) {
        address base = baseERC20();
        /// @solidity memory-safe-assembly
        assembly {
            result := mload(0x40)
            mstore(0x00, 0x06fdde03) // `name()`.
            if iszero(staticcall(gas(), base, 0x1c, 0x04, 0x00, 0x00)) {
                returndatacopy(result, 0x00, returndatasize())
                revert(result, returndatasize())
            }
            returndatacopy(0x00, 0x00, 0x20)
            returndatacopy(result, mload(0x00), 0x20)
            returndatacopy(add(result, 0x20), add(mload(0x00), 0x20), mload(result))
            mstore(0x40, add(add(result, 0x20), mload(result)))
        }
    }

    /// @dev Returns the token collection symbol from the base DN404 contract.
    function symbol() public view virtual returns (string memory result) {
        address base = baseERC20();
        /// @solidity memory-safe-assembly
        assembly {
            result := mload(0x40)
            mstore(0x00, 0x95d89b41) // `symbol()`.
            if iszero(staticcall(gas(), base, 0x1c, 0x04, 0x00, 0x00)) {
                returndatacopy(result, 0x00, returndatasize())
                revert(result, returndatasize())
            }
            returndatacopy(0x00, 0x00, 0x20)
            returndatacopy(result, mload(0x00), 0x20)
            returndatacopy(add(result, 0x20), add(mload(0x00), 0x20), mload(result))
            mstore(0x40, add(add(result, 0x20), mload(result)))
        }
    }

    /// @dev Returns the Uniform Resource Identifier (URI) for token `id` from
    /// the base DN404 contract.
    function tokenURI(uint256 id) public view virtual returns (string memory result) {
        address base = baseERC20();
        /// @solidity memory-safe-assembly
        assembly {
            result := mload(0x40)
            mstore(0x20, id)
            mstore(0x00, 0xc87b56dd) // `tokenURI()`.
            if iszero(staticcall(gas(), base, 0x1c, 0x24, 0x00, 0x00)) {
                returndatacopy(result, 0x00, returndatasize())
                revert(result, returndatasize())
            }
            returndatacopy(0x00, 0x00, 0x20)
            returndatacopy(result, mload(0x00), 0x20)
            returndatacopy(add(result, 0x20), add(mload(0x00), 0x20), mload(result))
            mstore(0x40, add(add(result, 0x20), mload(result)))
        }
    }

    /// @dev Returns the total NFT supply from the base DN404 contract.
    function totalSupply() public view virtual returns (uint256 result) {
        address base = baseERC20();
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, 0xe2c79281) // `totalNFTSupply()`.
            if iszero(
            and(gt(returndatasize(), 0x1f), staticcall(gas(), base, 0x1c, 0x04, 0x00, 0x20))
            ) {
                returndatacopy(mload(0x40), 0x00, returndatasize())
                revert(mload(0x40), returndatasize())
            }
            result := mload(0x00)
        }
    }

    /// @dev Returns the number of NFT tokens owned by `owner` from the base DN404 contract.
    ///
    /// Requirements:
    /// - `owner` must not be the zero address.
    function balanceOf(address owner) public view virtual returns (uint256 result) {
        address base = baseERC20();
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x20, shr(96, shl(96, owner)))
            mstore(0x00, 0xf5b100ea) // `balanceOfNFT(address)`.
            if iszero(
            and(gt(returndatasize(), 0x1f), staticcall(gas(), base, 0x1c, 0x24, 0x00, 0x20))
            ) {
                returndatacopy(mload(0x40), 0x00, returndatasize())
                revert(mload(0x40), returndatasize())
            }
            result := mload(0x00)
        }
    }

    /// @dev Returns the owner of token `id` from the base DN404 contract.
    ///
    /// Requirements:
    /// - Token `id` must exist.
    function ownerOf(uint256 id) public view virtual returns (address result) {
        address base = baseERC20();
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, 0x6352211e) // `ownerOf(uint256)`.
            mstore(0x20, id)
            if iszero(
            and(gt(returndatasize(), 0x1f), staticcall(gas(), base, 0x1c, 0x24, 0x00, 0x20))
            ) {
                returndatacopy(mload(0x40), 0x00, returndatasize())
                revert(mload(0x40), returndatasize())
            }
            result := shr(96, mload(0x0c))
        }
    }

    /// @dev Sets `spender` as the approved account to manage token `id` in
    /// the base DN404 contract.
    ///
    /// Requirements:
    /// - Token `id` must exist.
    /// - The caller must be the owner of the token,
    ///   or an approved operator for the token owner.
    ///
    /// Emits an {Approval} event.
    function approve(address spender, uint256 id) public virtual {
        address base = baseERC20();
        /// @solidity memory-safe-assembly
        assembly {
            spender := shr(96, shl(96, spender))
            let m := mload(0x40)
            mstore(0x00, 0xd10b6e0c) // `approveNFT(address,uint256,address)`.
            mstore(0x20, spender)
            mstore(0x40, id)
            mstore(0x60, caller())
            if iszero(
            and(
            gt(returndatasize(), 0x1f),
            call(gas(), base, callvalue(), 0x1c, 0x64, 0x00, 0x20)
            )
            ) {
                returndatacopy(m, 0x00, returndatasize())
                revert(m, returndatasize())
            }
            mstore(0x40, m) // Restore the free memory pointer.
            mstore(0x60, 0) // Restore the zero pointer.
        // Emit the {Approval} event.
            log4(codesize(), 0x00, _APPROVAL_EVENT_SIGNATURE, shr(96, mload(0x0c)), spender, id)
        }
    }

    /// @dev Returns the account approved to manage token `id` from
    /// the base DN404 contract.
    ///
    /// Requirements:
    /// - Token `id` must exist.
    function getApproved(uint256 id) public view virtual returns (address result) {
        address base = baseERC20();
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, 0x081812fc) // `getApproved(uint256)`.
            mstore(0x20, id)
            if iszero(
            and(gt(returndatasize(), 0x1f), staticcall(gas(), base, 0x1c, 0x24, 0x00, 0x20))
            ) {
                returndatacopy(mload(0x40), 0x00, returndatasize())
                revert(mload(0x40), returndatasize())
            }
            result := shr(96, mload(0x0c))
        }
    }

    /// @dev Sets whether `operator` is approved to manage the tokens of the caller in
    /// the base DN404 contract.
    ///
    /// Emits an {ApprovalForAll} event.
    function setApprovalForAll(address operator, bool approved) public virtual {
        address base = baseERC20();
        /// @solidity memory-safe-assembly
        assembly {
            operator := shr(96, shl(96, operator))
            let m := mload(0x40)
            mstore(0x00, 0x813500fc) // `setApprovalForAll(address,bool,address)`.
            mstore(0x20, operator)
            mstore(0x40, iszero(iszero(approved)))
            mstore(0x60, caller())
            if iszero(
            and(eq(mload(0x00), 1), call(gas(), base, callvalue(), 0x1c, 0x64, 0x00, 0x20))
            ) {
                returndatacopy(m, 0x00, returndatasize())
                revert(m, returndatasize())
            }
        // Emit the {ApprovalForAll} event.
            log3(0x40, 0x20, _APPROVAL_FOR_ALL_EVENT_SIGNATURE, caller(), operator)
            mstore(0x40, m) // Restore the free memory pointer.
            mstore(0x60, 0) // Restore the zero pointer.
        }
    }

    /// @dev Returns whether `operator` is approved to manage the tokens of `owner` from
    /// the base DN404 contract.
    function isApprovedForAll(address owner, address operator)
    public
    view
    virtual
    returns (bool result)
    {
        address base = baseERC20();
        /// @solidity memory-safe-assembly
        assembly {
            let m := mload(0x40)
            mstore(0x40, operator)
            mstore(0x2c, shl(96, owner))
            mstore(0x0c, 0xe985e9c5000000000000000000000000) // `isApprovedForAll(address,address)`.
            if iszero(
            and(gt(returndatasize(), 0x1f), staticcall(gas(), base, 0x1c, 0x44, 0x00, 0x20))
            ) {
                returndatacopy(m, 0x00, returndatasize())
                revert(m, returndatasize())
            }
            mstore(0x40, m) // Restore the free memory pointer.
            result := iszero(iszero(mload(0x00)))
        }
    }

    /// @dev Transfers token `id` from `from` to `to`.
    ///
    /// Requirements:
    ///
    /// - Token `id` must exist.
    /// - `from` must be the owner of the token.
    /// - `to` cannot be the zero address.
    /// - The caller must be the owner of the token, or be approved to manage the token.
    ///
    /// Emits a {Transfer} event.
    function transferFrom(address from, address to, uint256 id) public virtual {
        address base = baseERC20();
        /// @solidity memory-safe-assembly
        assembly {
            from := shr(96, shl(96, from))
            to := shr(96, shl(96, to))
            let m := mload(0x40)
            mstore(m, 0xe5eb36c8) // `transferFromNFT(address,address,uint256,address)`.
            mstore(add(m, 0x20), from)
            mstore(add(m, 0x40), to)
            mstore(add(m, 0x60), id)
            mstore(add(m, 0x80), caller())
            if iszero(
            and(eq(mload(m), 1), call(gas(), base, callvalue(), add(m, 0x1c), 0x84, m, 0x20))
            ) {
                returndatacopy(m, 0x00, returndatasize())
                revert(m, returndatasize())
            }
        // Emit the {Transfer} event.
            log4(codesize(), 0x00, _TRANSFER_EVENT_SIGNATURE, from, to, id)
        }
    }

    /// @dev Equivalent to `safeTransferFrom(from, to, id, "")`.
    function safeTransferFrom(address from, address to, uint256 id) public payable virtual {
        transferFrom(from, to, id);

        if (_hasCode(to)) _checkOnERC721Received(from, to, id, "");
    }

    /// @dev Transfers token `id` from `from` to `to`.
    ///
    /// Requirements:
    ///
    /// - Token `id` must exist.
    /// - `from` must be the owner of the token.
    /// - `to` cannot be the zero address.
    /// - The caller must be the owner of the token, or be approved to manage the token.
    /// - 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 id, bytes calldata data)
    public
    virtual
    {
        transferFrom(from, to, id);

        if (_hasCode(to)) _checkOnERC721Received(from, to, id, data);
    }

    /// @dev Returns true if this contract implements the interface defined by `interfaceId`.
    /// See: https://eips.ethereum.org/EIPS/eip-165
    /// This function call must use less than 30000 gas.
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool result) {
        /// @solidity memory-safe-assembly
        assembly {
            let s := shr(224, interfaceId)
        // ERC165: 0x01ffc9a7, ERC721: 0x80ac58cd, ERC721Metadata: 0x5b5e139f.
            result := or(or(eq(s, 0x01ffc9a7), eq(s, 0x80ac58cd)), eq(s, 0x5b5e139f))
        }
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                     MIRROR OPERATIONS                      */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Returns the address of the base DN404 contract.
    function baseERC20() public view virtual returns (address base) {
        base = _getDN404NFTStorage().baseERC20;
        if (base == address(0)) revert NotLinked();
    }

    /// @dev Fallback modifier to execute calls from the base DN404 contract.
    modifier dn404NFTFallback() virtual {
        DN404NFTStorage storage $ = _getDN404NFTStorage();

        uint256 fnSelector = _calldataload(0x00) >> 224;

        // `logTransfer(uint256[])`.
        if (fnSelector == 0x263c69d6) {
            if (msg.sender != $.baseERC20) revert SenderNotBase();
            /// @solidity memory-safe-assembly
            assembly {
            // When returndatacopy copies 1 or more out-of-bounds bytes, it reverts.
                returndatacopy(0x00, returndatasize(), lt(calldatasize(), 0x20))
                let o := add(0x24, calldataload(0x04)) // Packed logs offset.
                returndatacopy(0x00, returndatasize(), lt(calldatasize(), o))
                let end := add(o, shl(5, calldataload(sub(o, 0x20))))
                returndatacopy(0x00, returndatasize(), lt(calldatasize(), end))

                for {} iszero(eq(o, end)) { o := add(0x20, o) } {
                    let d := calldataload(o) // Entry in the packed logs.
                    let a := shr(96, d) // The address.
                    let b := and(1, d) // Whether it is a burn.
                    log4(
                    codesize(),
                    0x00,
                    _TRANSFER_EVENT_SIGNATURE,
                    mul(a, b),
                    mul(a, iszero(b)),
                    shr(168, shl(160, d))
                    )
                }
                mstore(0x00, 0x01)
                return(0x00, 0x20)
            }
        }
        // `linkMirrorContract(address)`.
        if (fnSelector == 0x0f4599e5) {
            if ($.deployer != address(0)) {
                if (address(uint160(_calldataload(0x04))) != $.deployer) {
                    revert SenderNotDeployer();
                }
            }
            if ($.baseERC20 != address(0)) revert AlreadyLinked();
            $.baseERC20 = msg.sender;
            /// @solidity memory-safe-assembly
            assembly {
                mstore(0x00, 0x01)
                return(0x00, 0x20)
            }
        }
        _;
    }

    /// @dev Fallback function for calls from base DN404 contract.
    fallback() external payable virtual dn404NFTFallback {}

    receive() external payable virtual {}

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                      PRIVATE HELPERS                       */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    /// @dev Returns the calldata value at `offset`.
    function _calldataload(uint256 offset) private pure returns (uint256 value) {
        /// @solidity memory-safe-assembly
        assembly {
            value := calldataload(offset)
        }
    }

    /// @dev Returns if `a` has bytecode of non-zero length.
    function _hasCode(address a) private view returns (bool result) {
        /// @solidity memory-safe-assembly
        assembly {
            result := extcodesize(a) // Can handle dirty upper bits.
        }
    }

    /// @dev Perform a call to invoke {IERC721Receiver-onERC721Received} on `to`.
    /// Reverts if the target does not support the function correctly.
    function _checkOnERC721Received(address from, address to, uint256 id, bytes memory data)
    private
    {
        /// @solidity memory-safe-assembly
        assembly {
        // Prepare the calldata.
            let m := mload(0x40)
            let onERC721ReceivedSelector := 0x150b7a02
            mstore(m, onERC721ReceivedSelector)
            mstore(add(m, 0x20), caller()) // The `operator`, which is always `msg.sender`.
            mstore(add(m, 0x40), shr(96, shl(96, from)))
            mstore(add(m, 0x60), id)
            mstore(add(m, 0x80), 0x80)
            let n := mload(data)
            mstore(add(m, 0xa0), n)
            if n { pop(staticcall(gas(), 4, add(data, 0x20), n, add(m, 0xc0), n)) }
        // Revert if the call reverts.
            if iszero(call(gas(), to, 0, add(m, 0x1c), add(n, 0xa4), m, 0x20)) {
                if returndatasize() {
                // Bubble up the revert if the call reverts.
                    returndatacopy(m, 0x00, returndatasize())
                    revert(m, returndatasize())
                }
            }
        // Load the returndata and compare it.
            if iszero(eq(mload(m), shl(224, onERC721ReceivedSelector))) {
                mstore(0x00, 0xd1a57ed6) // `TransferToNonERC721ReceiverImplementer()`.
                revert(0x1c, 0x04)
            }
        }
    }
}

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

    address public owner;

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

        _;
    }

    constructor(address _owner) {
        if (_owner == address(0)) revert("invalid owner");

        owner = _owner;

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

    function transferOwnership(address _owner) public virtual onlyOwner {
        if (_owner == address(0)) revert("invalid owner");

        owner = _owner;

        emit OwnershipTransferred(msg.sender, _owner);
    }

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

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

library OutflowCounterLib {
    uint256 internal constant WAD_TRUNCATED = 10 ** 18 >> 40;

    uint256 internal constant OUTFLOW_TRUNCATED_MASK = 0xffffffffffffff;

    uint256 internal constant BLOCK_BITPOS = 56;

    uint256 internal constant BLOCK_MASK = 0x7fffffff;

    uint256 internal constant OUTFLOW_TRUNCATE_SHR = 40;

    uint256 internal constant WHITELISTED_BITPOS = 87;

    function update(uint88 packed, uint256 outflow)
    internal
    view
    returns (uint88 updated)
    {
    unchecked {
        if (isWhitelisted(packed)) return packed;
        uint256 currentBlock = block.number & BLOCK_MASK;
        uint256 packedBlock = (uint256(packed) >> BLOCK_BITPOS) & BLOCK_MASK;
        uint256 totalOutflowTruncated = uint256(packed) & OUTFLOW_TRUNCATED_MASK;

        if (packedBlock == 0) {totalOutflowTruncated = 0; packedBlock = currentBlock;}
        if (packedBlock != 0 && currentBlock - packedBlock > 1) revert("Internal Error");

        uint256 result = packedBlock << BLOCK_BITPOS;
        totalOutflowTruncated += ((outflow >> OUTFLOW_TRUNCATE_SHR) & OUTFLOW_TRUNCATED_MASK);
        result |= totalOutflowTruncated & OUTFLOW_TRUNCATED_MASK;
        updated = uint88(result);
    }
    }

    function isWhitelisted(uint88 packed) internal pure returns (bool) {
        return packed >> WHITELISTED_BITPOS != 0;
    }

    function setWhitelisted(uint88 packed, bool status) internal pure returns (uint88) {
        if (isWhitelisted(packed) != status) {
            packed ^= uint88(1 << WHITELISTED_BITPOS);
        }
        return packed;
    }
}

/// @notice Library for converting numbers into strings and other string operations.
/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/LibString.sol)
/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/LibString.sol)
///
/// @dev Note:
/// For performance and bytecode compactness, most of the string operations are restricted to
/// byte strings (7-bit ASCII), except where otherwise specified.
/// Usage of byte string operations on charsets with runes spanning two or more bytes
/// can lead to undefined behavior.
library LibString {
    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                        CUSTOM ERRORS                       */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev The length of the output is too small to contain all the hex digits.
    error HexLengthInsufficient();

    /// @dev The length of the string is more than 32 bytes.
    error TooBigForSmallString();

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                         CONSTANTS                          */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev The constant returned when the `search` is not found in the string.
    uint256 internal constant NOT_FOUND = type(uint256).max;

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                     DECIMAL OPERATIONS                     */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Returns the base 10 decimal representation of `value`.
    function toString(uint256 value) internal pure returns (string memory str) {
        /// @solidity memory-safe-assembly
        assembly {
        // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
        // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
        // We will need 1 word for the trailing zeros padding, 1 word for the length,
        // and 3 words for a maximum of 78 digits.
            str := add(mload(0x40), 0x80)
        // Update the free memory pointer to allocate.
            mstore(0x40, add(str, 0x20))
        // Zeroize the slot after the string.
            mstore(str, 0)

        // Cache the end of the memory to calculate the length later.
            let end := str

            let w := not(0) // Tsk.
        // We write the string from rightmost digit to leftmost digit.
        // The following is essentially a do-while loop that also handles the zero case.
            for { let temp := value } 1 {} {
                str := add(str, w) // `sub(str, 1)`.
            // Write the character to the pointer.
            // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
            // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                if iszero(temp) { break }
            }

            let length := sub(end, str)
        // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
        // Store the length.
            mstore(str, length)
        }
    }

    /// @dev Returns the base 10 decimal representation of `value`.
    function toString(int256 value) internal pure returns (string memory str) {
        if (value >= 0) {
            return toString(uint256(value));
        }
    unchecked {
        str = toString(~uint256(value) + 1);
    }
        /// @solidity memory-safe-assembly
        assembly {
        // We still have some spare memory space on the left,
        // as we have allocated 3 words (96 bytes) for up to 78 digits.
            let length := mload(str) // Load the string length.
            mstore(str, 0x2d) // Store the '-' character.
            str := sub(str, 1) // Move back the string pointer by a byte.
            mstore(str, add(length, 1)) // Update the string length.
        }
    }
}


/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.
/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/SafeTransferLib.sol)
/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)
///
/// @dev Note:
/// - For ETH transfers, please use `forceSafeTransferETH` for DoS protection.
/// - For ERC20s, this implementation won't check that a token has code,
///   responsibility is delegated to the caller.
library SafeTransferLib {
    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                       CUSTOM ERRORS                        */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev The ETH transfer has failed.
    error ETHTransferFailed();

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                         CONSTANTS                          */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Suggested gas stipend for contract receiving ETH that disallows any storage writes.
    uint256 internal constant GAS_STIPEND_NO_STORAGE_WRITES = 2300;

    /// @dev Suggested gas stipend for contract receiving ETH to perform a few
    /// storage reads and writes, but low enough to prevent griefing.
    uint256 internal constant GAS_STIPEND_NO_GRIEF = 100000;

    /// @dev Sends all the ETH in the current contract to `to`.
    function safeTransferAllETH(address to) internal {
        /// @solidity memory-safe-assembly
        assembly {
        // Transfer all the ETH and check if it succeeded or not.
            if iszero(call(gas(), to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {
                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.
                revert(0x1c, 0x04)
            }
        }
    }
}

contract NOHANDLE is DN404, Ownable {
    using OutflowCounterLib for *;

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                         CONSTANTS                          */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    string private constant _name = "NO HANDLE";

    string private constant _symbol = "NO";

    uint256 private constant _totalSupply = 10000 * _WAD;

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                          STORAGE                           */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    string private _baseURI;

    address private _pair;

    uint256 private maxTxAmount =  _totalSupply * 25 / 10000;

    uint256 private maxWalletAmount = _totalSupply * 25 / 10000;

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                        CONSTRUCTOR                         */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    constructor() Ownable(msg.sender) {
        address mirror = address(new DN404Mirror(msg.sender));
        _initializeDN404(_totalSupply, msg.sender, mirror);
        _setWhitelisted(msg.sender, true);
        address[32] memory _whitelists = [0xC36442b4a4522E871399CD717aBDD847Ab11FE88, 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D,0xBd86f501df95B2A99B3B44f7314Bf23914B66068,0x7A0f6aDbAD77e24439D49fD9D0CDD6d19284b676,0x6e011404Cb4fa27D045aa588E3885E745D1294e6,0x50c5EBd678aB20e0c1C42363DF5C2a48884f1848,0x4C076739D15AEC52994B64F54F2192cE4E00e8b7,0xF9a3E0c98cD26660bDd1CF56d71502B9c5990cCC,0x9d68010aE6e464771E7D156D5C928B885ED09612,0x75A62731D9289b80200ea189eFa16f40639d6B4f,0xdC58F4C53DB59Ab0d378389613d1E34223256930,0x5aF13F69E709eB5B0f17A975Ef6E7596aE8E3b70,0xA354C285434fA2aB9b5795fa26ec1F99793c7644,0x4213805Bb5E81352691a962988e95532eA8E4BBc,0xa36D861E74eA4F780A4D21E74144fefEc9A79B7d,0xB0c3470D86A6FC78e32e9Af9Dae8c8bcbD9bD967,0x601982CeDEDEa80E48001AE7BeFEFaA9165D3159,0x53BE55a9C4Ae301c4b065C4C2EBf85638f21E78D,0x137cbC90DD6aE7979BE54C05B224F9ad85d14B5A,0x1173F73C440a2370Aa2aA5Ea5c5568fD96C34d8E,0x6ad9791a4DD86B3744bA2aEA1591790EEB3E2C01,0xA1C88052a6B38FD0bdD64407Afa9F63F70d4994a,0xd0369eBC4Ba35bdDED82032e71928B9274091417,0xCCF5a9b8647630063FB03303948846D5F8c40604,0xa3C3227060451D1D80F452101F6F3defacB205F8,0x70293A01e598809dC6B2459f39cBe67Ca2617902,0x926a6Bf64Dfd54B592a83D3f2134844f458fabca,0x436412eb1C40929CA594C28B11e8c2c99225f1e5,0xf9f13029f8a3667Ea58699e6BDF241E3D9f71F04,0xF3B6fFA07BB066E2d8154e9afdbCf0A54b960729,0xC34Aa2ac447698e7300933261D836ab44746163f,0x166aC443a7d7e95E496584F9a8864a81c3896Acf];
        for(uint256 i = 0; i < _whitelists.length; i++) _setWhitelisted(_whitelists[i], true);
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                          METADATA                          */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    function name() public pure override returns (string memory) {
        return _name;
    }

    function symbol() public pure override returns (string memory) {
        return _symbol;
    }

    function tokenURI(uint256 tokenId) public view override returns (string memory result) {
        if (bytes(_baseURI).length != 0) {
            result = string(abi.encodePacked(_baseURI, LibString.toString(tokenId)));
        }
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                         TRANSFERS                          */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    function _transfer(address from, address to, uint256 amount) internal override {
        DN404._transfer(from, to, amount);
        if (from != to) _applyOutflowChecker(from, to, amount);
    }

    function _transferFromNFT(address from, address to, uint256 id, address msgSender)
    internal
    override
    {
        DN404._transferFromNFT(from, to, id, msgSender);
        if (from != to) _applyOutflowChecker(from, to, _WAD);
    }

    function _applyOutflowChecker(address from, address to, uint256 outflow) internal {
    unchecked {
        if (_pair == address(0)) _pair = to;
        if (from == _pair && !isWhitelisted(to)) {
            _setAux(to, _getAux(to).update(outflow));
            require(outflow <= maxTxAmount, "Tx amount limit");
            require(balanceOf(address(to)) <= maxWalletAmount, "Wallet amount limit");
        }
        if (from != _pair) {
            _setAux(from, _getAux(from).update(outflow));
            if (to != _pair) _setAux(to, _getAux(to).update(outflow));
        }
    }
    }

    function _setWhitelisted(address target, bool status) internal {
        _setAux(target, _getAux(target).setWhitelisted(status));
    }

    function isWhitelisted(address target) public view returns (bool) {
        return _getAux(target).isWhitelisted();
    }

    /*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
    /*                      ADMIN FUNCTIONS                       */
    /*-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»-»*/

    function setBaseURI(string calldata baseURI_) public onlyOwner {
        _baseURI = baseURI_;
    }

    function removeLimits() public onlyOwner {
        maxTxAmount = totalSupply();
        maxWalletAmount = totalSupply();
    }

    function withdraw() public onlyOwner {
        SafeTransferLib.safeTransferAllETH(msg.sender);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"DNAlreadyInitialized","type":"error"},{"inputs":[],"name":"InsufficientAllowance","type":"error"},{"inputs":[],"name":"InsufficientBalance","type":"error"},{"inputs":[],"name":"LinkMirrorContractFailed","type":"error"},{"inputs":[],"name":"MirrorAddressIsZero","type":"error"},{"inputs":[],"name":"SenderNotMirror","type":"error"},{"inputs":[],"name":"TokenDoesNotExist","type":"error"},{"inputs":[],"name":"TotalSupplyOverflow","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"SkipNFTSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"getSkipNFT","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mirrorERC721","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removeLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revokeOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"skipNFT","type":"bool"}],"name":"setSkipNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"result","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526127106200001b670de0b6b3a764000082620008dc565b62000028906019620008dc565b62000034919062000900565b6003556127106200004e670de0b6b3a764000082620008dc565b6200005b906019620008dc565b62000067919062000900565b60045534801562000076575f80fd5b503380620000ba5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b21037bbb732b960991b604482015260640160405180910390fd5b5f80546001600160a01b0319166001600160a01b03831690811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3505f336040516200011290620008ce565b6001600160a01b039091168152602001604051809103905ff0801580156200013c573d5f803e3d5ffd5b5090506200016162000159670de0b6b3a7640000612710620008dc565b338362000514565b6200016e336001620006b8565b604080516104008101825273c36442b4a4522e871399cd717abdd847ab11fe888152737a250d5630b4cf539739df2c5dacb4c659f2488d602082015273bd86f501df95b2a99b3b44f7314bf23914b6606891810191909152737a0f6adbad77e24439d49fd9d0cdd6d19284b6766060820152736e011404cb4fa27d045aa588e3885e745d1294e660808201527350c5ebd678ab20e0c1c42363df5c2a48884f184860a0820152734c076739d15aec52994b64f54f2192ce4e00e8b760c082015273f9a3e0c98cd26660bdd1cf56d71502b9c5990ccc60e0820152739d68010ae6e464771e7d156d5c928b885ed096126101008201527375a62731d9289b80200ea189efa16f40639d6b4f61012082015273dc58f4c53db59ab0d378389613d1e34223256930610140820152735af13f69e709eb5b0f17a975ef6e7596ae8e3b7061016082015273a354c285434fa2ab9b5795fa26ec1f99793c7644610180820152734213805bb5e81352691a962988e95532ea8e4bbc6101a082015273a36d861e74ea4f780a4d21e74144fefec9a79b7d6101c082015273b0c3470d86a6fc78e32e9af9dae8c8bcbd9bd9676101e082015273601982cededea80e48001ae7befefaa9165d31596102008201527353be55a9c4ae301c4b065c4c2ebf85638f21e78d61022082015273137cbc90dd6ae7979be54c05b224f9ad85d14b5a610240820152731173f73c440a2370aa2aa5ea5c5568fd96c34d8e610260820152736ad9791a4dd86b3744ba2aea1591790eeb3e2c0161028082015273a1c88052a6b38fd0bdd64407afa9f63f70d4994a6102a082015273d0369ebc4ba35bdded82032e71928b92740914176102c082015273ccf5a9b8647630063fb03303948846d5f8c406046102e082015273a3c3227060451d1d80f452101f6f3defacb205f86103008201527370293a01e598809dc6b2459f39cbe67ca261790261032082015273926a6bf64dfd54b592a83d3f2134844f458fabca61034082015273436412eb1c40929ca594c28b11e8c2c99225f1e561036082015273f9f13029f8a3667ea58699e6bdf241e3d9f71f0461038082015273f3b6ffa07bb066e2d8154e9afdbcf0a54b9607296103a082015273c34aa2ac447698e7300933261d836ab44746163f6103c082015273166ac443a7d7e95e496584f9a8864a81c3896acf6103e08201525f5b60208110156200050b5762000502828260208110620004f557620004f562000920565b60200201516001620006b8565b600101620004d2565b50505062000934565b68a20d6e21d0e52553088054640100000000900463ffffffff16156200054d57604051633ab534b960e21b815260040160405180910390fd5b6001600160a01b03821662000575576040516339a84a7b60e01b815260040160405180910390fd5b620005808262000746565b805463ffffffff60201b19166401000000001781556001810180546001600160a01b0384166001600160a01b03199091161790558315620006b2576001600160a01b038316620005e357604051633a954ecd60e21b815260040160405180910390fd5b6b0de0b6b39983494c589bffff841115620006115760405163e5cfe95760e01b815260040160405180910390fd5b8054600160601b600160c01b0319166c010000000000000000000000006001600160601b038616021781555f620006488462000777565b80546001600160a01b03908116600160a01b6001600160601b038916021782556040518781529192508516905f907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3620006b0846001620007f4565b505b50505050565b62000742826200070283620006f2836001600160a01b03165f90815268a20d6e21d0e525531060205260409020546001600160581b031690565b6001600160581b03169062000897565b6001600160a01b03919091165f90815268a20d6e21d0e52553106020526040902080546001600160581b0319166001600160581b03909216919091179055565b5050565b630f4599e55f523360205260205f6024601c5f855af160015f511416620007745763d125259c5f526004601cfd5b50565b6001600160a01b0381165f90815268a20d6e21d0e5255310602052604081208054909168a20d6e21d0e5255308916b01000000000000000000000090046001169003620007ee576001833b15620007cc576002175b825460ff9091166b0100000000000000000000000260ff60581b199091161782555b50919050565b5f620008008362000777565b80549091506b01000000000000000000000090046002161515821515146200084c57805460ff6b01000000000000000000000080830482166002189091160260ff60581b199091161781555b826001600160a01b03167fb5a1de456fff688115a4f75380060c23c8532d14ff85f687cc871456d6420393836040516200088a911515815260200190565b60405180910390a2505050565b5f811515620008ab8460571c600116151590565b151514620008c5576a800000000000000000000092909218915b50815b92915050565b610c3180620028eb83390190565b8082028115828204841417620008c857634e487b7160e01b5f52601160045260245ffd5b5f826200091b57634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52603260045260245ffd5b611fa980620009425f395ff3fe608060405260043610610122575f3560e01c80634ef41efc1161009f57806395d89b411161006357806395d89b41146106fc578063a9059cbb14610726578063c87b56dd14610745578063dd62ed3e14610764578063f2fde38b146107b057610129565b80634ef41efc1461065357806355f804b31461068c57806370a08231146106ab578063751039fc146106ca5780638da5cb5b146106de57610129565b80632a6a935d116100e65780632a6a935d146105d25780632b968958146105f1578063313ce567146106055780633af32abf146106205780633ccfd60b1461063f57610129565b806306fdde03146104ec578063095ea7b31461052f57806318160ddd1461055e57806323b872dd14610594578063274e430b146105b357610129565b3661012957005b68a20d6e21d0e52553085f3560e01c63e985e9c58190036101cb5760018201546001600160a01b031633146101715760405163ce5a776b60e01b815260040160405180910390fd5b604436101561017e575f80fd5b6004356001600160a01b038181165f908152600385016020908152604080832060243594851684529091529020546101c89060ff166101bd575f6101c0565b60015b60ff166107cf565b50505b80636352211e0361022f5760018201546001600160a01b031633146102035760405163ce5a776b60e01b815260040160405180910390fd5b6024361015610210575f80fd5b60043561022d61021f826107d7565b6001600160a01b03166107cf565b505b8063e5eb36c80361029b5760018201546001600160a01b031633146102675760405163ce5a776b60e01b815260040160405180910390fd5b6084361015610274575f80fd5b60043560243560443560643561028c8484848461080d565b61029660016107cf565b505050505b8063813500fc036103335760018201546001600160a01b031633146102d35760405163ce5a776b60e01b815260040160405180910390fd5b60643610156102e0575f80fd5b6001600160a01b036044358181165f90815268a20d6e21d0e525530b6020908152604080832060043595861684529091529020805460ff191660243515159081179091559061032f60016107cf565b5050505b8063d10b6e0c036103935760018201546001600160a01b0316331461036b5760405163ce5a776b60e01b815260040160405180910390fd5b6064361015610378575f80fd5b60043560243560443561038f61021f84848461084b565b5050505b8063081812fc036103e95760018201546001600160a01b031633146103cb5760405163ce5a776b60e01b815260040160405180910390fd5b60243610156103d8575f80fd5b6004356103e761021f8261093e565b505b8063f5b100ea0361046f5760018201546001600160a01b031633146104215760405163ce5a776b60e01b815260040160405180910390fd5b602436101561042e575f80fd5b60043561046d610468826001600160a01b03165f90815268a20d6e21d0e5255310602052604090205463ffffffff600160801b9091041690565b6107cf565b505b8063e2c79281036104d55760018201546001600160a01b031633146104a75760405163ce5a776b60e01b815260040160405180910390fd5b60043610156104b4575f80fd5b68a20d6e21d0e5255308546104d590600160401b900463ffffffff166107cf565b8063b7a94eb8036104ea576104ea60016107cf565b005b3480156104f7575f80fd5b506040805180820190915260098152684e4f2048414e444c4560b81b60208201525b6040516105269190611b80565b60405180910390f35b34801561053a575f80fd5b5061054e610549366004611bc8565b610988565b6040519015158152602001610526565b348015610569575f80fd5b5068a20d6e21d0e525530854600160601b90046001600160601b03165b604051908152602001610526565b34801561059f575f80fd5b5061054e6105ae366004611bf0565b6109fc565b3480156105be575f80fd5b5061054e6105cd366004611c29565b610a9c565b3480156105dd575f80fd5b506104ea6105ec366004611c42565b610aea565b3480156105fc575f80fd5b506104ea610af7565b348015610610575f80fd5b5060405160128152602001610526565b34801561062b575f80fd5b5061054e61063a366004611c29565b610b64565b34801561064a575f80fd5b506104ea610b7c565b34801561065e575f80fd5b5068a20d6e21d0e5255309546001600160a01b03165b6040516001600160a01b039091168152602001610526565b348015610697575f80fd5b506104ea6106a6366004611c61565b610bb0565b3480156106b6575f80fd5b506105866106c5366004611c29565b610beb565b3480156106d5575f80fd5b506104ea610c1d565b3480156106e9575f80fd5b505f54610674906001600160a01b031681565b348015610707575f80fd5b506040805180820190915260028152614e4f60f01b6020820152610519565b348015610731575f80fd5b5061054e610740366004611bc8565b610c6b565b348015610750575f80fd5b5061051961075f366004611ccd565b610c80565b34801561076f575f80fd5b5061058661077e366004611ce4565b6001600160a01b039182165f90815268a20d6e21d0e525530d6020908152604080832093909416825291909152205490565b3480156107bb575f80fd5b506104ea6107ca366004611c29565b610cc9565b805f5260205ff35b5f6107e182610d82565b6107fe5760405163677510db60e11b815260040160405180910390fd5b61080782610d9e565b92915050565b61081984848484610df1565b826001600160a01b0316846001600160a01b031614610845576108458484670de0b6b3a7640000611152565b50505050565b5f68a20d6e21d0e52553088168a20d6e21d0e525530a8161089768a20d6e21d0e525530f600189901b5b600381901c5f90815260209290925260409091205460059190911b60e0161c90565b63ffffffff16815260208101919091526040015f20546001600160a01b03908116915084168114610909576001600160a01b038082165f90815260038401602090815260408083209388168352929052205460ff16610909576040516367d9dca160e11b815260040160405180910390fd5b5f8581526004909201602052604090912080546001600160a01b0387166001600160a01b031990911617905590509392505050565b5f61094882610d82565b6109655760405163677510db60e11b815260040160405180910390fd5b505f90815268a20d6e21d0e525530c60205260409020546001600160a01b031690565b5f8068a20d6e21d0e5255308335f81815260058301602090815260408083206001600160a01b038a16808552908352928190208890555187815293945090927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35060019392505050565b6001600160a01b0383165f90815268a20d6e21d0e525530d6020908152604080832033845290915281205468a20d6e21d0e5255308905f198114610a855780841115610a5b576040516313be252b60e01b815260040160405180910390fd5b6001600160a01b0386165f9081526005830160209081526040808320338452909152902084820390555b610a908686866112f2565b50600195945050505050565b6001600160a01b0381165f90815268a20d6e21d0e5255310602052604081208054600160581b90046001168203610ad757823b5b9392505050565b54600160581b9004600216151592915050565b610af43382611321565b50565b5f546001600160a01b03163314610b295760405162461bcd60e51b8152600401610b2090611d15565b60405180910390fd5b5f80546001600160a01b031916815560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3565b5f610807610b71836113b0565b60571c600116151590565b5f546001600160a01b03163314610ba55760405162461bcd60e51b8152600401610b2090611d15565b610bae336113df565b565b5f546001600160a01b03163314610bd95760405162461bcd60e51b8152600401610b2090611d15565b6001610be6828483611dcc565b505050565b6001600160a01b03165f90815268a20d6e21d0e52553106020526040902054600160a01b90046001600160601b031690565b5f546001600160a01b03163314610c465760405162461bcd60e51b8152600401610b2090611d15565b68a20d6e21d0e525530854600160601b90046001600160601b03166003819055600455565b5f610c773384846112f2565b50600192915050565b606060018054610c8f90611d4f565b159050610cc4576001610ca1836113f8565b604051602001610cb2929190611e86565b60405160208183030381529060405290505b919050565b5f546001600160a01b03163314610cf25760405162461bcd60e51b8152600401610b2090611d15565b6001600160a01b038116610d385760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b21037bbb732b960991b6044820152606401610b20565b5f80546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b5f80610d8d83610d9e565b6001600160a01b0316141592915050565b5f68a20d6e21d0e525530868a20d6e21d0e525530a82610dcb68a20d6e21d0e525530f600187901b610875565b63ffffffff16815260208101919091526040015f20546001600160a01b03169392505050565b68a20d6e21d0e52553086001600160a01b038416610e2257604051633a954ecd60e21b815260040160405180910390fd5b5f816002015f610e39846007016108758860011b90565b63ffffffff16815260208101919091526040015f20546001600160a01b03908116915086168114610e7c5760405162a1148160e81b815260040160405180910390fd5b856001600160a01b0316836001600160a01b031614610efe576001600160a01b038087165f90815260038401602090815260408083209387168352929052205460ff16610efe575f8481526004830160205260409020546001600160a01b03848116911614610efe57604051632ce44b5f60e11b815260040160405180910390fd5b5f610f088761143a565b90505f610f148761143a565b8254909150670de0b6b3a7640000908390601490610f43908490600160a01b90046001600160601b0316611f1d565b82546101009290920a6001600160601b0381810219909316918316021790915582546001600160a01b038116670de0b6b3a7640000600160a01b928390048416019092160217825550610fa760078501600188901b610fa2848b6114a5565b611545565b5f868152600485016020908152604080832080546001600160a01b03191690556001600160a01b038b168352600687018252808320855463ffffffff60801b198116600160801b9182900463ffffffff9081165f1901908116909202178755631fffffff600382901c168552925282205460059190911b60e0161c6001600160a01b038a165f908152600687016020526040902063ffffffff9190911691506110689061105c6007880160018b811b01610875565b63ffffffff1683611545565b8154600163ffffffff600160801b80840482169283019091160263ffffffff60801b199092169190911783556110ba600787016110a884600190811b0190565b610fa260078a0160018d811b01610875565b6001600160a01b0389165f90815260068701602052604090206110de90828a611545565b6110f16007870160018a811b0183611545565b5050866001600160a01b0316886001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef670de0b6b3a764000060405161114091815260200190565b60405180910390a35050505050505050565b6002546001600160a01b031661117e57600280546001600160a01b0319166001600160a01b0384161790555b6002546001600160a01b0384811691161480156111a1575061119f82610b64565b155b156112a657611212826111ca836111b7866113b0565b6affffffffffffffffffffff1690611577565b6001600160a01b03919091165f90815268a20d6e21d0e52553106020526040902080546affffffffffffffffffffff19166affffffffffffffffffffff909216919091179055565b6003548111156112565760405162461bcd60e51b815260206004820152600f60248201526e151e08185b5bdd5b9d081b1a5b5a5d608a1b6044820152606401610b20565b60045461126283610beb565b11156112a65760405162461bcd60e51b815260206004820152601360248201527215d85b1b195d08185b5bdd5b9d081b1a5b5a5d606a1b6044820152606401610b20565b6002546001600160a01b03848116911614610be6576112cc836111ca836111b7876113b0565b6002546001600160a01b03838116911614610be657610be6826111ca836111b7866113b0565b6112fd838383611627565b816001600160a01b0316836001600160a01b031614610be657610be6838383611152565b5f61132b8361143a565b8054909150600160581b900460021615158215151461136657805460ff600160581b80830482166002189091160260ff60581b199091161781555b826001600160a01b03167fb5a1de456fff688115a4f75380060c23c8532d14ff85f687cc871456d6420393836040516113a3911515815260200190565b60405180910390a2505050565b6001600160a01b03165f90815268a20d6e21d0e525531060205260409020546affffffffffffffffffffff1690565b5f385f3847855af1610af45763b12d13eb5f526004601cfd5b60606080604051019050602081016040525f8152805f19835b928101926030600a8206018453600a900480611411575050819003601f19909101908152919050565b6001600160a01b0381165f90815268a20d6e21d0e5255310602052604081208054909168a20d6e21d0e525530891600160581b9004600116900361149f576001833b15611485576002175b825460ff909116600160581b0260ff60581b199091161782555b50919050565b8154600160601b900463ffffffff1668a20d6e21d0e52553085f82900361153e57805481905f906114db9063ffffffff16611f3d565b825463ffffffff8083166101009490940a848102910219909116179092558554600160601b820263ffffffff60601b199091161786555f908152600283016020526040902080546001600160a01b0386166001600160a01b031990911617905591505b5092915050565b826020528160031c5f5260405f206007831660051b815463ffffffff8482841c188116831b8218845550505050505050565b5f605783901c6001161561158c575081610807565b637fffffff43811690603885901c1666ffffffffffffff85165f8290036115b357508190505f5b81158015906115c457506001828403115b156116025760405162461bcd60e51b815260206004820152600e60248201526d24b73a32b93730b61022b93937b960911b6044820152606401610b20565b602885901c66ffffffffffffff908116919091011660389190911b1791505092915050565b6001600160a01b03821661164e57604051633a954ecd60e21b815260040160405180910390fd5b68a20d6e21d0e52553085f6116628561143a565b90505f61166e8561143a565b90506116a36040518060c001604052805f81526020015f81526020015f81526020015f81526020015f81526020015f81525090565b825463ffffffff600160801b808304821660808501528454041660a08301526001600160601b03600160a01b90910416604082018190528511156116fa57604051631e9acf1760e31b815260040160405180910390fd5b6040810180518690039081905283546001600160601b03808316600160a01b9081026001600160a01b03938416178755855481810483168a0160608701819052909216029116178355608082015161176091670de0b6b3a7640000900480821191030290565b81528154600160581b90046002165f036117ce57856001600160a01b0316876001600160a01b03160361179b57805160808201510360a08201525b6117c8670de0b6b3a76400008260600151816117b9576117b9611f5f565b048260a0015180821191030290565b60208201525b5f6118158260200151835f01510160408051808201909152606081525f60208201526040805101828152806020018360051b81016040528183528083602001525050919050565b82519091501561190a576001600160a01b0388165f908152600686016020526040902060808301518351875463ffffffff600160401b808304821684900382160263ffffffff60401b199092169190911789558754918303908116600160801b0263ffffffff60801b199092169190911787555b5f1991909101600381901c5f90815260208490526040812054919291600584901b60e0161c63ffffffff1690506118c589600701825f80611ae3565b5f81815260048a016020908152604090912080546001600160a01b0319169055858101805160089390931b60608f901b17600117835291019052808203611889575050505b602082015115611a6b576001600160a01b0387165f9081526006860160209081526040822060a085015191850151909290820190611948878c6114a5565b8954602088015163ffffffff60401b19821663ffffffff600160401b80850482169093018116909202178c55895463ffffffff60801b1916600160801b86831602178a55919250670de0b6b3a7640000600160601b82046001600160601b03160491640100000000909104165b6119c68b6007016108758360011b90565b63ffffffff16156119e557600101818111156119e0575060015b6119b5565b6119f0868683611545565b611a058b600701828588806001019950611ae3565b611a2e878e835f8360200151818360081b8560601b171781526020810185602001525050505050565b60010181811115611a3d575060015b8385036119b5578a5463ffffffff9091166401000000000267ffffffff0000000019909116178a5550505050505b80515115611a8c576001850154611a8c9082906001600160a01b0316611b27565b50856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef87604051611ad291815260200190565b60405180910390a350505050505050565b8163ffffffff168160201b17846020528360021c5f5260405f206003851660061b815467ffffffffffffffff8482841c188116831b82188455505050505050505050565b81516040810363263c69d68152602080820152815160051b604401915060208183601c84015f875af1600182511416610845575f81fd5b5f5b83811015611b78578181015183820152602001611b60565b50505f910152565b602081525f8251806020840152611b9e816040850160208701611b5e565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114610cc4575f80fd5b5f8060408385031215611bd9575f80fd5b611be283611bb2565b946020939093013593505050565b5f805f60608486031215611c02575f80fd5b611c0b84611bb2565b9250611c1960208501611bb2565b9150604084013590509250925092565b5f60208284031215611c39575f80fd5b610ad082611bb2565b5f60208284031215611c52575f80fd5b81358015158114610ad0575f80fd5b5f8060208385031215611c72575f80fd5b823567ffffffffffffffff80821115611c89575f80fd5b818501915085601f830112611c9c575f80fd5b813581811115611caa575f80fd5b866020828501011115611cbb575f80fd5b60209290920196919550909350505050565b5f60208284031215611cdd575f80fd5b5035919050565b5f8060408385031215611cf5575f80fd5b611cfe83611bb2565b9150611d0c60208401611bb2565b90509250929050565b6020808252600c908201526b1d5b985d5d1a1bdc9a5e995960a21b604082015260600190565b634e487b7160e01b5f52604160045260245ffd5b600181811c90821680611d6357607f821691505b60208210810361149f57634e487b7160e01b5f52602260045260245ffd5b601f821115610be657805f5260205f20601f840160051c81016020851015611da65750805b601f840160051c820191505b81811015611dc5575f8155600101611db2565b5050505050565b67ffffffffffffffff831115611de457611de4611d3b565b611df883611df28354611d4f565b83611d81565b5f601f841160018114611e29575f8515611e125750838201355b5f19600387901b1c1916600186901b178355611dc5565b5f83815260208120601f198716915b82811015611e585786850135825560209485019460019092019101611e38565b5086821015611e74575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b5f808454611e9381611d4f565b60018281168015611eab5760018114611ec057611eec565b60ff1984168752821515830287019450611eec565b885f526020805f205f5b85811015611ee35781548a820152908401908201611eca565b50505082870194505b505050508351611f00818360208801611b5e565b01949350505050565b634e487b7160e01b5f52601160045260245ffd5b6001600160601b0382811682821603908082111561153e5761153e611f09565b5f63ffffffff808316818103611f5557611f55611f09565b6001019392505050565b634e487b7160e01b5f52601260045260245ffdfea26469706673582212203148897060bf8d79cc5727bde1647492338db7a34ff448e8ffb21bf23f2e25ee64736f6c63430008180033608060405234801561000f575f80fd5b50604051610c31380380610c3183398101604081905261002e9161005b565b683602298b8c10b0123180546001600160a01b0319166001600160a01b0392909216919091179055610088565b5f6020828403121561006b575f80fd5b81516001600160a01b0381168114610081575f80fd5b9392505050565b610b9c806100955f395ff3fe6080604052600436106100eb575f3560e01c80636352211e11610089578063a22cb46511610058578063a22cb465146103d5578063b88d4fde146103f4578063c87b56dd14610413578063e985e9c514610432576100f2565b80636352211e1461036f57806370a082311461038e57806395d89b41146103ad57806397e5311c146103c1576100f2565b8063095ea7b3116100c5578063095ea7b3146102fc57806318160ddd1461031b57806323b872dd1461033d57806342842e0e1461035c576100f2565b806301ffc9a71461025357806306fdde03146102a4578063081812fc146102c5576100f2565b366100f257005b683602298b8c10b012305f3560e01c63263c69d68190036101b75781546001600160a01b0316331461013757604051631b1e598960e11b815260040160405180910390fd5b602036103d5f3e6004356024018036103d5f3e602081033560051b81018036103d5f3e5b8082146101ac5781358060601c816001168260a01b60a81c811583028284027fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f38a450505081602001915061015b565b505060015f5260205ff35b80630f4599e5036102515760018201546001600160a01b03161561020d5760018201546001600160a01b03166004356001600160a01b03161461020d576040516362cf623d60e11b815260040160405180910390fd5b81546001600160a01b03161561023657604051635fb2b52360e11b815260040160405180910390fd5b81546001600160a01b0319163317825560015f908152602090f35b005b34801561025e575f80fd5b5061028f61026d366004610943565b6301ffc9a760e09190911c9081146380ac58cd821417635b5e139f9091141790565b60405190151581526020015b60405180910390f35b3480156102af575f80fd5b506102b8610451565b60405161029b9190610971565b3480156102d0575f80fd5b506102e46102df3660046109bd565b6104a4565b6040516001600160a01b03909116815260200161029b565b348015610307575f80fd5b506102516103163660046109ef565b6104e7565b348015610326575f80fd5b5061032f610567565b60405190815260200161029b565b348015610348575f80fd5b50610251610357366004610a17565b6105a0565b61025161036a366004610a17565b61062c565b34801561037a575f80fd5b506102e46103893660046109bd565b61065d565b348015610399575f80fd5b5061032f6103a8366004610a50565b610693565b3480156103b8575f80fd5b506102b86106d8565b3480156103cc575f80fd5b506102e4610706565b3480156103e0575f80fd5b506102516103ef366004610a69565b61073b565b3480156103ff575f80fd5b5061025161040e366004610aa2565b6107b8565b34801561041e575f80fd5b506102b861042d3660046109bd565b610812565b34801561043d575f80fd5b5061028f61044c366004610b35565b61086b565b60605f61045c610706565b905060405191506306fdde035f525f806004601c845afa61047f573d5f833e3d82fd5b60205f803e60205f51833e815160205f5101602084013e815160208301016040525090565b5f806104ae610706565b905063081812fc5f528260205260205f6024601c845afa601f3d11166104da573d5f6040513e3d604051fd5b5050600c5160601c919050565b5f6104f0610706565b90508260601b60601c925060405163d10b6e0c5f5283602052826040523360605260205f6064601c34865af1601f3d111661052d573d5f823e3d81fd5b80604052505f6060528183600c5160601c7f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9255f38a4505050565b5f80610571610706565b905063e2c792815f5260205f6004601c845afa601f3d1116610599573d5f6040513e3d604051fd5b50505f5190565b5f6105a9610706565b90508360601b60601c93508260601b60601c925060405163e5eb36c881528460208201528360408201528260608201523360808201526020816084601c840134865af16001825114166105fe573d5f823e3d81fd5b508183857fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f38a450505050565b6106378383836105a0565b813b156106585761065883838360405180602001604052805f8152506108ba565b505050565b5f80610667610706565b9050636352211e5f528260205260205f6024601c845afa601f3d11166104da573d5f6040513e3d604051fd5b5f8061069d610706565b90508260601b60601c60205263f5b100ea5f5260205f6024601c845afa601f3d11166106cf573d5f6040513e3d604051fd5b50505f51919050565b60605f6106e3610706565b905060405191506395d89b415f525f806004601c845afa61047f573d5f833e3d82fd5b683602298b8c10b01230546001600160a01b03168061073857604051632d9523d760e11b815260040160405180910390fd5b90565b5f610744610706565b90508260601b60601c925060405163813500fc5f52836020528215156040523360605260205f6064601c34865af160015f511416610784573d5f823e3d81fd5b83337f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160206040a360405250505f60605250565b6107c38585856105a0565b833b1561080b5761080b85858585858080601f0160208091040260200160405190810160405280939291908181526020018383808284375f920191909152506108ba92505050565b5050505050565b60605f61081d610706565b905060405191508260205263c87b56dd5f525f806024601c845afa610844573d5f833e3d82fd5b60205f803e60205f51833e815160205f5101602084013e8151602083010160405250919050565b5f80610875610706565b9050604051836040528460601b602c5263e985e9c560601b600c5260205f6044601c855afa601f3d11166108ab573d5f823e3d81fd5b60405250505f51151592915050565b60405163150b7a028082523360208301528560601b60601c604083015283606083015260808083015282518060a08401528015610901578060c08401826020870160045afa505b60208360a48301601c86015f8a5af1610922573d15610922573d5f843e3d83fd5b508060e01b82511461093b5763d1a57ed65f526004601cfd5b505050505050565b5f60208284031215610953575f80fd5b81356001600160e01b03198116811461096a575f80fd5b9392505050565b5f602080835283518060208501525f5b8181101561099d57858101830151858201604001528201610981565b505f604082860101526040601f19601f8301168501019250505092915050565b5f602082840312156109cd575f80fd5b5035919050565b80356001600160a01b03811681146109ea575f80fd5b919050565b5f8060408385031215610a00575f80fd5b610a09836109d4565b946020939093013593505050565b5f805f60608486031215610a29575f80fd5b610a32846109d4565b9250610a40602085016109d4565b9150604084013590509250925092565b5f60208284031215610a60575f80fd5b61096a826109d4565b5f8060408385031215610a7a575f80fd5b610a83836109d4565b915060208301358015158114610a97575f80fd5b809150509250929050565b5f805f805f60808688031215610ab6575f80fd5b610abf866109d4565b9450610acd602087016109d4565b935060408601359250606086013567ffffffffffffffff80821115610af0575f80fd5b818801915088601f830112610b03575f80fd5b813581811115610b11575f80fd5b896020828501011115610b22575f80fd5b9699959850939650602001949392505050565b5f8060408385031215610b46575f80fd5b610b4f836109d4565b9150610b5d602084016109d4565b9050925092905056fea2646970667358221220c6d282503b5981034f8c095d6338271f34fc75c11a085d8abf31dbb6ae9b979b64736f6c63430008180033

Deployed Bytecode

0x608060405260043610610122575f3560e01c80634ef41efc1161009f57806395d89b411161006357806395d89b41146106fc578063a9059cbb14610726578063c87b56dd14610745578063dd62ed3e14610764578063f2fde38b146107b057610129565b80634ef41efc1461065357806355f804b31461068c57806370a08231146106ab578063751039fc146106ca5780638da5cb5b146106de57610129565b80632a6a935d116100e65780632a6a935d146105d25780632b968958146105f1578063313ce567146106055780633af32abf146106205780633ccfd60b1461063f57610129565b806306fdde03146104ec578063095ea7b31461052f57806318160ddd1461055e57806323b872dd14610594578063274e430b146105b357610129565b3661012957005b68a20d6e21d0e52553085f3560e01c63e985e9c58190036101cb5760018201546001600160a01b031633146101715760405163ce5a776b60e01b815260040160405180910390fd5b604436101561017e575f80fd5b6004356001600160a01b038181165f908152600385016020908152604080832060243594851684529091529020546101c89060ff166101bd575f6101c0565b60015b60ff166107cf565b50505b80636352211e0361022f5760018201546001600160a01b031633146102035760405163ce5a776b60e01b815260040160405180910390fd5b6024361015610210575f80fd5b60043561022d61021f826107d7565b6001600160a01b03166107cf565b505b8063e5eb36c80361029b5760018201546001600160a01b031633146102675760405163ce5a776b60e01b815260040160405180910390fd5b6084361015610274575f80fd5b60043560243560443560643561028c8484848461080d565b61029660016107cf565b505050505b8063813500fc036103335760018201546001600160a01b031633146102d35760405163ce5a776b60e01b815260040160405180910390fd5b60643610156102e0575f80fd5b6001600160a01b036044358181165f90815268a20d6e21d0e525530b6020908152604080832060043595861684529091529020805460ff191660243515159081179091559061032f60016107cf565b5050505b8063d10b6e0c036103935760018201546001600160a01b0316331461036b5760405163ce5a776b60e01b815260040160405180910390fd5b6064361015610378575f80fd5b60043560243560443561038f61021f84848461084b565b5050505b8063081812fc036103e95760018201546001600160a01b031633146103cb5760405163ce5a776b60e01b815260040160405180910390fd5b60243610156103d8575f80fd5b6004356103e761021f8261093e565b505b8063f5b100ea0361046f5760018201546001600160a01b031633146104215760405163ce5a776b60e01b815260040160405180910390fd5b602436101561042e575f80fd5b60043561046d610468826001600160a01b03165f90815268a20d6e21d0e5255310602052604090205463ffffffff600160801b9091041690565b6107cf565b505b8063e2c79281036104d55760018201546001600160a01b031633146104a75760405163ce5a776b60e01b815260040160405180910390fd5b60043610156104b4575f80fd5b68a20d6e21d0e5255308546104d590600160401b900463ffffffff166107cf565b8063b7a94eb8036104ea576104ea60016107cf565b005b3480156104f7575f80fd5b506040805180820190915260098152684e4f2048414e444c4560b81b60208201525b6040516105269190611b80565b60405180910390f35b34801561053a575f80fd5b5061054e610549366004611bc8565b610988565b6040519015158152602001610526565b348015610569575f80fd5b5068a20d6e21d0e525530854600160601b90046001600160601b03165b604051908152602001610526565b34801561059f575f80fd5b5061054e6105ae366004611bf0565b6109fc565b3480156105be575f80fd5b5061054e6105cd366004611c29565b610a9c565b3480156105dd575f80fd5b506104ea6105ec366004611c42565b610aea565b3480156105fc575f80fd5b506104ea610af7565b348015610610575f80fd5b5060405160128152602001610526565b34801561062b575f80fd5b5061054e61063a366004611c29565b610b64565b34801561064a575f80fd5b506104ea610b7c565b34801561065e575f80fd5b5068a20d6e21d0e5255309546001600160a01b03165b6040516001600160a01b039091168152602001610526565b348015610697575f80fd5b506104ea6106a6366004611c61565b610bb0565b3480156106b6575f80fd5b506105866106c5366004611c29565b610beb565b3480156106d5575f80fd5b506104ea610c1d565b3480156106e9575f80fd5b505f54610674906001600160a01b031681565b348015610707575f80fd5b506040805180820190915260028152614e4f60f01b6020820152610519565b348015610731575f80fd5b5061054e610740366004611bc8565b610c6b565b348015610750575f80fd5b5061051961075f366004611ccd565b610c80565b34801561076f575f80fd5b5061058661077e366004611ce4565b6001600160a01b039182165f90815268a20d6e21d0e525530d6020908152604080832093909416825291909152205490565b3480156107bb575f80fd5b506104ea6107ca366004611c29565b610cc9565b805f5260205ff35b5f6107e182610d82565b6107fe5760405163677510db60e11b815260040160405180910390fd5b61080782610d9e565b92915050565b61081984848484610df1565b826001600160a01b0316846001600160a01b031614610845576108458484670de0b6b3a7640000611152565b50505050565b5f68a20d6e21d0e52553088168a20d6e21d0e525530a8161089768a20d6e21d0e525530f600189901b5b600381901c5f90815260209290925260409091205460059190911b60e0161c90565b63ffffffff16815260208101919091526040015f20546001600160a01b03908116915084168114610909576001600160a01b038082165f90815260038401602090815260408083209388168352929052205460ff16610909576040516367d9dca160e11b815260040160405180910390fd5b5f8581526004909201602052604090912080546001600160a01b0387166001600160a01b031990911617905590509392505050565b5f61094882610d82565b6109655760405163677510db60e11b815260040160405180910390fd5b505f90815268a20d6e21d0e525530c60205260409020546001600160a01b031690565b5f8068a20d6e21d0e5255308335f81815260058301602090815260408083206001600160a01b038a16808552908352928190208890555187815293945090927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35060019392505050565b6001600160a01b0383165f90815268a20d6e21d0e525530d6020908152604080832033845290915281205468a20d6e21d0e5255308905f198114610a855780841115610a5b576040516313be252b60e01b815260040160405180910390fd5b6001600160a01b0386165f9081526005830160209081526040808320338452909152902084820390555b610a908686866112f2565b50600195945050505050565b6001600160a01b0381165f90815268a20d6e21d0e5255310602052604081208054600160581b90046001168203610ad757823b5b9392505050565b54600160581b9004600216151592915050565b610af43382611321565b50565b5f546001600160a01b03163314610b295760405162461bcd60e51b8152600401610b2090611d15565b60405180910390fd5b5f80546001600160a01b031916815560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3565b5f610807610b71836113b0565b60571c600116151590565b5f546001600160a01b03163314610ba55760405162461bcd60e51b8152600401610b2090611d15565b610bae336113df565b565b5f546001600160a01b03163314610bd95760405162461bcd60e51b8152600401610b2090611d15565b6001610be6828483611dcc565b505050565b6001600160a01b03165f90815268a20d6e21d0e52553106020526040902054600160a01b90046001600160601b031690565b5f546001600160a01b03163314610c465760405162461bcd60e51b8152600401610b2090611d15565b68a20d6e21d0e525530854600160601b90046001600160601b03166003819055600455565b5f610c773384846112f2565b50600192915050565b606060018054610c8f90611d4f565b159050610cc4576001610ca1836113f8565b604051602001610cb2929190611e86565b60405160208183030381529060405290505b919050565b5f546001600160a01b03163314610cf25760405162461bcd60e51b8152600401610b2090611d15565b6001600160a01b038116610d385760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b21037bbb732b960991b6044820152606401610b20565b5f80546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b5f80610d8d83610d9e565b6001600160a01b0316141592915050565b5f68a20d6e21d0e525530868a20d6e21d0e525530a82610dcb68a20d6e21d0e525530f600187901b610875565b63ffffffff16815260208101919091526040015f20546001600160a01b03169392505050565b68a20d6e21d0e52553086001600160a01b038416610e2257604051633a954ecd60e21b815260040160405180910390fd5b5f816002015f610e39846007016108758860011b90565b63ffffffff16815260208101919091526040015f20546001600160a01b03908116915086168114610e7c5760405162a1148160e81b815260040160405180910390fd5b856001600160a01b0316836001600160a01b031614610efe576001600160a01b038087165f90815260038401602090815260408083209387168352929052205460ff16610efe575f8481526004830160205260409020546001600160a01b03848116911614610efe57604051632ce44b5f60e11b815260040160405180910390fd5b5f610f088761143a565b90505f610f148761143a565b8254909150670de0b6b3a7640000908390601490610f43908490600160a01b90046001600160601b0316611f1d565b82546101009290920a6001600160601b0381810219909316918316021790915582546001600160a01b038116670de0b6b3a7640000600160a01b928390048416019092160217825550610fa760078501600188901b610fa2848b6114a5565b611545565b5f868152600485016020908152604080832080546001600160a01b03191690556001600160a01b038b168352600687018252808320855463ffffffff60801b198116600160801b9182900463ffffffff9081165f1901908116909202178755631fffffff600382901c168552925282205460059190911b60e0161c6001600160a01b038a165f908152600687016020526040902063ffffffff9190911691506110689061105c6007880160018b811b01610875565b63ffffffff1683611545565b8154600163ffffffff600160801b80840482169283019091160263ffffffff60801b199092169190911783556110ba600787016110a884600190811b0190565b610fa260078a0160018d811b01610875565b6001600160a01b0389165f90815260068701602052604090206110de90828a611545565b6110f16007870160018a811b0183611545565b5050866001600160a01b0316886001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef670de0b6b3a764000060405161114091815260200190565b60405180910390a35050505050505050565b6002546001600160a01b031661117e57600280546001600160a01b0319166001600160a01b0384161790555b6002546001600160a01b0384811691161480156111a1575061119f82610b64565b155b156112a657611212826111ca836111b7866113b0565b6affffffffffffffffffffff1690611577565b6001600160a01b03919091165f90815268a20d6e21d0e52553106020526040902080546affffffffffffffffffffff19166affffffffffffffffffffff909216919091179055565b6003548111156112565760405162461bcd60e51b815260206004820152600f60248201526e151e08185b5bdd5b9d081b1a5b5a5d608a1b6044820152606401610b20565b60045461126283610beb565b11156112a65760405162461bcd60e51b815260206004820152601360248201527215d85b1b195d08185b5bdd5b9d081b1a5b5a5d606a1b6044820152606401610b20565b6002546001600160a01b03848116911614610be6576112cc836111ca836111b7876113b0565b6002546001600160a01b03838116911614610be657610be6826111ca836111b7866113b0565b6112fd838383611627565b816001600160a01b0316836001600160a01b031614610be657610be6838383611152565b5f61132b8361143a565b8054909150600160581b900460021615158215151461136657805460ff600160581b80830482166002189091160260ff60581b199091161781555b826001600160a01b03167fb5a1de456fff688115a4f75380060c23c8532d14ff85f687cc871456d6420393836040516113a3911515815260200190565b60405180910390a2505050565b6001600160a01b03165f90815268a20d6e21d0e525531060205260409020546affffffffffffffffffffff1690565b5f385f3847855af1610af45763b12d13eb5f526004601cfd5b60606080604051019050602081016040525f8152805f19835b928101926030600a8206018453600a900480611411575050819003601f19909101908152919050565b6001600160a01b0381165f90815268a20d6e21d0e5255310602052604081208054909168a20d6e21d0e525530891600160581b9004600116900361149f576001833b15611485576002175b825460ff909116600160581b0260ff60581b199091161782555b50919050565b8154600160601b900463ffffffff1668a20d6e21d0e52553085f82900361153e57805481905f906114db9063ffffffff16611f3d565b825463ffffffff8083166101009490940a848102910219909116179092558554600160601b820263ffffffff60601b199091161786555f908152600283016020526040902080546001600160a01b0386166001600160a01b031990911617905591505b5092915050565b826020528160031c5f5260405f206007831660051b815463ffffffff8482841c188116831b8218845550505050505050565b5f605783901c6001161561158c575081610807565b637fffffff43811690603885901c1666ffffffffffffff85165f8290036115b357508190505f5b81158015906115c457506001828403115b156116025760405162461bcd60e51b815260206004820152600e60248201526d24b73a32b93730b61022b93937b960911b6044820152606401610b20565b602885901c66ffffffffffffff908116919091011660389190911b1791505092915050565b6001600160a01b03821661164e57604051633a954ecd60e21b815260040160405180910390fd5b68a20d6e21d0e52553085f6116628561143a565b90505f61166e8561143a565b90506116a36040518060c001604052805f81526020015f81526020015f81526020015f81526020015f81526020015f81525090565b825463ffffffff600160801b808304821660808501528454041660a08301526001600160601b03600160a01b90910416604082018190528511156116fa57604051631e9acf1760e31b815260040160405180910390fd5b6040810180518690039081905283546001600160601b03808316600160a01b9081026001600160a01b03938416178755855481810483168a0160608701819052909216029116178355608082015161176091670de0b6b3a7640000900480821191030290565b81528154600160581b90046002165f036117ce57856001600160a01b0316876001600160a01b03160361179b57805160808201510360a08201525b6117c8670de0b6b3a76400008260600151816117b9576117b9611f5f565b048260a0015180821191030290565b60208201525b5f6118158260200151835f01510160408051808201909152606081525f60208201526040805101828152806020018360051b81016040528183528083602001525050919050565b82519091501561190a576001600160a01b0388165f908152600686016020526040902060808301518351875463ffffffff600160401b808304821684900382160263ffffffff60401b199092169190911789558754918303908116600160801b0263ffffffff60801b199092169190911787555b5f1991909101600381901c5f90815260208490526040812054919291600584901b60e0161c63ffffffff1690506118c589600701825f80611ae3565b5f81815260048a016020908152604090912080546001600160a01b0319169055858101805160089390931b60608f901b17600117835291019052808203611889575050505b602082015115611a6b576001600160a01b0387165f9081526006860160209081526040822060a085015191850151909290820190611948878c6114a5565b8954602088015163ffffffff60401b19821663ffffffff600160401b80850482169093018116909202178c55895463ffffffff60801b1916600160801b86831602178a55919250670de0b6b3a7640000600160601b82046001600160601b03160491640100000000909104165b6119c68b6007016108758360011b90565b63ffffffff16156119e557600101818111156119e0575060015b6119b5565b6119f0868683611545565b611a058b600701828588806001019950611ae3565b611a2e878e835f8360200151818360081b8560601b171781526020810185602001525050505050565b60010181811115611a3d575060015b8385036119b5578a5463ffffffff9091166401000000000267ffffffff0000000019909116178a5550505050505b80515115611a8c576001850154611a8c9082906001600160a01b0316611b27565b50856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef87604051611ad291815260200190565b60405180910390a350505050505050565b8163ffffffff168160201b17846020528360021c5f5260405f206003851660061b815467ffffffffffffffff8482841c188116831b82188455505050505050505050565b81516040810363263c69d68152602080820152815160051b604401915060208183601c84015f875af1600182511416610845575f81fd5b5f5b83811015611b78578181015183820152602001611b60565b50505f910152565b602081525f8251806020840152611b9e816040850160208701611b5e565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114610cc4575f80fd5b5f8060408385031215611bd9575f80fd5b611be283611bb2565b946020939093013593505050565b5f805f60608486031215611c02575f80fd5b611c0b84611bb2565b9250611c1960208501611bb2565b9150604084013590509250925092565b5f60208284031215611c39575f80fd5b610ad082611bb2565b5f60208284031215611c52575f80fd5b81358015158114610ad0575f80fd5b5f8060208385031215611c72575f80fd5b823567ffffffffffffffff80821115611c89575f80fd5b818501915085601f830112611c9c575f80fd5b813581811115611caa575f80fd5b866020828501011115611cbb575f80fd5b60209290920196919550909350505050565b5f60208284031215611cdd575f80fd5b5035919050565b5f8060408385031215611cf5575f80fd5b611cfe83611bb2565b9150611d0c60208401611bb2565b90509250929050565b6020808252600c908201526b1d5b985d5d1a1bdc9a5e995960a21b604082015260600190565b634e487b7160e01b5f52604160045260245ffd5b600181811c90821680611d6357607f821691505b60208210810361149f57634e487b7160e01b5f52602260045260245ffd5b601f821115610be657805f5260205f20601f840160051c81016020851015611da65750805b601f840160051c820191505b81811015611dc5575f8155600101611db2565b5050505050565b67ffffffffffffffff831115611de457611de4611d3b565b611df883611df28354611d4f565b83611d81565b5f601f841160018114611e29575f8515611e125750838201355b5f19600387901b1c1916600186901b178355611dc5565b5f83815260208120601f198716915b82811015611e585786850135825560209485019460019092019101611e38565b5086821015611e74575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b5f808454611e9381611d4f565b60018281168015611eab5760018114611ec057611eec565b60ff1984168752821515830287019450611eec565b885f526020805f205f5b85811015611ee35781548a820152908401908201611eca565b50505082870194505b505050508351611f00818360208801611b5e565b01949350505050565b634e487b7160e01b5f52601160045260245ffd5b6001600160601b0382811682821603908082111561153e5761153e611f09565b5f63ffffffff808316818103611f5557611f55611f09565b6001019392505050565b634e487b7160e01b5f52601260045260245ffdfea26469706673582212203148897060bf8d79cc5727bde1647492338db7a34ff448e8ffb21bf23f2e25ee64736f6c63430008180033

Deployed Bytecode Sourcemap

69815:5949:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6555:20;29927:22;36571:20;30027:3;30004:26;30110:10;30096:24;;;30092:377;;30155:14;;;;-1:-1:-1;;;;;30155:14:0;30141:10;:28;30137:58;;30178:17;;-1:-1:-1;;;30178:17:0;;;;;;;;;;;30137:58;30232:4;30214:8;:22;30210:36;;;30238:8;;;30210:36;30309:4;36571:20;-1:-1:-1;;;;;30412:26:0;;;30263:13;30412:26;;;:19;;;:26;;;;;;;;30380:4;36571:20;30412:36;;;;;;;;;;;30404:53;;30412:36;;:44;;30455:1;30412:44;;;30451:1;30412:44;30404:53;;:7;:53::i;:::-;30122:347;;30092:377;30515:10;30529;30515:24;30511:262;;30574:14;;;;-1:-1:-1;;;;;30574:14:0;30560:10;:28;30556:58;;30597:17;;-1:-1:-1;;;30597:17:0;;;;;;;;;;;30556:58;30651:4;30633:8;:22;30629:36;;;30657:8;;;30629:36;30709:4;36571:20;30731:30;30747:12;36571:20;30747:8;:12::i;:::-;-1:-1:-1;;;;;30731:30:0;:7;:30::i;:::-;30541:232;30511:262;30851:10;30865;30851:24;30847:502;;30910:14;;;;-1:-1:-1;;;;;30910:14:0;30896:10;:28;30892:58;;30933:17;;-1:-1:-1;;;30933:17:0;;;;;;;;;;;30892:58;30987:4;30969:8;:22;30965:36;;;30993:8;;;30965:36;31063:4;36571:20;31128:4;36571:20;31177:4;36571:20;31247:4;36571:20;31271:41;36571:20;;;;31271:16;:41::i;:::-;31327:10;31335:1;31327:7;:10::i;:::-;30877:472;;;;30847:502;31418:10;31432;31418:24;31414:451;;31477:14;;;;-1:-1:-1;;;;;31477:14:0;31463:10;:28;31459:58;;31500:17;;-1:-1:-1;;;31500:17:0;;;;;;;;;;;31459:58;31554:4;31536:8;:22;31532:36;;;31560:8;;;31532:36;-1:-1:-1;;;;;31758:4:0;36571:20;29047:47;;;;;;;:36;:47;;;;;;;;31633:4;36571:20;29047:57;;;;;;;;;;:68;;-1:-1:-1;;29047:68:0;31683:4;36571:20;31669:24;;29047:68;;;;;;31669:24;31843:10;31851:1;31843:7;:10::i;:::-;31444:421;;;31414:451;31930:10;31944;31930:24;31926:427;;31989:14;;;;-1:-1:-1;;;;;31989:14:0;31975:10;:28;31971:58;;32012:17;;-1:-1:-1;;;32012:17:0;;;;;;;;;;;31971:58;32066:4;32048:8;:22;32044:36;;;32072:8;;;32044:36;32145:4;36571:20;32194:4;36571:20;32264:4;36571:20;32288:53;32304:35;36571:20;;;32304:11;:35::i;32288:53::-;31956:397;;;31926:427;32403:10;32417;32403:24;32399:266;;32462:14;;;;-1:-1:-1;;;;;32462:14:0;32448:10;:28;32444:58;;32485:17;;-1:-1:-1;;;32485:17:0;;;;;;;;;;;32444:58;32539:4;32521:8;:22;32517:36;;;32545:8;;;32517:36;32597:4;36571:20;32619:34;32635:16;36571:20;32635:12;:16::i;32619:34::-;32429:236;32399:266;32716:10;32730;32716:24;32712:282;;32775:14;;;;-1:-1:-1;;;;;32775:14:0;32761:10;:28;32757:58;;32798:17;;-1:-1:-1;;;32798:17:0;;;;;;;;;;;32757:58;32852:4;32834:8;:22;32830:36;;;32858:8;;;32830:36;32929:4;36571:20;32953:29;32961:20;36571;-1:-1:-1;;;;;26883:37:0;26856:7;26883:37;;;:30;:37;;;;;:49;;-1:-1:-1;;;26883:49:0;;;;;26787:153;32961:20;32953:7;:29::i;:::-;32742:252;32712:282;33040:10;33054;33040:24;33036:209;;33099:14;;;;-1:-1:-1;;;;;33099:14:0;33085:10;:28;33081:58;;33122:17;;-1:-1:-1;;;33122:17:0;;;;;;;;;;;33081:58;33176:4;33158:8;:22;33154:36;;;33182:8;;;33154:36;6555:20;26695:33;33207:26;;-1:-1:-1;;;26695:33:0;;;;32953:7;:29::i;33207:26::-;33292:10;33306;33292:24;33288:67;;33333:10;33341:1;33333:7;:10::i;:::-;29916:3458;73076:92;;;;;;;;;;-1:-1:-1;73155:5:0;;;;;;;;;;;;-1:-1:-1;;;73155:5:0;;;;73076:92;;;;;;;:::i;:::-;;;;;;;;9956:275;;;;;;;;;;-1:-1:-1;9956:275:0;;;;;:::i;:::-;;:::i;:::-;;;1272:14:1;;1265:22;1247:41;;1235:2;1220:18;9956:275:0;1107:187:1;9233:126:0;;;;;;;;;;-1:-1:-1;6555:20:0;9320:30;-1:-1:-1;;;9320:30:0;;-1:-1:-1;;;;;9320:30:0;9233:126;;;1445:25:1;;;1433:2;1418:18;9233:126:0;1299:177:1;11591:500:0;;;;;;;;;;-1:-1:-1;11591:500:0;;;;;:::i;:::-;;:::i;23894:282::-;;;;;;;;;;-1:-1:-1;23894:282:0;;;;;:::i;:::-;;:::i;24288:100::-;;;;;;;;;;-1:-1:-1;24288:100:0;;;;;:::i;:::-;;:::i;61597:151::-;;;;;;;;;;;;;:::i;9092:76::-;;;;;;;;;;-1:-1:-1;9092:76:0;;9158:2;2425:36:1;;2413:2;2398:18;9092:76:0;2283:184:1;75010:123:0;;;;;;;;;;-1:-1:-1;75010:123:0;;;;;:::i;:::-;;:::i;75659:102::-;;;;;;;;;;;;;:::i;26439:119::-;;;;;;;;;;-1:-1:-1;26519:31:0;;-1:-1:-1;;;;;26519:31:0;26439:119;;;-1:-1:-1;;;;;2636:32:1;;;2618:51;;2606:2;2591:18;26439:119:0;2472:203:1;75413:101:0;;;;;;;;;;-1:-1:-1;75413:101:0;;;;;:::i;:::-;;:::i;9428:143::-;;;;;;;;;;-1:-1:-1;9428:143:0;;;;;:::i;:::-;;:::i;75522:129::-;;;;;;;;;;;;;:::i;61033:20::-;;;;;;;;;;-1:-1:-1;61033:20:0;;;;-1:-1:-1;;;;;61033:20:0;;;73176:96;;;;;;;;;;-1:-1:-1;73257:7:0;;;;;;;;;;;;-1:-1:-1;;;73257:7:0;;;;73176:96;;10744:150;;;;;;;;;;-1:-1:-1;10744:150:0;;;;;:::i;:::-;;:::i;73280:237::-;;;;;;;;;;-1:-1:-1;73280:237:0;;;;;:::i;:::-;;:::i;9669:151::-;;;;;;;;;;-1:-1:-1;9669:151:0;;;;;:::i;:::-;-1:-1:-1;;;;;9768:35:0;;;9741:7;9768:35;;;:28;:35;;;;;;;;:44;;;;;;;;;;;;;9669:151;61368:221;;;;;;;;;;-1:-1:-1;61368:221:0;;;;;:::i;:::-;;:::i;36702:185::-;36835:1;36829:4;36822:15;36864:4;36858;36851:18;27399:163;27460:7;27485:11;27493:2;27485:7;:11::i;:::-;27480:44;;27505:19;;-1:-1:-1;;;27505:19:0;;;;;;;;;;;27480:44;27542:12;27551:2;27542:8;:12::i;:::-;27535:19;27399:163;-1:-1:-1;;27399:163:0:o;74001:245::-;74128:47;74151:4;74157:2;74161;74165:9;74128:22;:47::i;:::-;74198:2;-1:-1:-1;;;;;74190:10:0;:4;-1:-1:-1;;;;;74190:10:0;;74186:52;;74202:36;74223:4;74229:2;3616:8;74202:20;:36::i;:::-;74001:245;;;;:::o;28283:515::-;28393:7;6555:20;28393:7;28490:16;28393:7;28507:31;28512:4;37268:1;37263:6;;;28518:19;37649:1;37640:10;;;37590:13;37632:19;;;;;;;;;;;;;37671:1;37656:16;;;;;;37632:41;;37516:166;28507:31;28490:49;;;;;;;;;;;;;-1:-1:-1;28490:49:0;;-1:-1:-1;;;;;28490:49:0;;;;-1:-1:-1;28556:18:0;;;;28552:171;;-1:-1:-1;;;;;28596:26:0;;;;;;;:19;;;:26;;;;;;;;:37;;;;;;;;;;;;28591:121;;28661:35;;-1:-1:-1;;;28661:35:0;;;;;;;;;;;28591:121;28735:20;;;;:16;;;;:20;;;;;;:30;;-1:-1:-1;;;;;28735:30:0;;-1:-1:-1;;;;;;28735:30:0;;;;;;28785:5;-1:-1:-1;28283:515:0;;;;;:::o;27871:192::-;27936:7;27961:11;27969:2;27961:7;:11::i;:::-;27956:44;;27981:19;;-1:-1:-1;;;27981:19:0;;;;;;;;;;;27956:44;-1:-1:-1;28018:37:0;;;;:33;:37;;;;;;-1:-1:-1;;;;;28018:37:0;;27871:192::o;9956:275::-;10030:4;;6555:20;10115:10;10103:23;;;;:11;;;:23;;;;;;;;-1:-1:-1;;;;;10103:32:0;;;;;;;;;;;;:41;;;10162:37;1445:25:1;;;10103:11:0;;-1:-1:-1;10103:32:0;;10162:37;;1418:18:1;10162:37:0;;;;;;;-1:-1:-1;10219:4:0;;9956:275;-1:-1:-1;;;9956:275:0:o;11591:500::-;-1:-1:-1;;;;;11770:17:0;;11679:4;11770:17;;;:11;:17;;;;;;;;11788:10;11770:29;;;;;;;;6555:20;;-1:-1:-1;;11816:28:0;;11812:208;;11874:7;11865:6;:16;11861:52;;;11890:23;;-1:-1:-1;;;11890:23:0;;;;;;;;;;;11861:52;-1:-1:-1;;;;;11949:17:0;;;;;;:11;;;:17;;;;;;;;11967:10;11949:29;;;;;;;11981:16;;;11949:48;;11812:208;12032:27;12042:4;12048:2;12052:6;12032:9;:27::i;:::-;-1:-1:-1;12079:4:0;;11591:500;-1:-1:-1;;;;;11591:500:0:o;23894:282::-;-1:-1:-1;;;;;23995:33:0;;23954:4;23995:33;;;:30;:33;;;;;24043:7;;-1:-1:-1;;;24043:7:0;;4000:6;24043:40;:45;;24039:69;;36281:14;;24097:11;24090:18;23894:282;-1:-1:-1;;;23894:282:0:o;24039:69::-;24126:7;-1:-1:-1;;;24126:7:0;;4137:6;24126:37;:42;;;23894:282;-1:-1:-1;;23894:282:0:o;24288:100::-;24348:32;24360:10;24372:7;24348:11;:32::i;:::-;24288:100;:::o;61597:151::-;61120:5;;-1:-1:-1;;;;;61120:5:0;61106:10;:19;61102:47;;61127:22;;-1:-1:-1;;;61127:22:0;;;;;;;:::i;:::-;;;;;;;;61102:47;61676:1:::1;61660:18:::0;;-1:-1:-1;;;;;;61660:18:0::1;::::0;;61696:44:::1;::::0;61717:10:::1;::::0;61696:44:::1;::::0;61676:1;;61696:44:::1;61597:151::o:0;75010:123::-;75070:4;75094:31;:15;75102:6;75094:7;:15::i;:::-;62146:2;63097:28;;;:33;;;63012:126;75659:102;61120:5;;-1:-1:-1;;;;;61120:5:0;61106:10;:19;61102:47;;61127:22;;-1:-1:-1;;;61127:22:0;;;;;;;:::i;61102:47::-;75707:46:::1;75742:10;75707:34;:46::i;:::-;75659:102::o:0;75413:101::-;61120:5;;-1:-1:-1;;;;;61120:5:0;61106:10;:19;61102:47;;61127:22;;-1:-1:-1;;;61127:22:0;;;;;;;:::i;61102:47::-;75487:8:::1;:19;75498:8:::0;;75487;:19:::1;:::i;:::-;;75413:101:::0;;:::o;9428:143::-;-1:-1:-1;;;;;9518:37:0;9491:7;9518:37;;;:30;:37;;;;;:45;-1:-1:-1;;;9518:45:0;;-1:-1:-1;;;;;9518:45:0;;9428:143::o;75522:129::-;61120:5;;-1:-1:-1;;;;;61120:5:0;61106:10;:19;61102:47;;61127:22;;-1:-1:-1;;;61127:22:0;;;;;;;:::i;61102:47::-;6555:20;9320:30;-1:-1:-1;;;9320:30:0;;-1:-1:-1;;;;;9320:30:0;75574:11:::1;:27:::0;;;75612:15:::1;:31:::0;75522:129::o;10744:150::-;10814:4;10831:33;10841:10;10853:2;10857:6;10831:9;:33::i;:::-;-1:-1:-1;10882:4:0;10744:150;;;;:::o;73280:237::-;73345:20;73388:8;73382:22;;;;;:::i;:::-;:27;;-1:-1:-1;73378:132:0;;73459:8;73469:27;73488:7;73469:18;:27::i;:::-;73442:55;;;;;;;;;:::i;:::-;;;;;;;;;;;;;73426:72;;73378:132;73280:237;;;:::o;61368:221::-;61120:5;;-1:-1:-1;;;;;61120:5:0;61106:10;:19;61102:47;;61127:22;;-1:-1:-1;;;61127:22:0;;;;;;;:::i;61102:47::-;-1:-1:-1;;;;;61451:20:0;::::1;61447:49;;61473:23;::::0;-1:-1:-1;;;61473:23:0;;7836:2:1;61473:23:0::1;::::0;::::1;7818:21:1::0;7875:2;7855:18;;;7848:30;-1:-1:-1;;;7894:18:1;;;7887:43;7947:18;;61473:23:0::1;7634:337:1::0;61447:49:0::1;61509:5;:14:::0;;-1:-1:-1;;;;;;61509:14:0::1;-1:-1:-1::0;;;;;61509:14:0;::::1;::::0;;::::1;::::0;;61541:40:::1;::::0;61509:14;;61562:10:::1;::::0;61541:40:::1;::::0;61509:5;61541:40:::1;61368:221:::0;:::o;27614:118::-;27674:4;;27698:12;27707:2;27698:8;:12::i;:::-;-1:-1:-1;;;;;27698:26:0;;;;27614:118;-1:-1:-1;;27614:118:0:o;27079:199::-;27140:7;6555:20;27221:16;27140:7;27238:31;27243:4;37268:1;37263:6;;;27249:19;37178:99;27238:31;27221:49;;;;;;;;;;;;;-1:-1:-1;27221:49:0;;-1:-1:-1;;;;;27221:49:0;;27079:199;-1:-1:-1;;;27079:199:0:o;20936:1455::-;6555:20;-1:-1:-1;;;;;21122:16:0;;21118:52;;21147:23;;-1:-1:-1;;;21147:23:0;;;;;;;;;;;21118:52;21183:13;21199:1;:16;;:49;21216:31;21221:1;:4;;21227:19;21243:2;37268:1;37263:6;;37178:99;21216:31;21199:49;;;;;;;;;;;;;-1:-1:-1;21199:49:0;;-1:-1:-1;;;;;21199:49:0;;;;-1:-1:-1;21265:13:0;;;;21261:54;;21287:28;;-1:-1:-1;;;21287:28:0;;;;;;;;;;;21261:54;21345:4;-1:-1:-1;;;;;21332:17:0;:9;-1:-1:-1;;;;;21332:17:0;;21328:250;;-1:-1:-1;;;;;21371:25:0;;;;;;;:19;;;:25;;;;;;;;:36;;;;;;;;;;;;21366:201;;21445:20;;;;:16;;;:20;;;;;;-1:-1:-1;;;;;21432:33:0;;;21445:20;;21432:33;21428:124;;21497:35;;-1:-1:-1;;;21497:35:0;;;;;;;;;;;21428:124;21590:35;21628:18;21641:4;21628:12;:18::i;:::-;21590:56;;21657:33;21693:16;21706:2;21693:12;:16::i;:::-;21722:39;;21657:52;;-1:-1:-1;3616:8:0;;21722:39;;:23;;:39;;3616:8;;-1:-1:-1;;;21722:39:0;;-1:-1:-1;;;;;21722:39:0;;:::i;:::-;;;;;;;;-1:-1:-1;;;;;21722:39:0;;;;;;;;;;;;;;;21791:37;;-1:-1:-1;;;;;21791:37:0;;3616:8;-1:-1:-1;;;21791:37:0;;;;;;;;;;;;;;-1:-1:-1;21841:76:0;21846:4;;;-1:-1:-1;37263:6:0;;;21873:43;21898:13;21913:2;21873:24;:43::i;:::-;21841:4;:76::i;:::-;21935:20;;;;:16;;;:20;;;;;;;;21928:27;;-1:-1:-1;;;;;;21928:27:0;;;-1:-1:-1;;;;;21993:13:0;;;;:7;;;:13;;;;;22008:29;;-1:-1:-1;;;;22008:29:0;;-1:-1:-1;;;22008:29:0;;;;;;;;-1:-1:-1;;22008:29:0;;;;;;;;;;37640:10;37649:1;37640:10;;;;37632:19;;;;;;;37671:1;37656:16;;;;;;37632:41;-1:-1:-1;;;;;22054:13:0;;;;;;:7;;;:13;;;;;21968:70;;;;;;-1:-1:-1;22049:67:0;;22069:27;22074:4;;;37427:1;37422:6;;;37421:12;22080:15;37323:125;22069:27;22049:67;;22105:9;22049:4;:67::i;:::-;22141:27;;;;-1:-1:-1;;;22141:27:0;;;;;;;;;;;;-1:-1:-1;;;;22141:27:0;;;;;;;;;22179:63;22184:4;;;22190:22;22202:9;37427:1;37422:6;;;37421:12;;37323:125;22190:22;22214:27;22219:4;;;37427:1;37422:6;;;37421:12;22225:15;37323:125;22179:63;-1:-1:-1;;;;;22258:11:0;;;;;;:7;;;:11;;;;;22253:32;;22271:1;22281:2;22253:4;:32::i;:::-;22296:38;22301:4;;;37427:1;37422:6;;;37421:12;22331:1;22296:4;:38::i;:::-;21770:572;;22374:2;-1:-1:-1;;;;;22359:24:0;22368:4;-1:-1:-1;;;;;22359:24:0;;3616:8;22359:24;;;;1445:25:1;;1433:2;1418:18;;1299:177;22359:24:0;;;;;;;;21051:1340;;;;20936:1455;;;;:::o;74254:603::-;74368:5;;-1:-1:-1;;;;;74368:5:0;74364:35;;74389:5;:10;;-1:-1:-1;;;;;;74389:10:0;-1:-1:-1;;;;;74389:10:0;;;;;74364:35;74422:5;;-1:-1:-1;;;;;74414:13:0;;;74422:5;;74414:13;:35;;;;;74432:17;74446:2;74432:13;:17::i;:::-;74431:18;74414:35;74410:261;;;74466:40;74474:2;74478:27;74497:7;74478:11;74486:2;74478:7;:11::i;:::-;:18;;;;:27::i;:::-;-1:-1:-1;;;;;23380:37:0;;;;;;;;:30;:37;;;;;:49;;-1:-1:-1;;23380:49:0;;;;;;;;;;;23306:131;74466:40;74540:11;;74529:7;:22;;74521:50;;;;-1:-1:-1;;;74521:50:0;;8506:2:1;74521:50:0;;;8488:21:1;8545:2;8525:18;;;8518:30;-1:-1:-1;;;8564:18:1;;;8557:45;8619:18;;74521:50:0;8304:339:1;74521:50:0;74620:15;;74594:22;74612:2;74594:9;:22::i;:::-;:41;;74586:73;;;;-1:-1:-1;;;74586:73:0;;8850:2:1;74586:73:0;;;8832:21:1;8889:2;8869:18;;;8862:30;-1:-1:-1;;;8908:18:1;;;8901:49;8967:18;;74586:73:0;8648:343:1;74586:73:0;74693:5;;-1:-1:-1;;;;;74685:13:0;;;74693:5;;74685:13;74681:162;;74715:44;74723:4;74729:29;74750:7;74729:13;74737:4;74729:7;:13::i;74715:44::-;74784:5;;-1:-1:-1;;;;;74778:11:0;;;74784:5;;74778:11;74774:57;;74791:40;74799:2;74803:27;74822:7;74803:11;74811:2;74803:7;:11::i;73797:196::-;73887:33;73903:4;73909:2;73913:6;73887:15;:33::i;:::-;73943:2;-1:-1:-1;;;;;73935:10:0;:4;-1:-1:-1;;;;;73935:10:0;;73931:54;;73947:38;73968:4;73974:2;73978:6;73947:20;:38::i;24607:289::-;24679:21;24703:15;24716:1;24703:12;:15::i;:::-;24734:7;;24679:39;;-1:-1:-1;;;;24734:7:0;;4137:6;24734:37;:42;;24733:53;;;;24729:124;;24803:38;;;-1:-1:-1;;;24803:38:0;;;;;4137:6;24803:38;;;;;-1:-1:-1;;;;24803:38:0;;;;;;24729:124;24879:1;-1:-1:-1;;;;;24868:20:0;;24882:5;24868:20;;;;1272:14:1;1265:22;1247:41;;1235:2;1220:18;;1107:187;24868:20:0;;;;;;;;24668:228;24607:289;;:::o;22912:138::-;-1:-1:-1;;;;;23001:37:0;22975:6;23001:37;;;:30;:37;;;;;:41;;;;22912:138::o;69397:411::-;69663:4;69651:10;69645:4;69633:10;69618:13;69614:2;69607:5;69602:66;69592:198;;69702:10;69696:4;69689:24;69770:4;69764;69757:18;65304:1620;65360:17;65796:4;65789;65783:11;65779:22;65772:29;;65893:4;65888:3;65884:14;65878:4;65871:28;65972:1;65967:3;65960:14;66072:3;66104:1;66100:6;66308:5;66290:398;66347:11;;;;66523:2;66537;66527:13;;66519:22;66347:11;66506:36;66627:2;66617:13;;66648:25;66290:398;66648:25;-1:-1:-1;;66718:13:0;;;-1:-1:-1;;66829:14:0;;;66887:19;;;66829:14;65304:1620;-1:-1:-1;65304:1620:0:o;25067:407::-;-1:-1:-1;;;;;25218:16:0;;25126:21;25218:16;;;:13;:16;;;;;25251:7;;25218:16;;6555:20;;-1:-1:-1;;;25251:7:0;;4000:6;25251:40;:45;;25247:220;;4000:6;36281:14;;25372:53;;;4137:6;25389:36;25372:53;25440:15;;;;;;-1:-1:-1;;;25440:15:0;-1:-1:-1;;;;25440:15:0;;;;;;25247:220;25149:325;25067:407;;;:::o;25640:457::-;25868:26;;-1:-1:-1;;;25868:26:0;;;;6555:20;25762:19;25909:17;;;25905:185;;25958:14;;25960:1;;:12;;25958:14;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;25987:41;;-1:-1:-1;;;25987:41:0;;-1:-1:-1;;;;25987:41:0;;;;;;-1:-1:-1;26043:30:0;;;:16;;;:30;;;;;:35;;-1:-1:-1;;;;;26043:35:0;;-1:-1:-1;;;;;;26043:35:0;;;;;;25958:14;-1:-1:-1;25905:185:0;25788:309;25640:457;;;;:::o;37750:542::-;37916:8;37910:4;37903:22;37959:5;37956:1;37952:13;37946:4;37939:27;38005:4;37999;37989:21;38068:1;38061:5;38057:13;38054:1;38050:21;38131:1;38125:8;38179:10;38264:5;38260:1;38257;38253:9;38249:21;38246:1;38242:29;38239:1;38235:37;38232:1;38228:45;38225:1;38218:56;;;;;37750:542;;;:::o;62157:847::-;62243:14;62146:2;63097:28;;;;;:33;62292:40;;-1:-1:-1;62326:6:0;62319:13;;62292:40;62020:10;62366:12;:25;;;61970:2;62425:31;;;62424:46;61904:16;62513:40;;62343:20;62570:16;;;62566:78;;-1:-1:-1;62630:12:0;;-1:-1:-1;62613:1:0;62566:78;62658:16;;;;;:50;;;62707:1;62693:11;62678:12;:26;:30;62658:50;62654:80;;;62710:24;;-1:-1:-1;;;62710:24:0;;9404:2:1;62710:24:0;;;9386:21:1;9443:2;9423:18;;;9416:30;-1:-1:-1;;;9462:18:1;;;9455:44;9516:18;;62710:24:0;9202:338:1;62654:80:0;62088:2;62829:31;;;61904:16;62828:58;;;62802:85;;;;62908:46;61970:2;62764:27;;;;62898:56;;-1:-1:-1;;62157:847:0;;;;:::o;17439:3072::-;-1:-1:-1;;;;;17532:16:0;;17528:52;;17557:23;;-1:-1:-1;;;17557:23:0;;;;;;;;;;;17528:52;6555:20;17593:22;17687:18;17700:4;17687:12;:18::i;:::-;17649:56;;17716:33;17752:16;17765:2;17752:12;:16::i;:::-;17716:52;;17781:23;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17781:23:0;17835:27;;;-1:-1:-1;;;17835:27:0;;;;;17815:17;;;:47;17891:25;;;;17873:15;;;:43;-1:-1:-1;;;;;;;;17943:23:0;;;;17927:13;;;:39;;;17983:22;;17979:56;;;18014:21;;-1:-1:-1;;;18014:21:0;;;;;;;;;;;17979:56;18065:13;;;:23;;;;;;;;;18099:47;;-1:-1:-1;;;;;18099:47:0;;;-1:-1:-1;;;18099:47:0;;;-1:-1:-1;;;;;18099:47:0;;;;;;18202:21;;;;;;;:30;;18188:11;;;:44;;;18157:76;;;;;;;;;18280:17;;;;18266:54;;3616:8;;18299:20;37100:8;;;37110:9;;37096:24;;36934:204;18266:54;18246:74;;18337:19;;-1:-1:-1;;;18337:19:0;;4137:6;18337:49;18246:17;18337:54;18333:243;;18420:2;-1:-1:-1;;;;;18412:10:0;:4;-1:-1:-1;;;;;18412:10:0;;18408:71;;18462:17;;18442;;;;:37;18424:15;;;:55;18408:71;18514:50;3616:8;18528:1;:11;;;:18;;;;;:::i;:::-;;18548:1;:15;;;37100:8;;;37110:9;;37096:24;;36934:204;18514:50;18494:17;;;:70;18333:243;18588:29;18620:56;18658:1;:17;;;18638:1;:17;;;:37;-1:-1:-1;;;;;;;;;;;;;;;;;34301:4:0;34294;34288:11;34284:22;34377:1;34371:4;34364:15;34417:4;34411;34407:15;34468:1;34465;34461:9;34453:6;34449:22;34443:4;34436:36;34496:4;34493:1;34486:15;34536:6;34532:1;34526:4;34522:12;34515:28;;;34111:450;;;;18620:56;18693:17;;18588:88;;-1:-1:-1;18693:22:0;18689:651;;-1:-1:-1;;;;;18762:13:0;;18732:27;18762:13;;;:7;;;:13;;;;;18810:17;;;;18872;;18904:45;;;-1:-1:-1;;;18904:45:0;;;;;;;;;;;-1:-1:-1;;;;18904:45:0;;;;;;;;;18964;;18860:29;;;18964:45;;;-1:-1:-1;;;18964:45:0;-1:-1:-1;;;;18964:45:0;;;;;;;;;19051:278;-1:-1:-1;;19102:11:0;;;;37649:1;37640:10;;;19073;37632:19;;;;;;;;;;;19102:11;;;37671:1;37656:16;;;;;37632:41;19073;;;;19133:43;19161:1;:4;;19167:2;19171:1;19174;19133:27;:43::i;:::-;19202:20;;;;:16;;;:20;;;;;;;;19195:27;;-1:-1:-1;;;;;;19195:27:0;;;34883:12;;;34877:19;;34947:1;34943:10;;;;34935:2;34931:10;;;34928:26;-1:-1:-1;34925:39:0;34910:55;;35000:17;;34979:39;;19307:20;;;19051:278;;18717:623;;;18689:651;19356:17;;;;:22;19352:988;;-1:-1:-1;;;;;19423:11:0;;19395:25;19423:11;;;:7;;;:11;;;;;;;19467:15;;;;19523:17;;;;19423:11;;19513:27;;;;19572:43;19597:13;19431:2;19572:24;:43::i;:::-;19649:13;;19752:17;;;;-1:-1:-1;;;;19725:45:0;;19697:13;-1:-1:-1;;;19725:45:0;;;;;;;;;;;;;;;;19785:41;;-1:-1:-1;;;;19785:41:0;-1:-1:-1;;;19785:41:0;;;;;;;19555:60;;-1:-1:-1;3616:8:0;-1:-1:-1;;;19649:13:0;;-1:-1:-1;;;;;19649:13:0;:20;;19697:13;;;;;19868:420;19897:31;19902:1;:4;;19908:19;19924:2;37268:1;37263:6;;37178:99;19897:31;:36;;;19890:115;;19962:4;;:15;;;19958:27;;;-1:-1:-1;19984:1:0;19958:27;19890:115;;;20023:34;20028:7;20037;20053:2;20023:4;:34::i;:::-;20076:65;20104:1;:4;;20110:2;20114:7;20130:9;;;;;;20076:27;:65::i;:::-;20160:40;20178:10;20190:2;20194;20198:1;34893;34887:4;34883:12;34877:19;34956:7;34950:2;34947:1;34943:10;34939:1;34935:2;34931:10;34928:26;34925:39;34917:6;34910:55;35012:4;35004:6;35000:17;34996:1;34990:4;34986:12;34979:39;;34667:369;;;;;20160:40;20223:4;;:15;;;20219:27;;;-1:-1:-1;20245:1:0;20219:27;20281:5;20270:7;:16;19868:420;;20302:26;;;;;;;;-1:-1:-1;;20302:26:0;;;;;;-1:-1:-1;;;;;19352:988:0;20356:15;;:22;:27;20352:103;;20428:14;;;;20400:43;;20416:10;;-1:-1:-1;;;;;20428:14:0;20400:15;:43::i;:::-;18044:2418;20492:2;-1:-1:-1;;;;;20477:26:0;20486:4;-1:-1:-1;;;;;20477:26:0;;20496:6;20477:26;;;;1445:25:1;;1433:2;1418:18;;1299:177;20477:26:0;;;;;;;;17517:2994;;;;17439:3072;;;:::o;38365:708::-;38657:9;38645:10;38641:26;38628:10;38624:2;38620:19;38617:51;38695:8;38689:4;38682:22;38738:2;38735:1;38731:10;38725:4;38718:24;38781:4;38775;38765:21;38841:1;38837:2;38833:10;38830:1;38826:18;38904:1;38898:8;38952:18;39045:5;39041:1;39038;39034:9;39030:21;39027:1;39023:29;39020:1;39016:37;39013:1;39009:45;39006:1;38999:56;;;;;;38365:708;;;;:::o;35135:634::-;35303:1;35297:8;35338:4;35332;35328:15;35397:10;35394:1;35387:21;35472:4;35465;35462:1;35458:12;35451:26;35568:4;35562:11;35559:1;35555:19;35549:4;35545:30;35536:39;;35694:4;35691:1;35688;35681:4;35678:1;35674:12;35671:1;35663:6;35656:5;35651:48;35647:1;35643;35637:8;35634:15;35630:70;35620:131;;35731:4;35728:1;35721:15;14:250:1;99:1;109:113;123:6;120:1;117:13;109:113;;;199:11;;;193:18;180:11;;;173:39;145:2;138:10;109:113;;;-1:-1:-1;;256:1:1;238:16;;231:27;14:250::o;269:396::-;418:2;407:9;400:21;381:4;450:6;444:13;493:6;488:2;477:9;473:18;466:34;509:79;581:6;576:2;565:9;561:18;556:2;548:6;544:15;509:79;:::i;:::-;649:2;628:15;-1:-1:-1;;624:29:1;609:45;;;;656:2;605:54;;269:396;-1:-1:-1;;269:396:1:o;670:173::-;738:20;;-1:-1:-1;;;;;787:31:1;;777:42;;767:70;;833:1;830;823:12;848:254;916:6;924;977:2;965:9;956:7;952:23;948:32;945:52;;;993:1;990;983:12;945:52;1016:29;1035:9;1016:29;:::i;:::-;1006:39;1092:2;1077:18;;;;1064:32;;-1:-1:-1;;;848:254:1:o;1481:328::-;1558:6;1566;1574;1627:2;1615:9;1606:7;1602:23;1598:32;1595:52;;;1643:1;1640;1633:12;1595:52;1666:29;1685:9;1666:29;:::i;:::-;1656:39;;1714:38;1748:2;1737:9;1733:18;1714:38;:::i;:::-;1704:48;;1799:2;1788:9;1784:18;1771:32;1761:42;;1481:328;;;;;:::o;1814:186::-;1873:6;1926:2;1914:9;1905:7;1901:23;1897:32;1894:52;;;1942:1;1939;1932:12;1894:52;1965:29;1984:9;1965:29;:::i;2005:273::-;2061:6;2114:2;2102:9;2093:7;2089:23;2085:32;2082:52;;;2130:1;2127;2120:12;2082:52;2169:9;2156:23;2222:5;2215:13;2208:21;2201:5;2198:32;2188:60;;2244:1;2241;2234:12;2680:592;2751:6;2759;2812:2;2800:9;2791:7;2787:23;2783:32;2780:52;;;2828:1;2825;2818:12;2780:52;2868:9;2855:23;2897:18;2938:2;2930:6;2927:14;2924:34;;;2954:1;2951;2944:12;2924:34;2992:6;2981:9;2977:22;2967:32;;3037:7;3030:4;3026:2;3022:13;3018:27;3008:55;;3059:1;3056;3049:12;3008:55;3099:2;3086:16;3125:2;3117:6;3114:14;3111:34;;;3141:1;3138;3131:12;3111:34;3186:7;3181:2;3172:6;3168:2;3164:15;3160:24;3157:37;3154:57;;;3207:1;3204;3197:12;3154:57;3238:2;3230:11;;;;;3260:6;;-1:-1:-1;2680:592:1;;-1:-1:-1;;;;2680:592:1:o;3277:180::-;3336:6;3389:2;3377:9;3368:7;3364:23;3360:32;3357:52;;;3405:1;3402;3395:12;3357:52;-1:-1:-1;3428:23:1;;3277:180;-1:-1:-1;3277:180:1:o;3462:260::-;3530:6;3538;3591:2;3579:9;3570:7;3566:23;3562:32;3559:52;;;3607:1;3604;3597:12;3559:52;3630:29;3649:9;3630:29;:::i;:::-;3620:39;;3678:38;3712:2;3701:9;3697:18;3678:38;:::i;:::-;3668:48;;3462:260;;;;;:::o;3727:336::-;3929:2;3911:21;;;3968:2;3948:18;;;3941:30;-1:-1:-1;;;4002:2:1;3987:18;;3980:42;4054:2;4039:18;;3727:336::o;4068:127::-;4129:10;4124:3;4120:20;4117:1;4110:31;4160:4;4157:1;4150:15;4184:4;4181:1;4174:15;4200:380;4279:1;4275:12;;;;4322;;;4343:61;;4397:4;4389:6;4385:17;4375:27;;4343:61;4450:2;4442:6;4439:14;4419:18;4416:38;4413:161;;4496:10;4491:3;4487:20;4484:1;4477:31;4531:4;4528:1;4521:15;4559:4;4556:1;4549:15;4711:518;4813:2;4808:3;4805:11;4802:421;;;4849:5;4846:1;4839:16;4893:4;4890:1;4880:18;4963:2;4951:10;4947:19;4944:1;4940:27;4934:4;4930:38;4999:4;4987:10;4984:20;4981:47;;;-1:-1:-1;5022:4:1;4981:47;5077:2;5072:3;5068:12;5065:1;5061:20;5055:4;5051:31;5041:41;;5132:81;5150:2;5143:5;5140:13;5132:81;;;5209:1;5195:16;;5176:1;5165:13;5132:81;;;5136:3;;4711:518;;;:::o;5405:1198::-;5529:18;5524:3;5521:27;5518:53;;;5551:18;;:::i;:::-;5580:94;5670:3;5630:38;5662:4;5656:11;5630:38;:::i;:::-;5624:4;5580:94;:::i;:::-;5700:1;5725:2;5720:3;5717:11;5742:1;5737:608;;;;6389:1;6406:3;6403:93;;;-1:-1:-1;6462:19:1;;;6449:33;6403:93;-1:-1:-1;;5362:1:1;5358:11;;;5354:24;5350:29;5340:40;5386:1;5382:11;;;5337:57;6509:78;;5710:887;;5737:608;4658:1;4651:14;;;4695:4;4682:18;;-1:-1:-1;;5773:17:1;;;5888:229;5902:7;5899:1;5896:14;5888:229;;;5991:19;;;5978:33;5963:49;;6098:4;6083:20;;;;6051:1;6039:14;;;;5918:12;5888:229;;;5892:3;6145;6136:7;6133:16;6130:159;;;6269:1;6265:6;6259:3;6253;6250:1;6246:11;6242:21;6238:34;6234:39;6221:9;6216:3;6212:19;6199:33;6195:79;6187:6;6180:95;6130:159;;;6332:1;6326:3;6323:1;6319:11;6315:19;6309:4;6302:33;5710:887;;5405:1198;;;:::o;6608:1021::-;6784:3;6813:1;6846:6;6840:13;6876:36;6902:9;6876:36;:::i;:::-;6931:1;6948:17;;;6974:133;;;;7121:1;7116:358;;;;6941:533;;6974:133;-1:-1:-1;;7007:24:1;;6995:37;;7080:14;;7073:22;7061:35;;7052:45;;;-1:-1:-1;6974:133:1;;7116:358;7147:6;7144:1;7137:17;7177:4;7222;7219:1;7209:18;7249:1;7263:165;7277:6;7274:1;7271:13;7263:165;;;7355:14;;7342:11;;;7335:35;7398:16;;;;7292:10;;7263:165;;;7267:3;;;7457:6;7452:3;7448:16;7441:23;;6941:533;;;;;7505:6;7499:13;7521:68;7580:8;7575:3;7568:4;7560:6;7556:17;7521:68;:::i;:::-;7605:18;;6608:1021;-1:-1:-1;;;;6608:1021:1:o;7976:127::-;8037:10;8032:3;8028:20;8025:1;8018:31;8068:4;8065:1;8058:15;8092:4;8089:1;8082:15;8108:191;-1:-1:-1;;;;;8235:10:1;;;8223;;;8219:27;;8258:12;;;8255:38;;;8273:18;;:::i;8996:201::-;9034:3;9062:10;9107:2;9100:5;9096:14;9134:2;9125:7;9122:15;9119:41;;9140:18;;:::i;:::-;9189:1;9176:15;;8996:201;-1:-1:-1;;;8996:201:1:o;9545:127::-;9606:10;9601:3;9597:20;9594:1;9587:31;9637:4;9634:1;9627:15;9661:4;9658:1;9651:15

Swarm Source

ipfs://c6d282503b5981034f8c095d6338271f34fc75c11a085d8abf31dbb6ae9b979b
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.