ETH Price: $3,917.29 (+0.15%)

Token

Pudgy Ape Moldy Serums (PAMS)
 

Overview

Max Total Supply

350 PAMS

Holders

70

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
erickjoseph.eth
0xdba56ce6b68fe25ee41bbc1ed5559870962fcc1d
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:
PudgyApeMoldySerums

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : PudgyApeMoldySerums.sol
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "./FridgeInterface.sol";

contract PudgyApeMoldySerums is ERC1155, Pausable, Ownable, ReentrancyGuard, PaymentSplitter {
    using ECDSA for bytes32;

    uint256[] private _shares = [10,20,70];
    address[] private _shareholders = [
        0x81Bf2Bc8119695ed2A196556e4182DaF49872163,
        0x3461895e441a1D368E04525276B96Aeb87431fe9,
        0x3584fE4F1e719FD0cC0F814a4A675181438B45DD
    ];

    //Start timestamp
    uint public startTime = 1650474000;

    //Serum types
    uint public immutable M1Serum = 1;
    uint public immutable M2Serum = 2;
    uint public immutable M3Serum = 3;
    mapping(uint => bool) public validSerumTypes;

    //Claims
    mapping(uint => bool) public pudgyApesUsed;

    //Metadata
    string public name = "Pudgy Ape Moldy Serums";
    string public symbol = "PAMS";
    string public baseURI;

    //Contracts
    address public SNAC;
    address public PudgyApes;
    address public MutantPudgies;
    address public Fridge;

    //Signer
    address private signer;

    uint public snackPrice = 1200 ether;
    uint public ethPrice = 0.015 ether;

    constructor(address _pudgyApes, address _snac, address _fridge , string memory _uri)
        ERC1155(
            _uri
        )
        PaymentSplitter(_shareholders, _shares)
        {
            baseURI = _uri;
            validSerumTypes[M1Serum] = true;
            validSerumTypes[M2Serum] = true;
            validSerumTypes[M3Serum] = true;
            Fridge = _fridge;
            PudgyApes = _pudgyApes;
            SNAC = _snac;
        }

    //CLAIM
    function claimForSnack(uint[] calldata _ids, bytes[] memory signature) external whenNotPaused nonReentrant {
        require(isClaimingOpen(), "PudgySerums: Claiming is not open yet!");
        require(IERC20(SNAC).balanceOf(msg.sender) >= snackPrice*_ids.length, "PudgySerums: You don't have enough SNAC to claim!");
        IERC20(SNAC).transferFrom(msg.sender,address(Fridge), snackPrice*_ids.length);
        for(uint i = 0; i < _ids.length; i++) {
            uint serumType = getTypeFromSignature(_ids[i], signature[i]);
            require(serumType != 0, "PudgySerums: Invalid signature!");
            require(ownedOrStaked(_ids[i]), "PudgySerums: You don't own this token!");
            require(!isClaimed(_ids[i]), "PudgySerums: The allocated serum has already been claimed!");
            pudgyApesUsed[_ids[i]] = true;
            _mint(msg.sender, serumType, 1, "");
        }
    }

    function claimForETH(uint[] calldata _ids, bytes[] memory signature) external payable whenNotPaused nonReentrant {
        require(isClaimingOpen(), "PudgySerums: Claiming is not open yet!");
        require(msg.value >= ethPrice*_ids.length, "PudgySerums: Not enough ETH!");
        for(uint i = 0; i < _ids.length; i++) {
            uint serumType = getTypeFromSignature(_ids[i], signature[i]);
            require(serumType != 0, "PudgySerums: Invalid signature!");
            require(ownedOrStaked(_ids[i]), "PudgySerums: You don't own this token!");
            require(!isClaimed(_ids[i]), "PudgySerums: The allocated serum has already been claimed!");
            pudgyApesUsed[_ids[i]] = true;
            _mint(msg.sender, serumType, 1, "");
        }
    }

    function getTypeFromSignature(uint id, bytes memory signature) internal view returns (uint) {
        for(uint i = 1; i <= 3; i++) {
            bytes32 hash = keccak256(abi.encodePacked(id, i));
            bytes32 messageHash = hash.toEthSignedMessageHash();
            if(messageHash.recover(signature) == signer) {
                return i;
            }
        }
        return 0;
    }

    //BURN
    function consumeSerum(uint _serumType, address _account) external whenNotPaused {
        require(msg.sender == MutantPudgies, "PudgySerums: Only burner contract can consume serums!");
        require(validSerumTypes[_serumType], "PudgySerums: Invalid serum type!");
        _burn(_account, _serumType, 1);
    }

    function isClaimingOpen() public view returns (bool) {
        return block.timestamp >= startTime;
    }

    function isClaimed(uint _tokenId) public view returns (bool) {
        return pudgyApesUsed[_tokenId];
    }

    function ownedOrStaked(uint _tokenId) public view returns (bool) {
        uint[] memory stakedTokens = FridgeInterface(Fridge).tokensStaked(msg.sender);
        bool isStaked = false;
        for(uint i = 0; i < stakedTokens.length; i++) {
            if(stakedTokens[i] == _tokenId) {
                isStaked = true;
            }
        }
        return IERC721(PudgyApes).ownerOf(_tokenId) == msg.sender || isStaked;
    }

    //Pause
    function pause() external onlyOwner {
        _pause();
    }

    //Unpause
    function unpause() external onlyOwner {
        _unpause();
    }

    //Metadata URI
    function uri(uint256 _tokenId) public view override returns (string memory) {
        require(validSerumTypes[_tokenId], "PudgySerums: Invalid serum type!");
        return string(abi.encodePacked(abi.encodePacked(baseURI, Strings.toString(_tokenId)), ".json"));
    }

    //Set PudgyApes
    function setPudgyApes(address _pudgyApes) external onlyOwner {
        PudgyApes = _pudgyApes;
    }

    //Set Mutant Pudgies
    function setMutantPudgies(address _mutantPudgies) external onlyOwner {
        MutantPudgies = _mutantPudgies;
    }

    //Set SNAC
    function setSnac(address _snac) external onlyOwner {
        SNAC = _snac;
    }

    //Set Fridge
    function setFridge(address _fridge) external onlyOwner {
        Fridge = _fridge;
    }

    //Set start time
    function setStartTime(uint _startTime) external onlyOwner {
        startTime = _startTime;
    }

    function setSnackPrice(uint _price) external onlyOwner {
        snackPrice = _price;
    }

    function sethETHPrice(uint _price) external onlyOwner {
        ethPrice = _price;
    }

    function setSigner(address _signer) external onlyOwner {
        signer = _signer;
    }

    function withdrawAll() external onlyOwner {
        for (uint256 sh = 0; sh < _shareholders.length; sh++) {
            address payable wallet = payable(_shareholders[sh]);
            release(wallet);
        }
    }
}

File 2 of 19 : 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 19 : 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 4 of 19 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

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

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 6 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 9 of 19 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 10 of 19 : 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 11 of 19 : FridgeInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

contract FridgeInterface {
    function tokensStaked(address _wallet) public view returns (uint[] memory _tokens) {}
}

File 12 of 19 : 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 13 of 19 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

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

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

File 14 of 19 : 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 15 of 19 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 16 of 19 : 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 17 of 19 : 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 18 of 19 : 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 19 of 19 : 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");
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_pudgyApes","type":"address"},{"internalType":"address","name":"_snac","type":"address"},{"internalType":"address","name":"_fridge","type":"address"},{"internalType":"string","name":"_uri","type":"string"}],"stateMutability":"nonpayable","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"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"Fridge","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"M1Serum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"M2Serum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"M3Serum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MutantPudgies","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PudgyApes","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SNAC","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"bytes[]","name":"signature","type":"bytes[]"}],"name":"claimForETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"bytes[]","name":"signature","type":"bytes[]"}],"name":"claimForSnack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_serumType","type":"uint256"},{"internalType":"address","name":"_account","type":"address"}],"name":"consumeSerum","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ethPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isClaimingOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"ownedOrStaked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pudgyApesUsed","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":"address","name":"_fridge","type":"address"}],"name":"setFridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_mutantPudgies","type":"address"}],"name":"setMutantPudgies","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pudgyApes","type":"address"}],"name":"setPudgyApes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_snac","type":"address"}],"name":"setSnac","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setSnackPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"}],"name":"setStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"sethETHPrice","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":[],"name":"snackPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"validSerumTypes","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

610140604052600a60e09081526014610100526046610120526200002890600c90600362000673565b50604080516060810182527381bf2bc8119695ed2a196556e4182daf498721638152733461895e441a1d368e04525276b96aeb87431fe96020820152733584fe4f1e719fd0cc0f814a4a675181438b45dd918101919091526200009090600d906003620006c8565b506362603c10600e556001608052600260a052600360c0526040805180820190915260168082527f507564677920417065204d6f6c647920536572756d73000000000000000000006020909201918252620000ee9160119162000720565b506040805180820190915260048082526350414d5360e01b60209092019182526200011c9160129162000720565b5068410d586a20a4c0000060195566354a6ba7a18000601a553480156200014257600080fd5b5060405162004a1e38038062004a1e8339810160408190526200016591620007e7565b600d805480602002602001604051908101604052809291908181526020018280548015620001bd57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116200019e575b5050505050600c8054806020026020016040519081016040528092919081815260200182805480156200021057602002820191906000526020600020905b815481526020019060010190808311620001fb575b50505050508262000227816200041260201b60201c565b506003805460ff191690556200023d336200042b565b60016004558051825114620002b45760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620003075760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606401620002ab565b60005b825181101562000373576200035e8382815181106200032d576200032d620008fc565b60200260200101518383815181106200034a576200034a620008fc565b60200260200101516200048560201b60201c565b806200036a8162000928565b9150506200030a565b505081516200038b9150601390602084019062000720565b50506080516000908152600f60205260408082208054600160ff19918216811790925560a0518452828420805482168317905560c05184529190922080549091169091179055601780546001600160a01b03199081166001600160a01b0393841617909155601580548216948316949094179093556014805490931691161790556200099e565b80516200042790600290602084019062000720565b5050565b600380546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620004f25760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401620002ab565b60008111620005445760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401620002ab565b6001600160a01b03821660009081526007602052604090205415620005c05760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401620002ab565b60098054600181019091557f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0180546001600160a01b0319166001600160a01b03841690811790915560009081526007602052604090208190556005546200062a90829062000946565b600555604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b828054828255906000526020600020908101928215620006b6579160200282015b82811115620006b6578251829060ff1690559160200191906001019062000694565b50620006c49291506200079d565b5090565b828054828255906000526020600020908101928215620006b6579160200282015b82811115620006b657825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620006e9565b8280546200072e9062000961565b90600052602060002090601f016020900481019282620007525760008555620006b6565b82601f106200076d57805160ff1916838001178555620006b6565b82800160010185558215620006b6579182015b82811115620006b657825182559160200191906001019062000780565b5b80821115620006c457600081556001016200079e565b80516001600160a01b0381168114620007cc57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215620007fe57600080fd5b6200080985620007b4565b935060206200081a818701620007b4565b93506200082a60408701620007b4565b60608701519093506001600160401b03808211156200084857600080fd5b818801915088601f8301126200085d57600080fd5b815181811115620008725762000872620007d1565b604051601f8201601f19908116603f011681019083821181831017156200089d576200089d620007d1565b816040528281528b86848701011115620008b657600080fd5b600093505b82841015620008da5784840186015181850187015292850192620008bb565b82841115620008ec5760008684830101525b989b979a50959850505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156200093f576200093f62000912565b5060010190565b600082198211156200095c576200095c62000912565b500190565b600181811c908216806200097657607f821691505b602082108114156200099857634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c051614050620009ce6000396000610980015260006107cc015260006108f601526140506000f3fe60806040526004361061031d5760003560e01c806378e97925116101ab578063aa267b73116100f7578063dcbb9bcc11610095578063f242432a1161006f578063f242432a14610a56578063f2fde38b14610a76578063f546a01714610a96578063ff186b2e14610aae57600080fd5b8063dcbb9bcc146109d8578063e33b7de3146109f8578063e985e9c514610a0d57600080fd5b8063c9ba7e34116100d1578063c9ba7e3414610918578063ce7c2ac214610938578063cf69e2801461096e578063d79779b2146109a257600080fd5b8063aa267b7314610894578063bf69bd06146108c4578063c159beb8146108e457600080fd5b80638da5cb5b116101645780639852595c1161013e5780639852595c146107ee5780639d82998a146108245780639e34070f14610844578063a22cb4651461087457600080fd5b80638da5cb5b1461078257806395d89b41146107a55780639608ea8e146107ba57600080fd5b806378e97925146106e25780637c09061e146106f85780638456cb5914610718578063853828b61461072d5780638a3340c8146107425780638b83209b1461076257600080fd5b80633504f62b1161026a57806348b75044116102235780635c975abb116101fd5780635c975abb146106805780636c0360eb146106985780636c19e783146106ad578063715018a6146106cd57600080fd5b806348b75044146106135780634e1273f4146106335780634f7299c01461066057600080fd5b80633504f62b1461054d578063385b07061461056d5780633a98ef39146105835780633e0a322d146105985780633f4ba83a146105b8578063406072a9146105cd57600080fd5b80631443df3c116102d75780631f378a9f116102b15780631f378a9f146104bd5780631f7da7d5146104dd5780632eb2c2d6146104fd5780632fc67c681461051d57600080fd5b80631443df3c1461046a5780631861cb3a1461047d578063191655871461049d57600080fd5b8062fdd58e1461036b57806301ffc9a71461039e5780630562a70c146103ce57806306fdde03146103f057806307ca633c146104125780630e89341c1461044a57600080fd5b36610366577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561037757600080fd5b5061038b6103863660046132a6565b610ac4565b6040519081526020015b60405180910390f35b3480156103aa57600080fd5b506103be6103b93660046132e8565b610b5e565b6040519015158152602001610395565b3480156103da57600080fd5b506103ee6103e9366004613305565b610bae565b005b3480156103fc57600080fd5b50610405610be3565b604051610395919061337a565b34801561041e57600080fd5b50601454610432906001600160a01b031681565b6040516001600160a01b039091168152602001610395565b34801561045657600080fd5b50610405610465366004613305565b610c71565b6103ee610478366004613468565b610d21565b34801561048957600080fd5b506103be610498366004613305565b610fbb565b3480156104a957600080fd5b506103ee6104b8366004613580565b61111d565b3480156104c957600080fd5b506103ee6104d8366004613580565b61124b565b3480156104e957600080fd5b506103ee6104f8366004613468565b61129d565b34801561050957600080fd5b506103ee61051836600461360e565b611625565b34801561052957600080fd5b506103be610538366004613305565b60106020526000908152604090205460ff1681565b34801561055957600080fd5b506103ee6105683660046136bc565b6116bc565b34801561057957600080fd5b5061038b60195481565b34801561058f57600080fd5b5060055461038b565b3480156105a457600080fd5b506103ee6105b3366004613305565b6117c5565b3480156105c457600080fd5b506103ee6117fa565b3480156105d957600080fd5b5061038b6105e83660046136ec565b6001600160a01b039182166000908152600b6020908152604080832093909416825291909152205490565b34801561061f57600080fd5b506103ee61062e3660046136ec565b611834565b34801561063f57600080fd5b5061065361064e36600461371a565b611a1c565b6040516103959190613822565b34801561066c57600080fd5b506103ee61067b366004613305565b611b46565b34801561068c57600080fd5b5060035460ff166103be565b3480156106a457600080fd5b50610405611b7b565b3480156106b957600080fd5b506103ee6106c8366004613580565b611b88565b3480156106d957600080fd5b506103ee611bda565b3480156106ee57600080fd5b5061038b600e5481565b34801561070457600080fd5b50601654610432906001600160a01b031681565b34801561072457600080fd5b506103ee611c14565b34801561073957600080fd5b506103ee611c4c565b34801561074e57600080fd5b506103ee61075d366004613580565b611cd4565b34801561076e57600080fd5b5061043261077d366004613305565b611d26565b34801561078e57600080fd5b5060035461010090046001600160a01b0316610432565b3480156107b157600080fd5b50610405611d56565b3480156107c657600080fd5b5061038b7f000000000000000000000000000000000000000000000000000000000000000081565b3480156107fa57600080fd5b5061038b610809366004613580565b6001600160a01b031660009081526008602052604090205490565b34801561083057600080fd5b506103ee61083f366004613580565b611d63565b34801561085057600080fd5b506103be61085f366004613305565b60009081526010602052604090205460ff1690565b34801561088057600080fd5b506103ee61088f366004613843565b611db5565b3480156108a057600080fd5b506103be6108af366004613305565b600f6020526000908152604090205460ff1681565b3480156108d057600080fd5b50601554610432906001600160a01b031681565b3480156108f057600080fd5b5061038b7f000000000000000000000000000000000000000000000000000000000000000081565b34801561092457600080fd5b506103ee610933366004613580565b611dc0565b34801561094457600080fd5b5061038b610953366004613580565b6001600160a01b031660009081526007602052604090205490565b34801561097a57600080fd5b5061038b7f000000000000000000000000000000000000000000000000000000000000000081565b3480156109ae57600080fd5b5061038b6109bd366004613580565b6001600160a01b03166000908152600a602052604090205490565b3480156109e457600080fd5b50601754610432906001600160a01b031681565b348015610a0457600080fd5b5060065461038b565b348015610a1957600080fd5b506103be610a283660046136ec565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b348015610a6257600080fd5b506103ee610a71366004613871565b611e12565b348015610a8257600080fd5b506103ee610a91366004613580565b611e99565b348015610aa257600080fd5b50600e544210156103be565b348015610aba57600080fd5b5061038b601a5481565b60006001600160a01b038316610b355760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b1480610b8f57506001600160e01b031982166303a24d0760e21b145b80610b5857506301ffc9a760e01b6001600160e01b0319831614610b58565b6003546001600160a01b03610100909104163314610bde5760405162461bcd60e51b8152600401610b2c906138da565b601955565b60118054610bf09061390f565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1c9061390f565b8015610c695780601f10610c3e57610100808354040283529160200191610c69565b820191906000526020600020905b815481529060010190602001808311610c4c57829003601f168201915b505050505081565b6000818152600f602052604090205460609060ff16610cd25760405162461bcd60e51b815260206004820181905260248201527f5075646779536572756d733a20496e76616c696420736572756d2074797065216044820152606401610b2c565b6013610cdd83611f37565b604051602001610cee929190613966565b60408051601f1981840301815290829052610d0b91602001613a0d565b6040516020818303038152906040529050919050565b60035460ff1615610d445760405162461bcd60e51b8152600401610b2c90613a36565b60026004541415610d975760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b2c565b6002600455600e54421015610dbe5760405162461bcd60e51b8152600401610b2c90613a60565b601a54610dcc908390613abc565b341015610e1b5760405162461bcd60e51b815260206004820152601c60248201527f5075646779536572756d733a204e6f7420656e6f7567682045544821000000006044820152606401610b2c565b60005b82811015610fb0576000610e63858584818110610e3d57610e3d613adb565b90506020020135848481518110610e5657610e56613adb565b6020026020010151612035565b905080610eb25760405162461bcd60e51b815260206004820152601f60248201527f5075646779536572756d733a20496e76616c6964207369676e617475726521006044820152606401610b2c565b610ed3858584818110610ec757610ec7613adb565b90506020020135610fbb565b610eef5760405162461bcd60e51b8152600401610b2c90613af1565b610f20858584818110610f0457610f04613adb565b9050602002013560009081526010602052604090205460ff1690565b15610f3d5760405162461bcd60e51b8152600401610b2c90613b37565b600160106000878786818110610f5557610f55613adb565b90506020020135815260200190815260200160002060006101000a81548160ff021916908315150217905550610f9d33826001604051806020016040528060008152506120fd565b5080610fa881613b94565b915050610e1e565b505060016004555050565b601754604051632cf01b5560e01b815233600482015260009182916001600160a01b0390911690632cf01b559060240160006040518083038186803b15801561100357600080fd5b505afa158015611017573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261103f9190810190613baf565b90506000805b8251811015611086578483828151811061106157611061613adb565b6020026020010151141561107457600191505b8061107e81613b94565b915050611045565b506015546040516331a9108f60e11b81526004810186905233916001600160a01b031690636352211e9060240160206040518083038186803b1580156110cb57600080fd5b505afa1580156110df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111039190613c40565b6001600160a01b031614806111155750805b949350505050565b6001600160a01b0381166000908152600760205260409020546111525760405162461bcd60e51b8152600401610b2c90613c5d565b600061115d60065490565b6111679047613ca3565b90506000611194838361118f866001600160a01b031660009081526008602052604090205490565b612207565b9050806111b35760405162461bcd60e51b8152600401610b2c90613cbb565b6001600160a01b038316600090815260086020526040812080548392906111db908490613ca3565b9250508190555080600660008282546111f49190613ca3565b909155506112049050838261224f565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6003546001600160a01b0361010090910416331461127b5760405162461bcd60e51b8152600401610b2c906138da565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b60035460ff16156112c05760405162461bcd60e51b8152600401610b2c90613a36565b600260045414156113135760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b2c565b6002600455600e5442101561133a5760405162461bcd60e51b8152600401610b2c90613a60565b601954611348908390613abc565b6014546040516370a0823160e01b81523360048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561138b57600080fd5b505afa15801561139f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113c39190613d06565b101561142b5760405162461bcd60e51b815260206004820152603160248201527f5075646779536572756d733a20596f7520646f6e2774206861766520656e6f75604482015270676820534e414320746f20636c61696d2160781b6064820152608401610b2c565b6014546017546019546001600160a01b03928316926323b872dd923392911690611456908790613abc565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b1580156114a557600080fd5b505af11580156114b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114dd9190613d1f565b5060005b82811015610fb0576000611500858584818110610e3d57610e3d613adb565b90508061154f5760405162461bcd60e51b815260206004820152601f60248201527f5075646779536572756d733a20496e76616c6964207369676e617475726521006044820152606401610b2c565b611564858584818110610ec757610ec7613adb565b6115805760405162461bcd60e51b8152600401610b2c90613af1565b611595858584818110610f0457610f04613adb565b156115b25760405162461bcd60e51b8152600401610b2c90613b37565b6001601060008787868181106115ca576115ca613adb565b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555061161233826001604051806020016040528060008152506120fd565b508061161d81613b94565b9150506114e1565b6001600160a01b03851633148061164157506116418533610a28565b6116a85760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610b2c565b6116b5858585858561236d565b5050505050565b60035460ff16156116df5760405162461bcd60e51b8152600401610b2c90613a36565b6016546001600160a01b031633146117575760405162461bcd60e51b815260206004820152603560248201527f5075646779536572756d733a204f6e6c79206275726e657220636f6e74726163604482015274742063616e20636f6e73756d6520736572756d732160581b6064820152608401610b2c565b6000828152600f602052604090205460ff166117b55760405162461bcd60e51b815260206004820181905260248201527f5075646779536572756d733a20496e76616c696420736572756d2074797065216044820152606401610b2c565b6117c18183600161254a565b5050565b6003546001600160a01b036101009091041633146117f55760405162461bcd60e51b8152600401610b2c906138da565b600e55565b6003546001600160a01b0361010090910416331461182a5760405162461bcd60e51b8152600401610b2c906138da565b6118326126c4565b565b6001600160a01b0381166000908152600760205260409020546118695760405162461bcd60e51b8152600401610b2c90613c5d565b6001600160a01b0382166000908152600a60205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b1580156118c157600080fd5b505afa1580156118d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118f99190613d06565b6119039190613ca3565b9050600061193c838361118f87876001600160a01b039182166000908152600b6020908152604080832093909416825291909152205490565b90508061195b5760405162461bcd60e51b8152600401610b2c90613cbb565b6001600160a01b038085166000908152600b6020908152604080832093871683529290529081208054839290611992908490613ca3565b90915550506001600160a01b0384166000908152600a6020526040812080548392906119bf908490613ca3565b909155506119d09050848483612757565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b60608151835114611a815760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610b2c565b6000835167ffffffffffffffff811115611a9d57611a9d61338d565b604051908082528060200260200182016040528015611ac6578160200160208202803683370190505b50905060005b8451811015611b3e57611b11858281518110611aea57611aea613adb565b6020026020010151858381518110611b0457611b04613adb565b6020026020010151610ac4565b828281518110611b2357611b23613adb565b6020908102919091010152611b3781613b94565b9050611acc565b509392505050565b6003546001600160a01b03610100909104163314611b765760405162461bcd60e51b8152600401610b2c906138da565b601a55565b60138054610bf09061390f565b6003546001600160a01b03610100909104163314611bb85760405162461bcd60e51b8152600401610b2c906138da565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b03610100909104163314611c0a5760405162461bcd60e51b8152600401610b2c906138da565b61183260006127a9565b6003546001600160a01b03610100909104163314611c445760405162461bcd60e51b8152600401610b2c906138da565b611832612803565b6003546001600160a01b03610100909104163314611c7c5760405162461bcd60e51b8152600401610b2c906138da565b60005b600d54811015611cd1576000600d8281548110611c9e57611c9e613adb565b6000918252602090912001546001600160a01b03169050611cbe8161111d565b5080611cc981613b94565b915050611c7f565b50565b6003546001600160a01b03610100909104163314611d045760405162461bcd60e51b8152600401610b2c906138da565b601680546001600160a01b0319166001600160a01b0392909216919091179055565b600060098281548110611d3b57611d3b613adb565b6000918252602090912001546001600160a01b031692915050565b60128054610bf09061390f565b6003546001600160a01b03610100909104163314611d935760405162461bcd60e51b8152600401610b2c906138da565b601780546001600160a01b0319166001600160a01b0392909216919091179055565b6117c133838361285b565b6003546001600160a01b03610100909104163314611df05760405162461bcd60e51b8152600401610b2c906138da565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038516331480611e2e5750611e2e8533610a28565b611e8c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610b2c565b6116b5858585858561293c565b6003546001600160a01b03610100909104163314611ec95760405162461bcd60e51b8152600401610b2c906138da565b6001600160a01b038116611f2e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b2c565b611cd1816127a9565b606081611f5b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611f855780611f6f81613b94565b9150611f7e9050600a83613d52565b9150611f5f565b60008167ffffffffffffffff811115611fa057611fa061338d565b6040519080825280601f01601f191660200182016040528015611fca576020820181803683370190505b5090505b841561111557611fdf600183613d66565b9150611fec600a86613d7d565b611ff7906030613ca3565b60f81b81838151811061200c5761200c613adb565b60200101906001600160f81b031916908160001a90535061202e600a86613d52565b9450611fce565b600060015b600381116120f3576040805160208082018790528183018490528251808303840181526060830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006080840152609c8084018290528451808503909101815260bc90930190935281519101206018546001600160a01b03166120c48287612a59565b6001600160a01b031614156120de57829350505050610b58565b505080806120eb90613b94565b91505061203a565b5060009392505050565b6001600160a01b03841661215d5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610b2c565b336121778160008761216e88612a75565b6116b588612a75565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906121a7908490613ca3565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46116b581600087878787612ac0565b6005546001600160a01b038416600090815260076020526040812054909183916122319086613abc565b61223b9190613d52565b6122459190613d66565b90505b9392505050565b8047101561229f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b2c565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146122ec576040519150601f19603f3d011682016040523d82523d6000602084013e6122f1565b606091505b50509050806123685760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b2c565b505050565b81518351146123cf5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610b2c565b6001600160a01b0384166123f55760405162461bcd60e51b8152600401610b2c90613d91565b3360005b84518110156124dc57600085828151811061241657612416613adb565b60200260200101519050600085838151811061243457612434613adb565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156124845760405162461bcd60e51b8152600401610b2c90613dd6565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906124c1908490613ca3565b92505081905550505050806124d590613b94565b90506123f9565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161252c929190613e20565b60405180910390a4612542818787878787612c2b565b505050505050565b6001600160a01b0383166125ac5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610b2c565b336125dc818560006125bd87612a75565b6125c687612a75565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156126595760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610b2c565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b60035460ff1661270d5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610b2c565b6003805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612368908490612cf5565b600380546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60035460ff16156128265760405162461bcd60e51b8152600401610b2c90613a36565b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861273a3390565b816001600160a01b0316836001600160a01b031614156128cf5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610b2c565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166129625760405162461bcd60e51b8152600401610b2c90613d91565b3361297281878761216e88612a75565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156129b35760405162461bcd60e51b8152600401610b2c90613dd6565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906129f0908490613ca3565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612a50828888888888612ac0565b50505050505050565b6000806000612a688585612dc7565b91509150611b3e81612e37565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612aaf57612aaf613adb565b602090810291909101015292915050565b6001600160a01b0384163b156125425760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612b049089908990889088908890600401613e45565b602060405180830381600087803b158015612b1e57600080fd5b505af1925050508015612b4e575060408051601f3d908101601f19168201909252612b4b91810190613e7f565b60015b612bfb57612b5a613e9c565b806308c379a01415612b945750612b6f613eb8565b80612b7a5750612b96565b8060405162461bcd60e51b8152600401610b2c919061337a565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610b2c565b6001600160e01b0319811663f23a6e6160e01b14612a505760405162461bcd60e51b8152600401610b2c90613f42565b6001600160a01b0384163b156125425760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612c6f9089908990889088908890600401613f8a565b602060405180830381600087803b158015612c8957600080fd5b505af1925050508015612cb9575060408051601f3d908101601f19168201909252612cb691810190613e7f565b60015b612cc557612b5a613e9c565b6001600160e01b0319811663bc197c8160e01b14612a505760405162461bcd60e51b8152600401610b2c90613f42565b6000612d4a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612ff29092919063ffffffff16565b8051909150156123685780806020019051810190612d689190613d1f565b6123685760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610b2c565b600080825160411415612dfe5760208301516040840151606085015160001a612df287828585613001565b94509450505050612e30565b825160401415612e285760208301516040840151612e1d8683836130ee565b935093505050612e30565b506000905060025b9250929050565b6000816004811115612e4b57612e4b613fe8565b1415612e545750565b6001816004811115612e6857612e68613fe8565b1415612eb65760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b2c565b6002816004811115612eca57612eca613fe8565b1415612f185760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b2c565b6003816004811115612f2c57612f2c613fe8565b1415612f855760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610b2c565b6004816004811115612f9957612f99613fe8565b1415611cd15760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610b2c565b60606122458484600085613127565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561303857506000905060036130e5565b8460ff16601b1415801561305057508460ff16601c14155b1561306157506000905060046130e5565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156130b5573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166130de576000600192509250506130e5565b9150600090505b94509492505050565b6000806001600160ff1b0383168161310b60ff86901c601b613ca3565b905061311987828885613001565b935093505050935093915050565b6060824710156131885760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610b2c565b6001600160a01b0385163b6131df5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610b2c565b600080866001600160a01b031685876040516131fb9190613ffe565b60006040518083038185875af1925050503d8060008114613238576040519150601f19603f3d011682016040523d82523d6000602084013e61323d565b606091505b509150915061324d828286613258565b979650505050505050565b60608315613267575081612248565b8251156132775782518084602001fd5b8160405162461bcd60e51b8152600401610b2c919061337a565b6001600160a01b0381168114611cd157600080fd5b600080604083850312156132b957600080fd5b82356132c481613291565b946020939093013593505050565b6001600160e01b031981168114611cd157600080fd5b6000602082840312156132fa57600080fd5b8135612248816132d2565b60006020828403121561331757600080fd5b5035919050565b60005b83811015613339578181015183820152602001613321565b83811115613348576000848401525b50505050565b6000815180845261336681602086016020860161331e565b601f01601f19169290920160200192915050565b602081526000612248602083018461334e565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff811182821017156133c9576133c961338d565b6040525050565b600067ffffffffffffffff8211156133ea576133ea61338d565b5060051b60200190565b600082601f83011261340557600080fd5b813567ffffffffffffffff81111561341f5761341f61338d565b604051613436601f8301601f1916602001826133a3565b81815284602083860101111561344b57600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006040848603121561347d57600080fd5b833567ffffffffffffffff8082111561349557600080fd5b818601915086601f8301126134a957600080fd5b8135818111156134b857600080fd5b602088818360051b86010111156134ce57600080fd5b8084019650819550808801359350828411156134e957600080fd5b838801935088601f8501126134fd57600080fd5b8335915061350a826133d0565b60405161351782826133a3565b83815260059390931b850182019282810191508a84111561353757600080fd5b8286015b8481101561356f578035868111156135535760008081fd5b6135618d86838b01016133f4565b84525091830191830161353b565b508096505050505050509250925092565b60006020828403121561359257600080fd5b813561224881613291565b600082601f8301126135ae57600080fd5b813560206135bb826133d0565b6040516135c882826133a3565b83815260059390931b85018201928281019150868411156135e857600080fd5b8286015b8481101561360357803583529183019183016135ec565b509695505050505050565b600080600080600060a0868803121561362657600080fd5b853561363181613291565b9450602086013561364181613291565b9350604086013567ffffffffffffffff8082111561365e57600080fd5b61366a89838a0161359d565b9450606088013591508082111561368057600080fd5b61368c89838a0161359d565b935060808801359150808211156136a257600080fd5b506136af888289016133f4565b9150509295509295909350565b600080604083850312156136cf57600080fd5b8235915060208301356136e181613291565b809150509250929050565b600080604083850312156136ff57600080fd5b823561370a81613291565b915060208301356136e181613291565b6000806040838503121561372d57600080fd5b823567ffffffffffffffff8082111561374557600080fd5b818501915085601f83011261375957600080fd5b81356020613766826133d0565b60405161377382826133a3565b83815260059390931b850182019282810191508984111561379357600080fd5b948201945b838610156137ba5785356137ab81613291565b82529482019490820190613798565b965050860135925050808211156137d057600080fd5b506137dd8582860161359d565b9150509250929050565b600081518084526020808501945080840160005b83811015613817578151875295820195908201906001016137fb565b509495945050505050565b60208152600061224860208301846137e7565b8015158114611cd157600080fd5b6000806040838503121561385657600080fd5b823561386181613291565b915060208301356136e181613835565b600080600080600060a0868803121561388957600080fd5b853561389481613291565b945060208601356138a481613291565b93506040860135925060608601359150608086013567ffffffffffffffff8111156138ce57600080fd5b6136af888289016133f4565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061392357607f821691505b6020821081141561394457634e487b7160e01b600052602260045260246000fd5b50919050565b6000815161395c81856020860161331e565b9290920192915050565b600080845481600182811c91508083168061398257607f831692505b60208084108214156139a257634e487b7160e01b86526022600452602486fd5b8180156139b657600181146139c7576139f4565b60ff198616895284890196506139f4565b60008b81526020902060005b868110156139ec5781548b8201529085019083016139d3565b505084890196505b505050505050613a04818561394a565b95945050505050565b60008251613a1f81846020870161331e565b64173539b7b760d91b920191825250600501919050565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526026908201527f5075646779536572756d733a20436c61696d696e67206973206e6f74206f70656040820152656e207965742160d01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613ad657613ad6613aa6565b500290565b634e487b7160e01b600052603260045260246000fd5b60208082526026908201527f5075646779536572756d733a20596f7520646f6e2774206f776e207468697320604082015265746f6b656e2160d01b606082015260800190565b6020808252603a908201527f5075646779536572756d733a2054686520616c6c6f636174656420736572756d60408201527f2068617320616c7265616479206265656e20636c61696d656421000000000000606082015260800190565b6000600019821415613ba857613ba8613aa6565b5060010190565b60006020808385031215613bc257600080fd5b825167ffffffffffffffff811115613bd957600080fd5b8301601f81018513613bea57600080fd5b8051613bf5816133d0565b604051613c0282826133a3565b82815260059290921b8301840191848101915087831115613c2257600080fd5b928401925b8284101561324d57835182529284019290840190613c27565b600060208284031215613c5257600080fd5b815161224881613291565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b60008219821115613cb657613cb6613aa6565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b600060208284031215613d1857600080fd5b5051919050565b600060208284031215613d3157600080fd5b815161224881613835565b634e487b7160e01b600052601260045260246000fd5b600082613d6157613d61613d3c565b500490565b600082821015613d7857613d78613aa6565b500390565b600082613d8c57613d8c613d3c565b500690565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000613e3360408301856137e7565b8281036020840152613a0481856137e7565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061324d9083018461334e565b600060208284031215613e9157600080fd5b8151612248816132d2565b600060033d1115613eb55760046000803e5060005160e01c5b90565b600060443d1015613ec65790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715613ef657505050505090565b8285019150815181811115613f0e5750505050505090565b843d8701016020828501011115613f285750505050505090565b613f37602082860101876133a3565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090613fb6908301866137e7565b8281036060840152613fc881866137e7565b90508281036080840152613fdc818561334e565b98975050505050505050565b634e487b7160e01b600052602160045260246000fd5b6000825161401081846020870161331e565b919091019291505056fea264697066735822122054fe743583300d84a0cb57bec21167f94ed06bb94db537f2f3f11d84f537edd364736f6c634300080900330000000000000000000000000f9aba9fa6abd858a94f9eefe0f9d51ca2c11225000000000000000000000000f827f408171dcf69b858c34530212c92df649ef60000000000000000000000007e0f95f7b98d4d367ac076e10128798d4754a5e30000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000005568747470733a2f2f7075646779617065732e6d7970696e6174612e636c6f75642f697066732f516d5761465143515a57706a38586d753453586938794b564664744b7531386e6b7434596e59596576594475704b2f0000000000000000000000

Deployed Bytecode

0x60806040526004361061031d5760003560e01c806378e97925116101ab578063aa267b73116100f7578063dcbb9bcc11610095578063f242432a1161006f578063f242432a14610a56578063f2fde38b14610a76578063f546a01714610a96578063ff186b2e14610aae57600080fd5b8063dcbb9bcc146109d8578063e33b7de3146109f8578063e985e9c514610a0d57600080fd5b8063c9ba7e34116100d1578063c9ba7e3414610918578063ce7c2ac214610938578063cf69e2801461096e578063d79779b2146109a257600080fd5b8063aa267b7314610894578063bf69bd06146108c4578063c159beb8146108e457600080fd5b80638da5cb5b116101645780639852595c1161013e5780639852595c146107ee5780639d82998a146108245780639e34070f14610844578063a22cb4651461087457600080fd5b80638da5cb5b1461078257806395d89b41146107a55780639608ea8e146107ba57600080fd5b806378e97925146106e25780637c09061e146106f85780638456cb5914610718578063853828b61461072d5780638a3340c8146107425780638b83209b1461076257600080fd5b80633504f62b1161026a57806348b75044116102235780635c975abb116101fd5780635c975abb146106805780636c0360eb146106985780636c19e783146106ad578063715018a6146106cd57600080fd5b806348b75044146106135780634e1273f4146106335780634f7299c01461066057600080fd5b80633504f62b1461054d578063385b07061461056d5780633a98ef39146105835780633e0a322d146105985780633f4ba83a146105b8578063406072a9146105cd57600080fd5b80631443df3c116102d75780631f378a9f116102b15780631f378a9f146104bd5780631f7da7d5146104dd5780632eb2c2d6146104fd5780632fc67c681461051d57600080fd5b80631443df3c1461046a5780631861cb3a1461047d578063191655871461049d57600080fd5b8062fdd58e1461036b57806301ffc9a71461039e5780630562a70c146103ce57806306fdde03146103f057806307ca633c146104125780630e89341c1461044a57600080fd5b36610366577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561037757600080fd5b5061038b6103863660046132a6565b610ac4565b6040519081526020015b60405180910390f35b3480156103aa57600080fd5b506103be6103b93660046132e8565b610b5e565b6040519015158152602001610395565b3480156103da57600080fd5b506103ee6103e9366004613305565b610bae565b005b3480156103fc57600080fd5b50610405610be3565b604051610395919061337a565b34801561041e57600080fd5b50601454610432906001600160a01b031681565b6040516001600160a01b039091168152602001610395565b34801561045657600080fd5b50610405610465366004613305565b610c71565b6103ee610478366004613468565b610d21565b34801561048957600080fd5b506103be610498366004613305565b610fbb565b3480156104a957600080fd5b506103ee6104b8366004613580565b61111d565b3480156104c957600080fd5b506103ee6104d8366004613580565b61124b565b3480156104e957600080fd5b506103ee6104f8366004613468565b61129d565b34801561050957600080fd5b506103ee61051836600461360e565b611625565b34801561052957600080fd5b506103be610538366004613305565b60106020526000908152604090205460ff1681565b34801561055957600080fd5b506103ee6105683660046136bc565b6116bc565b34801561057957600080fd5b5061038b60195481565b34801561058f57600080fd5b5060055461038b565b3480156105a457600080fd5b506103ee6105b3366004613305565b6117c5565b3480156105c457600080fd5b506103ee6117fa565b3480156105d957600080fd5b5061038b6105e83660046136ec565b6001600160a01b039182166000908152600b6020908152604080832093909416825291909152205490565b34801561061f57600080fd5b506103ee61062e3660046136ec565b611834565b34801561063f57600080fd5b5061065361064e36600461371a565b611a1c565b6040516103959190613822565b34801561066c57600080fd5b506103ee61067b366004613305565b611b46565b34801561068c57600080fd5b5060035460ff166103be565b3480156106a457600080fd5b50610405611b7b565b3480156106b957600080fd5b506103ee6106c8366004613580565b611b88565b3480156106d957600080fd5b506103ee611bda565b3480156106ee57600080fd5b5061038b600e5481565b34801561070457600080fd5b50601654610432906001600160a01b031681565b34801561072457600080fd5b506103ee611c14565b34801561073957600080fd5b506103ee611c4c565b34801561074e57600080fd5b506103ee61075d366004613580565b611cd4565b34801561076e57600080fd5b5061043261077d366004613305565b611d26565b34801561078e57600080fd5b5060035461010090046001600160a01b0316610432565b3480156107b157600080fd5b50610405611d56565b3480156107c657600080fd5b5061038b7f000000000000000000000000000000000000000000000000000000000000000281565b3480156107fa57600080fd5b5061038b610809366004613580565b6001600160a01b031660009081526008602052604090205490565b34801561083057600080fd5b506103ee61083f366004613580565b611d63565b34801561085057600080fd5b506103be61085f366004613305565b60009081526010602052604090205460ff1690565b34801561088057600080fd5b506103ee61088f366004613843565b611db5565b3480156108a057600080fd5b506103be6108af366004613305565b600f6020526000908152604090205460ff1681565b3480156108d057600080fd5b50601554610432906001600160a01b031681565b3480156108f057600080fd5b5061038b7f000000000000000000000000000000000000000000000000000000000000000181565b34801561092457600080fd5b506103ee610933366004613580565b611dc0565b34801561094457600080fd5b5061038b610953366004613580565b6001600160a01b031660009081526007602052604090205490565b34801561097a57600080fd5b5061038b7f000000000000000000000000000000000000000000000000000000000000000381565b3480156109ae57600080fd5b5061038b6109bd366004613580565b6001600160a01b03166000908152600a602052604090205490565b3480156109e457600080fd5b50601754610432906001600160a01b031681565b348015610a0457600080fd5b5060065461038b565b348015610a1957600080fd5b506103be610a283660046136ec565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b348015610a6257600080fd5b506103ee610a71366004613871565b611e12565b348015610a8257600080fd5b506103ee610a91366004613580565b611e99565b348015610aa257600080fd5b50600e544210156103be565b348015610aba57600080fd5b5061038b601a5481565b60006001600160a01b038316610b355760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b1480610b8f57506001600160e01b031982166303a24d0760e21b145b80610b5857506301ffc9a760e01b6001600160e01b0319831614610b58565b6003546001600160a01b03610100909104163314610bde5760405162461bcd60e51b8152600401610b2c906138da565b601955565b60118054610bf09061390f565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1c9061390f565b8015610c695780601f10610c3e57610100808354040283529160200191610c69565b820191906000526020600020905b815481529060010190602001808311610c4c57829003601f168201915b505050505081565b6000818152600f602052604090205460609060ff16610cd25760405162461bcd60e51b815260206004820181905260248201527f5075646779536572756d733a20496e76616c696420736572756d2074797065216044820152606401610b2c565b6013610cdd83611f37565b604051602001610cee929190613966565b60408051601f1981840301815290829052610d0b91602001613a0d565b6040516020818303038152906040529050919050565b60035460ff1615610d445760405162461bcd60e51b8152600401610b2c90613a36565b60026004541415610d975760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b2c565b6002600455600e54421015610dbe5760405162461bcd60e51b8152600401610b2c90613a60565b601a54610dcc908390613abc565b341015610e1b5760405162461bcd60e51b815260206004820152601c60248201527f5075646779536572756d733a204e6f7420656e6f7567682045544821000000006044820152606401610b2c565b60005b82811015610fb0576000610e63858584818110610e3d57610e3d613adb565b90506020020135848481518110610e5657610e56613adb565b6020026020010151612035565b905080610eb25760405162461bcd60e51b815260206004820152601f60248201527f5075646779536572756d733a20496e76616c6964207369676e617475726521006044820152606401610b2c565b610ed3858584818110610ec757610ec7613adb565b90506020020135610fbb565b610eef5760405162461bcd60e51b8152600401610b2c90613af1565b610f20858584818110610f0457610f04613adb565b9050602002013560009081526010602052604090205460ff1690565b15610f3d5760405162461bcd60e51b8152600401610b2c90613b37565b600160106000878786818110610f5557610f55613adb565b90506020020135815260200190815260200160002060006101000a81548160ff021916908315150217905550610f9d33826001604051806020016040528060008152506120fd565b5080610fa881613b94565b915050610e1e565b505060016004555050565b601754604051632cf01b5560e01b815233600482015260009182916001600160a01b0390911690632cf01b559060240160006040518083038186803b15801561100357600080fd5b505afa158015611017573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261103f9190810190613baf565b90506000805b8251811015611086578483828151811061106157611061613adb565b6020026020010151141561107457600191505b8061107e81613b94565b915050611045565b506015546040516331a9108f60e11b81526004810186905233916001600160a01b031690636352211e9060240160206040518083038186803b1580156110cb57600080fd5b505afa1580156110df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111039190613c40565b6001600160a01b031614806111155750805b949350505050565b6001600160a01b0381166000908152600760205260409020546111525760405162461bcd60e51b8152600401610b2c90613c5d565b600061115d60065490565b6111679047613ca3565b90506000611194838361118f866001600160a01b031660009081526008602052604090205490565b612207565b9050806111b35760405162461bcd60e51b8152600401610b2c90613cbb565b6001600160a01b038316600090815260086020526040812080548392906111db908490613ca3565b9250508190555080600660008282546111f49190613ca3565b909155506112049050838261224f565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6003546001600160a01b0361010090910416331461127b5760405162461bcd60e51b8152600401610b2c906138da565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b60035460ff16156112c05760405162461bcd60e51b8152600401610b2c90613a36565b600260045414156113135760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b2c565b6002600455600e5442101561133a5760405162461bcd60e51b8152600401610b2c90613a60565b601954611348908390613abc565b6014546040516370a0823160e01b81523360048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561138b57600080fd5b505afa15801561139f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113c39190613d06565b101561142b5760405162461bcd60e51b815260206004820152603160248201527f5075646779536572756d733a20596f7520646f6e2774206861766520656e6f75604482015270676820534e414320746f20636c61696d2160781b6064820152608401610b2c565b6014546017546019546001600160a01b03928316926323b872dd923392911690611456908790613abc565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b1580156114a557600080fd5b505af11580156114b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114dd9190613d1f565b5060005b82811015610fb0576000611500858584818110610e3d57610e3d613adb565b90508061154f5760405162461bcd60e51b815260206004820152601f60248201527f5075646779536572756d733a20496e76616c6964207369676e617475726521006044820152606401610b2c565b611564858584818110610ec757610ec7613adb565b6115805760405162461bcd60e51b8152600401610b2c90613af1565b611595858584818110610f0457610f04613adb565b156115b25760405162461bcd60e51b8152600401610b2c90613b37565b6001601060008787868181106115ca576115ca613adb565b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555061161233826001604051806020016040528060008152506120fd565b508061161d81613b94565b9150506114e1565b6001600160a01b03851633148061164157506116418533610a28565b6116a85760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610b2c565b6116b5858585858561236d565b5050505050565b60035460ff16156116df5760405162461bcd60e51b8152600401610b2c90613a36565b6016546001600160a01b031633146117575760405162461bcd60e51b815260206004820152603560248201527f5075646779536572756d733a204f6e6c79206275726e657220636f6e74726163604482015274742063616e20636f6e73756d6520736572756d732160581b6064820152608401610b2c565b6000828152600f602052604090205460ff166117b55760405162461bcd60e51b815260206004820181905260248201527f5075646779536572756d733a20496e76616c696420736572756d2074797065216044820152606401610b2c565b6117c18183600161254a565b5050565b6003546001600160a01b036101009091041633146117f55760405162461bcd60e51b8152600401610b2c906138da565b600e55565b6003546001600160a01b0361010090910416331461182a5760405162461bcd60e51b8152600401610b2c906138da565b6118326126c4565b565b6001600160a01b0381166000908152600760205260409020546118695760405162461bcd60e51b8152600401610b2c90613c5d565b6001600160a01b0382166000908152600a60205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b1580156118c157600080fd5b505afa1580156118d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118f99190613d06565b6119039190613ca3565b9050600061193c838361118f87876001600160a01b039182166000908152600b6020908152604080832093909416825291909152205490565b90508061195b5760405162461bcd60e51b8152600401610b2c90613cbb565b6001600160a01b038085166000908152600b6020908152604080832093871683529290529081208054839290611992908490613ca3565b90915550506001600160a01b0384166000908152600a6020526040812080548392906119bf908490613ca3565b909155506119d09050848483612757565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b60608151835114611a815760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610b2c565b6000835167ffffffffffffffff811115611a9d57611a9d61338d565b604051908082528060200260200182016040528015611ac6578160200160208202803683370190505b50905060005b8451811015611b3e57611b11858281518110611aea57611aea613adb565b6020026020010151858381518110611b0457611b04613adb565b6020026020010151610ac4565b828281518110611b2357611b23613adb565b6020908102919091010152611b3781613b94565b9050611acc565b509392505050565b6003546001600160a01b03610100909104163314611b765760405162461bcd60e51b8152600401610b2c906138da565b601a55565b60138054610bf09061390f565b6003546001600160a01b03610100909104163314611bb85760405162461bcd60e51b8152600401610b2c906138da565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b03610100909104163314611c0a5760405162461bcd60e51b8152600401610b2c906138da565b61183260006127a9565b6003546001600160a01b03610100909104163314611c445760405162461bcd60e51b8152600401610b2c906138da565b611832612803565b6003546001600160a01b03610100909104163314611c7c5760405162461bcd60e51b8152600401610b2c906138da565b60005b600d54811015611cd1576000600d8281548110611c9e57611c9e613adb565b6000918252602090912001546001600160a01b03169050611cbe8161111d565b5080611cc981613b94565b915050611c7f565b50565b6003546001600160a01b03610100909104163314611d045760405162461bcd60e51b8152600401610b2c906138da565b601680546001600160a01b0319166001600160a01b0392909216919091179055565b600060098281548110611d3b57611d3b613adb565b6000918252602090912001546001600160a01b031692915050565b60128054610bf09061390f565b6003546001600160a01b03610100909104163314611d935760405162461bcd60e51b8152600401610b2c906138da565b601780546001600160a01b0319166001600160a01b0392909216919091179055565b6117c133838361285b565b6003546001600160a01b03610100909104163314611df05760405162461bcd60e51b8152600401610b2c906138da565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038516331480611e2e5750611e2e8533610a28565b611e8c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610b2c565b6116b5858585858561293c565b6003546001600160a01b03610100909104163314611ec95760405162461bcd60e51b8152600401610b2c906138da565b6001600160a01b038116611f2e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b2c565b611cd1816127a9565b606081611f5b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611f855780611f6f81613b94565b9150611f7e9050600a83613d52565b9150611f5f565b60008167ffffffffffffffff811115611fa057611fa061338d565b6040519080825280601f01601f191660200182016040528015611fca576020820181803683370190505b5090505b841561111557611fdf600183613d66565b9150611fec600a86613d7d565b611ff7906030613ca3565b60f81b81838151811061200c5761200c613adb565b60200101906001600160f81b031916908160001a90535061202e600a86613d52565b9450611fce565b600060015b600381116120f3576040805160208082018790528183018490528251808303840181526060830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006080840152609c8084018290528451808503909101815260bc90930190935281519101206018546001600160a01b03166120c48287612a59565b6001600160a01b031614156120de57829350505050610b58565b505080806120eb90613b94565b91505061203a565b5060009392505050565b6001600160a01b03841661215d5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610b2c565b336121778160008761216e88612a75565b6116b588612a75565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906121a7908490613ca3565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46116b581600087878787612ac0565b6005546001600160a01b038416600090815260076020526040812054909183916122319086613abc565b61223b9190613d52565b6122459190613d66565b90505b9392505050565b8047101561229f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b2c565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146122ec576040519150601f19603f3d011682016040523d82523d6000602084013e6122f1565b606091505b50509050806123685760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b2c565b505050565b81518351146123cf5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610b2c565b6001600160a01b0384166123f55760405162461bcd60e51b8152600401610b2c90613d91565b3360005b84518110156124dc57600085828151811061241657612416613adb565b60200260200101519050600085838151811061243457612434613adb565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156124845760405162461bcd60e51b8152600401610b2c90613dd6565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906124c1908490613ca3565b92505081905550505050806124d590613b94565b90506123f9565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161252c929190613e20565b60405180910390a4612542818787878787612c2b565b505050505050565b6001600160a01b0383166125ac5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610b2c565b336125dc818560006125bd87612a75565b6125c687612a75565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156126595760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610b2c565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b60035460ff1661270d5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610b2c565b6003805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612368908490612cf5565b600380546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60035460ff16156128265760405162461bcd60e51b8152600401610b2c90613a36565b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861273a3390565b816001600160a01b0316836001600160a01b031614156128cf5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610b2c565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166129625760405162461bcd60e51b8152600401610b2c90613d91565b3361297281878761216e88612a75565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156129b35760405162461bcd60e51b8152600401610b2c90613dd6565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906129f0908490613ca3565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612a50828888888888612ac0565b50505050505050565b6000806000612a688585612dc7565b91509150611b3e81612e37565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612aaf57612aaf613adb565b602090810291909101015292915050565b6001600160a01b0384163b156125425760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612b049089908990889088908890600401613e45565b602060405180830381600087803b158015612b1e57600080fd5b505af1925050508015612b4e575060408051601f3d908101601f19168201909252612b4b91810190613e7f565b60015b612bfb57612b5a613e9c565b806308c379a01415612b945750612b6f613eb8565b80612b7a5750612b96565b8060405162461bcd60e51b8152600401610b2c919061337a565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610b2c565b6001600160e01b0319811663f23a6e6160e01b14612a505760405162461bcd60e51b8152600401610b2c90613f42565b6001600160a01b0384163b156125425760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612c6f9089908990889088908890600401613f8a565b602060405180830381600087803b158015612c8957600080fd5b505af1925050508015612cb9575060408051601f3d908101601f19168201909252612cb691810190613e7f565b60015b612cc557612b5a613e9c565b6001600160e01b0319811663bc197c8160e01b14612a505760405162461bcd60e51b8152600401610b2c90613f42565b6000612d4a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612ff29092919063ffffffff16565b8051909150156123685780806020019051810190612d689190613d1f565b6123685760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610b2c565b600080825160411415612dfe5760208301516040840151606085015160001a612df287828585613001565b94509450505050612e30565b825160401415612e285760208301516040840151612e1d8683836130ee565b935093505050612e30565b506000905060025b9250929050565b6000816004811115612e4b57612e4b613fe8565b1415612e545750565b6001816004811115612e6857612e68613fe8565b1415612eb65760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b2c565b6002816004811115612eca57612eca613fe8565b1415612f185760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b2c565b6003816004811115612f2c57612f2c613fe8565b1415612f855760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610b2c565b6004816004811115612f9957612f99613fe8565b1415611cd15760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610b2c565b60606122458484600085613127565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561303857506000905060036130e5565b8460ff16601b1415801561305057508460ff16601c14155b1561306157506000905060046130e5565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156130b5573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166130de576000600192509250506130e5565b9150600090505b94509492505050565b6000806001600160ff1b0383168161310b60ff86901c601b613ca3565b905061311987828885613001565b935093505050935093915050565b6060824710156131885760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610b2c565b6001600160a01b0385163b6131df5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610b2c565b600080866001600160a01b031685876040516131fb9190613ffe565b60006040518083038185875af1925050503d8060008114613238576040519150601f19603f3d011682016040523d82523d6000602084013e61323d565b606091505b509150915061324d828286613258565b979650505050505050565b60608315613267575081612248565b8251156132775782518084602001fd5b8160405162461bcd60e51b8152600401610b2c919061337a565b6001600160a01b0381168114611cd157600080fd5b600080604083850312156132b957600080fd5b82356132c481613291565b946020939093013593505050565b6001600160e01b031981168114611cd157600080fd5b6000602082840312156132fa57600080fd5b8135612248816132d2565b60006020828403121561331757600080fd5b5035919050565b60005b83811015613339578181015183820152602001613321565b83811115613348576000848401525b50505050565b6000815180845261336681602086016020860161331e565b601f01601f19169290920160200192915050565b602081526000612248602083018461334e565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff811182821017156133c9576133c961338d565b6040525050565b600067ffffffffffffffff8211156133ea576133ea61338d565b5060051b60200190565b600082601f83011261340557600080fd5b813567ffffffffffffffff81111561341f5761341f61338d565b604051613436601f8301601f1916602001826133a3565b81815284602083860101111561344b57600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006040848603121561347d57600080fd5b833567ffffffffffffffff8082111561349557600080fd5b818601915086601f8301126134a957600080fd5b8135818111156134b857600080fd5b602088818360051b86010111156134ce57600080fd5b8084019650819550808801359350828411156134e957600080fd5b838801935088601f8501126134fd57600080fd5b8335915061350a826133d0565b60405161351782826133a3565b83815260059390931b850182019282810191508a84111561353757600080fd5b8286015b8481101561356f578035868111156135535760008081fd5b6135618d86838b01016133f4565b84525091830191830161353b565b508096505050505050509250925092565b60006020828403121561359257600080fd5b813561224881613291565b600082601f8301126135ae57600080fd5b813560206135bb826133d0565b6040516135c882826133a3565b83815260059390931b85018201928281019150868411156135e857600080fd5b8286015b8481101561360357803583529183019183016135ec565b509695505050505050565b600080600080600060a0868803121561362657600080fd5b853561363181613291565b9450602086013561364181613291565b9350604086013567ffffffffffffffff8082111561365e57600080fd5b61366a89838a0161359d565b9450606088013591508082111561368057600080fd5b61368c89838a0161359d565b935060808801359150808211156136a257600080fd5b506136af888289016133f4565b9150509295509295909350565b600080604083850312156136cf57600080fd5b8235915060208301356136e181613291565b809150509250929050565b600080604083850312156136ff57600080fd5b823561370a81613291565b915060208301356136e181613291565b6000806040838503121561372d57600080fd5b823567ffffffffffffffff8082111561374557600080fd5b818501915085601f83011261375957600080fd5b81356020613766826133d0565b60405161377382826133a3565b83815260059390931b850182019282810191508984111561379357600080fd5b948201945b838610156137ba5785356137ab81613291565b82529482019490820190613798565b965050860135925050808211156137d057600080fd5b506137dd8582860161359d565b9150509250929050565b600081518084526020808501945080840160005b83811015613817578151875295820195908201906001016137fb565b509495945050505050565b60208152600061224860208301846137e7565b8015158114611cd157600080fd5b6000806040838503121561385657600080fd5b823561386181613291565b915060208301356136e181613835565b600080600080600060a0868803121561388957600080fd5b853561389481613291565b945060208601356138a481613291565b93506040860135925060608601359150608086013567ffffffffffffffff8111156138ce57600080fd5b6136af888289016133f4565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061392357607f821691505b6020821081141561394457634e487b7160e01b600052602260045260246000fd5b50919050565b6000815161395c81856020860161331e565b9290920192915050565b600080845481600182811c91508083168061398257607f831692505b60208084108214156139a257634e487b7160e01b86526022600452602486fd5b8180156139b657600181146139c7576139f4565b60ff198616895284890196506139f4565b60008b81526020902060005b868110156139ec5781548b8201529085019083016139d3565b505084890196505b505050505050613a04818561394a565b95945050505050565b60008251613a1f81846020870161331e565b64173539b7b760d91b920191825250600501919050565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526026908201527f5075646779536572756d733a20436c61696d696e67206973206e6f74206f70656040820152656e207965742160d01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613ad657613ad6613aa6565b500290565b634e487b7160e01b600052603260045260246000fd5b60208082526026908201527f5075646779536572756d733a20596f7520646f6e2774206f776e207468697320604082015265746f6b656e2160d01b606082015260800190565b6020808252603a908201527f5075646779536572756d733a2054686520616c6c6f636174656420736572756d60408201527f2068617320616c7265616479206265656e20636c61696d656421000000000000606082015260800190565b6000600019821415613ba857613ba8613aa6565b5060010190565b60006020808385031215613bc257600080fd5b825167ffffffffffffffff811115613bd957600080fd5b8301601f81018513613bea57600080fd5b8051613bf5816133d0565b604051613c0282826133a3565b82815260059290921b8301840191848101915087831115613c2257600080fd5b928401925b8284101561324d57835182529284019290840190613c27565b600060208284031215613c5257600080fd5b815161224881613291565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b60008219821115613cb657613cb6613aa6565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b600060208284031215613d1857600080fd5b5051919050565b600060208284031215613d3157600080fd5b815161224881613835565b634e487b7160e01b600052601260045260246000fd5b600082613d6157613d61613d3c565b500490565b600082821015613d7857613d78613aa6565b500390565b600082613d8c57613d8c613d3c565b500690565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000613e3360408301856137e7565b8281036020840152613a0481856137e7565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061324d9083018461334e565b600060208284031215613e9157600080fd5b8151612248816132d2565b600060033d1115613eb55760046000803e5060005160e01c5b90565b600060443d1015613ec65790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715613ef657505050505090565b8285019150815181811115613f0e5750505050505090565b843d8701016020828501011115613f285750505050505090565b613f37602082860101876133a3565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090613fb6908301866137e7565b8281036060840152613fc881866137e7565b90508281036080840152613fdc818561334e565b98975050505050505050565b634e487b7160e01b600052602160045260246000fd5b6000825161401081846020870161331e565b919091019291505056fea264697066735822122054fe743583300d84a0cb57bec21167f94ed06bb94db537f2f3f11d84f537edd364736f6c63430008090033

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

0000000000000000000000000f9aba9fa6abd858a94f9eefe0f9d51ca2c11225000000000000000000000000f827f408171dcf69b858c34530212c92df649ef60000000000000000000000007e0f95f7b98d4d367ac076e10128798d4754a5e30000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000005568747470733a2f2f7075646779617065732e6d7970696e6174612e636c6f75642f697066732f516d5761465143515a57706a38586d753453586938794b564664744b7531386e6b7434596e59596576594475704b2f0000000000000000000000

-----Decoded View---------------
Arg [0] : _pudgyApes (address): 0x0f9ABa9fA6aBd858a94f9EEfE0F9D51ca2C11225
Arg [1] : _snac (address): 0xF827F408171dCf69b858C34530212C92Df649EF6
Arg [2] : _fridge (address): 0x7E0f95f7B98d4d367aC076e10128798D4754a5e3
Arg [3] : _uri (string): https://pudgyapes.mypinata.cloud/ipfs/QmWaFQCQZWpj8Xmu4SXi8yKVFdtKu18nkt4YnYYevYDupK/

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000f9aba9fa6abd858a94f9eefe0f9d51ca2c11225
Arg [1] : 000000000000000000000000f827f408171dcf69b858c34530212c92df649ef6
Arg [2] : 0000000000000000000000007e0f95f7b98d4d367ac076e10128798d4754a5e3
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000055
Arg [5] : 68747470733a2f2f7075646779617065732e6d7970696e6174612e636c6f7564
Arg [6] : 2f697066732f516d5761465143515a57706a38586d753453586938794b564664
Arg [7] : 744b7531386e6b7434596e59596576594475704b2f0000000000000000000000


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.