ETH Price: $3,369.22 (-1.45%)

Contract

0xC85af08e5d890499c380FfDa696AD68945Ed7Bd2
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Editions

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 14 : Editions.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.10;

import {Ownable} from "../../lib/Ownable.sol";
import {Pausable} from "../../lib/Pausable.sol";
import {Reentrancy} from "../../lib/Reentrancy.sol";
import {ERC721, IERC721, IERC165} from "../../lib/ERC721/ERC721.sol";
import {IERC721Metadata} from "../../lib/ERC721/interface/IERC721.sol";
import {IERC2309} from "../../lib/ERC2309/interface/IERC2309.sol";
import {IERC2981} from "../../lib/ERC2981/interface/IERC2981.sol";
import {IEditions, IEditionsEvents} from "./interface/IEditions.sol";

import {IRenderer} from "./interface/IRenderer.sol";

import {ITreasuryConfig} from "../../treasury/interface/ITreasuryConfig.sol";
import {IMirrorTreasury} from "../../treasury/interface/IMirrorTreasury.sol";
import {IMirrorFeeConfig} from "../../fee-config/MirrorFeeConfig.sol";

/**
 * @title Editions
 * @author MirrorXYZ
 */
contract Editions is
    Ownable,
    Pausable,
    Reentrancy,
    ERC721,
    IERC721Metadata,
    IERC2309,
    IERC2981,
    IEditions,
    IEditionsEvents
{
    // ============ Deployment ============

    /// @notice Address that deploys and initializes clones
    address public immutable override factory;

    // ============ Fee Configuration ============

    /// @notice Address for Mirror fee configuration.
    address public immutable override feeConfig;

    /// @notice Address for Mirror treasury configuration.
    address public immutable override treasuryConfig;

    // ============ ERC721 Metadata ============

    /// @notice Edition name
    string public override name;

    /// @notice Ediiton symbol
    string public override symbol;

    // ============ Edition Data ============

    /// @notice Last tokenId that was minted
    uint256 internal currentTokenId;

    /// @notice Edition contractURI
    string internal _contractURI;

    /// @notice Edition contentURI
    string internal contentURI;

    /// @notice Edition price
    uint256 public override price;

    /// @notice Edition limit
    uint256 public override limit;

    /// @notice Edition contentHash
    bytes32 public override contentHash;

    // ============ Royalty Info (ERC2981) ============

    /// @notice Account that will receive royalties
    /// @dev set address(0) to avoid royalties
    address public override royaltyRecipient;

    /// @notice Royalty Basis Points
    uint256 public override royaltyBPS;

    // ============ Rendering ============

    /// @notice Rendering contract
    address public override renderer;

    // ============ Pre allocation ============

    /// @notice Allocation recipient (consecutive transfer)
    address internal allocationRecipient;

    /// @notice Allocation count (consecutive transfer)
    uint256 internal allocationCount;

    // ============ Constructor ============
    constructor(
        address factory_,
        address feeConfig_,
        address treasuryConfig_
    ) Ownable(address(0)) Pausable(false) {
        factory = factory_;
        feeConfig = feeConfig_;
        treasuryConfig = treasuryConfig_;
    }

    // ============ Initializing ============

    /// @notice Initialize metadata
    /// @param owner_ the clone owner
    /// @param name_ the name for the edition clone
    /// @param symbol_ the symbol for the edition clone
    /// @param contentURI_ the contentURI for the edition clone
    /// @param contractURI_ the contractURI for the edition clone
    /// @param edition_ the parameters for the edition sale
    /// @param paused_ the pause state for the edition sale
    function initialize(
        address owner_,
        string memory name_,
        string memory symbol_,
        string memory contentURI_,
        string memory contractURI_,
        Edition memory edition_,
        bool paused_
    ) external override {
        require(msg.sender == factory, "unauthorized caller");

        // store erc721 metadata
        name = name_;
        symbol = symbol_;

        // store edition data
        contentURI = contentURI_;
        _contractURI = contractURI_;
        price = edition_.price;
        limit = edition_.limit;
        contentHash = edition_.contentHash;

        // set pause status
        if (paused_) {
            _pause();
        }

        // store owner
        _setOwner(address(0), owner_);

        // set royalty defaults to owner and 10%
        royaltyRecipient = owner_;
        royaltyBPS = 1000;
    }

    // ============ Pause Methods ============

    /// @notice Unpause edition sale
    function unpause() external override onlyOwner {
        _unpause();
    }

    /// @notice Pause edition sale
    function pause() external override onlyOwner {
        _pause();
    }

    // ============ Allocation ============

    /// @notice Allocates `count` editions to `recipient`
    /// @dev Throws if an edition has been purchased already or `count` exceeds limit
    /// @param recipient the account to receive tokens
    /// @param count the number of tokens to mint to `recipient`
    function allocate(address recipient, uint256 count)
        external
        override
        onlyOwner
    {
        // check that no purchases have happened and count does not exceed limit
        require(
            currentTokenId == 0 && (limit == 0 || count <= limit),
            "cannot allocate"
        );

        // set allocation recipient
        allocationRecipient = recipient;
        allocationCount = count;

        // update tokenId
        currentTokenId = count;

        // update balance
        _balances[recipient] = count;

        // emit transfer
        emit ConsecutiveTransfer(
            // fromTokenId
            1,
            // toTokenId
            count,
            // fromAddress
            address(0),
            // toAddress
            recipient
        );
    }

    /// @notice Finds the owner of a token
    /// @dev this method takes into account allocation
    function ownerOf(uint256 tokenId) public view override returns (address) {
        address _owner = _owners[tokenId];

        // if there is not owner set,
        // and the tokenId is within the allocation count
        // the allocationRecipient owns it
        if (_owner == address(0) && tokenId < allocationCount) {
            return allocationRecipient;
        }

        require(_owner != address(0), "ERC721: query for nonexistent token");

        return _owner;
    }

    // ============ Purchase ============

    /// @notice Purchase an edition
    /// @dev throws if sale is paused or incorrect value is sent
    /// @param recipient the account to receive the edition
    function purchase(address recipient)
        external
        payable
        override
        whenNotPaused
        returns (uint256 tokenId)
    {
        require(msg.value == price, "incorrect value");

        return _purchase(recipient);
    }

    // ============ Minting ============

    /// @notice Mint an edition
    /// @dev throws if called by a non-owner
    /// @param recipient the account to receive the edition
    function mint(address recipient)
        external
        override
        onlyOwner
        returns (uint256 tokenId)
    {
        tokenId = _getTokenIdAndMint(recipient);
    }

    /// @notice Allows the owner to set a global limit on the total supply
    /// @dev throws if attempting to increase the limit
    function setLimit(uint256 limit_) external override onlyOwner {
        // enforce that the limit should only ever decrease once set
        require(
            limit == 0 || limit_ < limit,
            "limit must be < than current limit"
        );

        // announce the change in limit
        emit EditionLimitSet(
            // oldLimit
            limit,
            // newLimit
            limit_
        );

        // update the limit.
        limit = limit_;
    }

    // ============ ERC2981 Methods ============

    /// @notice Called with the sale price to determine how much royalty
    //  is owed and to whom
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _salePrice - the sale price of the NFT asset specified by _tokenId
    /// @return receiver - address of who should be sent the royalty payment
    /// @return royaltyAmount - the royalty payment amount for _salePrice
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        receiver = royaltyRecipient;

        royaltyAmount = (_salePrice * royaltyBPS) / 10_000;
    }

    /// @param royaltyRecipient_ the address that will receive royalties
    /// @param royaltyBPS_ the royalty amount in basis points (bps)
    function setRoyaltyInfo(
        address payable royaltyRecipient_,
        uint256 royaltyBPS_
    ) external override onlyOwner {
        require(
            royaltyBPS_ <= 10_000,
            "bps must be less than or equal to 10,000"
        );

        emit RoyaltyChange(
            // oldRoyaltyRecipient
            royaltyRecipient,
            // oldRoyaltyBPS
            royaltyBPS,
            // newRoyaltyRecipient
            royaltyRecipient_,
            // newRoyaltyBPS
            royaltyBPS_
        );

        royaltyRecipient = royaltyRecipient_;
        royaltyBPS = royaltyBPS_;
    }

    // ============ Rendering Methods ============

    /// @notice Set the renderer address
    /// @dev Throws if renderer is not the zero address
    function setRenderer(address renderer_) external override onlyOwner {
        require(renderer == address(0), "renderer already set");

        renderer = renderer_;

        emit RendererSet(
            // renderer
            renderer_
        );
    }

    /// @notice Get contract metadata
    /// @dev If a renderer is set, return the renderer's metadata
    function contractURI() external view override returns (string memory) {
        if (renderer != address(0)) {
            return IRenderer(renderer).contractURI();
        }

        return _contractURI;
    }

    /// @notice Get `tokenId` URI or data
    /// @dev If a renderer is set, call renderer's tokenURI
    /// @param tokenId The tokenId used to request data
    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        require(_exists(tokenId), "ERC721: query for nonexistent token");

        if (renderer != address(0)) {
            return IRenderer(renderer).tokenURI(tokenId);
        }

        return string(abi.encodePacked(contentURI, _toString(tokenId)));
    }

    // ============ Withdrawal ============

    /// @notice Set the price
    function setPrice(uint256 price_) external override onlyOwner {
        price = price_;

        emit PriceSet(
            // price
            price_
        );
    }

    function withdraw(uint16 feeBPS, address fundingRecipient)
        external
        onlyOwner
        nonReentrant
    {
        require(fundingRecipient != address(0), "must set fundingRecipient");

        _withdraw(feeBPS, fundingRecipient);
    }

    // ============ IERC165 Method ============

    function supportsInterface(bytes4 interfaceId)
        public
        pure
        override
        returns (bool)
    {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            interfaceId == type(IERC165).interfaceId ||
            interfaceId == type(IERC2981).interfaceId;
    }

    // ============ Internal Methods ============
    function _withdraw(uint16 feeBPS, address fundingRecipient) internal {
        // assert that the fee is valid
        require(IMirrorFeeConfig(feeConfig).isFeeValid(feeBPS), "invalid fee");

        // calculate the fee on the current balance, using the fee percentage
        uint256 fee = _feeAmount(address(this).balance, feeBPS);

        // if the fee is not zero, attempt to send it to the treasury
        if (fee != 0) {
            _sendEther(ITreasuryConfig(treasuryConfig).treasury(), fee);
        }

        // broadcast the withdrawal event – with balance and fee
        emit Withdrawal(
            // recipient
            fundingRecipient,
            // amount
            address(this).balance,
            // fee
            fee
        );

        // transfer the remaining balance to the fundingRecipient
        _sendEther(payable(fundingRecipient), address(this).balance);
    }

    function _sendEther(address payable recipient_, uint256 amount) internal {
        // ensure sufficient balance
        require(address(this).balance >= amount, "insufficient balance");
        // send the value
        (bool success, ) = recipient_.call{value: amount, gas: gasleft()}("");
        require(success, "recipient reverted");
    }

    function _feeAmount(uint256 amount, uint16 fee)
        internal
        pure
        returns (uint256)
    {
        return (amount * fee) / 10_000;
    }

    /// @dev ensure token has an owner, or token is within the allocation
    function _exists(uint256 tokenId) internal view override returns (bool) {
        return _owners[tokenId] != address(0) || tokenId < allocationCount;
    }

    /// @dev Mints token and emits purchase event
    function _purchase(address recipient) internal returns (uint256 tokenId) {
        // mint the token, get a tokenId
        tokenId = _getTokenIdAndMint(recipient);

        emit EditionPurchased(
            // tokenId
            tokenId,
            // nftRecipient
            recipient,
            // amountPaid
            msg.value
        );
    }

    /// @dev Mints and returns tokenId
    function _getTokenIdAndMint(address recipient)
        internal
        returns (uint256 tokenId)
    {
        // increment currentTokenId and store tokenId
        tokenId = ++currentTokenId;

        // check that there are still tokens available to purchase
        require(limit == 0 || tokenId < limit + 1, "sold out");

        // mint a new token for the recipient, using the `tokenId`.
        _mint(recipient, tokenId);
    }

    // From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Strings.sol
    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);
    }
}

File 2 of 14 : Ownable.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.10;

interface IOwnableEvents {
    event OwnershipTransferred(
        address indexed previousOwner,
        address indexed newOwner
    );
}

contract Ownable is IOwnableEvents {
    address public owner;
    address private nextOwner;

    // modifiers

    modifier onlyOwner() {
        require(isOwner(), "caller is not the owner.");
        _;
    }

    modifier onlyNextOwner() {
        require(isNextOwner(), "current owner must set caller as next owner.");
        _;
    }

    /**
     * @dev Initialize contract by setting transaction submitter as initial owner.
     */
    constructor(address owner_) {
        owner = owner_;
        emit OwnershipTransferred(address(0), owner);
    }

    /**
     * @dev Initiate ownership transfer by setting nextOwner.
     */
    function transferOwnership(address nextOwner_) external onlyOwner {
        require(nextOwner_ != address(0), "Next owner is the zero address.");

        nextOwner = nextOwner_;
    }

    /**
     * @dev Cancel ownership transfer by deleting nextOwner.
     */
    function cancelOwnershipTransfer() external onlyOwner {
        delete nextOwner;
    }

    /**
     * @dev Accepts ownership transfer by setting owner.
     */
    function acceptOwnership() external onlyNextOwner {
        delete nextOwner;

        owner = msg.sender;

        emit OwnershipTransferred(owner, msg.sender);
    }

    /**
     * @dev Renounce ownership by setting owner to zero address.
     */
    function renounceOwnership() external onlyOwner {
        _renounceOwnership();
    }

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return msg.sender == owner;
    }

    /**
     * @dev Returns true if the caller is the next owner.
     */
    function isNextOwner() public view returns (bool) {
        return msg.sender == nextOwner;
    }

    function _setOwner(address previousOwner, address newOwner) internal {
        owner = newOwner;
        emit OwnershipTransferred(previousOwner, owner);
    }

    function _renounceOwnership() internal {
        emit OwnershipTransferred(owner, address(0));

        owner = address(0);
    }
}

File 3 of 14 : Pausable.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.10;

interface IPausableEvents {
    /// @notice Emitted when the pause is triggered by `account`.
    event Paused(address account);

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

interface IPausable {
    function paused() external returns (bool);
}

contract Pausable is IPausable, IPausableEvents {
    bool public override paused;

    // Modifiers

    modifier whenNotPaused() {
        require(!paused, "Pausable: paused");
        _;
    }

    modifier whenPaused() {
        require(paused, "Pausable: not paused");
        _;
    }

    /// @notice Initializes the contract in unpaused state.
    constructor(bool paused_) {
        paused = paused_;
    }

    // ============ Internal Functions ============

    function _pause() internal whenNotPaused {
        paused = true;

        emit Paused(msg.sender);
    }

    function _unpause() internal whenPaused {
        paused = false;

        emit Unpaused(msg.sender);
    }
}

File 4 of 14 : Reentrancy.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.10;

contract Reentrancy {
    // ============ Constants ============

    uint256 internal constant REENTRANCY_NOT_ENTERED = 1;
    uint256 internal constant REENTRANCY_ENTERED = 2;

    // ============ Mutable Storage ============

    uint256 internal reentrancyStatus;

    // ============ Modifiers ============

    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(reentrancyStatus != REENTRANCY_ENTERED, "Reentrant call");
        // Any calls to nonReentrant after this point will fail
        reentrancyStatus = REENTRANCY_ENTERED;
        _;
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip2200)
        reentrancyStatus = REENTRANCY_NOT_ENTERED;
    }
}

File 5 of 14 : ERC721.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.10;

import {IERC721, IERC721Events, IERC721Metadata, IERC721Receiver} from "./interface/IERC721.sol";
import {IERC165} from "../ERC165/interface/IERC165.sol";

abstract contract ERC165 is IERC165 {
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override
        returns (bool)
    {
        return interfaceId == type(IERC165).interfaceId;
    }
}

/**
 * Based on: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/ERC721.sol
 */
contract ERC721 is ERC165, IERC721, IERC721Events {
    mapping(uint256 => address) internal _owners;
    mapping(address => uint256) internal _balances;
    mapping(uint256 => address) private _tokenApprovals;
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override
        returns (bool)
    {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

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

    function ownerOf(uint256 tokenId) public view virtual returns (address) {
        address owner = _owners[tokenId];
        require(
            owner != address(0),
            "ERC721: owner query for nonexistent token"
        );
        return owner;
    }

    /**
     * @dev Base URI for computing {tokenURI}. Empty by default, can be overriden
     * in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

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

        _approve(to, tokenId);
    }

    function getApproved(uint256 tokenId)
        public
        view
        virtual
        override
        returns (address)
    {
        require(
            _exists(tokenId),
            "ERC721: approved query for nonexistent token"
        );

        return _tokenApprovals[tokenId];
    }

    function setApprovalForAll(address operator, bool approved)
        public
        virtual
        override
    {
        require(operator != msg.sender, "ERC721: approve to caller");

        _operatorApprovals[msg.sender][operator] = approved;
        emit ApprovalForAll(msg.sender, operator, approved);
    }

    function isApprovedForAll(address owner, address operator)
        public
        view
        virtual
        override
        returns (bool)
    {
        return _operatorApprovals[owner][operator];
    }

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

        _transfer(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(
            _isApprovedOrOwner(msg.sender, tokenId),
            "ERC721: transfer caller is not owner nor approved"
        );
        _safeTransfer(from, to, tokenId, _data);
    }

    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"
        );
    }

    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    function _isApprovedOrOwner(address spender, uint256 tokenId)
        internal
        view
        virtual
        returns (bool)
    {
        require(
            _exists(tokenId),
            "ERC721: operator query for nonexistent token"
        );
        address owner = ownerOf(tokenId);
        return (spender == owner ||
            getApproved(tokenId) == spender ||
            isApprovedForAll(owner, spender));
    }

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

    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"
        );
    }

    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");

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

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

    function _burn(uint256 tokenId) internal virtual {
        address owner = ownerOf(tokenId);

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

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

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

    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(
            ownerOf(tokenId) == from,
            "ERC721: transfer of token that is not own"
        );
        require(to != address(0), "ERC721: transfer to the zero address");

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

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

        emit Transfer(from, to, tokenId);
    }

    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ownerOf(tokenId), to, tokenId);
    }

    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (isContract(to)) {
            try
                IERC721Receiver(to).onERC721Received(
                    msg.sender,
                    from,
                    tokenId,
                    _data
                )
            returns (bytes4 retval) {
                return retval == IERC721Receiver(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert(
                        "ERC721: transfer to non ERC721Receiver implementer"
                    );
                } else {
                    // solhint-disable-next-line no-inline-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    // https://github.com/OpenZeppelin/openzeppelin-contracts/blob/7f6a1666fac8ecff5dd467d0938069bc221ea9e0/contracts/utils/Address.sol
    function isContract(address account) internal view returns (bool) {
        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }
}

File 6 of 14 : IERC721.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.10;

interface IERC721 {
    function balanceOf(address owner) external view returns (uint256 balance);

    function ownerOf(uint256 tokenId) external view returns (address owner);

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    function approve(address to, uint256 tokenId) external;

    function getApproved(uint256 tokenId)
        external
        view
        returns (address operator);

    function setApprovalForAll(address operator, bool _approved) external;

    function isApprovedForAll(address owner, address operator)
        external
        view
        returns (bool);

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

interface IERC721Events {
    event Transfer(
        address indexed from,
        address indexed to,
        uint256 indexed tokenId
    );
    event Approval(
        address indexed owner,
        address indexed approved,
        uint256 indexed tokenId
    );
    event ApprovalForAll(
        address indexed owner,
        address indexed operator,
        bool approved
    );
}

interface IERC721Metadata {
    function name() external view returns (string memory);

    function symbol() external view returns (string memory);

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

interface IERC721Burnable is IERC721 {
    function burn(uint256 tokenId) external;
}

interface IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

interface IERC721Royalties {
    function getFeeRecipients(uint256 id)
        external
        view
        returns (address payable[] memory);

    function getFeeBps(uint256 id) external view returns (uint256[] memory);
}

File 7 of 14 : IERC2309.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.10;

interface IERC2309 {
    event ConsecutiveTransfer(
        uint256 indexed fromTokenId,
        uint256 toTokenId,
        address indexed fromAddress,
        address indexed toAddress
    );
}

File 8 of 14 : IERC2981.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.10;

/**
 * @title IERC2981
 * @notice Interface for the NFT Royalty Standard
 */
interface IERC2981 {
    // / bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a

    /**
     * @notice Called with the sale price to determine how much royalty
     *         is owed and to whom.
     * @param _tokenId - the NFT asset queried for royalty information
     * @param _salePrice - the sale price of the NFT asset specified by _tokenId
     * @return receiver - address of who should be sent the royalty payment
     * @return royaltyAmount - the royalty payment amount for _salePrice
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 9 of 14 : IEditions.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.10;

interface IEditionsEvents {
    event EditionPurchased(
        uint256 indexed tokenId,
        address indexed nftRecipient,
        uint256 amountPaid
    );

    event RoyaltyChange(
        address indexed oldRoyaltyRecipient,
        uint256 oldRoyaltyBPS,
        address indexed newRoyaltyRecipient,
        uint256 newRoyaltyBPS
    );

    event RendererSet(address indexed renderer);

    event EditionLimitSet(uint256 oldLimit, uint256 newLimit);

    event Withdrawal(address indexed recipient, uint256 amount, uint256 fee);

    event FundingRecipientSet(
        address indexed oldFundingRecipient,
        address indexed newFundingRecipient
    );

    event PriceSet(uint256 price);
}

interface IEditions {
    struct Edition {
        // Edition price
        uint256 price;
        // Edition supply limit
        uint256 limit;
        // Edition contentHash
        bytes32 contentHash;
    }

    // ============ Authorization ============

    function factory() external returns (address);

    // ============ Fee Configuration ============

    function feeConfig() external returns (address);

    function treasuryConfig() external returns (address);

    // ============ Edition Data ============

    function price() external returns (uint256);

    function limit() external returns (uint256);

    function contentHash() external returns (bytes32);

    // ============ Royalty Info (ERC2981) ============

    function royaltyRecipient() external returns (address);

    function royaltyBPS() external returns (uint256);

    // ============ Rendering ============

    function renderer() external view returns (address);

    // ============ Initializing ============

    function initialize(
        address owner_,
        string memory name_,
        string memory symbol_,
        string memory contentURI_,
        string memory contractURI_,
        Edition memory edition_,
        bool paused_
    ) external;

    // ============ Pause Methods ============

    function unpause() external;

    function pause() external;

    // ============ Allocation ============

    function allocate(address recipient, uint256 count) external;

    // ============ Purchase ============

    function purchase(address recipient)
        external
        payable
        returns (uint256 tokenId);

    // ============ Minting ============

    function mint(address recipient) external returns (uint256 tokenId);

    function setLimit(uint256 limit_) external;

    // ============ ERC2981 Methods ============

    function setRoyaltyInfo(
        address payable royaltyRecipient_,
        uint256 royaltyPercentage_
    ) external;

    // ============ Rendering Methods ============

    function setRenderer(address renderer_) external;

    function contractURI() external view returns (string memory);

    // ============ Withdrawal ============

    function setPrice(uint256 price_) external;

    function withdraw(uint16 feeBPS, address fundingRecipient) external;
}

File 10 of 14 : IRenderer.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.10;

interface IRenderer {
    function tokenURI(uint256 tokenId) external view returns (string calldata);

    function contractURI() external view returns (string calldata);
}

File 11 of 14 : ITreasuryConfig.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.10;

interface ITreasuryConfig {
    function treasury() external returns (address payable);

    function distributionModel() external returns (address);
}

File 12 of 14 : IMirrorTreasury.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.10;

interface IMirrorTreasury {
    function transferFunds(address payable to, uint256 value) external;

    function transferERC20(
        address token,
        address to,
        uint256 value
    ) external;

    function contributeWithTributary(address tributary) external payable;

    function contribute(uint256 amount) external payable;
}

File 13 of 14 : MirrorFeeConfig.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.10;

import {Ownable} from "../lib/Ownable.sol";

interface IMirrorFeeConfig {
    function maxFee() external returns (uint16);

    function minFee() external returns (uint16);

    function isFeeValid(uint16) external view returns (bool);

    function updateMaxFee(uint16 newFee) external;

    function updateMinFee(uint16 newFee) external;
}

/**
 * @title MirrorFeeConfig
 * @author MirrorXYZ
 */
contract MirrorFeeConfig is IMirrorFeeConfig, Ownable {
    uint16 public override maxFee = 500;
    uint16 public override minFee = 250;

    constructor(address owner_) Ownable(owner_) {}

    function updateMaxFee(uint16 newFee) external override onlyOwner {
        maxFee = newFee;
    }

    function updateMinFee(uint16 newFee) external override onlyOwner {
        minFee = newFee;
    }

    function isFeeValid(uint16 fee)
        external
        view
        returns (bool isBeweenMinAndMax)
    {
        isBeweenMinAndMax = (minFee <= fee) && (fee <= maxFee);
    }
}

File 14 of 14 : IERC165.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.10;

interface IERC165 {
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

abstract contract ERC165 is IERC165 {
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override
        returns (bool)
    {
        return interfaceId == type(IERC165).interfaceId;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"factory_","type":"address"},{"internalType":"address","name":"feeConfig_","type":"address"},{"internalType":"address","name":"treasuryConfig_","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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"},{"indexed":true,"internalType":"address","name":"toAddress","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldLimit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newLimit","type":"uint256"}],"name":"EditionLimitSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"nftRecipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountPaid","type":"uint256"}],"name":"EditionPurchased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldFundingRecipient","type":"address"},{"indexed":true,"internalType":"address","name":"newFundingRecipient","type":"address"}],"name":"FundingRecipientSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"PriceSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"renderer","type":"address"}],"name":"RendererSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldRoyaltyRecipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"oldRoyaltyBPS","type":"uint256"},{"indexed":true,"internalType":"address","name":"newRoyaltyRecipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"newRoyaltyBPS","type":"uint256"}],"name":"RoyaltyChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"allocate","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cancelOwnershipTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contentHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeConfig","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"contentURI_","type":"string"},{"internalType":"string","name":"contractURI_","type":"string"},{"components":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"limit","type":"uint256"},{"internalType":"bytes32","name":"contentHash","type":"bytes32"}],"internalType":"struct IEditions.Edition","name":"edition_","type":"tuple"},{"internalType":"bool","name":"paused_","type":"bool"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isNextOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"purchase","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renderer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyBPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"limit_","type":"uint256"}],"name":"setLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price_","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"renderer_","type":"address"}],"name":"setRenderer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"royaltyRecipient_","type":"address"},{"internalType":"uint256","name":"royaltyBPS_","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":"pure","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":"nextOwner_","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryConfig","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"feeBPS","type":"uint16"},{"internalType":"address","name":"fundingRecipient","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e06040523480156200001157600080fd5b5060405162003568380380620035688339810160408190526200003491620000ca565b600080546001600160a01b03191681556040518190819081907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018054911515600160a01b0260ff60a01b199092169190911790556001600160a01b0392831660805290821660a0521660c05262000114565b80516001600160a01b0381168114620000c557600080fd5b919050565b600080600060608486031215620000e057600080fd5b620000eb84620000ad565b9250620000fb60208501620000ad565b91506200010b60408501620000ad565b90509250925092565b60805160a05160c05161340f62000159600039600081816107a3015261245b0152600081816103c4015261238301526000818161074f0152610c3b015261340f6000f3fe6080604052600436106102dc5760003560e01c8063715018a611610184578063b78b52df116100d6578063cfd7b0df1161008a578063e985e9c511610064578063e985e9c5146107fa578063ed459df214610843578063f2fde38b1461086357600080fd5b8063cfd7b0df14610791578063e2e784d5146107c5578063e8a3d485146107e557600080fd5b8063b9c9d93a116100bb578063b9c9d93a14610727578063c45a01551461073d578063c87b56dd1461077157600080fd5b8063b78b52df146106e7578063b88d4fde1461070757600080fd5b80638f32d59b11610138578063a035b1fe11610112578063a035b1fe1461069b578063a22cb465146106b1578063a4d66daf146106d157600080fd5b80638f32d59b1461064657806391b7f5ed1461066657806395d89b411461068657600080fd5b80638456cb59116101695780638456cb59146105f15780638ada6b0f146106065780638da5cb5b1461062657600080fd5b8063715018a6146105c757806379ba5097146105dc57600080fd5b80632a55205a1161023d57806356d3163d116101f1578063646c2e33116101cb578063646c2e33146105715780636a6278421461058757806370a08231146105a757600080fd5b806356d3163d146105105780635c975abb146105305780636352211e1461055157600080fd5b806342842e0e1161022257806342842e0e146104b05780634314a946146104d05780634c00de82146104f057600080fd5b80632a55205a1461045c5780633f4ba83a1461049b57600080fd5b80631e5eb1d01161029457806323b872dd1161027957806323b872dd146103fb57806325b31a971461041b57806327ea6f2b1461043c57600080fd5b80631e5eb1d0146103b257806323452b9c146103e657600080fd5b8063081812fc116102c5578063081812fc14610338578063095ea7b3146103705780630e5896ed1461039257600080fd5b806301ffc9a7146102e157806306fdde0314610316575b600080fd5b3480156102ed57600080fd5b506103016102fc366004612c6a565b610883565b60405190151581526020015b60405180910390f35b34801561032257600080fd5b5061032b6109b4565b60405161030d9190612cdf565b34801561034457600080fd5b50610358610353366004612cf2565b610a42565b6040516001600160a01b03909116815260200161030d565b34801561037c57600080fd5b5061039061038b366004612d2b565b610ae0565b005b34801561039e57600080fd5b506103906103ad366004612e99565b610c30565b3480156103be57600080fd5b506103587f000000000000000000000000000000000000000000000000000000000000000081565b3480156103f257600080fd5b50610390610d55565b34801561040757600080fd5b50610390610416366004612f7b565b610dc1565b61042e610429366004612fbc565b610e48565b60405190815260200161030d565b34801561044857600080fd5b50610390610457366004612cf2565b610f04565b34801561046857600080fd5b5061047c610477366004612fd9565b611021565b604080516001600160a01b03909316835260208301919091520161030d565b3480156104a757600080fd5b50610390611057565b3480156104bc57600080fd5b506103906104cb366004612f7b565b6110bb565b3480156104dc57600080fd5b506103906104eb366004612ffb565b6110d6565b3480156104fc57600080fd5b50600f54610358906001600160a01b031681565b34801561051c57600080fd5b5061039061052b366004612fbc565b6111ef565b34801561053c57600080fd5b5060015461030190600160a01b900460ff1681565b34801561055d57600080fd5b5061035861056c366004612cf2565b6112ec565b34801561057d57600080fd5b5061042e600e5481565b34801561059357600080fd5b5061042e6105a2366004612fbc565b6113a7565b3480156105b357600080fd5b5061042e6105c2366004612fbc565b61140b565b3480156105d357600080fd5b506103906114a5565b3480156105e857600080fd5b50610390611507565b3480156105fd57600080fd5b506103906115cf565b34801561061257600080fd5b50601154610358906001600160a01b031681565b34801561063257600080fd5b50600054610358906001600160a01b031681565b34801561065257600080fd5b506000546001600160a01b03163314610301565b34801561067257600080fd5b50610390610681366004612cf2565b611631565b34801561069257600080fd5b5061032b6116c6565b3480156106a757600080fd5b5061042e600c5481565b3480156106bd57600080fd5b506103906106cc36600461303b565b6116d3565b3480156106dd57600080fd5b5061042e600d5481565b3480156106f357600080fd5b50610390610702366004612d2b565b611798565b34801561071357600080fd5b50610390610722366004613069565b6118cc565b34801561073357600080fd5b5061042e60105481565b34801561074957600080fd5b506103587f000000000000000000000000000000000000000000000000000000000000000081565b34801561077d57600080fd5b5061032b61078c366004612cf2565b61195a565b34801561079d57600080fd5b506103587f000000000000000000000000000000000000000000000000000000000000000081565b3480156107d157600080fd5b506103906107e0366004612d2b565b611aa4565b3480156107f157600080fd5b5061032b611be9565b34801561080657600080fd5b506103016108153660046130e9565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561084f57600080fd5b506001546001600160a01b03163314610301565b34801561086f57600080fd5b5061039061087e366004612fbc565b611d0d565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061091657507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061096257507fffffffff0000000000000000000000000000000000000000000000000000000082167f01ffc9a700000000000000000000000000000000000000000000000000000000145b806109ae57507fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a00000000000000000000000000000000000000000000000000000000145b92915050565b600780546109c190613107565b80601f01602080910402602001604051908101604052809291908181526020018280546109ed90613107565b8015610a3a5780601f10610a0f57610100808354040283529160200191610a3a565b820191906000526020600020905b815481529060010190602001808311610a1d57829003601f168201915b505050505081565b6000610a4d82611ddf565b610ac45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610aeb826112ec565b9050806001600160a01b0316836001600160a01b03161415610b755760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610abb565b336001600160a01b0382161480610baf57506001600160a01b038116600090815260066020908152604080832033845290915290205460ff165b610c215760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610abb565b610c2b8383611e07565b505050565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610ca85760405162461bcd60e51b815260206004820152601360248201527f756e617574686f72697a65642063616c6c6572000000000000000000000000006044820152606401610abb565b8551610cbb906007906020890190612ba0565b508451610ccf906008906020880190612ba0565b508351610ce390600b906020870190612ba0565b508251610cf790600a906020860190612ba0565b508151600c556020820151600d556040820151600e558015610d1b57610d1b611e75565b610d26600088611f33565b5050600f80546001600160a01b0319166001600160a01b03969096169590951790945550506103e86010555050565b6000546001600160a01b03163314610daf5760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865206f776e65722e00000000000000006044820152606401610abb565b600180546001600160a01b0319169055565b610dcb3382611f82565b610e3d5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610abb565b610c2b83838361207d565b600154600090600160a01b900460ff1615610ea55760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610abb565b600c543414610ef65760405162461bcd60e51b815260206004820152600f60248201527f696e636f72726563742076616c756500000000000000000000000000000000006044820152606401610abb565b6109ae8261224a565b919050565b6000546001600160a01b03163314610f5e5760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865206f776e65722e00000000000000006044820152606401610abb565b600d541580610f6e5750600d5481105b610fe05760405162461bcd60e51b815260206004820152602260248201527f6c696d6974206d757374206265203c207468616e2063757272656e74206c696d60448201527f69740000000000000000000000000000000000000000000000000000000000006064820152608401610abb565b600d5460408051918252602082018390527f7101bc938c07e99cfa049123e41043b4805bc564a7ea4533049abb1cccf3e248910160405180910390a1600d55565b600f546010546001600160a01b0390911690600090612710906110449085613158565b61104e919061318d565b90509250929050565b6000546001600160a01b031633146110b15760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865206f776e65722e00000000000000006044820152606401610abb565b6110b96122a0565b565b610c2b838383604051806020016040528060008152506118cc565b6000546001600160a01b031633146111305760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865206f776e65722e00000000000000006044820152606401610abb565b6002805414156111825760405162461bcd60e51b815260206004820152600e60248201527f5265656e7472616e742063616c6c0000000000000000000000000000000000006044820152606401610abb565b600280556001600160a01b0381166111dc5760405162461bcd60e51b815260206004820152601960248201527f6d757374207365742066756e64696e67526563697069656e74000000000000006044820152606401610abb565b6111e68282612351565b50506001600255565b6000546001600160a01b031633146112495760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865206f776e65722e00000000000000006044820152606401610abb565b6011546001600160a01b0316156112a25760405162461bcd60e51b815260206004820152601460248201527f72656e646572657220616c7265616479207365740000000000000000000000006044820152606401610abb565b601180546001600160a01b0319166001600160a01b0383169081179091556040517f869c6ebc45b752b03abf2550b2114eed8d11ba3a40ea9da00d3ef99fd004af7290600090a250565b6000818152600360205260408120546001600160a01b031680158015611313575060135483105b1561132b5750506012546001600160a01b0316919050565b6001600160a01b0381166109ae5760405162461bcd60e51b815260206004820152602360248201527f4552433732313a20717565727920666f72206e6f6e6578697374656e7420746f60448201527f6b656e00000000000000000000000000000000000000000000000000000000006064820152608401610abb565b600080546001600160a01b031633146114025760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865206f776e65722e00000000000000006044820152606401610abb565b6109ae82612531565b60006001600160a01b0382166114895760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610abb565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146114ff5760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865206f776e65722e00000000000000006044820152606401610abb565b6110b96125bb565b6001546001600160a01b031633146115875760405162461bcd60e51b815260206004820152602c60248201527f63757272656e74206f776e6572206d757374207365742063616c6c657220617360448201527f206e657874206f776e65722e00000000000000000000000000000000000000006064820152608401610abb565b600180546001600160a01b0319908116909155600080543392168217815560405182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3565b6000546001600160a01b031633146116295760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865206f776e65722e00000000000000006044820152606401610abb565b6110b9611e75565b6000546001600160a01b0316331461168b5760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865206f776e65722e00000000000000006044820152606401610abb565b600c8190556040518181527f6bfd5e75539a9d2626425a2e2922675256b219fe546d63dad56011759b9a2f669060200160405180910390a150565b600880546109c190613107565b6001600160a01b03821633141561172c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610abb565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b031633146117f25760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865206f776e65722e00000000000000006044820152606401610abb565b60095415801561180e5750600d54158061180e5750600d548111155b61185a5760405162461bcd60e51b815260206004820152600f60248201527f63616e6e6f7420616c6c6f6361746500000000000000000000000000000000006044820152606401610abb565b601280546001600160a01b0319166001600160a01b038416908117909155601382905560098290556000818152600460209081526040808320859055518481526001917fdeaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d910160405180910390a45050565b6118d63383611f82565b6119485760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610abb565b61195484848484612605565b50505050565b606061196582611ddf565b6119d75760405162461bcd60e51b815260206004820152602360248201527f4552433732313a20717565727920666f72206e6f6e6578697374656e7420746f60448201527f6b656e00000000000000000000000000000000000000000000000000000000006064820152608401610abb565b6011546001600160a01b031615611a72576011546040517fc87b56dd000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b039091169063c87b56dd90602401600060405180830381865afa158015611a4a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109ae91908101906131a1565b600b611a7d8361268e565b604051602001611a8e929190613234565b6040516020818303038152906040529050919050565b6000546001600160a01b03163314611afe5760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865206f776e65722e00000000000000006044820152606401610abb565b612710811115611b765760405162461bcd60e51b815260206004820152602860248201527f627073206d757374206265206c657373207468616e206f7220657175616c207460448201527f6f2031302c3030300000000000000000000000000000000000000000000000006064820152608401610abb565b600f5460105460408051918252602082018490526001600160a01b038581169316917f880886fe0560f4b0a18941fe4c443a499c03fd9491832ddfc895278ac7e8878c910160405180910390a3600f80546001600160a01b0319166001600160a01b039390931692909217909155601055565b6011546060906001600160a01b031615611c7d57601160009054906101000a90046001600160a01b03166001600160a01b031663e8a3d4856040518163ffffffff1660e01b8152600401600060405180830381865afa158015611c50573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611c7891908101906131a1565b905090565b600a8054611c8a90613107565b80601f0160208091040260200160405190810160405280929190818152602001828054611cb690613107565b8015611d035780601f10611cd857610100808354040283529160200191611d03565b820191906000526020600020905b815481529060010190602001808311611ce657829003601f168201915b5050505050905090565b6000546001600160a01b03163314611d675760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865206f776e65722e00000000000000006044820152606401610abb565b6001600160a01b038116611dbd5760405162461bcd60e51b815260206004820152601f60248201527f4e657874206f776e657220697320746865207a65726f20616464726573732e006044820152606401610abb565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600360205260408120546001600160a01b03161515806109ae5750506013541190565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611e3c826112ec565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600154600160a01b900460ff1615611ecf5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610abb565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b1790556040513381527f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258906020015b60405180910390a1565b600080546001600160a01b0319166001600160a01b0383811691821783556040519192908516917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000611f8d82611ddf565b611fff5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610abb565b600061200a836112ec565b9050806001600160a01b0316846001600160a01b031614806120455750836001600160a01b031661203a84610a42565b6001600160a01b0316145b8061207557506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612090826112ec565b6001600160a01b03161461210c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610abb565b6001600160a01b0382166121875760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610abb565b612192600082611e07565b6001600160a01b03831660009081526004602052604081208054600192906121bb9084906132d2565b90915550506001600160a01b03821660009081526004602052604081208054600192906121e99084906132e9565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061225582612531565b9050816001600160a01b0316817f9ff94e41b333848c91dc9f5d2ff634def8313879f5fd4e84ed4e4cbbacd9f7963460405161229391815260200190565b60405180910390a3919050565b600154600160a01b900460ff166122f95760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610abb565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690556040513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa90602001611f29565b6040517f2b48b31700000000000000000000000000000000000000000000000000000000815261ffff831660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632b48b31790602401602060405180830381865afa1580156123d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123f69190613301565b6124425760405162461bcd60e51b815260206004820152600b60248201527f696e76616c6964206665650000000000000000000000000000000000000000006044820152606401610abb565b600061244e47846127c0565b905080156124e3576124e37f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166361d027b36040518163ffffffff1660e01b81526004016020604051808303816000875af11580156124b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124dd919061331e565b826127e4565b60408051478152602081018390526001600160a01b038416917fdf273cb619d95419a9cd0ec88123a0538c85064229baa6363788f743fff90deb910160405180910390a2610c2b82476127e4565b60006009600081546125429061333b565b9182905550600d5490915015806125655750600d546125629060016132e9565b81105b6125b15760405162461bcd60e51b815260206004820152600860248201527f736f6c64206f75740000000000000000000000000000000000000000000000006044820152606401610abb565b610eff82826128d8565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b61261084848461207d565b61261c84848484612a0b565b6119545760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610abb565b6060816126ce57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156126f857806126e28161333b565b91506126f19050600a8361318d565b91506126d2565b60008167ffffffffffffffff81111561271357612713612d57565b6040519080825280601f01601f19166020018201604052801561273d576020820181803683370190505b5090505b8415612075576127526001836132d2565b915061275f600a86613356565b61276a9060306132e9565b60f81b81838151811061277f5761277f61336a565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506127b9600a8661318d565b9450612741565b60006127106127d361ffff841685613158565b6127dd919061318d565b9392505050565b804710156128345760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610abb565b6000826001600160a01b0316825a6040519091906000818181858888f193505050503d8060008114612882576040519150601f19603f3d011682016040523d82523d6000602084013e612887565b606091505b5050905080610c2b5760405162461bcd60e51b815260206004820152601260248201527f726563697069656e7420726576657274656400000000000000000000000000006044820152606401610abb565b6001600160a01b03821661292e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610abb565b61293781611ddf565b156129845760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610abb565b6001600160a01b03821660009081526004602052604081208054600192906129ad9084906132e9565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000833b15612b95576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612a5f903390899088908890600401613380565b6020604051808303816000875af1925050508015612a9a575060408051601f3d908101601f19168201909252612a97918101906133bc565b60015b612b4a573d808015612ac8576040519150601f19603f3d011682016040523d82523d6000602084013e612acd565b606091505b508051612b425760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610abb565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612075565b506001949350505050565b828054612bac90613107565b90600052602060002090601f016020900481019282612bce5760008555612c14565b82601f10612be757805160ff1916838001178555612c14565b82800160010185558215612c14579182015b82811115612c14578251825591602001919060010190612bf9565b50612c20929150612c24565b5090565b5b80821115612c205760008155600101612c25565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114612c6757600080fd5b50565b600060208284031215612c7c57600080fd5b81356127dd81612c39565b60005b83811015612ca2578181015183820152602001612c8a565b838111156119545750506000910152565b60008151808452612ccb816020860160208601612c87565b601f01601f19169290920160200192915050565b6020815260006127dd6020830184612cb3565b600060208284031215612d0457600080fd5b5035919050565b6001600160a01b0381168114612c6757600080fd5b8035610eff81612d0b565b60008060408385031215612d3e57600080fd5b8235612d4981612d0b565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612d9657612d96612d57565b604052919050565b600067ffffffffffffffff821115612db857612db8612d57565b50601f01601f191660200190565b6000612dd9612dd484612d9e565b612d6d565b9050828152838383011115612ded57600080fd5b828260208301376000602084830101529392505050565b600082601f830112612e1557600080fd5b6127dd83833560208501612dc6565b600060608284031215612e3657600080fd5b6040516060810181811067ffffffffffffffff82111715612e5957612e59612d57565b80604052508091508235815260208301356020820152604083013560408201525092915050565b8015158114612c6757600080fd5b8035610eff81612e80565b6000806000806000806000610120888a031215612eb557600080fd5b612ebe88612d20565b9650602088013567ffffffffffffffff80821115612edb57600080fd5b612ee78b838c01612e04565b975060408a0135915080821115612efd57600080fd5b612f098b838c01612e04565b965060608a0135915080821115612f1f57600080fd5b612f2b8b838c01612e04565b955060808a0135915080821115612f4157600080fd5b50612f4e8a828b01612e04565b935050612f5e8960a08a01612e24565b9150612f6d6101008901612e8e565b905092959891949750929550565b600080600060608486031215612f9057600080fd5b8335612f9b81612d0b565b92506020840135612fab81612d0b565b929592945050506040919091013590565b600060208284031215612fce57600080fd5b81356127dd81612d0b565b60008060408385031215612fec57600080fd5b50508035926020909101359150565b6000806040838503121561300e57600080fd5b823561ffff8116811461302057600080fd5b9150602083013561303081612d0b565b809150509250929050565b6000806040838503121561304e57600080fd5b823561305981612d0b565b9150602083013561303081612e80565b6000806000806080858703121561307f57600080fd5b843561308a81612d0b565b9350602085013561309a81612d0b565b925060408501359150606085013567ffffffffffffffff8111156130bd57600080fd5b8501601f810187136130ce57600080fd5b6130dd87823560208401612dc6565b91505092959194509250565b600080604083850312156130fc57600080fd5b823561302081612d0b565b600181811c9082168061311b57607f821691505b6020821081141561313c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561317257613172613142565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261319c5761319c613177565b500490565b6000602082840312156131b357600080fd5b815167ffffffffffffffff8111156131ca57600080fd5b8201601f810184136131db57600080fd5b80516131e9612dd482612d9e565b8181528560208385010111156131fe57600080fd5b61320f826020830160208601612c87565b95945050505050565b6000815161322a818560208601612c87565b9290920192915050565b600080845481600182811c91508083168061325057607f831692505b602080841082141561327057634e487b7160e01b86526022600452602486fd5b8180156132845760018114613295576132c2565b60ff198616895284890196506132c2565b60008b81526020902060005b868110156132ba5781548b8201529085019083016132a1565b505084890196505b50505050505061320f8185613218565b6000828210156132e4576132e4613142565b500390565b600082198211156132fc576132fc613142565b500190565b60006020828403121561331357600080fd5b81516127dd81612e80565b60006020828403121561333057600080fd5b81516127dd81612d0b565b600060001982141561334f5761334f613142565b5060010190565b60008261336557613365613177565b500690565b634e487b7160e01b600052603260045260246000fd5b60006001600160a01b038087168352808616602084015250836040830152608060608301526133b26080830184612cb3565b9695505050505050565b6000602082840312156133ce57600080fd5b81516127dd81612c3956fea2646970667358221220ee43572d26f5df083892822b92816a2fde56fb54829f8d4ff598167c0beac5ff64736f6c634300080a00330000000000000000000000006ef0f6be2556cfaff90bf0d572d7e38a13d715ad0000000000000000000000002b27d7a2b62d532e8d34fb8b35a41c75eb90a85400000000000000000000000021a93be569666527dae0fdbfbe7715299dec1202

Deployed Bytecode

0x6080604052600436106102dc5760003560e01c8063715018a611610184578063b78b52df116100d6578063cfd7b0df1161008a578063e985e9c511610064578063e985e9c5146107fa578063ed459df214610843578063f2fde38b1461086357600080fd5b8063cfd7b0df14610791578063e2e784d5146107c5578063e8a3d485146107e557600080fd5b8063b9c9d93a116100bb578063b9c9d93a14610727578063c45a01551461073d578063c87b56dd1461077157600080fd5b8063b78b52df146106e7578063b88d4fde1461070757600080fd5b80638f32d59b11610138578063a035b1fe11610112578063a035b1fe1461069b578063a22cb465146106b1578063a4d66daf146106d157600080fd5b80638f32d59b1461064657806391b7f5ed1461066657806395d89b411461068657600080fd5b80638456cb59116101695780638456cb59146105f15780638ada6b0f146106065780638da5cb5b1461062657600080fd5b8063715018a6146105c757806379ba5097146105dc57600080fd5b80632a55205a1161023d57806356d3163d116101f1578063646c2e33116101cb578063646c2e33146105715780636a6278421461058757806370a08231146105a757600080fd5b806356d3163d146105105780635c975abb146105305780636352211e1461055157600080fd5b806342842e0e1161022257806342842e0e146104b05780634314a946146104d05780634c00de82146104f057600080fd5b80632a55205a1461045c5780633f4ba83a1461049b57600080fd5b80631e5eb1d01161029457806323b872dd1161027957806323b872dd146103fb57806325b31a971461041b57806327ea6f2b1461043c57600080fd5b80631e5eb1d0146103b257806323452b9c146103e657600080fd5b8063081812fc116102c5578063081812fc14610338578063095ea7b3146103705780630e5896ed1461039257600080fd5b806301ffc9a7146102e157806306fdde0314610316575b600080fd5b3480156102ed57600080fd5b506103016102fc366004612c6a565b610883565b60405190151581526020015b60405180910390f35b34801561032257600080fd5b5061032b6109b4565b60405161030d9190612cdf565b34801561034457600080fd5b50610358610353366004612cf2565b610a42565b6040516001600160a01b03909116815260200161030d565b34801561037c57600080fd5b5061039061038b366004612d2b565b610ae0565b005b34801561039e57600080fd5b506103906103ad366004612e99565b610c30565b3480156103be57600080fd5b506103587f0000000000000000000000002b27d7a2b62d532e8d34fb8b35a41c75eb90a85481565b3480156103f257600080fd5b50610390610d55565b34801561040757600080fd5b50610390610416366004612f7b565b610dc1565b61042e610429366004612fbc565b610e48565b60405190815260200161030d565b34801561044857600080fd5b50610390610457366004612cf2565b610f04565b34801561046857600080fd5b5061047c610477366004612fd9565b611021565b604080516001600160a01b03909316835260208301919091520161030d565b3480156104a757600080fd5b50610390611057565b3480156104bc57600080fd5b506103906104cb366004612f7b565b6110bb565b3480156104dc57600080fd5b506103906104eb366004612ffb565b6110d6565b3480156104fc57600080fd5b50600f54610358906001600160a01b031681565b34801561051c57600080fd5b5061039061052b366004612fbc565b6111ef565b34801561053c57600080fd5b5060015461030190600160a01b900460ff1681565b34801561055d57600080fd5b5061035861056c366004612cf2565b6112ec565b34801561057d57600080fd5b5061042e600e5481565b34801561059357600080fd5b5061042e6105a2366004612fbc565b6113a7565b3480156105b357600080fd5b5061042e6105c2366004612fbc565b61140b565b3480156105d357600080fd5b506103906114a5565b3480156105e857600080fd5b50610390611507565b3480156105fd57600080fd5b506103906115cf565b34801561061257600080fd5b50601154610358906001600160a01b031681565b34801561063257600080fd5b50600054610358906001600160a01b031681565b34801561065257600080fd5b506000546001600160a01b03163314610301565b34801561067257600080fd5b50610390610681366004612cf2565b611631565b34801561069257600080fd5b5061032b6116c6565b3480156106a757600080fd5b5061042e600c5481565b3480156106bd57600080fd5b506103906106cc36600461303b565b6116d3565b3480156106dd57600080fd5b5061042e600d5481565b3480156106f357600080fd5b50610390610702366004612d2b565b611798565b34801561071357600080fd5b50610390610722366004613069565b6118cc565b34801561073357600080fd5b5061042e60105481565b34801561074957600080fd5b506103587f0000000000000000000000006ef0f6be2556cfaff90bf0d572d7e38a13d715ad81565b34801561077d57600080fd5b5061032b61078c366004612cf2565b61195a565b34801561079d57600080fd5b506103587f00000000000000000000000021a93be569666527dae0fdbfbe7715299dec120281565b3480156107d157600080fd5b506103906107e0366004612d2b565b611aa4565b3480156107f157600080fd5b5061032b611be9565b34801561080657600080fd5b506103016108153660046130e9565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561084f57600080fd5b506001546001600160a01b03163314610301565b34801561086f57600080fd5b5061039061087e366004612fbc565b611d0d565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061091657507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061096257507fffffffff0000000000000000000000000000000000000000000000000000000082167f01ffc9a700000000000000000000000000000000000000000000000000000000145b806109ae57507fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a00000000000000000000000000000000000000000000000000000000145b92915050565b600780546109c190613107565b80601f01602080910402602001604051908101604052809291908181526020018280546109ed90613107565b8015610a3a5780601f10610a0f57610100808354040283529160200191610a3a565b820191906000526020600020905b815481529060010190602001808311610a1d57829003601f168201915b505050505081565b6000610a4d82611ddf565b610ac45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610aeb826112ec565b9050806001600160a01b0316836001600160a01b03161415610b755760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610abb565b336001600160a01b0382161480610baf57506001600160a01b038116600090815260066020908152604080832033845290915290205460ff165b610c215760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610abb565b610c2b8383611e07565b505050565b336001600160a01b037f0000000000000000000000006ef0f6be2556cfaff90bf0d572d7e38a13d715ad1614610ca85760405162461bcd60e51b815260206004820152601360248201527f756e617574686f72697a65642063616c6c6572000000000000000000000000006044820152606401610abb565b8551610cbb906007906020890190612ba0565b508451610ccf906008906020880190612ba0565b508351610ce390600b906020870190612ba0565b508251610cf790600a906020860190612ba0565b508151600c556020820151600d556040820151600e558015610d1b57610d1b611e75565b610d26600088611f33565b5050600f80546001600160a01b0319166001600160a01b03969096169590951790945550506103e86010555050565b6000546001600160a01b03163314610daf5760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865206f776e65722e00000000000000006044820152606401610abb565b600180546001600160a01b0319169055565b610dcb3382611f82565b610e3d5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610abb565b610c2b83838361207d565b600154600090600160a01b900460ff1615610ea55760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610abb565b600c543414610ef65760405162461bcd60e51b815260206004820152600f60248201527f696e636f72726563742076616c756500000000000000000000000000000000006044820152606401610abb565b6109ae8261224a565b919050565b6000546001600160a01b03163314610f5e5760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865206f776e65722e00000000000000006044820152606401610abb565b600d541580610f6e5750600d5481105b610fe05760405162461bcd60e51b815260206004820152602260248201527f6c696d6974206d757374206265203c207468616e2063757272656e74206c696d60448201527f69740000000000000000000000000000000000000000000000000000000000006064820152608401610abb565b600d5460408051918252602082018390527f7101bc938c07e99cfa049123e41043b4805bc564a7ea4533049abb1cccf3e248910160405180910390a1600d55565b600f546010546001600160a01b0390911690600090612710906110449085613158565b61104e919061318d565b90509250929050565b6000546001600160a01b031633146110b15760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865206f776e65722e00000000000000006044820152606401610abb565b6110b96122a0565b565b610c2b838383604051806020016040528060008152506118cc565b6000546001600160a01b031633146111305760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865206f776e65722e00000000000000006044820152606401610abb565b6002805414156111825760405162461bcd60e51b815260206004820152600e60248201527f5265656e7472616e742063616c6c0000000000000000000000000000000000006044820152606401610abb565b600280556001600160a01b0381166111dc5760405162461bcd60e51b815260206004820152601960248201527f6d757374207365742066756e64696e67526563697069656e74000000000000006044820152606401610abb565b6111e68282612351565b50506001600255565b6000546001600160a01b031633146112495760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865206f776e65722e00000000000000006044820152606401610abb565b6011546001600160a01b0316156112a25760405162461bcd60e51b815260206004820152601460248201527f72656e646572657220616c7265616479207365740000000000000000000000006044820152606401610abb565b601180546001600160a01b0319166001600160a01b0383169081179091556040517f869c6ebc45b752b03abf2550b2114eed8d11ba3a40ea9da00d3ef99fd004af7290600090a250565b6000818152600360205260408120546001600160a01b031680158015611313575060135483105b1561132b5750506012546001600160a01b0316919050565b6001600160a01b0381166109ae5760405162461bcd60e51b815260206004820152602360248201527f4552433732313a20717565727920666f72206e6f6e6578697374656e7420746f60448201527f6b656e00000000000000000000000000000000000000000000000000000000006064820152608401610abb565b600080546001600160a01b031633146114025760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865206f776e65722e00000000000000006044820152606401610abb565b6109ae82612531565b60006001600160a01b0382166114895760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610abb565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146114ff5760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865206f776e65722e00000000000000006044820152606401610abb565b6110b96125bb565b6001546001600160a01b031633146115875760405162461bcd60e51b815260206004820152602c60248201527f63757272656e74206f776e6572206d757374207365742063616c6c657220617360448201527f206e657874206f776e65722e00000000000000000000000000000000000000006064820152608401610abb565b600180546001600160a01b0319908116909155600080543392168217815560405182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3565b6000546001600160a01b031633146116295760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865206f776e65722e00000000000000006044820152606401610abb565b6110b9611e75565b6000546001600160a01b0316331461168b5760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865206f776e65722e00000000000000006044820152606401610abb565b600c8190556040518181527f6bfd5e75539a9d2626425a2e2922675256b219fe546d63dad56011759b9a2f669060200160405180910390a150565b600880546109c190613107565b6001600160a01b03821633141561172c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610abb565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b031633146117f25760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865206f776e65722e00000000000000006044820152606401610abb565b60095415801561180e5750600d54158061180e5750600d548111155b61185a5760405162461bcd60e51b815260206004820152600f60248201527f63616e6e6f7420616c6c6f6361746500000000000000000000000000000000006044820152606401610abb565b601280546001600160a01b0319166001600160a01b038416908117909155601382905560098290556000818152600460209081526040808320859055518481526001917fdeaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d910160405180910390a45050565b6118d63383611f82565b6119485760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610abb565b61195484848484612605565b50505050565b606061196582611ddf565b6119d75760405162461bcd60e51b815260206004820152602360248201527f4552433732313a20717565727920666f72206e6f6e6578697374656e7420746f60448201527f6b656e00000000000000000000000000000000000000000000000000000000006064820152608401610abb565b6011546001600160a01b031615611a72576011546040517fc87b56dd000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b039091169063c87b56dd90602401600060405180830381865afa158015611a4a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109ae91908101906131a1565b600b611a7d8361268e565b604051602001611a8e929190613234565b6040516020818303038152906040529050919050565b6000546001600160a01b03163314611afe5760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865206f776e65722e00000000000000006044820152606401610abb565b612710811115611b765760405162461bcd60e51b815260206004820152602860248201527f627073206d757374206265206c657373207468616e206f7220657175616c207460448201527f6f2031302c3030300000000000000000000000000000000000000000000000006064820152608401610abb565b600f5460105460408051918252602082018490526001600160a01b038581169316917f880886fe0560f4b0a18941fe4c443a499c03fd9491832ddfc895278ac7e8878c910160405180910390a3600f80546001600160a01b0319166001600160a01b039390931692909217909155601055565b6011546060906001600160a01b031615611c7d57601160009054906101000a90046001600160a01b03166001600160a01b031663e8a3d4856040518163ffffffff1660e01b8152600401600060405180830381865afa158015611c50573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611c7891908101906131a1565b905090565b600a8054611c8a90613107565b80601f0160208091040260200160405190810160405280929190818152602001828054611cb690613107565b8015611d035780601f10611cd857610100808354040283529160200191611d03565b820191906000526020600020905b815481529060010190602001808311611ce657829003601f168201915b5050505050905090565b6000546001600160a01b03163314611d675760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865206f776e65722e00000000000000006044820152606401610abb565b6001600160a01b038116611dbd5760405162461bcd60e51b815260206004820152601f60248201527f4e657874206f776e657220697320746865207a65726f20616464726573732e006044820152606401610abb565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600360205260408120546001600160a01b03161515806109ae5750506013541190565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611e3c826112ec565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600154600160a01b900460ff1615611ecf5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610abb565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b1790556040513381527f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258906020015b60405180910390a1565b600080546001600160a01b0319166001600160a01b0383811691821783556040519192908516917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000611f8d82611ddf565b611fff5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610abb565b600061200a836112ec565b9050806001600160a01b0316846001600160a01b031614806120455750836001600160a01b031661203a84610a42565b6001600160a01b0316145b8061207557506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612090826112ec565b6001600160a01b03161461210c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610abb565b6001600160a01b0382166121875760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610abb565b612192600082611e07565b6001600160a01b03831660009081526004602052604081208054600192906121bb9084906132d2565b90915550506001600160a01b03821660009081526004602052604081208054600192906121e99084906132e9565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061225582612531565b9050816001600160a01b0316817f9ff94e41b333848c91dc9f5d2ff634def8313879f5fd4e84ed4e4cbbacd9f7963460405161229391815260200190565b60405180910390a3919050565b600154600160a01b900460ff166122f95760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610abb565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690556040513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa90602001611f29565b6040517f2b48b31700000000000000000000000000000000000000000000000000000000815261ffff831660048201527f0000000000000000000000002b27d7a2b62d532e8d34fb8b35a41c75eb90a8546001600160a01b031690632b48b31790602401602060405180830381865afa1580156123d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123f69190613301565b6124425760405162461bcd60e51b815260206004820152600b60248201527f696e76616c6964206665650000000000000000000000000000000000000000006044820152606401610abb565b600061244e47846127c0565b905080156124e3576124e37f00000000000000000000000021a93be569666527dae0fdbfbe7715299dec12026001600160a01b03166361d027b36040518163ffffffff1660e01b81526004016020604051808303816000875af11580156124b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124dd919061331e565b826127e4565b60408051478152602081018390526001600160a01b038416917fdf273cb619d95419a9cd0ec88123a0538c85064229baa6363788f743fff90deb910160405180910390a2610c2b82476127e4565b60006009600081546125429061333b565b9182905550600d5490915015806125655750600d546125629060016132e9565b81105b6125b15760405162461bcd60e51b815260206004820152600860248201527f736f6c64206f75740000000000000000000000000000000000000000000000006044820152606401610abb565b610eff82826128d8565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b61261084848461207d565b61261c84848484612a0b565b6119545760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610abb565b6060816126ce57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156126f857806126e28161333b565b91506126f19050600a8361318d565b91506126d2565b60008167ffffffffffffffff81111561271357612713612d57565b6040519080825280601f01601f19166020018201604052801561273d576020820181803683370190505b5090505b8415612075576127526001836132d2565b915061275f600a86613356565b61276a9060306132e9565b60f81b81838151811061277f5761277f61336a565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506127b9600a8661318d565b9450612741565b60006127106127d361ffff841685613158565b6127dd919061318d565b9392505050565b804710156128345760405162461bcd60e51b815260206004820152601460248201527f696e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610abb565b6000826001600160a01b0316825a6040519091906000818181858888f193505050503d8060008114612882576040519150601f19603f3d011682016040523d82523d6000602084013e612887565b606091505b5050905080610c2b5760405162461bcd60e51b815260206004820152601260248201527f726563697069656e7420726576657274656400000000000000000000000000006044820152606401610abb565b6001600160a01b03821661292e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610abb565b61293781611ddf565b156129845760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610abb565b6001600160a01b03821660009081526004602052604081208054600192906129ad9084906132e9565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000833b15612b95576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612a5f903390899088908890600401613380565b6020604051808303816000875af1925050508015612a9a575060408051601f3d908101601f19168201909252612a97918101906133bc565b60015b612b4a573d808015612ac8576040519150601f19603f3d011682016040523d82523d6000602084013e612acd565b606091505b508051612b425760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610abb565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612075565b506001949350505050565b828054612bac90613107565b90600052602060002090601f016020900481019282612bce5760008555612c14565b82601f10612be757805160ff1916838001178555612c14565b82800160010185558215612c14579182015b82811115612c14578251825591602001919060010190612bf9565b50612c20929150612c24565b5090565b5b80821115612c205760008155600101612c25565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114612c6757600080fd5b50565b600060208284031215612c7c57600080fd5b81356127dd81612c39565b60005b83811015612ca2578181015183820152602001612c8a565b838111156119545750506000910152565b60008151808452612ccb816020860160208601612c87565b601f01601f19169290920160200192915050565b6020815260006127dd6020830184612cb3565b600060208284031215612d0457600080fd5b5035919050565b6001600160a01b0381168114612c6757600080fd5b8035610eff81612d0b565b60008060408385031215612d3e57600080fd5b8235612d4981612d0b565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612d9657612d96612d57565b604052919050565b600067ffffffffffffffff821115612db857612db8612d57565b50601f01601f191660200190565b6000612dd9612dd484612d9e565b612d6d565b9050828152838383011115612ded57600080fd5b828260208301376000602084830101529392505050565b600082601f830112612e1557600080fd5b6127dd83833560208501612dc6565b600060608284031215612e3657600080fd5b6040516060810181811067ffffffffffffffff82111715612e5957612e59612d57565b80604052508091508235815260208301356020820152604083013560408201525092915050565b8015158114612c6757600080fd5b8035610eff81612e80565b6000806000806000806000610120888a031215612eb557600080fd5b612ebe88612d20565b9650602088013567ffffffffffffffff80821115612edb57600080fd5b612ee78b838c01612e04565b975060408a0135915080821115612efd57600080fd5b612f098b838c01612e04565b965060608a0135915080821115612f1f57600080fd5b612f2b8b838c01612e04565b955060808a0135915080821115612f4157600080fd5b50612f4e8a828b01612e04565b935050612f5e8960a08a01612e24565b9150612f6d6101008901612e8e565b905092959891949750929550565b600080600060608486031215612f9057600080fd5b8335612f9b81612d0b565b92506020840135612fab81612d0b565b929592945050506040919091013590565b600060208284031215612fce57600080fd5b81356127dd81612d0b565b60008060408385031215612fec57600080fd5b50508035926020909101359150565b6000806040838503121561300e57600080fd5b823561ffff8116811461302057600080fd5b9150602083013561303081612d0b565b809150509250929050565b6000806040838503121561304e57600080fd5b823561305981612d0b565b9150602083013561303081612e80565b6000806000806080858703121561307f57600080fd5b843561308a81612d0b565b9350602085013561309a81612d0b565b925060408501359150606085013567ffffffffffffffff8111156130bd57600080fd5b8501601f810187136130ce57600080fd5b6130dd87823560208401612dc6565b91505092959194509250565b600080604083850312156130fc57600080fd5b823561302081612d0b565b600181811c9082168061311b57607f821691505b6020821081141561313c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561317257613172613142565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261319c5761319c613177565b500490565b6000602082840312156131b357600080fd5b815167ffffffffffffffff8111156131ca57600080fd5b8201601f810184136131db57600080fd5b80516131e9612dd482612d9e565b8181528560208385010111156131fe57600080fd5b61320f826020830160208601612c87565b95945050505050565b6000815161322a818560208601612c87565b9290920192915050565b600080845481600182811c91508083168061325057607f831692505b602080841082141561327057634e487b7160e01b86526022600452602486fd5b8180156132845760018114613295576132c2565b60ff198616895284890196506132c2565b60008b81526020902060005b868110156132ba5781548b8201529085019083016132a1565b505084890196505b50505050505061320f8185613218565b6000828210156132e4576132e4613142565b500390565b600082198211156132fc576132fc613142565b500190565b60006020828403121561331357600080fd5b81516127dd81612e80565b60006020828403121561333057600080fd5b81516127dd81612d0b565b600060001982141561334f5761334f613142565b5060010190565b60008261336557613365613177565b500690565b634e487b7160e01b600052603260045260246000fd5b60006001600160a01b038087168352808616602084015250836040830152608060608301526133b26080830184612cb3565b9695505050505050565b6000602082840312156133ce57600080fd5b81516127dd81612c3956fea2646970667358221220ee43572d26f5df083892822b92816a2fde56fb54829f8d4ff598167c0beac5ff64736f6c634300080a0033

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

0000000000000000000000006ef0f6be2556cfaff90bf0d572d7e38a13d715ad0000000000000000000000002b27d7a2b62d532e8d34fb8b35a41c75eb90a85400000000000000000000000021a93be569666527dae0fdbfbe7715299dec1202

-----Decoded View---------------
Arg [0] : factory_ (address): 0x6EF0F6bE2556Cfaff90Bf0D572d7E38A13d715ad
Arg [1] : feeConfig_ (address): 0x2B27d7A2B62D532E8D34FB8b35A41c75Eb90a854
Arg [2] : treasuryConfig_ (address): 0x21A93bE569666527dAe0FDBFbe7715299dEC1202

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000006ef0f6be2556cfaff90bf0d572d7e38a13d715ad
Arg [1] : 0000000000000000000000002b27d7a2b62d532e8d34fb8b35a41c75eb90a854
Arg [2] : 00000000000000000000000021a93be569666527dae0fdbfbe7715299dec1202


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

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.