ETH Price: $2,501.51 (-5.05%)

LilPudgys (LP)
 

Overview

TokenID

21775

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Lil Pudgys are a collection of 22,222 randomly generated NFTs minted on the Ethereum blockchain. The first 8888 Lil Pudgys were reserved for Pudgy Penguin holders.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
LilPudgys

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 2000 runs

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

import "./ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./PudgyPenguinsInterface.sol";
import "./WithdrawFairly.sol";

// @author: miinded.com

////////////////////////////////////////////////////////////////
//                                                            //
//                                                            //
//                                                            //
//                                                            //
//                                                            //
//                                                            //
//                                                            //
//                                                            //
//                                                            //
//                                                            //
//                                                            //
//                                                            //
//                         =-:*=.                             //
//                         #@@@@@@*:                          //
//                      .+%@@@@@@@@@@*:                       //
//                     -@@@@@@@@@@@@@@@*                      //
//                    -@@@@@@@@@@@@@@@@@#                     //
//                    @@@@@@@@@@@@@@@@@@@:                    //
//                    @@@@@@@@@@@@@@@@@@@=                    //
//                  :#@@@@@@@@@@@@@@@@@@@@*.                  //
//                 *@@@@@@@@@@@@@@@@@@@@@@@@=                 //
//                #@@@@@@@@@@@@@@@@@@@@@@@@@@+                //
//               =@@@@@@@@@@@@@@@@@@@@@@@@@@@@.               //
//               #@##@@@@@@@@@@@@@@@@@@@@@%+#@=               //
//               =:  *@@@@@@@@@@@@@@@@@@@@.  =:               //
//                    #@@@@@@@@@@@@@@@@@@:                    //
//                     -%@@@@@@@@@@@@@@*                      //
//                       *@@@@@@@@@@@*                        //
//                      #@@@@@*:#@@@@%#                       //
////////////////////////////////////////////////////////////////

contract LilPudgys is ERC721, Ownable, WithdrawFairly, ReentrancyGuard {

    uint16 private _tokenIdTrackerReserve;
    uint16 private _tokenIdTrackerAuction;
    uint16 private _tokenIdTracker;
    uint16 private _burnedTracker;

    struct Dutch{
        uint256 start;
        uint256 duration;
        uint256 startPrice;
        uint256 endPrice;
    }

    uint256 public constant MAX_ELEMENTS = 22222; //  MAX_RESERVE + MAX_CLAIM + MAX_AUCTION
    uint256 public constant MAX_CLAIM = 8888;
    uint256 public constant MAX_RESERVE = 300;
    uint256 public constant MAX_AUCTION = MAX_ELEMENTS - MAX_CLAIM - MAX_RESERVE;
    uint256 public constant MAX_BY_MINT = 20;
    uint256 public constant MAX_BY_CLAIM = 20;

    Dutch public dutch;
    bool public paused = false;
    string public baseTokenURI;
    PudgyPenguinsInterface public pudgyPenguins;
    mapping (uint256 => bool) private _pudgyPenguinsUsed;

    event MintLilPudgy(uint256 indexed id);

    constructor(string memory baseURI, address _pudgyPenguins) ERC721("LilPudgys", "LP") {
        setBaseURI(baseURI);
        setPudgyPenguins(_pudgyPenguins);
        setDutch(Dutch(1639947600, 2 hours, 0.3 ether, 0.03 ether));
    }

    //******************************************************//
    //                     Modifier                         //
    //******************************************************//
    modifier claimIsOpen {
        require(claimIsStarted(),"Dutch not ended");
        require(!paused, "Pausable: paused");
        _;
    }
    modifier saleIsOpen {
        require(dutchIsStarted(), "Dutch not started");
        require(!paused, "Pausable: paused");
        _;
    }
    //******************************************************//
    //                     Mint                             //
    //******************************************************//
    function mint(uint256 _count) public payable saleIsOpen nonReentrant{

        require(_tokenIdTrackerAuction + _count <= MAX_AUCTION, "Sold Out!");
        require(_count <= MAX_BY_MINT, "Exceeds number");
        require(msg.value >= price(_count), "Value below price");

        for (uint256 i = 0; i < _count; i++) {
            _mintToken(_msgSender(), MAX_CLAIM + MAX_RESERVE + _tokenIdTrackerAuction);
            _tokenIdTrackerAuction += 1;
        }
    }
    function claim(uint256[] memory _tokensId) public claimIsOpen {

        require(_tokensId.length <= MAX_BY_CLAIM, "Exceeds number");

        for (uint256 i = 0; i < _tokensId.length; i++) {
            require(canClaim(_tokensId[i]) && pudgyPenguins.ownerOf(_tokensId[i]) == _msgSender(), "Bad owner!");
            _pudgyPenguinsUsed[_tokensId[i]] = true;

            _mintToken(_msgSender(), _tokensId[i]);
        }
    }
    function canClaim(uint256 _tokenId) public view returns(bool) {
        return _pudgyPenguinsUsed[_tokenId] == false;
    }
    function _mintToken(address _to, uint256 id) private {
        _tokenIdTracker += 1;
        _safeMint(_to, id);
        emit MintLilPudgy(id);
    }
    function reserve(uint256 _count) public onlyOwner {
        require(_tokenIdTrackerReserve + _count <= MAX_RESERVE, "Exceeded giveaways.");
        for (uint256 i = 0; i < _count; i++) {
            _mintToken(_msgSender(), MAX_CLAIM + _tokenIdTrackerReserve);
            _tokenIdTrackerReserve += 1;
        }
    }

    //******************************************************//
    //                      Dutch                           //
    //******************************************************//
    function claimIsStarted() public view returns(bool){
        return getMintPrice(0) == dutch.endPrice;
    }
    function dutchIsStarted() public view returns(bool){
        return block.timestamp >= dutch.start;
    }
    function getMintPrice(uint256 _timestamp) public view returns (uint256) {

        if (!dutchIsStarted()){
            return dutch.startPrice;
        }

        _timestamp = _timestamp == 0 ? block.timestamp : _timestamp;
        uint256 duration = _timestamp - dutch.start;

        if(duration >= dutch.duration){
            return dutch.endPrice;
        }

        uint256 currentPrice = dutch.startPrice - ((((duration * 100000) / dutch.duration) * (dutch.startPrice - dutch.endPrice)) / 100000);
        return  currentPrice > dutch.endPrice ? currentPrice : dutch.endPrice;
    }

    //******************************************************//
    //                      Getters                         //
    //******************************************************//
    function totalSupply() public view returns(uint256){
        return _tokenIdTracker - _burnedTracker;
    }
    function price(uint256 _count) public view returns (uint256) {
        return getMintPrice(0) * _count;
    }
    function _baseURI() internal view virtual override returns (string memory) {
        return baseTokenURI;
    }
    function walletOfOwner(address _owner) external view returns (uint256[] memory) {
        uint256 tokenCount = balanceOf(_owner);
        uint256[] memory tokensId = new uint256[](tokenCount);

        if(tokenCount == 0){
            return tokensId;
        }

        uint256 key = 0;
        for (uint256 i = 0; i < MAX_ELEMENTS; i++) {
            if(rawOwnerOf(i) == _owner){
                tokensId[key] = i;
                key++;
                if(key == tokenCount){break;}
            }
        }

        return tokensId;
    }
    function setPause(bool _toggle) public onlyOwner {
        paused = _toggle;
    }

    //******************************************************//
    //                      Setters                         //
    //******************************************************//
    function setPudgyPenguins(address _pudgyPenguins) public onlyOwner {
        pudgyPenguins = PudgyPenguinsInterface(_pudgyPenguins);
    }
    function setBaseURI(string memory baseURI) public onlyOwner {
        baseTokenURI = baseURI;
    }
    function setDutch(Dutch memory _dutch) public onlyOwner {
        dutch = _dutch;
    }

    //******************************************************//
    //                      Burn                            //
    //******************************************************//
    function burn(uint256 _tokenId) public virtual {
        require(_isApprovedOrOwner(_msgSender(), _tokenId), "Not owner nor approved");
        _burnedTracker += 1;
        _burn(_tokenId);
    }
}

File 2 of 16 : WithdrawFairly.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

contract WithdrawFairly is Ownable {
    using SafeMath for uint256;

    struct Part {
        address salesWallet;
        address royaltiesWallet;
        uint256 salePart;
        uint256 royaltiesPart;
    }

    Part[] public parts;
    address[] public tokenAddress;

    constructor(){
        parts.push(Part(0xb224811F71c803af1762CC6AEfd995edbfAFBD42, 0x647b14eC32Cd079D4156241c990Cc73540FFad5b, 2000, 3500)); // miinded
        parts.push(Part(0xAA3F3ed871aB321002d823D466D6E2d5e05E4aB2, 0xAA3F3ed871aB321002d823D466D6E2d5e05E4aB2, 2000, 1625)); // pudgy 1
        parts.push(Part(0x70031E2B0F221da3b72b305292219d7DCD1300Df, 0x70031E2B0F221da3b72b305292219d7DCD1300Df, 2000, 1625)); // pudgy 2
        parts.push(Part(0x462A7C08f7f6Dd914F913CD82b4d5f16D1aa350c, 0x462A7C08f7f6Dd914F913CD82b4d5f16D1aa350c, 2000, 1625)); // pudgy 3
        parts.push(Part(0xFe5573C66273313034F7fF6050c54b5402553716, 0xFe5573C66273313034F7fF6050c54b5402553716, 2000, 1625)); // pudgy 4

        tokenAddress.push(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48); // USDC
        tokenAddress.push(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2); // WETH
        tokenAddress.push(0x6B175474E89094C44Da98b954EedeAC495271d0F); // DAI
    }

    function withdrawSalesPart() public onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0, "Sales Balance = 0");

        for(uint8 i = 0; i < parts.length; i++){
            if(parts[i].salePart > 0){
                _withdraw(parts[i].salesWallet, balance.mul(parts[i].salePart).div(10000));
            }
        }

        _withdraw(owner(), address(this).balance);
    }

    function withdrawRoyalties() public onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0, "Contract Balance = 0");

        for(uint8 i = 0; i < parts.length; i++){
            if(parts[i].royaltiesPart > 0){
                _withdraw(parts[i].royaltiesWallet, balance.mul(parts[i].royaltiesPart).div(10000));
            }
        }

        _withdraw(owner(), address(this).balance);
    }

    function _withdraw(address _address, uint256 _amount) private {
        (bool success, ) = _address.call{value: _amount}("");
        require(success, "Transfer failed.");
    }

    function withdrawRoyaltiesTokens() public onlyOwner {
        for(uint256 j = 0; j < tokenAddress.length; j++){
            if(tokenAddress[j] == address(0)){
                continue;
            }
            uint256 balance = IERC20(tokenAddress[j]).balanceOf(address(this));
            for(uint256 i = 0; i < parts.length; i++){
                if(parts[i].royaltiesPart > 0 && balance > 0){
                    IERC20(tokenAddress[j]).transfer(parts[i].royaltiesWallet, balance.mul(parts[i].royaltiesPart).div(10000));
                }
            }
        }
    }

    function addERC20Address(address _contract) public onlyOwner{
        tokenAddress.push(_contract);
    }
    function removeERC20Address(address _contract) public onlyOwner{
        for(uint256 i = 0; i < tokenAddress.length;i++){
            if(tokenAddress[i] == _contract){
                tokenAddress[i] = address(0);
            }
        }
    }

    receive() external payable {}

}

File 3 of 16 : PudgyPenguinsInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

interface PudgyPenguinsInterface is IERC721{
    function walletOfOwner(address _owner) external view returns (uint256[] memory);
}

File 4 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/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 Edit for rawOwnerOf token
     */
    function rawOwnerOf(uint256 tokenId) public view returns (address) {
        return _owners[tokenId];
    }

    /**
     * @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 {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_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);
    }

    /**
     * @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);
        address to = address(0);

        _beforeTokenTransfer(owner, to, tokenId);

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

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

        emit Transfer(owner, to, 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 of token that is not own");
        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);
    }

    /**
     * @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 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(to).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 {}
}

File 5 of 16 : 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 16 : 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 7 of 16 : 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 8 of 16 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 9 of 16 : 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 10 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 16 : 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 12 of 16 : 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 13 of 16 : 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 14 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 15 of 16 : 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 16 of 16 : 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);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"address","name":"_pudgyPenguins","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"MintLilPudgy","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":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"},{"inputs":[],"name":"MAX_AUCTION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_BY_CLAIM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_BY_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_CLAIM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ELEMENTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_RESERVE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"addERC20Address","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"canClaim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokensId","type":"uint256[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimIsStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dutch","outputs":[{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"startPrice","type":"uint256"},{"internalType":"uint256","name":"endPrice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dutchIsStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"getMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint256","name":"_count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"parts","outputs":[{"internalType":"address","name":"salesWallet","type":"address"},{"internalType":"address","name":"royaltiesWallet","type":"address"},{"internalType":"uint256","name":"salePart","type":"uint256"},{"internalType":"uint256","name":"royaltiesPart","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pudgyPenguins","outputs":[{"internalType":"contract PudgyPenguinsInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"rawOwnerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"removeERC20Address","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","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":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"startPrice","type":"uint256"},{"internalType":"uint256","name":"endPrice","type":"uint256"}],"internalType":"struct LilPudgys.Dutch","name":"_dutch","type":"tuple"}],"name":"setDutch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_toggle","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pudgyPenguins","type":"address"}],"name":"setPudgyPenguins","outputs":[],"stateMutability":"nonpayable","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":"","type":"uint256"}],"name":"tokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawRoyaltiesTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawSalesPart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052600f805460ff191690553480156200001b57600080fd5b50604051620043d1380380620043d18339810160408190526200003e9162000994565b60408051808201825260098152684c696c50756467797360b81b60208083019182528351808501909452600284526104c560f41b9084015281519192916200008991600091620008bb565b5080516200009f906001906020840190620008bb565b505050620000bc620000b66200072760201b60201c565b6200072b565b6007604051806080016040528073b224811f71c803af1762cc6aefd995edbfafbd426001600160a01b0316815260200173647b14ec32cd079d4156241c990cc73540ffad5b6001600160a01b031681526020016107d08152602001610dac815250908060018154018082558091505060019003906000526020600020906004020160009091909190915060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160010160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550604082015181600201556060820151816003015550506007604051806080016040528073aa3f3ed871ab321002d823d466d6e2d5e05e4ab26001600160a01b0316815260200173aa3f3ed871ab321002d823d466d6e2d5e05e4ab26001600160a01b031681526020016107d08152602001610659815250908060018154018082558091505060019003906000526020600020906004020160009091909190915060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160010160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060408201518160020155606082015181600301555050600760405180608001604052807370031e2b0f221da3b72b305292219d7dcd1300df6001600160a01b031681526020017370031e2b0f221da3b72b305292219d7dcd1300df6001600160a01b031681526020016107d08152602001610659815250908060018154018082558091505060019003906000526020600020906004020160009091909190915060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160010160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550604082015181600201556060820151816003015550506007604051806080016040528073462a7c08f7f6dd914f913cd82b4d5f16d1aa350c6001600160a01b0316815260200173462a7c08f7f6dd914f913cd82b4d5f16d1aa350c6001600160a01b031681526020016107d08152602001610659815250908060018154018082558091505060019003906000526020600020906004020160009091909190915060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160010160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550604082015181600201556060820151816003015550506007604051806080016040528073fe5573c66273313034f7ff6050c54b54025537166001600160a01b0316815260200173fe5573c66273313034f7ff6050c54b54025537166001600160a01b031681526020016107d08152602001610659815250908060018154018082558091505060019003906000526020600020906004020160009091909190915060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160010160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060408201518160020155606082015181600301555050600873a0b86991c6218b36c1d19d4a2e9eb0ce3606eb489080600181540180825580915050600190039060005260206000200160009091909190916101000a8154816001600160a01b0302191690836001600160a01b03160217905550600873c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29080600181540180825580915050600190039060005260206000200160009091909190916101000a8154816001600160a01b0302191690836001600160a01b031602179055506008736b175474e89094c44da98b954eedeac495271d0f9080600181540180825580915050600190039060005260206000200160009091909190916101000a8154816001600160a01b0302191690836001600160a01b031602179055506001600981905550620006ce826200077d60201b60201c565b620006d981620007e5565b6200071f60405180608001604052806361bf9d508152602001611c208152602001670429d069189e00008152602001666a94d74f4300008152506200085260201b60201c565b505062000ac2565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6006546001600160a01b03163314620007cc5760405162461bcd60e51b81526020600482018190526024820152600080516020620043b183398151915260448201526064015b60405180910390fd5b8051620007e1906010906020840190620008bb565b5050565b6006546001600160a01b03163314620008305760405162461bcd60e51b81526020600482018190526024820152600080516020620043b18339815191526044820152606401620007c3565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031633146200089d5760405162461bcd60e51b81526020600482018190526024820152600080516020620043b18339815191526044820152606401620007c3565b8051600b556020810151600c556040810151600d5560600151600e55565b828054620008c99062000a85565b90600052602060002090601f016020900481019282620008ed576000855562000938565b82601f106200090857805160ff191683800117855562000938565b8280016001018555821562000938579182015b82811115620009385782518255916020019190600101906200091b565b50620009469291506200094a565b5090565b5b808211156200094657600081556001016200094b565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200098f57600080fd5b919050565b60008060408385031215620009a857600080fd5b82516001600160401b0380821115620009c057600080fd5b818501915085601f830112620009d557600080fd5b815181811115620009ea57620009ea62000961565b604051601f8201601f19908116603f0116810190838211818310171562000a155762000a1562000961565b8160405282815260209350888484870101111562000a3257600080fd5b600091505b8282101562000a56578482018401518183018501529083019062000a37565b8282111562000a685760008484830101525b955062000a7a91505085820162000977565b925050509250929050565b600181811c9082168062000a9a57607f821691505b6020821081141562000abc57634e487b7160e01b600052602260045260246000fd5b50919050565b6138df8062000ad26000396000f3fe6080604052600436106103225760003560e01c806370a08231116101a5578063a0712d68116100ec578063c9eb466211610095578063e985e9c51161006f578063e985e9c5146108db578063eff31e9e14610924578063f2fde38b1461093a578063fa3817561461095a57600080fd5b8063c9eb466214610866578063cc0bbb6f146108b1578063d547cfb7146108c657600080fd5b8063bedb86fb116100c6578063bedb86fb146107f5578063c87b56dd14610815578063c95c0d891461083557600080fd5b8063a0712d68146107a2578063a22cb465146107b5578063b88d4fde146107d557600080fd5b80638ddfec381161014e57806395d89b411161012857806395d89b411461074d5780639db4b20b146107625780639e6b26ba1461078257600080fd5b80638ddfec38146107155780639284d73f146106e257806395a4b24e1461072d57600080fd5b8063819b25ba1161017f578063819b25ba146106c25780638ad5de28146106e25780638da5cb5b146106f757600080fd5b806370a0823114610657578063715018a6146106775780637f81be691461068c57600080fd5b80633502a71611610269578063559e775b116102125780635c975abb116101ec5780635c975abb146105fd5780636352211e146106175780636ba4c1381461063757600080fd5b8063559e775b1461059d57806355f804b3146105bd57806357087812146105dd57600080fd5b806342966c681161024357806342966c6814610530578063438b6300146105505780634f6c998c1461057d57600080fd5b80633502a716146104e55780633681ec90146104fb57806342842e0e1461051057600080fd5b80631b332351116102cb578063257cb365116102a5578063257cb3651461049057806326a49e37146104b0578063339a75bf146104d057600080fd5b80631b3323511461041857806321c34fcb1461045b57806323b872dd1461047057600080fd5b8063081812fc116102fc578063081812fc146103a9578063095ea7b3146103e157806318160ddd1461040357600080fd5b806301b65b711461032e57806301ffc9a71461035757806306fdde031461038757600080fd5b3661032957005b600080fd5b34801561033a57600080fd5b506103446122b881565b6040519081526020015b60405180910390f35b34801561036357600080fd5b506103776103723660046131d6565b61096f565b604051901515815260200161034e565b34801561039357600080fd5b5061039c610a54565b60405161034e919061324b565b3480156103b557600080fd5b506103c96103c436600461325e565b610ae6565b6040516001600160a01b03909116815260200161034e565b3480156103ed57600080fd5b506104016103fc36600461328c565b610b91565b005b34801561040f57600080fd5b50610344610cc3565b34801561042457600080fd5b50600b54600c54600d54600e5461043b9392919084565b60408051948552602085019390935291830152606082015260800161034e565b34801561046757600080fd5b50610401610cf4565b34801561047c57600080fd5b5061040161048b3660046132b8565b610e96565b34801561049c57600080fd5b506104016104ab366004613340565b610f1e565b3480156104bc57600080fd5b506103446104cb36600461325e565b610f96565b3480156104dc57600080fd5b50610401610fad565b3480156104f157600080fd5b506103446156ce81565b34801561050757600080fd5b50610344611125565b34801561051c57600080fd5b5061040161052b3660046132b8565b611143565b34801561053c57600080fd5b5061040161054b36600461325e565b61115e565b34801561055c57600080fd5b5061057061056b3660046133a6565b6111f6565b60405161034e91906133c3565b34801561058957600080fd5b506104016105983660046133a6565b6112dc565b3480156105a957600080fd5b506103446105b836600461325e565b611365565b3480156105c957600080fd5b506104016105d836600461345f565b611427565b3480156105e957600080fd5b506104016105f83660046133a6565b611498565b34801561060957600080fd5b50600f546103779060ff1681565b34801561062357600080fd5b506103c961063236600461325e565b611551565b34801561064357600080fd5b506104016106523660046134a8565b6115dc565b34801561066357600080fd5b506103446106723660046133a6565b611891565b34801561068357600080fd5b5061040161192b565b34801561069857600080fd5b506103c96106a736600461325e565b6000908152600260205260409020546001600160a01b031690565b3480156106ce57600080fd5b506104016106dd36600461325e565b611991565b3480156106ee57600080fd5b50610344601481565b34801561070357600080fd5b506006546001600160a01b03166103c9565b34801561072157600080fd5b50600b54421015610377565b34801561073957600080fd5b506104016107483660046133a6565b611abd565b34801561075957600080fd5b5061039c611bb2565b34801561076e57600080fd5b506011546103c9906001600160a01b031681565b34801561078e57600080fd5b506103c961079d36600461325e565b611bc1565b6104016107b036600461325e565b611beb565b3480156107c157600080fd5b506104016107d036600461355c565b611e9c565b3480156107e157600080fd5b506104016107f0366004613595565b611f61565b34801561080157600080fd5b50610401610810366004613615565b611fef565b34801561082157600080fd5b5061039c61083036600461325e565b61205c565b34801561084157600080fd5b5061037761085036600461325e565b60009081526012602052604090205460ff161590565b34801561087257600080fd5b5061088661088136600461325e565b612145565b604080516001600160a01b03958616815294909316602085015291830152606082015260800161034e565b3480156108bd57600080fd5b5061040161218b565b3480156108d257600080fd5b5061039c612491565b3480156108e757600080fd5b506103776108f6366004613632565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561093057600080fd5b5061034461012c81565b34801561094657600080fd5b506104016109553660046133a6565b61251f565b34801561096657600080fd5b506103776125fe565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610a0257507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a4e57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060008054610a6390613660565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8f90613660565b8015610adc5780601f10610ab157610100808354040283529160200191610adc565b820191906000526020600020905b815481529060010190602001808311610abf57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610b755760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610b9c82611551565b9050806001600160a01b0316836001600160a01b03161415610c265760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610b6c565b336001600160a01b0382161480610c425750610c4281336108f6565b610cb45760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b6c565b610cbe8383612613565b505050565b600a54600090610ceb9061ffff660100000000000082048116916401000000009004166136b1565b61ffff16905090565b6006546001600160a01b03163314610d4e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6c565b4780610d9c5760405162461bcd60e51b815260206004820152601460248201527f436f6e74726163742042616c616e6365203d20300000000000000000000000006044820152606401610b6c565b60005b60075460ff82161015610e7757600060078260ff1681548110610dc457610dc46136d4565b9060005260206000209060040201600301541115610e6557610e6560078260ff1681548110610df557610df56136d4565b906000526020600020906004020160010160009054906101000a90046001600160a01b0316610e60612710610e5a60078660ff1681548110610e3957610e396136d4565b9060005260206000209060040201600301548761268e90919063ffffffff16565b9061269a565b6126a6565b80610e6f816136ea565b915050610d9f565b50610e93610e8d6006546001600160a01b031690565b476126a6565b50565b610ea1335b82612749565b610f135760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b6c565b610cbe83838361284d565b6006546001600160a01b03163314610f785760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6c565b8051600b556020810151600c556040810151600d5560600151600e55565b600081610fa36000611365565b610a4e919061370a565b6006546001600160a01b031633146110075760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6c565b47806110555760405162461bcd60e51b815260206004820152601160248201527f53616c65732042616c616e6365203d20300000000000000000000000000000006044820152606401610b6c565b60005b60075460ff82161015610e7757600060078260ff168154811061107d5761107d6136d4565b90600052602060002090600402016002015411156111135761111360078260ff16815481106110ae576110ae6136d4565b906000526020600020906004020160000160009054906101000a90046001600160a01b0316610e60612710610e5a60078660ff16815481106110f2576110f26136d4565b9060005260206000209060040201600201548761268e90919063ffffffff16565b8061111d816136ea565b915050611058565b61012c6111366122b86156ce613729565b6111409190613729565b81565b610cbe83838360405180602001604052806000815250611f61565b61116733610e9b565b6111b35760405162461bcd60e51b815260206004820152601660248201527f4e6f74206f776e6572206e6f7220617070726f766564000000000000000000006044820152606401610b6c565b6001600a60068282829054906101000a900461ffff166111d39190613740565b92506101000a81548161ffff021916908361ffff160217905550610e9381612a27565b6060600061120383611891565b905060008167ffffffffffffffff811115611220576112206132f9565b604051908082528060200260200182016040528015611249578160200160208202803683370190505b50905081611258579392505050565b6000805b6156ce8110156112d2576000818152600260205260409020546001600160a01b03878116911614156112c0578083838151811061129b5761129b6136d4565b6020908102919091010152816112b081613766565b925050838214156112c0576112d2565b806112ca81613766565b91505061125c565b5090949350505050565b6006546001600160a01b031633146113365760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6c565b6011805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000611373600b5442101590565b61137f575050600d5490565b811561138b578161138d565b425b600b549092506000906113a09084613729565b600c5490915081106113b6575050600e54919050565b600e54600d54600091620186a0916113ce9190613729565b600c546113de85620186a061370a565b6113e89190613797565b6113f2919061370a565b6113fc9190613797565b600d546114099190613729565b600e54909150811161141d57600e5461141f565b805b949350505050565b6006546001600160a01b031633146114815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6c565b805161149490601090602084019061310f565b5050565b6006546001600160a01b031633146114f25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6c565b600880546001810182556000919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee301805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000818152600260205260408120546001600160a01b031680610a4e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610b6c565b6115e46125fe565b6116305760405162461bcd60e51b815260206004820152600f60248201527f4475746368206e6f7420656e64656400000000000000000000000000000000006044820152606401610b6c565b600f5460ff16156116835760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610b6c565b6014815111156116d55760405162461bcd60e51b815260206004820152600e60248201527f45786365656473206e756d6265720000000000000000000000000000000000006044820152606401610b6c565b60005b8151811015611494576117148282815181106116f6576116f66136d4565b602002602001015160009081526012602052604090205460ff161590565b80156117c55750601154825133916001600160a01b031690636352211e90859085908110611744576117446136d4565b60200260200101516040518263ffffffff1660e01b815260040161176a91815260200190565b60206040518083038186803b15801561178257600080fd5b505afa158015611796573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ba91906137ab565b6001600160a01b0316145b6118115760405162461bcd60e51b815260206004820152600a60248201527f426164206f776e657221000000000000000000000000000000000000000000006044820152606401610b6c565b600160126000848481518110611829576118296136d4565b6020026020010151815260200190815260200160002060006101000a81548160ff02191690831515021790555061187f6118603390565b838381518110611872576118726136d4565b6020026020010151612ad4565b8061188981613766565b9150506116d8565b60006001600160a01b03821661190f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610b6c565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146119855760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6c565b61198f6000612b47565b565b6006546001600160a01b031633146119eb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6c565b600a5461012c90611a0190839061ffff166137c8565b1115611a4f5760405162461bcd60e51b815260206004820152601360248201527f4578636565646564206769766561776179732e000000000000000000000000006044820152606401610b6c565b60005b8181101561149457611a7633600a54611a719061ffff166122b86137c8565b612ad4565b600a805460019190600090611a9090849061ffff16613740565b92506101000a81548161ffff021916908361ffff1602179055508080611ab590613766565b915050611a52565b6006546001600160a01b03163314611b175760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6c565b60005b60085481101561149457816001600160a01b031660088281548110611b4157611b416136d4565b6000918252602090912001546001600160a01b03161415611ba057600060088281548110611b7157611b716136d4565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055505b80611baa81613766565b915050611b1a565b606060018054610a6390613660565b60088181548110611bd157600080fd5b6000918252602090912001546001600160a01b0316905081565b600b54421015611c3d5760405162461bcd60e51b815260206004820152601160248201527f4475746368206e6f7420737461727465640000000000000000000000000000006044820152606401610b6c565b600f5460ff1615611c905760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610b6c565b60026009541415611ce35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b6c565b600260095561012c611cf96122b86156ce613729565b611d039190613729565b600a54611d1b90839062010000900461ffff166137c8565b1115611d695760405162461bcd60e51b815260206004820152600960248201527f536f6c64204f75742100000000000000000000000000000000000000000000006044820152606401610b6c565b6014811115611dba5760405162461bcd60e51b815260206004820152600e60248201527f45786365656473206e756d6265720000000000000000000000000000000000006044820152606401610b6c565b611dc381610f96565b341015611e125760405162461bcd60e51b815260206004820152601160248201527f56616c75652062656c6f772070726963650000000000000000000000000000006044820152606401610b6c565b60005b81811015611e9357611e4633600a5462010000900461ffff16611e3c61012c6122b86137c8565b611a7191906137c8565b6001600a60028282829054906101000a900461ffff16611e669190613740565b92506101000a81548161ffff021916908361ffff1602179055508080611e8b90613766565b915050611e15565b50506001600955565b6001600160a01b038216331415611ef55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b6c565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611f6b3383612749565b611fdd5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b6c565b611fe984848484612ba6565b50505050565b6006546001600160a01b031633146120495760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6c565b600f805460ff1916911515919091179055565b6000818152600260205260409020546060906001600160a01b03166120e95760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b6c565b60006120f3612c2f565b90506000815111612113576040518060200160405280600081525061213e565b8061211d84612c3e565b60405160200161212e9291906137e0565b6040516020818303038152906040525b9392505050565b6007818154811061215557600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b0392831694509116919084565b6006546001600160a01b031633146121e55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6c565b60005b600854811015610e935760006001600160a01b031660088281548110612210576122106136d4565b6000918252602090912001546001600160a01b031614156122305761247f565b600060088281548110612245576122456136d4565b6000918252602090912001546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b1580156122aa57600080fd5b505afa1580156122be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122e29190613806565b905060005b60075481101561247c57600060078281548110612306576123066136d4565b9060005260206000209060040201600301541180156123255750600082115b1561246a576008838154811061233d5761233d6136d4565b600091825260209091200154600780546001600160a01b039092169163a9059cbb919084908110612370576123706136d4565b906000526020600020906004020160010160009054906101000a90046001600160a01b03166123d2612710610e5a600787815481106123b1576123b16136d4565b9060005260206000209060040201600301548861268e90919063ffffffff16565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561243057600080fd5b505af1158015612444573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612468919061381f565b505b8061247481613766565b9150506122e7565b50505b8061248981613766565b9150506121e8565b6010805461249e90613660565b80601f01602080910402602001604051908101604052809291908181526020018280546124ca90613660565b80156125175780601f106124ec57610100808354040283529160200191612517565b820191906000526020600020905b8154815290600101906020018083116124fa57829003601f168201915b505050505081565b6006546001600160a01b031633146125795760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6c565b6001600160a01b0381166125f55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b6c565b610e9381612b47565b600e5460009061260d82611365565b14905090565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061265582611551565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061213e828461370a565b600061213e8284613797565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146126f3576040519150601f19603f3d011682016040523d82523d6000602084013e6126f8565b606091505b5050905080610cbe5760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610b6c565b6000818152600260205260408120546001600160a01b03166127d35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610b6c565b60006127de83611551565b9050806001600160a01b0316846001600160a01b031614806128195750836001600160a01b031661280e84610ae6565b6001600160a01b0316145b8061141f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff1661141f565b826001600160a01b031661286082611551565b6001600160a01b0316146128dc5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610b6c565b6001600160a01b0382166129575760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b6c565b612962600082612613565b6001600160a01b038316600090815260036020526040812080546001929061298b908490613729565b90915550506001600160a01b03821660009081526003602052604081208054600192906129b99084906137c8565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000612a3282611551565b90506000612a41600084612613565b6001600160a01b0382166000908152600360205260408120805460019290612a6a908490613729565b9091555050600083815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff191690555184916001600160a01b0384811692908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600a60048282829054906101000a900461ffff16612af49190613740565b92506101000a81548161ffff021916908361ffff160217905550612b188282612d70565b60405181907fd9ed60717b3ee8f46cad3eb24786af0a62a0b266bcbbce9f7f6e23beac9b4d6190600090a25050565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612bb184848461284d565b612bbd84848484612d8a565b611fe95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b6c565b606060108054610a6390613660565b606081612c7e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612ca85780612c9281613766565b9150612ca19050600a83613797565b9150612c82565b60008167ffffffffffffffff811115612cc357612cc36132f9565b6040519080825280601f01601f191660200182016040528015612ced576020820181803683370190505b5090505b841561141f57612d02600183613729565b9150612d0f600a8661383c565b612d1a9060306137c8565b60f81b818381518110612d2f57612d2f6136d4565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612d69600a86613797565b9450612cf1565b611494828260405180602001604052806000815250612f37565b60006001600160a01b0384163b15612f2c576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612de7903390899088908890600401613850565b602060405180830381600087803b158015612e0157600080fd5b505af1925050508015612e31575060408051601f3d908101601f19168201909252612e2e9181019061388c565b60015b612ee1573d808015612e5f576040519150601f19603f3d011682016040523d82523d6000602084013e612e64565b606091505b508051612ed95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b6c565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061141f565b506001949350505050565b612f418383612fc0565b612f4e6000848484612d8a565b610cbe5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b6c565b6001600160a01b0382166130165760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b6c565b6000818152600260205260409020546001600160a01b03161561307b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b6c565b6001600160a01b03821660009081526003602052604081208054600192906130a49084906137c8565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461311b90613660565b90600052602060002090601f01602090048101928261313d5760008555613183565b82601f1061315657805160ff1916838001178555613183565b82800160010185558215613183579182015b82811115613183578251825591602001919060010190613168565b5061318f929150613193565b5090565b5b8082111561318f5760008155600101613194565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610e9357600080fd5b6000602082840312156131e857600080fd5b813561213e816131a8565b60005b8381101561320e5781810151838201526020016131f6565b83811115611fe95750506000910152565b600081518084526132378160208601602086016131f3565b601f01601f19169290920160200192915050565b60208152600061213e602083018461321f565b60006020828403121561327057600080fd5b5035919050565b6001600160a01b0381168114610e9357600080fd5b6000806040838503121561329f57600080fd5b82356132aa81613277565b946020939093013593505050565b6000806000606084860312156132cd57600080fd5b83356132d881613277565b925060208401356132e881613277565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613338576133386132f9565b604052919050565b60006080828403121561335257600080fd5b6040516080810181811067ffffffffffffffff82111715613375576133756132f9565b8060405250823581526020830135602082015260408301356040820152606083013560608201528091505092915050565b6000602082840312156133b857600080fd5b813561213e81613277565b6020808252825182820181905260009190848201906040850190845b818110156133fb578351835292840192918401916001016133df565b50909695505050505050565b600067ffffffffffffffff831115613421576134216132f9565b6134346020601f19601f8601160161330f565b905082815283838301111561344857600080fd5b828260208301376000602084830101529392505050565b60006020828403121561347157600080fd5b813567ffffffffffffffff81111561348857600080fd5b8201601f8101841361349957600080fd5b61141f84823560208401613407565b600060208083850312156134bb57600080fd5b823567ffffffffffffffff808211156134d357600080fd5b818501915085601f8301126134e757600080fd5b8135818111156134f9576134f96132f9565b8060051b915061350a84830161330f565b818152918301840191848101908884111561352457600080fd5b938501935b8385101561354257843582529385019390850190613529565b98975050505050505050565b8015158114610e9357600080fd5b6000806040838503121561356f57600080fd5b823561357a81613277565b9150602083013561358a8161354e565b809150509250929050565b600080600080608085870312156135ab57600080fd5b84356135b681613277565b935060208501356135c681613277565b925060408501359150606085013567ffffffffffffffff8111156135e957600080fd5b8501601f810187136135fa57600080fd5b61360987823560208401613407565b91505092959194509250565b60006020828403121561362757600080fd5b813561213e8161354e565b6000806040838503121561364557600080fd5b823561365081613277565b9150602083013561358a81613277565b600181811c9082168061367457607f821691505b6020821081141561369557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600061ffff838116908316818110156136cc576136cc61369b565b039392505050565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff8114156137015761370161369b565b60010192915050565b60008160001904831182151516156137245761372461369b565b500290565b60008282101561373b5761373b61369b565b500390565b600061ffff80831681851680830382111561375d5761375d61369b565b01949350505050565b600060001982141561377a5761377a61369b565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826137a6576137a6613781565b500490565b6000602082840312156137bd57600080fd5b815161213e81613277565b600082198211156137db576137db61369b565b500190565b600083516137f28184602088016131f3565b83519083019061375d8183602088016131f3565b60006020828403121561381857600080fd5b5051919050565b60006020828403121561383157600080fd5b815161213e8161354e565b60008261384b5761384b613781565b500690565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613882608083018461321f565b9695505050505050565b60006020828403121561389e57600080fd5b815161213e816131a856fea2646970667358221220ac9797294edeee65a40fe1622c42a4bd455396f1771bc5fc7e9042704b3b10d464736f6c634300080900334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65720000000000000000000000000000000000000000000000000000000000000040000000000000000000000000bd3531da5cf5857e7cfaa92426877b022e612cf8000000000000000000000000000000000000000000000000000000000000002268747470733a2f2f6170692e70756467792d70656e6775696e732e696f2f6c696c2f000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103225760003560e01c806370a08231116101a5578063a0712d68116100ec578063c9eb466211610095578063e985e9c51161006f578063e985e9c5146108db578063eff31e9e14610924578063f2fde38b1461093a578063fa3817561461095a57600080fd5b8063c9eb466214610866578063cc0bbb6f146108b1578063d547cfb7146108c657600080fd5b8063bedb86fb116100c6578063bedb86fb146107f5578063c87b56dd14610815578063c95c0d891461083557600080fd5b8063a0712d68146107a2578063a22cb465146107b5578063b88d4fde146107d557600080fd5b80638ddfec381161014e57806395d89b411161012857806395d89b411461074d5780639db4b20b146107625780639e6b26ba1461078257600080fd5b80638ddfec38146107155780639284d73f146106e257806395a4b24e1461072d57600080fd5b8063819b25ba1161017f578063819b25ba146106c25780638ad5de28146106e25780638da5cb5b146106f757600080fd5b806370a0823114610657578063715018a6146106775780637f81be691461068c57600080fd5b80633502a71611610269578063559e775b116102125780635c975abb116101ec5780635c975abb146105fd5780636352211e146106175780636ba4c1381461063757600080fd5b8063559e775b1461059d57806355f804b3146105bd57806357087812146105dd57600080fd5b806342966c681161024357806342966c6814610530578063438b6300146105505780634f6c998c1461057d57600080fd5b80633502a716146104e55780633681ec90146104fb57806342842e0e1461051057600080fd5b80631b332351116102cb578063257cb365116102a5578063257cb3651461049057806326a49e37146104b0578063339a75bf146104d057600080fd5b80631b3323511461041857806321c34fcb1461045b57806323b872dd1461047057600080fd5b8063081812fc116102fc578063081812fc146103a9578063095ea7b3146103e157806318160ddd1461040357600080fd5b806301b65b711461032e57806301ffc9a71461035757806306fdde031461038757600080fd5b3661032957005b600080fd5b34801561033a57600080fd5b506103446122b881565b6040519081526020015b60405180910390f35b34801561036357600080fd5b506103776103723660046131d6565b61096f565b604051901515815260200161034e565b34801561039357600080fd5b5061039c610a54565b60405161034e919061324b565b3480156103b557600080fd5b506103c96103c436600461325e565b610ae6565b6040516001600160a01b03909116815260200161034e565b3480156103ed57600080fd5b506104016103fc36600461328c565b610b91565b005b34801561040f57600080fd5b50610344610cc3565b34801561042457600080fd5b50600b54600c54600d54600e5461043b9392919084565b60408051948552602085019390935291830152606082015260800161034e565b34801561046757600080fd5b50610401610cf4565b34801561047c57600080fd5b5061040161048b3660046132b8565b610e96565b34801561049c57600080fd5b506104016104ab366004613340565b610f1e565b3480156104bc57600080fd5b506103446104cb36600461325e565b610f96565b3480156104dc57600080fd5b50610401610fad565b3480156104f157600080fd5b506103446156ce81565b34801561050757600080fd5b50610344611125565b34801561051c57600080fd5b5061040161052b3660046132b8565b611143565b34801561053c57600080fd5b5061040161054b36600461325e565b61115e565b34801561055c57600080fd5b5061057061056b3660046133a6565b6111f6565b60405161034e91906133c3565b34801561058957600080fd5b506104016105983660046133a6565b6112dc565b3480156105a957600080fd5b506103446105b836600461325e565b611365565b3480156105c957600080fd5b506104016105d836600461345f565b611427565b3480156105e957600080fd5b506104016105f83660046133a6565b611498565b34801561060957600080fd5b50600f546103779060ff1681565b34801561062357600080fd5b506103c961063236600461325e565b611551565b34801561064357600080fd5b506104016106523660046134a8565b6115dc565b34801561066357600080fd5b506103446106723660046133a6565b611891565b34801561068357600080fd5b5061040161192b565b34801561069857600080fd5b506103c96106a736600461325e565b6000908152600260205260409020546001600160a01b031690565b3480156106ce57600080fd5b506104016106dd36600461325e565b611991565b3480156106ee57600080fd5b50610344601481565b34801561070357600080fd5b506006546001600160a01b03166103c9565b34801561072157600080fd5b50600b54421015610377565b34801561073957600080fd5b506104016107483660046133a6565b611abd565b34801561075957600080fd5b5061039c611bb2565b34801561076e57600080fd5b506011546103c9906001600160a01b031681565b34801561078e57600080fd5b506103c961079d36600461325e565b611bc1565b6104016107b036600461325e565b611beb565b3480156107c157600080fd5b506104016107d036600461355c565b611e9c565b3480156107e157600080fd5b506104016107f0366004613595565b611f61565b34801561080157600080fd5b50610401610810366004613615565b611fef565b34801561082157600080fd5b5061039c61083036600461325e565b61205c565b34801561084157600080fd5b5061037761085036600461325e565b60009081526012602052604090205460ff161590565b34801561087257600080fd5b5061088661088136600461325e565b612145565b604080516001600160a01b03958616815294909316602085015291830152606082015260800161034e565b3480156108bd57600080fd5b5061040161218b565b3480156108d257600080fd5b5061039c612491565b3480156108e757600080fd5b506103776108f6366004613632565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561093057600080fd5b5061034461012c81565b34801561094657600080fd5b506104016109553660046133a6565b61251f565b34801561096657600080fd5b506103776125fe565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610a0257507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a4e57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060008054610a6390613660565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8f90613660565b8015610adc5780601f10610ab157610100808354040283529160200191610adc565b820191906000526020600020905b815481529060010190602001808311610abf57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610b755760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610b9c82611551565b9050806001600160a01b0316836001600160a01b03161415610c265760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610b6c565b336001600160a01b0382161480610c425750610c4281336108f6565b610cb45760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b6c565b610cbe8383612613565b505050565b600a54600090610ceb9061ffff660100000000000082048116916401000000009004166136b1565b61ffff16905090565b6006546001600160a01b03163314610d4e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6c565b4780610d9c5760405162461bcd60e51b815260206004820152601460248201527f436f6e74726163742042616c616e6365203d20300000000000000000000000006044820152606401610b6c565b60005b60075460ff82161015610e7757600060078260ff1681548110610dc457610dc46136d4565b9060005260206000209060040201600301541115610e6557610e6560078260ff1681548110610df557610df56136d4565b906000526020600020906004020160010160009054906101000a90046001600160a01b0316610e60612710610e5a60078660ff1681548110610e3957610e396136d4565b9060005260206000209060040201600301548761268e90919063ffffffff16565b9061269a565b6126a6565b80610e6f816136ea565b915050610d9f565b50610e93610e8d6006546001600160a01b031690565b476126a6565b50565b610ea1335b82612749565b610f135760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b6c565b610cbe83838361284d565b6006546001600160a01b03163314610f785760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6c565b8051600b556020810151600c556040810151600d5560600151600e55565b600081610fa36000611365565b610a4e919061370a565b6006546001600160a01b031633146110075760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6c565b47806110555760405162461bcd60e51b815260206004820152601160248201527f53616c65732042616c616e6365203d20300000000000000000000000000000006044820152606401610b6c565b60005b60075460ff82161015610e7757600060078260ff168154811061107d5761107d6136d4565b90600052602060002090600402016002015411156111135761111360078260ff16815481106110ae576110ae6136d4565b906000526020600020906004020160000160009054906101000a90046001600160a01b0316610e60612710610e5a60078660ff16815481106110f2576110f26136d4565b9060005260206000209060040201600201548761268e90919063ffffffff16565b8061111d816136ea565b915050611058565b61012c6111366122b86156ce613729565b6111409190613729565b81565b610cbe83838360405180602001604052806000815250611f61565b61116733610e9b565b6111b35760405162461bcd60e51b815260206004820152601660248201527f4e6f74206f776e6572206e6f7220617070726f766564000000000000000000006044820152606401610b6c565b6001600a60068282829054906101000a900461ffff166111d39190613740565b92506101000a81548161ffff021916908361ffff160217905550610e9381612a27565b6060600061120383611891565b905060008167ffffffffffffffff811115611220576112206132f9565b604051908082528060200260200182016040528015611249578160200160208202803683370190505b50905081611258579392505050565b6000805b6156ce8110156112d2576000818152600260205260409020546001600160a01b03878116911614156112c0578083838151811061129b5761129b6136d4565b6020908102919091010152816112b081613766565b925050838214156112c0576112d2565b806112ca81613766565b91505061125c565b5090949350505050565b6006546001600160a01b031633146113365760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6c565b6011805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000611373600b5442101590565b61137f575050600d5490565b811561138b578161138d565b425b600b549092506000906113a09084613729565b600c5490915081106113b6575050600e54919050565b600e54600d54600091620186a0916113ce9190613729565b600c546113de85620186a061370a565b6113e89190613797565b6113f2919061370a565b6113fc9190613797565b600d546114099190613729565b600e54909150811161141d57600e5461141f565b805b949350505050565b6006546001600160a01b031633146114815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6c565b805161149490601090602084019061310f565b5050565b6006546001600160a01b031633146114f25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6c565b600880546001810182556000919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee301805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000818152600260205260408120546001600160a01b031680610a4e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610b6c565b6115e46125fe565b6116305760405162461bcd60e51b815260206004820152600f60248201527f4475746368206e6f7420656e64656400000000000000000000000000000000006044820152606401610b6c565b600f5460ff16156116835760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610b6c565b6014815111156116d55760405162461bcd60e51b815260206004820152600e60248201527f45786365656473206e756d6265720000000000000000000000000000000000006044820152606401610b6c565b60005b8151811015611494576117148282815181106116f6576116f66136d4565b602002602001015160009081526012602052604090205460ff161590565b80156117c55750601154825133916001600160a01b031690636352211e90859085908110611744576117446136d4565b60200260200101516040518263ffffffff1660e01b815260040161176a91815260200190565b60206040518083038186803b15801561178257600080fd5b505afa158015611796573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ba91906137ab565b6001600160a01b0316145b6118115760405162461bcd60e51b815260206004820152600a60248201527f426164206f776e657221000000000000000000000000000000000000000000006044820152606401610b6c565b600160126000848481518110611829576118296136d4565b6020026020010151815260200190815260200160002060006101000a81548160ff02191690831515021790555061187f6118603390565b838381518110611872576118726136d4565b6020026020010151612ad4565b8061188981613766565b9150506116d8565b60006001600160a01b03821661190f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610b6c565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146119855760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6c565b61198f6000612b47565b565b6006546001600160a01b031633146119eb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6c565b600a5461012c90611a0190839061ffff166137c8565b1115611a4f5760405162461bcd60e51b815260206004820152601360248201527f4578636565646564206769766561776179732e000000000000000000000000006044820152606401610b6c565b60005b8181101561149457611a7633600a54611a719061ffff166122b86137c8565b612ad4565b600a805460019190600090611a9090849061ffff16613740565b92506101000a81548161ffff021916908361ffff1602179055508080611ab590613766565b915050611a52565b6006546001600160a01b03163314611b175760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6c565b60005b60085481101561149457816001600160a01b031660088281548110611b4157611b416136d4565b6000918252602090912001546001600160a01b03161415611ba057600060088281548110611b7157611b716136d4565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055505b80611baa81613766565b915050611b1a565b606060018054610a6390613660565b60088181548110611bd157600080fd5b6000918252602090912001546001600160a01b0316905081565b600b54421015611c3d5760405162461bcd60e51b815260206004820152601160248201527f4475746368206e6f7420737461727465640000000000000000000000000000006044820152606401610b6c565b600f5460ff1615611c905760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610b6c565b60026009541415611ce35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b6c565b600260095561012c611cf96122b86156ce613729565b611d039190613729565b600a54611d1b90839062010000900461ffff166137c8565b1115611d695760405162461bcd60e51b815260206004820152600960248201527f536f6c64204f75742100000000000000000000000000000000000000000000006044820152606401610b6c565b6014811115611dba5760405162461bcd60e51b815260206004820152600e60248201527f45786365656473206e756d6265720000000000000000000000000000000000006044820152606401610b6c565b611dc381610f96565b341015611e125760405162461bcd60e51b815260206004820152601160248201527f56616c75652062656c6f772070726963650000000000000000000000000000006044820152606401610b6c565b60005b81811015611e9357611e4633600a5462010000900461ffff16611e3c61012c6122b86137c8565b611a7191906137c8565b6001600a60028282829054906101000a900461ffff16611e669190613740565b92506101000a81548161ffff021916908361ffff1602179055508080611e8b90613766565b915050611e15565b50506001600955565b6001600160a01b038216331415611ef55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b6c565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611f6b3383612749565b611fdd5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b6c565b611fe984848484612ba6565b50505050565b6006546001600160a01b031633146120495760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6c565b600f805460ff1916911515919091179055565b6000818152600260205260409020546060906001600160a01b03166120e95760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b6c565b60006120f3612c2f565b90506000815111612113576040518060200160405280600081525061213e565b8061211d84612c3e565b60405160200161212e9291906137e0565b6040516020818303038152906040525b9392505050565b6007818154811061215557600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b0392831694509116919084565b6006546001600160a01b031633146121e55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6c565b60005b600854811015610e935760006001600160a01b031660088281548110612210576122106136d4565b6000918252602090912001546001600160a01b031614156122305761247f565b600060088281548110612245576122456136d4565b6000918252602090912001546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b1580156122aa57600080fd5b505afa1580156122be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122e29190613806565b905060005b60075481101561247c57600060078281548110612306576123066136d4565b9060005260206000209060040201600301541180156123255750600082115b1561246a576008838154811061233d5761233d6136d4565b600091825260209091200154600780546001600160a01b039092169163a9059cbb919084908110612370576123706136d4565b906000526020600020906004020160010160009054906101000a90046001600160a01b03166123d2612710610e5a600787815481106123b1576123b16136d4565b9060005260206000209060040201600301548861268e90919063ffffffff16565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561243057600080fd5b505af1158015612444573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612468919061381f565b505b8061247481613766565b9150506122e7565b50505b8061248981613766565b9150506121e8565b6010805461249e90613660565b80601f01602080910402602001604051908101604052809291908181526020018280546124ca90613660565b80156125175780601f106124ec57610100808354040283529160200191612517565b820191906000526020600020905b8154815290600101906020018083116124fa57829003601f168201915b505050505081565b6006546001600160a01b031633146125795760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6c565b6001600160a01b0381166125f55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b6c565b610e9381612b47565b600e5460009061260d82611365565b14905090565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061265582611551565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061213e828461370a565b600061213e8284613797565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146126f3576040519150601f19603f3d011682016040523d82523d6000602084013e6126f8565b606091505b5050905080610cbe5760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610b6c565b6000818152600260205260408120546001600160a01b03166127d35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610b6c565b60006127de83611551565b9050806001600160a01b0316846001600160a01b031614806128195750836001600160a01b031661280e84610ae6565b6001600160a01b0316145b8061141f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff1661141f565b826001600160a01b031661286082611551565b6001600160a01b0316146128dc5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610b6c565b6001600160a01b0382166129575760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b6c565b612962600082612613565b6001600160a01b038316600090815260036020526040812080546001929061298b908490613729565b90915550506001600160a01b03821660009081526003602052604081208054600192906129b99084906137c8565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000612a3282611551565b90506000612a41600084612613565b6001600160a01b0382166000908152600360205260408120805460019290612a6a908490613729565b9091555050600083815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff191690555184916001600160a01b0384811692908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600a60048282829054906101000a900461ffff16612af49190613740565b92506101000a81548161ffff021916908361ffff160217905550612b188282612d70565b60405181907fd9ed60717b3ee8f46cad3eb24786af0a62a0b266bcbbce9f7f6e23beac9b4d6190600090a25050565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612bb184848461284d565b612bbd84848484612d8a565b611fe95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b6c565b606060108054610a6390613660565b606081612c7e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612ca85780612c9281613766565b9150612ca19050600a83613797565b9150612c82565b60008167ffffffffffffffff811115612cc357612cc36132f9565b6040519080825280601f01601f191660200182016040528015612ced576020820181803683370190505b5090505b841561141f57612d02600183613729565b9150612d0f600a8661383c565b612d1a9060306137c8565b60f81b818381518110612d2f57612d2f6136d4565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612d69600a86613797565b9450612cf1565b611494828260405180602001604052806000815250612f37565b60006001600160a01b0384163b15612f2c576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612de7903390899088908890600401613850565b602060405180830381600087803b158015612e0157600080fd5b505af1925050508015612e31575060408051601f3d908101601f19168201909252612e2e9181019061388c565b60015b612ee1573d808015612e5f576040519150601f19603f3d011682016040523d82523d6000602084013e612e64565b606091505b508051612ed95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b6c565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061141f565b506001949350505050565b612f418383612fc0565b612f4e6000848484612d8a565b610cbe5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b6c565b6001600160a01b0382166130165760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b6c565b6000818152600260205260409020546001600160a01b03161561307b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b6c565b6001600160a01b03821660009081526003602052604081208054600192906130a49084906137c8565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461311b90613660565b90600052602060002090601f01602090048101928261313d5760008555613183565b82601f1061315657805160ff1916838001178555613183565b82800160010185558215613183579182015b82811115613183578251825591602001919060010190613168565b5061318f929150613193565b5090565b5b8082111561318f5760008155600101613194565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610e9357600080fd5b6000602082840312156131e857600080fd5b813561213e816131a8565b60005b8381101561320e5781810151838201526020016131f6565b83811115611fe95750506000910152565b600081518084526132378160208601602086016131f3565b601f01601f19169290920160200192915050565b60208152600061213e602083018461321f565b60006020828403121561327057600080fd5b5035919050565b6001600160a01b0381168114610e9357600080fd5b6000806040838503121561329f57600080fd5b82356132aa81613277565b946020939093013593505050565b6000806000606084860312156132cd57600080fd5b83356132d881613277565b925060208401356132e881613277565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613338576133386132f9565b604052919050565b60006080828403121561335257600080fd5b6040516080810181811067ffffffffffffffff82111715613375576133756132f9565b8060405250823581526020830135602082015260408301356040820152606083013560608201528091505092915050565b6000602082840312156133b857600080fd5b813561213e81613277565b6020808252825182820181905260009190848201906040850190845b818110156133fb578351835292840192918401916001016133df565b50909695505050505050565b600067ffffffffffffffff831115613421576134216132f9565b6134346020601f19601f8601160161330f565b905082815283838301111561344857600080fd5b828260208301376000602084830101529392505050565b60006020828403121561347157600080fd5b813567ffffffffffffffff81111561348857600080fd5b8201601f8101841361349957600080fd5b61141f84823560208401613407565b600060208083850312156134bb57600080fd5b823567ffffffffffffffff808211156134d357600080fd5b818501915085601f8301126134e757600080fd5b8135818111156134f9576134f96132f9565b8060051b915061350a84830161330f565b818152918301840191848101908884111561352457600080fd5b938501935b8385101561354257843582529385019390850190613529565b98975050505050505050565b8015158114610e9357600080fd5b6000806040838503121561356f57600080fd5b823561357a81613277565b9150602083013561358a8161354e565b809150509250929050565b600080600080608085870312156135ab57600080fd5b84356135b681613277565b935060208501356135c681613277565b925060408501359150606085013567ffffffffffffffff8111156135e957600080fd5b8501601f810187136135fa57600080fd5b61360987823560208401613407565b91505092959194509250565b60006020828403121561362757600080fd5b813561213e8161354e565b6000806040838503121561364557600080fd5b823561365081613277565b9150602083013561358a81613277565b600181811c9082168061367457607f821691505b6020821081141561369557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600061ffff838116908316818110156136cc576136cc61369b565b039392505050565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff8114156137015761370161369b565b60010192915050565b60008160001904831182151516156137245761372461369b565b500290565b60008282101561373b5761373b61369b565b500390565b600061ffff80831681851680830382111561375d5761375d61369b565b01949350505050565b600060001982141561377a5761377a61369b565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826137a6576137a6613781565b500490565b6000602082840312156137bd57600080fd5b815161213e81613277565b600082198211156137db576137db61369b565b500190565b600083516137f28184602088016131f3565b83519083019061375d8183602088016131f3565b60006020828403121561381857600080fd5b5051919050565b60006020828403121561383157600080fd5b815161213e8161354e565b60008261384b5761384b613781565b500690565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613882608083018461321f565b9695505050505050565b60006020828403121561389e57600080fd5b815161213e816131a856fea2646970667358221220ac9797294edeee65a40fe1622c42a4bd455396f1771bc5fc7e9042704b3b10d464736f6c63430008090033

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

0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000bd3531da5cf5857e7cfaa92426877b022e612cf8000000000000000000000000000000000000000000000000000000000000002268747470733a2f2f6170692e70756467792d70656e6775696e732e696f2f6c696c2f000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : baseURI (string): https://api.pudgy-penguins.io/lil/
Arg [1] : _pudgyPenguins (address): 0xBd3531dA5CF5857e7CfAA92426877b022e612cf8

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 000000000000000000000000bd3531da5cf5857e7cfaa92426877b022e612cf8
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000022
Arg [3] : 68747470733a2f2f6170692e70756467792d70656e6775696e732e696f2f6c69
Arg [4] : 6c2f000000000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ 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.