ETH Price: $3,936.64 (+1.73%)

Contract

0x98AFe7a8D28bBc88DCF41F8E06d97C74958A47dc
 

Overview

ETH Balance

0.312499995 ETH

Eth Value

$1,230.20 (@ $3,936.64/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...209191482024-10-08 6:44:5968 days ago1728369899IN
0x98AFe7a8...4958A47dc
0 ETH0.000339714.01891198
Safe Transfer Fr...157784032022-10-18 23:53:23788 days ago1666137203IN
0x98AFe7a8...4958A47dc
0 ETH0.0010151816.82881354
Set Approval For...157783842022-10-18 23:49:35788 days ago1666136975IN
0x98AFe7a8...4958A47dc
0 ETH0.000873218.95796601
Safe Transfer Fr...157484162022-10-14 19:23:59793 days ago1665775439IN
0x98AFe7a8...4958A47dc
0 ETH0.0008377719.41446673
Safe Transfer Fr...157483922022-10-14 19:19:11793 days ago1665775151IN
0x98AFe7a8...4958A47dc
0 ETH0.0013311920.46348473
Set Approval For...156982822022-10-07 19:26:11800 days ago1665170771IN
0x98AFe7a8...4958A47dc
0 ETH0.0005307811.52385666
Set Approval For...153503952022-08-16 5:03:19852 days ago1660626199IN
0x98AFe7a8...4958A47dc
0 ETH0.0005188611.26501478
Set Approval For...147736332022-05-14 12:32:26946 days ago1652531546IN
0x98AFe7a8...4958A47dc
0 ETH0.0018470240.0378024
Set Approval For...142406612022-02-20 3:55:541029 days ago1645329354IN
0x98AFe7a8...4958A47dc
0 ETH0.0022766549.3380712
Set Approval For...141969812022-02-13 9:25:011036 days ago1644744301IN
0x98AFe7a8...4958A47dc
0 ETH0.001745337.82296178
Set Approval For...139942612022-01-13 1:38:141067 days ago1642037894IN
0x98AFe7a8...4958A47dc
0 ETH0.00605263131.16832973
Set Approval For...139825742022-01-11 6:25:421069 days ago1641882342IN
0x98AFe7a8...4958A47dc
0 ETH0.00710042153.87537005
Set Approval For...139772642022-01-10 10:35:571070 days ago1641810957IN
0x98AFe7a8...4958A47dc
0 ETH0.01675307363.06066361
Burn139367332022-01-04 4:10:101076 days ago1641269410IN
0x98AFe7a8...4958A47dc
0 ETH0.00976233102.72036974
Mint All139366912022-01-04 3:59:391076 days ago1641268779IN
0x98AFe7a8...4958A47dc
0 ETH0.0241017487.66949472
Mint All139363552022-01-04 2:41:531076 days ago1641264113IN
0x98AFe7a8...4958A47dc
0 ETH0.02900376107.75297763
Mint137295222021-12-02 20:51:041109 days ago1638478264IN
0x98AFe7a8...4958A47dc
0 ETH0.0107811793.31681783
Mint All136644302021-11-22 12:12:431119 days ago1637583163IN
0x98AFe7a8...4958A47dc
0 ETH0.0231475485.99632544
Set Approval For...136401662021-11-18 15:38:101123 days ago1637249890IN
0x98AFe7a8...4958A47dc
0 ETH0.00987564214.07357571
Mint136401142021-11-18 15:25:401123 days ago1637249140IN
0x98AFe7a8...4958A47dc
0 ETH0.01595027162.02223379
Mint136397882021-11-18 14:12:261123 days ago1637244746IN
0x98AFe7a8...4958A47dc
0 ETH0.01713057148.04235299
Mint136334652021-11-17 14:22:501124 days ago1637158970IN
0x98AFe7a8...4958A47dc
0 ETH0.01452382125.69843328
Mint136087162021-11-13 16:28:311128 days ago1636820911IN
0x98AFe7a8...4958A47dc
0 ETH0.01011726102.77075081
Mint136083862021-11-13 15:10:111128 days ago1636816211IN
0x98AFe7a8...4958A47dc
0 ETH0.01820199157.28530013
Transfer From136061172021-11-13 6:30:461128 days ago1636785046IN
0x98AFe7a8...4958A47dc
0 ETH0.00535338118.78464246
View all transactions

Latest 5 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
135532782021-11-05 0:06:391136 days ago1636070799
0x98AFe7a8...4958A47dc
0.03472222 ETH
135530332021-11-04 23:09:381137 days ago1636067378
0x98AFe7a8...4958A47dc
0.00972222 ETH
135477312021-11-04 3:02:321137 days ago1635994952
0x98AFe7a8...4958A47dc
0.0125 ETH
135463772021-11-03 21:47:551138 days ago1635976075
0x98AFe7a8...4958A47dc
0.11527778 ETH
135455532021-11-03 18:41:441138 days ago1635964904
0x98AFe7a8...4958A47dc
0.03194444 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MemeNumbers

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-10-30
*/

// Verified using https://dapp.tools

// hevm: flattened sources of src/MemeNumbers.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4 >=0.8.0 <0.9.0;

////// lib/base64/base64.sol

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides a function for encoding some bytes in base64
library Base64 {
    string internal constant TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return '';
        
        // load the table into memory
        string memory table = TABLE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((data.length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)
            
            // prepare the lookup table
            let tablePtr := add(table, 1)
            
            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))
            
            // result ptr, jump over length
            let resultPtr := add(result, 32)
            
            // run over the input, 3 bytes at a time
            for {} lt(dataPtr, endPtr) {}
            {
               dataPtr := add(dataPtr, 3)
               
               // read 3 bytes
               let input := mload(dataPtr)
               
               // write 4 characters
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr( 6, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(        input,  0x3F)))))
               resultPtr := add(resultPtr, 1)
            }
            
            // padding with '='
            switch mod(mload(data), 3)
            case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) }
            case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) }
        }
        
        return result;
    }
}

////// lib/openzeppelin-contracts/contracts/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;
    }
}

////// lib/openzeppelin-contracts/contracts/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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        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);
    }
}

////// lib/openzeppelin-contracts/contracts/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);
}

////// lib/openzeppelin-contracts/contracts/token/ERC721/IERC721.sol

/* pragma solidity ^0.8.0; */

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

////// lib/openzeppelin-contracts/contracts/token/ERC721/IERC721Receiver.sol

/* pragma solidity ^0.8.0; */

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

////// lib/openzeppelin-contracts/contracts/token/ERC721/extensions/IERC721Metadata.sol

/* pragma solidity ^0.8.0; */

/* import "../IERC721.sol"; */

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

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

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

////// lib/openzeppelin-contracts/contracts/utils/Address.sol

/* pragma solidity ^0.8.0; */

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

////// lib/openzeppelin-contracts/contracts/utils/Strings.sol

/* pragma solidity ^0.8.0; */

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

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

////// lib/openzeppelin-contracts/contracts/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;
    }
}

////// lib/openzeppelin-contracts/contracts/token/ERC721/ERC721.sol

/* pragma solidity ^0.8.0; */

/* import "./IERC721.sol"; */
/* import "./IERC721Receiver.sol"; */
/* import "./extensions/IERC721Metadata.sol"; */
/* import "../../utils/Address.sol"; */
/* import "../../utils/Context.sol"; */
/* import "../../utils/Strings.sol"; */
/* import "../../utils/introspection/ERC165.sol"; */

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

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

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

////// src/MemeNumbersRenderer.sol
/* pragma solidity >=0.8.4; */

/* import '@openzeppelin/contracts/utils/Strings.sol'; */

/* import "base64/base64.sol"; */

interface IMemeNumbers{
}

interface ITokenRenderer {
    function tokenURI(IMemeNumbers instance, uint256 tokenId) external view returns (string memory);
}

contract MemeNumbersRenderer is ITokenRenderer {
  using Strings for uint;

  function renderNFTImage(IMemeNumbers instance, uint256 tokenId) public view returns (string memory) {
    return Base64.encode(bytes(abi.encodePacked(
      '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidyMid meet" viewBox="0 0 400 400" style="background:black">',
        '<text x="200" y="200" style="text-anchor:middle;dominant-baseline:middle;fill:white;font-size:24px;">',
          tokenId.toString(),
        '</text>',
      '</svg>')));
  }

  function _generateAttributes(uint256 tokenId) internal pure returns (string memory) {
    string memory parity = "Odd";
    if (tokenId % 2 == 0) {
      parity = "Even";
    }

    uint256 i = tokenId;
    uint256 digits = 0;
    while (i != 0) {
      digits++;
      i /= 10;
    }

    return string(abi.encodePacked(
      '[',
         '{',
            '"trait_type": "Digits",',
            '"value": ', digits.toString(),
          '},',
          '{',
              '"trait_type": "Parity",',
              '"value": ','"',parity,'"'
          '}',
      ']'
    ));
  }

  function tokenURI(IMemeNumbers instance, uint256 tokenId) public view override(ITokenRenderer) returns (string memory) {
    return string(
      abi.encodePacked(
        'data:application/json;base64,',
        Base64.encode(bytes(abi.encodePacked(
              '{"name":"', tokenId.toString(), '"',
              ',"description":"What is your meme number?"', // FIXME: Write something better
              ',"external_url":"https://memenumbers.com"',
              ',"image":"data:image/svg+xml;base64,', renderNFTImage(instance, tokenId), '"',
              ',"attributes":', _generateAttributes(tokenId),
              '}'
        )))
      )
    );
  }
}

////// src/MemeNumbers.sol
/* pragma solidity ^0.8.0; */

/* import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; */
/* import "@openzeppelin/contracts/access/Ownable.sol"; */

/* import "./MemeNumbersRenderer.sol"; */

library Errors {
    string constant AlreadyMinted = "already minted";
    string constant UnderPriced = "current price is higher than msg.value";
    string constant NotForSale = "number is not for sale in this batch";
    string constant MustOwnNum = "must own number to operate on it";
    string constant NoSelfBurn = "burn numbers must be different";
    string constant InvalidOp = "invalid op";
    string constant DoesNotExist = "does not exist";
    string constant RendererUpgradeDisabled = "renderer upgrade disabled";
}

contract MemeNumbers is ERC721, Ownable {
    uint256 public constant AUCTION_START_PRICE = 5 ether;
    uint256 public constant AUCTION_DURATION = 1 hours;
    uint256 public constant BATCH_SIZE = 8;
    uint256 constant DECAY_RESOLUTION = 1000000000; // 1 gwei

    uint256 public auctionStarted;
    uint256[BATCH_SIZE] private forSale;

    mapping(uint256 => bool) viaBurn; // Numbers that were created via burn

    /// disableRenderUpgrade is whether we can still upgrade the tokenURI renderer.
    /// Once it is set it cannot be unset.
    bool disableRenderUpgrade = false;
    ITokenRenderer public renderer;

    /// @notice Emitted when the auction batch is refreshed.
    event Refresh(); // TODO: Do we want to include any fields?

    constructor(address _renderer) ERC721("MemeNumbers", "MEMENUM") {
        renderer = ITokenRenderer(_renderer);

        _refresh();
    }

    // Internal helpers:

    function _getEntropy() view internal returns(uint256) {
        // This is not ideal but it's not practical to do a real source of entropy
        // like ChainLink with 2 LINK per refresh shuffle.

        // Borrowed from: https://github.com/1001-digital/erc721-extensions/blob/f5c983bac8989bc5ebf9b34c03f28e438da9a7b3/contracts/RandomlyAssigned.sol#L27
        return uint256(keccak256(
            abi.encodePacked(
                msg.sender,
                block.coinbase,
                block.difficulty,
                block.gaslimit,
                block.timestamp,
                blockhash(block.number))));
    }

    /**
     * @dev Generate a fresh sequence available for sale based on the current block state.
     */
    function _refresh() internal {
        auctionStarted = block.timestamp;

        uint256 entropy = _getEntropy();

        // Slice up our 256 bits of entropy into delicious bite-sized numbers.
        // Eligibility is confirmed during isForSale, getForSale, and mint.
        // Eligible batches can be smaller than the forSale batch.
        forSale[0] = (entropy >> 0) & (2 ** 8 - 1);
        forSale[1] = (entropy >> 5) & (2 ** 10 - 1);
        forSale[2] = (entropy >> 8) & (2 ** 14 - 1);
        forSale[3] = (entropy >> 8) & (2 ** 18 - 1);
        forSale[4] = (entropy >> 13) & (2 ** 24 - 1);
        forSale[5] = (entropy >> 21) & (2 ** 32 - 1);
        forSale[6] = (entropy >> 34) & (2 ** 64 - 1);
        forSale[7] = (entropy >> 55) & (2 ** 86 - 1);

        emit Refresh();
    }


    // Public views:

    /// @notice The current price of the dutch auction. Winning bids above this price will return the difference.
    function currentPrice() view public returns(uint256) {
        // Linear price reduction from AUCTION_START_PRICE to 0
        uint256 endTime = (auctionStarted + AUCTION_DURATION);
        if (block.timestamp >= endTime) {
            return 0;
        }
        uint256 elapsed = endTime - block.timestamp;
        return AUCTION_START_PRICE * ((elapsed * DECAY_RESOLUTION) / AUCTION_DURATION) / DECAY_RESOLUTION; 
    }

    /// @notice Return whether a number is for sale and eligible
    function isForSale(uint256 num) view public returns (bool) {
        for (uint256 i=0; i<forSale.length; i++) {
            if (forSale[i] == num) return !_exists(num);
        }
        return false;
    }

    /// @notice Eligible numbers for sale.
    /// @return nums Array of numbers available for sale.
    function getForSale() view external returns (uint256[] memory nums) {
        uint256[] memory batch = new uint256[](BATCH_SIZE);
        uint256 count = 0;
        for (uint256 i=0; i<forSale.length; i++) {
            if (_exists(forSale[i])) continue;
            batch[count] = forSale[i];
            count += 1;
        }

        // Copy to properly-sized array
        nums = new uint256[](count);
        for (uint256 i=0; i<count; i++) {
            nums[i] = batch[i];
        }

        return nums;
    }

    /// @notice Returns whether num was minted by burning, or if it is an original from auction.
    function isMintedByBurn(uint256 num) view external returns (bool) {
        return viaBurn[num];
    }

    /**
     * @notice Apply a mathematical operation on two numbers, returning the
     *   resulting number. Treat this as a partial read-only preview of `burn`.
     *   This preview does *not* account for the mint state of numbers.
     * @param num1 Number to burn, must own
     * @param op Operation to burn num1 and num2 with, one of: add, sub, mul, div
     * @param num2 Number to burn, must own
     */
    function operate(uint256 num1, string calldata op, uint256 num2) public pure returns (uint256) {
        bytes1 mode = bytes(op)[0];
        if (mode == "a") { // Add
            return num1 + num2;
        }
        if (mode == "s") { // Subtact
            return num1 - num2;
        }
        if (mode == "m") { // Multiply
            return num1 * num2;
        }
        if (mode == "d") { // Divide
            return num1 / num2;
        }
        revert(Errors.InvalidOp);
    }


    // Main interface:

    /**
     * @notice Mint one of the numbers that are currently for sale at the current dutch auction price.
     * @param to Address to mint the number into.
     * @param num Number to mint, must be in the current for-sale sequence.
     *
     * Emits a {Refresh} event.
     */
    function mint(address to, uint256 num) external payable {
        uint256 price = currentPrice();
        require(price <= msg.value, Errors.UnderPriced);
        require(isForSale(num), Errors.NotForSale);

        _mint(to, num);
        _refresh();

        if (msg.value > price) {
            // Refund difference of currentPrice vs msg.value to allow overbidding
            payable(msg.sender).transfer(msg.value - price);
        }
    }

    /**
     * @notice Mint all of the eligible numbers for sale, uses more gas than mint but you get more numbers.
     * @param to Address to mint the numbers into.
     *
     * Emits a {Refresh} event.
     */
    function mintAll(address to) external payable {
        uint256 price = currentPrice();
        require(price <= msg.value, Errors.UnderPriced);

        for (uint256 i=0; i<forSale.length; i++) {
            if (_exists(forSale[i])) continue;
            _mint(to, forSale[i]);
        }

        _refresh();

        if (msg.value > price) {
            // Refund difference of currentPrice vs msg.value to allow overbidding
            payable(msg.sender).transfer(msg.value - price);
        }
    }

    /**
     * @notice Refresh the auction without minting once the auction price is 0. More gas efficient than doing a free mint.
     *
     * Emits a {Refresh} event.
     */
    function refresh() external {
        require(currentPrice() == 0, Errors.UnderPriced);
        _refresh();
    }

    /**
     * @notice Burn two numbers together using a mathematical operation, producing
     *   a new number if it is not already taken. No minting fee required.
     * @param to Address to mint the resulting number into.
     * @param num1 Number to burn, must own
     * @param op Operation to burn num1 and num2 with, one of: add, sub, mul, div
     * @param num2 Number to burn, must own
     */
    function burn(address to, uint256 num1, string calldata op, uint256 num2) external {
        require(num1 != num2, Errors.NoSelfBurn);
        require(ownerOf(num1) == _msgSender(), Errors.MustOwnNum);
        require(ownerOf(num2) == _msgSender(), Errors.MustOwnNum);

        uint256 num = operate(num1, op, num2);
        require(!_exists(num), Errors.AlreadyMinted);

        _mint(to, num);
        viaBurn[num] = true;

        _burn(num1);
        _burn(num2);
        delete viaBurn[num1];
        delete viaBurn[num2];
    }


    // Renderer:

    function tokenURI(uint256 tokenId) public view override(ERC721) returns (string memory) {
        require(_exists(tokenId), Errors.DoesNotExist);
        return renderer.tokenURI(IMemeNumbers(address(this)), tokenId);
    }


    // onlyOwner admin functions:

    /// @notice Withdraw contract balance.
    function adminWithdraw(address payable to) external onlyOwner {
        to.transfer(address(this).balance);
    }

    /// @notice Change the tokenURI renderer.
    /// @param _renderer Address of ITokenRenderer.
    function adminSetRenderer(address _renderer) external onlyOwner {
        require(disableRenderUpgrade == false, Errors.RendererUpgradeDisabled);
        renderer = ITokenRenderer(_renderer);
    }

    /// @notice Disable upgrading the renderer. Once it is disabled, it cannot be enabled again.
    function adminDisableRenderUpgrade() external onlyOwner {
        disableRenderUpgrade = true;
    }

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_renderer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[],"name":"Refresh","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"AUCTION_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AUCTION_START_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BATCH_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adminDisableRenderUpgrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_renderer","type":"address"}],"name":"adminSetRenderer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"}],"name":"adminWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"auctionStarted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"num1","type":"uint256"},{"internalType":"string","name":"op","type":"string"},{"internalType":"uint256","name":"num2","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getForSale","outputs":[{"internalType":"uint256[]","name":"nums","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"}],"name":"isForSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"}],"name":"isMintedByBurn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"num","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mintAll","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"num1","type":"uint256"},{"internalType":"string","name":"op","type":"string"},{"internalType":"uint256","name":"num2","type":"uint256"}],"name":"operate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refresh","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renderer","outputs":[{"internalType":"contract ITokenRenderer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526011805460ff191690553480156200001b57600080fd5b50604051620033fc380380620033fc8339810160408190526200003e91620002ee565b604080518082018252600b81526a4d656d654e756d6265727360a81b6020808301918252835180850190945260078452664d454d454e554d60c81b908401528151919291620000909160009162000248565b508051620000a690600190602084019062000248565b505050620000c3620000bd620000f460201b60201c565b620000f8565b60118054610100600160a81b0319166101006001600160a01b03841602179055620000ed6200014a565b506200035d565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b426007556000620001b36040516001600160601b031933606090811b8216602084015241901b166034820152446048820152456068820152426088820152434060a882015260009060c8016040516020818303038152906040528051906020012060001c905090565b60ff81166008908155600582901c6103ff16600955613fff9082901c908116600a556203ffff16600b55600d81811c62ffffff16600c55601582901c63ffffffff169055602281901c6001600160401b0316600e55603781901c6001600160561b0316600f556040519091507f1d3b1e8b09cca9fd1fd9368ebd4a3eccf4c15846a1d369f733c51a0859bc715d90600090a150565b828054620002569062000320565b90600052602060002090601f0160209004810192826200027a5760008555620002c5565b82601f106200029557805160ff1916838001178555620002c5565b82800160010185558215620002c5579182015b82811115620002c5578251825591602001919060010190620002a8565b50620002d3929150620002d7565b5090565b5b80821115620002d35760008155600101620002d8565b6000602082840312156200030157600080fd5b81516001600160a01b03811681146200031957600080fd5b9392505050565b600181811c908216806200033557607f821691505b602082108114156200035757634e487b7160e01b600052602260045260246000fd5b50919050565b61308f806200036d6000396000f3fe6080604052600436106101fe5760003560e01c8063804c2cf81161011d578063a28835b6116100b0578063e985e9c51161007f578063ee90fe6d11610064578063ee90fe6d14610616578063f2fde38b1461062b578063f8ac93e81461064b57600080fd5b8063e985e9c5146105aa578063ee2679bc1461060057600080fd5b8063a28835b61461052a578063b88d4fde1461054a578063c87b56dd1461056a578063d37932411461058a57600080fd5b806395d89b41116100ec57806395d89b41146104ca5780639d1b464a146104df578063a22cb465146104f4578063a271e5251461051457600080fd5b8063804c2cf81461042b5780638546d0021461044d5780638ada6b0f1461046d5780638da5cb5b1461049f57600080fd5b806342842e0e1161019557806370a082311161016457806370a08231146103ba578063715018a6146103da5780637a1c4a56146103ef5780637e26fbca1461040b57600080fd5b806342842e0e1461035257806349faa4d41461037257806356c88f5f146103875780636352211e1461039a57600080fd5b806323b872dd116101d157806323b872dd146102c15780632a693210146102e15780633ec60e131461030f57806340c10f191461033f57600080fd5b806301ffc9a71461020357806306fdde0314610238578063081812fc1461025a578063095ea7b31461029f575b600080fd5b34801561020f57600080fd5b5061022361021e366004612b36565b610660565b60405190151581526020015b60405180910390f35b34801561024457600080fd5b5061024d610745565b60405161022f9190612d2a565b34801561026657600080fd5b5061027a610275366004612be7565b6107d7565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161022f565b3480156102ab57600080fd5b506102bf6102ba366004612aa6565b6108b6565b005b3480156102cd57600080fd5b506102bf6102dc366004612983565b610a43565b3480156102ed57600080fd5b506103016102fc366004612c00565b610ae4565b60405190815260200161022f565b34801561031b57600080fd5b5061022361032a366004612be7565b60009081526010602052604090205460ff1690565b6102bf61034d366004612aa6565b610cc6565b34801561035e57600080fd5b506102bf61036d366004612983565b610dd9565b34801561037e57600080fd5b50610301600881565b6102bf610395366004612926565b610df4565b3480156103a657600080fd5b5061027a6103b5366004612be7565b610f29565b3480156103c657600080fd5b506103016103d5366004612926565b610fdb565b3480156103e657600080fd5b506102bf6110a9565b3480156103fb57600080fd5b50610301674563918244f4000081565b34801561041757600080fd5b506102bf610426366004612926565b611136565b34801561043757600080fd5b50610440611277565b60405161022f9190612ce6565b34801561045957600080fd5b50610223610468366004612be7565b6113bf565b34801561047957600080fd5b5060115461027a90610100900473ffffffffffffffffffffffffffffffffffffffff1681565b3480156104ab57600080fd5b5060065473ffffffffffffffffffffffffffffffffffffffff1661027a565b3480156104d657600080fd5b5061024d61142e565b3480156104eb57600080fd5b5061030161143d565b34801561050057600080fd5b506102bf61050f366004612a73565b6114ae565b34801561052057600080fd5b50610301610e1081565b34801561053657600080fd5b506102bf610545366004612926565b6115c5565b34801561055657600080fd5b506102bf6105653660046129c4565b611688565b34801561057657600080fd5b5061024d610585366004612be7565b61172a565b34801561059657600080fd5b506102bf6105a5366004612ad2565b611891565b3480156105b657600080fd5b506102236105c536600461294a565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561060c57600080fd5b5061030160075481565b34801561062257600080fd5b506102bf611b68565b34801561063757600080fd5b506102bf610646366004612926565b611c16565b34801561065757600080fd5b506102bf611d46565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806106f357507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061073f57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60606000805461075490612ea5565b80601f016020809104026020016040519081016040528092919081815260200182805461078090612ea5565b80156107cd5780601f106107a2576101008083540402835291602001916107cd565b820191906000526020600020905b8154815290600101906020018083116107b057829003601f168201915b5050505050905090565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff1661088d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60006108c182610f29565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561097f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610884565b3373ffffffffffffffffffffffffffffffffffffffff821614806109a857506109a881336105c5565b610a34576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610884565b610a3e8383611dab565b505050565b610a4d3382611e4b565b610ad9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610884565b610a3e838383611fb7565b60008084846000818110610afa57610afa612f61565b909101357fff00000000000000000000000000000000000000000000000000000000000000169150507f6100000000000000000000000000000000000000000000000000000000000000811415610b5d57610b558387612dd2565b915050610cbe565b7f73000000000000000000000000000000000000000000000000000000000000007fff0000000000000000000000000000000000000000000000000000000000000082161415610bb157610b558387612e62565b7f6d000000000000000000000000000000000000000000000000000000000000007fff0000000000000000000000000000000000000000000000000000000000000082161415610c0557610b558387612e25565b7f64000000000000000000000000000000000000000000000000000000000000007fff0000000000000000000000000000000000000000000000000000000000000082161415610c5957610b558387612dea565b604080518082018252600a81527f696e76616c6964206f7000000000000000000000000000000000000000000000602082015290517f08c379a00000000000000000000000000000000000000000000000000000000081526108849190600401612d2a565b949350505050565b6000610cd061143d565b9050348111156040518060600160405280602681526020016130346026913990610d27576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108849190612d2a565b50610d31826113bf565b6040518060600160405280602481526020016130106024913990610d82576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108849190612d2a565b50610d8d838361221e565b610d956123e0565b80341115610a3e57336108fc610dab8334612e62565b6040518115909202916000818181858888f19350505050158015610dd3573d6000803e3d6000fd5b50505050565b610a3e83838360405180602001604052806000815250611688565b6000610dfe61143d565b9050348111156040518060600160405280602681526020016130346026913990610e55576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108849190612d2a565b5060005b6008811015610ede57610ea460088260088110610e7857610e78612f61565b015460009081526002602052604090205473ffffffffffffffffffffffffffffffffffffffff16151590565b15610eae57610ecc565b610ecc8360088360088110610ec557610ec5612f61565b015461221e565b80610ed681612ef9565b915050610e59565b50610ee76123e0565b80341115610f2557336108fc610efd8334612e62565b6040518115909202916000818181858888f19350505050158015610a3e573d6000803e3d6000fd5b5050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff168061073f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610884565b600073ffffffffffffffffffffffffffffffffffffffff8216611080576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610884565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b60065473ffffffffffffffffffffffffffffffffffffffff16331461112a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610884565b61113460006124fa565b565b60065473ffffffffffffffffffffffffffffffffffffffff1633146111b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610884565b60115460408051808201909152601981527f72656e646572657220757067726164652064697361626c65640000000000000060208201529060ff161561122a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108849190612d2a565b506011805473ffffffffffffffffffffffffffffffffffffffff909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b60408051600880825261012082019092526060916000919060208201610100803683370190505090506000805b600881101561131f576112c360088260088110610e7857610e78612f61565b156112cd5761130d565b600881600881106112e0576112e0612f61565b01548383815181106112f4576112f4612f61565b602090810291909101015261130a600183612dd2565b91505b8061131781612ef9565b9150506112a4565b508067ffffffffffffffff81111561133957611339612f90565b604051908082528060200260200182016040528015611362578160200160208202803683370190505b50925060005b818110156113b95782818151811061138257611382612f61565b602002602001015184828151811061139c5761139c612f61565b6020908102919091010152806113b181612ef9565b915050611368565b50505090565b6000805b60088110156114255782600882600881106113e0576113e0612f61565b0154141561141357505060009081526002602052604090205473ffffffffffffffffffffffffffffffffffffffff161590565b8061141d81612ef9565b9150506113c3565b50600092915050565b60606001805461075490612ea5565b600080610e106007546114509190612dd2565b905080421061146157600091505090565b600061146d4283612e62565b9050633b9aca00610e106114818284612e25565b61148b9190612dea565b61149d90674563918244f40000612e25565b6114a79190612dea565b9250505090565b73ffffffffffffffffffffffffffffffffffffffff821633141561152e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610884565b33600081815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60065473ffffffffffffffffffffffffffffffffffffffff163314611646576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610884565b60405173ffffffffffffffffffffffffffffffffffffffff8216904780156108fc02916000818181858888f19350505050158015610f25573d6000803e3d6000fd5b6116923383611e4b565b61171e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610884565b610dd384848484612571565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff1615156040518060400160405280600e81526020017f646f6573206e6f74206578697374000000000000000000000000000000000000815250906117c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108849190612d2a565b506011546040517fe9dc63750000000000000000000000000000000000000000000000000000000081523060048201526024810184905261010090910473ffffffffffffffffffffffffffffffffffffffff169063e9dc63759060440160006040518083038186803b15801561183757600080fd5b505afa15801561184b573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405261073f9190810190612b70565b60408051808201909152601e81527f6275726e206e756d62657273206d75737420626520646966666572656e740000602082015284821415611900576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108849190612d2a565b503361190b85610f29565b73ffffffffffffffffffffffffffffffffffffffff16146040518060400160405280602081526020017f6d757374206f776e206e756d62657220746f206f706572617465206f6e20697481525090611990576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108849190612d2a565b503361199b82610f29565b73ffffffffffffffffffffffffffffffffffffffff16146040518060400160405280602081526020017f6d757374206f776e206e756d62657220746f206f706572617465206f6e20697481525090611a20576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108849190612d2a565b506000611a2f85858585610ae4565b60008181526002602052604090205490915073ffffffffffffffffffffffffffffffffffffffff161515156040518060400160405280600e81526020017f616c7265616479206d696e74656400000000000000000000000000000000000081525090611ac8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108849190612d2a565b50611ad3868261221e565b600081815260106020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055611b1385612614565b611b1c82612614565b5060009384526010602052604080852080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009081169091559185529093208054909316909255505050565b60065473ffffffffffffffffffffffffffffffffffffffff163314611be9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610884565b601180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60065473ffffffffffffffffffffffffffffffffffffffff163314611c97576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610884565b73ffffffffffffffffffffffffffffffffffffffff8116611d3a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610884565b611d43816124fa565b50565b611d4e61143d565b6000146040518060600160405280602681526020016130346026913990611da2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108849190612d2a565b506111346123e0565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091558190611e0582610f29565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16611efc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610884565b6000611f0783610f29565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611f7657508373ffffffffffffffffffffffffffffffffffffffff16611f5e846107d7565b73ffffffffffffffffffffffffffffffffffffffff16145b80610cbe575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff16610cbe565b8273ffffffffffffffffffffffffffffffffffffffff16611fd782610f29565b73ffffffffffffffffffffffffffffffffffffffff161461207a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610884565b73ffffffffffffffffffffffffffffffffffffffff821661211c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610884565b612127600082611dab565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260036020526040812080546001929061215d908490612e62565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260408120805460019290612198908490612dd2565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b73ffffffffffffffffffffffffffffffffffffffff821661229b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610884565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1615612327576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610884565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260036020526040812080546001929061235d908490612dd2565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b4260075560006124606040517fffffffffffffffffffffffffffffffffffffffff00000000000000000000000033606090811b8216602084015241901b166034820152446048820152456068820152426088820152434060a882015260009060c8016040516020818303038152906040528051906020012060001c905090565b60ff81166008908155600582901c6103ff16600955613fff9082901c908116600a556203ffff16600b55600d81811c62ffffff16600c55601582901c63ffffffff169055602281901c67ffffffffffffffff16600e55603781901c6a3fffffffffffffffffffff16600f556040519091507f1d3b1e8b09cca9fd1fd9368ebd4a3eccf4c15846a1d369f733c51a0859bc715d90600090a150565b6006805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61257c848484611fb7565b612588848484846126e1565b610dd3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610884565b600061261f82610f29565b905061262c600083611dab565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600360205260408120805460019290612662908490612e62565b909155505060008281526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600073ffffffffffffffffffffffffffffffffffffffff84163b156128d5576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290612758903390899088908890600401612c9d565b602060405180830381600087803b15801561277257600080fd5b505af19250505080156127c0575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526127bd91810190612b53565b60015b61288a573d8080156127ee576040519150601f19603f3d011682016040523d82523d6000602084013e6127f3565b606091505b508051612882576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610884565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050610cbe565b506001610cbe565b60008083601f8401126128ef57600080fd5b50813567ffffffffffffffff81111561290757600080fd5b60208301915083602082850101111561291f57600080fd5b9250929050565b60006020828403121561293857600080fd5b813561294381612fbf565b9392505050565b6000806040838503121561295d57600080fd5b823561296881612fbf565b9150602083013561297881612fbf565b809150509250929050565b60008060006060848603121561299857600080fd5b83356129a381612fbf565b925060208401356129b381612fbf565b929592945050506040919091013590565b600080600080608085870312156129da57600080fd5b84356129e581612fbf565b935060208501356129f581612fbf565b925060408501359150606085013567ffffffffffffffff811115612a1857600080fd5b8501601f81018713612a2957600080fd5b8035612a3c612a3782612d8c565b612d3d565b818152886020838501011115612a5157600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60008060408385031215612a8657600080fd5b8235612a9181612fbf565b91506020830135801515811461297857600080fd5b60008060408385031215612ab957600080fd5b8235612ac481612fbf565b946020939093013593505050565b600080600080600060808688031215612aea57600080fd5b8535612af581612fbf565b945060208601359350604086013567ffffffffffffffff811115612b1857600080fd5b612b24888289016128dd565b96999598509660600135949350505050565b600060208284031215612b4857600080fd5b813561294381612fe1565b600060208284031215612b6557600080fd5b815161294381612fe1565b600060208284031215612b8257600080fd5b815167ffffffffffffffff811115612b9957600080fd5b8201601f81018413612baa57600080fd5b8051612bb8612a3782612d8c565b818152856020838501011115612bcd57600080fd5b612bde826020830160208601612e79565b95945050505050565b600060208284031215612bf957600080fd5b5035919050565b60008060008060608587031215612c1657600080fd5b84359350602085013567ffffffffffffffff811115612c3457600080fd5b612c40878288016128dd565b9598909750949560400135949350505050565b60008151808452612c6b816020860160208601612e79565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152612cdc6080830184612c53565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612d1e57835183529284019291840191600101612d02565b50909695505050505050565b6020815260006129436020830184612c53565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715612d8457612d84612f90565b604052919050565b600067ffffffffffffffff821115612da657612da6612f90565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b60008219821115612de557612de5612f32565b500190565b600082612e20577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612e5d57612e5d612f32565b500290565b600082821015612e7457612e74612f32565b500390565b60005b83811015612e94578181015183820152602001612e7c565b83811115610dd35750506000910152565b600181811c90821680612eb957607f821691505b60208210811415612ef3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612f2b57612f2b612f32565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff81168114611d4357600080fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611d4357600080fdfe6e756d626572206973206e6f7420666f722073616c6520696e207468697320626174636863757272656e7420707269636520697320686967686572207468616e206d73672e76616c7565a264697066735822122068d39faf074df1c6a1ece0e7aed18d92ce6d1091b1411368368a9f8d6289aab864736f6c634300080700330000000000000000000000005141c66d417880a227a37c8df4f40bf2416cc843

Deployed Bytecode

0x6080604052600436106101fe5760003560e01c8063804c2cf81161011d578063a28835b6116100b0578063e985e9c51161007f578063ee90fe6d11610064578063ee90fe6d14610616578063f2fde38b1461062b578063f8ac93e81461064b57600080fd5b8063e985e9c5146105aa578063ee2679bc1461060057600080fd5b8063a28835b61461052a578063b88d4fde1461054a578063c87b56dd1461056a578063d37932411461058a57600080fd5b806395d89b41116100ec57806395d89b41146104ca5780639d1b464a146104df578063a22cb465146104f4578063a271e5251461051457600080fd5b8063804c2cf81461042b5780638546d0021461044d5780638ada6b0f1461046d5780638da5cb5b1461049f57600080fd5b806342842e0e1161019557806370a082311161016457806370a08231146103ba578063715018a6146103da5780637a1c4a56146103ef5780637e26fbca1461040b57600080fd5b806342842e0e1461035257806349faa4d41461037257806356c88f5f146103875780636352211e1461039a57600080fd5b806323b872dd116101d157806323b872dd146102c15780632a693210146102e15780633ec60e131461030f57806340c10f191461033f57600080fd5b806301ffc9a71461020357806306fdde0314610238578063081812fc1461025a578063095ea7b31461029f575b600080fd5b34801561020f57600080fd5b5061022361021e366004612b36565b610660565b60405190151581526020015b60405180910390f35b34801561024457600080fd5b5061024d610745565b60405161022f9190612d2a565b34801561026657600080fd5b5061027a610275366004612be7565b6107d7565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161022f565b3480156102ab57600080fd5b506102bf6102ba366004612aa6565b6108b6565b005b3480156102cd57600080fd5b506102bf6102dc366004612983565b610a43565b3480156102ed57600080fd5b506103016102fc366004612c00565b610ae4565b60405190815260200161022f565b34801561031b57600080fd5b5061022361032a366004612be7565b60009081526010602052604090205460ff1690565b6102bf61034d366004612aa6565b610cc6565b34801561035e57600080fd5b506102bf61036d366004612983565b610dd9565b34801561037e57600080fd5b50610301600881565b6102bf610395366004612926565b610df4565b3480156103a657600080fd5b5061027a6103b5366004612be7565b610f29565b3480156103c657600080fd5b506103016103d5366004612926565b610fdb565b3480156103e657600080fd5b506102bf6110a9565b3480156103fb57600080fd5b50610301674563918244f4000081565b34801561041757600080fd5b506102bf610426366004612926565b611136565b34801561043757600080fd5b50610440611277565b60405161022f9190612ce6565b34801561045957600080fd5b50610223610468366004612be7565b6113bf565b34801561047957600080fd5b5060115461027a90610100900473ffffffffffffffffffffffffffffffffffffffff1681565b3480156104ab57600080fd5b5060065473ffffffffffffffffffffffffffffffffffffffff1661027a565b3480156104d657600080fd5b5061024d61142e565b3480156104eb57600080fd5b5061030161143d565b34801561050057600080fd5b506102bf61050f366004612a73565b6114ae565b34801561052057600080fd5b50610301610e1081565b34801561053657600080fd5b506102bf610545366004612926565b6115c5565b34801561055657600080fd5b506102bf6105653660046129c4565b611688565b34801561057657600080fd5b5061024d610585366004612be7565b61172a565b34801561059657600080fd5b506102bf6105a5366004612ad2565b611891565b3480156105b657600080fd5b506102236105c536600461294a565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561060c57600080fd5b5061030160075481565b34801561062257600080fd5b506102bf611b68565b34801561063757600080fd5b506102bf610646366004612926565b611c16565b34801561065757600080fd5b506102bf611d46565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806106f357507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061073f57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60606000805461075490612ea5565b80601f016020809104026020016040519081016040528092919081815260200182805461078090612ea5565b80156107cd5780601f106107a2576101008083540402835291602001916107cd565b820191906000526020600020905b8154815290600101906020018083116107b057829003601f168201915b5050505050905090565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff1661088d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60006108c182610f29565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561097f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610884565b3373ffffffffffffffffffffffffffffffffffffffff821614806109a857506109a881336105c5565b610a34576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610884565b610a3e8383611dab565b505050565b610a4d3382611e4b565b610ad9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610884565b610a3e838383611fb7565b60008084846000818110610afa57610afa612f61565b909101357fff00000000000000000000000000000000000000000000000000000000000000169150507f6100000000000000000000000000000000000000000000000000000000000000811415610b5d57610b558387612dd2565b915050610cbe565b7f73000000000000000000000000000000000000000000000000000000000000007fff0000000000000000000000000000000000000000000000000000000000000082161415610bb157610b558387612e62565b7f6d000000000000000000000000000000000000000000000000000000000000007fff0000000000000000000000000000000000000000000000000000000000000082161415610c0557610b558387612e25565b7f64000000000000000000000000000000000000000000000000000000000000007fff0000000000000000000000000000000000000000000000000000000000000082161415610c5957610b558387612dea565b604080518082018252600a81527f696e76616c6964206f7000000000000000000000000000000000000000000000602082015290517f08c379a00000000000000000000000000000000000000000000000000000000081526108849190600401612d2a565b949350505050565b6000610cd061143d565b9050348111156040518060600160405280602681526020016130346026913990610d27576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108849190612d2a565b50610d31826113bf565b6040518060600160405280602481526020016130106024913990610d82576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108849190612d2a565b50610d8d838361221e565b610d956123e0565b80341115610a3e57336108fc610dab8334612e62565b6040518115909202916000818181858888f19350505050158015610dd3573d6000803e3d6000fd5b50505050565b610a3e83838360405180602001604052806000815250611688565b6000610dfe61143d565b9050348111156040518060600160405280602681526020016130346026913990610e55576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108849190612d2a565b5060005b6008811015610ede57610ea460088260088110610e7857610e78612f61565b015460009081526002602052604090205473ffffffffffffffffffffffffffffffffffffffff16151590565b15610eae57610ecc565b610ecc8360088360088110610ec557610ec5612f61565b015461221e565b80610ed681612ef9565b915050610e59565b50610ee76123e0565b80341115610f2557336108fc610efd8334612e62565b6040518115909202916000818181858888f19350505050158015610a3e573d6000803e3d6000fd5b5050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff168061073f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610884565b600073ffffffffffffffffffffffffffffffffffffffff8216611080576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610884565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b60065473ffffffffffffffffffffffffffffffffffffffff16331461112a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610884565b61113460006124fa565b565b60065473ffffffffffffffffffffffffffffffffffffffff1633146111b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610884565b60115460408051808201909152601981527f72656e646572657220757067726164652064697361626c65640000000000000060208201529060ff161561122a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108849190612d2a565b506011805473ffffffffffffffffffffffffffffffffffffffff909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b60408051600880825261012082019092526060916000919060208201610100803683370190505090506000805b600881101561131f576112c360088260088110610e7857610e78612f61565b156112cd5761130d565b600881600881106112e0576112e0612f61565b01548383815181106112f4576112f4612f61565b602090810291909101015261130a600183612dd2565b91505b8061131781612ef9565b9150506112a4565b508067ffffffffffffffff81111561133957611339612f90565b604051908082528060200260200182016040528015611362578160200160208202803683370190505b50925060005b818110156113b95782818151811061138257611382612f61565b602002602001015184828151811061139c5761139c612f61565b6020908102919091010152806113b181612ef9565b915050611368565b50505090565b6000805b60088110156114255782600882600881106113e0576113e0612f61565b0154141561141357505060009081526002602052604090205473ffffffffffffffffffffffffffffffffffffffff161590565b8061141d81612ef9565b9150506113c3565b50600092915050565b60606001805461075490612ea5565b600080610e106007546114509190612dd2565b905080421061146157600091505090565b600061146d4283612e62565b9050633b9aca00610e106114818284612e25565b61148b9190612dea565b61149d90674563918244f40000612e25565b6114a79190612dea565b9250505090565b73ffffffffffffffffffffffffffffffffffffffff821633141561152e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610884565b33600081815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60065473ffffffffffffffffffffffffffffffffffffffff163314611646576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610884565b60405173ffffffffffffffffffffffffffffffffffffffff8216904780156108fc02916000818181858888f19350505050158015610f25573d6000803e3d6000fd5b6116923383611e4b565b61171e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610884565b610dd384848484612571565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff1615156040518060400160405280600e81526020017f646f6573206e6f74206578697374000000000000000000000000000000000000815250906117c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108849190612d2a565b506011546040517fe9dc63750000000000000000000000000000000000000000000000000000000081523060048201526024810184905261010090910473ffffffffffffffffffffffffffffffffffffffff169063e9dc63759060440160006040518083038186803b15801561183757600080fd5b505afa15801561184b573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405261073f9190810190612b70565b60408051808201909152601e81527f6275726e206e756d62657273206d75737420626520646966666572656e740000602082015284821415611900576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108849190612d2a565b503361190b85610f29565b73ffffffffffffffffffffffffffffffffffffffff16146040518060400160405280602081526020017f6d757374206f776e206e756d62657220746f206f706572617465206f6e20697481525090611990576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108849190612d2a565b503361199b82610f29565b73ffffffffffffffffffffffffffffffffffffffff16146040518060400160405280602081526020017f6d757374206f776e206e756d62657220746f206f706572617465206f6e20697481525090611a20576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108849190612d2a565b506000611a2f85858585610ae4565b60008181526002602052604090205490915073ffffffffffffffffffffffffffffffffffffffff161515156040518060400160405280600e81526020017f616c7265616479206d696e74656400000000000000000000000000000000000081525090611ac8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108849190612d2a565b50611ad3868261221e565b600081815260106020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055611b1385612614565b611b1c82612614565b5060009384526010602052604080852080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009081169091559185529093208054909316909255505050565b60065473ffffffffffffffffffffffffffffffffffffffff163314611be9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610884565b601180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60065473ffffffffffffffffffffffffffffffffffffffff163314611c97576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610884565b73ffffffffffffffffffffffffffffffffffffffff8116611d3a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610884565b611d43816124fa565b50565b611d4e61143d565b6000146040518060600160405280602681526020016130346026913990611da2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108849190612d2a565b506111346123e0565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091558190611e0582610f29565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16611efc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610884565b6000611f0783610f29565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611f7657508373ffffffffffffffffffffffffffffffffffffffff16611f5e846107d7565b73ffffffffffffffffffffffffffffffffffffffff16145b80610cbe575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff16610cbe565b8273ffffffffffffffffffffffffffffffffffffffff16611fd782610f29565b73ffffffffffffffffffffffffffffffffffffffff161461207a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610884565b73ffffffffffffffffffffffffffffffffffffffff821661211c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610884565b612127600082611dab565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260036020526040812080546001929061215d908490612e62565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260408120805460019290612198908490612dd2565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b73ffffffffffffffffffffffffffffffffffffffff821661229b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610884565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1615612327576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610884565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260036020526040812080546001929061235d908490612dd2565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b4260075560006124606040517fffffffffffffffffffffffffffffffffffffffff00000000000000000000000033606090811b8216602084015241901b166034820152446048820152456068820152426088820152434060a882015260009060c8016040516020818303038152906040528051906020012060001c905090565b60ff81166008908155600582901c6103ff16600955613fff9082901c908116600a556203ffff16600b55600d81811c62ffffff16600c55601582901c63ffffffff169055602281901c67ffffffffffffffff16600e55603781901c6a3fffffffffffffffffffff16600f556040519091507f1d3b1e8b09cca9fd1fd9368ebd4a3eccf4c15846a1d369f733c51a0859bc715d90600090a150565b6006805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61257c848484611fb7565b612588848484846126e1565b610dd3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610884565b600061261f82610f29565b905061262c600083611dab565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600360205260408120805460019290612662908490612e62565b909155505060008281526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600073ffffffffffffffffffffffffffffffffffffffff84163b156128d5576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290612758903390899088908890600401612c9d565b602060405180830381600087803b15801561277257600080fd5b505af19250505080156127c0575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526127bd91810190612b53565b60015b61288a573d8080156127ee576040519150601f19603f3d011682016040523d82523d6000602084013e6127f3565b606091505b508051612882576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610884565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050610cbe565b506001610cbe565b60008083601f8401126128ef57600080fd5b50813567ffffffffffffffff81111561290757600080fd5b60208301915083602082850101111561291f57600080fd5b9250929050565b60006020828403121561293857600080fd5b813561294381612fbf565b9392505050565b6000806040838503121561295d57600080fd5b823561296881612fbf565b9150602083013561297881612fbf565b809150509250929050565b60008060006060848603121561299857600080fd5b83356129a381612fbf565b925060208401356129b381612fbf565b929592945050506040919091013590565b600080600080608085870312156129da57600080fd5b84356129e581612fbf565b935060208501356129f581612fbf565b925060408501359150606085013567ffffffffffffffff811115612a1857600080fd5b8501601f81018713612a2957600080fd5b8035612a3c612a3782612d8c565b612d3d565b818152886020838501011115612a5157600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60008060408385031215612a8657600080fd5b8235612a9181612fbf565b91506020830135801515811461297857600080fd5b60008060408385031215612ab957600080fd5b8235612ac481612fbf565b946020939093013593505050565b600080600080600060808688031215612aea57600080fd5b8535612af581612fbf565b945060208601359350604086013567ffffffffffffffff811115612b1857600080fd5b612b24888289016128dd565b96999598509660600135949350505050565b600060208284031215612b4857600080fd5b813561294381612fe1565b600060208284031215612b6557600080fd5b815161294381612fe1565b600060208284031215612b8257600080fd5b815167ffffffffffffffff811115612b9957600080fd5b8201601f81018413612baa57600080fd5b8051612bb8612a3782612d8c565b818152856020838501011115612bcd57600080fd5b612bde826020830160208601612e79565b95945050505050565b600060208284031215612bf957600080fd5b5035919050565b60008060008060608587031215612c1657600080fd5b84359350602085013567ffffffffffffffff811115612c3457600080fd5b612c40878288016128dd565b9598909750949560400135949350505050565b60008151808452612c6b816020860160208601612e79565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152612cdc6080830184612c53565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612d1e57835183529284019291840191600101612d02565b50909695505050505050565b6020815260006129436020830184612c53565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715612d8457612d84612f90565b604052919050565b600067ffffffffffffffff821115612da657612da6612f90565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b60008219821115612de557612de5612f32565b500190565b600082612e20577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612e5d57612e5d612f32565b500290565b600082821015612e7457612e74612f32565b500390565b60005b83811015612e94578181015183820152602001612e7c565b83811115610dd35750506000910152565b600181811c90821680612eb957607f821691505b60208210811415612ef3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612f2b57612f2b612f32565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff81168114611d4357600080fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611d4357600080fdfe6e756d626572206973206e6f7420666f722073616c6520696e207468697320626174636863757272656e7420707269636520697320686967686572207468616e206d73672e76616c7565a264697066735822122068d39faf074df1c6a1ece0e7aed18d92ce6d1091b1411368368a9f8d6289aab864736f6c63430008070033

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

0000000000000000000000005141c66d417880a227a37c8df4f40bf2416cc843

-----Decoded View---------------
Arg [0] : _renderer (address): 0x5141c66D417880A227a37c8Df4f40Bf2416CC843

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000005141c66d417880a227a37c8df4f40bf2416cc843


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.