ETH Price: $3,363.49 (-2.59%)

Token

Myth Division American Ape (MDAPE)
 

Overview

Max Total Supply

142 MDAPE

Holders

104

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0xa3b5c163cbbb0c8364b62111d00a557c623470e4
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
MythDivisionAmericanApe

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 15 : MythDivisionAmericanApe.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/access/Ownable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";

/**
 *              _____            ___ _____        _____  __   _____  ___    __
 *   /\/\ /\_/\/__   \/\  /\    /   \\_   \/\   /\\_   \/ _\  \_   \/___\/\ \ \
 *  /    \\_ _/  / /\/ /_/ /   / /\ / / /\/\ \ / / / /\/\ \    / /\//  //  \/ /
 * / /\/\ \/ \  / / / __  /   / /_//\/ /_   \ V /\/ /_  _\ \/\/ /_/ \_// /\  /
 * \/    \/\_/  \/  \/ /_/   /___,'\____/    \_/\____/  \__/\____/\___/\_\ \/
 *
 *     _                        _                      _
 *    / \   _ __ ___   ___ _ __(_) ___ __ _ _ __      / \   _ __   ___
 *   / _ \ | '_ ` _ \ / _ \ '__| |/ __/ _` | '_ \    / _ \ | '_ \ / _ \
 *  / ___ \| | | | | |  __/ |  | | (_| (_| | | | |  / ___ \| |_) |  __/
 * /_/   \_\_| |_| |_|\___|_|  |_|\___\__,_|_| |_| /_/   \_\ .__/ \___|
 *                                                         |_|
 * @title Myth Division American Ape ERC1155 Smart Contract
 * @dev Extends ERC1155 
 */

contract MythDivisionAmericanApe is ERC1155, ERC1155Supply, ERC1155Burnable, Ownable, PaymentSplitter {
    string private _contractURI;
    string _name = "Myth Division American Ape";
    string _symbol = "MDAPE";
    address public minterAddress;
    uint256 public mintingTokenID = 0;
    uint256 public numberMintedTotal = 0;
    uint256 public maxTokens = 500;

    /// PUBLIC MINT
    uint256 public tokenPricePublic = 0.5636 ether;
    bool public mintIsActivePublic = false;
    uint256 public maxTokensPerTransactionPublic = 5;
    uint256 public numberMintedPublic = 0;
    uint256 public maxTokensPublic = 500;

    /// PRESALE MINT
    uint256 public tokenPricePresale = 0.222 ether;
    bool public mintIsActivePresale = false;
    mapping (address => bool) public presaleWalletList;
    uint256 public maxTokensPerTransactionPresale = 1;
    uint256 public numberMintedPresale = 0;
    uint256 public maxTokensPresale = 500;

    /// FREE WALLET BASED MINT
    bool public mintIsActiveFree = false;
    mapping (address => bool) public freeWalletList;

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

    /// @title PUBLIC MINT

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

    /**
     * @notice Public mint function
     */
    function mint(uint256 numberOfTokens) external payable {
        require(mintIsActivePublic, "Public mint is not active");
        require(
            numberOfTokens <= maxTokensPerTransactionPublic, 
            "You went over max tokens per transaction"
        );
        require(
	        msg.value >= tokenPricePublic * numberOfTokens,
            "You sent the incorrect amount of ETH"
        );
        require(
            numberMintedPublic + numberOfTokens <= maxTokensPublic, 
            "Not enough tokens left to mint that many"
        );
        require(
            numberMintedTotal + numberOfTokens <= maxTokens, 
            "Not enough tokens left to mint that many"
        );

        _mint(msg.sender, mintingTokenID, numberOfTokens, "");
        numberMintedPublic += numberOfTokens;
        numberMintedTotal += numberOfTokens;
    }

    /// @title PRESALE WALLET MINT

    /**
     * @notice Turn on/off presale wallet mint
     */
    function flipPresaleMintState() external onlyOwner {
        mintIsActivePresale = !mintIsActivePresale;
    }

    /**
     * @notice Add wallets to presale wallet list
     */
    function initPresaleWalletList(address[] memory walletList) external onlyOwner {
	    for (uint i; i < walletList.length; i++) {
		    presaleWalletList[walletList[i]] = true;
	    }
    }

    /**
     * @notice Presale wallet list mint 
     */
    function mintPresale(uint256 numberOfTokens) external payable {
        require(mintIsActivePresale, "Presale mint is not active");
        require(
            numberOfTokens <= maxTokensPerTransactionPresale, 
            "You went over max tokens per transaction"
        );
        require(
	        msg.value >= tokenPricePresale * numberOfTokens,
            "You sent the incorrect amount of ETH"
        );
        require(
            presaleWalletList[msg.sender] == true, 
            "You are not on the presale wallet list or have already minted"
        );
        require(
            numberMintedPresale + numberOfTokens <= maxTokensPublic, 
            "Not enough tokens left to mint that many"
        );
        require(
            numberMintedTotal + numberOfTokens <= maxTokens, 
            "Not enough tokens left to mint that many"
        );

        _mint(msg.sender, mintingTokenID, numberOfTokens, "");
        numberMintedPresale += numberOfTokens;
        numberMintedTotal += numberOfTokens;

        presaleWalletList[msg.sender] = false;
    }


    /// @title Free Wallet Mint

    /**
     * @notice turn on/off free wallet mint
     */
    function flipFreeWalletState() external onlyOwner {
	    mintIsActiveFree = !mintIsActiveFree;
    }

    /**
     * @notice data structure for uploading free mint wallets
     */
    function initFreeWalletList(address[] memory walletList) external onlyOwner {
	    for (uint256 i = 0; i < walletList.length; i++) {
		    freeWalletList[walletList[i]] = true;
	    }
    }

    /**
     * @notice Free mint for wallets in freeWalletList
     */
    function mintFreeWalletList() external {
        require(mintIsActiveFree, "Free mint is not active");
	    require(
            freeWalletList[msg.sender] == true, 
            "You are not on the free wallet list or have already minted"
        );

        _mint(msg.sender, mintingTokenID, 1, "");
        numberMintedTotal += 1;

	    freeWalletList[msg.sender] = false;
    }


    /**
    *  @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 reserver mint a collection
    */
    function mintReserve(uint256 amount) public onlyOwner {
        _mint(msg.sender, mintingTokenID, amount, "");
    }

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

    /**
    * @notice airdrop a specific token to a list of addresses
    */
    function airdrop(address[] calldata addresses, uint id, uint amt_each) public onlyMinter {
        for (uint i=0; i < addresses.length; i++) {
            _mint(addresses[i], id, amt_each, "");
        }
    }

    /**
    * @notice get name of token
    */
    function name() public view returns (string memory) {
        return _name;
    }


    /**
    * @notice get symbol of token
    */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

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


    // @title SETTER FUNCTIONS

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

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

    /**
    *  @notice Set token price of presale - tokenPricePublic
    */
    function setTokenPricePublic(uint256 tokenPrice) external onlyOwner {
        require(tokenPrice >= 0, "Must be greater or equal then zer0");
        tokenPricePublic = tokenPrice;
    }

    /**
    *  @notice Set max tokens allowed minted in public sale - maxTokensPublic
    */
    function setMaxTokens (uint256 amount) external onlyOwner {
        require(amount >= 0, "Must be greater or equal than zer0");
        maxTokens = amount;
    }

    /**
    *  @notice Set total number of tokens minted in public sale - numberMintedPublic
    */
    function setNumberMintedTotal(uint256 amount) external onlyOwner {
        require(amount >= 0, "Must be greater or equal than zer0");
        numberMintedTotal = amount;
    }

    /**
    *  @notice Set max tokens allowed minted in public sale - maxTokensPublic
    */
    function setMaxTokensPublic (uint256 amount) external onlyOwner {
        require(amount >= 0, "Must be greater or equal than zer0");
        maxTokensPublic = amount;
    }

    /**
    *  @notice Set total number of tokens minted in public sale - numberMintedPublic
    */
    function setNumberMintedPublic(uint256 amount) external onlyOwner {
        require(amount >= 0, "Must be greater or equal than zer0");
        numberMintedPublic = amount;
    }

    /**
    *  @notice Set max tokens per transaction for public sale - maxTokensPerTransactionPublic 
    */
    function setMaxTokensPerTransactionPublic(uint256 amount) external onlyOwner {
        require(amount >= 0, "Invalid amount");
        maxTokensPerTransactionPublic = amount;
    }

    /**
    *  @notice Set token price of presale - tokenPricePresale
    */
    function setTokenPricePresale(uint256 tokenPrice) external onlyOwner {
        require(tokenPrice >= 0, "Must be greater or equal than zer0");
        tokenPricePresale = tokenPrice;
    }

    /**
    *  @notice Set max tokens allowed minted in presale - maxTokensPresale
    */
    function setMaxTokensPresale(uint256 amount) external onlyOwner {
        require(amount >= 0, "Invalid amount");
        maxTokensPresale = amount;
    }

    /**
    *  @notice Set total number of tokens minted in presale - numberMintedPresale
    */
    function setNumberMintedPresale(uint256 amount) external onlyOwner {
        require(amount >= 0, "Invalid amount");
        numberMintedPresale = amount;
    }

    /**
    *  @notice Set max tokens per transaction for presale - maxTokensPerTransactionPresale 
    */
    function setMaxTokensPerTransactionPresale(uint256 amount) external onlyOwner {
        require(amount >= 0, "Invalid amount");
        maxTokensPerTransactionPresale = amount;
    }

    /**
    *  @notice Set the current token ID minting - mintingTokenID
    */
    function setMintingTokenID(uint256 tokenID) external onlyOwner {
        require(tokenID >= 0, "Invalid token id");
        mintingTokenID = tokenID;
    }

    /**
    *  @notice Set the current token ID minting and reset all counters and active mints to 0 and false respectively
    */
    function setMintingTokenIdAndResetState(uint256 tokenID) external onlyOwner {
	    require(tokenID >= 0, "Invalid token id");
	    mintingTokenID = tokenID;

	    mintIsActivePublic = false;
	    mintIsActivePresale = false;
	    mintIsActiveFree = false;

	    numberMintedPresale = 0;
	    numberMintedPublic = 0;
        numberMintedTotal = 0;
    }


    /**
    *  @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 15 : 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 15 : 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 15 : 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 15 : 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 6 of 15 : 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 7 of 15 : 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 8 of 15 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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.
        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. 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 9 of 15 : 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 10 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 15 : 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 12 of 15 : 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 13 of 15 : 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 14 of 15 : 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 15 of 15 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        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":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amt_each","type":"uint256"}],"name":"airdrop","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":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipFreeWalletState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipMintStatePublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPresaleMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freeWalletList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"walletList","type":"address[]"}],"name":"initFreeWalletList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"walletList","type":"address[]"}],"name":"initPresaleWalletList","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":[],"name":"maxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokensPerTransactionPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokensPerTransactionPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokensPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokensPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","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":"mintFreeWalletList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintIsActiveFree","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintIsActivePresale","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":"numberOfTokens","type":"uint256"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintingTokenID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberMintedPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberMintedPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberMintedTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"address","name":"","type":"address"}],"name":"presaleWalletList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"uint256","name":"amount","type":"uint256"}],"name":"setMaxTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxTokensPerTransactionPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxTokensPerTransactionPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxTokensPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxTokensPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"setMinterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"setMintingTokenID","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"setMintingTokenIdAndResetState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setNumberMintedPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setNumberMintedPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setNumberMintedTotal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenPrice","type":"uint256"}],"name":"setTokenPricePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenPrice","type":"uint256"}],"name":"setTokenPricePublic","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":[],"name":"tokenPricePresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPricePublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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"}]

60c0604052601a60808190527f4d797468204469766973696f6e20416d65726963616e2041706500000000000060a09081526200004091600d9190620003b2565b50604080518082019091526005808252644d4441504560d81b60209092019182526200006f91600e91620003b2565b506000601081905560118190556101f460128190556707d24f36c36900006013556014805460ff19908116909155600560155560168390556017829055670314b3d2e423000060185560198054821690556001601b55601c92909255601d55601e8054909116905560405162004f8038819003908190833981016040819052620000f991620004cc565b8181604051806020016040528060008152506200011c816200021160201b60201c565b50620001316200012b6200022a565b6200022e565b80518251146200015e5760405162461bcd60e51b815260040162000155906200060b565b60405180910390fd5b6000825111620001825760405162461bcd60e51b81526004016200015590620006a8565b60005b82518110156200020657620001f1838281518110620001b457634e487b7160e01b600052603260045260246000fd5b6020026020010151838381518110620001dd57634e487b7160e01b600052603260045260246000fd5b60200260200101516200028060201b60201c565b80620001fd81620007c0565b91505062000185565b50505050506200080a565b805162000226906002906020840190620003b2565b5050565b3390565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620002a95760405162461bcd60e51b81526004016200015590620005bf565b60008111620002cc5760405162461bcd60e51b81526004016200015590620006df565b6001600160a01b03821660009081526007602052604090205415620003055760405162461bcd60e51b815260040162000155906200065d565b60098054600181019091557f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0180546001600160a01b0319166001600160a01b03841690811790915560009081526007602052604090208190556005546200036f90829062000768565b6005556040517f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac90620003a69084908490620005a6565b60405180910390a15050565b828054620003c09062000783565b90600052602060002090601f016020900481019282620003e457600085556200042f565b82601f10620003ff57805160ff19168380011785556200042f565b828001600101855582156200042f579182015b828111156200042f57825182559160200191906001019062000412565b506200043d92915062000441565b5090565b5b808211156200043d576000815560010162000442565b600082601f83011262000469578081fd5b81516020620004826200047c8362000742565b62000716565b82815281810190858301838502870184018810156200049f578586fd5b855b85811015620004bf57815184529284019290840190600101620004a1565b5090979650505050505050565b60008060408385031215620004df578182fd5b82516001600160401b0380821115620004f6578384fd5b818501915085601f8301126200050a578384fd5b815160206200051d6200047c8362000742565b82815281810190858301838502870184018b10156200053a578889fd5b8896505b84871015620005735780516001600160a01b03811681146200055e57898afd5b8352600196909601959183019183016200053e565b50918801519196509093505050808211156200058d578283fd5b506200059c8582860162000458565b9150509250929050565b6001600160a01b03929092168252602082015260400190565b6020808252602c908201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060408201526b7a65726f206164647265737360a01b606082015260800190565b60208082526032908201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726040820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960408201526a206861732073686172657360a81b606082015260800190565b6020808252601a908201527f5061796d656e7453706c69747465723a206e6f20706179656573000000000000604082015260600190565b6020808252601d908201527f5061796d656e7453706c69747465723a20736861726573206172652030000000604082015260600190565b6040518181016001600160401b03811182821017156200073a576200073a620007f4565b604052919050565b60006001600160401b038211156200075e576200075e620007f4565b5060209081020190565b600082198211156200077e576200077e620007de565b500190565b6002810460018216806200079857607f821691505b60208210811415620007ba57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415620007d757620007d7620007de565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b614766806200081a6000396000f3fe6080604052600436106104835760003560e01c80638da5cb5b1161025e578063ce7c2ac211610143578063f242432a116100bb578063f906751b1161008a578063f93468811161006f578063f934688114610c63578063fa5d788214610c83578063ff5a70c614610ca3576104ca565b8063f906751b14610c2e578063f931a4c214610c4e576104ca565b8063f242432a14610bbb578063f2fde38b14610bdb578063f5298aca14610bfb578063f759867a14610c1b576104ca565b8063d9a02e6911610112578063e8315742116100f7578063e831574214610b71578063e8a3d48514610b86578063e985e9c514610b9b576104ca565b8063d9a02e6914610b47578063e33b7de314610b5c576104ca565b8063ce7c2ac214610ac7578063d351cfdc14610ae7578063d70c3dba14610b07578063d79779b214610b27576104ca565b8063a3106b95116101d6578063bd85b039116101a5578063c7b694591161018a578063c7b6945914610a7d578063cca9791114610a92578063cd2c705214610aa7576104ca565b8063bd85b03914610a3d578063c121d6f014610a5d576104ca565b8063a3106b95146109d3578063a496dedf146109f3578063b8de970a14610a13578063b92bc37514610a28576104ca565b80639852595c1161022d578063a0712d6811610212578063a0712d6814610980578063a1e33d0214610993578063a22cb465146109b3576104ca565b80639852595c1461094b5780639be51bea1461096b576104ca565b80638da5cb5b146108ec5780638f4167da14610901578063938e3d7b1461091657806395d89b4114610936576104ca565b8063406072a9116103845780636b20c454116102fc5780637521134c116102cb578063894a8cac116102b0578063894a8cac146108975780638b13fde8146108ac5780638b83209b146108cc576104ca565b80637521134c146108625780637de69d5f14610882576104ca565b80636b20c454146107f85780636de56d0e14610818578063715018a61461082d578063748c455714610842576104ca565b80634e1273f4116103535780634f699a43116103385780634f699a43146107a357806359aefc59146107c35780635d04aeab146107d8576104ca565b80634e1273f4146107565780634f558e7914610783576104ca565b8063406072a9146106e15780634576cdd51461070157806346ca1ab81461071657806348b7504414610736576104ca565b80631916558711610417578063311df29a116103e657806335a4faf4116103cb57806335a4faf4146106975780633a98ef39146106b75780633ccfd60b146106cc576104ca565b8063311df29a1461065557806334d722c914610675576104ca565b806319165587146105eb5780631df09e471461060b5780632b038411146106205780632eb2c2d614610635576104ca565b806306fdde031161045357806306fdde03146105695780630c9a63131461058b5780630e89341c146105ab57806311e776fe146105cb576104ca565b8062fdd58e146104cf57806301ffc9a71461050557806302fe53051461053257806305461a6a14610554576104ca565b366104ca577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706104b1610cb8565b346040516104c09291906139a8565b60405180910390a1005b600080fd5b3480156104db57600080fd5b506104ef6104ea36600461368a565b610cbd565b6040516104fc91906144c7565b60405180910390f35b34801561051157600080fd5b50610525610520366004613852565b610d14565b6040516104fc9190613a98565b34801561053e57600080fd5b5061055261054d36600461389c565b610d8c565b005b34801561056057600080fd5b50610525610ddc565b34801561057557600080fd5b5061057e610de5565b6040516104fc9190613aa3565b34801561059757600080fd5b506105256105a6366004613485565b610e77565b3480156105b757600080fd5b5061057e6105c63660046138e2565b610e8c565b3480156105d757600080fd5b506105526105e63660046138e2565b610f20565b3480156105f757600080fd5b50610552610606366004613485565b610f64565b34801561061757600080fd5b506104ef610fb8565b34801561062c57600080fd5b506104ef610fbe565b34801561064157600080fd5b506105526106503660046134d9565b610fc4565b34801561066157600080fd5b506105526106703660046138e2565b611022565b34801561068157600080fd5b5061068a611066565b6040516104fc9190613994565b3480156106a357600080fd5b506105526106b23660046138e2565b611075565b3480156106c357600080fd5b506104ef6110b9565b3480156106d857600080fd5b506105526110bf565b3480156106ed57600080fd5b506104ef6106fc36600461388a565b611110565b34801561070d57600080fd5b506104ef61113b565b34801561072257600080fd5b506105526107313660046138e2565b611141565b34801561074257600080fd5b5061055261075136600461388a565b611185565b34801561076257600080fd5b506107766107713660046137a0565b611359565b6040516104fc9190613a57565b34801561078f57600080fd5b5061052561079e3660046138e2565b611479565b3480156107af57600080fd5b506105526107be366004613765565b61148c565b3480156107cf57600080fd5b506104ef611545565b3480156107e457600080fd5b506105526107f3366004613765565b61154b565b34801561080457600080fd5b506105526108133660046135ea565b611600565b34801561082457600080fd5b506104ef61165a565b34801561083957600080fd5b50610552611660565b34801561084e57600080fd5b5061052561085d366004613485565b6116ab565b34801561086e57600080fd5b5061055261087d3660046138e2565b6116c0565b34801561088e57600080fd5b506104ef611704565b3480156108a357600080fd5b5061055261170a565b3480156108b857600080fd5b506105526108c73660046138e2565b61175d565b3480156108d857600080fd5b5061068a6108e73660046138e2565b6117a1565b3480156108f857600080fd5b5061068a6117df565b34801561090d57600080fd5b506104ef6117ee565b34801561092257600080fd5b5061055261093136600461389c565b6117f4565b34801561094257600080fd5b5061057e611846565b34801561095757600080fd5b506104ef610966366004613485565b611855565b34801561097757600080fd5b506104ef611870565b61055261098e3660046138e2565b611876565b34801561099f57600080fd5b506105526109ae3660046138e2565b611995565b3480156109bf57600080fd5b506105526109ce36600461365d565b611a06565b3480156109df57600080fd5b506105526109ee366004613485565b611a18565b3480156109ff57600080fd5b50610552610a0e3660046136e9565b611a86565b348015610a1f57600080fd5b506104ef611b36565b348015610a3457600080fd5b50610552611b3c565b348015610a4957600080fd5b506104ef610a583660046138e2565b611b8f565b348015610a6957600080fd5b50610552610a783660046138e2565b611ba1565b348015610a8957600080fd5b50610525611be5565b348015610a9e57600080fd5b50610552611bee565b348015610ab357600080fd5b50610552610ac23660046138e2565b611c93565b348015610ad357600080fd5b506104ef610ae2366004613485565b611cd7565b348015610af357600080fd5b50610552610b02366004613801565b611cf2565b348015610b1357600080fd5b50610552610b223660046138e2565b611d51565b348015610b3357600080fd5b506104ef610b42366004613485565b611d95565b348015610b5357600080fd5b506104ef611db0565b348015610b6857600080fd5b506104ef611db6565b348015610b7d57600080fd5b506104ef611dbc565b348015610b9257600080fd5b5061057e611dc2565b348015610ba757600080fd5b50610525610bb63660046134a1565b611dd1565b348015610bc757600080fd5b50610552610bd6366004613583565b611dff565b348015610be757600080fd5b50610552610bf6366004613485565b611e56565b348015610c0757600080fd5b50610552610c163660046136b5565b611ec4565b610552610c293660046138e2565b611f19565b348015610c3a57600080fd5b50610552610c493660046138e2565b612083565b348015610c5a57600080fd5b506105526120df565b348015610c6f57600080fd5b50610552610c7e3660046138e2565b612132565b348015610c8f57600080fd5b50610552610c9e3660046138e2565b612176565b348015610caf57600080fd5b506105256121ba565b335b90565b60006001600160a01b038316610cee5760405162461bcd60e51b8152600401610ce590613c87565b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b031982167fd9b67a26000000000000000000000000000000000000000000000000000000001480610d7757506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b80610d865750610d86826121c3565b92915050565b600f546001600160a01b0316331480610db4575033610da96117df565b6001600160a01b0316145b610dd05760405162461bcd60e51b8152600401610ce590614071565b610dd9816121f5565b50565b601e5460ff1681565b6060600d8054610df4906145ca565b80601f0160208091040260200160405190810160405280929190818152602001828054610e20906145ca565b8015610e6d5780601f10610e4257610100808354040283529160200191610e6d565b820191906000526020600020905b815481529060010190602001808311610e5057829003601f168201915b5050505050905090565b601f6020526000908152604090205460ff1681565b606060028054610e9b906145ca565b80601f0160208091040260200160405190810160405280929190818152602001828054610ec7906145ca565b8015610f145780601f10610ee957610100808354040283529160200191610f14565b820191906000526020600020905b815481529060010190602001808311610ef757829003601f168201915b50505050509050919050565b610f28610cb8565b6001600160a01b0316610f396117df565b6001600160a01b031614610f5f5760405162461bcd60e51b8152600401610ce590614162565b601255565b336001600160a01b0382161480610f935750610f7e6117df565b6001600160a01b0316336001600160a01b0316145b610faf5760405162461bcd60e51b8152600401610ce5906143fc565b610dd981612208565b60155481565b60185481565b610fcc610cb8565b6001600160a01b0316856001600160a01b03161480610ff25750610ff285610bb6610cb8565b61100e5760405162461bcd60e51b8152600401610ce590613fdd565b61101b8585858585612311565b5050505050565b61102a610cb8565b6001600160a01b031661103b6117df565b6001600160a01b0316146110615760405162461bcd60e51b8152600401610ce590614162565b601855565b600f546001600160a01b031681565b61107d610cb8565b6001600160a01b031661108e6117df565b6001600160a01b0316146110b45760405162461bcd60e51b8152600401610ce590614162565b601b55565b60055490565b6110c7610cb8565b6001600160a01b03166110d86117df565b6001600160a01b0316146110fe5760405162461bcd60e51b8152600401610ce590614162565b47610dd961110a6117df565b826124e2565b6001600160a01b039182166000908152600b6020908152604080832093909416825291909152205490565b60105481565b611149610cb8565b6001600160a01b031661115a6117df565b6001600160a01b0316146111805760405162461bcd60e51b8152600401610ce590614162565b601d55565b6001600160a01b0381166000908152600760205260409020546111ba5760405162461bcd60e51b8152600401610ce590613dfb565b60006111c583611d95565b6040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038516906370a082319061120a903090600401613994565b60206040518083038186803b15801561122257600080fd5b505afa158015611236573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061125a91906138fa565b611264919061452c565b9050600061127c83836112778787611110565b61257e565b90508061129b5760405162461bcd60e51b8152600401610ce590613f23565b6001600160a01b038085166000908152600b60209081526040808320938716835292905290812080548392906112d290849061452c565b90915550506001600160a01b0384166000908152600a6020526040812080548392906112ff90849061452c565b9091555061131090508484836125c6565b836001600160a01b03167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a848360405161134b9291906139a8565b60405180910390a250505050565b6060815183511461137c5760405162461bcd60e51b8152600401610ce590614342565b6000835167ffffffffffffffff8111156113a657634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156113cf578160200160208202803683370190505b50905060005b84518110156114715761143685828151811061140157634e487b7160e01b600052603260045260246000fd5b602002602001015185838151811061142957634e487b7160e01b600052603260045260246000fd5b6020026020010151610cbd565b82828151811061145657634e487b7160e01b600052603260045260246000fd5b602090810291909101015261146a81614605565b90506113d5565b509392505050565b60008061148583611b8f565b1192915050565b611494610cb8565b6001600160a01b03166114a56117df565b6001600160a01b0316146114cb5760405162461bcd60e51b8152600401610ce590614162565b60005b8151811015611541576001601a60008484815181106114fd57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061153981614605565b9150506114ce565b5050565b60175481565b611553610cb8565b6001600160a01b03166115646117df565b6001600160a01b03161461158a5760405162461bcd60e51b8152600401610ce590614162565b60005b8151811015611541576001601f60008484815181106115bc57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806115f881614605565b91505061158d565b611608610cb8565b6001600160a01b0316836001600160a01b0316148061162e575061162e83610bb6610cb8565b61164a5760405162461bcd60e51b8152600401610ce590613d9e565b611655838383612631565b505050565b60115481565b611668610cb8565b6001600160a01b03166116796117df565b6001600160a01b03161461169f5760405162461bcd60e51b8152600401610ce590614162565b6116a960006127e2565b565b601a6020526000908152604090205460ff1681565b6116c8610cb8565b6001600160a01b03166116d96117df565b6001600160a01b0316146116ff5760405162461bcd60e51b8152600401610ce590614162565b601c55565b60135481565b611712610cb8565b6001600160a01b03166117236117df565b6001600160a01b0316146117495760405162461bcd60e51b8152600401610ce590614162565b601e805460ff19811660ff90911615179055565b611765610cb8565b6001600160a01b03166117766117df565b6001600160a01b03161461179c5760405162461bcd60e51b8152600401610ce590614162565b601055565b6000600982815481106117c457634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6004546001600160a01b031690565b601c5481565b6117fc610cb8565b6001600160a01b031661180d6117df565b6001600160a01b0316146118335760405162461bcd60e51b8152600401610ce590614162565b805161154190600c9060208401906132a6565b6060600e8054610df4906145ca565b6001600160a01b031660009081526008602052604090205490565b601b5481565b60145460ff166118985760405162461bcd60e51b8152600401610ce590614490565b6015548111156118ba5760405162461bcd60e51b8152600401610ce590613b70565b806013546118c89190614564565b3410156118e75760405162461bcd60e51b8152600401610ce590614197565b601754816016546118f8919061452c565b11156119165760405162461bcd60e51b8152600401610ce590613bcd565b60125481601154611927919061452c565b11156119455760405162461bcd60e51b8152600401610ce590613bcd565b611962336010548360405180602001604052806000815250612841565b8060166000828254611974919061452c565b92505081905550806011600082825461198d919061452c565b909155505050565b61199d610cb8565b6001600160a01b03166119ae6117df565b6001600160a01b0316146119d45760405162461bcd60e51b8152600401610ce590614162565b6010556014805460ff199081169091556019805482169055601e805490911690556000601c8190556016819055601155565b611541611a11610cb8565b8383612930565b611a20610cb8565b6001600160a01b0316611a316117df565b6001600160a01b031614611a575760405162461bcd60e51b8152600401610ce590614162565b600f805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600f546001600160a01b0316331480611aae575033611aa36117df565b6001600160a01b0316145b611aca5760405162461bcd60e51b8152600401610ce590614071565b60005b8381101561101b57611b24858583818110611af857634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611b0d9190613485565b848460405180602001604052806000815250612841565b80611b2e81614605565b915050611acd565b601d5481565b611b44610cb8565b6001600160a01b0316611b556117df565b6001600160a01b031614611b7b5760405162461bcd60e51b8152600401610ce590614162565b6014805460ff19811660ff90911615179055565b60009081526003602052604090205490565b611ba9610cb8565b6001600160a01b0316611bba6117df565b6001600160a01b031614611be05760405162461bcd60e51b8152600401610ce590614162565b601155565b60145460ff1681565b601e5460ff16611c105760405162461bcd60e51b8152600401610ce590613e58565b336000908152601f602052604090205460ff161515600114611c445760405162461bcd60e51b8152600401610ce590613c2a565b611c6233601054600160405180602001604052806000815250612841565b600160116000828254611c75919061452c565b9091555050336000908152601f60205260409020805460ff19169055565b611c9b610cb8565b6001600160a01b0316611cac6117df565b6001600160a01b031614611cd25760405162461bcd60e51b8152600401610ce590614162565b601355565b6001600160a01b031660009081526007602052604090205490565b600f546001600160a01b0316331480611d1a575033611d0f6117df565b6001600160a01b0316145b611d365760405162461bcd60e51b8152600401610ce590614071565b611541338383604051806020016040528060008152506129d3565b611d59610cb8565b6001600160a01b0316611d6a6117df565b6001600160a01b031614611d905760405162461bcd60e51b8152600401610ce590614162565b601755565b6001600160a01b03166000908152600a602052604090205490565b60165481565b60065490565b60125481565b6060600c8054610df4906145ca565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b611e07610cb8565b6001600160a01b0316856001600160a01b03161480611e2d5750611e2d85610bb6610cb8565b611e495760405162461bcd60e51b8152600401610ce590613d9e565b61101b8585858585612b54565b611e5e610cb8565b6001600160a01b0316611e6f6117df565b6001600160a01b031614611e955760405162461bcd60e51b8152600401610ce590614162565b6001600160a01b038116611ebb5760405162461bcd60e51b8152600401610ce590613ce4565b610dd9816127e2565b611ecc610cb8565b6001600160a01b0316836001600160a01b03161480611ef25750611ef283610bb6610cb8565b611f0e5760405162461bcd60e51b8152600401610ce590613d9e565b611655838383612c88565b60195460ff16611f3b5760405162461bcd60e51b8152600401610ce59061403a565b601b54811115611f5d5760405162461bcd60e51b8152600401610ce590613b70565b80601854611f6b9190614564565b341015611f8a5760405162461bcd60e51b8152600401610ce590614197565b336000908152601a602052604090205460ff161515600114611fbe5760405162461bcd60e51b8152600401610ce59061422b565b60175481601c54611fcf919061452c565b1115611fed5760405162461bcd60e51b8152600401610ce590613bcd565b60125481601154611ffe919061452c565b111561201c5760405162461bcd60e51b8152600401610ce590613bcd565b612039336010548360405180602001604052806000815250612841565b80601c600082825461204b919061452c565b925050819055508060116000828254612064919061452c565b9091555050336000908152601a60205260409020805460ff1916905550565b61208b610cb8565b6001600160a01b031661209c6117df565b6001600160a01b0316146120c25760405162461bcd60e51b8152600401610ce590614162565b610dd9336010548360405180602001604052806000815250612841565b6120e7610cb8565b6001600160a01b03166120f86117df565b6001600160a01b03161461211e5760405162461bcd60e51b8152600401610ce590614162565b6019805460ff19811660ff90911615179055565b61213a610cb8565b6001600160a01b031661214b6117df565b6001600160a01b0316146121715760405162461bcd60e51b8152600401610ce590614162565b601655565b61217e610cb8565b6001600160a01b031661218f6117df565b6001600160a01b0316146121b55760405162461bcd60e51b8152600401610ce590614162565b601555565b60195460ff1681565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b80516115419060029060208401906132a6565b6001600160a01b03811660009081526007602052604090205461223d5760405162461bcd60e51b8152600401610ce590613dfb565b6000612247611db6565b612251904761452c565b90506000612263838361127786611855565b9050806122825760405162461bcd60e51b8152600401610ce590613f23565b6001600160a01b038316600090815260086020526040812080548392906122aa90849061452c565b9250508190555080600660008282546122c3919061452c565b909155506122d3905083826124e2565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b05683826040516123049291906139a8565b60405180910390a1505050565b81518351146123325760405162461bcd60e51b8152600401610ce59061439f565b6001600160a01b0384166123585760405162461bcd60e51b8152600401610ce590613f80565b6000612362610cb8565b9050612372818787878787612d97565b60005b84518110156124745760008582815181106123a057634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008583815181106123cc57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561241c5760405162461bcd60e51b8152600401610ce590614105565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061245990849061452c565b925050819055505050508061246d90614605565b9050612375565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516124c4929190613a6a565b60405180910390a46124da818787878787612da5565b505050505050565b804710156125025760405162461bcd60e51b8152600401610ce590613eec565b6000826001600160a01b03168260405161251b90610cba565b60006040518083038185875af1925050503d8060008114612558576040519150601f19603f3d011682016040523d82523d6000602084013e61255d565b606091505b50509050806116555760405162461bcd60e51b8152600401610ce590613e8f565b6005546001600160a01b038416600090815260076020526040812054909183916125a89086614564565b6125b29190614544565b6125bc9190614583565b90505b9392505050565b6116558363a9059cbb60e01b84846040516024016125e59291906139a8565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b031990931692909217909152612eb3565b6001600160a01b0383166126575760405162461bcd60e51b8152600401610ce5906140a8565b80518251146126785760405162461bcd60e51b8152600401610ce59061439f565b6000612682610cb8565b90506126a281856000868660405180602001604052806000815250612d97565b60005b83518110156127835760008482815181106126d057634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008483815181106126fc57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038c16835290935291909120549091508181101561274c5760405162461bcd60e51b8152600401610ce590613d41565b6000928352602083815260408085206001600160a01b038b168652909152909220910390558061277b81614605565b9150506126a5565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516127d4929190613a6a565b60405180910390a450505050565b600480546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0384166128675760405162461bcd60e51b8152600401610ce590614433565b6000612871610cb8565b90506128928160008761288388612f42565b61288c88612f42565b87612d97565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906128c290849061452c565b92505081905550846001600160a01b031660006001600160a01b0316826001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6287876040516129199291906144d0565b60405180910390a461101b81600087878787612f9b565b816001600160a01b0316836001600160a01b031614156129625760405162461bcd60e51b8152600401610ce590614288565b6001600160a01b0383811660008181526001602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906129c6908590613a98565b60405180910390a3505050565b6001600160a01b0384166129f95760405162461bcd60e51b8152600401610ce590614433565b8151835114612a1a5760405162461bcd60e51b8152600401610ce59061439f565b6000612a24610cb8565b9050612a3581600087878787612d97565b60005b8451811015612aec57838181518110612a6157634e487b7160e01b600052603260045260246000fd5b6020026020010151600080878481518110612a8c57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254612ad4919061452c565b90915550819050612ae481614605565b915050612a38565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612b3d929190613a6a565b60405180910390a461101b81600087878787612da5565b6001600160a01b038416612b7a5760405162461bcd60e51b8152600401610ce590613f80565b6000612b84610cb8565b9050612b9581878761288388612f42565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015612bd65760405162461bcd60e51b8152600401610ce590614105565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612c1390849061452c565b92505081905550856001600160a01b0316876001600160a01b0316836001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628888604051612c699291906144d0565b60405180910390a4612c7f828888888888612f9b565b50505050505050565b6001600160a01b038316612cae5760405162461bcd60e51b8152600401610ce5906140a8565b6000612cb8610cb8565b9050612ce881856000612cca87612f42565b612cd387612f42565b60405180602001604052806000815250612d97565b6000838152602081815260408083206001600160a01b038816845290915290205482811015612d295760405162461bcd60e51b8152600401610ce590613d41565b6000848152602081815260408083206001600160a01b03808a16808652919093528184208786039055905190918516907fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6290612d8890899089906144d0565b60405180910390a45050505050565b6124da86868686868661306c565b612db7846001600160a01b03166131be565b156124da5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612df090899089908890889088906004016139c1565b602060405180830381600087803b158015612e0a57600080fd5b505af1925050508015612e3a575060408051601f3d908101601f19168201909252612e379181019061386e565b60015b612e8357612e46614652565b80612e515750612e6b565b8060405162461bcd60e51b8152600401610ce59190613aa3565b60405162461bcd60e51b8152600401610ce590613ab6565b6001600160e01b0319811663bc197c8160e01b14612c7f5760405162461bcd60e51b8152600401610ce590613b13565b6000612f08826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166131c49092919063ffffffff16565b8051909150156116555780806020019051810190612f269190613836565b6116555760405162461bcd60e51b8152600401610ce5906142e5565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612f8a57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b612fad846001600160a01b03166131be565b156124da5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612fe69089908990889088908890600401613a1f565b602060405180830381600087803b15801561300057600080fd5b505af1925050508015613030575060408051601f3d908101601f1916820190925261302d9181019061386e565b60015b61303c57612e46614652565b6001600160e01b0319811663f23a6e6160e01b14612c7f5760405162461bcd60e51b8152600401610ce590613b13565b61307a8686868686866124da565b6001600160a01b03851661311d5760005b835181101561311b578281815181106130b457634e487b7160e01b600052603260045260246000fd5b6020026020010151600360008684815181106130e057634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254613105919061452c565b90915550613114905081614605565b905061308b565b505b6001600160a01b0384166124da5760005b8351811015612c7f5782818151811061315757634e487b7160e01b600052603260045260246000fd5b60200260200101516003600086848151811061318357634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060008282546131a89190614583565b909155506131b7905081614605565b905061312e565b3b151590565b60606125bc8484600085856131d8856131be565b6131f45760405162461bcd60e51b8152600401610ce5906141f4565b600080866001600160a01b031685876040516132109190613978565b60006040518083038185875af1925050503d806000811461324d576040519150601f19603f3d011682016040523d82523d6000602084013e613252565b606091505b509150915061326282828661326d565b979650505050505050565b6060831561327c5750816125bf565b82511561328c5782518084602001fd5b8160405162461bcd60e51b8152600401610ce59190613aa3565b8280546132b2906145ca565b90600052602060002090601f0160209004810192826132d4576000855561331a565b82601f106132ed57805160ff191683800117855561331a565b8280016001018555821561331a579182015b8281111561331a5782518255916020019190600101906132ff565b5061332692915061332a565b5090565b5b80821115613326576000815560010161332b565b600067ffffffffffffffff83111561335957613359614636565b61336c601f8401601f19166020016144de565b905082815283838301111561338057600080fd5b828260208301376000602084830101529392505050565b600082601f8301126133a7578081fd5b813560206133bc6133b783614508565b6144de565b82815281810190858301838502870184018810156133d8578586fd5b855b858110156133ff5781356133ed816146f7565b845292840192908401906001016133da565b5090979650505050505050565b600082601f83011261341c578081fd5b8135602061342c6133b783614508565b8281528181019085830183850287018401881015613448578586fd5b855b858110156133ff5781358452928401929084019060010161344a565b600082601f830112613476578081fd5b6125bf8383356020850161333f565b600060208284031215613496578081fd5b81356125bf816146f7565b600080604083850312156134b3578081fd5b82356134be816146f7565b915060208301356134ce816146f7565b809150509250929050565b600080600080600060a086880312156134f0578081fd5b85356134fb816146f7565b9450602086013561350b816146f7565b9350604086013567ffffffffffffffff80821115613527578283fd5b61353389838a0161340c565b94506060880135915080821115613548578283fd5b61355489838a0161340c565b93506080880135915080821115613569578283fd5b5061357688828901613466565b9150509295509295909350565b600080600080600060a0868803121561359a578081fd5b85356135a5816146f7565b945060208601356135b5816146f7565b93506040860135925060608601359150608086013567ffffffffffffffff8111156135de578182fd5b61357688828901613466565b6000806000606084860312156135fe578283fd5b8335613609816146f7565b9250602084013567ffffffffffffffff80821115613625578384fd5b6136318783880161340c565b93506040860135915080821115613646578283fd5b506136538682870161340c565b9150509250925092565b6000806040838503121561366f578182fd5b823561367a816146f7565b915060208301356134ce8161470c565b6000806040838503121561369c578182fd5b82356136a7816146f7565b946020939093013593505050565b6000806000606084860312156136c9578081fd5b83356136d4816146f7565b95602085013595506040909401359392505050565b600080600080606085870312156136fe578182fd5b843567ffffffffffffffff80821115613715578384fd5b818701915087601f830112613728578384fd5b813581811115613736578485fd5b8860208083028501011115613749578485fd5b6020928301999098509187013596604001359550909350505050565b600060208284031215613776578081fd5b813567ffffffffffffffff81111561378c578182fd5b61379884828501613397565b949350505050565b600080604083850312156137b2578182fd5b823567ffffffffffffffff808211156137c9578384fd5b6137d586838701613397565b935060208501359150808211156137ea578283fd5b506137f78582860161340c565b9150509250929050565b60008060408385031215613813578182fd5b823567ffffffffffffffff8082111561382a578384fd5b6137d58683870161340c565b600060208284031215613847578081fd5b81516125bf8161470c565b600060208284031215613863578081fd5b81356125bf8161471a565b60006020828403121561387f578081fd5b81516125bf8161471a565b600080604083850312156134b3578182fd5b6000602082840312156138ad578081fd5b813567ffffffffffffffff8111156138c3578182fd5b8201601f810184136138d3578182fd5b6137988482356020840161333f565b6000602082840312156138f3578081fd5b5035919050565b60006020828403121561390b578081fd5b5051919050565b6000815180845260208085019450808401835b8381101561394157815187529582019590820190600101613925565b509495945050505050565b6000815180845261396481602086016020860161459a565b601f01601f19169290920160200192915050565b6000825161398a81846020870161459a565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b60006001600160a01b03808816835280871660208401525060a060408301526139ed60a0830186613912565b82810360608401526139ff8186613912565b90508281036080840152613a13818561394c565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261326260a083018461394c565b6000602082526125bf6020830184613912565b600060408252613a7d6040830185613912565b8281036020840152613a8f8185613912565b95945050505050565b901515815260200190565b6000602082526125bf602083018461394c565b60208082526034908201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560408201527f526563656976657220696d706c656d656e746572000000000000000000000000606082015260800190565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a6563746560408201527f6420746f6b656e73000000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f596f752077656e74206f766572206d617820746f6b656e73207065722074726160408201527f6e73616374696f6e000000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f4e6f7420656e6f75676820746f6b656e73206c65667420746f206d696e74207460408201527f686174206d616e79000000000000000000000000000000000000000000000000606082015260800190565b6020808252603a908201527f596f7520617265206e6f74206f6e2074686520667265652077616c6c6574206c60408201527f697374206f72206861766520616c7265616479206d696e746564000000000000606082015260800190565b6020808252602b908201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60408201527f65726f2061646472657373000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60408201527f616e636500000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201527f20617070726f7665640000000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201527f7368617265730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526017908201527f46726565206d696e74206973206e6f7420616374697665000000000000000000604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201527f647565207061796d656e74000000000000000000000000000000000000000000606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460408201527f6472657373000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060408201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000606082015260800190565b6020808252601a908201527f50726573616c65206d696e74206973206e6f7420616374697665000000000000604082015260600190565b6020808252601d908201527f596f75206d757374206861766520746865204d696e74657220726f6c65000000604082015260600190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201527f6573730000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201527f72207472616e7366657200000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526024908201527f596f752073656e742074686520696e636f727265637420616d6f756e74206f6660408201527f2045544800000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252603d908201527f596f7520617265206e6f74206f6e207468652070726573616c652077616c6c6560408201527f74206c697374206f72206861766520616c7265616479206d696e746564000000606082015260800190565b60208082526029908201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360408201527f20666f722073656c660000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860408201527f206d69736d617463680000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060408201527f6d69736d61746368000000000000000000000000000000000000000000000000606082015260800190565b60208082526016908201527f52656c656173653a206e6f207065726d697373696f6e00000000000000000000604082015260600190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f5075626c6963206d696e74206973206e6f742061637469766500000000000000604082015260600190565b90815260200190565b918252602082015260400190565b60405181810167ffffffffffffffff8111828210171561450057614500614636565b604052919050565b600067ffffffffffffffff82111561452257614522614636565b5060209081020190565b6000821982111561453f5761453f614620565b500190565b60008261455f57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561457e5761457e614620565b500290565b60008282101561459557614595614620565b500390565b60005b838110156145b557818101518382015260200161459d565b838111156145c4576000848401525b50505050565b6002810460018216806145de57607f821691505b602082108114156145ff57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561461957614619614620565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60e01c90565b600060443d101561466257610cba565b600481823e6308c379a0614676825161464c565b1461468057610cba565b6040513d600319016004823e80513d67ffffffffffffffff81602484011181841117156146b05750505050610cba565b828401925082519150808211156146ca5750505050610cba565b503d830160208284010111156146e257505050610cba565b601f01601f1916810160200160405291505090565b6001600160a01b0381168114610dd957600080fd5b8015158114610dd957600080fd5b6001600160e01b031981168114610dd957600080fdfea26469706673582212201800798d92779f3fe305373d7ecc8b4fd44259fdb4e98447c64eeabaf3a774e164736f6c634300080000330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000050000000000000000000000009a8b3cd3043c6b9bd90aff51cf04d4442f550a9900000000000000000000000058ff6950ecf6521729addc597f50d0405fdb2652000000000000000000000000f253de31ec0e0e269d34ca66162ec41e49fd75110000000000000000000000000ededdcac2782fe0c5497e4ff63d5049eb8ecc430000000000000000000000001fcb4fb1c8c239cfde95c833fe5e3564d218733b00000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000280000000000000000000000000000000000000000000000000000000000000023

Deployed Bytecode

0x6080604052600436106104835760003560e01c80638da5cb5b1161025e578063ce7c2ac211610143578063f242432a116100bb578063f906751b1161008a578063f93468811161006f578063f934688114610c63578063fa5d788214610c83578063ff5a70c614610ca3576104ca565b8063f906751b14610c2e578063f931a4c214610c4e576104ca565b8063f242432a14610bbb578063f2fde38b14610bdb578063f5298aca14610bfb578063f759867a14610c1b576104ca565b8063d9a02e6911610112578063e8315742116100f7578063e831574214610b71578063e8a3d48514610b86578063e985e9c514610b9b576104ca565b8063d9a02e6914610b47578063e33b7de314610b5c576104ca565b8063ce7c2ac214610ac7578063d351cfdc14610ae7578063d70c3dba14610b07578063d79779b214610b27576104ca565b8063a3106b95116101d6578063bd85b039116101a5578063c7b694591161018a578063c7b6945914610a7d578063cca9791114610a92578063cd2c705214610aa7576104ca565b8063bd85b03914610a3d578063c121d6f014610a5d576104ca565b8063a3106b95146109d3578063a496dedf146109f3578063b8de970a14610a13578063b92bc37514610a28576104ca565b80639852595c1161022d578063a0712d6811610212578063a0712d6814610980578063a1e33d0214610993578063a22cb465146109b3576104ca565b80639852595c1461094b5780639be51bea1461096b576104ca565b80638da5cb5b146108ec5780638f4167da14610901578063938e3d7b1461091657806395d89b4114610936576104ca565b8063406072a9116103845780636b20c454116102fc5780637521134c116102cb578063894a8cac116102b0578063894a8cac146108975780638b13fde8146108ac5780638b83209b146108cc576104ca565b80637521134c146108625780637de69d5f14610882576104ca565b80636b20c454146107f85780636de56d0e14610818578063715018a61461082d578063748c455714610842576104ca565b80634e1273f4116103535780634f699a43116103385780634f699a43146107a357806359aefc59146107c35780635d04aeab146107d8576104ca565b80634e1273f4146107565780634f558e7914610783576104ca565b8063406072a9146106e15780634576cdd51461070157806346ca1ab81461071657806348b7504414610736576104ca565b80631916558711610417578063311df29a116103e657806335a4faf4116103cb57806335a4faf4146106975780633a98ef39146106b75780633ccfd60b146106cc576104ca565b8063311df29a1461065557806334d722c914610675576104ca565b806319165587146105eb5780631df09e471461060b5780632b038411146106205780632eb2c2d614610635576104ca565b806306fdde031161045357806306fdde03146105695780630c9a63131461058b5780630e89341c146105ab57806311e776fe146105cb576104ca565b8062fdd58e146104cf57806301ffc9a71461050557806302fe53051461053257806305461a6a14610554576104ca565b366104ca577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706104b1610cb8565b346040516104c09291906139a8565b60405180910390a1005b600080fd5b3480156104db57600080fd5b506104ef6104ea36600461368a565b610cbd565b6040516104fc91906144c7565b60405180910390f35b34801561051157600080fd5b50610525610520366004613852565b610d14565b6040516104fc9190613a98565b34801561053e57600080fd5b5061055261054d36600461389c565b610d8c565b005b34801561056057600080fd5b50610525610ddc565b34801561057557600080fd5b5061057e610de5565b6040516104fc9190613aa3565b34801561059757600080fd5b506105256105a6366004613485565b610e77565b3480156105b757600080fd5b5061057e6105c63660046138e2565b610e8c565b3480156105d757600080fd5b506105526105e63660046138e2565b610f20565b3480156105f757600080fd5b50610552610606366004613485565b610f64565b34801561061757600080fd5b506104ef610fb8565b34801561062c57600080fd5b506104ef610fbe565b34801561064157600080fd5b506105526106503660046134d9565b610fc4565b34801561066157600080fd5b506105526106703660046138e2565b611022565b34801561068157600080fd5b5061068a611066565b6040516104fc9190613994565b3480156106a357600080fd5b506105526106b23660046138e2565b611075565b3480156106c357600080fd5b506104ef6110b9565b3480156106d857600080fd5b506105526110bf565b3480156106ed57600080fd5b506104ef6106fc36600461388a565b611110565b34801561070d57600080fd5b506104ef61113b565b34801561072257600080fd5b506105526107313660046138e2565b611141565b34801561074257600080fd5b5061055261075136600461388a565b611185565b34801561076257600080fd5b506107766107713660046137a0565b611359565b6040516104fc9190613a57565b34801561078f57600080fd5b5061052561079e3660046138e2565b611479565b3480156107af57600080fd5b506105526107be366004613765565b61148c565b3480156107cf57600080fd5b506104ef611545565b3480156107e457600080fd5b506105526107f3366004613765565b61154b565b34801561080457600080fd5b506105526108133660046135ea565b611600565b34801561082457600080fd5b506104ef61165a565b34801561083957600080fd5b50610552611660565b34801561084e57600080fd5b5061052561085d366004613485565b6116ab565b34801561086e57600080fd5b5061055261087d3660046138e2565b6116c0565b34801561088e57600080fd5b506104ef611704565b3480156108a357600080fd5b5061055261170a565b3480156108b857600080fd5b506105526108c73660046138e2565b61175d565b3480156108d857600080fd5b5061068a6108e73660046138e2565b6117a1565b3480156108f857600080fd5b5061068a6117df565b34801561090d57600080fd5b506104ef6117ee565b34801561092257600080fd5b5061055261093136600461389c565b6117f4565b34801561094257600080fd5b5061057e611846565b34801561095757600080fd5b506104ef610966366004613485565b611855565b34801561097757600080fd5b506104ef611870565b61055261098e3660046138e2565b611876565b34801561099f57600080fd5b506105526109ae3660046138e2565b611995565b3480156109bf57600080fd5b506105526109ce36600461365d565b611a06565b3480156109df57600080fd5b506105526109ee366004613485565b611a18565b3480156109ff57600080fd5b50610552610a0e3660046136e9565b611a86565b348015610a1f57600080fd5b506104ef611b36565b348015610a3457600080fd5b50610552611b3c565b348015610a4957600080fd5b506104ef610a583660046138e2565b611b8f565b348015610a6957600080fd5b50610552610a783660046138e2565b611ba1565b348015610a8957600080fd5b50610525611be5565b348015610a9e57600080fd5b50610552611bee565b348015610ab357600080fd5b50610552610ac23660046138e2565b611c93565b348015610ad357600080fd5b506104ef610ae2366004613485565b611cd7565b348015610af357600080fd5b50610552610b02366004613801565b611cf2565b348015610b1357600080fd5b50610552610b223660046138e2565b611d51565b348015610b3357600080fd5b506104ef610b42366004613485565b611d95565b348015610b5357600080fd5b506104ef611db0565b348015610b6857600080fd5b506104ef611db6565b348015610b7d57600080fd5b506104ef611dbc565b348015610b9257600080fd5b5061057e611dc2565b348015610ba757600080fd5b50610525610bb63660046134a1565b611dd1565b348015610bc757600080fd5b50610552610bd6366004613583565b611dff565b348015610be757600080fd5b50610552610bf6366004613485565b611e56565b348015610c0757600080fd5b50610552610c163660046136b5565b611ec4565b610552610c293660046138e2565b611f19565b348015610c3a57600080fd5b50610552610c493660046138e2565b612083565b348015610c5a57600080fd5b506105526120df565b348015610c6f57600080fd5b50610552610c7e3660046138e2565b612132565b348015610c8f57600080fd5b50610552610c9e3660046138e2565b612176565b348015610caf57600080fd5b506105256121ba565b335b90565b60006001600160a01b038316610cee5760405162461bcd60e51b8152600401610ce590613c87565b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b031982167fd9b67a26000000000000000000000000000000000000000000000000000000001480610d7757506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b80610d865750610d86826121c3565b92915050565b600f546001600160a01b0316331480610db4575033610da96117df565b6001600160a01b0316145b610dd05760405162461bcd60e51b8152600401610ce590614071565b610dd9816121f5565b50565b601e5460ff1681565b6060600d8054610df4906145ca565b80601f0160208091040260200160405190810160405280929190818152602001828054610e20906145ca565b8015610e6d5780601f10610e4257610100808354040283529160200191610e6d565b820191906000526020600020905b815481529060010190602001808311610e5057829003601f168201915b5050505050905090565b601f6020526000908152604090205460ff1681565b606060028054610e9b906145ca565b80601f0160208091040260200160405190810160405280929190818152602001828054610ec7906145ca565b8015610f145780601f10610ee957610100808354040283529160200191610f14565b820191906000526020600020905b815481529060010190602001808311610ef757829003601f168201915b50505050509050919050565b610f28610cb8565b6001600160a01b0316610f396117df565b6001600160a01b031614610f5f5760405162461bcd60e51b8152600401610ce590614162565b601255565b336001600160a01b0382161480610f935750610f7e6117df565b6001600160a01b0316336001600160a01b0316145b610faf5760405162461bcd60e51b8152600401610ce5906143fc565b610dd981612208565b60155481565b60185481565b610fcc610cb8565b6001600160a01b0316856001600160a01b03161480610ff25750610ff285610bb6610cb8565b61100e5760405162461bcd60e51b8152600401610ce590613fdd565b61101b8585858585612311565b5050505050565b61102a610cb8565b6001600160a01b031661103b6117df565b6001600160a01b0316146110615760405162461bcd60e51b8152600401610ce590614162565b601855565b600f546001600160a01b031681565b61107d610cb8565b6001600160a01b031661108e6117df565b6001600160a01b0316146110b45760405162461bcd60e51b8152600401610ce590614162565b601b55565b60055490565b6110c7610cb8565b6001600160a01b03166110d86117df565b6001600160a01b0316146110fe5760405162461bcd60e51b8152600401610ce590614162565b47610dd961110a6117df565b826124e2565b6001600160a01b039182166000908152600b6020908152604080832093909416825291909152205490565b60105481565b611149610cb8565b6001600160a01b031661115a6117df565b6001600160a01b0316146111805760405162461bcd60e51b8152600401610ce590614162565b601d55565b6001600160a01b0381166000908152600760205260409020546111ba5760405162461bcd60e51b8152600401610ce590613dfb565b60006111c583611d95565b6040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038516906370a082319061120a903090600401613994565b60206040518083038186803b15801561122257600080fd5b505afa158015611236573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061125a91906138fa565b611264919061452c565b9050600061127c83836112778787611110565b61257e565b90508061129b5760405162461bcd60e51b8152600401610ce590613f23565b6001600160a01b038085166000908152600b60209081526040808320938716835292905290812080548392906112d290849061452c565b90915550506001600160a01b0384166000908152600a6020526040812080548392906112ff90849061452c565b9091555061131090508484836125c6565b836001600160a01b03167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a848360405161134b9291906139a8565b60405180910390a250505050565b6060815183511461137c5760405162461bcd60e51b8152600401610ce590614342565b6000835167ffffffffffffffff8111156113a657634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156113cf578160200160208202803683370190505b50905060005b84518110156114715761143685828151811061140157634e487b7160e01b600052603260045260246000fd5b602002602001015185838151811061142957634e487b7160e01b600052603260045260246000fd5b6020026020010151610cbd565b82828151811061145657634e487b7160e01b600052603260045260246000fd5b602090810291909101015261146a81614605565b90506113d5565b509392505050565b60008061148583611b8f565b1192915050565b611494610cb8565b6001600160a01b03166114a56117df565b6001600160a01b0316146114cb5760405162461bcd60e51b8152600401610ce590614162565b60005b8151811015611541576001601a60008484815181106114fd57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061153981614605565b9150506114ce565b5050565b60175481565b611553610cb8565b6001600160a01b03166115646117df565b6001600160a01b03161461158a5760405162461bcd60e51b8152600401610ce590614162565b60005b8151811015611541576001601f60008484815181106115bc57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806115f881614605565b91505061158d565b611608610cb8565b6001600160a01b0316836001600160a01b0316148061162e575061162e83610bb6610cb8565b61164a5760405162461bcd60e51b8152600401610ce590613d9e565b611655838383612631565b505050565b60115481565b611668610cb8565b6001600160a01b03166116796117df565b6001600160a01b03161461169f5760405162461bcd60e51b8152600401610ce590614162565b6116a960006127e2565b565b601a6020526000908152604090205460ff1681565b6116c8610cb8565b6001600160a01b03166116d96117df565b6001600160a01b0316146116ff5760405162461bcd60e51b8152600401610ce590614162565b601c55565b60135481565b611712610cb8565b6001600160a01b03166117236117df565b6001600160a01b0316146117495760405162461bcd60e51b8152600401610ce590614162565b601e805460ff19811660ff90911615179055565b611765610cb8565b6001600160a01b03166117766117df565b6001600160a01b03161461179c5760405162461bcd60e51b8152600401610ce590614162565b601055565b6000600982815481106117c457634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6004546001600160a01b031690565b601c5481565b6117fc610cb8565b6001600160a01b031661180d6117df565b6001600160a01b0316146118335760405162461bcd60e51b8152600401610ce590614162565b805161154190600c9060208401906132a6565b6060600e8054610df4906145ca565b6001600160a01b031660009081526008602052604090205490565b601b5481565b60145460ff166118985760405162461bcd60e51b8152600401610ce590614490565b6015548111156118ba5760405162461bcd60e51b8152600401610ce590613b70565b806013546118c89190614564565b3410156118e75760405162461bcd60e51b8152600401610ce590614197565b601754816016546118f8919061452c565b11156119165760405162461bcd60e51b8152600401610ce590613bcd565b60125481601154611927919061452c565b11156119455760405162461bcd60e51b8152600401610ce590613bcd565b611962336010548360405180602001604052806000815250612841565b8060166000828254611974919061452c565b92505081905550806011600082825461198d919061452c565b909155505050565b61199d610cb8565b6001600160a01b03166119ae6117df565b6001600160a01b0316146119d45760405162461bcd60e51b8152600401610ce590614162565b6010556014805460ff199081169091556019805482169055601e805490911690556000601c8190556016819055601155565b611541611a11610cb8565b8383612930565b611a20610cb8565b6001600160a01b0316611a316117df565b6001600160a01b031614611a575760405162461bcd60e51b8152600401610ce590614162565b600f805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600f546001600160a01b0316331480611aae575033611aa36117df565b6001600160a01b0316145b611aca5760405162461bcd60e51b8152600401610ce590614071565b60005b8381101561101b57611b24858583818110611af857634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611b0d9190613485565b848460405180602001604052806000815250612841565b80611b2e81614605565b915050611acd565b601d5481565b611b44610cb8565b6001600160a01b0316611b556117df565b6001600160a01b031614611b7b5760405162461bcd60e51b8152600401610ce590614162565b6014805460ff19811660ff90911615179055565b60009081526003602052604090205490565b611ba9610cb8565b6001600160a01b0316611bba6117df565b6001600160a01b031614611be05760405162461bcd60e51b8152600401610ce590614162565b601155565b60145460ff1681565b601e5460ff16611c105760405162461bcd60e51b8152600401610ce590613e58565b336000908152601f602052604090205460ff161515600114611c445760405162461bcd60e51b8152600401610ce590613c2a565b611c6233601054600160405180602001604052806000815250612841565b600160116000828254611c75919061452c565b9091555050336000908152601f60205260409020805460ff19169055565b611c9b610cb8565b6001600160a01b0316611cac6117df565b6001600160a01b031614611cd25760405162461bcd60e51b8152600401610ce590614162565b601355565b6001600160a01b031660009081526007602052604090205490565b600f546001600160a01b0316331480611d1a575033611d0f6117df565b6001600160a01b0316145b611d365760405162461bcd60e51b8152600401610ce590614071565b611541338383604051806020016040528060008152506129d3565b611d59610cb8565b6001600160a01b0316611d6a6117df565b6001600160a01b031614611d905760405162461bcd60e51b8152600401610ce590614162565b601755565b6001600160a01b03166000908152600a602052604090205490565b60165481565b60065490565b60125481565b6060600c8054610df4906145ca565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b611e07610cb8565b6001600160a01b0316856001600160a01b03161480611e2d5750611e2d85610bb6610cb8565b611e495760405162461bcd60e51b8152600401610ce590613d9e565b61101b8585858585612b54565b611e5e610cb8565b6001600160a01b0316611e6f6117df565b6001600160a01b031614611e955760405162461bcd60e51b8152600401610ce590614162565b6001600160a01b038116611ebb5760405162461bcd60e51b8152600401610ce590613ce4565b610dd9816127e2565b611ecc610cb8565b6001600160a01b0316836001600160a01b03161480611ef25750611ef283610bb6610cb8565b611f0e5760405162461bcd60e51b8152600401610ce590613d9e565b611655838383612c88565b60195460ff16611f3b5760405162461bcd60e51b8152600401610ce59061403a565b601b54811115611f5d5760405162461bcd60e51b8152600401610ce590613b70565b80601854611f6b9190614564565b341015611f8a5760405162461bcd60e51b8152600401610ce590614197565b336000908152601a602052604090205460ff161515600114611fbe5760405162461bcd60e51b8152600401610ce59061422b565b60175481601c54611fcf919061452c565b1115611fed5760405162461bcd60e51b8152600401610ce590613bcd565b60125481601154611ffe919061452c565b111561201c5760405162461bcd60e51b8152600401610ce590613bcd565b612039336010548360405180602001604052806000815250612841565b80601c600082825461204b919061452c565b925050819055508060116000828254612064919061452c565b9091555050336000908152601a60205260409020805460ff1916905550565b61208b610cb8565b6001600160a01b031661209c6117df565b6001600160a01b0316146120c25760405162461bcd60e51b8152600401610ce590614162565b610dd9336010548360405180602001604052806000815250612841565b6120e7610cb8565b6001600160a01b03166120f86117df565b6001600160a01b03161461211e5760405162461bcd60e51b8152600401610ce590614162565b6019805460ff19811660ff90911615179055565b61213a610cb8565b6001600160a01b031661214b6117df565b6001600160a01b0316146121715760405162461bcd60e51b8152600401610ce590614162565b601655565b61217e610cb8565b6001600160a01b031661218f6117df565b6001600160a01b0316146121b55760405162461bcd60e51b8152600401610ce590614162565b601555565b60195460ff1681565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b80516115419060029060208401906132a6565b6001600160a01b03811660009081526007602052604090205461223d5760405162461bcd60e51b8152600401610ce590613dfb565b6000612247611db6565b612251904761452c565b90506000612263838361127786611855565b9050806122825760405162461bcd60e51b8152600401610ce590613f23565b6001600160a01b038316600090815260086020526040812080548392906122aa90849061452c565b9250508190555080600660008282546122c3919061452c565b909155506122d3905083826124e2565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b05683826040516123049291906139a8565b60405180910390a1505050565b81518351146123325760405162461bcd60e51b8152600401610ce59061439f565b6001600160a01b0384166123585760405162461bcd60e51b8152600401610ce590613f80565b6000612362610cb8565b9050612372818787878787612d97565b60005b84518110156124745760008582815181106123a057634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008583815181106123cc57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561241c5760405162461bcd60e51b8152600401610ce590614105565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061245990849061452c565b925050819055505050508061246d90614605565b9050612375565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516124c4929190613a6a565b60405180910390a46124da818787878787612da5565b505050505050565b804710156125025760405162461bcd60e51b8152600401610ce590613eec565b6000826001600160a01b03168260405161251b90610cba565b60006040518083038185875af1925050503d8060008114612558576040519150601f19603f3d011682016040523d82523d6000602084013e61255d565b606091505b50509050806116555760405162461bcd60e51b8152600401610ce590613e8f565b6005546001600160a01b038416600090815260076020526040812054909183916125a89086614564565b6125b29190614544565b6125bc9190614583565b90505b9392505050565b6116558363a9059cbb60e01b84846040516024016125e59291906139a8565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b031990931692909217909152612eb3565b6001600160a01b0383166126575760405162461bcd60e51b8152600401610ce5906140a8565b80518251146126785760405162461bcd60e51b8152600401610ce59061439f565b6000612682610cb8565b90506126a281856000868660405180602001604052806000815250612d97565b60005b83518110156127835760008482815181106126d057634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008483815181106126fc57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038c16835290935291909120549091508181101561274c5760405162461bcd60e51b8152600401610ce590613d41565b6000928352602083815260408085206001600160a01b038b168652909152909220910390558061277b81614605565b9150506126a5565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516127d4929190613a6a565b60405180910390a450505050565b600480546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0384166128675760405162461bcd60e51b8152600401610ce590614433565b6000612871610cb8565b90506128928160008761288388612f42565b61288c88612f42565b87612d97565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906128c290849061452c565b92505081905550846001600160a01b031660006001600160a01b0316826001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6287876040516129199291906144d0565b60405180910390a461101b81600087878787612f9b565b816001600160a01b0316836001600160a01b031614156129625760405162461bcd60e51b8152600401610ce590614288565b6001600160a01b0383811660008181526001602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906129c6908590613a98565b60405180910390a3505050565b6001600160a01b0384166129f95760405162461bcd60e51b8152600401610ce590614433565b8151835114612a1a5760405162461bcd60e51b8152600401610ce59061439f565b6000612a24610cb8565b9050612a3581600087878787612d97565b60005b8451811015612aec57838181518110612a6157634e487b7160e01b600052603260045260246000fd5b6020026020010151600080878481518110612a8c57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254612ad4919061452c565b90915550819050612ae481614605565b915050612a38565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612b3d929190613a6a565b60405180910390a461101b81600087878787612da5565b6001600160a01b038416612b7a5760405162461bcd60e51b8152600401610ce590613f80565b6000612b84610cb8565b9050612b9581878761288388612f42565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015612bd65760405162461bcd60e51b8152600401610ce590614105565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612c1390849061452c565b92505081905550856001600160a01b0316876001600160a01b0316836001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628888604051612c699291906144d0565b60405180910390a4612c7f828888888888612f9b565b50505050505050565b6001600160a01b038316612cae5760405162461bcd60e51b8152600401610ce5906140a8565b6000612cb8610cb8565b9050612ce881856000612cca87612f42565b612cd387612f42565b60405180602001604052806000815250612d97565b6000838152602081815260408083206001600160a01b038816845290915290205482811015612d295760405162461bcd60e51b8152600401610ce590613d41565b6000848152602081815260408083206001600160a01b03808a16808652919093528184208786039055905190918516907fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6290612d8890899089906144d0565b60405180910390a45050505050565b6124da86868686868661306c565b612db7846001600160a01b03166131be565b156124da5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612df090899089908890889088906004016139c1565b602060405180830381600087803b158015612e0a57600080fd5b505af1925050508015612e3a575060408051601f3d908101601f19168201909252612e379181019061386e565b60015b612e8357612e46614652565b80612e515750612e6b565b8060405162461bcd60e51b8152600401610ce59190613aa3565b60405162461bcd60e51b8152600401610ce590613ab6565b6001600160e01b0319811663bc197c8160e01b14612c7f5760405162461bcd60e51b8152600401610ce590613b13565b6000612f08826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166131c49092919063ffffffff16565b8051909150156116555780806020019051810190612f269190613836565b6116555760405162461bcd60e51b8152600401610ce5906142e5565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612f8a57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b612fad846001600160a01b03166131be565b156124da5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612fe69089908990889088908890600401613a1f565b602060405180830381600087803b15801561300057600080fd5b505af1925050508015613030575060408051601f3d908101601f1916820190925261302d9181019061386e565b60015b61303c57612e46614652565b6001600160e01b0319811663f23a6e6160e01b14612c7f5760405162461bcd60e51b8152600401610ce590613b13565b61307a8686868686866124da565b6001600160a01b03851661311d5760005b835181101561311b578281815181106130b457634e487b7160e01b600052603260045260246000fd5b6020026020010151600360008684815181106130e057634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254613105919061452c565b90915550613114905081614605565b905061308b565b505b6001600160a01b0384166124da5760005b8351811015612c7f5782818151811061315757634e487b7160e01b600052603260045260246000fd5b60200260200101516003600086848151811061318357634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060008282546131a89190614583565b909155506131b7905081614605565b905061312e565b3b151590565b60606125bc8484600085856131d8856131be565b6131f45760405162461bcd60e51b8152600401610ce5906141f4565b600080866001600160a01b031685876040516132109190613978565b60006040518083038185875af1925050503d806000811461324d576040519150601f19603f3d011682016040523d82523d6000602084013e613252565b606091505b509150915061326282828661326d565b979650505050505050565b6060831561327c5750816125bf565b82511561328c5782518084602001fd5b8160405162461bcd60e51b8152600401610ce59190613aa3565b8280546132b2906145ca565b90600052602060002090601f0160209004810192826132d4576000855561331a565b82601f106132ed57805160ff191683800117855561331a565b8280016001018555821561331a579182015b8281111561331a5782518255916020019190600101906132ff565b5061332692915061332a565b5090565b5b80821115613326576000815560010161332b565b600067ffffffffffffffff83111561335957613359614636565b61336c601f8401601f19166020016144de565b905082815283838301111561338057600080fd5b828260208301376000602084830101529392505050565b600082601f8301126133a7578081fd5b813560206133bc6133b783614508565b6144de565b82815281810190858301838502870184018810156133d8578586fd5b855b858110156133ff5781356133ed816146f7565b845292840192908401906001016133da565b5090979650505050505050565b600082601f83011261341c578081fd5b8135602061342c6133b783614508565b8281528181019085830183850287018401881015613448578586fd5b855b858110156133ff5781358452928401929084019060010161344a565b600082601f830112613476578081fd5b6125bf8383356020850161333f565b600060208284031215613496578081fd5b81356125bf816146f7565b600080604083850312156134b3578081fd5b82356134be816146f7565b915060208301356134ce816146f7565b809150509250929050565b600080600080600060a086880312156134f0578081fd5b85356134fb816146f7565b9450602086013561350b816146f7565b9350604086013567ffffffffffffffff80821115613527578283fd5b61353389838a0161340c565b94506060880135915080821115613548578283fd5b61355489838a0161340c565b93506080880135915080821115613569578283fd5b5061357688828901613466565b9150509295509295909350565b600080600080600060a0868803121561359a578081fd5b85356135a5816146f7565b945060208601356135b5816146f7565b93506040860135925060608601359150608086013567ffffffffffffffff8111156135de578182fd5b61357688828901613466565b6000806000606084860312156135fe578283fd5b8335613609816146f7565b9250602084013567ffffffffffffffff80821115613625578384fd5b6136318783880161340c565b93506040860135915080821115613646578283fd5b506136538682870161340c565b9150509250925092565b6000806040838503121561366f578182fd5b823561367a816146f7565b915060208301356134ce8161470c565b6000806040838503121561369c578182fd5b82356136a7816146f7565b946020939093013593505050565b6000806000606084860312156136c9578081fd5b83356136d4816146f7565b95602085013595506040909401359392505050565b600080600080606085870312156136fe578182fd5b843567ffffffffffffffff80821115613715578384fd5b818701915087601f830112613728578384fd5b813581811115613736578485fd5b8860208083028501011115613749578485fd5b6020928301999098509187013596604001359550909350505050565b600060208284031215613776578081fd5b813567ffffffffffffffff81111561378c578182fd5b61379884828501613397565b949350505050565b600080604083850312156137b2578182fd5b823567ffffffffffffffff808211156137c9578384fd5b6137d586838701613397565b935060208501359150808211156137ea578283fd5b506137f78582860161340c565b9150509250929050565b60008060408385031215613813578182fd5b823567ffffffffffffffff8082111561382a578384fd5b6137d58683870161340c565b600060208284031215613847578081fd5b81516125bf8161470c565b600060208284031215613863578081fd5b81356125bf8161471a565b60006020828403121561387f578081fd5b81516125bf8161471a565b600080604083850312156134b3578182fd5b6000602082840312156138ad578081fd5b813567ffffffffffffffff8111156138c3578182fd5b8201601f810184136138d3578182fd5b6137988482356020840161333f565b6000602082840312156138f3578081fd5b5035919050565b60006020828403121561390b578081fd5b5051919050565b6000815180845260208085019450808401835b8381101561394157815187529582019590820190600101613925565b509495945050505050565b6000815180845261396481602086016020860161459a565b601f01601f19169290920160200192915050565b6000825161398a81846020870161459a565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b60006001600160a01b03808816835280871660208401525060a060408301526139ed60a0830186613912565b82810360608401526139ff8186613912565b90508281036080840152613a13818561394c565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261326260a083018461394c565b6000602082526125bf6020830184613912565b600060408252613a7d6040830185613912565b8281036020840152613a8f8185613912565b95945050505050565b901515815260200190565b6000602082526125bf602083018461394c565b60208082526034908201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560408201527f526563656976657220696d706c656d656e746572000000000000000000000000606082015260800190565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a6563746560408201527f6420746f6b656e73000000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f596f752077656e74206f766572206d617820746f6b656e73207065722074726160408201527f6e73616374696f6e000000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f4e6f7420656e6f75676820746f6b656e73206c65667420746f206d696e74207460408201527f686174206d616e79000000000000000000000000000000000000000000000000606082015260800190565b6020808252603a908201527f596f7520617265206e6f74206f6e2074686520667265652077616c6c6574206c60408201527f697374206f72206861766520616c7265616479206d696e746564000000000000606082015260800190565b6020808252602b908201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60408201527f65726f2061646472657373000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60408201527f616e636500000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201527f20617070726f7665640000000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201527f7368617265730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526017908201527f46726565206d696e74206973206e6f7420616374697665000000000000000000604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201527f647565207061796d656e74000000000000000000000000000000000000000000606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460408201527f6472657373000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060408201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000606082015260800190565b6020808252601a908201527f50726573616c65206d696e74206973206e6f7420616374697665000000000000604082015260600190565b6020808252601d908201527f596f75206d757374206861766520746865204d696e74657220726f6c65000000604082015260600190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201527f6573730000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201527f72207472616e7366657200000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526024908201527f596f752073656e742074686520696e636f727265637420616d6f756e74206f6660408201527f2045544800000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252603d908201527f596f7520617265206e6f74206f6e207468652070726573616c652077616c6c6560408201527f74206c697374206f72206861766520616c7265616479206d696e746564000000606082015260800190565b60208082526029908201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360408201527f20666f722073656c660000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860408201527f206d69736d617463680000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060408201527f6d69736d61746368000000000000000000000000000000000000000000000000606082015260800190565b60208082526016908201527f52656c656173653a206e6f207065726d697373696f6e00000000000000000000604082015260600190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f5075626c6963206d696e74206973206e6f742061637469766500000000000000604082015260600190565b90815260200190565b918252602082015260400190565b60405181810167ffffffffffffffff8111828210171561450057614500614636565b604052919050565b600067ffffffffffffffff82111561452257614522614636565b5060209081020190565b6000821982111561453f5761453f614620565b500190565b60008261455f57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561457e5761457e614620565b500290565b60008282101561459557614595614620565b500390565b60005b838110156145b557818101518382015260200161459d565b838111156145c4576000848401525b50505050565b6002810460018216806145de57607f821691505b602082108114156145ff57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561461957614619614620565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60e01c90565b600060443d101561466257610cba565b600481823e6308c379a0614676825161464c565b1461468057610cba565b6040513d600319016004823e80513d67ffffffffffffffff81602484011181841117156146b05750505050610cba565b828401925082519150808211156146ca5750505050610cba565b503d830160208284010111156146e257505050610cba565b601f01601f1916810160200160405291505090565b6001600160a01b0381168114610dd957600080fd5b8015158114610dd957600080fd5b6001600160e01b031981168114610dd957600080fdfea26469706673582212201800798d92779f3fe305373d7ecc8b4fd44259fdb4e98447c64eeabaf3a774e164736f6c63430008000033

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

0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000050000000000000000000000009a8b3cd3043c6b9bd90aff51cf04d4442f550a9900000000000000000000000058ff6950ecf6521729addc597f50d0405fdb2652000000000000000000000000f253de31ec0e0e269d34ca66162ec41e49fd75110000000000000000000000000ededdcac2782fe0c5497e4ff63d5049eb8ecc430000000000000000000000001fcb4fb1c8c239cfde95c833fe5e3564d218733b00000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000280000000000000000000000000000000000000000000000000000000000000023

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

-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [3] : 0000000000000000000000009a8b3cd3043c6b9bd90aff51cf04d4442f550a99
Arg [4] : 00000000000000000000000058ff6950ecf6521729addc597f50d0405fdb2652
Arg [5] : 000000000000000000000000f253de31ec0e0e269d34ca66162ec41e49fd7511
Arg [6] : 0000000000000000000000000ededdcac2782fe0c5497e4ff63d5049eb8ecc43
Arg [7] : 0000000000000000000000001fcb4fb1c8c239cfde95c833fe5e3564d218733b
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [10] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [11] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000028
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000023


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.