ETH Price: $3,143.70 (+6.06%)

Token

What That Buck Worth (WTBW)
 

Overview

Max Total Supply

1,970 WTBW

Holders

1,243

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 WTBW
0x34a3b194d312d167fecb26d2b2d87904d3624be5
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:
WhatThatBuckWorth

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

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

/**
Y8b Y8b Y888P 888               d8       d8   888               d8                          
 Y8b Y8b Y8P  888 ee   ,"Y88b  d88      d88   888 ee   ,"Y88b  d88                          
  Y8b Y8b Y   888 88b "8" 888 d88888   d88888 888 88b "8" 888 d88888                        
   Y8b Y8b    888 888 ,ee 888  888      888   888 888 ,ee 888  888                          
    Y8P Y     888 888 "88 888  888      888   888 888 "88 888  888                          
                                                                                            
                                                                                            
888                         888                                       d8   888     ,8,'88b  
888 88e  8888 8888  e88'888 888 ee   Y8b Y8b Y888P  e88 88e  888,8,  d88   888 ee   "  888D 
888 888b 8888 8888 d888  '8 888 P     Y8b Y8b Y8P  d888 888b 888 "  d88888 888 88b     88P  
888 888P Y888 888P Y888   , 888 b      Y8b Y8b "   Y888 888P 888     888   888 888    ,"'   
888 88"   "88 88"   "88,e8' 888 8b      YP  Y8P     "88 88"  888     888   888 888   "8"    
                                                                                                                                                                                                
*/

pragma solidity >=0.8.9 <0.9.0;

import './ERC721.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";

contract WhatThatBuckWorth is ERC721, ERC2981, Ownable, ReentrancyGuard {
  using Strings for uint256;
  using SafeERC20 for IERC20;

  string public uriPrefix = '';
  string public constant uriSuffix = '.json';

  uint256 public constant cost = 0;
  uint256 public constant maxSupply = 1971;
  uint256 public maxMintAmountPerTx;

  bool public paused = true;


  constructor(
    address _royaltyReceiver,
    uint96 _royaltyFeeNumerator
  ) ERC721("What That Buck Worth", "WTBW") {
    setMaxMintAmountPerTx(1);

    setDefaultRoyalty(_royaltyReceiver, _royaltyFeeNumerator);
  }

  modifier mintCompliance(uint256 _mintAmount) {
    require(_mintAmount > 0 && _mintAmount <= maxMintAmountPerTx, '1 per tx pls');
    require(_currentIndex + _mintAmount - 1 <= maxSupply, 'hell yeah! sold out');
    _;
  }

  modifier mintPriceCompliance() {
    // Do you know what happened in 1971?
    if (_currentIndex == 1971) {
      require(msg.value >= 1971 ether, '1971 eth bro');
    }
    _;
  }

  function mint(uint256 _mintAmount) public payable mintPriceCompliance() mintCompliance(_mintAmount) {
    require(!paused, 'pls wait');
    require(_msgSender() != address(0), "who is this buck for");

    for (uint256 i = 0; i < _mintAmount; i++) {
      payTaxForOwner();
      _mint(_msgSender());
    }
  }

  function payTaxForOwner() internal mintCompliance(1) {
    // The Only Two Certainties In Life Are Death And Taxes.
    if (
        _currentIndex == 2 ||
        _currentIndex == 5 ||
        _currentIndex == 10 ||
        _currentIndex == 20 ||
        _currentIndex == 50 ||
        _currentIndex == 100
    ) {
      _mint(owner());
    }
  }

  function tokenURI(uint256 _tokenId) public view override returns (string memory) {
    require(_tokenId > 0 && _tokenId < _currentIndex, 'ERC721Metadata: URI query for nonexistent token');

    string memory currentBaseURI = _baseURI();
    return bytes(currentBaseURI).length > 0
        ? string(abi.encodePacked(currentBaseURI, _tokenId.toString(), uriSuffix))
        : '';
  }

  function setMaxMintAmountPerTx(uint256 _maxMintAmountPerTx) public onlyOwner {
    maxMintAmountPerTx = _maxMintAmountPerTx;
  }

  function setUriPrefix(string memory _uriPrefix) public onlyOwner {
    uriPrefix = _uriPrefix;
  }

  function setPaused(bool _state) public onlyOwner {
    paused = _state;
  }

  function withdraw() public onlyOwner nonReentrant {
    (bool os, ) = payable(owner()).call{value: address(this).balance}('');
    require(os);
  }

  function _baseURI() internal view virtual returns (string memory) {
    return uriPrefix;
  }

  function withdrawERC20(IERC20 token) public onlyOwner nonReentrant {
    token.safeTransfer(owner(), token.balanceOf(address(this)));
  }

  function setDefaultRoyalty(address receiver, uint96 feeNumerator) public {
    _setDefaultRoyalty(receiver, feeNumerator);
  }

  receive() external payable {
    // do nothing
  }

  function getETHBalance() external view returns (uint256) {
    return address(this).balance;
  }

  /**
   * @dev See {IERC165-supportsInterface}.
   */
  function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC2981) returns (bool) {
    return ERC721.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId);
  }

  function totalSupply() public view returns (uint256) {
    return _currentIndex - 1;
  }
}

File 2 of 14 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 3 of 14 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

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

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

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

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

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

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

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

File 4 of 14 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 5 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 6 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

File 8 of 14 : ERC721.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern, minimalist, and gas efficient ERC-721 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 indexed id);

    event Approval(address indexed owner, address indexed spender, uint256 indexed id);

    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /*//////////////////////////////////////////////////////////////
                         METADATA STORAGE/LOGIC
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    function tokenURI(uint256 id) public view virtual returns (string memory);

    /*//////////////////////////////////////////////////////////////
                      ERC721 BALANCE/OWNER STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) internal _ownerOf;

    mapping(address => uint256) internal _balanceOf;

    uint256 internal _currentIndex = 1; // The tokenId of the next token to be minted.

    function ownerOf(uint256 id) public view virtual returns (address owner) {
        require((owner = _ownerOf[id]) != address(0), "NOT_MINTED");
    }

    function balanceOf(address owner) public view virtual returns (uint256) {
        require(owner != address(0), "ZERO_ADDRESS");

        return _balanceOf[owner];
    }

    /*//////////////////////////////////////////////////////////////
                         ERC721 APPROVAL STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) public getApproved;

    mapping(address => mapping(address => bool)) public isApprovedForAll;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(string memory _name, string memory _symbol) {
        name = _name;
        symbol = _symbol;
    }

    /*//////////////////////////////////////////////////////////////
                              ERC721 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 id) public virtual {
        address owner = _ownerOf[id];

        require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED");

        getApproved[id] = spender;

        emit Approval(owner, spender, id);
    }

    function setApprovalForAll(address operator, bool approved) public virtual {
        isApprovedForAll[msg.sender][operator] = approved;

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

    function transferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        require(from == _ownerOf[id], "WRONG_FROM");

        require(to != address(0), "INVALID_RECIPIENT");

        require(
            msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id],
            "NOT_AUTHORIZED"
        );

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        unchecked {
            _balanceOf[from]--;
            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

        delete getApproved[id];

        emit Transfer(from, to, id);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes calldata data
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    /*//////////////////////////////////////////////////////////////
                              ERC165 LOGIC
    //////////////////////////////////////////////////////////////*/

    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
            interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to) internal virtual {
        uint256 id = _currentIndex;

        require(_ownerOf[id] == address(0), "ALREADY_MINTED");

        // Counter overflow is incredibly unrealistic.
        unchecked {
            _balanceOf[to]++;
            _currentIndex++;
        }

        _ownerOf[id] = to;

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

    function _burn(uint256 id) internal virtual {
        address owner = _ownerOf[id];

        require(owner != address(0), "NOT_MINTED");

        // Ownership check above ensures no underflow.
        unchecked {
            _balanceOf[owner]--;
        }

        delete _ownerOf[id];

        delete getApproved[id];

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

/// @notice A generic interface for a contract which properly accepts ERC721 tokens.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721TokenReceiver {
    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC721TokenReceiver.onERC721Received.selector;
    }
}

File 9 of 14 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 12 of 14 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_royaltyReceiver","type":"address"},{"internalType":"uint96","name":"_royaltyFeeNumerator","type":"uint96"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"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":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getETHBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintAmountPerTx","type":"uint256"}],"name":"setMaxMintAmountPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriPrefix","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

600160045560a060405260006080908152600b906200001f908262000390565b50600d805460ff191660011790553480156200003a57600080fd5b5060405162002613380380620026138339810160408190526200005d916200045c565b6040518060400160405280601481526020017f576861742054686174204275636b20576f727468000000000000000000000000815250604051806040016040528060048152602001635754425760e01b8152508160009081620000c1919062000390565b506001620000d0828262000390565b505050620000ed620000e76200011360201b60201c565b62000117565b6001600a819055620000ff9062000169565b6200010b828262000178565b5050620004b1565b3390565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200017362000188565b600c55565b620001848282620001ea565b5050565b6009546001600160a01b03163314620001e85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b565b6127106001600160601b03821611156200025a5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401620001df565b6001600160a01b038216620002b25760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620001df565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600755565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200031657607f821691505b6020821081036200033757634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200038b57600081815260208120601f850160051c81016020861015620003665750805b601f850160051c820191505b81811015620003875782815560010162000372565b5050505b505050565b81516001600160401b03811115620003ac57620003ac620002eb565b620003c481620003bd845462000301565b846200033d565b602080601f831160018114620003fc5760008415620003e35750858301515b600019600386901b1c1916600185901b17855562000387565b600085815260208120601f198616915b828110156200042d578886015182559484019460019091019084016200040c565b50858210156200044c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600080604083850312156200047057600080fd5b82516001600160a01b03811681146200048857600080fd5b60208401519092506001600160601b0381168114620004a657600080fd5b809150509250929050565b61215280620004c16000396000f3fe6080604052600436106101e75760003560e01c80636e94729811610102578063a22cb46511610095578063d5abeb0111610064578063d5abeb011461058a578063e985e9c5146105a0578063f2fde38b146105db578063f4f3b200146105fb57600080fd5b8063a22cb4651461050a578063b071401b1461052a578063b88d4fde1461054a578063c87b56dd1461056a57600080fd5b80638da5cb5b116100d15780638da5cb5b146104ae57806394354fd0146104cc57806395d89b41146104e2578063a0712d68146104f757600080fd5b80636e9472981461044657806370a0823114610459578063715018a6146104795780637ec4a6591461048e57600080fd5b806323b872dd1161017a5780635503a0e8116101495780635503a0e8146103c65780635c975abb146103f757806362b99ad4146104115780636352211e1461042657600080fd5b806323b872dd146103325780632a55205a146103525780633ccfd60b1461039157806342842e0e146103a657600080fd5b8063095ea7b3116101b6578063095ea7b3146102ba57806313faede6146102da57806316c38b3c146102fd57806318160ddd1461031d57600080fd5b806301ffc9a7146101f357806304634d8d1461022857806306fdde031461024a578063081812fc1461026c57600080fd5b366101ee57005b600080fd5b3480156101ff57600080fd5b5061021361020e366004611a71565b61061b565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b50610248610243366004611aa3565b61063b565b005b34801561025657600080fd5b5061025f610649565b60405161021f9190611b18565b34801561027857600080fd5b506102a2610287366004611b4b565b6005602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161021f565b3480156102c657600080fd5b506102486102d5366004611b64565b6106d7565b3480156102e657600080fd5b506102ef600081565b60405190815260200161021f565b34801561030957600080fd5b50610248610318366004611b9e565b6107be565b34801561032957600080fd5b506102ef6107d9565b34801561033e57600080fd5b5061024861034d366004611bbb565b6107ef565b34801561035e57600080fd5b5061037261036d366004611bfc565b6109b6565b604080516001600160a01b03909316835260208301919091520161021f565b34801561039d57600080fd5b50610248610a62565b3480156103b257600080fd5b506102486103c1366004611bbb565b610b3a565b3480156103d257600080fd5b5061025f60405180604001604052806005815260200164173539b7b760d91b81525081565b34801561040357600080fd5b50600d546102139060ff1681565b34801561041d57600080fd5b5061025f610c32565b34801561043257600080fd5b506102a2610441366004611b4b565b610c3f565b34801561045257600080fd5b50476102ef565b34801561046557600080fd5b506102ef610474366004611c1e565b610c96565b34801561048557600080fd5b50610248610cf9565b34801561049a57600080fd5b506102486104a9366004611c51565b610d0d565b3480156104ba57600080fd5b506009546001600160a01b03166102a2565b3480156104d857600080fd5b506102ef600c5481565b3480156104ee57600080fd5b5061025f610d21565b610248610505366004611b4b565b610d2e565b34801561051657600080fd5b50610248610525366004611d02565b610ee5565b34801561053657600080fd5b50610248610545366004611b4b565b610f51565b34801561055657600080fd5b50610248610565366004611d30565b610f5e565b34801561057657600080fd5b5061025f610585366004611b4b565b611046565b34801561059657600080fd5b506102ef6107b381565b3480156105ac57600080fd5b506102136105bb366004611dcf565b600660209081526000928352604080842090915290825290205460ff1681565b3480156105e757600080fd5b506102486105f6366004611c1e565b611138565b34801561060757600080fd5b50610248610616366004611c1e565b6111b1565b60006106268261129e565b806106355750610635826112ec565b92915050565b6106458282611321565b5050565b6000805461065690611dfd565b80601f016020809104026020016040519081016040528092919081815260200182805461068290611dfd565b80156106cf5780601f106106a4576101008083540402835291602001916106cf565b820191906000526020600020905b8154815290600101906020018083116106b257829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148061072057506001600160a01b038116600090815260066020908152604080832033845290915290205460ff165b6107625760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6107c661141e565b600d805460ff1916911515919091179055565b600060016004546107ea9190611e4d565b905090565b6000818152600260205260409020546001600160a01b038481169116146108455760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b6044820152606401610759565b6001600160a01b03821661088f5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610759565b336001600160a01b03841614806108c957506001600160a01b038316600090815260066020908152604080832033845290915290205460ff165b806108ea57506000818152600560205260409020546001600160a01b031633145b6109275760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610759565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600590925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008281526008602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610a2b5750604080518082019091526007546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610a4a906001600160601b031687611e64565b610a549190611e99565b915196919550909350505050565b610a6a61141e565b6002600a5403610abc5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610759565b6002600a556000610ad56009546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610b1f576040519150601f19603f3d011682016040523d82523d6000602084013e610b24565b606091505b5050905080610b3257600080fd5b506001600a55565b610b458383836107ef565b6001600160a01b0382163b1580610bee5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610bbe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be29190611ead565b6001600160e01b031916145b610c2d5760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610759565b505050565b600b805461065690611dfd565b6000818152600260205260409020546001600160a01b031680610c915760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b6044820152606401610759565b919050565b60006001600160a01b038216610cdd5760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b6044820152606401610759565b506001600160a01b031660009081526003602052604090205490565b610d0161141e565b610d0b6000611478565b565b610d1561141e565b600b6106458282611f18565b6001805461065690611dfd565b6004546107b303610d8157686ad91ea931c6ec0000341015610d815760405162461bcd60e51b815260206004820152600c60248201526b31393731206574682062726f60a01b6044820152606401610759565b80600081118015610d945750600c548111155b610dcf5760405162461bcd60e51b815260206004820152600c60248201526b312070657220747820706c7360a01b6044820152606401610759565b6107b3600182600454610de29190611fd8565b610dec9190611e4d565b1115610e305760405162461bcd60e51b81526020600482015260136024820152721a195b1b081e59585a08481cdbdb19081bdd5d606a1b6044820152606401610759565b600d5460ff1615610e6e5760405162461bcd60e51b81526020600482015260086024820152671c1b1cc81dd85a5d60c21b6044820152606401610759565b33610eb25760405162461bcd60e51b81526020600482015260146024820152733bb4379034b9903a3434b990313ab1b5903337b960611b6044820152606401610759565b60005b82811015610c2d57610ec56114ca565b610ed3336115cf565b6115cf565b80610edd81611ff0565b915050610eb5565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610f5961141e565b600c55565b610f698585856107ef565b6001600160a01b0384163b15806110005750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610fb19033908a90899089908990600401612009565b6020604051808303816000875af1158015610fd0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff49190611ead565b6001600160e01b031916145b61103f5760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610759565b5050505050565b6060600082118015611059575060045482105b6110bd5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610759565b60006110c761169f565b905060008151116110e75760405180602001604052806000815250611131565b806110f184611731565b60405180604001604052806005815260200164173539b7b760d91b8152506040516020016111219392919061205d565b6040516020818303038152906040525b9392505050565b61114061141e565b6001600160a01b0381166111a55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610759565b6111ae81611478565b50565b6111b961141e565b6002600a540361120b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610759565b6002600a55610b326112256009546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa158015611269573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061128d91906120a0565b6001600160a01b038416919061183a565b60006301ffc9a760e01b6001600160e01b0319831614806112cf57506380ac58cd60e01b6001600160e01b03198316145b806106355750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b148061063557506301ffc9a760e01b6001600160e01b0319831614610635565b6127106001600160601b038216111561138f5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610759565b6001600160a01b0382166113e55760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610759565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600755565b6009546001600160a01b03163314610d0b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610759565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600c5481111561150d5760405162461bcd60e51b815260206004820152600c60248201526b312070657220747820706c7360a01b6044820152606401610759565b6107b36001826004546115209190611fd8565b61152a9190611e4d565b111561156e5760405162461bcd60e51b81526020600482015260136024820152721a195b1b081e59585a08481cdbdb19081bdd5d606a1b6044820152606401610759565b6004546002148061158157506004546005145b8061158e5750600454600a145b8061159b57506004546014145b806115a857506004546032145b806115b557506004546064145b156111ae576111ae610ece6009546001600160a01b031690565b6004546000818152600260205260409020546001600160a01b0316156116285760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b6044820152606401610759565b6001600160a01b038216600081815260036020908152604080832080546001908101909155600480549091019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060600b80546116ae90611dfd565b80601f01602080910402602001604051908101604052809291908181526020018280546116da90611dfd565b80156117275780601f106116fc57610100808354040283529160200191611727565b820191906000526020600020905b81548152906001019060200180831161170a57829003601f168201915b5050505050905090565b6060816000036117585750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611782578061176c81611ff0565b915061177b9050600a83611e99565b915061175c565b60008167ffffffffffffffff81111561179d5761179d611c3b565b6040519080825280601f01601f1916602001820160405280156117c7576020820181803683370190505b5090505b8415611832576117dc600183611e4d565b91506117e9600a866120b9565b6117f4906030611fd8565b60f81b818381518110611809576118096120cd565b60200101906001600160f81b031916908160001a90535061182b600a86611e99565b94506117cb565b949350505050565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656490840152610c2d928692916000916118ca918516908490611947565b805190915015610c2d57808060200190518101906118e891906120e3565b610c2d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610759565b60606118328484600085856001600160a01b0385163b6119a95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610759565b600080866001600160a01b031685876040516119c59190612100565b60006040518083038185875af1925050503d8060008114611a02576040519150601f19603f3d011682016040523d82523d6000602084013e611a07565b606091505b5091509150611a17828286611a22565b979650505050505050565b60608315611a31575081611131565b825115611a415782518084602001fd5b8160405162461bcd60e51b81526004016107599190611b18565b6001600160e01b0319811681146111ae57600080fd5b600060208284031215611a8357600080fd5b813561113181611a5b565b6001600160a01b03811681146111ae57600080fd5b60008060408385031215611ab657600080fd5b8235611ac181611a8e565b915060208301356001600160601b0381168114611add57600080fd5b809150509250929050565b60005b83811015611b03578181015183820152602001611aeb565b83811115611b12576000848401525b50505050565b6020815260008251806020840152611b37816040850160208701611ae8565b601f01601f19169190910160400192915050565b600060208284031215611b5d57600080fd5b5035919050565b60008060408385031215611b7757600080fd5b8235611b8281611a8e565b946020939093013593505050565b80151581146111ae57600080fd5b600060208284031215611bb057600080fd5b813561113181611b90565b600080600060608486031215611bd057600080fd5b8335611bdb81611a8e565b92506020840135611beb81611a8e565b929592945050506040919091013590565b60008060408385031215611c0f57600080fd5b50508035926020909101359150565b600060208284031215611c3057600080fd5b813561113181611a8e565b634e487b7160e01b600052604160045260246000fd5b600060208284031215611c6357600080fd5b813567ffffffffffffffff80821115611c7b57600080fd5b818401915084601f830112611c8f57600080fd5b813581811115611ca157611ca1611c3b565b604051601f8201601f19908116603f01168101908382118183101715611cc957611cc9611c3b565b81604052828152876020848701011115611ce257600080fd5b826020860160208301376000928101602001929092525095945050505050565b60008060408385031215611d1557600080fd5b8235611d2081611a8e565b91506020830135611add81611b90565b600080600080600060808688031215611d4857600080fd5b8535611d5381611a8e565b94506020860135611d6381611a8e565b935060408601359250606086013567ffffffffffffffff80821115611d8757600080fd5b818801915088601f830112611d9b57600080fd5b813581811115611daa57600080fd5b896020828501011115611dbc57600080fd5b9699959850939650602001949392505050565b60008060408385031215611de257600080fd5b8235611ded81611a8e565b91506020830135611add81611a8e565b600181811c90821680611e1157607f821691505b602082108103611e3157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082821015611e5f57611e5f611e37565b500390565b6000816000190483118215151615611e7e57611e7e611e37565b500290565b634e487b7160e01b600052601260045260246000fd5b600082611ea857611ea8611e83565b500490565b600060208284031215611ebf57600080fd5b815161113181611a5b565b601f821115610c2d57600081815260208120601f850160051c81016020861015611ef15750805b601f850160051c820191505b81811015611f1057828155600101611efd565b505050505050565b815167ffffffffffffffff811115611f3257611f32611c3b565b611f4681611f408454611dfd565b84611eca565b602080601f831160018114611f7b5760008415611f635750858301515b600019600386901b1c1916600185901b178555611f10565b600085815260208120601f198616915b82811015611faa57888601518255948401946001909101908401611f8b565b5085821015611fc85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008219821115611feb57611feb611e37565b500190565b60006001820161200257612002611e37565b5060010190565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b6000845161206f818460208901611ae8565b845190830190612083818360208901611ae8565b8451910190612096818360208801611ae8565b0195945050505050565b6000602082840312156120b257600080fd5b5051919050565b6000826120c8576120c8611e83565b500690565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156120f557600080fd5b815161113181611b90565b60008251612112818460208701611ae8565b919091019291505056fea26469706673582212201aed3f09388e6adc466ecd71e33e96f8f120b2f7a53017cf77fc6991996c67bb64736f6c634300080f0033000000000000000000000000e1ecf3ae8c48f8ee734a1d545a79b677b316bcd400000000000000000000000000000000000000000000000000000000000002ee

Deployed Bytecode

0x6080604052600436106101e75760003560e01c80636e94729811610102578063a22cb46511610095578063d5abeb0111610064578063d5abeb011461058a578063e985e9c5146105a0578063f2fde38b146105db578063f4f3b200146105fb57600080fd5b8063a22cb4651461050a578063b071401b1461052a578063b88d4fde1461054a578063c87b56dd1461056a57600080fd5b80638da5cb5b116100d15780638da5cb5b146104ae57806394354fd0146104cc57806395d89b41146104e2578063a0712d68146104f757600080fd5b80636e9472981461044657806370a0823114610459578063715018a6146104795780637ec4a6591461048e57600080fd5b806323b872dd1161017a5780635503a0e8116101495780635503a0e8146103c65780635c975abb146103f757806362b99ad4146104115780636352211e1461042657600080fd5b806323b872dd146103325780632a55205a146103525780633ccfd60b1461039157806342842e0e146103a657600080fd5b8063095ea7b3116101b6578063095ea7b3146102ba57806313faede6146102da57806316c38b3c146102fd57806318160ddd1461031d57600080fd5b806301ffc9a7146101f357806304634d8d1461022857806306fdde031461024a578063081812fc1461026c57600080fd5b366101ee57005b600080fd5b3480156101ff57600080fd5b5061021361020e366004611a71565b61061b565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b50610248610243366004611aa3565b61063b565b005b34801561025657600080fd5b5061025f610649565b60405161021f9190611b18565b34801561027857600080fd5b506102a2610287366004611b4b565b6005602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161021f565b3480156102c657600080fd5b506102486102d5366004611b64565b6106d7565b3480156102e657600080fd5b506102ef600081565b60405190815260200161021f565b34801561030957600080fd5b50610248610318366004611b9e565b6107be565b34801561032957600080fd5b506102ef6107d9565b34801561033e57600080fd5b5061024861034d366004611bbb565b6107ef565b34801561035e57600080fd5b5061037261036d366004611bfc565b6109b6565b604080516001600160a01b03909316835260208301919091520161021f565b34801561039d57600080fd5b50610248610a62565b3480156103b257600080fd5b506102486103c1366004611bbb565b610b3a565b3480156103d257600080fd5b5061025f60405180604001604052806005815260200164173539b7b760d91b81525081565b34801561040357600080fd5b50600d546102139060ff1681565b34801561041d57600080fd5b5061025f610c32565b34801561043257600080fd5b506102a2610441366004611b4b565b610c3f565b34801561045257600080fd5b50476102ef565b34801561046557600080fd5b506102ef610474366004611c1e565b610c96565b34801561048557600080fd5b50610248610cf9565b34801561049a57600080fd5b506102486104a9366004611c51565b610d0d565b3480156104ba57600080fd5b506009546001600160a01b03166102a2565b3480156104d857600080fd5b506102ef600c5481565b3480156104ee57600080fd5b5061025f610d21565b610248610505366004611b4b565b610d2e565b34801561051657600080fd5b50610248610525366004611d02565b610ee5565b34801561053657600080fd5b50610248610545366004611b4b565b610f51565b34801561055657600080fd5b50610248610565366004611d30565b610f5e565b34801561057657600080fd5b5061025f610585366004611b4b565b611046565b34801561059657600080fd5b506102ef6107b381565b3480156105ac57600080fd5b506102136105bb366004611dcf565b600660209081526000928352604080842090915290825290205460ff1681565b3480156105e757600080fd5b506102486105f6366004611c1e565b611138565b34801561060757600080fd5b50610248610616366004611c1e565b6111b1565b60006106268261129e565b806106355750610635826112ec565b92915050565b6106458282611321565b5050565b6000805461065690611dfd565b80601f016020809104026020016040519081016040528092919081815260200182805461068290611dfd565b80156106cf5780601f106106a4576101008083540402835291602001916106cf565b820191906000526020600020905b8154815290600101906020018083116106b257829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148061072057506001600160a01b038116600090815260066020908152604080832033845290915290205460ff165b6107625760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6107c661141e565b600d805460ff1916911515919091179055565b600060016004546107ea9190611e4d565b905090565b6000818152600260205260409020546001600160a01b038481169116146108455760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b6044820152606401610759565b6001600160a01b03821661088f5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610759565b336001600160a01b03841614806108c957506001600160a01b038316600090815260066020908152604080832033845290915290205460ff165b806108ea57506000818152600560205260409020546001600160a01b031633145b6109275760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610759565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600590925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008281526008602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610a2b5750604080518082019091526007546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610a4a906001600160601b031687611e64565b610a549190611e99565b915196919550909350505050565b610a6a61141e565b6002600a5403610abc5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610759565b6002600a556000610ad56009546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610b1f576040519150601f19603f3d011682016040523d82523d6000602084013e610b24565b606091505b5050905080610b3257600080fd5b506001600a55565b610b458383836107ef565b6001600160a01b0382163b1580610bee5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610bbe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be29190611ead565b6001600160e01b031916145b610c2d5760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610759565b505050565b600b805461065690611dfd565b6000818152600260205260409020546001600160a01b031680610c915760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b6044820152606401610759565b919050565b60006001600160a01b038216610cdd5760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b6044820152606401610759565b506001600160a01b031660009081526003602052604090205490565b610d0161141e565b610d0b6000611478565b565b610d1561141e565b600b6106458282611f18565b6001805461065690611dfd565b6004546107b303610d8157686ad91ea931c6ec0000341015610d815760405162461bcd60e51b815260206004820152600c60248201526b31393731206574682062726f60a01b6044820152606401610759565b80600081118015610d945750600c548111155b610dcf5760405162461bcd60e51b815260206004820152600c60248201526b312070657220747820706c7360a01b6044820152606401610759565b6107b3600182600454610de29190611fd8565b610dec9190611e4d565b1115610e305760405162461bcd60e51b81526020600482015260136024820152721a195b1b081e59585a08481cdbdb19081bdd5d606a1b6044820152606401610759565b600d5460ff1615610e6e5760405162461bcd60e51b81526020600482015260086024820152671c1b1cc81dd85a5d60c21b6044820152606401610759565b33610eb25760405162461bcd60e51b81526020600482015260146024820152733bb4379034b9903a3434b990313ab1b5903337b960611b6044820152606401610759565b60005b82811015610c2d57610ec56114ca565b610ed3336115cf565b6115cf565b80610edd81611ff0565b915050610eb5565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610f5961141e565b600c55565b610f698585856107ef565b6001600160a01b0384163b15806110005750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610fb19033908a90899089908990600401612009565b6020604051808303816000875af1158015610fd0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff49190611ead565b6001600160e01b031916145b61103f5760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b6044820152606401610759565b5050505050565b6060600082118015611059575060045482105b6110bd5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610759565b60006110c761169f565b905060008151116110e75760405180602001604052806000815250611131565b806110f184611731565b60405180604001604052806005815260200164173539b7b760d91b8152506040516020016111219392919061205d565b6040516020818303038152906040525b9392505050565b61114061141e565b6001600160a01b0381166111a55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610759565b6111ae81611478565b50565b6111b961141e565b6002600a540361120b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610759565b6002600a55610b326112256009546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa158015611269573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061128d91906120a0565b6001600160a01b038416919061183a565b60006301ffc9a760e01b6001600160e01b0319831614806112cf57506380ac58cd60e01b6001600160e01b03198316145b806106355750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b148061063557506301ffc9a760e01b6001600160e01b0319831614610635565b6127106001600160601b038216111561138f5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610759565b6001600160a01b0382166113e55760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610759565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600755565b6009546001600160a01b03163314610d0b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610759565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600c5481111561150d5760405162461bcd60e51b815260206004820152600c60248201526b312070657220747820706c7360a01b6044820152606401610759565b6107b36001826004546115209190611fd8565b61152a9190611e4d565b111561156e5760405162461bcd60e51b81526020600482015260136024820152721a195b1b081e59585a08481cdbdb19081bdd5d606a1b6044820152606401610759565b6004546002148061158157506004546005145b8061158e5750600454600a145b8061159b57506004546014145b806115a857506004546032145b806115b557506004546064145b156111ae576111ae610ece6009546001600160a01b031690565b6004546000818152600260205260409020546001600160a01b0316156116285760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b6044820152606401610759565b6001600160a01b038216600081815260036020908152604080832080546001908101909155600480549091019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060600b80546116ae90611dfd565b80601f01602080910402602001604051908101604052809291908181526020018280546116da90611dfd565b80156117275780601f106116fc57610100808354040283529160200191611727565b820191906000526020600020905b81548152906001019060200180831161170a57829003601f168201915b5050505050905090565b6060816000036117585750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611782578061176c81611ff0565b915061177b9050600a83611e99565b915061175c565b60008167ffffffffffffffff81111561179d5761179d611c3b565b6040519080825280601f01601f1916602001820160405280156117c7576020820181803683370190505b5090505b8415611832576117dc600183611e4d565b91506117e9600a866120b9565b6117f4906030611fd8565b60f81b818381518110611809576118096120cd565b60200101906001600160f81b031916908160001a90535061182b600a86611e99565b94506117cb565b949350505050565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656490840152610c2d928692916000916118ca918516908490611947565b805190915015610c2d57808060200190518101906118e891906120e3565b610c2d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610759565b60606118328484600085856001600160a01b0385163b6119a95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610759565b600080866001600160a01b031685876040516119c59190612100565b60006040518083038185875af1925050503d8060008114611a02576040519150601f19603f3d011682016040523d82523d6000602084013e611a07565b606091505b5091509150611a17828286611a22565b979650505050505050565b60608315611a31575081611131565b825115611a415782518084602001fd5b8160405162461bcd60e51b81526004016107599190611b18565b6001600160e01b0319811681146111ae57600080fd5b600060208284031215611a8357600080fd5b813561113181611a5b565b6001600160a01b03811681146111ae57600080fd5b60008060408385031215611ab657600080fd5b8235611ac181611a8e565b915060208301356001600160601b0381168114611add57600080fd5b809150509250929050565b60005b83811015611b03578181015183820152602001611aeb565b83811115611b12576000848401525b50505050565b6020815260008251806020840152611b37816040850160208701611ae8565b601f01601f19169190910160400192915050565b600060208284031215611b5d57600080fd5b5035919050565b60008060408385031215611b7757600080fd5b8235611b8281611a8e565b946020939093013593505050565b80151581146111ae57600080fd5b600060208284031215611bb057600080fd5b813561113181611b90565b600080600060608486031215611bd057600080fd5b8335611bdb81611a8e565b92506020840135611beb81611a8e565b929592945050506040919091013590565b60008060408385031215611c0f57600080fd5b50508035926020909101359150565b600060208284031215611c3057600080fd5b813561113181611a8e565b634e487b7160e01b600052604160045260246000fd5b600060208284031215611c6357600080fd5b813567ffffffffffffffff80821115611c7b57600080fd5b818401915084601f830112611c8f57600080fd5b813581811115611ca157611ca1611c3b565b604051601f8201601f19908116603f01168101908382118183101715611cc957611cc9611c3b565b81604052828152876020848701011115611ce257600080fd5b826020860160208301376000928101602001929092525095945050505050565b60008060408385031215611d1557600080fd5b8235611d2081611a8e565b91506020830135611add81611b90565b600080600080600060808688031215611d4857600080fd5b8535611d5381611a8e565b94506020860135611d6381611a8e565b935060408601359250606086013567ffffffffffffffff80821115611d8757600080fd5b818801915088601f830112611d9b57600080fd5b813581811115611daa57600080fd5b896020828501011115611dbc57600080fd5b9699959850939650602001949392505050565b60008060408385031215611de257600080fd5b8235611ded81611a8e565b91506020830135611add81611a8e565b600181811c90821680611e1157607f821691505b602082108103611e3157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082821015611e5f57611e5f611e37565b500390565b6000816000190483118215151615611e7e57611e7e611e37565b500290565b634e487b7160e01b600052601260045260246000fd5b600082611ea857611ea8611e83565b500490565b600060208284031215611ebf57600080fd5b815161113181611a5b565b601f821115610c2d57600081815260208120601f850160051c81016020861015611ef15750805b601f850160051c820191505b81811015611f1057828155600101611efd565b505050505050565b815167ffffffffffffffff811115611f3257611f32611c3b565b611f4681611f408454611dfd565b84611eca565b602080601f831160018114611f7b5760008415611f635750858301515b600019600386901b1c1916600185901b178555611f10565b600085815260208120601f198616915b82811015611faa57888601518255948401946001909101908401611f8b565b5085821015611fc85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008219821115611feb57611feb611e37565b500190565b60006001820161200257612002611e37565b5060010190565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b6000845161206f818460208901611ae8565b845190830190612083818360208901611ae8565b8451910190612096818360208801611ae8565b0195945050505050565b6000602082840312156120b257600080fd5b5051919050565b6000826120c8576120c8611e83565b500690565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156120f557600080fd5b815161113181611b90565b60008251612112818460208701611ae8565b919091019291505056fea26469706673582212201aed3f09388e6adc466ecd71e33e96f8f120b2f7a53017cf77fc6991996c67bb64736f6c634300080f0033

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

000000000000000000000000e1ecf3ae8c48f8ee734a1d545a79b677b316bcd400000000000000000000000000000000000000000000000000000000000002ee

-----Decoded View---------------
Arg [0] : _royaltyReceiver (address): 0xE1ECf3ae8c48f8EE734A1d545A79b677B316bCd4
Arg [1] : _royaltyFeeNumerator (uint96): 750

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000e1ecf3ae8c48f8ee734a1d545a79b677b316bcd4
Arg [1] : 00000000000000000000000000000000000000000000000000000000000002ee


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.