ETH Price: $3,318.64 (-4.72%)
Gas: 3 Gwei

Token

Mutant Pudgy Fridge Club (MPFC)
 

Overview

Max Total Supply

527 MPFC

Holders

170

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
leftlost.eth
Balance
2 MPFC
0xb4bb62cf25a97d75a11d1848ef23ce66ee38d70d
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:
MutantPudgyFridgeClub

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 23 : MutantPudgyFridgeClub.sol
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "./PudgySerumsInterface.sol";
import "./FridgeInterface.sol";

contract MutantPudgyFridgeClub is ERC721Enumerable, Ownable, ReentrancyGuard, Pausable, PaymentSplitter {
    using Counters for Counters.Counter;
    using ECDSA for bytes32;
    using SafeMath for uint256;

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

    uint constant public M2_OFFSET = 3333;
    uint constant public M3_OFFSET = 6667;
    uint constant public SALE_OFFSET = 6672;

    uint256 public maxSupplyPublic = 3333;
    uint256 public mintPriceMainsale = 0.025 ether;
    uint256 public mintPricePresale = 0.015 ether;
    uint256 public reservedMutants = 200;
    uint256 public maxTX = 100;

    string public baseTokenURI;
    address public PAFC;
    address public PS;
    address public Fridge;

    Counters.Counter private _m3Id;
    Counters.Counter private _publicSale;

    uint public mutationActive = 1650474000;
    uint public mainsaleActive = 1650486000;
    uint public presaleActive = 1650481200;

    address private _signer;

    mapping(uint => bool) public mutatedWithM3;

    constructor(address _pafc, address _ps, address _fridge, string memory _baseTokenURI) ERC721("Mutant Pudgy Fridge Club", "MPFC") PaymentSplitter(_shareholders, _shares) {
        baseTokenURI = _baseTokenURI;
        PAFC = _pafc;
        PS = _ps;
        Fridge = _fridge;
    }

    modifier isSecure(uint _amount) {
        require(_amount <= maxTX, "MPFC: You can't buy more than 100 pudgies at once!");
        require(msg.sender == tx.origin, "MPFC: Must use EOA");
        require(maxSupplyPublic.sub(reservedMutants) >= _publicSale.current().add(_amount), "MPFC: Minting would exceed max supply!");
        _;
    }

    function _mintMultiple(uint _amount) private {
        for(uint i = 0; i < _amount; i++) {
            uint id = SALE_OFFSET + _publicSale.current();
            _publicSale.increment();
            _safeMint(msg.sender, id);
        }
    }

    function isWhitelisted(bytes memory _signature) public view returns (bool) {
        bytes32 hash = keccak256(abi.encodePacked(msg.sender));
        bytes32 messageHash = hash.toEthSignedMessageHash();
        return messageHash.recover(_signature) == _signer;
    }

    function buyMutant(uint _amount) external payable isSecure(_amount) whenNotPaused {
        require(block.timestamp >= mainsaleActive, "MPFC: Mainsale didn't start yet!");
        require(msg.value >= mintPriceMainsale.mul(_amount), "MPFC: You don't have enough ETH to mint your Mutant Pudgies!");
        _mintMultiple(_amount);
    }

    function presaleMint(uint _amount, bytes memory _signature) external payable isSecure(_amount) whenNotPaused {
        require(block.timestamp >= presaleActive, "MPFC: Presale didn't start yet!");
        require(isWhitelisted(_signature), "MPFC: You aren't whitelisted!");
        require(msg.value >= mintPricePresale.mul(_amount), "MPFC: You don't have enough ETH to mint your Mutant Pudgies!");
        _mintMultiple(_amount);
    }

    function giveAwayMint(uint _amount, address _to) external onlyOwner {
        for(uint i = 0; i < _amount; i++) {
            uint id = SALE_OFFSET + _publicSale.current();
            _publicSale.increment();
            _safeMint(_to, id);
        }
    }

    function mutate(uint _id, uint _serumType) external nonReentrant whenNotPaused {
        require(block.timestamp >= mutationActive, "MPFC: Mutation didn't start yet!");
        require(ownedOrStaked(_id), "MPFC: You don't own the pudgy you are trying to mutate!");
        require(PudgySerumsInterface(PS).balanceOf(msg.sender, _serumType) >= 1, "MPFC: You don't have any serums of this type!");
        require(!hasBeenMutatedWith(_id, _serumType), "MPFC: You already have mutated this pudgy with this serum type!");
        uint id;
        if(_serumType == 3) {
            id = M3_OFFSET + _m3Id.current();
            mutatedWithM3[_id] = true;
            _m3Id.increment();
        } else {
            id = getTokenId(_id, _serumType);
        }
        PudgySerumsInterface(PS).consumeSerum(_serumType, msg.sender);
        _safeMint(msg.sender, id);
    }

    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(PAFC).ownerOf(_tokenId) == msg.sender || isStaked;
    }

    function getTokenId(uint _id, uint _serumType) public pure returns (uint) {
        require(_serumType != 3, "MPFC: Can't calculate M3 ids!");
        if(_serumType == 2) {
            return M2_OFFSET + _id;
        } else {
            return _id;
        }
    }

    function hasBeenMutatedWith(uint _id, uint _serumType) public view returns (bool) {
        if(_serumType == 3) {
            return mutatedWithM3[_id];
        } else {
            return _exists(getTokenId(_id, _serumType));
        }
    }

    function getSoldAmount() public view returns (uint) {
        return _publicSale.current();
    }

    function setMutationStartTime(uint _startTime) external onlyOwner {
        mutationActive = _startTime;
    }

    function setMainsaleStartTime(uint _startTime) external onlyOwner {
        mainsaleActive = _startTime;
    }

    function setPresaleStartTime(uint _startTime) external onlyOwner {
        presaleActive = _startTime;
    }

    function setPublicMaxSupply(uint _maxSupply) external onlyOwner {
        maxSupplyPublic = _maxSupply;
    }

    function setMintPriceMainsale(uint _mintPrice) external onlyOwner {
        mintPriceMainsale = _mintPrice;
    }

    function setMintPricePresale(uint _mintPrice) external onlyOwner {
        mintPricePresale = _mintPrice;
    }

    function setReservedMutants(uint _reserved) external onlyOwner {
        reservedMutants = _reserved;
    }

    function setMaxTx(uint _maxTX) external onlyOwner {
        maxTX = _maxTX;
    }

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

    function setPS(address _ps) external onlyOwner {
        PS = _ps;
    }

    function setPAFC(address _pafc) external onlyOwner {
        PAFC = _pafc;
    }

    function setTokenURI(string memory _baseTokenURI) external onlyOwner {
        baseTokenURI = _baseTokenURI;
    }

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

    function _baseURI() internal view override returns (string memory) {
        return baseTokenURI;
    }

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

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

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

File 2 of 23 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 3 of 23 : 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 23 : 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 23 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 6 of 23 : 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 7 of 23 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 8 of 23 : 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 9 of 23 : 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 23 : 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 23 : PudgySerumsInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

contract PudgySerumsInterface {
    function consumeSerum(uint _serumType, address _account) external {}
    function balanceOf(address account, uint256 id) external view returns (uint256) {}
}

File 12 of 23 : FridgeInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

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

File 13 of 23 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @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.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

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

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

        _afterTokenTransfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

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

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

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

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @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, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 14 of 23 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 15 of 23 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 16 of 23 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 17 of 23 : 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 18 of 23 : 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 19 of 23 : 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 20 of 23 : 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 21 of 23 : 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 22 of 23 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_pafc","type":"address"},{"internalType":"address","name":"_ps","type":"address"},{"internalType":"address","name":"_fridge","type":"address"},{"internalType":"string","name":"_baseTokenURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"Fridge","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"M2_OFFSET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"M3_OFFSET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAFC","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SALE_OFFSET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"buyMutant","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSoldAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_serumType","type":"uint256"}],"name":"getTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"giveAwayMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_serumType","type":"uint256"}],"name":"hasBeenMutatedWith","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mainsaleActive","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupplyPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPriceMainsale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPricePresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_serumType","type":"uint256"}],"name":"mutate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mutatedWithM3","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mutationActive","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleActive","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","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":[],"name":"reservedMutants","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_fridge","type":"address"}],"name":"setFridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"}],"name":"setMainsaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTX","type":"uint256"}],"name":"setMaxTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setMintPriceMainsale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setMintPricePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"}],"name":"setMutationStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pafc","type":"address"}],"name":"setPAFC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_ps","type":"address"}],"name":"setPS","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"}],"name":"setPresaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setPublicMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_reserved","type":"uint256"}],"name":"setReservedMutants","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSigner","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60e0604052600a6080908152601460a0819052604660c0526200002491600362000622565b50604080516060810182527381bf2bc8119695ed2a196556e4182daf498721638152733461895e441a1d368e04525276b96aeb87431fe96020820152733584fe4f1e719fd0cc0f814a4a675181438b45dd918101919091526200008c90601590600362000677565b50610d056016556658d15e1762800060175566354a6ba7a1800060185560c86019556064601a556362603c106021556362606af06022556362605830602355348015620000d857600080fd5b5060405162004c3538038062004c35833981016040819052620000fb9162000796565b60158054806020026020016040519081016040528092919081815260200182805480156200015357602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831162000134575b50505050506014805480602002602001604051908101604052809291908181526020018280548015620001a657602002820191906000526020600020905b81548152602001906001019080831162000191575b5050604080518082018252601881527f4d7574616e742050756467792046726964676520436c756200000000000000006020808301918252835180850190945260048452634d50464360e01b9084015281519195509193506200020e925060009190620006cf565b50805162000224906001906020840190620006cf565b505050620002416200023b620003de60201b60201c565b620003e2565b6001600b55600c805460ff191690558051825114620002c25760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620003155760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606401620002b9565b60005b825181101562000381576200036c8382815181106200033b576200033b620008ab565b6020026020010151838381518110620003585762000358620008ab565b60200260200101516200043460201b60201c565b806200037881620008d7565b91505062000318565b50508151620003999150601b906020840190620006cf565b5050601c80546001600160a01b039485166001600160a01b031991821617909155601d805493851693821693909317909255601e80549190931691161790556200094d565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620004a15760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401620002b9565b60008111620004f35760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401620002b9565b6001600160a01b0382166000908152600f6020526040902054156200056f5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401620002b9565b60118054600181019091557f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c680180546001600160a01b0319166001600160a01b0384169081179091556000908152600f60205260409020819055600d54620005d9908290620008f5565b600d55604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b82805482825590600052602060002090810192821562000665579160200282015b8281111562000665578251829060ff1690559160200191906001019062000643565b50620006739291506200074c565b5090565b82805482825590600052602060002090810192821562000665579160200282015b828111156200066557825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000698565b828054620006dd9062000910565b90600052602060002090601f01602090048101928262000701576000855562000665565b82601f106200071c57805160ff191683800117855562000665565b8280016001018555821562000665579182015b82811115620006655782518255916020019190600101906200072f565b5b808211156200067357600081556001016200074d565b80516001600160a01b03811681146200077b57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215620007ad57600080fd5b620007b88562000763565b93506020620007c981870162000763565b9350620007d96040870162000763565b60608701519093506001600160401b0380821115620007f757600080fd5b818801915088601f8301126200080c57600080fd5b81518181111562000821576200082162000780565b604051601f8201601f19908116603f011681019083821181831017156200084c576200084c62000780565b816040528281528b868487010111156200086557600080fd5b600093505b828410156200088957848401860151818501870152928501926200086a565b828411156200089b5760008684830101525b989b979a50959850505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415620008ee57620008ee620008c1565b5060010190565b600082198211156200090b576200090b620008c1565b500190565b600181811c908216806200092557607f821691505b602082108114156200094757634e487b7160e01b600052602260045260246000fd5b50919050565b6142d8806200095d6000396000f3fe6080604052600436106104095760003560e01c806371b001e011610213578063c87b56dd11610123578063e0df5b6f116100ab578063ec9805c01161007a578063ec9805c014610c6f578063eccaefe814610c8f578063f2fde38b14610ca4578063fd24a85414610cc4578063fde9ea2b14610cd757600080fd5b8063e0df5b6f14610bdb578063e33b7de314610bfb578063e985e9c514610c10578063ebae7c1c14610c5957600080fd5b8063d37ae3bc116100f2578063d37ae3bc14610b44578063d43b753914610b5a578063d547cfb714610b70578063d79779b214610b85578063dcbb9bcc14610bbb57600080fd5b8063c87b56dd14610aa8578063cd3bc78f14610ac8578063cdef760f14610af8578063ce7c2ac214610b0e57600080fd5b806395d89b41116101a65780639f033590116101755780639f03359014610a12578063a22cb46514610a32578063b15d46fa14610a52578063b88d4fde14610a68578063bc33718214610a8857600080fd5b806395d89b411461099157806396e4950f146109a65780639852595c146109bc5780639d82998a146109f257600080fd5b806389055754116101e257806389055754146109135780638b83209b146109335780638caa5a3f146109535780638da5cb5b1461097357600080fd5b806371b001e0146108c057806378df6ad4146108d35780638456cb59146108e9578063853828b6146108fe57600080fd5b806333d2d8dd116103195780634f6ccce7116102a15780635c975abb116102705780635c975abb146108335780636352211e1461084b5780636c19e7831461086b57806370a082311461088b578063715018a6146108ab57600080fd5b80634f6ccce7146107bd57806353135ca0146107dd578063592893b7146107f35780635b1ab77a1461081357600080fd5b8063406072a9116102e8578063406072a9146106f757806340f5db861461073d57806342842e0e1461075d578063447400bf1461077d57806348b750441461079d57600080fd5b806333d2d8dd1461068d578063347ed694146106ad5780633a98ef39146106cd5780633f4ba83a146106e257600080fd5b80631861cb3a1161039c57806325b840491161036b57806325b84049146105ed578063296cab551461060d5780632c99589b1461062d5780632f745c591461064d5780633112de9a1461066d57600080fd5b80631861cb3a1461057757806319165587146105975780631aa0d2fb146105b757806323b872dd146105cd57600080fd5b8063087224fb116103d8578063087224fb14610508578063095ea7b31461052c5780630ca03b1a1461054c57806318160ddd1461056257600080fd5b806301ffc9a71461045757806305846e381461048c57806306fdde03146104ae578063081812fc146104d057600080fd5b36610452577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561046357600080fd5b50610477610472366004613956565b610cf7565b60405190151581526020015b60405180910390f35b34801561049857600080fd5b506104ac6104a7366004613988565b610d22565b005b3480156104ba57600080fd5b506104c3610d77565b60405161048391906139fd565b3480156104dc57600080fd5b506104f06104eb366004613a10565b610e09565b6040516001600160a01b039091168152602001610483565b34801561051457600080fd5b5061051e60225481565b604051908152602001610483565b34801561053857600080fd5b506104ac610547366004613a29565b610e9e565b34801561055857600080fd5b5061051e610d0581565b34801561056e57600080fd5b5060085461051e565b34801561058357600080fd5b50610477610592366004613a10565b610fb4565b3480156105a357600080fd5b506104ac6105b2366004613988565b611116565b3480156105c357600080fd5b5061051e611a1081565b3480156105d957600080fd5b506104ac6105e8366004613a55565b611244565b3480156105f957600080fd5b50601c546104f0906001600160a01b031681565b34801561061957600080fd5b506104ac610628366004613a10565b611275565b34801561063957600080fd5b506104ac610648366004613a10565b6112a4565b34801561065957600080fd5b5061051e610668366004613a29565b6112d3565b34801561067957600080fd5b5061051e610688366004613a96565b611369565b34801561069957600080fd5b506104ac6106a8366004613a10565b6113df565b3480156106b957600080fd5b50601d546104f0906001600160a01b031681565b3480156106d957600080fd5b50600d5461051e565b3480156106ee57600080fd5b506104ac61140e565b34801561070357600080fd5b5061051e610712366004613ab8565b6001600160a01b03918216600090815260136020908152604080832093909416825291909152205490565b34801561074957600080fd5b50610477610758366004613a96565b611442565b34801561076957600080fd5b506104ac610778366004613a55565b61148f565b34801561078957600080fd5b506104ac610798366004613a96565b6114aa565b3480156107a957600080fd5b506104ac6107b8366004613ab8565b611821565b3480156107c957600080fd5b5061051e6107d8366004613a10565b611a09565b3480156107e957600080fd5b5061051e60235481565b3480156107ff57600080fd5b506104ac61080e366004613a10565b611a9c565b34801561081f57600080fd5b506104ac61082e366004613988565b611acb565b34801561083f57600080fd5b50600c5460ff16610477565b34801561085757600080fd5b506104f0610866366004613a10565b611b17565b34801561087757600080fd5b506104ac610886366004613988565b611b8e565b34801561089757600080fd5b5061051e6108a6366004613988565b611bda565b3480156108b757600080fd5b506104ac611c61565b6104ac6108ce366004613a10565b611c95565b3480156108df57600080fd5b5061051e60215481565b3480156108f557600080fd5b506104ac611dea565b34801561090a57600080fd5b506104ac611e1c565b34801561091f57600080fd5b5061047761092e366004613bb0565b611e9e565b34801561093f57600080fd5b506104f061094e366004613a10565b611f46565b34801561095f57600080fd5b506104ac61096e366004613a10565b611f76565b34801561097f57600080fd5b50600a546001600160a01b03166104f0565b34801561099d57600080fd5b506104c3611fa5565b3480156109b257600080fd5b5061051e611a0b81565b3480156109c857600080fd5b5061051e6109d7366004613988565b6001600160a01b031660009081526010602052604090205490565b3480156109fe57600080fd5b506104ac610a0d366004613988565b611fb4565b348015610a1e57600080fd5b506104ac610a2d366004613a10565b612000565b348015610a3e57600080fd5b506104ac610a4d366004613bf3565b61202f565b348015610a5e57600080fd5b5061051e60165481565b348015610a7457600080fd5b506104ac610a83366004613c21565b61203a565b348015610a9457600080fd5b506104ac610aa3366004613a10565b612072565b348015610ab457600080fd5b506104c3610ac3366004613a10565b6120a1565b348015610ad457600080fd5b50610477610ae3366004613a10565b60256020526000908152604090205460ff1681565b348015610b0457600080fd5b5061051e60195481565b348015610b1a57600080fd5b5061051e610b29366004613988565b6001600160a01b03166000908152600f602052604090205490565b348015610b5057600080fd5b5061051e60185481565b348015610b6657600080fd5b5061051e60175481565b348015610b7c57600080fd5b506104c361217c565b348015610b9157600080fd5b5061051e610ba0366004613988565b6001600160a01b031660009081526012602052604090205490565b348015610bc757600080fd5b50601e546104f0906001600160a01b031681565b348015610be757600080fd5b506104ac610bf6366004613c8d565b61220a565b348015610c0757600080fd5b50600e5461051e565b348015610c1c57600080fd5b50610477610c2b366004613ab8565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610c6557600080fd5b5061051e601a5481565b348015610c7b57600080fd5b506104ac610c8a366004613cd6565b612247565b348015610c9b57600080fd5b5061051e6122c0565b348015610cb057600080fd5b506104ac610cbf366004613988565b6122d0565b6104ac610cd2366004613cfb565b612368565b348015610ce357600080fd5b506104ac610cf2366004613a10565b612508565b60006001600160e01b0319821663780e9d6360e01b1480610d1c5750610d1c82612537565b92915050565b600a546001600160a01b03163314610d555760405162461bcd60e51b8152600401610d4c90613d42565b60405180910390fd5b601d80546001600160a01b0319166001600160a01b0392909216919091179055565b606060008054610d8690613d77565b80601f0160208091040260200160405190810160405280929190818152602001828054610db290613d77565b8015610dff5780601f10610dd457610100808354040283529160200191610dff565b820191906000526020600020905b815481529060010190602001808311610de257829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610e825760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d4c565b506000908152600460205260409020546001600160a01b031690565b6000610ea982611b17565b9050806001600160a01b0316836001600160a01b03161415610f175760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610d4c565b336001600160a01b0382161480610f335750610f338133610c2b565b610fa55760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d4c565b610faf8383612587565b505050565b601e54604051632cf01b5560e01b815233600482015260009182916001600160a01b0390911690632cf01b559060240160006040518083038186803b158015610ffc57600080fd5b505afa158015611010573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110389190810190613db2565b90506000805b825181101561107f578483828151811061105a5761105a613e58565b6020026020010151141561106d57600191505b8061107781613e84565b91505061103e565b50601c546040516331a9108f60e11b81526004810186905233916001600160a01b031690636352211e9060240160206040518083038186803b1580156110c457600080fd5b505afa1580156110d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110fc9190613e9f565b6001600160a01b0316148061110e5750805b949350505050565b6001600160a01b0381166000908152600f602052604090205461114b5760405162461bcd60e51b8152600401610d4c90613ebc565b6000611156600e5490565b6111609047613f02565b9050600061118d8383611188866001600160a01b031660009081526010602052604090205490565b6125f5565b9050806111ac5760405162461bcd60e51b8152600401610d4c90613f1a565b6001600160a01b038316600090815260106020526040812080548392906111d4908490613f02565b9250508190555080600e60008282546111ed9190613f02565b909155506111fd90508382612633565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b61124e338261274c565b61126a5760405162461bcd60e51b8152600401610d4c90613f65565b610faf83838361283f565b600a546001600160a01b0316331461129f5760405162461bcd60e51b8152600401610d4c90613d42565b602355565b600a546001600160a01b031633146112ce5760405162461bcd60e51b8152600401610d4c90613d42565b601655565b60006112de83611bda565b82106113405760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610d4c565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600081600314156113bc5760405162461bcd60e51b815260206004820152601d60248201527f4d5046433a2043616e27742063616c63756c617465204d3320696473210000006044820152606401610d4c565b81600214156113d8576113d183610d05613f02565b9050610d1c565b5081610d1c565b600a546001600160a01b031633146114095760405162461bcd60e51b8152600401610d4c90613d42565b602255565b600a546001600160a01b031633146114385760405162461bcd60e51b8152600401610d4c90613d42565b6114406129e6565b565b60008160031415611465575060008281526025602052604090205460ff16610d1c565b6113d16114728484611369565b6000908152600260205260409020546001600160a01b0316151590565b610faf8383836040518060200160405280600081525061203a565b6002600b5414156114fd5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d4c565b6002600b55600c5460ff16156115255760405162461bcd60e51b8152600401610d4c90613fb6565b6021544210156115775760405162461bcd60e51b815260206004820181905260248201527f4d5046433a204d75746174696f6e206469646e277420737461727420796574216044820152606401610d4c565b61158082610fb4565b6115f25760405162461bcd60e51b815260206004820152603760248201527f4d5046433a20596f7520646f6e2774206f776e2074686520707564677920796f60448201527f752061726520747279696e6720746f206d7574617465210000000000000000006064820152608401610d4c565b601d54604051627eeac760e11b8152336004820152602481018390526001916001600160a01b03169062fdd58e9060440160206040518083038186803b15801561163b57600080fd5b505afa15801561164f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116739190613fe0565b10156116d75760405162461bcd60e51b815260206004820152602d60248201527f4d5046433a20596f7520646f6e2774206861766520616e7920736572756d732060448201526c6f66207468697320747970652160981b6064820152608401610d4c565b6116e18282611442565b156117545760405162461bcd60e51b815260206004820152603f60248201527f4d5046433a20596f7520616c72656164792068617665206d757461746564207460448201527f6869732070756467792077697468207468697320736572756d207479706521006064820152608401610d4c565b6000816003141561179c57601f5461176e90611a0b613f02565b6000848152602560205260409020805460ff191660011790559050611797601f80546001019055565b6117a9565b6117a68383611369565b90505b601d54604051633504f62b60e01b8152600481018490523360248201526001600160a01b0390911690633504f62b90604401600060405180830381600087803b1580156117f557600080fd5b505af1158015611809573d6000803e3d6000fd5b505050506118173382612a79565b50506001600b5550565b6001600160a01b0381166000908152600f60205260409020546118565760405162461bcd60e51b8152600401610d4c90613ebc565b6001600160a01b0382166000908152601260205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b1580156118ae57600080fd5b505afa1580156118c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118e69190613fe0565b6118f09190613f02565b90506000611929838361118887876001600160a01b03918216600090815260136020908152604080832093909416825291909152205490565b9050806119485760405162461bcd60e51b8152600401610d4c90613f1a565b6001600160a01b0380851660009081526013602090815260408083209387168352929052908120805483929061197f908490613f02565b90915550506001600160a01b038416600090815260126020526040812080548392906119ac908490613f02565b909155506119bd9050848483612a93565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b6000611a1460085490565b8210611a775760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610d4c565b60088281548110611a8a57611a8a613e58565b90600052602060002001549050919050565b600a546001600160a01b03163314611ac65760405162461bcd60e51b8152600401610d4c90613d42565b602155565b600a546001600160a01b03163314611af55760405162461bcd60e51b8152600401610d4c90613d42565b601c80546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600260205260408120546001600160a01b031680610d1c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610d4c565b600a546001600160a01b03163314611bb85760405162461bcd60e51b8152600401610d4c90613d42565b602480546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216611c455760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610d4c565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314611c8b5760405162461bcd60e51b8152600401610d4c90613d42565b6114406000612ae5565b80601a54811115611cb85760405162461bcd60e51b8152600401610d4c90613ff9565b333214611cfc5760405162461bcd60e51b81526020600482015260126024820152714d5046433a204d7573742075736520454f4160701b6044820152606401610d4c565b611d0f81611d0960205490565b90612b37565b601954601654611d1e91612b43565b1015611d3c5760405162461bcd60e51b8152600401610d4c9061404b565b600c5460ff1615611d5f5760405162461bcd60e51b8152600401610d4c90613fb6565b602254421015611db15760405162461bcd60e51b815260206004820181905260248201527f4d5046433a204d61696e73616c65206469646e277420737461727420796574216044820152606401610d4c565b601754611dbe9083612b4f565b341015611ddd5760405162461bcd60e51b8152600401610d4c90614091565b611de682612b5b565b5050565b600a546001600160a01b03163314611e145760405162461bcd60e51b8152600401610d4c90613d42565b611440612baa565b600a546001600160a01b03163314611e465760405162461bcd60e51b8152600401610d4c90613d42565b60005b601554811015611e9b57600060158281548110611e6857611e68613e58565b6000918252602090912001546001600160a01b03169050611e8881611116565b5080611e9381613e84565b915050611e49565b50565b604080516bffffffffffffffffffffffff193360601b16602080830191909152825180830360140181526034830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000060548401526070808401829052845180850390910181526090909301909352815191012060245460009291906001600160a01b0316611f348286612c02565b6001600160a01b031614949350505050565b600060118281548110611f5b57611f5b613e58565b6000918252602090912001546001600160a01b031692915050565b600a546001600160a01b03163314611fa05760405162461bcd60e51b8152600401610d4c90613d42565b601755565b606060018054610d8690613d77565b600a546001600160a01b03163314611fde5760405162461bcd60e51b8152600401610d4c90613d42565b601e80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b0316331461202a5760405162461bcd60e51b8152600401610d4c90613d42565b601955565b611de6338383612c26565b612044338361274c565b6120605760405162461bcd60e51b8152600401610d4c90613f65565b61206c84848484612cf5565b50505050565b600a546001600160a01b0316331461209c5760405162461bcd60e51b8152600401610d4c90613d42565b601a55565b6000818152600260205260409020546060906001600160a01b03166121205760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610d4c565b600061212a612d28565b9050600081511161214a5760405180602001604052806000815250612175565b8061215484612d37565b6040516020016121659291906140ee565b6040516020818303038152906040525b9392505050565b601b805461218990613d77565b80601f01602080910402602001604051908101604052809291908181526020018280546121b590613d77565b80156122025780601f106121d757610100808354040283529160200191612202565b820191906000526020600020905b8154815290600101906020018083116121e557829003601f168201915b505050505081565b600a546001600160a01b031633146122345760405162461bcd60e51b8152600401610d4c90613d42565b8051611de690601b9060208401906138a7565b600a546001600160a01b031633146122715760405162461bcd60e51b8152600401610d4c90613d42565b60005b82811015610faf57600061228760205490565b61229390611a10613f02565b90506122a3602080546001019055565b6122ad8382612a79565b50806122b881613e84565b915050612274565b60006122cb60205490565b905090565b600a546001600160a01b031633146122fa5760405162461bcd60e51b8152600401610d4c90613d42565b6001600160a01b03811661235f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d4c565b611e9b81612ae5565b81601a5481111561238b5760405162461bcd60e51b8152600401610d4c90613ff9565b3332146123cf5760405162461bcd60e51b81526020600482015260126024820152714d5046433a204d7573742075736520454f4160701b6044820152606401610d4c565b6123dc81611d0960205490565b6019546016546123eb91612b43565b10156124095760405162461bcd60e51b8152600401610d4c9061404b565b600c5460ff161561242c5760405162461bcd60e51b8152600401610d4c90613fb6565b60235442101561247e5760405162461bcd60e51b815260206004820152601f60248201527f4d5046433a2050726573616c65206469646e27742073746172742079657421006044820152606401610d4c565b61248782611e9e565b6124d35760405162461bcd60e51b815260206004820152601d60248201527f4d5046433a20596f75206172656e27742077686974656c6973746564210000006044820152606401610d4c565b6018546124e09084612b4f565b3410156124ff5760405162461bcd60e51b8152600401610d4c90614091565b610faf83612b5b565b600a546001600160a01b031633146125325760405162461bcd60e51b8152600401610d4c90613d42565b601855565b60006001600160e01b031982166380ac58cd60e01b148061256857506001600160e01b03198216635b5e139f60e01b145b80610d1c57506301ffc9a760e01b6001600160e01b0319831614610d1c565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906125bc82611b17565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600d546001600160a01b0384166000908152600f60205260408120549091839161261f908661411d565b6126299190614152565b61110e9190614166565b804710156126835760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610d4c565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146126d0576040519150601f19603f3d011682016040523d82523d6000602084013e6126d5565b606091505b5050905080610faf5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610d4c565b6000818152600260205260408120546001600160a01b03166127c55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d4c565b60006127d083611b17565b9050806001600160a01b0316846001600160a01b0316148061280b5750836001600160a01b031661280084610e09565b6001600160a01b0316145b8061110e57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff1661110e565b826001600160a01b031661285282611b17565b6001600160a01b0316146128b65760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610d4c565b6001600160a01b0382166129185760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610d4c565b612923838383612e35565b61292e600082612587565b6001600160a01b0383166000908152600360205260408120805460019290612957908490614166565b90915550506001600160a01b0382166000908152600360205260408120805460019290612985908490613f02565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600c5460ff16612a2f5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610d4c565b600c805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b611de6828260405180602001604052806000815250612eed565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610faf908490612f20565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006121758284613f02565b60006121758284614166565b6000612175828461411d565b60005b81811015611de6576000612b7160205490565b612b7d90611a10613f02565b9050612b8d602080546001019055565b612b973382612a79565b5080612ba281613e84565b915050612b5e565b600c5460ff1615612bcd5760405162461bcd60e51b8152600401610d4c90613fb6565b600c805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612a5c3390565b6000806000612c118585612ff2565b91509150612c1e81613062565b509392505050565b816001600160a01b0316836001600160a01b03161415612c885760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d4c565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612d0084848461283f565b612d0c8484848461321d565b61206c5760405162461bcd60e51b8152600401610d4c9061417d565b6060601b8054610d8690613d77565b606081612d5b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612d855780612d6f81613e84565b9150612d7e9050600a83614152565b9150612d5f565b60008167ffffffffffffffff811115612da057612da0613af1565b6040519080825280601f01601f191660200182016040528015612dca576020820181803683370190505b5090505b841561110e57612ddf600183614166565b9150612dec600a866141cf565b612df7906030613f02565b60f81b818381518110612e0c57612e0c613e58565b60200101906001600160f81b031916908160001a905350612e2e600a86614152565b9450612dce565b6001600160a01b038316612e9057612e8b81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612eb3565b816001600160a01b0316836001600160a01b031614612eb357612eb3838261332a565b6001600160a01b038216612eca57610faf816133c7565b826001600160a01b0316826001600160a01b031614610faf57610faf8282613476565b612ef783836134ba565b612f04600084848461321d565b610faf5760405162461bcd60e51b8152600401610d4c9061417d565b6000612f75826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166136089092919063ffffffff16565b805190915015610faf5780806020019051810190612f9391906141e3565b610faf5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610d4c565b6000808251604114156130295760208301516040840151606085015160001a61301d87828585613617565b9450945050505061305b565b8251604014156130535760208301516040840151613048868383613704565b93509350505061305b565b506000905060025b9250929050565b600081600481111561307657613076614200565b141561307f5750565b600181600481111561309357613093614200565b14156130e15760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d4c565b60028160048111156130f5576130f5614200565b14156131435760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d4c565b600381600481111561315757613157614200565b14156131b05760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610d4c565b60048160048111156131c4576131c4614200565b1415611e9b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610d4c565b60006001600160a01b0384163b1561331f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613261903390899088908890600401614216565b602060405180830381600087803b15801561327b57600080fd5b505af19250505080156132ab575060408051601f3d908101601f191682019092526132a891810190614253565b60015b613305573d8080156132d9576040519150601f19603f3d011682016040523d82523d6000602084013e6132de565b606091505b5080516132fd5760405162461bcd60e51b8152600401610d4c9061417d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061110e565b506001949350505050565b6000600161333784611bda565b6133419190614166565b600083815260076020526040902054909150808214613394576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906133d990600190614166565b6000838152600960205260408120546008805493945090928490811061340157613401613e58565b90600052602060002001549050806008838154811061342257613422613e58565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061345a5761345a614270565b6001900381819060005260206000200160009055905550505050565b600061348183611bda565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166135105760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d4c565b6000818152600260205260409020546001600160a01b0316156135755760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d4c565b61358160008383612e35565b6001600160a01b03821660009081526003602052604081208054600192906135aa908490613f02565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606061110e848460008561373d565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561364e57506000905060036136fb565b8460ff16601b1415801561366657508460ff16601c14155b1561367757506000905060046136fb565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156136cb573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166136f4576000600192509250506136fb565b9150600090505b94509492505050565b6000806001600160ff1b0383168161372160ff86901c601b613f02565b905061372f87828885613617565b935093505050935093915050565b60608247101561379e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610d4c565b6001600160a01b0385163b6137f55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610d4c565b600080866001600160a01b031685876040516138119190614286565b60006040518083038185875af1925050503d806000811461384e576040519150601f19603f3d011682016040523d82523d6000602084013e613853565b606091505b509150915061386382828661386e565b979650505050505050565b6060831561387d575081612175565b82511561388d5782518084602001fd5b8160405162461bcd60e51b8152600401610d4c91906139fd565b8280546138b390613d77565b90600052602060002090601f0160209004810192826138d5576000855561391b565b82601f106138ee57805160ff191683800117855561391b565b8280016001018555821561391b579182015b8281111561391b578251825591602001919060010190613900565b5061392792915061392b565b5090565b5b80821115613927576000815560010161392c565b6001600160e01b031981168114611e9b57600080fd5b60006020828403121561396857600080fd5b813561217581613940565b6001600160a01b0381168114611e9b57600080fd5b60006020828403121561399a57600080fd5b813561217581613973565b60005b838110156139c05781810151838201526020016139a8565b8381111561206c5750506000910152565b600081518084526139e98160208601602086016139a5565b601f01601f19169290920160200192915050565b60208152600061217560208301846139d1565b600060208284031215613a2257600080fd5b5035919050565b60008060408385031215613a3c57600080fd5b8235613a4781613973565b946020939093013593505050565b600080600060608486031215613a6a57600080fd5b8335613a7581613973565b92506020840135613a8581613973565b929592945050506040919091013590565b60008060408385031215613aa957600080fd5b50508035926020909101359150565b60008060408385031215613acb57600080fd5b8235613ad681613973565b91506020830135613ae681613973565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613b3057613b30613af1565b604052919050565b600067ffffffffffffffff831115613b5257613b52613af1565b613b65601f8401601f1916602001613b07565b9050828152838383011115613b7957600080fd5b828260208301376000602084830101529392505050565b600082601f830112613ba157600080fd5b61217583833560208501613b38565b600060208284031215613bc257600080fd5b813567ffffffffffffffff811115613bd957600080fd5b61110e84828501613b90565b8015158114611e9b57600080fd5b60008060408385031215613c0657600080fd5b8235613c1181613973565b91506020830135613ae681613be5565b60008060008060808587031215613c3757600080fd5b8435613c4281613973565b93506020850135613c5281613973565b925060408501359150606085013567ffffffffffffffff811115613c7557600080fd5b613c8187828801613b90565b91505092959194509250565b600060208284031215613c9f57600080fd5b813567ffffffffffffffff811115613cb657600080fd5b8201601f81018413613cc757600080fd5b61110e84823560208401613b38565b60008060408385031215613ce957600080fd5b823591506020830135613ae681613973565b60008060408385031215613d0e57600080fd5b82359150602083013567ffffffffffffffff811115613d2c57600080fd5b613d3885828601613b90565b9150509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680613d8b57607f821691505b60208210811415613dac57634e487b7160e01b600052602260045260246000fd5b50919050565b60006020808385031215613dc557600080fd5b825167ffffffffffffffff80821115613ddd57600080fd5b818501915085601f830112613df157600080fd5b815181811115613e0357613e03613af1565b8060051b9150613e14848301613b07565b8181529183018401918481019088841115613e2e57600080fd5b938501935b83851015613e4c57845182529385019390850190613e33565b98975050505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415613e9857613e98613e6e565b5060010190565b600060208284031215613eb157600080fd5b815161217581613973565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b60008219821115613f1557613f15613e6e565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b600060208284031215613ff257600080fd5b5051919050565b60208082526032908201527f4d5046433a20596f752063616e277420627579206d6f7265207468616e203130604082015271302070756467696573206174206f6e63652160701b606082015260800190565b60208082526026908201527f4d5046433a204d696e74696e6720776f756c6420657863656564206d617820736040820152657570706c792160d01b606082015260800190565b6020808252603c908201527f4d5046433a20596f7520646f6e2774206861766520656e6f756768204554482060408201527f746f206d696e7420796f7572204d7574616e7420507564676965732100000000606082015260800190565b600083516141008184602088016139a5565b8351908301906141148183602088016139a5565b01949350505050565b600081600019048311821515161561413757614137613e6e565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826141615761416161413c565b500490565b60008282101561417857614178613e6e565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826141de576141de61413c565b500690565b6000602082840312156141f557600080fd5b815161217581613be5565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614249908301846139d1565b9695505050505050565b60006020828403121561426557600080fd5b815161217581613940565b634e487b7160e01b600052603160045260246000fd5b600082516142988184602087016139a5565b919091019291505056fea26469706673582212207da4e6ffddf9749fd17cf9c6db3d7b933ca3af52dcf87f761d7ea301924f93b064736f6c634300080900330000000000000000000000000f9aba9fa6abd858a94f9eefe0f9d51ca2c11225000000000000000000000000c35b30df124e863ff3241c1839904211e678e67a0000000000000000000000007e0f95f7b98d4d367ac076e10128798d4754a5e30000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000005568747470733a2f2f7075646779617065732e6d7970696e6174612e636c6f75642f697066732f516d596a5369354b7773344e554b445742665a52645069434c6f7259594b6144637072386572767357594857316b2f0000000000000000000000

Deployed Bytecode

0x6080604052600436106104095760003560e01c806371b001e011610213578063c87b56dd11610123578063e0df5b6f116100ab578063ec9805c01161007a578063ec9805c014610c6f578063eccaefe814610c8f578063f2fde38b14610ca4578063fd24a85414610cc4578063fde9ea2b14610cd757600080fd5b8063e0df5b6f14610bdb578063e33b7de314610bfb578063e985e9c514610c10578063ebae7c1c14610c5957600080fd5b8063d37ae3bc116100f2578063d37ae3bc14610b44578063d43b753914610b5a578063d547cfb714610b70578063d79779b214610b85578063dcbb9bcc14610bbb57600080fd5b8063c87b56dd14610aa8578063cd3bc78f14610ac8578063cdef760f14610af8578063ce7c2ac214610b0e57600080fd5b806395d89b41116101a65780639f033590116101755780639f03359014610a12578063a22cb46514610a32578063b15d46fa14610a52578063b88d4fde14610a68578063bc33718214610a8857600080fd5b806395d89b411461099157806396e4950f146109a65780639852595c146109bc5780639d82998a146109f257600080fd5b806389055754116101e257806389055754146109135780638b83209b146109335780638caa5a3f146109535780638da5cb5b1461097357600080fd5b806371b001e0146108c057806378df6ad4146108d35780638456cb59146108e9578063853828b6146108fe57600080fd5b806333d2d8dd116103195780634f6ccce7116102a15780635c975abb116102705780635c975abb146108335780636352211e1461084b5780636c19e7831461086b57806370a082311461088b578063715018a6146108ab57600080fd5b80634f6ccce7146107bd57806353135ca0146107dd578063592893b7146107f35780635b1ab77a1461081357600080fd5b8063406072a9116102e8578063406072a9146106f757806340f5db861461073d57806342842e0e1461075d578063447400bf1461077d57806348b750441461079d57600080fd5b806333d2d8dd1461068d578063347ed694146106ad5780633a98ef39146106cd5780633f4ba83a146106e257600080fd5b80631861cb3a1161039c57806325b840491161036b57806325b84049146105ed578063296cab551461060d5780632c99589b1461062d5780632f745c591461064d5780633112de9a1461066d57600080fd5b80631861cb3a1461057757806319165587146105975780631aa0d2fb146105b757806323b872dd146105cd57600080fd5b8063087224fb116103d8578063087224fb14610508578063095ea7b31461052c5780630ca03b1a1461054c57806318160ddd1461056257600080fd5b806301ffc9a71461045757806305846e381461048c57806306fdde03146104ae578063081812fc146104d057600080fd5b36610452577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561046357600080fd5b50610477610472366004613956565b610cf7565b60405190151581526020015b60405180910390f35b34801561049857600080fd5b506104ac6104a7366004613988565b610d22565b005b3480156104ba57600080fd5b506104c3610d77565b60405161048391906139fd565b3480156104dc57600080fd5b506104f06104eb366004613a10565b610e09565b6040516001600160a01b039091168152602001610483565b34801561051457600080fd5b5061051e60225481565b604051908152602001610483565b34801561053857600080fd5b506104ac610547366004613a29565b610e9e565b34801561055857600080fd5b5061051e610d0581565b34801561056e57600080fd5b5060085461051e565b34801561058357600080fd5b50610477610592366004613a10565b610fb4565b3480156105a357600080fd5b506104ac6105b2366004613988565b611116565b3480156105c357600080fd5b5061051e611a1081565b3480156105d957600080fd5b506104ac6105e8366004613a55565b611244565b3480156105f957600080fd5b50601c546104f0906001600160a01b031681565b34801561061957600080fd5b506104ac610628366004613a10565b611275565b34801561063957600080fd5b506104ac610648366004613a10565b6112a4565b34801561065957600080fd5b5061051e610668366004613a29565b6112d3565b34801561067957600080fd5b5061051e610688366004613a96565b611369565b34801561069957600080fd5b506104ac6106a8366004613a10565b6113df565b3480156106b957600080fd5b50601d546104f0906001600160a01b031681565b3480156106d957600080fd5b50600d5461051e565b3480156106ee57600080fd5b506104ac61140e565b34801561070357600080fd5b5061051e610712366004613ab8565b6001600160a01b03918216600090815260136020908152604080832093909416825291909152205490565b34801561074957600080fd5b50610477610758366004613a96565b611442565b34801561076957600080fd5b506104ac610778366004613a55565b61148f565b34801561078957600080fd5b506104ac610798366004613a96565b6114aa565b3480156107a957600080fd5b506104ac6107b8366004613ab8565b611821565b3480156107c957600080fd5b5061051e6107d8366004613a10565b611a09565b3480156107e957600080fd5b5061051e60235481565b3480156107ff57600080fd5b506104ac61080e366004613a10565b611a9c565b34801561081f57600080fd5b506104ac61082e366004613988565b611acb565b34801561083f57600080fd5b50600c5460ff16610477565b34801561085757600080fd5b506104f0610866366004613a10565b611b17565b34801561087757600080fd5b506104ac610886366004613988565b611b8e565b34801561089757600080fd5b5061051e6108a6366004613988565b611bda565b3480156108b757600080fd5b506104ac611c61565b6104ac6108ce366004613a10565b611c95565b3480156108df57600080fd5b5061051e60215481565b3480156108f557600080fd5b506104ac611dea565b34801561090a57600080fd5b506104ac611e1c565b34801561091f57600080fd5b5061047761092e366004613bb0565b611e9e565b34801561093f57600080fd5b506104f061094e366004613a10565b611f46565b34801561095f57600080fd5b506104ac61096e366004613a10565b611f76565b34801561097f57600080fd5b50600a546001600160a01b03166104f0565b34801561099d57600080fd5b506104c3611fa5565b3480156109b257600080fd5b5061051e611a0b81565b3480156109c857600080fd5b5061051e6109d7366004613988565b6001600160a01b031660009081526010602052604090205490565b3480156109fe57600080fd5b506104ac610a0d366004613988565b611fb4565b348015610a1e57600080fd5b506104ac610a2d366004613a10565b612000565b348015610a3e57600080fd5b506104ac610a4d366004613bf3565b61202f565b348015610a5e57600080fd5b5061051e60165481565b348015610a7457600080fd5b506104ac610a83366004613c21565b61203a565b348015610a9457600080fd5b506104ac610aa3366004613a10565b612072565b348015610ab457600080fd5b506104c3610ac3366004613a10565b6120a1565b348015610ad457600080fd5b50610477610ae3366004613a10565b60256020526000908152604090205460ff1681565b348015610b0457600080fd5b5061051e60195481565b348015610b1a57600080fd5b5061051e610b29366004613988565b6001600160a01b03166000908152600f602052604090205490565b348015610b5057600080fd5b5061051e60185481565b348015610b6657600080fd5b5061051e60175481565b348015610b7c57600080fd5b506104c361217c565b348015610b9157600080fd5b5061051e610ba0366004613988565b6001600160a01b031660009081526012602052604090205490565b348015610bc757600080fd5b50601e546104f0906001600160a01b031681565b348015610be757600080fd5b506104ac610bf6366004613c8d565b61220a565b348015610c0757600080fd5b50600e5461051e565b348015610c1c57600080fd5b50610477610c2b366004613ab8565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610c6557600080fd5b5061051e601a5481565b348015610c7b57600080fd5b506104ac610c8a366004613cd6565b612247565b348015610c9b57600080fd5b5061051e6122c0565b348015610cb057600080fd5b506104ac610cbf366004613988565b6122d0565b6104ac610cd2366004613cfb565b612368565b348015610ce357600080fd5b506104ac610cf2366004613a10565b612508565b60006001600160e01b0319821663780e9d6360e01b1480610d1c5750610d1c82612537565b92915050565b600a546001600160a01b03163314610d555760405162461bcd60e51b8152600401610d4c90613d42565b60405180910390fd5b601d80546001600160a01b0319166001600160a01b0392909216919091179055565b606060008054610d8690613d77565b80601f0160208091040260200160405190810160405280929190818152602001828054610db290613d77565b8015610dff5780601f10610dd457610100808354040283529160200191610dff565b820191906000526020600020905b815481529060010190602001808311610de257829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610e825760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d4c565b506000908152600460205260409020546001600160a01b031690565b6000610ea982611b17565b9050806001600160a01b0316836001600160a01b03161415610f175760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610d4c565b336001600160a01b0382161480610f335750610f338133610c2b565b610fa55760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d4c565b610faf8383612587565b505050565b601e54604051632cf01b5560e01b815233600482015260009182916001600160a01b0390911690632cf01b559060240160006040518083038186803b158015610ffc57600080fd5b505afa158015611010573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110389190810190613db2565b90506000805b825181101561107f578483828151811061105a5761105a613e58565b6020026020010151141561106d57600191505b8061107781613e84565b91505061103e565b50601c546040516331a9108f60e11b81526004810186905233916001600160a01b031690636352211e9060240160206040518083038186803b1580156110c457600080fd5b505afa1580156110d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110fc9190613e9f565b6001600160a01b0316148061110e5750805b949350505050565b6001600160a01b0381166000908152600f602052604090205461114b5760405162461bcd60e51b8152600401610d4c90613ebc565b6000611156600e5490565b6111609047613f02565b9050600061118d8383611188866001600160a01b031660009081526010602052604090205490565b6125f5565b9050806111ac5760405162461bcd60e51b8152600401610d4c90613f1a565b6001600160a01b038316600090815260106020526040812080548392906111d4908490613f02565b9250508190555080600e60008282546111ed9190613f02565b909155506111fd90508382612633565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b61124e338261274c565b61126a5760405162461bcd60e51b8152600401610d4c90613f65565b610faf83838361283f565b600a546001600160a01b0316331461129f5760405162461bcd60e51b8152600401610d4c90613d42565b602355565b600a546001600160a01b031633146112ce5760405162461bcd60e51b8152600401610d4c90613d42565b601655565b60006112de83611bda565b82106113405760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610d4c565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600081600314156113bc5760405162461bcd60e51b815260206004820152601d60248201527f4d5046433a2043616e27742063616c63756c617465204d3320696473210000006044820152606401610d4c565b81600214156113d8576113d183610d05613f02565b9050610d1c565b5081610d1c565b600a546001600160a01b031633146114095760405162461bcd60e51b8152600401610d4c90613d42565b602255565b600a546001600160a01b031633146114385760405162461bcd60e51b8152600401610d4c90613d42565b6114406129e6565b565b60008160031415611465575060008281526025602052604090205460ff16610d1c565b6113d16114728484611369565b6000908152600260205260409020546001600160a01b0316151590565b610faf8383836040518060200160405280600081525061203a565b6002600b5414156114fd5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d4c565b6002600b55600c5460ff16156115255760405162461bcd60e51b8152600401610d4c90613fb6565b6021544210156115775760405162461bcd60e51b815260206004820181905260248201527f4d5046433a204d75746174696f6e206469646e277420737461727420796574216044820152606401610d4c565b61158082610fb4565b6115f25760405162461bcd60e51b815260206004820152603760248201527f4d5046433a20596f7520646f6e2774206f776e2074686520707564677920796f60448201527f752061726520747279696e6720746f206d7574617465210000000000000000006064820152608401610d4c565b601d54604051627eeac760e11b8152336004820152602481018390526001916001600160a01b03169062fdd58e9060440160206040518083038186803b15801561163b57600080fd5b505afa15801561164f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116739190613fe0565b10156116d75760405162461bcd60e51b815260206004820152602d60248201527f4d5046433a20596f7520646f6e2774206861766520616e7920736572756d732060448201526c6f66207468697320747970652160981b6064820152608401610d4c565b6116e18282611442565b156117545760405162461bcd60e51b815260206004820152603f60248201527f4d5046433a20596f7520616c72656164792068617665206d757461746564207460448201527f6869732070756467792077697468207468697320736572756d207479706521006064820152608401610d4c565b6000816003141561179c57601f5461176e90611a0b613f02565b6000848152602560205260409020805460ff191660011790559050611797601f80546001019055565b6117a9565b6117a68383611369565b90505b601d54604051633504f62b60e01b8152600481018490523360248201526001600160a01b0390911690633504f62b90604401600060405180830381600087803b1580156117f557600080fd5b505af1158015611809573d6000803e3d6000fd5b505050506118173382612a79565b50506001600b5550565b6001600160a01b0381166000908152600f60205260409020546118565760405162461bcd60e51b8152600401610d4c90613ebc565b6001600160a01b0382166000908152601260205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b1580156118ae57600080fd5b505afa1580156118c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118e69190613fe0565b6118f09190613f02565b90506000611929838361118887876001600160a01b03918216600090815260136020908152604080832093909416825291909152205490565b9050806119485760405162461bcd60e51b8152600401610d4c90613f1a565b6001600160a01b0380851660009081526013602090815260408083209387168352929052908120805483929061197f908490613f02565b90915550506001600160a01b038416600090815260126020526040812080548392906119ac908490613f02565b909155506119bd9050848483612a93565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b6000611a1460085490565b8210611a775760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610d4c565b60088281548110611a8a57611a8a613e58565b90600052602060002001549050919050565b600a546001600160a01b03163314611ac65760405162461bcd60e51b8152600401610d4c90613d42565b602155565b600a546001600160a01b03163314611af55760405162461bcd60e51b8152600401610d4c90613d42565b601c80546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600260205260408120546001600160a01b031680610d1c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610d4c565b600a546001600160a01b03163314611bb85760405162461bcd60e51b8152600401610d4c90613d42565b602480546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216611c455760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610d4c565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314611c8b5760405162461bcd60e51b8152600401610d4c90613d42565b6114406000612ae5565b80601a54811115611cb85760405162461bcd60e51b8152600401610d4c90613ff9565b333214611cfc5760405162461bcd60e51b81526020600482015260126024820152714d5046433a204d7573742075736520454f4160701b6044820152606401610d4c565b611d0f81611d0960205490565b90612b37565b601954601654611d1e91612b43565b1015611d3c5760405162461bcd60e51b8152600401610d4c9061404b565b600c5460ff1615611d5f5760405162461bcd60e51b8152600401610d4c90613fb6565b602254421015611db15760405162461bcd60e51b815260206004820181905260248201527f4d5046433a204d61696e73616c65206469646e277420737461727420796574216044820152606401610d4c565b601754611dbe9083612b4f565b341015611ddd5760405162461bcd60e51b8152600401610d4c90614091565b611de682612b5b565b5050565b600a546001600160a01b03163314611e145760405162461bcd60e51b8152600401610d4c90613d42565b611440612baa565b600a546001600160a01b03163314611e465760405162461bcd60e51b8152600401610d4c90613d42565b60005b601554811015611e9b57600060158281548110611e6857611e68613e58565b6000918252602090912001546001600160a01b03169050611e8881611116565b5080611e9381613e84565b915050611e49565b50565b604080516bffffffffffffffffffffffff193360601b16602080830191909152825180830360140181526034830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000060548401526070808401829052845180850390910181526090909301909352815191012060245460009291906001600160a01b0316611f348286612c02565b6001600160a01b031614949350505050565b600060118281548110611f5b57611f5b613e58565b6000918252602090912001546001600160a01b031692915050565b600a546001600160a01b03163314611fa05760405162461bcd60e51b8152600401610d4c90613d42565b601755565b606060018054610d8690613d77565b600a546001600160a01b03163314611fde5760405162461bcd60e51b8152600401610d4c90613d42565b601e80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b0316331461202a5760405162461bcd60e51b8152600401610d4c90613d42565b601955565b611de6338383612c26565b612044338361274c565b6120605760405162461bcd60e51b8152600401610d4c90613f65565b61206c84848484612cf5565b50505050565b600a546001600160a01b0316331461209c5760405162461bcd60e51b8152600401610d4c90613d42565b601a55565b6000818152600260205260409020546060906001600160a01b03166121205760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610d4c565b600061212a612d28565b9050600081511161214a5760405180602001604052806000815250612175565b8061215484612d37565b6040516020016121659291906140ee565b6040516020818303038152906040525b9392505050565b601b805461218990613d77565b80601f01602080910402602001604051908101604052809291908181526020018280546121b590613d77565b80156122025780601f106121d757610100808354040283529160200191612202565b820191906000526020600020905b8154815290600101906020018083116121e557829003601f168201915b505050505081565b600a546001600160a01b031633146122345760405162461bcd60e51b8152600401610d4c90613d42565b8051611de690601b9060208401906138a7565b600a546001600160a01b031633146122715760405162461bcd60e51b8152600401610d4c90613d42565b60005b82811015610faf57600061228760205490565b61229390611a10613f02565b90506122a3602080546001019055565b6122ad8382612a79565b50806122b881613e84565b915050612274565b60006122cb60205490565b905090565b600a546001600160a01b031633146122fa5760405162461bcd60e51b8152600401610d4c90613d42565b6001600160a01b03811661235f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d4c565b611e9b81612ae5565b81601a5481111561238b5760405162461bcd60e51b8152600401610d4c90613ff9565b3332146123cf5760405162461bcd60e51b81526020600482015260126024820152714d5046433a204d7573742075736520454f4160701b6044820152606401610d4c565b6123dc81611d0960205490565b6019546016546123eb91612b43565b10156124095760405162461bcd60e51b8152600401610d4c9061404b565b600c5460ff161561242c5760405162461bcd60e51b8152600401610d4c90613fb6565b60235442101561247e5760405162461bcd60e51b815260206004820152601f60248201527f4d5046433a2050726573616c65206469646e27742073746172742079657421006044820152606401610d4c565b61248782611e9e565b6124d35760405162461bcd60e51b815260206004820152601d60248201527f4d5046433a20596f75206172656e27742077686974656c6973746564210000006044820152606401610d4c565b6018546124e09084612b4f565b3410156124ff5760405162461bcd60e51b8152600401610d4c90614091565b610faf83612b5b565b600a546001600160a01b031633146125325760405162461bcd60e51b8152600401610d4c90613d42565b601855565b60006001600160e01b031982166380ac58cd60e01b148061256857506001600160e01b03198216635b5e139f60e01b145b80610d1c57506301ffc9a760e01b6001600160e01b0319831614610d1c565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906125bc82611b17565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600d546001600160a01b0384166000908152600f60205260408120549091839161261f908661411d565b6126299190614152565b61110e9190614166565b804710156126835760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610d4c565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146126d0576040519150601f19603f3d011682016040523d82523d6000602084013e6126d5565b606091505b5050905080610faf5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610d4c565b6000818152600260205260408120546001600160a01b03166127c55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d4c565b60006127d083611b17565b9050806001600160a01b0316846001600160a01b0316148061280b5750836001600160a01b031661280084610e09565b6001600160a01b0316145b8061110e57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff1661110e565b826001600160a01b031661285282611b17565b6001600160a01b0316146128b65760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610d4c565b6001600160a01b0382166129185760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610d4c565b612923838383612e35565b61292e600082612587565b6001600160a01b0383166000908152600360205260408120805460019290612957908490614166565b90915550506001600160a01b0382166000908152600360205260408120805460019290612985908490613f02565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600c5460ff16612a2f5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610d4c565b600c805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b611de6828260405180602001604052806000815250612eed565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610faf908490612f20565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006121758284613f02565b60006121758284614166565b6000612175828461411d565b60005b81811015611de6576000612b7160205490565b612b7d90611a10613f02565b9050612b8d602080546001019055565b612b973382612a79565b5080612ba281613e84565b915050612b5e565b600c5460ff1615612bcd5760405162461bcd60e51b8152600401610d4c90613fb6565b600c805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612a5c3390565b6000806000612c118585612ff2565b91509150612c1e81613062565b509392505050565b816001600160a01b0316836001600160a01b03161415612c885760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d4c565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612d0084848461283f565b612d0c8484848461321d565b61206c5760405162461bcd60e51b8152600401610d4c9061417d565b6060601b8054610d8690613d77565b606081612d5b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612d855780612d6f81613e84565b9150612d7e9050600a83614152565b9150612d5f565b60008167ffffffffffffffff811115612da057612da0613af1565b6040519080825280601f01601f191660200182016040528015612dca576020820181803683370190505b5090505b841561110e57612ddf600183614166565b9150612dec600a866141cf565b612df7906030613f02565b60f81b818381518110612e0c57612e0c613e58565b60200101906001600160f81b031916908160001a905350612e2e600a86614152565b9450612dce565b6001600160a01b038316612e9057612e8b81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612eb3565b816001600160a01b0316836001600160a01b031614612eb357612eb3838261332a565b6001600160a01b038216612eca57610faf816133c7565b826001600160a01b0316826001600160a01b031614610faf57610faf8282613476565b612ef783836134ba565b612f04600084848461321d565b610faf5760405162461bcd60e51b8152600401610d4c9061417d565b6000612f75826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166136089092919063ffffffff16565b805190915015610faf5780806020019051810190612f9391906141e3565b610faf5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610d4c565b6000808251604114156130295760208301516040840151606085015160001a61301d87828585613617565b9450945050505061305b565b8251604014156130535760208301516040840151613048868383613704565b93509350505061305b565b506000905060025b9250929050565b600081600481111561307657613076614200565b141561307f5750565b600181600481111561309357613093614200565b14156130e15760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d4c565b60028160048111156130f5576130f5614200565b14156131435760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d4c565b600381600481111561315757613157614200565b14156131b05760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610d4c565b60048160048111156131c4576131c4614200565b1415611e9b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610d4c565b60006001600160a01b0384163b1561331f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613261903390899088908890600401614216565b602060405180830381600087803b15801561327b57600080fd5b505af19250505080156132ab575060408051601f3d908101601f191682019092526132a891810190614253565b60015b613305573d8080156132d9576040519150601f19603f3d011682016040523d82523d6000602084013e6132de565b606091505b5080516132fd5760405162461bcd60e51b8152600401610d4c9061417d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061110e565b506001949350505050565b6000600161333784611bda565b6133419190614166565b600083815260076020526040902054909150808214613394576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906133d990600190614166565b6000838152600960205260408120546008805493945090928490811061340157613401613e58565b90600052602060002001549050806008838154811061342257613422613e58565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061345a5761345a614270565b6001900381819060005260206000200160009055905550505050565b600061348183611bda565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166135105760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d4c565b6000818152600260205260409020546001600160a01b0316156135755760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d4c565b61358160008383612e35565b6001600160a01b03821660009081526003602052604081208054600192906135aa908490613f02565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606061110e848460008561373d565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561364e57506000905060036136fb565b8460ff16601b1415801561366657508460ff16601c14155b1561367757506000905060046136fb565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156136cb573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166136f4576000600192509250506136fb565b9150600090505b94509492505050565b6000806001600160ff1b0383168161372160ff86901c601b613f02565b905061372f87828885613617565b935093505050935093915050565b60608247101561379e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610d4c565b6001600160a01b0385163b6137f55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610d4c565b600080866001600160a01b031685876040516138119190614286565b60006040518083038185875af1925050503d806000811461384e576040519150601f19603f3d011682016040523d82523d6000602084013e613853565b606091505b509150915061386382828661386e565b979650505050505050565b6060831561387d575081612175565b82511561388d5782518084602001fd5b8160405162461bcd60e51b8152600401610d4c91906139fd565b8280546138b390613d77565b90600052602060002090601f0160209004810192826138d5576000855561391b565b82601f106138ee57805160ff191683800117855561391b565b8280016001018555821561391b579182015b8281111561391b578251825591602001919060010190613900565b5061392792915061392b565b5090565b5b80821115613927576000815560010161392c565b6001600160e01b031981168114611e9b57600080fd5b60006020828403121561396857600080fd5b813561217581613940565b6001600160a01b0381168114611e9b57600080fd5b60006020828403121561399a57600080fd5b813561217581613973565b60005b838110156139c05781810151838201526020016139a8565b8381111561206c5750506000910152565b600081518084526139e98160208601602086016139a5565b601f01601f19169290920160200192915050565b60208152600061217560208301846139d1565b600060208284031215613a2257600080fd5b5035919050565b60008060408385031215613a3c57600080fd5b8235613a4781613973565b946020939093013593505050565b600080600060608486031215613a6a57600080fd5b8335613a7581613973565b92506020840135613a8581613973565b929592945050506040919091013590565b60008060408385031215613aa957600080fd5b50508035926020909101359150565b60008060408385031215613acb57600080fd5b8235613ad681613973565b91506020830135613ae681613973565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613b3057613b30613af1565b604052919050565b600067ffffffffffffffff831115613b5257613b52613af1565b613b65601f8401601f1916602001613b07565b9050828152838383011115613b7957600080fd5b828260208301376000602084830101529392505050565b600082601f830112613ba157600080fd5b61217583833560208501613b38565b600060208284031215613bc257600080fd5b813567ffffffffffffffff811115613bd957600080fd5b61110e84828501613b90565b8015158114611e9b57600080fd5b60008060408385031215613c0657600080fd5b8235613c1181613973565b91506020830135613ae681613be5565b60008060008060808587031215613c3757600080fd5b8435613c4281613973565b93506020850135613c5281613973565b925060408501359150606085013567ffffffffffffffff811115613c7557600080fd5b613c8187828801613b90565b91505092959194509250565b600060208284031215613c9f57600080fd5b813567ffffffffffffffff811115613cb657600080fd5b8201601f81018413613cc757600080fd5b61110e84823560208401613b38565b60008060408385031215613ce957600080fd5b823591506020830135613ae681613973565b60008060408385031215613d0e57600080fd5b82359150602083013567ffffffffffffffff811115613d2c57600080fd5b613d3885828601613b90565b9150509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680613d8b57607f821691505b60208210811415613dac57634e487b7160e01b600052602260045260246000fd5b50919050565b60006020808385031215613dc557600080fd5b825167ffffffffffffffff80821115613ddd57600080fd5b818501915085601f830112613df157600080fd5b815181811115613e0357613e03613af1565b8060051b9150613e14848301613b07565b8181529183018401918481019088841115613e2e57600080fd5b938501935b83851015613e4c57845182529385019390850190613e33565b98975050505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415613e9857613e98613e6e565b5060010190565b600060208284031215613eb157600080fd5b815161217581613973565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b60008219821115613f1557613f15613e6e565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b600060208284031215613ff257600080fd5b5051919050565b60208082526032908201527f4d5046433a20596f752063616e277420627579206d6f7265207468616e203130604082015271302070756467696573206174206f6e63652160701b606082015260800190565b60208082526026908201527f4d5046433a204d696e74696e6720776f756c6420657863656564206d617820736040820152657570706c792160d01b606082015260800190565b6020808252603c908201527f4d5046433a20596f7520646f6e2774206861766520656e6f756768204554482060408201527f746f206d696e7420796f7572204d7574616e7420507564676965732100000000606082015260800190565b600083516141008184602088016139a5565b8351908301906141148183602088016139a5565b01949350505050565b600081600019048311821515161561413757614137613e6e565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826141615761416161413c565b500490565b60008282101561417857614178613e6e565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826141de576141de61413c565b500690565b6000602082840312156141f557600080fd5b815161217581613be5565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614249908301846139d1565b9695505050505050565b60006020828403121561426557600080fd5b815161217581613940565b634e487b7160e01b600052603160045260246000fd5b600082516142988184602087016139a5565b919091019291505056fea26469706673582212207da4e6ffddf9749fd17cf9c6db3d7b933ca3af52dcf87f761d7ea301924f93b064736f6c63430008090033

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

0000000000000000000000000f9aba9fa6abd858a94f9eefe0f9d51ca2c11225000000000000000000000000c35b30df124e863ff3241c1839904211e678e67a0000000000000000000000007e0f95f7b98d4d367ac076e10128798d4754a5e30000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000005568747470733a2f2f7075646779617065732e6d7970696e6174612e636c6f75642f697066732f516d596a5369354b7773344e554b445742665a52645069434c6f7259594b6144637072386572767357594857316b2f0000000000000000000000

-----Decoded View---------------
Arg [0] : _pafc (address): 0x0f9ABa9fA6aBd858a94f9EEfE0F9D51ca2C11225
Arg [1] : _ps (address): 0xC35b30dF124e863ff3241c1839904211E678E67a
Arg [2] : _fridge (address): 0x7E0f95f7B98d4d367aC076e10128798D4754a5e3
Arg [3] : _baseTokenURI (string): https://pudgyapes.mypinata.cloud/ipfs/QmYjSi5Kws4NUKDWBfZRdPiCLorYYKaDcpr8ervsWYHW1k/

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000f9aba9fa6abd858a94f9eefe0f9d51ca2c11225
Arg [1] : 000000000000000000000000c35b30df124e863ff3241c1839904211e678e67a
Arg [2] : 0000000000000000000000007e0f95f7b98d4d367ac076e10128798d4754a5e3
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000055
Arg [5] : 68747470733a2f2f7075646779617065732e6d7970696e6174612e636c6f7564
Arg [6] : 2f697066732f516d596a5369354b7773344e554b445742665a52645069434c6f
Arg [7] : 7259594b6144637072386572767357594857316b2f0000000000000000000000


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.