ETH Price: $3,417.21 (+3.54%)
Gas: 24.3 Gwei

Token

Waifu Potions (WP)
 

Overview

Max Total Supply

1,780 WP

Holders

229

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
vandavenport.eth
0x945FC81C9edc66609F54cD19Cdb4500713F8a825
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Official concoctions crafted to improve your warrior. Use at your own risk.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
WaifuPotions

Compiler Version
v0.8.1+commit.df193b15

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 18 : WaifuPotions.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts/utils/Counters.sol";

/**
                                o  .      #
                                . .  .    ##
                                . O o .  ###
                              .  o  .     #
                                o O.      |
                                . o O     |/|
                                ___o_    /,,|
                                | O |   |,,,|
                                |o .|   | ,,|
                                | .o|   | , |
                                |O  |   | , |
                                | .O|   |   |
                              __|o .|__ |   |
                             / . O o  o\|   |
                            /. O .o .O .\   |
                           |^^^^^^^^^^^^^|  |
                           |             |__|_
                            \           /======
                             \_________/
         __   __  ___       __        __     _______  ____  ____  
        |"  |/  \|  "|     /""\      |" \   /"     "|("  _||_ " | 
        |'  /    \:  |    /    \     ||  | (: ______)|   (  ) : | 
        |: /'        |   /' /\  \    |:  |  \/    |  (:  |  | . ) 
         \//  /\'    |  //  __'  \   |.  |  // ___)   \\ \__/ //  
         /   /  \\   | /   /  \\  \  /\  |\(:  (      /\\ __ //\  
        |___/    \___|(___/    \___)(__\_|_)\__/     (__________) 

   _______    ______  ___________  __      ______    _____  ___    ________  
  |   __ "\  /    " \("     _   ")|" \    /    " \  (\"   \|"  \  /"       ) 
  (. |__) :)// ____  \)__/  \\__/ ||  |  // ____  \ |.\\   \    |(:   \___/  
  |:  ____//  /    ) :)  \\_ /    |:  | /  /    ) :)|: \.   \\  | \___  \    
  (|  /   (: (____/ //   |.  |    |.  |(: (____/ // |.  \    \. |  __/  \\   
 /|__/ \   \        /    \:  |    /\  |\\        /  |    \    \ | /" \   :)  
(_______)   \"_____/      \__|   (__\_|_)\"_____/    \___|\____\)(_______/   

 */

/**
 * @title Waifu Potions ERC1155 Smart Contract
 * @dev Extends ERC1155 
 */

contract WaifuPotions is ERC1155, ERC1155Supply, ERC1155Burnable, Ownable, PaymentSplitter, ReentrancyGuard {
    using Counters for Counters.Counter;
    Counters.Counter private counter; 
    string _name = "Waifu Potions";
    string _symbol = "WP";
    string private _contractURI;
    address public minterAddress;   
    bool public mintIsActivePublic = false;
    bool public mintIsActiveClaim = false;

    mapping(uint256 => Potion) public potions;

    struct Potion {
        uint256 tokenPrice;
        uint256 maxTokensPerTxn;
        uint256 numMintedPublic;
        uint256 maxTokensPublic;
        bytes32 merkleRoot;
        mapping(address => bool) claimed;
    }

    constructor(address[] memory _payees, uint256[] memory _shares) ERC1155("") PaymentSplitter(_payees, _shares) payable {}

    /**
    * @notice free claim for token holders
    */
    function claim(
        uint256 potionId,
        uint256 amount,
        bytes32[] calldata merkleProof
    ) external nonReentrant {
        require(mintIsActiveClaim, "Claim is not active.");
        require(
            potions[potionId].claimed[msg.sender] == false, 
            "You already claimed this potion."
        );

        bytes32 node = keccak256(abi.encodePacked(msg.sender, amount));
        require(
            MerkleProof.verify(merkleProof, potions[potionId].merkleRoot, node),
            "You have a bad Merkle Proof."
        );

        potions[potionId].claimed[msg.sender] = true;

        _mint(msg.sender, potionId, amount, "");
    }

    /**
    * @notice public mint for poitions
    */
    function mint(uint256 potionId, uint256 amount) external payable nonReentrant {
        require(tx.origin == msg.sender);
        require(mintIsActivePublic, "Public mint is not active");
        require(
            amount <= potions[potionId].maxTokensPerTxn, 
            "You can't mint that many tokens per transaction."
        );
        require(
            potions[potionId].numMintedPublic + amount <= potions[potionId].maxTokensPublic, 
            "Tokens are all minted."
        );
        require(
            msg.value >= amount * potions[potionId].tokenPrice, 
            "Incorrect amount of ETH."
        );

        potions[potionId].numMintedPublic += amount;

        _mint(msg.sender, potionId, amount, "");
    }

    /**
    * @notice create a new potion
    */
    function addPotion(
        bytes32 _merkleRoot,
        uint256 _tokenPrice,
        uint256 _maxTokensPublic,
        uint256 _maxTokensPerTxn
    ) external onlyOwner {
        Potion storage p = potions[counter.current()];
        p.merkleRoot = _merkleRoot;
        p.tokenPrice = _tokenPrice;
        p.maxTokensPublic = _maxTokensPublic;
        p.maxTokensPerTxn = _maxTokensPerTxn;

        counter.increment();
    }

    /**
    * @notice edit an existing potion
    */
    function editPotion(
        uint256 _potionId,
        bytes32 _merkleRoot,
        uint256 _tokenPrice,
        uint256 _maxTokensPublic,
        uint256 _maxTokensPerTxn
    ) external onlyOwner {
        require(exists(_potionId), "");

        potions[_potionId].tokenPrice = _tokenPrice;
        potions[_potionId].maxTokensPublic = _maxTokensPublic;
        potions[_potionId].maxTokensPerTxn = _maxTokensPerTxn;
        potions[_potionId].merkleRoot = _merkleRoot;
    }

    /**
     * @notice turn on/off public mint
     */
    function flipMintStatePublic() external onlyOwner {
        mintIsActivePublic = !mintIsActivePublic;
    }

    /**
     * @notice turn on/off free claim 
     */
    function flipMintStateClaim() external onlyOwner {
        mintIsActiveClaim = !mintIsActiveClaim;
    }

    /**
    *  @notice set address of minter for airdrops
    */
    function setMinterAddress(address minter) public onlyOwner {
	    minterAddress = minter;
    }

    modifier onlyMinter {
	    require(minterAddress == msg.sender || owner() == msg.sender, "You must have the Minter role");
	    _;
    }

    /**
    *  @notice mint a collection
    */
    function mintReserve(uint256 tokenId, uint256 amount) public onlyOwner {
        _mint(msg.sender, tokenId, amount, "");
    }

    /**
    *  @notice mint a batch of token collections
    */
    function mintBatch(
        uint256[] memory ids,
        uint256[] memory amounts
    ) public onlyMinter {
        _mintBatch(msg.sender, ids, amounts, "");
    }

    /**
    *  @notice mint a collection to a wallet
    */
    function mintToWallet(address toWallet, uint256 tokenId, uint256 amount) public onlyOwner {
        _mint(toWallet, tokenId, amount, "");
    }

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

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

    function contractURI() public view returns (string memory) {
	    return _contractURI;
    }


    /**
    * @notice check if wallet claimed for all potions
    */
    function checkClaimed(address wallet) external view returns (bool[] memory) {
        bool[] memory result = new bool[](counter.current());

        for(uint256 i; i < counter.current(); i++) {
            result[i] = potions[i].claimed[wallet];
        }

        return result;
    }

   /**
    * @notice indicates weither any token exist with a given id, or not
    */
    function exists(uint256 id) public view override returns (bool) {
        return potions[id].maxTokensPublic > 0;
    }

    // @title SETTER FUNCTIONS

    /**
    *  @notice set token base uri
    */
    function setURI(string memory baseURI) public onlyMinter {
        _setURI(baseURI);
    }

    /**
    *  @notice set contract uri https://docs.opensea.io/docs/contract-level-metadata
    */
    function setContractURI(string memory newContractURI) public onlyOwner {
        _contractURI = newContractURI;
    }

    /**
    *  @notice Withdraw eth from contract by wallet
    */
    function release(address payable account) public override {
        require(msg.sender == account || msg.sender == owner(), "Release: no permission");

        super.release(account);
    }

    /**
     * @notice Withdraw ETH in contract to ownership wallet
     */
    function withdraw() external onlyOwner {
        uint256 balance = address(this).balance;
        Address.sendValue(payable(owner()), balance);
    }

    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }

}

File 2 of 18 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

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

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

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

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 3 of 18 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates whether any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] -= amounts[i];
            }
        }
    }
}

File 4 of 18 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burnBatch(account, ids, values);
    }
}

File 5 of 18 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 6 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 8 of 18 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (finance/PaymentSplitter.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/utils/SafeERC20.sol";
import "../utils/Address.sol";
import "../utils/Context.sol";

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 *
 * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and
 * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you
 * to run tests before sending real value to this contract.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    mapping(IERC20 => uint256) private _erc20TotalReleased;
    mapping(IERC20 => mapping(address => uint256)) private _erc20Released;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive() external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

    /**
     * @dev Getter for the total shares held by payees.
     */
    function totalShares() public view returns (uint256) {
        return _totalShares;
    }

    /**
     * @dev Getter for the total amount of Ether already released.
     */
    function totalReleased() public view returns (uint256) {
        return _totalReleased;
    }

    /**
     * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20
     * contract.
     */
    function totalReleased(IERC20 token) public view returns (uint256) {
        return _erc20TotalReleased[token];
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Getter for the amount of Ether already released to a payee.
     */
    function released(address account) public view returns (uint256) {
        return _released[account];
    }

    /**
     * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an
     * IERC20 contract.
     */
    function released(IERC20 token, address account) public view returns (uint256) {
        return _erc20Released[token][account];
    }

    /**
     * @dev Getter for the address of the payee number `index`.
     */
    function payee(uint256 index) public view returns (address) {
        return _payees[index];
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = address(this).balance + totalReleased();
        uint256 payment = _pendingPayment(account, totalReceived, released(account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _released[account] += payment;
        _totalReleased += payment;

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their
     * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20
     * contract.
     */
    function release(IERC20 token, address account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token);
        uint256 payment = _pendingPayment(account, totalReceived, released(token, account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _erc20Released[token][account] += payment;
        _erc20TotalReleased[token] += payment;

        SafeERC20.safeTransfer(token, account, payment);
        emit ERC20PaymentReleased(token, account, payment);
    }

    /**
     * @dev internal logic for computing the pending payment of an `account` given the token historical balances and
     * already released amounts.
     */
    function _pendingPayment(
        address account,
        uint256 totalReceived,
        uint256 alreadyReleased
    ) private view returns (uint256) {
        return (totalReceived * _shares[account]) / _totalShares - alreadyReleased;
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "PaymentSplitter: account is the zero address");
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(_shares[account] == 0, "PaymentSplitter: account already has shares");

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    }
}

File 9 of 18 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 10 of 18 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 11 of 18 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 12 of 18 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 13 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 17 of 18 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"_payees","type":"address[]"},{"internalType":"uint256[]","name":"_shares","type":"uint256[]"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","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":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","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"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"_tokenPrice","type":"uint256"},{"internalType":"uint256","name":"_maxTokensPublic","type":"uint256"},{"internalType":"uint256","name":"_maxTokensPerTxn","type":"uint256"}],"name":"addPotion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"checkClaimed","outputs":[{"internalType":"bool[]","name":"","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"potionId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_potionId","type":"uint256"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"_tokenPrice","type":"uint256"},{"internalType":"uint256","name":"_maxTokensPublic","type":"uint256"},{"internalType":"uint256","name":"_maxTokensPerTxn","type":"uint256"}],"name":"editPotion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipMintStateClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipMintStatePublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"potionId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintIsActiveClaim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintIsActivePublic","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"toWallet","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintToWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"potions","outputs":[{"internalType":"uint256","name":"tokenPrice","type":"uint256"},{"internalType":"uint256","name":"maxTokensPerTxn","type":"uint256"},{"internalType":"uint256","name":"numMintedPublic","type":"uint256"},{"internalType":"uint256","name":"maxTokensPublic","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newContractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"setMinterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c0604052600d60808190526c576169667520506f74696f6e7360981b60a09081526200003091600e91906200034c565b5060408051808201909152600280825261057560f41b60209092019182526200005c91600f916200034c565b506011805461ffff60a01b1916905560405162004921388190039081908339810160408190526200008d9162000466565b818160405180602001604052806000815250620000b081620001ab60201b60201c565b50620000c5620000bf620001c4565b620001c8565b8051825114620000f25760405162461bcd60e51b8152600401620000e990620005a5565b60405180910390fd5b6000825111620001165760405162461bcd60e51b8152600401620000e99062000642565b60005b82518110156200019a57620001858382815181106200014857634e487b7160e01b600052603260045260246000fd5b60200260200101518383815181106200017157634e487b7160e01b600052603260045260246000fd5b60200260200101516200021a60201b60201c565b80620001918162000761565b91505062000119565b50506001600c5550620007ab915050565b8051620001c09060029060208401906200034c565b5050565b3390565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620002435760405162461bcd60e51b8152600401620000e99062000559565b60008111620002665760405162461bcd60e51b8152600401620000e99062000679565b6001600160a01b038216600090815260076020526040902054156200029f5760405162461bcd60e51b8152600401620000e990620005f7565b60098054600181019091557f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0180546001600160a01b0319166001600160a01b03841690811790915560009081526007602052604090208190556005546200030990829062000709565b6005556040517f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac9062000340908490849062000540565b60405180910390a15050565b8280546200035a9062000724565b90600052602060002090601f0160209004810192826200037e5760008555620003c9565b82601f106200039957805160ff1916838001178555620003c9565b82800160010185558215620003c9579182015b82811115620003c9578251825591602001919060010190620003ac565b50620003d7929150620003db565b5090565b5b80821115620003d75760008155600101620003dc565b600082601f83011262000403578081fd5b815160206200041c6200041683620006e3565b620006b0565b828152818101908583018385028701840188101562000439578586fd5b855b8581101562000459578151845292840192908401906001016200043b565b5090979650505050505050565b6000806040838503121562000479578182fd5b82516001600160401b038082111562000490578384fd5b818501915085601f830112620004a4578384fd5b81516020620004b76200041683620006e3565b82815281810190858301838502870184018b1015620004d4578889fd5b8896505b848710156200050d5780516001600160a01b0381168114620004f857898afd5b835260019690960195918301918301620004d8565b509188015191965090935050508082111562000527578283fd5b506200053685828601620003f2565b9150509250929050565b6001600160a01b03929092168252602082015260400190565b6020808252602c908201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060408201526b7a65726f206164647265737360a01b606082015260800190565b60208082526032908201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726040820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960408201526a206861732073686172657360a81b606082015260800190565b6020808252601a908201527f5061796d656e7453706c69747465723a206e6f20706179656573000000000000604082015260600190565b6020808252601d908201527f5061796d656e7453706c69747465723a20736861726573206172652030000000604082015260600190565b604051601f8201601f191681016001600160401b0381118282101715620006db57620006db62000795565b604052919050565b60006001600160401b03821115620006ff57620006ff62000795565b5060209081020190565b600082198211156200071f576200071f6200077f565b500190565b6002810460018216806200073957607f821691505b602082108114156200075b57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156200077857620007786200077f565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b61416680620007bb6000396000f3fe6080604052600436106102f55760003560e01c80638ac9145d1161018f578063bd85b039116100e1578063e33b7de31161008a578063f242432a11610064578063f242432a1461084f578063f2fde38b1461086f578063f5298aca1461088f5761033c565b8063e33b7de314610805578063e8a3d4851461081a578063e985e9c51461082f5761033c565b8063d351cfdc116100bb578063d351cfdc14610798578063d4c9a70f146107b8578063d79779b2146107e55761033c565b8063bd85b03914610743578063c7b6945914610763578063ce7c2ac2146107785761033c565b806395d89b4111610143578063a3106b951161011d578063a3106b95146106ee578063ae0b51df1461070e578063b92bc3751461072e5761033c565b806395d89b41146106995780639852595c146106ae578063a22cb465146106ce5761033c565b80638da5cb5b116101745780638da5cb5b14610644578063922d62bd14610659578063938e3d7b146106795761033c565b80638ac9145d146105f35780638b83209b146106245761033c565b80633a98ef39116102485780634f558e79116101fc578063715018a6116101d6578063715018a6146105a9578063720e3ec6146105be57806379bef4c2146105d35761033c565b80634f558e79146105495780635e2da7e2146105695780636b20c454146105895761033c565b8063406072a91161022d578063406072a9146104dc57806348b75044146104fc5780634e1273f41461051c5761033c565b80633a98ef39146104b25780633ccfd60b146104c75761033c565b806318376524116102aa578063227edc2f11610284578063227edc2f1461045b5780632eb2c2d61461047057806334d722c9146104905761033c565b8063183765241461040857806319165587146104285780631b2ef1ca146104485761033c565b806302fe5305116102db57806302fe5305146103a457806306fdde03146103c65780630e89341c146103e85761033c565b8062fdd58e1461034157806301ffc9a7146103775761033c565b3661033c577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706103236108af565b3460405161033292919061336a565b60405180910390a1005b600080fd5b34801561034d57600080fd5b5061036161035c366004612f51565b6108b4565b60405161036e9190613ea3565b60405180910390f35b34801561038357600080fd5b50610397610392366004613112565b61090b565b60405161036e91906134a0565b3480156103b057600080fd5b506103c46103bf36600461315c565b610983565b005b3480156103d257600080fd5b506103db6109d3565b60405161036e91906134ab565b3480156103f457600080fd5b506103db6104033660046131aa565b610a65565b34801561041457600080fd5b506103c46104233660046130e1565b610af9565b34801561043457600080fd5b506103c4610443366004612d4c565b610b83565b6103c4610456366004613214565b610bd7565b34801561046757600080fd5b50610397610d2b565b34801561047c57600080fd5b506103c461048b366004612da0565b610d3b565b34801561049c57600080fd5b506104a5610d92565b60405161036e9190613356565b3480156104be57600080fd5b50610361610da1565b3480156104d357600080fd5b506103c4610da7565b3480156104e857600080fd5b506103616104f736600461314a565b610df8565b34801561050857600080fd5b506103c461051736600461314a565b610e23565b34801561052857600080fd5b5061053c610537366004612fb0565b610ff7565b60405161036e919061345f565b34801561055557600080fd5b506103976105643660046131aa565b611117565b34801561057557600080fd5b506103c4610584366004613214565b61112e565b34801561059557600080fd5b506103c46105a4366004612eb1565b61118c565b3480156105b557600080fd5b506103c46111e6565b3480156105ca57600080fd5b506103c4611231565b3480156105df57600080fd5b506103c46105ee3660046131da565b6112ac565b3480156105ff57600080fd5b5061061361060e3660046131aa565b611337565b60405161036e959493929190613eba565b34801561063057600080fd5b506104a561063f3660046131aa565b611366565b34801561065057600080fd5b506104a56113a4565b34801561066557600080fd5b506103c4610674366004612f7c565b6113b3565b34801561068557600080fd5b506103c461069436600461315c565b61140d565b3480156106a557600080fd5b506103db61145f565b3480156106ba57600080fd5b506103616106c9366004612d4c565b61146e565b3480156106da57600080fd5b506103c46106e9366004612f24565b611489565b3480156106fa57600080fd5b506103c4610709366004612d4c565b61149b565b34801561071a57600080fd5b506103c4610729366004613235565b611509565b34801561073a57600080fd5b506103c461167d565b34801561074f57600080fd5b5061036161075e3660046131aa565b6116f8565b34801561076f57600080fd5b5061039761170a565b34801561078457600080fd5b50610361610793366004612d4c565b61171a565b3480156107a457600080fd5b506103c46107b336600461307b565b611735565b3480156107c457600080fd5b506107d86107d3366004612d4c565b611794565b60405161036e9190613419565b3480156107f157600080fd5b50610361610800366004612d4c565b61187f565b34801561081157600080fd5b5061036161189a565b34801561082657600080fd5b506103db6118a0565b34801561083b57600080fd5b5061039761084a366004612d68565b6118af565b34801561085b57600080fd5b506103c461086a366004612e4a565b6118dd565b34801561087b57600080fd5b506103c461088a366004612d4c565b611934565b34801561089b57600080fd5b506103c46108aa366004612f7c565b6119a2565b335b90565b60006001600160a01b0383166108e55760405162461bcd60e51b81526004016108dc906135af565b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b031982167fd9b67a2600000000000000000000000000000000000000000000000000000000148061096e57506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061097d575061097d826119f7565b92915050565b6011546001600160a01b03163314806109ab5750336109a06113a4565b6001600160a01b0316145b6109c75760405162461bcd60e51b81526004016108dc906139e5565b6109d081611a29565b50565b6060600e80546109e290613f9f565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0e90613f9f565b8015610a5b5780601f10610a3057610100808354040283529160200191610a5b565b820191906000526020600020905b815481529060010190602001808311610a3e57829003601f168201915b5050505050905090565b606060028054610a7490613f9f565b80601f0160208091040260200160405190810160405280929190818152602001828054610aa090613f9f565b8015610aed5780601f10610ac257610100808354040283529160200191610aed565b820191906000526020600020905b815481529060010190602001808311610ad057829003601f168201915b50505050509050919050565b610b016108af565b6001600160a01b0316610b126113a4565b6001600160a01b031614610b385760405162461bcd60e51b81526004016108dc90613b44565b600060126000610b48600d611a3c565b815260208101919091526040016000206004810186905584815560038101849055600181018390559050610b7c600d611a40565b5050505050565b336001600160a01b0382161480610bb25750610b9d6113a4565b6001600160a01b0316336001600160a01b0316145b610bce5760405162461bcd60e51b81526004016108dc90613d6a565b6109d081611a49565b6002600c541415610bfa5760405162461bcd60e51b81526004016108dc90613dfe565b6002600c55323314610c0b57600080fd5b601154600160a01b900460ff16610c345760405162461bcd60e51b81526004016108dc90613e6c565b600082815260126020526040902060010154811115610c655760405162461bcd60e51b81526004016108dc906138ce565b60008281526012602052604090206003810154600290910154610c89908390613f01565b1115610ca75760405162461bcd60e51b81526004016108dc90613e35565b600082815260126020526040902054610cc09082613f39565b341015610cdf5760405162461bcd60e51b81526004016108dc90613578565b60008281526012602052604081206002018054839290610d00908490613f01565b92505081905550610d2233838360405180602001604052806000815250611b52565b50506001600c55565b601154600160a81b900460ff1681565b610d436108af565b6001600160a01b0316856001600160a01b03161480610d695750610d698561084a6108af565b610d855760405162461bcd60e51b81526004016108dc90613988565b610b7c8585858585611c41565b6011546001600160a01b031681565b60055490565b610daf6108af565b6001600160a01b0316610dc06113a4565b6001600160a01b031614610de65760405162461bcd60e51b81526004016108dc90613b44565b476109d0610df26113a4565b82611e12565b6001600160a01b039182166000908152600b6020908152604080832093909416825291909152205490565b6001600160a01b038116600090815260076020526040902054610e585760405162461bcd60e51b81526004016108dc90613723565b6000610e638361187f565b6040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038516906370a0823190610ea8903090600401613356565b60206040518083038186803b158015610ec057600080fd5b505afa158015610ed4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef891906131c2565b610f029190613f01565b90506000610f1a8383610f158787610df8565b611eae565b905080610f395760405162461bcd60e51b81526004016108dc90613871565b6001600160a01b038085166000908152600b6020908152604080832093871683529290529081208054839290610f70908490613f01565b90915550506001600160a01b0384166000908152600a602052604081208054839290610f9d908490613f01565b90915550610fae9050848483611ef6565b836001600160a01b03167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a8483604051610fe992919061336a565b60405180910390a250505050565b6060815183511461101a5760405162461bcd60e51b81526004016108dc90613cb0565b6000835167ffffffffffffffff81111561104457634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561106d578160200160208202803683370190505b50905060005b845181101561110f576110d485828151811061109f57634e487b7160e01b600052603260045260246000fd5b60200260200101518583815181106110c757634e487b7160e01b600052603260045260246000fd5b60200260200101516108b4565b8282815181106110f457634e487b7160e01b600052603260045260246000fd5b602090810291909101015261110881614007565b9050611073565b509392505050565b600090815260126020526040902060030154151590565b6111366108af565b6001600160a01b03166111476113a4565b6001600160a01b03161461116d5760405162461bcd60e51b81526004016108dc90613b44565b61118833838360405180602001604052806000815250611b52565b5050565b6111946108af565b6001600160a01b0316836001600160a01b031614806111ba57506111ba8361084a6108af565b6111d65760405162461bcd60e51b81526004016108dc906136c6565b6111e1838383611f61565b505050565b6111ee6108af565b6001600160a01b03166111ff6113a4565b6001600160a01b0316146112255760405162461bcd60e51b81526004016108dc90613b44565b61122f6000612112565b565b6112396108af565b6001600160a01b031661124a6113a4565b6001600160a01b0316146112705760405162461bcd60e51b81526004016108dc90613b44565b601180547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff8116600160a81b9182900460ff1615909102179055565b6112b46108af565b6001600160a01b03166112c56113a4565b6001600160a01b0316146112eb5760405162461bcd60e51b81526004016108dc90613b44565b6112f485611117565b6113105760405162461bcd60e51b81526004016108dc90613b79565b60009485526012602052604090942091825560038201556001810192909255600490910155565b601260205260009081526040902080546001820154600283015460038401546004909401549293919290919085565b60006009828154811061138957634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6004546001600160a01b031690565b6113bb6108af565b6001600160a01b03166113cc6113a4565b6001600160a01b0316146113f25760405162461bcd60e51b81526004016108dc90613b44565b6111e183838360405180602001604052806000815250611b52565b6114156108af565b6001600160a01b03166114266113a4565b6001600160a01b03161461144c5760405162461bcd60e51b81526004016108dc90613b44565b8051611188906010906020840190612bc4565b6060600f80546109e290613f9f565b6001600160a01b031660009081526008602052604090205490565b6111886114946108af565b8383612171565b6114a36108af565b6001600160a01b03166114b46113a4565b6001600160a01b0316146114da5760405162461bcd60e51b81526004016108dc90613b44565b6011805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6002600c54141561152c5760405162461bcd60e51b81526004016108dc90613dfe565b6002600c55601154600160a81b900460ff1661155a5760405162461bcd60e51b81526004016108dc90613b0d565b600084815260126020908152604080832033845260050190915290205460ff16156115975760405162461bcd60e51b81526004016108dc90613bc1565b600033846040516020016115ac929190613318565b60405160208183030381529060405280519060200120905061161283838080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508a81526012602052604090206004015492508591506122149050565b61162e5760405162461bcd60e51b81526004016108dc90613a1c565b60008581526012602090815260408083203380855260059091018352818420805460ff191660011790558151928301909152918152611671919087908790611b52565b50506001600c55505050565b6116856108af565b6001600160a01b03166116966113a4565b6001600160a01b0316146116bc5760405162461bcd60e51b81526004016108dc90613b44565b601180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff8116600160a01b9182900460ff1615909102179055565b60009081526003602052604090205490565b601154600160a01b900460ff1681565b6001600160a01b031660009081526007602052604090205490565b6011546001600160a01b031633148061175d5750336117526113a4565b6001600160a01b0316145b6117795760405162461bcd60e51b81526004016108dc906139e5565b6111883383836040518060200160405280600081525061222a565b606060006117a2600d611a3c565b67ffffffffffffffff8111156117c857634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156117f1578160200160208202803683370190505b50905060005b611801600d611a3c565b8110156118785760008181526012602090815260408083206001600160a01b0388168452600501909152902054825160ff9091169083908390811061185657634e487b7160e01b600052603260045260246000fd5b911515602092830291909101909101528061187081614007565b9150506117f7565b5092915050565b6001600160a01b03166000908152600a602052604090205490565b60065490565b6060601080546109e290613f9f565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6118e56108af565b6001600160a01b0316856001600160a01b0316148061190b575061190b8561084a6108af565b6119275760405162461bcd60e51b81526004016108dc906136c6565b610b7c85858585856123ab565b61193c6108af565b6001600160a01b031661194d6113a4565b6001600160a01b0316146119735760405162461bcd60e51b81526004016108dc90613b44565b6001600160a01b0381166119995760405162461bcd60e51b81526004016108dc9061360c565b6109d081612112565b6119aa6108af565b6001600160a01b0316836001600160a01b031614806119d057506119d08361084a6108af565b6119ec5760405162461bcd60e51b81526004016108dc906136c6565b6111e18383836124df565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b8051611188906002906020840190612bc4565b5490565b80546001019055565b6001600160a01b038116600090815260076020526040902054611a7e5760405162461bcd60e51b81526004016108dc90613723565b6000611a8861189a565b611a929047613f01565b90506000611aa48383610f158661146e565b905080611ac35760405162461bcd60e51b81526004016108dc90613871565b6001600160a01b03831660009081526008602052604081208054839290611aeb908490613f01565b925050819055508060066000828254611b049190613f01565b90915550611b1490508382611e12565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0568382604051611b4592919061336a565b60405180910390a1505050565b6001600160a01b038416611b785760405162461bcd60e51b81526004016108dc90613da1565b6000611b826108af565b9050611ba381600087611b94886125ee565b611b9d886125ee565b87612647565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611bd3908490613f01565b92505081905550846001600160a01b031660006001600160a01b0316826001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051611c2a929190613eac565b60405180910390a4610b7c81600087878787612655565b8151835114611c625760405162461bcd60e51b81526004016108dc90613d0d565b6001600160a01b038416611c885760405162461bcd60e51b81526004016108dc9061392b565b6000611c926108af565b9050611ca2818787878787612647565b60005b8451811015611da4576000858281518110611cd057634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858381518110611cfc57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611d4c5760405162461bcd60e51b81526004016108dc90613ab0565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611d89908490613f01565b9250508190555050505080611d9d90614007565b9050611ca5565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611df4929190613472565b60405180910390a4611e0a81878787878761277a565b505050505050565b80471015611e325760405162461bcd60e51b81526004016108dc906137dd565b6000826001600160a01b031682604051611e4b906108b1565b60006040518083038185875af1925050503d8060008114611e88576040519150601f19603f3d011682016040523d82523d6000602084013e611e8d565b606091505b50509050806111e15760405162461bcd60e51b81526004016108dc90613780565b6005546001600160a01b03841660009081526007602052604081205490918391611ed89086613f39565b611ee29190613f19565b611eec9190613f58565b90505b9392505050565b6111e18363a9059cbb60e01b8484604051602401611f1592919061336a565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199093169290921790915261284b565b6001600160a01b038316611f875760405162461bcd60e51b81526004016108dc90613a53565b8051825114611fa85760405162461bcd60e51b81526004016108dc90613d0d565b6000611fb26108af565b9050611fd281856000868660405180602001604052806000815250612647565b60005b83518110156120b357600084828151811061200057634e487b7160e01b600052603260045260246000fd5b60200260200101519050600084838151811061202c57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038c16835290935291909120549091508181101561207c5760405162461bcd60e51b81526004016108dc90613669565b6000928352602083815260408085206001600160a01b038b16865290915290922091039055806120ab81614007565b915050611fd5565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612104929190613472565b60405180910390a450505050565b600480546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156121a35760405162461bcd60e51b81526004016108dc90613bf6565b6001600160a01b0383811660008181526001602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906122079085906134a0565b60405180910390a3505050565b60008261222185846128da565b14949350505050565b6001600160a01b0384166122505760405162461bcd60e51b81526004016108dc90613da1565b81518351146122715760405162461bcd60e51b81526004016108dc90613d0d565b600061227b6108af565b905061228c81600087878787612647565b60005b8451811015612343578381815181106122b857634e487b7160e01b600052603260045260246000fd5b60200260200101516000808784815181106122e357634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020600082825461232b9190613f01565b9091555081905061233b81614007565b91505061228f565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612394929190613472565b60405180910390a4610b7c8160008787878761277a565b6001600160a01b0384166123d15760405162461bcd60e51b81526004016108dc9061392b565b60006123db6108af565b90506123ec818787611b94886125ee565b6000848152602081815260408083206001600160a01b038a1684529091529020548381101561242d5760405162461bcd60e51b81526004016108dc90613ab0565b6000858152602081815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061246a908490613f01565b92505081905550856001600160a01b0316876001600160a01b0316836001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6288886040516124c0929190613eac565b60405180910390a46124d6828888888888612655565b50505050505050565b6001600160a01b0383166125055760405162461bcd60e51b81526004016108dc90613a53565b600061250f6108af565b905061253f81856000612521876125ee565b61252a876125ee565b60405180602001604052806000815250612647565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156125805760405162461bcd60e51b81526004016108dc90613669565b6000848152602081815260408083206001600160a01b03808a16808652919093528184208786039055905190918516907fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62906125df9089908990613eac565b60405180910390a45050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061263657634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b611e0a86868686868661294c565b612667846001600160a01b0316612a9e565b15611e0a5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906126a090899089908890889088906004016133e1565b602060405180830381600087803b1580156126ba57600080fd5b505af19250505080156126ea575060408051601f3d908101601f191682019092526126e79181019061312e565b60015b61274a576126f661404e565b806308c379a01415612730575061270b614065565b806127165750612732565b8060405162461bcd60e51b81526004016108dc91906134ab565b505b60405162461bcd60e51b81526004016108dc906134be565b6001600160e01b0319811663f23a6e6160e01b146124d65760405162461bcd60e51b81526004016108dc9061351b565b61278c846001600160a01b0316612a9e565b15611e0a5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906127c59089908990889088908890600401613383565b602060405180830381600087803b1580156127df57600080fd5b505af192505050801561280f575060408051601f3d908101601f1916820190925261280c9181019061312e565b60015b61281b576126f661404e565b6001600160e01b0319811663bc197c8160e01b146124d65760405162461bcd60e51b81526004016108dc9061351b565b60006128a0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612aad9092919063ffffffff16565b8051909150156111e157808060200190518101906128be91906130c5565b6111e15760405162461bcd60e51b81526004016108dc90613c53565b600081815b845181101561110f57600085828151811061290a57634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161292c576129258382612abc565b9250612939565b6129368184612abc565b92505b508061294481614007565b9150506128df565b61295a868686868686611e0a565b6001600160a01b0385166129fd5760005b83518110156129fb5782818151811061299457634e487b7160e01b600052603260045260246000fd5b6020026020010151600360008684815181106129c057634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060008282546129e59190613f01565b909155506129f4905081614007565b905061296b565b505b6001600160a01b038416611e0a5760005b83518110156124d657828181518110612a3757634e487b7160e01b600052603260045260246000fd5b602002602001015160036000868481518110612a6357634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254612a889190613f58565b90915550612a97905081614007565b9050612a0e565b6001600160a01b03163b151590565b6060611eec8484600085612acb565b60009182526020526040902090565b606082471015612aed5760405162461bcd60e51b81526004016108dc90613814565b612af685612a9e565b612b125760405162461bcd60e51b81526004016108dc90613b8a565b600080866001600160a01b03168587604051612b2e919061333a565b60006040518083038185875af1925050503d8060008114612b6b576040519150601f19603f3d011682016040523d82523d6000602084013e612b70565b606091505b5091509150612b80828286612b8b565b979650505050505050565b60608315612b9a575081611eef565b825115612baa5782518084602001fd5b8160405162461bcd60e51b81526004016108dc91906134ab565b828054612bd090613f9f565b90600052602060002090601f016020900481019282612bf25760008555612c38565b82601f10612c0b57805160ff1916838001178555612c38565b82800160010185558215612c38579182015b82811115612c38578251825591602001919060010190612c1d565b50612c44929150612c48565b5090565b5b80821115612c445760008155600101612c49565b600067ffffffffffffffff831115612c7757612c77614038565b604051612c8e601f8501601f191660200182613fda565b809150838152848484011115612ca357600080fd5b83836020830137600060208583010152509392505050565b600082601f830112612ccb578081fd5b81356020612cd882613edd565b604051612ce58282613fda565b838152828101915085830183850287018401881015612d02578586fd5b855b85811015612d2057813584529284019290840190600101612d04565b5090979650505050505050565b600082601f830112612d3d578081fd5b611eef83833560208501612c5d565b600060208284031215612d5d578081fd5b8135611eef816140f7565b60008060408385031215612d7a578081fd5b8235612d85816140f7565b91506020830135612d95816140f7565b809150509250929050565b600080600080600060a08688031215612db7578081fd5b8535612dc2816140f7565b94506020860135612dd2816140f7565b9350604086013567ffffffffffffffff80821115612dee578283fd5b612dfa89838a01612cbb565b94506060880135915080821115612e0f578283fd5b612e1b89838a01612cbb565b93506080880135915080821115612e30578283fd5b50612e3d88828901612d2d565b9150509295509295909350565b600080600080600060a08688031215612e61578081fd5b8535612e6c816140f7565b94506020860135612e7c816140f7565b93506040860135925060608601359150608086013567ffffffffffffffff811115612ea5578182fd5b612e3d88828901612d2d565b600080600060608486031215612ec5578081fd5b8335612ed0816140f7565b9250602084013567ffffffffffffffff80821115612eec578283fd5b612ef887838801612cbb565b93506040860135915080821115612f0d578283fd5b50612f1a86828701612cbb565b9150509250925092565b60008060408385031215612f36578182fd5b8235612f41816140f7565b91506020830135612d958161410c565b60008060408385031215612f63578182fd5b8235612f6e816140f7565b946020939093013593505050565b600080600060608486031215612f90578081fd5b8335612f9b816140f7565b95602085013595506040909401359392505050565b60008060408385031215612fc2578182fd5b823567ffffffffffffffff80821115612fd9578384fd5b818501915085601f830112612fec578384fd5b81356020612ff982613edd565b6040516130068282613fda565b8381528281019150858301838502870184018b1015613023578889fd5b8896505b8487101561304e57803561303a816140f7565b835260019690960195918301918301613027565b5096505086013592505080821115613064578283fd5b5061307185828601612cbb565b9150509250929050565b6000806040838503121561308d578182fd5b823567ffffffffffffffff808211156130a4578384fd5b6130b086838701612cbb565b93506020850135915080821115613064578283fd5b6000602082840312156130d6578081fd5b8151611eef8161410c565b600080600080608085870312156130f6578182fd5b5050823594602084013594506040840135936060013592509050565b600060208284031215613123578081fd5b8135611eef8161411a565b60006020828403121561313f578081fd5b8151611eef8161411a565b60008060408385031215612d7a578182fd5b60006020828403121561316d578081fd5b813567ffffffffffffffff811115613183578182fd5b8201601f81018413613193578182fd5b6131a284823560208401612c5d565b949350505050565b6000602082840312156131bb578081fd5b5035919050565b6000602082840312156131d3578081fd5b5051919050565b600080600080600060a086880312156131f1578283fd5b505083359560208501359550604085013594606081013594506080013592509050565b60008060408385031215613226578182fd5b50508035926020909101359150565b6000806000806060858703121561324a578182fd5b8435935060208501359250604085013567ffffffffffffffff8082111561326f578384fd5b818701915087601f830112613282578384fd5b813581811115613290578485fd5b88602080830285010111156132a3578485fd5b95989497505060200194505050565b6000815180845260208085019450808401835b838110156132e1578151875295820195908201906001016132c5565b509495945050505050565b60008151808452613304816020860160208601613f6f565b601f01601f19169290920160200192915050565b60609290921b6bffffffffffffffffffffffff19168252601482015260340190565b6000825161334c818460208701613f6f565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b60006001600160a01b03808816835280871660208401525060a060408301526133af60a08301866132b2565b82810360608401526133c181866132b2565b905082810360808401526133d581856132ec565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152612b8060a08301846132ec565b6020808252825182820181905260009190848201906040850190845b81811015613453578351151583529284019291840191600101613435565b50909695505050505050565b600060208252611eef60208301846132b2565b60006040825261348560408301856132b2565b828103602084015261349781856132b2565b95945050505050565b901515815260200190565b600060208252611eef60208301846132ec565b60208082526034908201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560408201527f526563656976657220696d706c656d656e746572000000000000000000000000606082015260800190565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a6563746560408201527f6420746f6b656e73000000000000000000000000000000000000000000000000606082015260800190565b60208082526018908201527f496e636f727265637420616d6f756e74206f66204554482e0000000000000000604082015260600190565b6020808252602b908201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60408201527f65726f2061646472657373000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60408201527f616e636500000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201527f20617070726f7665640000000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201527f7368617265730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60408201527f722063616c6c0000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201527f647565207061796d656e74000000000000000000000000000000000000000000606082015260800190565b60208082526030908201527f596f752063616e2774206d696e742074686174206d616e7920746f6b656e732060408201527f706572207472616e73616374696f6e2e00000000000000000000000000000000606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460408201527f6472657373000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060408201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000606082015260800190565b6020808252601d908201527f596f75206d757374206861766520746865204d696e74657220726f6c65000000604082015260600190565b6020808252601c908201527f596f752068617665206120626164204d65726b6c652050726f6f662e00000000604082015260600190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201527f6573730000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201527f72207472616e7366657200000000000000000000000000000000000000000000606082015260800190565b60208082526014908201527f436c61696d206973206e6f74206163746976652e000000000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260009082015260400190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252818101527f596f7520616c726561647920636c61696d6564207468697320706f74696f6e2e604082015260600190565b60208082526029908201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360408201527f20666f722073656c660000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860408201527f206d69736d617463680000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060408201527f6d69736d61746368000000000000000000000000000000000000000000000000606082015260800190565b60208082526016908201527f52656c656173653a206e6f207065726d697373696f6e00000000000000000000604082015260600190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526016908201527f546f6b656e732061726520616c6c206d696e7465642e00000000000000000000604082015260600190565b60208082526019908201527f5075626c6963206d696e74206973206e6f742061637469766500000000000000604082015260600190565b90815260200190565b918252602082015260400190565b948552602085019390935260408401919091526060830152608082015260a00190565b600067ffffffffffffffff821115613ef757613ef7614038565b5060209081020190565b60008219821115613f1457613f14614022565b500190565b600082613f3457634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615613f5357613f53614022565b500290565b600082821015613f6a57613f6a614022565b500390565b60005b83811015613f8a578181015183820152602001613f72565b83811115613f99576000848401525b50505050565b600281046001821680613fb357607f821691505b60208210811415613fd457634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff8111828210171561400057614000614038565b6040525050565b600060001982141561401b5761401b614022565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156108b157600481823e5160e01c90565b600060443d1015614075576108b1565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156140a75750505050506108b1565b82850191508151818111156140c1575050505050506108b1565b843d87010160208285010111156140dd575050505050506108b1565b6140ec60208286010187613fda565b509094505050505090565b6001600160a01b03811681146109d057600080fd5b80151581146109d057600080fd5b6001600160e01b0319811681146109d057600080fdfea264697066735822122025c2dec5d5471326cb65f8dae0f49a3a5b53936cad323b7e59f40f7ad204b5ef64736f6c63430008010033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000004000000000000000000000000f253de31ec0e0e269d34ca66162ec41e49fd751100000000000000000000000058ff6950ecf6521729addc597f50d0405fdb26520000000000000000000000001fcb4fb1c8c239cfde95c833fe5e3564d218733b0000000000000000000000009a8b3cd3043c6b9bd90aff51cf04d4442f550a990000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000370000000000000000000000000000000000000000000000000000000000000005

Deployed Bytecode

0x6080604052600436106102f55760003560e01c80638ac9145d1161018f578063bd85b039116100e1578063e33b7de31161008a578063f242432a11610064578063f242432a1461084f578063f2fde38b1461086f578063f5298aca1461088f5761033c565b8063e33b7de314610805578063e8a3d4851461081a578063e985e9c51461082f5761033c565b8063d351cfdc116100bb578063d351cfdc14610798578063d4c9a70f146107b8578063d79779b2146107e55761033c565b8063bd85b03914610743578063c7b6945914610763578063ce7c2ac2146107785761033c565b806395d89b4111610143578063a3106b951161011d578063a3106b95146106ee578063ae0b51df1461070e578063b92bc3751461072e5761033c565b806395d89b41146106995780639852595c146106ae578063a22cb465146106ce5761033c565b80638da5cb5b116101745780638da5cb5b14610644578063922d62bd14610659578063938e3d7b146106795761033c565b80638ac9145d146105f35780638b83209b146106245761033c565b80633a98ef39116102485780634f558e79116101fc578063715018a6116101d6578063715018a6146105a9578063720e3ec6146105be57806379bef4c2146105d35761033c565b80634f558e79146105495780635e2da7e2146105695780636b20c454146105895761033c565b8063406072a91161022d578063406072a9146104dc57806348b75044146104fc5780634e1273f41461051c5761033c565b80633a98ef39146104b25780633ccfd60b146104c75761033c565b806318376524116102aa578063227edc2f11610284578063227edc2f1461045b5780632eb2c2d61461047057806334d722c9146104905761033c565b8063183765241461040857806319165587146104285780631b2ef1ca146104485761033c565b806302fe5305116102db57806302fe5305146103a457806306fdde03146103c65780630e89341c146103e85761033c565b8062fdd58e1461034157806301ffc9a7146103775761033c565b3661033c577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706103236108af565b3460405161033292919061336a565b60405180910390a1005b600080fd5b34801561034d57600080fd5b5061036161035c366004612f51565b6108b4565b60405161036e9190613ea3565b60405180910390f35b34801561038357600080fd5b50610397610392366004613112565b61090b565b60405161036e91906134a0565b3480156103b057600080fd5b506103c46103bf36600461315c565b610983565b005b3480156103d257600080fd5b506103db6109d3565b60405161036e91906134ab565b3480156103f457600080fd5b506103db6104033660046131aa565b610a65565b34801561041457600080fd5b506103c46104233660046130e1565b610af9565b34801561043457600080fd5b506103c4610443366004612d4c565b610b83565b6103c4610456366004613214565b610bd7565b34801561046757600080fd5b50610397610d2b565b34801561047c57600080fd5b506103c461048b366004612da0565b610d3b565b34801561049c57600080fd5b506104a5610d92565b60405161036e9190613356565b3480156104be57600080fd5b50610361610da1565b3480156104d357600080fd5b506103c4610da7565b3480156104e857600080fd5b506103616104f736600461314a565b610df8565b34801561050857600080fd5b506103c461051736600461314a565b610e23565b34801561052857600080fd5b5061053c610537366004612fb0565b610ff7565b60405161036e919061345f565b34801561055557600080fd5b506103976105643660046131aa565b611117565b34801561057557600080fd5b506103c4610584366004613214565b61112e565b34801561059557600080fd5b506103c46105a4366004612eb1565b61118c565b3480156105b557600080fd5b506103c46111e6565b3480156105ca57600080fd5b506103c4611231565b3480156105df57600080fd5b506103c46105ee3660046131da565b6112ac565b3480156105ff57600080fd5b5061061361060e3660046131aa565b611337565b60405161036e959493929190613eba565b34801561063057600080fd5b506104a561063f3660046131aa565b611366565b34801561065057600080fd5b506104a56113a4565b34801561066557600080fd5b506103c4610674366004612f7c565b6113b3565b34801561068557600080fd5b506103c461069436600461315c565b61140d565b3480156106a557600080fd5b506103db61145f565b3480156106ba57600080fd5b506103616106c9366004612d4c565b61146e565b3480156106da57600080fd5b506103c46106e9366004612f24565b611489565b3480156106fa57600080fd5b506103c4610709366004612d4c565b61149b565b34801561071a57600080fd5b506103c4610729366004613235565b611509565b34801561073a57600080fd5b506103c461167d565b34801561074f57600080fd5b5061036161075e3660046131aa565b6116f8565b34801561076f57600080fd5b5061039761170a565b34801561078457600080fd5b50610361610793366004612d4c565b61171a565b3480156107a457600080fd5b506103c46107b336600461307b565b611735565b3480156107c457600080fd5b506107d86107d3366004612d4c565b611794565b60405161036e9190613419565b3480156107f157600080fd5b50610361610800366004612d4c565b61187f565b34801561081157600080fd5b5061036161189a565b34801561082657600080fd5b506103db6118a0565b34801561083b57600080fd5b5061039761084a366004612d68565b6118af565b34801561085b57600080fd5b506103c461086a366004612e4a565b6118dd565b34801561087b57600080fd5b506103c461088a366004612d4c565b611934565b34801561089b57600080fd5b506103c46108aa366004612f7c565b6119a2565b335b90565b60006001600160a01b0383166108e55760405162461bcd60e51b81526004016108dc906135af565b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b031982167fd9b67a2600000000000000000000000000000000000000000000000000000000148061096e57506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061097d575061097d826119f7565b92915050565b6011546001600160a01b03163314806109ab5750336109a06113a4565b6001600160a01b0316145b6109c75760405162461bcd60e51b81526004016108dc906139e5565b6109d081611a29565b50565b6060600e80546109e290613f9f565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0e90613f9f565b8015610a5b5780601f10610a3057610100808354040283529160200191610a5b565b820191906000526020600020905b815481529060010190602001808311610a3e57829003601f168201915b5050505050905090565b606060028054610a7490613f9f565b80601f0160208091040260200160405190810160405280929190818152602001828054610aa090613f9f565b8015610aed5780601f10610ac257610100808354040283529160200191610aed565b820191906000526020600020905b815481529060010190602001808311610ad057829003601f168201915b50505050509050919050565b610b016108af565b6001600160a01b0316610b126113a4565b6001600160a01b031614610b385760405162461bcd60e51b81526004016108dc90613b44565b600060126000610b48600d611a3c565b815260208101919091526040016000206004810186905584815560038101849055600181018390559050610b7c600d611a40565b5050505050565b336001600160a01b0382161480610bb25750610b9d6113a4565b6001600160a01b0316336001600160a01b0316145b610bce5760405162461bcd60e51b81526004016108dc90613d6a565b6109d081611a49565b6002600c541415610bfa5760405162461bcd60e51b81526004016108dc90613dfe565b6002600c55323314610c0b57600080fd5b601154600160a01b900460ff16610c345760405162461bcd60e51b81526004016108dc90613e6c565b600082815260126020526040902060010154811115610c655760405162461bcd60e51b81526004016108dc906138ce565b60008281526012602052604090206003810154600290910154610c89908390613f01565b1115610ca75760405162461bcd60e51b81526004016108dc90613e35565b600082815260126020526040902054610cc09082613f39565b341015610cdf5760405162461bcd60e51b81526004016108dc90613578565b60008281526012602052604081206002018054839290610d00908490613f01565b92505081905550610d2233838360405180602001604052806000815250611b52565b50506001600c55565b601154600160a81b900460ff1681565b610d436108af565b6001600160a01b0316856001600160a01b03161480610d695750610d698561084a6108af565b610d855760405162461bcd60e51b81526004016108dc90613988565b610b7c8585858585611c41565b6011546001600160a01b031681565b60055490565b610daf6108af565b6001600160a01b0316610dc06113a4565b6001600160a01b031614610de65760405162461bcd60e51b81526004016108dc90613b44565b476109d0610df26113a4565b82611e12565b6001600160a01b039182166000908152600b6020908152604080832093909416825291909152205490565b6001600160a01b038116600090815260076020526040902054610e585760405162461bcd60e51b81526004016108dc90613723565b6000610e638361187f565b6040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038516906370a0823190610ea8903090600401613356565b60206040518083038186803b158015610ec057600080fd5b505afa158015610ed4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef891906131c2565b610f029190613f01565b90506000610f1a8383610f158787610df8565b611eae565b905080610f395760405162461bcd60e51b81526004016108dc90613871565b6001600160a01b038085166000908152600b6020908152604080832093871683529290529081208054839290610f70908490613f01565b90915550506001600160a01b0384166000908152600a602052604081208054839290610f9d908490613f01565b90915550610fae9050848483611ef6565b836001600160a01b03167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a8483604051610fe992919061336a565b60405180910390a250505050565b6060815183511461101a5760405162461bcd60e51b81526004016108dc90613cb0565b6000835167ffffffffffffffff81111561104457634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561106d578160200160208202803683370190505b50905060005b845181101561110f576110d485828151811061109f57634e487b7160e01b600052603260045260246000fd5b60200260200101518583815181106110c757634e487b7160e01b600052603260045260246000fd5b60200260200101516108b4565b8282815181106110f457634e487b7160e01b600052603260045260246000fd5b602090810291909101015261110881614007565b9050611073565b509392505050565b600090815260126020526040902060030154151590565b6111366108af565b6001600160a01b03166111476113a4565b6001600160a01b03161461116d5760405162461bcd60e51b81526004016108dc90613b44565b61118833838360405180602001604052806000815250611b52565b5050565b6111946108af565b6001600160a01b0316836001600160a01b031614806111ba57506111ba8361084a6108af565b6111d65760405162461bcd60e51b81526004016108dc906136c6565b6111e1838383611f61565b505050565b6111ee6108af565b6001600160a01b03166111ff6113a4565b6001600160a01b0316146112255760405162461bcd60e51b81526004016108dc90613b44565b61122f6000612112565b565b6112396108af565b6001600160a01b031661124a6113a4565b6001600160a01b0316146112705760405162461bcd60e51b81526004016108dc90613b44565b601180547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff8116600160a81b9182900460ff1615909102179055565b6112b46108af565b6001600160a01b03166112c56113a4565b6001600160a01b0316146112eb5760405162461bcd60e51b81526004016108dc90613b44565b6112f485611117565b6113105760405162461bcd60e51b81526004016108dc90613b79565b60009485526012602052604090942091825560038201556001810192909255600490910155565b601260205260009081526040902080546001820154600283015460038401546004909401549293919290919085565b60006009828154811061138957634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6004546001600160a01b031690565b6113bb6108af565b6001600160a01b03166113cc6113a4565b6001600160a01b0316146113f25760405162461bcd60e51b81526004016108dc90613b44565b6111e183838360405180602001604052806000815250611b52565b6114156108af565b6001600160a01b03166114266113a4565b6001600160a01b03161461144c5760405162461bcd60e51b81526004016108dc90613b44565b8051611188906010906020840190612bc4565b6060600f80546109e290613f9f565b6001600160a01b031660009081526008602052604090205490565b6111886114946108af565b8383612171565b6114a36108af565b6001600160a01b03166114b46113a4565b6001600160a01b0316146114da5760405162461bcd60e51b81526004016108dc90613b44565b6011805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6002600c54141561152c5760405162461bcd60e51b81526004016108dc90613dfe565b6002600c55601154600160a81b900460ff1661155a5760405162461bcd60e51b81526004016108dc90613b0d565b600084815260126020908152604080832033845260050190915290205460ff16156115975760405162461bcd60e51b81526004016108dc90613bc1565b600033846040516020016115ac929190613318565b60405160208183030381529060405280519060200120905061161283838080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508a81526012602052604090206004015492508591506122149050565b61162e5760405162461bcd60e51b81526004016108dc90613a1c565b60008581526012602090815260408083203380855260059091018352818420805460ff191660011790558151928301909152918152611671919087908790611b52565b50506001600c55505050565b6116856108af565b6001600160a01b03166116966113a4565b6001600160a01b0316146116bc5760405162461bcd60e51b81526004016108dc90613b44565b601180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff8116600160a01b9182900460ff1615909102179055565b60009081526003602052604090205490565b601154600160a01b900460ff1681565b6001600160a01b031660009081526007602052604090205490565b6011546001600160a01b031633148061175d5750336117526113a4565b6001600160a01b0316145b6117795760405162461bcd60e51b81526004016108dc906139e5565b6111883383836040518060200160405280600081525061222a565b606060006117a2600d611a3c565b67ffffffffffffffff8111156117c857634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156117f1578160200160208202803683370190505b50905060005b611801600d611a3c565b8110156118785760008181526012602090815260408083206001600160a01b0388168452600501909152902054825160ff9091169083908390811061185657634e487b7160e01b600052603260045260246000fd5b911515602092830291909101909101528061187081614007565b9150506117f7565b5092915050565b6001600160a01b03166000908152600a602052604090205490565b60065490565b6060601080546109e290613f9f565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6118e56108af565b6001600160a01b0316856001600160a01b0316148061190b575061190b8561084a6108af565b6119275760405162461bcd60e51b81526004016108dc906136c6565b610b7c85858585856123ab565b61193c6108af565b6001600160a01b031661194d6113a4565b6001600160a01b0316146119735760405162461bcd60e51b81526004016108dc90613b44565b6001600160a01b0381166119995760405162461bcd60e51b81526004016108dc9061360c565b6109d081612112565b6119aa6108af565b6001600160a01b0316836001600160a01b031614806119d057506119d08361084a6108af565b6119ec5760405162461bcd60e51b81526004016108dc906136c6565b6111e18383836124df565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b8051611188906002906020840190612bc4565b5490565b80546001019055565b6001600160a01b038116600090815260076020526040902054611a7e5760405162461bcd60e51b81526004016108dc90613723565b6000611a8861189a565b611a929047613f01565b90506000611aa48383610f158661146e565b905080611ac35760405162461bcd60e51b81526004016108dc90613871565b6001600160a01b03831660009081526008602052604081208054839290611aeb908490613f01565b925050819055508060066000828254611b049190613f01565b90915550611b1490508382611e12565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0568382604051611b4592919061336a565b60405180910390a1505050565b6001600160a01b038416611b785760405162461bcd60e51b81526004016108dc90613da1565b6000611b826108af565b9050611ba381600087611b94886125ee565b611b9d886125ee565b87612647565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611bd3908490613f01565b92505081905550846001600160a01b031660006001600160a01b0316826001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051611c2a929190613eac565b60405180910390a4610b7c81600087878787612655565b8151835114611c625760405162461bcd60e51b81526004016108dc90613d0d565b6001600160a01b038416611c885760405162461bcd60e51b81526004016108dc9061392b565b6000611c926108af565b9050611ca2818787878787612647565b60005b8451811015611da4576000858281518110611cd057634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858381518110611cfc57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611d4c5760405162461bcd60e51b81526004016108dc90613ab0565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611d89908490613f01565b9250508190555050505080611d9d90614007565b9050611ca5565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611df4929190613472565b60405180910390a4611e0a81878787878761277a565b505050505050565b80471015611e325760405162461bcd60e51b81526004016108dc906137dd565b6000826001600160a01b031682604051611e4b906108b1565b60006040518083038185875af1925050503d8060008114611e88576040519150601f19603f3d011682016040523d82523d6000602084013e611e8d565b606091505b50509050806111e15760405162461bcd60e51b81526004016108dc90613780565b6005546001600160a01b03841660009081526007602052604081205490918391611ed89086613f39565b611ee29190613f19565b611eec9190613f58565b90505b9392505050565b6111e18363a9059cbb60e01b8484604051602401611f1592919061336a565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199093169290921790915261284b565b6001600160a01b038316611f875760405162461bcd60e51b81526004016108dc90613a53565b8051825114611fa85760405162461bcd60e51b81526004016108dc90613d0d565b6000611fb26108af565b9050611fd281856000868660405180602001604052806000815250612647565b60005b83518110156120b357600084828151811061200057634e487b7160e01b600052603260045260246000fd5b60200260200101519050600084838151811061202c57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038c16835290935291909120549091508181101561207c5760405162461bcd60e51b81526004016108dc90613669565b6000928352602083815260408085206001600160a01b038b16865290915290922091039055806120ab81614007565b915050611fd5565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612104929190613472565b60405180910390a450505050565b600480546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156121a35760405162461bcd60e51b81526004016108dc90613bf6565b6001600160a01b0383811660008181526001602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906122079085906134a0565b60405180910390a3505050565b60008261222185846128da565b14949350505050565b6001600160a01b0384166122505760405162461bcd60e51b81526004016108dc90613da1565b81518351146122715760405162461bcd60e51b81526004016108dc90613d0d565b600061227b6108af565b905061228c81600087878787612647565b60005b8451811015612343578381815181106122b857634e487b7160e01b600052603260045260246000fd5b60200260200101516000808784815181106122e357634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020600082825461232b9190613f01565b9091555081905061233b81614007565b91505061228f565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612394929190613472565b60405180910390a4610b7c8160008787878761277a565b6001600160a01b0384166123d15760405162461bcd60e51b81526004016108dc9061392b565b60006123db6108af565b90506123ec818787611b94886125ee565b6000848152602081815260408083206001600160a01b038a1684529091529020548381101561242d5760405162461bcd60e51b81526004016108dc90613ab0565b6000858152602081815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061246a908490613f01565b92505081905550856001600160a01b0316876001600160a01b0316836001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6288886040516124c0929190613eac565b60405180910390a46124d6828888888888612655565b50505050505050565b6001600160a01b0383166125055760405162461bcd60e51b81526004016108dc90613a53565b600061250f6108af565b905061253f81856000612521876125ee565b61252a876125ee565b60405180602001604052806000815250612647565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156125805760405162461bcd60e51b81526004016108dc90613669565b6000848152602081815260408083206001600160a01b03808a16808652919093528184208786039055905190918516907fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62906125df9089908990613eac565b60405180910390a45050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061263657634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b611e0a86868686868661294c565b612667846001600160a01b0316612a9e565b15611e0a5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906126a090899089908890889088906004016133e1565b602060405180830381600087803b1580156126ba57600080fd5b505af19250505080156126ea575060408051601f3d908101601f191682019092526126e79181019061312e565b60015b61274a576126f661404e565b806308c379a01415612730575061270b614065565b806127165750612732565b8060405162461bcd60e51b81526004016108dc91906134ab565b505b60405162461bcd60e51b81526004016108dc906134be565b6001600160e01b0319811663f23a6e6160e01b146124d65760405162461bcd60e51b81526004016108dc9061351b565b61278c846001600160a01b0316612a9e565b15611e0a5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906127c59089908990889088908890600401613383565b602060405180830381600087803b1580156127df57600080fd5b505af192505050801561280f575060408051601f3d908101601f1916820190925261280c9181019061312e565b60015b61281b576126f661404e565b6001600160e01b0319811663bc197c8160e01b146124d65760405162461bcd60e51b81526004016108dc9061351b565b60006128a0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612aad9092919063ffffffff16565b8051909150156111e157808060200190518101906128be91906130c5565b6111e15760405162461bcd60e51b81526004016108dc90613c53565b600081815b845181101561110f57600085828151811061290a57634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161292c576129258382612abc565b9250612939565b6129368184612abc565b92505b508061294481614007565b9150506128df565b61295a868686868686611e0a565b6001600160a01b0385166129fd5760005b83518110156129fb5782818151811061299457634e487b7160e01b600052603260045260246000fd5b6020026020010151600360008684815181106129c057634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060008282546129e59190613f01565b909155506129f4905081614007565b905061296b565b505b6001600160a01b038416611e0a5760005b83518110156124d657828181518110612a3757634e487b7160e01b600052603260045260246000fd5b602002602001015160036000868481518110612a6357634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254612a889190613f58565b90915550612a97905081614007565b9050612a0e565b6001600160a01b03163b151590565b6060611eec8484600085612acb565b60009182526020526040902090565b606082471015612aed5760405162461bcd60e51b81526004016108dc90613814565b612af685612a9e565b612b125760405162461bcd60e51b81526004016108dc90613b8a565b600080866001600160a01b03168587604051612b2e919061333a565b60006040518083038185875af1925050503d8060008114612b6b576040519150601f19603f3d011682016040523d82523d6000602084013e612b70565b606091505b5091509150612b80828286612b8b565b979650505050505050565b60608315612b9a575081611eef565b825115612baa5782518084602001fd5b8160405162461bcd60e51b81526004016108dc91906134ab565b828054612bd090613f9f565b90600052602060002090601f016020900481019282612bf25760008555612c38565b82601f10612c0b57805160ff1916838001178555612c38565b82800160010185558215612c38579182015b82811115612c38578251825591602001919060010190612c1d565b50612c44929150612c48565b5090565b5b80821115612c445760008155600101612c49565b600067ffffffffffffffff831115612c7757612c77614038565b604051612c8e601f8501601f191660200182613fda565b809150838152848484011115612ca357600080fd5b83836020830137600060208583010152509392505050565b600082601f830112612ccb578081fd5b81356020612cd882613edd565b604051612ce58282613fda565b838152828101915085830183850287018401881015612d02578586fd5b855b85811015612d2057813584529284019290840190600101612d04565b5090979650505050505050565b600082601f830112612d3d578081fd5b611eef83833560208501612c5d565b600060208284031215612d5d578081fd5b8135611eef816140f7565b60008060408385031215612d7a578081fd5b8235612d85816140f7565b91506020830135612d95816140f7565b809150509250929050565b600080600080600060a08688031215612db7578081fd5b8535612dc2816140f7565b94506020860135612dd2816140f7565b9350604086013567ffffffffffffffff80821115612dee578283fd5b612dfa89838a01612cbb565b94506060880135915080821115612e0f578283fd5b612e1b89838a01612cbb565b93506080880135915080821115612e30578283fd5b50612e3d88828901612d2d565b9150509295509295909350565b600080600080600060a08688031215612e61578081fd5b8535612e6c816140f7565b94506020860135612e7c816140f7565b93506040860135925060608601359150608086013567ffffffffffffffff811115612ea5578182fd5b612e3d88828901612d2d565b600080600060608486031215612ec5578081fd5b8335612ed0816140f7565b9250602084013567ffffffffffffffff80821115612eec578283fd5b612ef887838801612cbb565b93506040860135915080821115612f0d578283fd5b50612f1a86828701612cbb565b9150509250925092565b60008060408385031215612f36578182fd5b8235612f41816140f7565b91506020830135612d958161410c565b60008060408385031215612f63578182fd5b8235612f6e816140f7565b946020939093013593505050565b600080600060608486031215612f90578081fd5b8335612f9b816140f7565b95602085013595506040909401359392505050565b60008060408385031215612fc2578182fd5b823567ffffffffffffffff80821115612fd9578384fd5b818501915085601f830112612fec578384fd5b81356020612ff982613edd565b6040516130068282613fda565b8381528281019150858301838502870184018b1015613023578889fd5b8896505b8487101561304e57803561303a816140f7565b835260019690960195918301918301613027565b5096505086013592505080821115613064578283fd5b5061307185828601612cbb565b9150509250929050565b6000806040838503121561308d578182fd5b823567ffffffffffffffff808211156130a4578384fd5b6130b086838701612cbb565b93506020850135915080821115613064578283fd5b6000602082840312156130d6578081fd5b8151611eef8161410c565b600080600080608085870312156130f6578182fd5b5050823594602084013594506040840135936060013592509050565b600060208284031215613123578081fd5b8135611eef8161411a565b60006020828403121561313f578081fd5b8151611eef8161411a565b60008060408385031215612d7a578182fd5b60006020828403121561316d578081fd5b813567ffffffffffffffff811115613183578182fd5b8201601f81018413613193578182fd5b6131a284823560208401612c5d565b949350505050565b6000602082840312156131bb578081fd5b5035919050565b6000602082840312156131d3578081fd5b5051919050565b600080600080600060a086880312156131f1578283fd5b505083359560208501359550604085013594606081013594506080013592509050565b60008060408385031215613226578182fd5b50508035926020909101359150565b6000806000806060858703121561324a578182fd5b8435935060208501359250604085013567ffffffffffffffff8082111561326f578384fd5b818701915087601f830112613282578384fd5b813581811115613290578485fd5b88602080830285010111156132a3578485fd5b95989497505060200194505050565b6000815180845260208085019450808401835b838110156132e1578151875295820195908201906001016132c5565b509495945050505050565b60008151808452613304816020860160208601613f6f565b601f01601f19169290920160200192915050565b60609290921b6bffffffffffffffffffffffff19168252601482015260340190565b6000825161334c818460208701613f6f565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b60006001600160a01b03808816835280871660208401525060a060408301526133af60a08301866132b2565b82810360608401526133c181866132b2565b905082810360808401526133d581856132ec565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152612b8060a08301846132ec565b6020808252825182820181905260009190848201906040850190845b81811015613453578351151583529284019291840191600101613435565b50909695505050505050565b600060208252611eef60208301846132b2565b60006040825261348560408301856132b2565b828103602084015261349781856132b2565b95945050505050565b901515815260200190565b600060208252611eef60208301846132ec565b60208082526034908201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560408201527f526563656976657220696d706c656d656e746572000000000000000000000000606082015260800190565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a6563746560408201527f6420746f6b656e73000000000000000000000000000000000000000000000000606082015260800190565b60208082526018908201527f496e636f727265637420616d6f756e74206f66204554482e0000000000000000604082015260600190565b6020808252602b908201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60408201527f65726f2061646472657373000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60408201527f616e636500000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201527f20617070726f7665640000000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201527f7368617265730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60408201527f722063616c6c0000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201527f647565207061796d656e74000000000000000000000000000000000000000000606082015260800190565b60208082526030908201527f596f752063616e2774206d696e742074686174206d616e7920746f6b656e732060408201527f706572207472616e73616374696f6e2e00000000000000000000000000000000606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460408201527f6472657373000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060408201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000606082015260800190565b6020808252601d908201527f596f75206d757374206861766520746865204d696e74657220726f6c65000000604082015260600190565b6020808252601c908201527f596f752068617665206120626164204d65726b6c652050726f6f662e00000000604082015260600190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201527f6573730000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201527f72207472616e7366657200000000000000000000000000000000000000000000606082015260800190565b60208082526014908201527f436c61696d206973206e6f74206163746976652e000000000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260009082015260400190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252818101527f596f7520616c726561647920636c61696d6564207468697320706f74696f6e2e604082015260600190565b60208082526029908201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360408201527f20666f722073656c660000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860408201527f206d69736d617463680000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060408201527f6d69736d61746368000000000000000000000000000000000000000000000000606082015260800190565b60208082526016908201527f52656c656173653a206e6f207065726d697373696f6e00000000000000000000604082015260600190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526016908201527f546f6b656e732061726520616c6c206d696e7465642e00000000000000000000604082015260600190565b60208082526019908201527f5075626c6963206d696e74206973206e6f742061637469766500000000000000604082015260600190565b90815260200190565b918252602082015260400190565b948552602085019390935260408401919091526060830152608082015260a00190565b600067ffffffffffffffff821115613ef757613ef7614038565b5060209081020190565b60008219821115613f1457613f14614022565b500190565b600082613f3457634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615613f5357613f53614022565b500290565b600082821015613f6a57613f6a614022565b500390565b60005b83811015613f8a578181015183820152602001613f72565b83811115613f99576000848401525b50505050565b600281046001821680613fb357607f821691505b60208210811415613fd457634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff8111828210171561400057614000614038565b6040525050565b600060001982141561401b5761401b614022565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156108b157600481823e5160e01c90565b600060443d1015614075576108b1565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156140a75750505050506108b1565b82850191508151818111156140c1575050505050506108b1565b843d87010160208285010111156140dd575050505050506108b1565b6140ec60208286010187613fda565b509094505050505090565b6001600160a01b03811681146109d057600080fd5b80151581146109d057600080fd5b6001600160e01b0319811681146109d057600080fdfea264697066735822122025c2dec5d5471326cb65f8dae0f49a3a5b53936cad323b7e59f40f7ad204b5ef64736f6c63430008010033

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000004000000000000000000000000f253de31ec0e0e269d34ca66162ec41e49fd751100000000000000000000000058ff6950ecf6521729addc597f50d0405fdb26520000000000000000000000001fcb4fb1c8c239cfde95c833fe5e3564d218733b0000000000000000000000009a8b3cd3043c6b9bd90aff51cf04d4442f550a990000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000370000000000000000000000000000000000000000000000000000000000000005

-----Decoded View---------------
Arg [0] : _payees (address[]): 0xf253de31EC0E0e269D34CA66162EC41E49Fd7511,0x58FF6950ECF6521729AddC597f50d0405FDb2652,0x1fcb4Fb1c8C239CfDE95c833fE5e3564d218733b,0x9a8b3Cd3043c6B9bD90AfF51cF04D4442F550A99
Arg [1] : _shares (uint256[]): 30,10,55,5

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [3] : 000000000000000000000000f253de31ec0e0e269d34ca66162ec41e49fd7511
Arg [4] : 00000000000000000000000058ff6950ecf6521729addc597f50d0405fdb2652
Arg [5] : 0000000000000000000000001fcb4fb1c8c239cfde95c833fe5e3564d218733b
Arg [6] : 0000000000000000000000009a8b3cd3043c6b9bd90aff51cf04d4442f550a99
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [8] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [9] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000037
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000005


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

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