ETH Price: $2,918.45 (+3.49%)
 

Overview

Max Total Supply

183

Holders

90

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
bijani.eth
0x210895826ecc9e6f1f6fdbcc46a2c161bad6ca17
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
ICE64

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : ICE64.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.14;

/*


        .++++++    .-=+**++=:  -+++++++++++-      .-=+**.     .++++:      
         :@@@@. .+%@#++++#@@@@#=*@@@%++*@@@*   :*@@%+=-:      +@@@+       
          %@@# +@@+        :#@@#.@@@=    :#+ .#@@*.          -@@@+        
          #@@#*@@=           *@# @@@@-      -@@@*+*+=-      :@@@= =       
          #@@@@@@             += @@@@@@%%%=:@@@@*++#@@@#:  :@@@--%#       
          #@@@@@@                @@@= -*@@=#@@@     .*@@@--@@# +@@#   =   
          #@@@@@@-               @@@=    :.@@@%       #@@@@@+..+@@%-*@@   
          #@@#%@@@-           .%@@@@=      #@@@:      -@@@@@@@@@@@@@@@@   
          %@@# #@@@#-       :+@%-@@@=     :%@@@%.     *@@+     +@@%       
         :@@@@. :*@@@@%###%@@#= +@@@#++#%@@@**@@@#=-=%@%-     .@@@@-      
        .*****+    :=*###*+-.  -************:  -*###*=:      :******=

        O W N E R S H I P   C O N T R A C T

*/

import {Owned} from "@rari-capital/solmate/src/auth/Owned.sol";
import {ERC1155} from "@rari-capital/solmate/src/tokens/ERC1155.sol";

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import {IICE64Renderer} from "./interfaces/IICE64Renderer.sol";
import {IICE64} from "./interfaces/IICE64.sol";

/** 
@title ICE64, a photo collection by Sam King
@author Sam King (samkingstudio.eth)
@notice This contract stores token ownership, and allows minting using the ERC1155 standard.
        Collectors can purchase 721-like photos as original 1 of 1's, but also collect
        smaller on-chain versions as editions.

        Code is licensed as MIT.
        https://spdx.org/licenses/MIT.html

        Token metadata and images licensed as CC BY-NC 4.0
        https://creativecommons.org/licenses/by-nc/4.0/
        You are free to:
            - Share: copy and redistribute the material in any medium or format
            - Adapt: remix, transform, and build upon the material
        Under the following terms:
            - Attribution: You must give appropriate credit, provide a link to the license,
            and indicate if changes were made. You may do so in any reasonable manner, but not
            in any way that suggests the licensor endorses you or your use.
            - NonCommercial: You may not use the material for commercial purposes
            - No additional restrictions: You may not apply legal terms or technological measures
            that legally restrict others from doing anything the license permits.

*/
contract ICE64 is ERC1155, Owned, IICE64 {
    /* ------------------------------------------------------------------------
                                   S T O R A G E
    ------------------------------------------------------------------------ */

    /// @dev Renderer contract for on-chain metadata
    IICE64Renderer public metadata;

    /// @dev Roots project contract address for owner claims
    IERC721 public roots;

    /// @dev uint256 to bool map for whether a Roots tokenId has used a free claim
    uint256 private _rootsClaims;

    /// @dev Token constants
    uint256 private constant _maxTokenId = 16;
    uint256 private constant _editionStartId = 100;
    uint256 private constant _maxEditions = 64;

    /// @dev Token prices
    uint256 public constant priceOriginal = 0.32 ether;
    uint256 public constant priceEdition = 0.04 ether;

    /// @dev Photo id (not token id) to packed uint256 with originals sold, editions sold,
    ///      and whether the original has claimed the reserved edition or not.
    ///      See `_encodeSalesData` and `_decodeSalesData`.
    mapping(uint256 => uint256) private _salesCount;

    /// @dev Store info about token royalties
    struct RoyaltyInfo {
        address receiver;
        uint24 amount;
    }

    RoyaltyInfo private _royaltyInfo;

    /* ------------------------------------------------------------------------
                                    E V E N T S
    ------------------------------------------------------------------------ */

    event ICE64Emerges();
    event SetMetadataAddress(address indexed metadata);
    event RootsClaim(uint256 indexed rootsId, uint256 indexed originalId, uint256 editionId);

    /* ------------------------------------------------------------------------
                                    E R R O R S
    ------------------------------------------------------------------------ */

    error IncorrectEthAmount();
    error InvalidToken();
    error AlreadyOwnerOfEdition();
    error SoldOut();
    error EditionForOriginalStillReserved();
    error NotOwnerOfRootsPhoto();
    error RootsPhotoAlreadyUsedClaim();
    error NotOwner();
    error NoMetadataYet();
    error PaymentFailed();

    /* ------------------------------------------------------------------------
                                 M O D I F I E R S
    ------------------------------------------------------------------------ */

    /// @dev Limits purchases etc to a certain range of token ids
    /// @param id The id of the token to check
    modifier onlyValidToken(uint256 id) {
        if (id == 0 || id > _maxTokenId) revert InvalidToken();
        _;
    }

    /// @dev Checks the payment amount matches exactly (no more, no less)
    /// @param cost The amount that should be checked against
    modifier onlyCorrectPayment(uint256 cost) {
        if (msg.value != cost) revert IncorrectEthAmount();
        _;
    }

    /// @dev Require the metadata address to be set
    modifier onlyWithMetadata() {
        if (address(metadata) == address(0)) revert NoMetadataYet();
        _;
    }

    /* ------------------------------------------------------------------------
                                      I N I T
    ------------------------------------------------------------------------ */

    /// @param owner The owner of the contract upon deployment
    /// @param roots_ The Roots collection address
    constructor(
        address owner,
        address royalties,
        IERC721 roots_
    ) ERC1155() Owned(owner) {
        emit ICE64Emerges();
        // Set Roots contract address
        roots = roots_;
        // Set the initial storage value to non-zero to save gas costs for first roots claimer
        _rootsClaims = _setBool(_rootsClaims, 0, true);
        // Set the default royalties to 6.4% for the owner
        _royaltyInfo = RoyaltyInfo(royalties, 640);
    }

    /// @notice Sets the rendering/metadata contract address
    /// @dev The metadata address handles on-chain images and construction of baseURI for originals
    /// @param metadataAddr The address of the metadata contract
    function setMetadata(IICE64Renderer metadataAddr) external onlyOwner {
        metadata = metadataAddr;
        emit SetMetadataAddress(address(metadataAddr));
    }

    /* ------------------------------------------------------------------------
                                P U R C H A S I N G
    ------------------------------------------------------------------------ */

    /// @notice Purchase an original 1/1 photo and the included on-chain edition
    /// @dev Mints a 1/1 and an on-chain edition of the same token, but only if the buyer
    ///      doesn't already own an edition
    /// @param id The id of the photo to purchase
    function purchaseOriginal(uint256 id)
        external
        payable
        onlyValidToken(id)
        onlyCorrectPayment(priceOriginal)
    {
        (uint256 originalsSold, , ) = _decodeSalesCount(_salesCount[id]);
        if (originalsSold > 0) revert SoldOut();

        uint256 editionId = getEditionTokenId(id);
        if (balanceOf[msg.sender][editionId] > 0) {
            // Already owner of an edition so just mint an original and mark the
            // reserved edition as claimed so someone else can get an edition
            _mint(msg.sender, id, 1, "");
            _addSalesCount(id, 1, 0, true);
        } else {
            // Else mint both the original and the reserved edition
            /// @dev We could use `_batchMint` here, but there are issues with those tokens
            ///      not being picked up by certain marketplaces at the time of deployment.
            ///      Gas should be the same since we're only updating one of each token anyway.
            _mint(msg.sender, id, 1, "");
            _mint(msg.sender, editionId, 1, "");
            _addSalesCount(id, 1, 1, true);
        }
    }

    /// @notice Purchase an edition of a photo, rendered as a 64x64px on-chain SVG
    /// @dev Editions are sold out when `_maxEditions` editions have been minted, less one reserved
    ///      token for the holder of an original photo
    /// @param id The id of the edition to purchase (use original photo's id: `getEditionId(id)`)
    function purchaseEdition(uint256 id)
        external
        payable
        onlyValidToken(id)
        onlyCorrectPayment(priceEdition)
    {
        _mintEdition(id);
    }

    /// @notice Claim a free edition (whill supply lasts) if you hold a Roots photo. Check if the
    ///         Roots photo has been claimed with `hasEditionBeenClaimedForRootsPhoto`.
    /// @dev Requires holding a Roots photo that hasn't been previously used to claim an edition
    /// @param id The id of the photo to claim an edition for (use original photo's id)
    /// @param rootsId The id of the Roots photo to use when claiming
    function claimEditionAsRootsHolder(uint256 id, uint256 rootsId) external onlyValidToken(id) {
        if (roots.ownerOf(rootsId) != msg.sender) revert NotOwnerOfRootsPhoto();
        if (_getBool(_rootsClaims, rootsId)) revert RootsPhotoAlreadyUsedClaim();
        _mintEdition(id);
        _rootsClaims = _setBool(_rootsClaims, rootsId, true);
        emit RootsClaim(rootsId, id, getEditionTokenId(id));
    }

    /// @dev Internal function to mint an edition, checking if there's still supply
    /// @param id The id of the photo to mint an edition for (use original photo's id)
    function _mintEdition(uint256 id) internal {
        uint256 editionId = getEditionTokenId(id);
        (, uint256 editionsSold, bool reservedEditionClaimed) = _decodeSalesCount(_salesCount[id]);
        uint256 editionsAvailable = reservedEditionClaimed ? _maxEditions : _maxEditions - 1;
        if (editionsSold == editionsAvailable) {
            if (reservedEditionClaimed) {
                revert SoldOut();
            } else {
                revert EditionForOriginalStillReserved();
            }
        }
        if (balanceOf[msg.sender][editionId] > 0) revert AlreadyOwnerOfEdition();
        _mint(msg.sender, editionId, 1, "");
        _addSalesCount(id, 0, 1, reservedEditionClaimed);
    }

    /// @dev Increments sales data for a given id
    /// @param id The id of the photo to add sales data for
    /// @param originalsSold_ The number of originals sold for this given call
    /// @param editionsSold_ The number of editions sold for this given call
    /// @param reservedEditionClaimed_ Whether the original photo has claimed the reserved edition
    function _addSalesCount(
        uint256 id,
        uint256 originalsSold_,
        uint256 editionsSold_,
        bool reservedEditionClaimed_
    ) internal {
        (uint256 originalsSold, uint256 editionsSold, ) = _decodeSalesCount(_salesCount[id]);
        _salesCount[id] = _encodeSalesCount(
            originalsSold + originalsSold_,
            editionsSold + editionsSold_,
            reservedEditionClaimed_
        );
    }

    /// @dev Encodes sales data into a single uint256 for cheaper storage updates
    /// @param originalsSoldCount The number of originals sold
    /// @param editionsSoldCount The number of editions sold
    /// @param reservedEditionClaimed Whether the original photo has claimed the reserved edition
    /// @return salesCount A packed uint256
    function _encodeSalesCount(
        uint256 originalsSoldCount,
        uint256 editionsSoldCount,
        bool reservedEditionClaimed
    ) internal pure returns (uint256 salesCount) {
        salesCount = salesCount | (originalsSoldCount << 0);
        salesCount = salesCount | (editionsSoldCount << 8);
        salesCount = reservedEditionClaimed ? salesCount | (1 << 16) : salesCount | (0 << 16);
    }

    /// @dev Decodes sales data from a single uint256
    /// @param salesCount The packed uint256 to decode
    /// @return originalsSoldCount The number of originals sold
    /// @return editionsSoldCount The number of editions sold
    /// @return reservedEditionClaimed Whether the original photo has claimed the reserved edition
    function _decodeSalesCount(uint256 salesCount)
        internal
        pure
        returns (
            uint256 originalsSoldCount,
            uint256 editionsSoldCount,
            bool reservedEditionClaimed
        )
    {
        originalsSoldCount = uint8(salesCount >> 0);
        editionsSoldCount = uint8(salesCount >> 8);
        reservedEditionClaimed = uint8(salesCount >> 16) > 0;
    }

    /* ------------------------------------------------------------------------
                                 O R I G I N A L S
    ------------------------------------------------------------------------ */

    /// @notice Gets the original token id from an edition token id
    /// @param editionId The token id of the edition
    function getOriginalTokenId(uint256 editionId) public pure returns (uint256) {
        return editionId - _editionStartId;
    }

    /// @notice Checks if an original photo has been sold
    /// @param id The id of the photo
    function getOriginalSold(uint256 id) external view returns (bool) {
        (uint256 originalsSold, , ) = _decodeSalesCount(_salesCount[id]);
        return originalsSold > 0;
    }

    /* ------------------------------------------------------------------------
                                  E D I T I O N S
    ------------------------------------------------------------------------ */

    /// @notice Gets the edition token id from the original token id
    /// @param id The id of the original photo
    function getEditionTokenId(uint256 id) public pure returns (uint256) {
        return id + _editionStartId;
    }

    /// @notice Gets the total number of editions that have been sold for a photo
    /// @param id The id of the photo to get the number of editions sold
    function getEditionsSold(uint256 id) external view returns (uint256) {
        (, uint256 editionsSold, ) = _decodeSalesCount(_salesCount[id]);
        return editionsSold;
    }

    /// @notice Gets the maximum number of editions per photo
    function getMaxEditions() external pure returns (uint256) {
        return _maxEditions;
    }

    /// @notice Checks if a token id is an original or an edition
    /// @param id The token id to check
    function isEdition(uint256 id) public pure returns (bool) {
        return id > _editionStartId;
    }

    /// @notice Check if a particular Roots photo has been used to claim an edition
    /// @param rootsId The id of the Roots photo
    function hasEditionBeenClaimedForRootsPhoto(uint256 rootsId) external view returns (bool) {
        return _getBool(_rootsClaims, rootsId);
    }

    /* ------------------------------------------------------------------------
                                  E R C - 1 1 5 5
    ------------------------------------------------------------------------ */

    /// @notice Burn your token :(
    /// @param id The id of the token you want to burn
    function burn(uint256 id) external {
        if (balanceOf[msg.sender][id] == 0) revert NotOwner();
        _burn(msg.sender, id, 1);
    }

    /// @notice Standard URI function to get the token metadata
    /// @param id The token id to get metadata for
    function uri(uint256 id) public view virtual override onlyWithMetadata returns (string memory) {
        return metadata.tokenURI(id);
    }

    /* ------------------------------------------------------------------------
                                  W I T H D R A W
    ------------------------------------------------------------------------ */

    /// @notice Withdraw the contracts ETH balance to the admin wallet
    function withdrawBalance() external {
        (bool success, ) = payable(owner).call{value: address(this).balance}("");
        if (!success) revert PaymentFailed();
    }

    /// @notice Withdraw all tokens for a given contract to the admin wallet
    function withdrawToken(IERC20 tokenAddress) external {
        tokenAddress.transfer(owner, tokenAddress.balanceOf(address(this)));
    }

    /* ------------------------------------------------------------------------
                                 R O Y A L T I E S
    ------------------------------------------------------------------------ */

    /// @notice EIP-2981 royalty standard for on-chain royalties
    function royaltyInfo(uint256, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount)
    {
        receiver = _royaltyInfo.receiver;
        royaltyAmount = (salePrice * _royaltyInfo.amount) / 10_000;
    }

    /// @notice Update royalty information
    /// @param receiver The receiver of royalty payments
    /// @param amount The royalty percentage with two decimals (10000 = 100)
    function setRoyaltyInfo(address receiver, uint256 amount) external onlyOwner {
        _royaltyInfo = RoyaltyInfo(receiver, uint24(amount));
    }

    /// @dev Extend `supportsInterface` to suppoer EIP-2981
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // EIP-2981 = bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a
        return interfaceId == 0x2a55205a || super.supportsInterface(interfaceId);
    }

    /* ------------------------------------------------------------------------
                                M I S C   U T I L S
    ------------------------------------------------------------------------ */

    /// @dev Internal function to store up to 256 bools in a single uint256
    /// @param packed The uint256 that contains the packed booleans
    /// @param idx The index of the boolean to set
    /// @param value Whether the bool is true or false
    /// @return packed The updated packed uint256
    function _setBool(
        uint256 packed,
        uint256 idx,
        bool value
    ) internal pure returns (uint256) {
        if (value) return packed | (uint256(1) << idx);
        return packed & ~(uint256(1) << idx);
    }

    /// @dev Internal function to get a specific boolean from a packed uint256
    /// @param packed The uint256 that contains the packed booleans
    /// @param idx The index of the boolean to get
    /// @return value If the value is set to true or false
    function _getBool(uint256 packed, uint256 idx) internal pure returns (bool) {
        uint256 flag = (packed >> idx) & uint256(1);
        return flag == 1;
    }
}

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

/// @notice Simple single owner authorization mixin.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/auth/Owned.sol)
abstract contract Owned {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event OwnerUpdated(address indexed user, address indexed newOwner);

    /*//////////////////////////////////////////////////////////////
                            OWNERSHIP STORAGE
    //////////////////////////////////////////////////////////////*/

    address public owner;

    modifier onlyOwner() virtual {
        require(msg.sender == owner, "UNAUTHORIZED");

        _;
    }

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

    constructor(address _owner) {
        owner = _owner;

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

    /*//////////////////////////////////////////////////////////////
                             OWNERSHIP LOGIC
    //////////////////////////////////////////////////////////////*/

    function setOwner(address newOwner) public virtual onlyOwner {
        owner = newOwner;

        emit OwnerUpdated(msg.sender, newOwner);
    }
}

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

/// @notice Minimalist and gas efficient standard ERC1155 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC1155.sol)
abstract contract ERC1155 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event TransferSingle(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256 id,
        uint256 amount
    );

    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] amounts
    );

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

    event URI(string value, uint256 indexed id);

    /*//////////////////////////////////////////////////////////////
                             ERC1155 STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(address => mapping(uint256 => uint256)) public balanceOf;

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

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

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

    /*//////////////////////////////////////////////////////////////
                              ERC1155 LOGIC
    //////////////////////////////////////////////////////////////*/

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

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

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) public virtual {
        require(msg.sender == from || isApprovedForAll[from][msg.sender], "NOT_AUTHORIZED");

        balanceOf[from][id] -= amount;
        balanceOf[to][id] += amount;

        emit TransferSingle(msg.sender, from, to, id, amount);

        require(
            to.code.length == 0
                ? to != address(0)
                : ERC1155TokenReceiver(to).onERC1155Received(msg.sender, from, id, amount, data) ==
                    ERC1155TokenReceiver.onERC1155Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) public virtual {
        require(ids.length == amounts.length, "LENGTH_MISMATCH");

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

        // Storing these outside the loop saves ~15 gas per iteration.
        uint256 id;
        uint256 amount;

        for (uint256 i = 0; i < ids.length; ) {
            id = ids[i];
            amount = amounts[i];

            balanceOf[from][id] -= amount;
            balanceOf[to][id] += amount;

            // An array can't have a total length
            // larger than the max uint256 value.
            unchecked {
                ++i;
            }
        }

        emit TransferBatch(msg.sender, from, to, ids, amounts);

        require(
            to.code.length == 0
                ? to != address(0)
                : ERC1155TokenReceiver(to).onERC1155BatchReceived(msg.sender, from, ids, amounts, data) ==
                    ERC1155TokenReceiver.onERC1155BatchReceived.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function balanceOfBatch(address[] calldata owners, uint256[] calldata ids)
        public
        view
        virtual
        returns (uint256[] memory balances)
    {
        require(owners.length == ids.length, "LENGTH_MISMATCH");

        balances = new uint256[](owners.length);

        // Unchecked because the only math done is incrementing
        // the array index counter which cannot possibly overflow.
        unchecked {
            for (uint256 i = 0; i < owners.length; ++i) {
                balances[i] = balanceOf[owners[i]][ids[i]];
            }
        }
    }

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

    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0xd9b67a26 || // ERC165 Interface ID for ERC1155
            interfaceId == 0x0e89341c; // ERC165 Interface ID for ERC1155MetadataURI
    }

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

    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        balanceOf[to][id] += amount;

        emit TransferSingle(msg.sender, address(0), to, id, amount);

        require(
            to.code.length == 0
                ? to != address(0)
                : ERC1155TokenReceiver(to).onERC1155Received(msg.sender, address(0), id, amount, data) ==
                    ERC1155TokenReceiver.onERC1155Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function _batchMint(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        uint256 idsLength = ids.length; // Saves MLOADs.

        require(idsLength == amounts.length, "LENGTH_MISMATCH");

        for (uint256 i = 0; i < idsLength; ) {
            balanceOf[to][ids[i]] += amounts[i];

            // An array can't have a total length
            // larger than the max uint256 value.
            unchecked {
                ++i;
            }
        }

        emit TransferBatch(msg.sender, address(0), to, ids, amounts);

        require(
            to.code.length == 0
                ? to != address(0)
                : ERC1155TokenReceiver(to).onERC1155BatchReceived(msg.sender, address(0), ids, amounts, data) ==
                    ERC1155TokenReceiver.onERC1155BatchReceived.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function _batchBurn(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        uint256 idsLength = ids.length; // Saves MLOADs.

        require(idsLength == amounts.length, "LENGTH_MISMATCH");

        for (uint256 i = 0; i < idsLength; ) {
            balanceOf[from][ids[i]] -= amounts[i];

            // An array can't have a total length
            // larger than the max uint256 value.
            unchecked {
                ++i;
            }
        }

        emit TransferBatch(msg.sender, from, address(0), ids, amounts);
    }

    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        balanceOf[from][id] -= amount;

        emit TransferSingle(msg.sender, from, address(0), id, amount);
    }
}

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

    function onERC1155BatchReceived(
        address,
        address,
        uint256[] calldata,
        uint256[] calldata,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC1155TokenReceiver.onERC1155BatchReceived.selector;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 5 of 8 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

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

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

File 6 of 8 : IICE64Renderer.sol
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.14;

interface IICE64Renderer {
    function drawSVGToString(bytes memory data) external view returns (string memory);

    function drawSVGToBytes(bytes memory data) external view returns (bytes memory);

    function tokenURI(uint256 id) external view returns (string memory);
}

File 7 of 8 : IICE64.sol
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.14;

interface IICE64 {
    function getOriginalTokenId(uint256 editionId) external pure returns (uint256);

    function getEditionTokenId(uint256 id) external pure returns (uint256);

    function getMaxEditions() external view returns (uint256);

    function isEdition(uint256 id) external pure returns (bool);
}

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"royalties","type":"address"},{"internalType":"contract IERC721","name":"roots_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyOwnerOfEdition","type":"error"},{"inputs":[],"name":"EditionForOriginalStillReserved","type":"error"},{"inputs":[],"name":"IncorrectEthAmount","type":"error"},{"inputs":[],"name":"InvalidToken","type":"error"},{"inputs":[],"name":"NoMetadataYet","type":"error"},{"inputs":[],"name":"NotOwner","type":"error"},{"inputs":[],"name":"NotOwnerOfRootsPhoto","type":"error"},{"inputs":[],"name":"PaymentFailed","type":"error"},{"inputs":[],"name":"RootsPhotoAlreadyUsedClaim","type":"error"},{"inputs":[],"name":"SoldOut","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[],"name":"ICE64Emerges","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"rootsId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"originalId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"editionId","type":"uint256"}],"name":"RootsClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"metadata","type":"address"}],"name":"SetMetadataAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"owners","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"balances","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"rootsId","type":"uint256"}],"name":"claimEditionAsRootsHolder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getEditionTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getEditionsSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxEditions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getOriginalSold","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"editionId","type":"uint256"}],"name":"getOriginalTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"rootsId","type":"uint256"}],"name":"hasEditionBeenClaimedForRootsPhoto","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"isEdition","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"metadata","outputs":[{"internalType":"contract IICE64Renderer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceEdition","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceOriginal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"purchaseEdition","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"purchaseOriginal","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"roots","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","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":"contract IICE64Renderer","name":"metadataAddr","type":"address"}],"name":"setMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setRoyaltyInfo","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":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"tokenAddress","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620020d0380380620020d083398101604081905262000034916200015f565b600280546001600160a01b0319166001600160a01b0385169081179091556040518491906000907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d76908290a3506040517faa0fbc569a3ac1119963e93aa7ce60ec6703ac5382e6b588a2a2e617bed9e9ed90600090a1600480546001600160a01b0319166001600160a01b038316179055600554620000d7906000600162000120565b60055550604080518082019091526001600160a01b0391909116808252610280602090920191909152600780546001600160b81b031916909117600560a71b17905550620001b3565b600081156200013657506001821b83176200013f565b506001821b1983165b9392505050565b6001600160a01b03811681146200015c57600080fd5b50565b6000806000606084860312156200017557600080fd5b8351620001828162000146565b6020850151909350620001958162000146565b6040850151909250620001a88162000146565b809150509250925092565b611f0d80620001c36000396000f3fe6080604052600436106101cb5760003560e01c806369dabb7c116100f7578063a22cb46511610095578063e2e784d511610064578063e2e784d514610574578063e985e9c514610594578063f242432a146105cf578063f3cb8385146105ef57600080fd5b8063a22cb465146104f4578063afd77cb614610514578063dafa84f914610534578063df7624631461055457600080fd5b80638d345150116100d15780638d345150146104845780638da5cb5b146104a0578063955ce6ca146104c05780639effd22f146104d457600080fd5b806369dabb7c1461042857806388899eaa14610449578063894760691461046457600080fd5b80632eb2c2d61161016f5780634e1273f41161013e5780634e1273f41461039457806358e83e5b146103c15780635fd8c710146103e15780636664938b146103f657600080fd5b80632eb2c2d6146102fc578063392f37e91461031c578063393fe1cd1461035457806342966c681461037457600080fd5b80630e89341c116101ab5780630e89341c1461025d57806313af40351461028a578063283ea676146102aa5780632a55205a146102bd57600080fd5b80629a19ba146101d0578062fdd58e146101e557806301ffc9a71461022d575b600080fd5b6101e36101de366004611728565b61060f565b005b3480156101f157600080fd5b5061021a610200366004611756565b600060208181529281526040808220909352908152205481565b6040519081526020015b60405180910390f35b34801561023957600080fd5b5061024d610248366004611798565b61073e565b6040519015158152602001610224565b34801561026957600080fd5b5061027d610278366004611728565b610769565b604051610224919061180d565b34801561029657600080fd5b506101e36102a5366004611820565b610806565b6101e36102b8366004611728565b610885565b3480156102c957600080fd5b506102dd6102d836600461183d565b6108e7565b604080516001600160a01b039093168352602083019190915201610224565b34801561030857600080fd5b506101e36103173660046118ed565b610925565b34801561032857600080fd5b5060035461033c906001600160a01b031681565b6040516001600160a01b039091168152602001610224565b34801561036057600080fd5b5060045461033c906001600160a01b031681565b34801561038057600080fd5b506101e361038f366004611728565b610bc8565b3480156103a057600080fd5b506103b46103af3660046119ac565b610c0f565b6040516102249190611a18565b3480156103cd57600080fd5b5061021a6103dc366004611728565b610d44565b3480156103ed57600080fd5b506101e3610d51565b34801561040257600080fd5b5061024d610411366004611728565b60009081526006602052604090205460ff16151590565b34801561043457600080fd5b5061024d610443366004611728565b60641090565b34801561045557600080fd5b5061021a668e1bc9bf04000081565b34801561047057600080fd5b506101e361047f366004611820565b610dc5565b34801561049057600080fd5b5061021a670470de4df820000081565b3480156104ac57600080fd5b5060025461033c906001600160a01b031681565b3480156104cc57600080fd5b50604061021a565b3480156104e057600080fd5b5061021a6104ef366004611728565b610eaf565b34801561050057600080fd5b506101e361050f366004611a6a565b610ebc565b34801561052057600080fd5b506101e361052f36600461183d565b610f28565b34801561054057600080fd5b5061021a61054f366004611728565b61106e565b34801561056057600080fd5b5061024d61056f366004611728565b61109b565b34801561058057600080fd5b506101e361058f366004611756565b6110ae565b3480156105a057600080fd5b5061024d6105af366004611aa3565b600160209081526000928352604080842090915290825290205460ff1681565b3480156105db57600080fd5b506101e36105ea366004611ad1565b611122565b3480156105fb57600080fd5b506101e361060a366004611820565b61131c565b8080158061061d5750601081115b1561063b5760405163c1ab6dc160e01b815260040160405180910390fd5b670470de4df820000080341461066457604051638b6ebb4d60e01b815260040160405180910390fd5b60008381526006602052604090205460ff168015610695576040516352df9fe560e01b815260040160405180910390fd5b60006106a085610d44565b33600090815260208181526040808320848452909152902054909150156106f1576106dd3386600160405180602001604052806000815250611390565b6106ec856001600060016114d8565b610737565b61070d3386600160405180602001604052806000815250611390565b6107293382600160405180602001604052806000815250611390565b6107378560018060016114d8565b5050505050565b600063152a902d60e11b6001600160e01b031983161480610763575061076382611528565b92915050565b6003546060906001600160a01b031661079557604051635e87bc0f60e11b815260040160405180910390fd5b60035460405163c87b56dd60e01b8152600481018490526001600160a01b039091169063c87b56dd90602401600060405180830381865afa1580156107de573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107639190810190611b63565b6002546001600160a01b031633146108395760405162461bcd60e51b815260040161083090611c10565b60405180910390fd5b600280546001600160a01b0319166001600160a01b03831690811790915560405133907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7690600090a350565b808015806108935750601081115b156108b15760405163c1ab6dc160e01b815260040160405180910390fd5b668e1bc9bf0400008034146108d957604051638b6ebb4d60e01b815260040160405180910390fd5b6108e283611576565b505050565b6007546001600160a01b038116906000906127109061091290600160a01b900462ffffff1685611c4c565b61091c9190611c6b565b90509250929050565b8483146109665760405162461bcd60e51b815260206004820152600f60248201526e0988a9c8ea890be9a92a69a82a8869608b1b6044820152606401610830565b336001600160a01b03891614806109a057506001600160a01b038816600090815260016020908152604080832033845290915290205460ff165b6109dd5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610830565b60008060005b87811015610a98578888828181106109fd576109fd611c8d565b905060200201359250868682818110610a1857610a18611c8d565b6001600160a01b038e1660009081526020818152604080832089845282528220805493909102949094013595508593925090610a55908490611ca3565b90915550506001600160a01b038a1660009081526020818152604080832086845290915281208054849290610a8b908490611cba565b90915550506001016109e3565b50886001600160a01b03168a6001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8b8b8b8b604051610aec9493929190611d08565b60405180910390a46001600160a01b0389163b15610b935760405163bc197c8160e01b808252906001600160a01b038b169063bc197c8190610b409033908f908e908e908e908e908e908e90600401611d58565b6020604051808303816000875af1158015610b5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b839190611dbc565b6001600160e01b03191614610ba0565b6001600160a01b03891615155b610bbc5760405162461bcd60e51b815260040161083090611dd9565b50505050505050505050565b336000908152602081815260408083208484529091528120549003610c00576040516330cd747160e01b815260040160405180910390fd5b610c0c3382600161165f565b50565b6060838214610c525760405162461bcd60e51b815260206004820152600f60248201526e0988a9c8ea890be9a92a69a82a8869608b1b6044820152606401610830565b8367ffffffffffffffff811115610c6b57610c6b611b4d565b604051908082528060200260200182016040528015610c94578160200160208202803683370190505b50905060005b84811015610d3b57600080878784818110610cb757610cb7611c8d565b9050602002016020810190610ccc9190611820565b6001600160a01b03166001600160a01b031681526020019081526020016000206000858584818110610d0057610d00611c8d565b90506020020135815260200190815260200160002054828281518110610d2857610d28611c8d565b6020908102919091010152600101610c9a565b50949350505050565b6000610763606483611cba565b6002546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610d9e576040519150601f19603f3d011682016040523d82523d6000602084013e610da3565b606091505b5050905080610c0c576040516307a4ced160e51b815260040160405180910390fd5b6002546040516370a0823160e01b81523060048201526001600160a01b038381169263a9059cbb9291169083906370a0823190602401602060405180830381865afa158015610e18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e3c9190611e03565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610e87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eab9190611e1c565b5050565b6000610763606483611ca3565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b81801580610f365750601081115b15610f545760405163c1ab6dc160e01b815260040160405180910390fd5b600480546040516331a9108f60e11b815291820184905233916001600160a01b0390911690636352211e90602401602060405180830381865afa158015610f9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc39190611e39565b6001600160a01b031614610fea5760405163b24444db60e01b815260040160405180910390fd5b600554821c60019081160361101257604051632a06c23360e21b815260040160405180910390fd5b61101b83611576565b6110296005548360016116e3565b60055582827faefee21f072776246ecb4c85a2c7d4cbf33da6b7c97c03027a6fa57eb64fd90861105883610d44565b60405190815260200160405180910390a3505050565b600081815260066020526040812054819060ff80821691600881901c82169160109190911c161515610d3b565b600554600090821c600190811614610763565b6002546001600160a01b031633146110d85760405162461bcd60e51b815260040161083090611c10565b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260078054600160a01b9093026001600160b81b0319909316909117919091179055565b336001600160a01b038716148061115c57506001600160a01b038616600090815260016020908152604080832033845290915290205460ff165b6111995760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610830565b6001600160a01b038616600090815260208181526040808320878452909152812080548592906111ca908490611ca3565b90915550506001600160a01b03851660009081526020818152604080832087845290915281208054859290611200908490611cba565b909155505060408051858152602081018590526001600160a01b03808816929089169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46001600160a01b0385163b156112eb5760405163f23a6e6160e01b808252906001600160a01b0387169063f23a6e61906112989033908b908a908a908a908a90600401611e56565b6020604051808303816000875af11580156112b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112db9190611dbc565b6001600160e01b031916146112f8565b6001600160a01b03851615155b6113145760405162461bcd60e51b815260040161083090611dd9565b505050505050565b6002546001600160a01b031633146113465760405162461bcd60e51b815260040161083090611c10565b600380546001600160a01b0319166001600160a01b0383169081179091556040517fab9629867a34a7ca2d5922872561019a3ba83fe9e98bc2c74ff6ffdfd80d265690600090a250565b6001600160a01b038416600090815260208181526040808320868452909152812080548492906113c1908490611cba565b909155505060408051848152602081018490526001600160a01b0386169160009133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46001600160a01b0384163b156114a95760405163f23a6e6160e01b808252906001600160a01b0386169063f23a6e6190611456903390600090899089908990600401611e9d565b6020604051808303816000875af1158015611475573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114999190611dbc565b6001600160e01b031916146114b6565b6001600160a01b03841615155b6114d25760405162461bcd60e51b815260040161083090611dd9565b50505050565b60008481526006602052604090205460ff8082169160081c1661150e6114fe8684611cba565b6115088684611cba565b85611707565b600096875260066020526040909620959095555050505050565b60006301ffc9a760e01b6001600160e01b0319831614806115595750636cdb3d1360e11b6001600160e01b03198316145b806107635750506001600160e01b0319166303a24d0760e21b1490565b600061158182610d44565b60008381526006602052604081205491925060ff600883901c81169260101c16151590816115ba576115b560016040611ca3565b6115bd565b60405b90508083036115fe5781156115e5576040516352df9fe560e01b815260040160405180910390fd5b60405163bc66069360e01b815260040160405180910390fd5b33600090815260208181526040808320878452909152902054156116355760405163b7d406bb60e01b815260040160405180910390fd5b6116513385600160405180602001604052806000815250611390565b6107378560006001856114d8565b6001600160a01b03831660009081526020818152604080832085845290915281208054839290611690908490611ca3565b909155505060408051838152602081018390526000916001600160a01b0386169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4505050565b600081156116f757506001821b8317611700565b506001821b1983165b9392505050565b600882901b8317816117195780611720565b8062010000175b949350505050565b60006020828403121561173a57600080fd5b5035919050565b6001600160a01b0381168114610c0c57600080fd5b6000806040838503121561176957600080fd5b823561177481611741565b946020939093013593505050565b6001600160e01b031981168114610c0c57600080fd5b6000602082840312156117aa57600080fd5b813561170081611782565b60005b838110156117d05781810151838201526020016117b8565b838111156114d25750506000910152565b600081518084526117f98160208601602086016117b5565b601f01601f19169290920160200192915050565b60208152600061170060208301846117e1565b60006020828403121561183257600080fd5b813561170081611741565b6000806040838503121561185057600080fd5b50508035926020909101359150565b60008083601f84011261187157600080fd5b50813567ffffffffffffffff81111561188957600080fd5b6020830191508360208260051b85010111156118a457600080fd5b9250929050565b60008083601f8401126118bd57600080fd5b50813567ffffffffffffffff8111156118d557600080fd5b6020830191508360208285010111156118a457600080fd5b60008060008060008060008060a0898b03121561190957600080fd5b883561191481611741565b9750602089013561192481611741565b9650604089013567ffffffffffffffff8082111561194157600080fd5b61194d8c838d0161185f565b909850965060608b013591508082111561196657600080fd5b6119728c838d0161185f565b909650945060808b013591508082111561198b57600080fd5b506119988b828c016118ab565b999c989b5096995094979396929594505050565b600080600080604085870312156119c257600080fd5b843567ffffffffffffffff808211156119da57600080fd5b6119e68883890161185f565b909650945060208701359150808211156119ff57600080fd5b50611a0c8782880161185f565b95989497509550505050565b6020808252825182820181905260009190848201906040850190845b81811015611a5057835183529284019291840191600101611a34565b50909695505050505050565b8015158114610c0c57600080fd5b60008060408385031215611a7d57600080fd5b8235611a8881611741565b91506020830135611a9881611a5c565b809150509250929050565b60008060408385031215611ab657600080fd5b8235611ac181611741565b91506020830135611a9881611741565b60008060008060008060a08789031215611aea57600080fd5b8635611af581611741565b95506020870135611b0581611741565b94506040870135935060608701359250608087013567ffffffffffffffff811115611b2f57600080fd5b611b3b89828a016118ab565b979a9699509497509295939492505050565b634e487b7160e01b600052604160045260246000fd5b600060208284031215611b7557600080fd5b815167ffffffffffffffff80821115611b8d57600080fd5b818401915084601f830112611ba157600080fd5b815181811115611bb357611bb3611b4d565b604051601f8201601f19908116603f01168101908382118183101715611bdb57611bdb611b4d565b81604052828152876020848701011115611bf457600080fd5b611c058360208301602088016117b5565b979650505050505050565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611c6657611c66611c36565b500290565b600082611c8857634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600082821015611cb557611cb5611c36565b500390565b60008219821115611ccd57611ccd611c36565b500190565b81835260006001600160fb1b03831115611ceb57600080fd5b8260051b8083602087013760009401602001938452509192915050565b604081526000611d1c604083018688611cd2565b8281036020840152611c05818587611cd2565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b0389811682528816602082015260a060408201819052600090611d85908301888a611cd2565b8281036060840152611d98818789611cd2565b90508281036080840152611dad818587611d2f565b9b9a5050505050505050505050565b600060208284031215611dce57600080fd5b815161170081611782565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b600060208284031215611e1557600080fd5b5051919050565b600060208284031215611e2e57600080fd5b815161170081611a5c565b600060208284031215611e4b57600080fd5b815161170081611741565b6001600160a01b03878116825286166020820152604081018590526060810184905260a060808201819052600090611e919083018486611d2f565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090611c05908301846117e156fea264697066735822122024b0b3977451a5bca485f921aceca3292a5bd2ed048bc5e4cecc372ff55b9faf64736f6c634300080e003300000000000000000000000071b90c1ae3fb19aa2f8cb1e4fd3f062a0642116c00000000000000000000000071b90c1ae3fb19aa2f8cb1e4fd3f062a0642116c000000000000000000000000d0c2a3c9127966e9dfed75e04a4341fbabd77e43

Deployed Bytecode

0x6080604052600436106101cb5760003560e01c806369dabb7c116100f7578063a22cb46511610095578063e2e784d511610064578063e2e784d514610574578063e985e9c514610594578063f242432a146105cf578063f3cb8385146105ef57600080fd5b8063a22cb465146104f4578063afd77cb614610514578063dafa84f914610534578063df7624631461055457600080fd5b80638d345150116100d15780638d345150146104845780638da5cb5b146104a0578063955ce6ca146104c05780639effd22f146104d457600080fd5b806369dabb7c1461042857806388899eaa14610449578063894760691461046457600080fd5b80632eb2c2d61161016f5780634e1273f41161013e5780634e1273f41461039457806358e83e5b146103c15780635fd8c710146103e15780636664938b146103f657600080fd5b80632eb2c2d6146102fc578063392f37e91461031c578063393fe1cd1461035457806342966c681461037457600080fd5b80630e89341c116101ab5780630e89341c1461025d57806313af40351461028a578063283ea676146102aa5780632a55205a146102bd57600080fd5b80629a19ba146101d0578062fdd58e146101e557806301ffc9a71461022d575b600080fd5b6101e36101de366004611728565b61060f565b005b3480156101f157600080fd5b5061021a610200366004611756565b600060208181529281526040808220909352908152205481565b6040519081526020015b60405180910390f35b34801561023957600080fd5b5061024d610248366004611798565b61073e565b6040519015158152602001610224565b34801561026957600080fd5b5061027d610278366004611728565b610769565b604051610224919061180d565b34801561029657600080fd5b506101e36102a5366004611820565b610806565b6101e36102b8366004611728565b610885565b3480156102c957600080fd5b506102dd6102d836600461183d565b6108e7565b604080516001600160a01b039093168352602083019190915201610224565b34801561030857600080fd5b506101e36103173660046118ed565b610925565b34801561032857600080fd5b5060035461033c906001600160a01b031681565b6040516001600160a01b039091168152602001610224565b34801561036057600080fd5b5060045461033c906001600160a01b031681565b34801561038057600080fd5b506101e361038f366004611728565b610bc8565b3480156103a057600080fd5b506103b46103af3660046119ac565b610c0f565b6040516102249190611a18565b3480156103cd57600080fd5b5061021a6103dc366004611728565b610d44565b3480156103ed57600080fd5b506101e3610d51565b34801561040257600080fd5b5061024d610411366004611728565b60009081526006602052604090205460ff16151590565b34801561043457600080fd5b5061024d610443366004611728565b60641090565b34801561045557600080fd5b5061021a668e1bc9bf04000081565b34801561047057600080fd5b506101e361047f366004611820565b610dc5565b34801561049057600080fd5b5061021a670470de4df820000081565b3480156104ac57600080fd5b5060025461033c906001600160a01b031681565b3480156104cc57600080fd5b50604061021a565b3480156104e057600080fd5b5061021a6104ef366004611728565b610eaf565b34801561050057600080fd5b506101e361050f366004611a6a565b610ebc565b34801561052057600080fd5b506101e361052f36600461183d565b610f28565b34801561054057600080fd5b5061021a61054f366004611728565b61106e565b34801561056057600080fd5b5061024d61056f366004611728565b61109b565b34801561058057600080fd5b506101e361058f366004611756565b6110ae565b3480156105a057600080fd5b5061024d6105af366004611aa3565b600160209081526000928352604080842090915290825290205460ff1681565b3480156105db57600080fd5b506101e36105ea366004611ad1565b611122565b3480156105fb57600080fd5b506101e361060a366004611820565b61131c565b8080158061061d5750601081115b1561063b5760405163c1ab6dc160e01b815260040160405180910390fd5b670470de4df820000080341461066457604051638b6ebb4d60e01b815260040160405180910390fd5b60008381526006602052604090205460ff168015610695576040516352df9fe560e01b815260040160405180910390fd5b60006106a085610d44565b33600090815260208181526040808320848452909152902054909150156106f1576106dd3386600160405180602001604052806000815250611390565b6106ec856001600060016114d8565b610737565b61070d3386600160405180602001604052806000815250611390565b6107293382600160405180602001604052806000815250611390565b6107378560018060016114d8565b5050505050565b600063152a902d60e11b6001600160e01b031983161480610763575061076382611528565b92915050565b6003546060906001600160a01b031661079557604051635e87bc0f60e11b815260040160405180910390fd5b60035460405163c87b56dd60e01b8152600481018490526001600160a01b039091169063c87b56dd90602401600060405180830381865afa1580156107de573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107639190810190611b63565b6002546001600160a01b031633146108395760405162461bcd60e51b815260040161083090611c10565b60405180910390fd5b600280546001600160a01b0319166001600160a01b03831690811790915560405133907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7690600090a350565b808015806108935750601081115b156108b15760405163c1ab6dc160e01b815260040160405180910390fd5b668e1bc9bf0400008034146108d957604051638b6ebb4d60e01b815260040160405180910390fd5b6108e283611576565b505050565b6007546001600160a01b038116906000906127109061091290600160a01b900462ffffff1685611c4c565b61091c9190611c6b565b90509250929050565b8483146109665760405162461bcd60e51b815260206004820152600f60248201526e0988a9c8ea890be9a92a69a82a8869608b1b6044820152606401610830565b336001600160a01b03891614806109a057506001600160a01b038816600090815260016020908152604080832033845290915290205460ff165b6109dd5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610830565b60008060005b87811015610a98578888828181106109fd576109fd611c8d565b905060200201359250868682818110610a1857610a18611c8d565b6001600160a01b038e1660009081526020818152604080832089845282528220805493909102949094013595508593925090610a55908490611ca3565b90915550506001600160a01b038a1660009081526020818152604080832086845290915281208054849290610a8b908490611cba565b90915550506001016109e3565b50886001600160a01b03168a6001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8b8b8b8b604051610aec9493929190611d08565b60405180910390a46001600160a01b0389163b15610b935760405163bc197c8160e01b808252906001600160a01b038b169063bc197c8190610b409033908f908e908e908e908e908e908e90600401611d58565b6020604051808303816000875af1158015610b5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b839190611dbc565b6001600160e01b03191614610ba0565b6001600160a01b03891615155b610bbc5760405162461bcd60e51b815260040161083090611dd9565b50505050505050505050565b336000908152602081815260408083208484529091528120549003610c00576040516330cd747160e01b815260040160405180910390fd5b610c0c3382600161165f565b50565b6060838214610c525760405162461bcd60e51b815260206004820152600f60248201526e0988a9c8ea890be9a92a69a82a8869608b1b6044820152606401610830565b8367ffffffffffffffff811115610c6b57610c6b611b4d565b604051908082528060200260200182016040528015610c94578160200160208202803683370190505b50905060005b84811015610d3b57600080878784818110610cb757610cb7611c8d565b9050602002016020810190610ccc9190611820565b6001600160a01b03166001600160a01b031681526020019081526020016000206000858584818110610d0057610d00611c8d565b90506020020135815260200190815260200160002054828281518110610d2857610d28611c8d565b6020908102919091010152600101610c9a565b50949350505050565b6000610763606483611cba565b6002546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610d9e576040519150601f19603f3d011682016040523d82523d6000602084013e610da3565b606091505b5050905080610c0c576040516307a4ced160e51b815260040160405180910390fd5b6002546040516370a0823160e01b81523060048201526001600160a01b038381169263a9059cbb9291169083906370a0823190602401602060405180830381865afa158015610e18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e3c9190611e03565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610e87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eab9190611e1c565b5050565b6000610763606483611ca3565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b81801580610f365750601081115b15610f545760405163c1ab6dc160e01b815260040160405180910390fd5b600480546040516331a9108f60e11b815291820184905233916001600160a01b0390911690636352211e90602401602060405180830381865afa158015610f9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc39190611e39565b6001600160a01b031614610fea5760405163b24444db60e01b815260040160405180910390fd5b600554821c60019081160361101257604051632a06c23360e21b815260040160405180910390fd5b61101b83611576565b6110296005548360016116e3565b60055582827faefee21f072776246ecb4c85a2c7d4cbf33da6b7c97c03027a6fa57eb64fd90861105883610d44565b60405190815260200160405180910390a3505050565b600081815260066020526040812054819060ff80821691600881901c82169160109190911c161515610d3b565b600554600090821c600190811614610763565b6002546001600160a01b031633146110d85760405162461bcd60e51b815260040161083090611c10565b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260078054600160a01b9093026001600160b81b0319909316909117919091179055565b336001600160a01b038716148061115c57506001600160a01b038616600090815260016020908152604080832033845290915290205460ff165b6111995760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610830565b6001600160a01b038616600090815260208181526040808320878452909152812080548592906111ca908490611ca3565b90915550506001600160a01b03851660009081526020818152604080832087845290915281208054859290611200908490611cba565b909155505060408051858152602081018590526001600160a01b03808816929089169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46001600160a01b0385163b156112eb5760405163f23a6e6160e01b808252906001600160a01b0387169063f23a6e61906112989033908b908a908a908a908a90600401611e56565b6020604051808303816000875af11580156112b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112db9190611dbc565b6001600160e01b031916146112f8565b6001600160a01b03851615155b6113145760405162461bcd60e51b815260040161083090611dd9565b505050505050565b6002546001600160a01b031633146113465760405162461bcd60e51b815260040161083090611c10565b600380546001600160a01b0319166001600160a01b0383169081179091556040517fab9629867a34a7ca2d5922872561019a3ba83fe9e98bc2c74ff6ffdfd80d265690600090a250565b6001600160a01b038416600090815260208181526040808320868452909152812080548492906113c1908490611cba565b909155505060408051848152602081018490526001600160a01b0386169160009133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46001600160a01b0384163b156114a95760405163f23a6e6160e01b808252906001600160a01b0386169063f23a6e6190611456903390600090899089908990600401611e9d565b6020604051808303816000875af1158015611475573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114999190611dbc565b6001600160e01b031916146114b6565b6001600160a01b03841615155b6114d25760405162461bcd60e51b815260040161083090611dd9565b50505050565b60008481526006602052604090205460ff8082169160081c1661150e6114fe8684611cba565b6115088684611cba565b85611707565b600096875260066020526040909620959095555050505050565b60006301ffc9a760e01b6001600160e01b0319831614806115595750636cdb3d1360e11b6001600160e01b03198316145b806107635750506001600160e01b0319166303a24d0760e21b1490565b600061158182610d44565b60008381526006602052604081205491925060ff600883901c81169260101c16151590816115ba576115b560016040611ca3565b6115bd565b60405b90508083036115fe5781156115e5576040516352df9fe560e01b815260040160405180910390fd5b60405163bc66069360e01b815260040160405180910390fd5b33600090815260208181526040808320878452909152902054156116355760405163b7d406bb60e01b815260040160405180910390fd5b6116513385600160405180602001604052806000815250611390565b6107378560006001856114d8565b6001600160a01b03831660009081526020818152604080832085845290915281208054839290611690908490611ca3565b909155505060408051838152602081018390526000916001600160a01b0386169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4505050565b600081156116f757506001821b8317611700565b506001821b1983165b9392505050565b600882901b8317816117195780611720565b8062010000175b949350505050565b60006020828403121561173a57600080fd5b5035919050565b6001600160a01b0381168114610c0c57600080fd5b6000806040838503121561176957600080fd5b823561177481611741565b946020939093013593505050565b6001600160e01b031981168114610c0c57600080fd5b6000602082840312156117aa57600080fd5b813561170081611782565b60005b838110156117d05781810151838201526020016117b8565b838111156114d25750506000910152565b600081518084526117f98160208601602086016117b5565b601f01601f19169290920160200192915050565b60208152600061170060208301846117e1565b60006020828403121561183257600080fd5b813561170081611741565b6000806040838503121561185057600080fd5b50508035926020909101359150565b60008083601f84011261187157600080fd5b50813567ffffffffffffffff81111561188957600080fd5b6020830191508360208260051b85010111156118a457600080fd5b9250929050565b60008083601f8401126118bd57600080fd5b50813567ffffffffffffffff8111156118d557600080fd5b6020830191508360208285010111156118a457600080fd5b60008060008060008060008060a0898b03121561190957600080fd5b883561191481611741565b9750602089013561192481611741565b9650604089013567ffffffffffffffff8082111561194157600080fd5b61194d8c838d0161185f565b909850965060608b013591508082111561196657600080fd5b6119728c838d0161185f565b909650945060808b013591508082111561198b57600080fd5b506119988b828c016118ab565b999c989b5096995094979396929594505050565b600080600080604085870312156119c257600080fd5b843567ffffffffffffffff808211156119da57600080fd5b6119e68883890161185f565b909650945060208701359150808211156119ff57600080fd5b50611a0c8782880161185f565b95989497509550505050565b6020808252825182820181905260009190848201906040850190845b81811015611a5057835183529284019291840191600101611a34565b50909695505050505050565b8015158114610c0c57600080fd5b60008060408385031215611a7d57600080fd5b8235611a8881611741565b91506020830135611a9881611a5c565b809150509250929050565b60008060408385031215611ab657600080fd5b8235611ac181611741565b91506020830135611a9881611741565b60008060008060008060a08789031215611aea57600080fd5b8635611af581611741565b95506020870135611b0581611741565b94506040870135935060608701359250608087013567ffffffffffffffff811115611b2f57600080fd5b611b3b89828a016118ab565b979a9699509497509295939492505050565b634e487b7160e01b600052604160045260246000fd5b600060208284031215611b7557600080fd5b815167ffffffffffffffff80821115611b8d57600080fd5b818401915084601f830112611ba157600080fd5b815181811115611bb357611bb3611b4d565b604051601f8201601f19908116603f01168101908382118183101715611bdb57611bdb611b4d565b81604052828152876020848701011115611bf457600080fd5b611c058360208301602088016117b5565b979650505050505050565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611c6657611c66611c36565b500290565b600082611c8857634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600082821015611cb557611cb5611c36565b500390565b60008219821115611ccd57611ccd611c36565b500190565b81835260006001600160fb1b03831115611ceb57600080fd5b8260051b8083602087013760009401602001938452509192915050565b604081526000611d1c604083018688611cd2565b8281036020840152611c05818587611cd2565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b0389811682528816602082015260a060408201819052600090611d85908301888a611cd2565b8281036060840152611d98818789611cd2565b90508281036080840152611dad818587611d2f565b9b9a5050505050505050505050565b600060208284031215611dce57600080fd5b815161170081611782565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b600060208284031215611e1557600080fd5b5051919050565b600060208284031215611e2e57600080fd5b815161170081611a5c565b600060208284031215611e4b57600080fd5b815161170081611741565b6001600160a01b03878116825286166020820152604081018590526060810184905260a060808201819052600090611e919083018486611d2f565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090611c05908301846117e156fea264697066735822122024b0b3977451a5bca485f921aceca3292a5bd2ed048bc5e4cecc372ff55b9faf64736f6c634300080e0033

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

00000000000000000000000071b90c1ae3fb19aa2f8cb1e4fd3f062a0642116c00000000000000000000000071b90c1ae3fb19aa2f8cb1e4fd3f062a0642116c000000000000000000000000d0c2a3c9127966e9dfed75e04a4341fbabd77e43

-----Decoded View---------------
Arg [0] : owner (address): 0x71b90C1AE3FB19aA2f8cB1e4fd3f062A0642116C
Arg [1] : royalties (address): 0x71b90C1AE3FB19aA2f8cB1e4fd3f062A0642116C
Arg [2] : roots_ (address): 0xd0c2A3C9127966E9dfED75E04a4341fBaBD77e43

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000071b90c1ae3fb19aa2f8cb1e4fd3f062a0642116c
Arg [1] : 00000000000000000000000071b90c1ae3fb19aa2f8cb1e4fd3f062a0642116c
Arg [2] : 000000000000000000000000d0c2a3c9127966e9dfed75e04a4341fbabd77e43


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.