ETH Price: $2,422.57 (-0.10%)

Token

LilyPass (LP)
 

Overview

Max Total Supply

200 LP

Holders

60

Total Transfers

-

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

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

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

Contract Source Code Verified (Exact Match)

Contract Name:
LilyPass

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 13 : LilyPass.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;

import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";

/*
 _         _              ___                     
( )     _ (_ )           (  _`\                   
| |    (_) | |  _   _    | |_) )  _ _   ___   ___ 
| |  _ | | | | ( ) ( )   | ,__/'/'_` )/',__)/',__)
| |_( )| | | | | (_) |   | |   ( (_| |\__, \\__, \
(____/'(_)(___)`\__, |   (_)   `\__,_)(____/(____/
               ( )_| |                            
               `\___/'                            
*/

contract LilyPass is
    ERC721,
    ERC721URIStorage,
    ReentrancyGuard,
    Pausable
{
    uint256 maxPerTx = 4;
    uint256 public availableSupply = 0;
    uint256 public publicSupply = 190;
    uint256 public maxSupply = 201;
    uint256 private _price = 40_000_000_000_000_000; //0.04 ETH
    address private _owner;
    address private _payee;
    string private _uri;
    uint _tokenId = 1;

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

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

    // map address to num tokens owned
    mapping(address => uint256) _tokenCount;
    // map tokenId to address of owner
    mapping(uint256 => address) _tokensOwned;

    constructor(
        address payee,
        string memory uri
    ) ERC721("LilyPass", "LP") {
        _owner = msg.sender;
        _payee = payee;
        _uri = uri;
        pause();
    }

    function setPayee(address addr) public onlyOwner {
        _payee = addr;
    } 

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

    // @dev surface cost to mint
    function price() public view returns (uint256) {
        return _price;
    }

    // @dev add amount to current available supply
    function setAvailable(uint256 amount) public onlyOwner whenPaused {
        require((availableSupply + amount) < maxSupply, "exceeds public supply");
        availableSupply = availableSupply + amount;
    }

    // @dev change cost to mint protects against price movement
    function setPrice(uint256 amount) public onlyOwner {
        _price = amount;
    }

    // @dev returns number of tokens owned by address
    function tokenCount(address addr) public view returns (uint256) {
        return _tokenCount[addr];
    }
    // @dev website mint function
    function mint(uint256 num) public payable whenNotPaused nonReentrant {
        require(
            totalSupply() + num <= availableSupply,
            "no availability"
        );
        require(
            totalSupply() + num <= publicSupply,
            "resource exhausted"
        );
        require(num <= maxPerTx, "request limit exceeded");
        require(price() * num <= msg.value, "not enough funds");
        require(_tokenCount[msg.sender] < 5, "token max reached");
        require(_tokenCount[msg.sender] + num < 5, "exceeds token limit");

        for (uint256 i = 0; i < num; i++) {
            _tokenCount[msg.sender] += 1;
            _tokensOwned[_tokenId] = msg.sender;
            _mint(msg.sender, _tokenId);
            _tokenId++;
        }
    }
    // @dev owner can safely mint
    function safeMint(address to, uint256 num) public onlyOwner nonReentrant {
        require(
            totalSupply() + num <= availableSupply,
            "no availability"
        );
        require(
            totalSupply()  + num <= maxSupply,
            "resource exhausted"
        );
        _safeMint(to, _tokenId);
        _tokenId++;
    }
    function pause() public onlyOwner {
        _pause();
    }

    function unpause() public onlyOwner {
        _unpause();
    }
    // @dev withdraw funds
    function withdraw() public onlyOwner {
        (bool success, ) = _payee.call{value: address(this).balance}("");
        require(success, "tx failed");
    }
    // The following functions are overrides required by Solidity.
    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
    /**
     * @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(), "caller is not owner");
        _;
    }
    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual returns (uint256) {
        return _allTokens.length;
    }
    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }
    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

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

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

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

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override(ERC721) {
        super._beforeTokenTransfer(from, to, tokenId);
        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        }
    }

    function _burn(uint256 tokenId)
        internal
        override(ERC721, ERC721URIStorage)
    {
        require(1 <= _tokenCount[msg.sender], "nothing to burn");
        _tokenCount[msg.sender] = _tokenCount[msg.sender] - 1;
        super._burn(tokenId);
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721, ERC721URIStorage)
        returns (string memory)
        
    {
        return  string(abi.encodePacked(super.tokenURI(tokenId), ".json"));
    }
}

File 2 of 13 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 3 of 13 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

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 make 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 4 of 13 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        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);

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

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

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

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer 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.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 13 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

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

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @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 override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

File 6 of 13 : Context.sol
// SPDX-License-Identifier: MIT

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 7 of 13 : IERC721.sol
// SPDX-License-Identifier: MIT

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 8 of 13 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

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 9 of 13 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

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 10 of 13 : Address.sol
// SPDX-License-Identifier: MIT

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 13 : Strings.sol
// SPDX-License-Identifier: MIT

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 12 of 13 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 13 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT

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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"payee","type":"address"},{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"availableSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","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":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"num","type":"uint256"}],"name":"safeMint","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":"uint256","name":"amount","type":"uint256"}],"name":"setAvailable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setPayee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setPrice","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":"address","name":"addr","type":"address"}],"name":"tokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260046009556000600a5560be600b5560c9600c55668e1bc9bf040000600d5560016011553480156200003557600080fd5b5060405162002a5e38038062002a5e8339810160408190526200005891620002c8565b60408051808201825260088152674c696c795061737360c01b60208083019182528351808501909452600284526104c560f41b908401528151919291620000a29160009162000222565b508051620000b890600190602084019062000222565b50506001600755506008805460ff19169055600e8054336001600160a01b031991821617909155600f80549091166001600160a01b03841617905580516200010890601090602084019062000222565b50620001136200011b565b505062000414565b600e546001600160a01b031633146200017b5760405162461bcd60e51b815260206004820152601360248201527f63616c6c6572206973206e6f74206f776e65720000000000000000000000000060448201526064015b60405180910390fd5b6200018562000187565b565b60085460ff1615620001cf5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640162000172565b6008805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620002053390565b6040516001600160a01b03909116815260200160405180910390a1565b8280546200023090620003c1565b90600052602060002090601f0160209004810192826200025457600085556200029f565b82601f106200026f57805160ff19168380011785556200029f565b828001600101855582156200029f579182015b828111156200029f57825182559160200191906001019062000282565b50620002ad929150620002b1565b5090565b5b80821115620002ad5760008155600101620002b2565b60008060408385031215620002db578182fd5b82516001600160a01b0381168114620002f2578283fd5b602084810151919350906001600160401b038082111562000311578384fd5b818601915086601f83011262000325578384fd5b8151818111156200033a576200033a620003fe565b604051601f8201601f19908116603f01168101908382118183101715620003655762000365620003fe565b8160405282815289868487010111156200037d578687fd5b8693505b82841015620003a0578484018601518185018701529285019262000381565b82841115620003b157868684830101525b8096505050505050509250929050565b600181811c90821680620003d657607f821691505b60208210811415620003f857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61263a80620004246000396000f3fe6080604052600436106101c25760003560e01c806370a08231116100f7578063a0712d6811610095578063c87b56dd11610064578063c87b56dd146104cb578063d5abeb01146104eb578063d9f2e8ce14610501578063e985e9c51461052157600080fd5b8063a0712d6814610458578063a14481941461046b578063a22cb4651461048b578063b88d4fde146104ab57600080fd5b80638da5cb5b116100d15780638da5cb5b146103f057806391b7f5ed1461040e57806395d89b411461042e578063a035b1fe1461044357600080fd5b806370a08231146103a55780637ecc2b56146103c55780638456cb59146103db57600080fd5b80633f4ba83a1161016457806356225a091161013e57806356225a09146103215780635c975abb146103575780635e84d7231461036f5780636352211e1461038557600080fd5b80633f4ba83a146102cc578063410459ad146102e157806342842e0e1461030157600080fd5b8063095ea7b3116101a0578063095ea7b31461025657806318160ddd1461027857806323b872dd146102975780633ccfd60b146102b757600080fd5b806301ffc9a7146101c757806306fdde03146101fc578063081812fc1461021e575b600080fd5b3480156101d357600080fd5b506101e76101e2366004612379565b61056a565b60405190151581526020015b60405180910390f35b34801561020857600080fd5b5061021161057b565b6040516101f391906124a1565b34801561022a57600080fd5b5061023e6102393660046123b1565b61060d565b6040516001600160a01b0390911681526020016101f3565b34801561026257600080fd5b50610276610271366004612350565b6106a7565b005b34801561028457600080fd5b506012545b6040519081526020016101f3565b3480156102a357600080fd5b506102766102b2366004612206565b6107d9565b3480156102c357600080fd5b50610276610860565b3480156102d857600080fd5b50610276610956565b3480156102ed57600080fd5b506102766102fc3660046121ba565b6109b0565b34801561030d57600080fd5b5061027661031c366004612206565b610a22565b34801561032d57600080fd5b5061028961033c3660046121ba565b6001600160a01b031660009081526014602052604090205490565b34801561036357600080fd5b5060085460ff166101e7565b34801561037b57600080fd5b50610289600b5481565b34801561039157600080fd5b5061023e6103a03660046123b1565b610a3d565b3480156103b157600080fd5b506102896103c03660046121ba565b610ac8565b3480156103d157600080fd5b50610289600a5481565b3480156103e757600080fd5b50610276610b62565b3480156103fc57600080fd5b50600e546001600160a01b031661023e565b34801561041a57600080fd5b506102766104293660046123b1565b610bba565b34801561043a57600080fd5b50610211610c0f565b34801561044f57600080fd5b50600d54610289565b6102766104663660046123b1565b610c1e565b34801561047757600080fd5b50610276610486366004612350565b610fa4565b34801561049757600080fd5b506102766104a6366004612316565b611140565b3480156104b757600080fd5b506102766104c6366004612241565b611205565b3480156104d757600080fd5b506102116104e63660046123b1565b611293565b3480156104f757600080fd5b50610289600c5481565b34801561050d57600080fd5b5061027661051c3660046123b1565b6112c4565b34801561052d57600080fd5b506101e761053c3660046121d4565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000610575826113d8565b92915050565b60606000805461058a90612542565b80601f01602080910402602001604051908101604052809291908181526020018280546105b690612542565b80156106035780601f106105d857610100808354040283529160200191610603565b820191906000526020600020905b8154815290600101906020018083116105e657829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661068b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106b282610a3d565b9050806001600160a01b0316836001600160a01b0316141561073c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610682565b336001600160a01b03821614806107585750610758813361053c565b6107ca5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610682565b6107d48383611473565b505050565b6107e333826114e1565b6108555760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610682565b6107d48383836115d8565b600e546001600160a01b031633146108b05760405162461bcd60e51b815260206004820152601360248201527231b0b63632b91034b9903737ba1037bbb732b960691b6044820152606401610682565b600f546040516000916001600160a01b03169047908381818185875af1925050503d80600081146108fd576040519150601f19603f3d011682016040523d82523d6000602084013e610902565b606091505b50509050806109535760405162461bcd60e51b815260206004820152600960248201527f7478206661696c656400000000000000000000000000000000000000000000006044820152606401610682565b50565b600e546001600160a01b031633146109a65760405162461bcd60e51b815260206004820152601360248201527231b0b63632b91034b9903737ba1037bbb732b960691b6044820152606401610682565b6109ae6117b0565b565b600e546001600160a01b03163314610a005760405162461bcd60e51b815260206004820152601360248201527231b0b63632b91034b9903737ba1037bbb732b960691b6044820152606401610682565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6107d483838360405180602001604052806000815250611205565b6000818152600260205260408120546001600160a01b0316806105755760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610682565b60006001600160a01b038216610b465760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610682565b506001600160a01b031660009081526003602052604090205490565b600e546001600160a01b03163314610bb25760405162461bcd60e51b815260206004820152601360248201527231b0b63632b91034b9903737ba1037bbb732b960691b6044820152606401610682565b6109ae61184c565b600e546001600160a01b03163314610c0a5760405162461bcd60e51b815260206004820152601360248201527231b0b63632b91034b9903737ba1037bbb732b960691b6044820152606401610682565b600d55565b60606001805461058a90612542565b60085460ff1615610c715760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610682565b60026007541415610cc45760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610682565b6002600755600a5481610cd660125490565b610ce091906124b4565b1115610d2e5760405162461bcd60e51b815260206004820152600f60248201527f6e6f20617661696c6162696c69747900000000000000000000000000000000006044820152606401610682565b600b5481610d3b60125490565b610d4591906124b4565b1115610d935760405162461bcd60e51b815260206004820152601260248201527f7265736f757263652065786861757374656400000000000000000000000000006044820152606401610682565b600954811115610de55760405162461bcd60e51b815260206004820152601660248201527f72657175657374206c696d6974206578636565646564000000000000000000006044820152606401610682565b3481610df0600d5490565b610dfa91906124e0565b1115610e485760405162461bcd60e51b815260206004820152601060248201527f6e6f7420656e6f7567682066756e6473000000000000000000000000000000006044820152606401610682565b33600090815260146020526040902054600511610ea75760405162461bcd60e51b815260206004820152601160248201527f746f6b656e206d617820726561636865640000000000000000000000000000006044820152606401610682565b33600090815260146020526040902054600590610ec59083906124b4565b10610f125760405162461bcd60e51b815260206004820152601360248201527f6578636565647320746f6b656e206c696d6974000000000000000000000000006044820152606401610682565b60005b81811015610f9b57336000908152601460205260408120805460019290610f3d9084906124b4565b909155505060118054600090815260156020526040902080546001600160a01b031916339081179091559054610f7391906118d4565b60118054906000610f838361257d565b91905055508080610f939061257d565b915050610f15565b50506001600755565b600e546001600160a01b03163314610ff45760405162461bcd60e51b815260206004820152601360248201527231b0b63632b91034b9903737ba1037bbb732b960691b6044820152606401610682565b600260075414156110475760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610682565b6002600755600a548161105960125490565b61106391906124b4565b11156110b15760405162461bcd60e51b815260206004820152600f60248201527f6e6f20617661696c6162696c69747900000000000000000000000000000000006044820152606401610682565b600c54816110be60125490565b6110c891906124b4565b11156111165760405162461bcd60e51b815260206004820152601260248201527f7265736f757263652065786861757374656400000000000000000000000000006044820152606401610682565b61112282601154611a22565b601180549060006111328361257d565b909155505060016007555050565b6001600160a01b0382163314156111995760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610682565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61120f33836114e1565b6112815760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610682565b61128d84848484611a40565b50505050565b606061129e82611abe565b6040516020016112ae9190612424565b6040516020818303038152906040529050919050565b600e546001600160a01b031633146113145760405162461bcd60e51b815260206004820152601360248201527231b0b63632b91034b9903737ba1037bbb732b960691b6044820152606401610682565b60085460ff166113665760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610682565b600c5481600a5461137791906124b4565b106113c45760405162461bcd60e51b815260206004820152601560248201527f65786365656473207075626c696320737570706c7900000000000000000000006044820152606401610682565b80600a546113d291906124b4565b600a5550565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061143b57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061057557507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610575565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906114a882610a3d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661155a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610682565b600061156583610a3d565b9050806001600160a01b0316846001600160a01b031614806115a05750836001600160a01b03166115958461060d565b6001600160a01b0316145b806115d057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166115eb82610a3d565b6001600160a01b0316146116675760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610682565b6001600160a01b0382166116e25760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610682565b6116ed838383611c3c565b6116f8600082611473565b6001600160a01b03831660009081526003602052604081208054600192906117219084906124ff565b90915550506001600160a01b038216600090815260036020526040812080546001929061174f9084906124b4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60085460ff166118025760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610682565b6008805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60085460ff161561189f5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610682565b6008805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861182f3390565b6001600160a01b03821661192a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610682565b6000818152600260205260409020546001600160a01b03161561198f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610682565b61199b60008383611c3c565b6001600160a01b03821660009081526003602052604081208054600192906119c49084906124b4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b611a3c828260405180602001604052806000815250611ca9565b5050565b611a4b8484846115d8565b611a5784848484611d27565b61128d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610682565b6000818152600260205260409020546060906001600160a01b0316611b4b5760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f722060448201527f6e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006064820152608401610682565b60008281526006602052604081208054611b6490612542565b80601f0160208091040260200160405190810160405280929190818152602001828054611b9090612542565b8015611bdd5780601f10611bb257610100808354040283529160200191611bdd565b820191906000526020600020905b815481529060010190602001808311611bc057829003601f168201915b505050505090506000611bee611e7f565b9050805160001415611c01575092915050565b815115611c33578082604051602001611c1b9291906123f5565b60405160208183030381529060405292505050919050565b6115d084611e8e565b6001600160a01b038316611c9257611c9281601280546000838152601360205260408120829055600182018355919091527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec34440155565b6001600160a01b0382166107d4576107d481611f77565b611cb383836118d4565b611cc06000848484611d27565b6107d45760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610682565b60006001600160a01b0384163b15611e7457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611d6b903390899088908890600401612465565b602060405180830381600087803b158015611d8557600080fd5b505af1925050508015611db5575060408051601f3d908101601f19168201909252611db291810190612395565b60015b611e5a573d808015611de3576040519150601f19603f3d011682016040523d82523d6000602084013e611de8565b606091505b508051611e525760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610682565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506115d0565b506001949350505050565b60606010805461058a90612542565b6000818152600260205260409020546060906001600160a01b0316611f1b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610682565b6000611f25611e7f565b90506000815111611f455760405180602001604052806000815250611f70565b80611f4f84612050565b604051602001611f609291906123f5565b6040516020818303038152906040525b9392505050565b601254600090611f89906001906124ff565b60008381526013602052604081205460128054939450909284908110611fbf57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060128381548110611fee57634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260139091526040808220849055858252812055601280548061203457634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60608161209057505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156120ba57806120a48161257d565b91506120b39050600a836124cc565b9150612094565b60008167ffffffffffffffff8111156120e357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561210d576020820181803683370190505b5090505b84156115d0576121226001836124ff565b915061212f600a86612598565b61213a9060306124b4565b60f81b81838151811061215d57634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612197600a866124cc565b9450612111565b80356001600160a01b03811681146121b557600080fd5b919050565b6000602082840312156121cb578081fd5b611f708261219e565b600080604083850312156121e6578081fd5b6121ef8361219e565b91506121fd6020840161219e565b90509250929050565b60008060006060848603121561221a578081fd5b6122238461219e565b92506122316020850161219e565b9150604084013590509250925092565b60008060008060808587031215612256578081fd5b61225f8561219e565b935061226d6020860161219e565b925060408501359150606085013567ffffffffffffffff80821115612290578283fd5b818701915087601f8301126122a3578283fd5b8135818111156122b5576122b56125d8565b604051601f8201601f19908116603f011681019083821181831017156122dd576122dd6125d8565b816040528281528a60208487010111156122f5578586fd5b82602086016020830137918201602001949094529598949750929550505050565b60008060408385031215612328578182fd5b6123318361219e565b915060208301358015158114612345578182fd5b809150509250929050565b60008060408385031215612362578182fd5b61236b8361219e565b946020939093013593505050565b60006020828403121561238a578081fd5b8135611f70816125ee565b6000602082840312156123a6578081fd5b8151611f70816125ee565b6000602082840312156123c2578081fd5b5035919050565b600081518084526123e1816020860160208601612516565b601f01601f19169290920160200192915050565b60008351612407818460208801612516565b83519083019061241b818360208801612516565b01949350505050565b60008251612436818460208701612516565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000920191825250600501919050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261249760808301846123c9565b9695505050505050565b602081526000611f7060208301846123c9565b600082198211156124c7576124c76125ac565b500190565b6000826124db576124db6125c2565b500490565b60008160001904831182151516156124fa576124fa6125ac565b500290565b600082821015612511576125116125ac565b500390565b60005b83811015612531578181015183820152602001612519565b8381111561128d5750506000910152565b600181811c9082168061255657607f821691505b6020821081141561257757634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612591576125916125ac565b5060010190565b6000826125a7576125a76125c2565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461095357600080fdfea2646970667358221220b0b23399423e46a5b0cc37474c75ab5b2c44c79b3ecb1bce5c433ab5b5ce8c9764736f6c63430008040033000000000000000000000000ad2105829d8b58ed86709596c32558d7e9eae9ca00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000043697066733a2f2f6261667962656962636c6267747976347373797862796d6f6478737a6676726b707862736b766e70346e736d78657a346134366476707835676c612f0000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101c25760003560e01c806370a08231116100f7578063a0712d6811610095578063c87b56dd11610064578063c87b56dd146104cb578063d5abeb01146104eb578063d9f2e8ce14610501578063e985e9c51461052157600080fd5b8063a0712d6814610458578063a14481941461046b578063a22cb4651461048b578063b88d4fde146104ab57600080fd5b80638da5cb5b116100d15780638da5cb5b146103f057806391b7f5ed1461040e57806395d89b411461042e578063a035b1fe1461044357600080fd5b806370a08231146103a55780637ecc2b56146103c55780638456cb59146103db57600080fd5b80633f4ba83a1161016457806356225a091161013e57806356225a09146103215780635c975abb146103575780635e84d7231461036f5780636352211e1461038557600080fd5b80633f4ba83a146102cc578063410459ad146102e157806342842e0e1461030157600080fd5b8063095ea7b3116101a0578063095ea7b31461025657806318160ddd1461027857806323b872dd146102975780633ccfd60b146102b757600080fd5b806301ffc9a7146101c757806306fdde03146101fc578063081812fc1461021e575b600080fd5b3480156101d357600080fd5b506101e76101e2366004612379565b61056a565b60405190151581526020015b60405180910390f35b34801561020857600080fd5b5061021161057b565b6040516101f391906124a1565b34801561022a57600080fd5b5061023e6102393660046123b1565b61060d565b6040516001600160a01b0390911681526020016101f3565b34801561026257600080fd5b50610276610271366004612350565b6106a7565b005b34801561028457600080fd5b506012545b6040519081526020016101f3565b3480156102a357600080fd5b506102766102b2366004612206565b6107d9565b3480156102c357600080fd5b50610276610860565b3480156102d857600080fd5b50610276610956565b3480156102ed57600080fd5b506102766102fc3660046121ba565b6109b0565b34801561030d57600080fd5b5061027661031c366004612206565b610a22565b34801561032d57600080fd5b5061028961033c3660046121ba565b6001600160a01b031660009081526014602052604090205490565b34801561036357600080fd5b5060085460ff166101e7565b34801561037b57600080fd5b50610289600b5481565b34801561039157600080fd5b5061023e6103a03660046123b1565b610a3d565b3480156103b157600080fd5b506102896103c03660046121ba565b610ac8565b3480156103d157600080fd5b50610289600a5481565b3480156103e757600080fd5b50610276610b62565b3480156103fc57600080fd5b50600e546001600160a01b031661023e565b34801561041a57600080fd5b506102766104293660046123b1565b610bba565b34801561043a57600080fd5b50610211610c0f565b34801561044f57600080fd5b50600d54610289565b6102766104663660046123b1565b610c1e565b34801561047757600080fd5b50610276610486366004612350565b610fa4565b34801561049757600080fd5b506102766104a6366004612316565b611140565b3480156104b757600080fd5b506102766104c6366004612241565b611205565b3480156104d757600080fd5b506102116104e63660046123b1565b611293565b3480156104f757600080fd5b50610289600c5481565b34801561050d57600080fd5b5061027661051c3660046123b1565b6112c4565b34801561052d57600080fd5b506101e761053c3660046121d4565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000610575826113d8565b92915050565b60606000805461058a90612542565b80601f01602080910402602001604051908101604052809291908181526020018280546105b690612542565b80156106035780601f106105d857610100808354040283529160200191610603565b820191906000526020600020905b8154815290600101906020018083116105e657829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661068b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106b282610a3d565b9050806001600160a01b0316836001600160a01b0316141561073c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610682565b336001600160a01b03821614806107585750610758813361053c565b6107ca5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610682565b6107d48383611473565b505050565b6107e333826114e1565b6108555760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610682565b6107d48383836115d8565b600e546001600160a01b031633146108b05760405162461bcd60e51b815260206004820152601360248201527231b0b63632b91034b9903737ba1037bbb732b960691b6044820152606401610682565b600f546040516000916001600160a01b03169047908381818185875af1925050503d80600081146108fd576040519150601f19603f3d011682016040523d82523d6000602084013e610902565b606091505b50509050806109535760405162461bcd60e51b815260206004820152600960248201527f7478206661696c656400000000000000000000000000000000000000000000006044820152606401610682565b50565b600e546001600160a01b031633146109a65760405162461bcd60e51b815260206004820152601360248201527231b0b63632b91034b9903737ba1037bbb732b960691b6044820152606401610682565b6109ae6117b0565b565b600e546001600160a01b03163314610a005760405162461bcd60e51b815260206004820152601360248201527231b0b63632b91034b9903737ba1037bbb732b960691b6044820152606401610682565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6107d483838360405180602001604052806000815250611205565b6000818152600260205260408120546001600160a01b0316806105755760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610682565b60006001600160a01b038216610b465760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610682565b506001600160a01b031660009081526003602052604090205490565b600e546001600160a01b03163314610bb25760405162461bcd60e51b815260206004820152601360248201527231b0b63632b91034b9903737ba1037bbb732b960691b6044820152606401610682565b6109ae61184c565b600e546001600160a01b03163314610c0a5760405162461bcd60e51b815260206004820152601360248201527231b0b63632b91034b9903737ba1037bbb732b960691b6044820152606401610682565b600d55565b60606001805461058a90612542565b60085460ff1615610c715760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610682565b60026007541415610cc45760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610682565b6002600755600a5481610cd660125490565b610ce091906124b4565b1115610d2e5760405162461bcd60e51b815260206004820152600f60248201527f6e6f20617661696c6162696c69747900000000000000000000000000000000006044820152606401610682565b600b5481610d3b60125490565b610d4591906124b4565b1115610d935760405162461bcd60e51b815260206004820152601260248201527f7265736f757263652065786861757374656400000000000000000000000000006044820152606401610682565b600954811115610de55760405162461bcd60e51b815260206004820152601660248201527f72657175657374206c696d6974206578636565646564000000000000000000006044820152606401610682565b3481610df0600d5490565b610dfa91906124e0565b1115610e485760405162461bcd60e51b815260206004820152601060248201527f6e6f7420656e6f7567682066756e6473000000000000000000000000000000006044820152606401610682565b33600090815260146020526040902054600511610ea75760405162461bcd60e51b815260206004820152601160248201527f746f6b656e206d617820726561636865640000000000000000000000000000006044820152606401610682565b33600090815260146020526040902054600590610ec59083906124b4565b10610f125760405162461bcd60e51b815260206004820152601360248201527f6578636565647320746f6b656e206c696d6974000000000000000000000000006044820152606401610682565b60005b81811015610f9b57336000908152601460205260408120805460019290610f3d9084906124b4565b909155505060118054600090815260156020526040902080546001600160a01b031916339081179091559054610f7391906118d4565b60118054906000610f838361257d565b91905055508080610f939061257d565b915050610f15565b50506001600755565b600e546001600160a01b03163314610ff45760405162461bcd60e51b815260206004820152601360248201527231b0b63632b91034b9903737ba1037bbb732b960691b6044820152606401610682565b600260075414156110475760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610682565b6002600755600a548161105960125490565b61106391906124b4565b11156110b15760405162461bcd60e51b815260206004820152600f60248201527f6e6f20617661696c6162696c69747900000000000000000000000000000000006044820152606401610682565b600c54816110be60125490565b6110c891906124b4565b11156111165760405162461bcd60e51b815260206004820152601260248201527f7265736f757263652065786861757374656400000000000000000000000000006044820152606401610682565b61112282601154611a22565b601180549060006111328361257d565b909155505060016007555050565b6001600160a01b0382163314156111995760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610682565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61120f33836114e1565b6112815760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610682565b61128d84848484611a40565b50505050565b606061129e82611abe565b6040516020016112ae9190612424565b6040516020818303038152906040529050919050565b600e546001600160a01b031633146113145760405162461bcd60e51b815260206004820152601360248201527231b0b63632b91034b9903737ba1037bbb732b960691b6044820152606401610682565b60085460ff166113665760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610682565b600c5481600a5461137791906124b4565b106113c45760405162461bcd60e51b815260206004820152601560248201527f65786365656473207075626c696320737570706c7900000000000000000000006044820152606401610682565b80600a546113d291906124b4565b600a5550565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061143b57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061057557507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610575565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906114a882610a3d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661155a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610682565b600061156583610a3d565b9050806001600160a01b0316846001600160a01b031614806115a05750836001600160a01b03166115958461060d565b6001600160a01b0316145b806115d057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166115eb82610a3d565b6001600160a01b0316146116675760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610682565b6001600160a01b0382166116e25760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610682565b6116ed838383611c3c565b6116f8600082611473565b6001600160a01b03831660009081526003602052604081208054600192906117219084906124ff565b90915550506001600160a01b038216600090815260036020526040812080546001929061174f9084906124b4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60085460ff166118025760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610682565b6008805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60085460ff161561189f5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610682565b6008805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861182f3390565b6001600160a01b03821661192a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610682565b6000818152600260205260409020546001600160a01b03161561198f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610682565b61199b60008383611c3c565b6001600160a01b03821660009081526003602052604081208054600192906119c49084906124b4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b611a3c828260405180602001604052806000815250611ca9565b5050565b611a4b8484846115d8565b611a5784848484611d27565b61128d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610682565b6000818152600260205260409020546060906001600160a01b0316611b4b5760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f722060448201527f6e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006064820152608401610682565b60008281526006602052604081208054611b6490612542565b80601f0160208091040260200160405190810160405280929190818152602001828054611b9090612542565b8015611bdd5780601f10611bb257610100808354040283529160200191611bdd565b820191906000526020600020905b815481529060010190602001808311611bc057829003601f168201915b505050505090506000611bee611e7f565b9050805160001415611c01575092915050565b815115611c33578082604051602001611c1b9291906123f5565b60405160208183030381529060405292505050919050565b6115d084611e8e565b6001600160a01b038316611c9257611c9281601280546000838152601360205260408120829055600182018355919091527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec34440155565b6001600160a01b0382166107d4576107d481611f77565b611cb383836118d4565b611cc06000848484611d27565b6107d45760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610682565b60006001600160a01b0384163b15611e7457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611d6b903390899088908890600401612465565b602060405180830381600087803b158015611d8557600080fd5b505af1925050508015611db5575060408051601f3d908101601f19168201909252611db291810190612395565b60015b611e5a573d808015611de3576040519150601f19603f3d011682016040523d82523d6000602084013e611de8565b606091505b508051611e525760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610682565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506115d0565b506001949350505050565b60606010805461058a90612542565b6000818152600260205260409020546060906001600160a01b0316611f1b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610682565b6000611f25611e7f565b90506000815111611f455760405180602001604052806000815250611f70565b80611f4f84612050565b604051602001611f609291906123f5565b6040516020818303038152906040525b9392505050565b601254600090611f89906001906124ff565b60008381526013602052604081205460128054939450909284908110611fbf57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060128381548110611fee57634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260139091526040808220849055858252812055601280548061203457634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60608161209057505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156120ba57806120a48161257d565b91506120b39050600a836124cc565b9150612094565b60008167ffffffffffffffff8111156120e357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561210d576020820181803683370190505b5090505b84156115d0576121226001836124ff565b915061212f600a86612598565b61213a9060306124b4565b60f81b81838151811061215d57634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612197600a866124cc565b9450612111565b80356001600160a01b03811681146121b557600080fd5b919050565b6000602082840312156121cb578081fd5b611f708261219e565b600080604083850312156121e6578081fd5b6121ef8361219e565b91506121fd6020840161219e565b90509250929050565b60008060006060848603121561221a578081fd5b6122238461219e565b92506122316020850161219e565b9150604084013590509250925092565b60008060008060808587031215612256578081fd5b61225f8561219e565b935061226d6020860161219e565b925060408501359150606085013567ffffffffffffffff80821115612290578283fd5b818701915087601f8301126122a3578283fd5b8135818111156122b5576122b56125d8565b604051601f8201601f19908116603f011681019083821181831017156122dd576122dd6125d8565b816040528281528a60208487010111156122f5578586fd5b82602086016020830137918201602001949094529598949750929550505050565b60008060408385031215612328578182fd5b6123318361219e565b915060208301358015158114612345578182fd5b809150509250929050565b60008060408385031215612362578182fd5b61236b8361219e565b946020939093013593505050565b60006020828403121561238a578081fd5b8135611f70816125ee565b6000602082840312156123a6578081fd5b8151611f70816125ee565b6000602082840312156123c2578081fd5b5035919050565b600081518084526123e1816020860160208601612516565b601f01601f19169290920160200192915050565b60008351612407818460208801612516565b83519083019061241b818360208801612516565b01949350505050565b60008251612436818460208701612516565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000920191825250600501919050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261249760808301846123c9565b9695505050505050565b602081526000611f7060208301846123c9565b600082198211156124c7576124c76125ac565b500190565b6000826124db576124db6125c2565b500490565b60008160001904831182151516156124fa576124fa6125ac565b500290565b600082821015612511576125116125ac565b500390565b60005b83811015612531578181015183820152602001612519565b8381111561128d5750506000910152565b600181811c9082168061255657607f821691505b6020821081141561257757634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612591576125916125ac565b5060010190565b6000826125a7576125a76125c2565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461095357600080fdfea2646970667358221220b0b23399423e46a5b0cc37474c75ab5b2c44c79b3ecb1bce5c433ab5b5ce8c9764736f6c63430008040033

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

000000000000000000000000ad2105829d8b58ed86709596c32558d7e9eae9ca00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000043697066733a2f2f6261667962656962636c6267747976347373797862796d6f6478737a6676726b707862736b766e70346e736d78657a346134366476707835676c612f0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : payee (address): 0xaD2105829D8b58Ed86709596c32558d7E9eae9cA
Arg [1] : uri (string): ipfs://bafybeibclbgtyv4ssyxbymodxszfvrkpxbskvnp4nsmxez4a46dvpx5gla/

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000ad2105829d8b58ed86709596c32558d7e9eae9ca
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [3] : 697066733a2f2f6261667962656962636c6267747976347373797862796d6f64
Arg [4] : 78737a6676726b707862736b766e70346e736d78657a34613436647670783567
Arg [5] : 6c612f0000000000000000000000000000000000000000000000000000000000


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

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