ETH Price: $3,923.13 (+6.90%)

Token

Guild A Bear Phase 1 (GABP1)
 

Overview

Max Total Supply

4,000 GABP1

Holders

997

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
hentaipleasure.eth
Balance
1 GABP1
0x165d163657ed71b588b2c05c7e477dabfb214c87
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:
GABPhase1

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : GABPhase1.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/****************************************
 * @author: BriThaCryptoGuy             *
 *          Blimpie by squeebo_nft      *
 ****************************************
 *   Blimpie-ERC721 provides low-gas    *
 *           mints + transfers          *
 ****************************************/

import "./Blimpie/Delegated.sol";
import "./Blimpie/ERC721EnumerableLite.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";

contract GABPhase1 is Delegated, ERC721EnumerableLite, PaymentSplitter {
  using Strings for uint;

  uint public MAX_ORDER  = 100;
  uint public MAX_SUPPLY = 4000;
  uint public PRICE      = 0.04 ether;

  bool public isActive   = false;
  bool private isPresale = true;  

  string private _baseTokenURI = '';
  string private _notRevealedURI = '';
  string private _tokenURISuffix = '';

  address[] private addressList = [
    0x753D2BCc6109BcB201c6EB5f0d992E3c739Fad34,
    0x327EC442254e9Dc1dd91c2156725e0A523C06850,
    0xA3292Fa45d71E1cDB6F177206cb42D57403Ac357,
    0x57ca1a20125bd9ea739165142ecb9324710F71BD
  ];
  uint[] private shareList = [
    60,
    15,
    15,
    10
  ];
  mapping(address => bool) private presale;  

  constructor()
    ERC721B("Guild A Bear Phase 1", "GABP1", 1)
    PaymentSplitter( addressList, shareList ){      
  }

  //external

  fallback() external payable {}

  function mint( uint quantity ) external payable {
    require( isActive,                      "Sale is not active"        );
    require( quantity <= MAX_ORDER,         "Order too big"             );
    if (presale[msg.sender] == true && isPresale == true){
      require( msg.value >= 0.03 ether * quantity, "Ether sent is not correct" );
    } else {
      require( msg.value >= PRICE * quantity, "Ether sent is not correct" );
    }    

    uint supply = totalSupply();
    require( supply + quantity <= MAX_SUPPLY, "Mint/order exceeds supply" );
    for(uint i; i < quantity; ++i){
      _mint( msg.sender, supply + (i+1));
    }
  }

  //onlyDelegates
  function mintTo(uint[] calldata quantity, address[] calldata recipient) external payable onlyDelegates{
    require(quantity.length == recipient.length, "Must provide equal quantities and recipients" );

    uint totalQuantity;
    uint supply = totalSupply();
    for(uint i; i < quantity.length; ++i){
      totalQuantity += quantity[i];
    }
    require( supply + totalQuantity < MAX_SUPPLY, "Mint/order exceeds supply" );

    for(uint i; i < recipient.length; ++i){
      for(uint j; j < quantity[i]; ++j){
        _mint( recipient[i], supply + (i+1));
      }
    }
  }

  function setActive(bool isActive_) external onlyDelegates{
    require( isActive != isActive_, "New value matches old" );
    isActive = isActive_;
  }

  function setBaseURI(string calldata _newBaseURI, string calldata _newSuffix) external onlyDelegates{
    _baseTokenURI = _newBaseURI;
    _tokenURISuffix = _newSuffix;
  }

  function setNotRevealedURI(string calldata _newNotRevealedURI) external onlyDelegates{
    _notRevealedURI = _newNotRevealedURI;
  }

  function setMaxOrder(uint maxOrder) external onlyDelegates{
    require( MAX_ORDER != maxOrder, "New value matches old" );
    MAX_ORDER = maxOrder;
  }

  function setPrice(uint price ) external onlyDelegates{
    require( PRICE != price, "New value matches old" );
    PRICE = price;
  }


  //onlyOwner
  function setMaxSupply(uint maxSupply) external onlyOwner{
    require( MAX_SUPPLY != maxSupply, "New value matches old" );
    require( maxSupply >= totalSupply(), "Specified supply is lower than current balance" );
    MAX_SUPPLY = maxSupply;
  }

  function setPresale(address[] calldata _presale) external onlyOwner{
    for(uint i = 0; i < _presale.length; i++){
      presale[_presale[i]] = true;
    }
  } 


  //public
  function tokenURI(uint tokenId) external view virtual override returns (string memory) {
    require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

    if (totalSupply() < 2000) {
      return _notRevealedURI;
    }

    return string(abi.encodePacked(_baseTokenURI, tokenId.toString(), _tokenURISuffix));
  }

  function _mint(address to, uint tokenId) internal virtual override {
    _owners.push(to);
    emit Transfer(address(0), to, tokenId);
  }
}

File 2 of 18 : IBatch.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

interface IBatch {
  function isOwnerOf( address account, uint[] calldata tokenIds ) external view returns( bool );
  function transferBatch( address from, address to, uint[] calldata tokenIds, bytes calldata data ) external;
  function walletOfOwner( address account ) external view returns( uint[] memory );
}

File 3 of 18 : ERC721EnumerableLite.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

/****************************************
 * @author: squeebo_nft                 *
 * @team:   GoldenX                     *
 ****************************************
 *   Blimpie-ERC721 provides low-gas    *
 *           mints + transfers          *
 ****************************************/

import "./ERC721B.sol";
import "./IBatch.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

abstract contract ERC721EnumerableLite is ERC721B, IBatch, IERC721Enumerable {
    function isOwnerOf( address account, uint[] calldata tokenIds ) external view override returns( bool ){
        for(uint i; i < tokenIds.length; ++i ){
            if( _owners[ tokenIds[i] ] != account )
                return false;
        }

        return true;
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721B) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    function tokenOfOwnerByIndex(address owner, uint index) public view override returns (uint tokenId) {
        uint count;
        for( uint i; i < _owners.length; ++i ){
            if( owner == _owners[i] ){
                if( count == index )
                    return i;
                else
                    ++count;
            }
        }

        require(false, "ERC721Enumerable: owner index out of bounds");
    }

    function tokenByIndex(uint index) external view virtual override returns (uint) {
        require(index < totalSupply(), "ERC721Enumerable: global index out of bounds");
        return index;
    }

    function totalSupply() public view virtual override( ERC721B, IERC721Enumerable ) returns (uint) {
        return _owners.length - _offset;
    }

    function transferBatch( address from, address to, uint[] calldata tokenIds, bytes calldata data ) external override{
        for(uint i; i < tokenIds.length; ++i ){
            safeTransferFrom( from, to, tokenIds[i], data );
        }
    }

    function walletOfOwner( address account ) external view override returns( uint[] memory ){
        uint quantity = balanceOf( account );
        uint[] memory wallet = new uint[]( quantity );
        for( uint i; i < quantity; ++i ){
            wallet[i] = tokenOfOwnerByIndex( account, i );
        }
        return wallet;
    }
}

File 4 of 18 : ERC721B.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

/****************************************
 * @author: squeebo_nft                 *
 * @team:   GoldenX                     *
 ****************************************
 *   Blimpie-ERC721 provides low-gas    *
 *           mints + transfers          *
 ****************************************/

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

abstract contract ERC721B is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;

    string private _name;
    string private _symbol;

    uint internal _offset;
    address[] internal _owners;

    mapping(uint => address) private _tokenApprovals;
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    constructor(string memory name_, string memory symbol_, uint offset) {
        _name = name_;
        _symbol = symbol_;
        _offset = offset;
        for(uint i; i < _offset; ++i ){
            _owners.push(address(0));
        }
    }

    //public
    function balanceOf(address owner) public view virtual override returns (uint) {
        require(owner != address(0), "ERC721: balance query for the zero address");

        uint count;
        for( uint i; i < _owners.length; ++i ){
          if( owner == _owners[i] )
            ++count;
        }
        return count;
    }

    function name() external view virtual override returns (string memory) {
        return _name;
    }

    function next() public view returns( uint ){
        return _owners.length;
    }

    function ownerOf(uint tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

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

    function symbol() external view virtual override returns (string memory) {
        return _symbol;
    }

    function totalSupply() public view virtual returns (uint) {
        return _owners.length - _offset;
    }


    function approve(address to, uint tokenId) external virtual override {
        address owner = ERC721B.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);
    }

    function getApproved(uint tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");
        return _tokenApprovals[tokenId];
    }

    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    function setApprovalForAll(address operator, bool approved) external virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");
        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    function transferFrom(
        address from,
        address to,
        uint 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);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint tokenId
    ) external virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    function safeTransferFrom(
        address from,
        address to,
        uint tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }


    //internal
    function _safeTransfer(
        address from,
        address to,
        uint tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    function _exists(uint tokenId) internal view virtual returns (bool) {
        return tokenId < _owners.length && _owners[tokenId] != address(0);
    }

    function _isApprovedOrOwner(address spender, uint tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721B.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    function _safeMint(address to, uint tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    function _safeMint(
        address to,
        uint tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    function _mint(address to, uint 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);
        _owners.push(to);

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

    function _burn(uint tokenId) internal virtual {
        address owner = ERC721B.ownerOf(tokenId);

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

        // Clear approvals
        _approve(address(0), tokenId);
        _owners[tokenId] = address(0);

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

    function _transfer(
        address from,
        address to,
        uint tokenId
    ) internal virtual {
        require(ERC721B.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);
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    function _approve(address to, uint tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721B.ownerOf(tokenId), to, tokenId);
    }

    function _checkOnERC721Received(
        address from,
        address to,
        uint 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;
        }
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint tokenId
    ) internal virtual {}
}

File 5 of 18 : Delegated.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

/***********************
* @author: squeebo_nft *
************************/

import "@openzeppelin/contracts/access/Ownable.sol";

contract Delegated is Ownable{
  mapping(address => bool) internal _delegates;

  constructor(){
    _delegates[owner()] = true;
  }

  modifier onlyDelegates {
    require(_delegates[msg.sender], "Invalid delegate" );
    _;
  }

  //onlyOwner
  function isDelegate( address addr ) external view onlyOwner returns ( bool ){
    return _delegates[addr];
  }

  function setDelegate( address addr, bool isDelegate_ ) external onlyOwner{
    _delegates[addr] = isDelegate_;
  }

  function transferOwnership(address newOwner) public virtual override onlyOwner {
    _delegates[newOwner] = true;
    super.transferOwnership( newOwner );
  }
}

File 6 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 7 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 9 of 18 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 10 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 15 of 18 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 17 of 18 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (finance/PaymentSplitter.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/utils/SafeERC20.sol";
import "../utils/Address.sol";
import "../utils/Context.sol";

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 *
 * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and
 * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you
 * to run tests before sending real value to this contract.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    mapping(IERC20 => uint256) private _erc20TotalReleased;
    mapping(IERC20 => mapping(address => uint256)) private _erc20Released;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive() external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

    /**
     * @dev Getter for the total shares held by payees.
     */
    function totalShares() public view returns (uint256) {
        return _totalShares;
    }

    /**
     * @dev Getter for the total amount of Ether already released.
     */
    function totalReleased() public view returns (uint256) {
        return _totalReleased;
    }

    /**
     * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20
     * contract.
     */
    function totalReleased(IERC20 token) public view returns (uint256) {
        return _erc20TotalReleased[token];
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Getter for the amount of Ether already released to a payee.
     */
    function released(address account) public view returns (uint256) {
        return _released[account];
    }

    /**
     * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an
     * IERC20 contract.
     */
    function released(IERC20 token, address account) public view returns (uint256) {
        return _erc20Released[token][account];
    }

    /**
     * @dev Getter for the address of the payee number `index`.
     */
    function payee(uint256 index) public view returns (address) {
        return _payees[index];
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = address(this).balance + totalReleased();
        uint256 payment = _pendingPayment(account, totalReceived, released(account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _released[account] += payment;
        _totalReleased += payment;

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their
     * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20
     * contract.
     */
    function release(IERC20 token, address account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token);
        uint256 payment = _pendingPayment(account, totalReceived, released(token, account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _erc20Released[token][account] += payment;
        _erc20TotalReleased[token] += payment;

        SafeERC20.safeTransfer(token, account, payment);
        emit ERC20PaymentReleased(token, account, payment);
    }

    /**
     * @dev internal logic for computing the pending payment of an `account` given the token historical balances and
     * already released amounts.
     */
    function _pendingPayment(
        address account,
        uint256 totalReceived,
        uint256 alreadyReleased
    ) private view returns (uint256) {
        return (totalReceived * _shares[account]) / _totalShares - alreadyReleased;
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "PaymentSplitter: account is the zero address");
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(_shares[account] == 0, "PaymentSplitter: account already has shares");

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    }
}

File 18 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"MAX_ORDER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isDelegate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"isOwnerOf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"quantity","type":"uint256[]"},{"internalType":"address[]","name":"recipient","type":"address[]"}],"name":"mintTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"next","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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":"bool","name":"isActive_","type":"bool"}],"name":"setActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"},{"internalType":"string","name":"_newSuffix","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"isDelegate_","type":"bool"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxOrder","type":"uint256"}],"name":"setMaxOrder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newNotRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_presale","type":"address[]"}],"name":"setPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transferBatch","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":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

6064600f55610fa0601055668e1bc9bf0400006011556012805461ffff191661010017905560a06040819052600060808190526200004091601391620006bc565b506040805160208101918290526000908190526200006191601491620006bc565b506040805160208101918290526000908190526200008291601591620006bc565b506040805160808101825273753d2bcc6109bcb201c6eb5f0d992e3c739fad34815273327ec442254e9dc1dd91c2156725e0a523c06850602082015273a3292fa45d71e1cdb6f177206cb42d57403ac357918101919091527357ca1a20125bd9ea739165142ecb9324710f71bd6060820152620001049060169060046200074b565b5060408051608081018252603c8152600f6020820181905291810191909152600a60608201526200013a906017906004620007a3565b503480156200014857600080fd5b506016805480602002602001604051908101604052809291908181526020018280548015620001a157602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831162000182575b50505050506017805480602002602001604051908101604052809291908181526020018280548015620001f457602002820191906000526020600020905b815481526020019060010190808311620001df575b50505050506040518060400160405280601481526020017f4775696c6420412042656172205068617365203100000000000000000000000081525060405180604001604052806005815260200164474142503160d81b815250600162000269620002636200047a60201b60201c565b6200047e565b6001806000620002816000546001600160a01b031690565b6001600160a01b03168152602080820192909252604001600020805460ff1916921515929092179091558351620002bf9160029190860190620006bc565b508151620002d5906003906020850190620006bc565b50600481905560005b6004548110156200033c57600580546001810182556000919091527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b0319169055620003348162000813565b9050620002de565b505050508051825114620003b25760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620004055760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606401620003a9565b60005b825181101562000471576200045c8382815181106200042b576200042b62000831565b602002602001015183838151811062000448576200044862000831565b6020026020010151620004ce60201b60201c565b80620004688162000813565b91505062000408565b5050506200089f565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382166200053b5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401620003a9565b600081116200058d5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401620003a9565b6001600160a01b0382166000908152600a602052604090205415620006095760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401620003a9565b600c8054600181019091557fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b0319166001600160a01b0384169081179091556000908152600a602052604090208190556008546200067390829062000847565b600855604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b828054620006ca9062000862565b90600052602060002090601f016020900481019282620006ee576000855562000739565b82601f106200070957805160ff191683800117855562000739565b8280016001018555821562000739579182015b82811115620007395782518255916020019190600101906200071c565b5062000747929150620007e6565b5090565b82805482825590600052602060002090810192821562000739579160200282015b828111156200073957825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200076c565b82805482825590600052602060002090810192821562000739579160200282015b8281111562000739578251829060ff16905591602001919060010190620007c4565b5b80821115620007475760008155600101620007e7565b634e487b7160e01b600052601160045260246000fd5b60006000198214156200082a576200082a620007fd565b5060010190565b634e487b7160e01b600052603260045260246000fd5b600082198211156200085d576200085d620007fd565b500190565b600181811c908216806200087757607f821691505b602082108114156200089957634e487b7160e01b600052602260045260246000fd5b50919050565b6132d980620008af6000396000f3fe6080604052600436106102745760003560e01c80636f8b44b01161014e578063b0c6030b116100bb578063dde3d31311610077578063dde3d31314610827578063e33b7de314610847578063e966d5121461085c578063e985e9c51461086f578063f2c4ce1e146108b8578063f2fde38b146108d857005b8063b0c6030b1461073b578063b534a5c41461075b578063b88d4fde1461077b578063c87b56dd1461079b578063ce7c2ac2146107bb578063d79779b2146107f157005b806391b7f5ed1161010a57806391b7f5ed1461067d57806395d89b411461069d5780639852595c146106b2578063a0712d68146106e8578063a22cb465146106fb578063acec338a1461071b57005b80636f8b44b0146105d457806370a08231146105f4578063715018a6146106145780638b83209b146106295780638d859f3e146106495780638da5cb5b1461065f57005b80633a98ef39116101ec5780634c8fe526116101a85780634c8fe526146105295780634d44660c1461053e5780634f6ccce71461055e57806350c5a00c1461057e5780636352211e146105945780636790a9de146105b457005b80633a98ef3914610441578063406072a91461045657806342842e0e1461049c578063438b6300146104bc57806348b75044146104e95780634a994eef1461050957005b806318160ddd1161023b57806318160ddd1461038e57806319165587146103b157806322f3e2d4146103d157806323b872dd146103eb5780632f745c591461040b57806332cb6b0c1461042b57005b806301ffc9a7146102bf57806306fdde03146102f45780630777962714610316578063081812fc14610336578063095ea7b31461036e57005b366102bd577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b005b3480156102cb57600080fd5b506102df6102da36600461289d565b6108f8565b60405190151581526020015b60405180910390f35b34801561030057600080fd5b50610309610923565b6040516102eb9190612912565b34801561032257600080fd5b506102df61033136600461293a565b6109b5565b34801561034257600080fd5b50610356610351366004612957565b610a08565b6040516001600160a01b0390911681526020016102eb565b34801561037a57600080fd5b506102bd610389366004612970565b610a90565b34801561039a57600080fd5b506103a3610ba6565b6040519081526020016102eb565b3480156103bd57600080fd5b506102bd6103cc36600461293a565b610bbd565b3480156103dd57600080fd5b506012546102df9060ff1681565b3480156103f757600080fd5b506102bd61040636600461299c565b610ceb565b34801561041757600080fd5b506103a3610426366004612970565b610d1c565b34801561043757600080fd5b506103a360105481565b34801561044d57600080fd5b506008546103a3565b34801561046257600080fd5b506103a36104713660046129dd565b6001600160a01b039182166000908152600e6020908152604080832093909416825291909152205490565b3480156104a857600080fd5b506102bd6104b736600461299c565b610de8565b3480156104c857600080fd5b506104dc6104d736600461293a565b610e03565b6040516102eb9190612a16565b3480156104f557600080fd5b506102bd6105043660046129dd565b610ea3565b34801561051557600080fd5b506102bd610524366004612a68565b61107c565b34801561053557600080fd5b506005546103a3565b34801561054a57600080fd5b506102df610559366004612ae2565b6110d1565b34801561056a57600080fd5b506103a3610579366004612957565b611153565b34801561058a57600080fd5b506103a3600f5481565b3480156105a057600080fd5b506103566105af366004612957565b6111c4565b3480156105c057600080fd5b506102bd6105cf366004612b79565b611250565b3480156105e057600080fd5b506102bd6105ef366004612957565b61129f565b34801561060057600080fd5b506103a361060f36600461293a565b61135e565b34801561062057600080fd5b506102bd61142c565b34801561063557600080fd5b50610356610644366004612957565b611462565b34801561065557600080fd5b506103a360115481565b34801561066b57600080fd5b506000546001600160a01b0316610356565b34801561068957600080fd5b506102bd610698366004612957565b611492565b3480156106a957600080fd5b506103096114e8565b3480156106be57600080fd5b506103a36106cd36600461293a565b6001600160a01b03166000908152600b602052604090205490565b6102bd6106f6366004612957565b6114f7565b34801561070757600080fd5b506102bd610716366004612a68565b61170d565b34801561072757600080fd5b506102bd610736366004612be5565b6117d2565b34801561074757600080fd5b506102bd610756366004612c02565b61183d565b34801561076757600080fd5b506102bd610776366004612c44565b6118d9565b34801561078757600080fd5b506102bd610796366004612cef565b611957565b3480156107a757600080fd5b506103096107b6366004612957565b61198f565b3480156107c757600080fd5b506103a36107d636600461293a565b6001600160a01b03166000908152600a602052604090205490565b3480156107fd57600080fd5b506103a361080c36600461293a565b6001600160a01b03166000908152600d602052604090205490565b34801561083357600080fd5b506102bd610842366004612957565b611ad6565b34801561085357600080fd5b506009546103a3565b6102bd61086a366004612dcf565b611b2c565b34801561087b57600080fd5b506102df61088a3660046129dd565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156108c457600080fd5b506102bd6108d3366004612e2f565b611cf2565b3480156108e457600080fd5b506102bd6108f336600461293a565b611d2d565b60006001600160e01b0319821663780e9d6360e01b148061091d575061091d82611d89565b92915050565b60606002805461093290612e65565b80601f016020809104026020016040519081016040528092919081815260200182805461095e90612e65565b80156109ab5780601f10610980576101008083540402835291602001916109ab565b820191906000526020600020905b81548152906001019060200180831161098e57829003601f168201915b5050505050905090565b600080546001600160a01b031633146109e95760405162461bcd60e51b81526004016109e090612ea0565b60405180910390fd5b506001600160a01b031660009081526001602052604090205460ff1690565b6000610a1382611dd9565b610a745760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109e0565b506000908152600660205260409020546001600160a01b031690565b6000610a9b826111c4565b9050806001600160a01b0316836001600160a01b03161415610b095760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109e0565b336001600160a01b0382161480610b255750610b25813361088a565b610b975760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109e0565b610ba18383611e23565b505050565b600454600554600091610bb891612eeb565b905090565b6001600160a01b0381166000908152600a6020526040902054610bf25760405162461bcd60e51b81526004016109e090612f02565b6000610bfd60095490565b610c079047612f48565b90506000610c348383610c2f866001600160a01b03166000908152600b602052604090205490565b611e91565b905080610c535760405162461bcd60e51b81526004016109e090612f60565b6001600160a01b0383166000908152600b602052604081208054839290610c7b908490612f48565b925050819055508060096000828254610c949190612f48565b90915550610ca490508382611ed7565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610cf53382611ff0565b610d115760405162461bcd60e51b81526004016109e090612fab565b610ba18383836120d6565b60008060005b600554811015610d8b5760058181548110610d3f57610d3f612ffc565b6000918252602090912001546001600160a01b0386811691161415610d7b5783821415610d6f57915061091d9050565b610d7882613012565b91505b610d8481613012565b9050610d22565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016109e0565b610ba183838360405180602001604052806000815250611957565b60606000610e108361135e565b905060008167ffffffffffffffff811115610e2d57610e2d612cd9565b604051908082528060200260200182016040528015610e56578160200160208202803683370190505b50905060005b82811015610e9b57610e6e8582610d1c565b828281518110610e8057610e80612ffc565b6020908102919091010152610e9481613012565b9050610e5c565b509392505050565b6001600160a01b0381166000908152600a6020526040902054610ed85760405162461bcd60e51b81526004016109e090612f02565b6001600160a01b0382166000908152600d60205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015610f35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f59919061302d565b610f639190612f48565b90506000610f9c8383610c2f87876001600160a01b039182166000908152600e6020908152604080832093909416825291909152205490565b905080610fbb5760405162461bcd60e51b81526004016109e090612f60565b6001600160a01b038085166000908152600e6020908152604080832093871683529290529081208054839290610ff2908490612f48565b90915550506001600160a01b0384166000908152600d60205260408120805483929061101f908490612f48565b90915550611030905084848361222c565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b6000546001600160a01b031633146110a65760405162461bcd60e51b81526004016109e090612ea0565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b6000805b8281101561114657846001600160a01b031660058585848181106110fb576110fb612ffc565b905060200201358154811061111257611112612ffc565b6000918252602090912001546001600160a01b03161461113657600091505061114c565b61113f81613012565b90506110d5565b50600190505b9392505050565b600061115d610ba6565b82106111c05760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016109e0565b5090565b600080600583815481106111da576111da612ffc565b6000918252602090912001546001600160a01b031690508061091d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109e0565b3360009081526001602052604090205460ff1661127f5760405162461bcd60e51b81526004016109e090613046565b61128b601385856127f7565b50611298601583836127f7565b5050505050565b6000546001600160a01b031633146112c95760405162461bcd60e51b81526004016109e090612ea0565b8060105414156112eb5760405162461bcd60e51b81526004016109e090613070565b6112f3610ba6565b8110156113595760405162461bcd60e51b815260206004820152602e60248201527f53706563696669656420737570706c79206973206c6f776572207468616e206360448201526d757272656e742062616c616e636560901b60648201526084016109e0565b601055565b60006001600160a01b0382166113c95760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109e0565b6000805b60055481101561142557600581815481106113ea576113ea612ffc565b6000918252602090912001546001600160a01b03858116911614156114155761141282613012565b91505b61141e81613012565b90506113cd565b5092915050565b6000546001600160a01b031633146114565760405162461bcd60e51b81526004016109e090612ea0565b611460600061227e565b565b6000600c828154811061147757611477612ffc565b6000918252602090912001546001600160a01b031692915050565b3360009081526001602052604090205460ff166114c15760405162461bcd60e51b81526004016109e090613046565b8060115414156114e35760405162461bcd60e51b81526004016109e090613070565b601155565b60606003805461093290612e65565b60125460ff1661153e5760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b60448201526064016109e0565b600f548111156115805760405162461bcd60e51b815260206004820152600d60248201526c4f7264657220746f6f2062696760981b60448201526064016109e0565b3360009081526018602052604090205460ff16151560011480156115b1575060125460ff6101009091041615156001145b15611617576115c781666a94d74f43000061309f565b3410156116125760405162461bcd60e51b8152602060048201526019602482015278115d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b60448201526064016109e0565b611670565b80601154611625919061309f565b3410156116705760405162461bcd60e51b8152602060048201526019602482015278115d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b60448201526064016109e0565b600061167a610ba6565b60105490915061168a8383612f48565b11156116d45760405162461bcd60e51b81526020600482015260196024820152784d696e742f6f72646572206578636565647320737570706c7960381b60448201526064016109e0565b60005b82811015610ba1576116fd336116ee836001612f48565b6116f89085612f48565b6122ce565b61170681613012565b90506116d7565b6001600160a01b0382163314156117665760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109e0565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3360009081526001602052604090205460ff166118015760405162461bcd60e51b81526004016109e090613046565b60125460ff161515811515141561182a5760405162461bcd60e51b81526004016109e090613070565b6012805460ff1916911515919091179055565b6000546001600160a01b031633146118675760405162461bcd60e51b81526004016109e090612ea0565b60005b81811015610ba15760016018600085858581811061188a5761188a612ffc565b905060200201602081019061189f919061293a565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806118d181613012565b91505061186a565b60005b8381101561194e5761193e87878787858181106118fb576118fb612ffc565b9050602002013586868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061195792505050565b61194781613012565b90506118dc565b50505050505050565b6119613383611ff0565b61197d5760405162461bcd60e51b81526004016109e090612fab565b6119898484848461234a565b50505050565b606061199a82611dd9565b6119fe5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016109e0565b6107d0611a09610ba6565b1015611aa15760148054611a1c90612e65565b80601f0160208091040260200160405190810160405280929190818152602001828054611a4890612e65565b8015611a955780601f10611a6a57610100808354040283529160200191611a95565b820191906000526020600020905b815481529060010190602001808311611a7857829003601f168201915b50505050509050919050565b6013611aac8361237d565b6015604051602001611ac093929190613158565b6040516020818303038152906040529050919050565b3360009081526001602052604090205460ff16611b055760405162461bcd60e51b81526004016109e090613046565b80600f541415611b275760405162461bcd60e51b81526004016109e090613070565b600f55565b3360009081526001602052604090205460ff16611b5b5760405162461bcd60e51b81526004016109e090613046565b828114611bbf5760405162461bcd60e51b815260206004820152602c60248201527f4d7573742070726f7669646520657175616c207175616e74697469657320616e60448201526b6420726563697069656e747360a01b60648201526084016109e0565b600080611bca610ba6565b905060005b85811015611c0d57868682818110611be957611be9612ffc565b9050602002013583611bfb9190612f48565b9250611c0681613012565b9050611bcf565b50601054611c1b8383612f48565b10611c645760405162461bcd60e51b81526020600482015260196024820152784d696e742f6f72646572206578636565647320737570706c7960381b60448201526064016109e0565b60005b8381101561194e5760005b878783818110611c8457611c84612ffc565b90506020020135811015611ce157611cd1868684818110611ca757611ca7612ffc565b9050602002016020810190611cbc919061293a565b611cc7846001612f48565b6116f89086612f48565b611cda81613012565b9050611c72565b50611ceb81613012565b9050611c67565b3360009081526001602052604090205460ff16611d215760405162461bcd60e51b81526004016109e090613046565b610ba1601483836127f7565b6000546001600160a01b03163314611d575760405162461bcd60e51b81526004016109e090612ea0565b6001600160a01b0381166000908152600160208190526040909120805460ff19169091179055611d868161247b565b50565b60006001600160e01b031982166380ac58cd60e01b1480611dba57506001600160e01b03198216635b5e139f60e01b145b8061091d57506301ffc9a760e01b6001600160e01b031983161461091d565b6005546000908210801561091d575060006001600160a01b031660058381548110611e0657611e06612ffc565b6000918252602090912001546001600160a01b0316141592915050565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611e58826111c4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6008546001600160a01b0384166000908152600a602052604081205490918391611ebb908661309f565b611ec59190613196565b611ecf9190612eeb565b949350505050565b80471015611f275760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016109e0565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611f74576040519150601f19603f3d011682016040523d82523d6000602084013e611f79565b606091505b5050905080610ba15760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016109e0565b6000611ffb82611dd9565b61205c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109e0565b6000612067836111c4565b9050806001600160a01b0316846001600160a01b031614806120a25750836001600160a01b031661209784610a08565b6001600160a01b0316145b80611ecf57506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff16611ecf565b826001600160a01b03166120e9826111c4565b6001600160a01b0316146121515760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016109e0565b6001600160a01b0382166121b35760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109e0565b6121be600082611e23565b81600582815481106121d2576121d2612ffc565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610ba1908490612513565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6005805460018101825560009182527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6123558484846120d6565b612361848484846125e5565b6119895760405162461bcd60e51b81526004016109e0906131aa565b6060816123a15750506040805180820190915260018152600360fc1b602082015290565b8160005b81156123cb57806123b581613012565b91506123c49050600a83613196565b91506123a5565b60008167ffffffffffffffff8111156123e6576123e6612cd9565b6040519080825280601f01601f191660200182016040528015612410576020820181803683370190505b5090505b8415611ecf57612425600183612eeb565b9150612432600a866131fc565b61243d906030612f48565b60f81b81838151811061245257612452612ffc565b60200101906001600160f81b031916908160001a905350612474600a86613196565b9450612414565b6000546001600160a01b031633146124a55760405162461bcd60e51b81526004016109e090612ea0565b6001600160a01b03811661250a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109e0565b611d868161227e565b6000612568826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166126e39092919063ffffffff16565b805190915015610ba157808060200190518101906125869190613210565b610ba15760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016109e0565b60006001600160a01b0384163b156126d857604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061262990339089908890889060040161322d565b6020604051808303816000875af1925050508015612664575060408051601f3d908101601f191682019092526126619181019061326a565b60015b6126be573d808015612692576040519150601f19603f3d011682016040523d82523d6000602084013e612697565b606091505b5080516126b65760405162461bcd60e51b81526004016109e0906131aa565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ecf565b506001949350505050565b6060611ecf8484600085856001600160a01b0385163b6127455760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016109e0565b600080866001600160a01b031685876040516127619190613287565b60006040518083038185875af1925050503d806000811461279e576040519150601f19603f3d011682016040523d82523d6000602084013e6127a3565b606091505b50915091506127b38282866127be565b979650505050505050565b606083156127cd57508161114c565b8251156127dd5782518084602001fd5b8160405162461bcd60e51b81526004016109e09190612912565b82805461280390612e65565b90600052602060002090601f016020900481019282612825576000855561286b565b82601f1061283e5782800160ff1982351617855561286b565b8280016001018555821561286b579182015b8281111561286b578235825591602001919060010190612850565b506111c09291505b808211156111c05760008155600101612873565b6001600160e01b031981168114611d8657600080fd5b6000602082840312156128af57600080fd5b813561114c81612887565b60005b838110156128d55781810151838201526020016128bd565b838111156119895750506000910152565b600081518084526128fe8160208601602086016128ba565b601f01601f19169290920160200192915050565b60208152600061114c60208301846128e6565b6001600160a01b0381168114611d8657600080fd5b60006020828403121561294c57600080fd5b813561114c81612925565b60006020828403121561296957600080fd5b5035919050565b6000806040838503121561298357600080fd5b823561298e81612925565b946020939093013593505050565b6000806000606084860312156129b157600080fd5b83356129bc81612925565b925060208401356129cc81612925565b929592945050506040919091013590565b600080604083850312156129f057600080fd5b82356129fb81612925565b91506020830135612a0b81612925565b809150509250929050565b6020808252825182820181905260009190848201906040850190845b81811015612a4e57835183529284019291840191600101612a32565b50909695505050505050565b8015158114611d8657600080fd5b60008060408385031215612a7b57600080fd5b8235612a8681612925565b91506020830135612a0b81612a5a565b60008083601f840112612aa857600080fd5b50813567ffffffffffffffff811115612ac057600080fd5b6020830191508360208260051b8501011115612adb57600080fd5b9250929050565b600080600060408486031215612af757600080fd5b8335612b0281612925565b9250602084013567ffffffffffffffff811115612b1e57600080fd5b612b2a86828701612a96565b9497909650939450505050565b60008083601f840112612b4957600080fd5b50813567ffffffffffffffff811115612b6157600080fd5b602083019150836020828501011115612adb57600080fd5b60008060008060408587031215612b8f57600080fd5b843567ffffffffffffffff80821115612ba757600080fd5b612bb388838901612b37565b90965094506020870135915080821115612bcc57600080fd5b50612bd987828801612b37565b95989497509550505050565b600060208284031215612bf757600080fd5b813561114c81612a5a565b60008060208385031215612c1557600080fd5b823567ffffffffffffffff811115612c2c57600080fd5b612c3885828601612a96565b90969095509350505050565b60008060008060008060808789031215612c5d57600080fd5b8635612c6881612925565b95506020870135612c7881612925565b9450604087013567ffffffffffffffff80821115612c9557600080fd5b612ca18a838b01612a96565b90965094506060890135915080821115612cba57600080fd5b50612cc789828a01612b37565b979a9699509497509295939492505050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612d0557600080fd5b8435612d1081612925565b93506020850135612d2081612925565b925060408501359150606085013567ffffffffffffffff80821115612d4457600080fd5b818701915087601f830112612d5857600080fd5b813581811115612d6a57612d6a612cd9565b604051601f8201601f19908116603f01168101908382118183101715612d9257612d92612cd9565b816040528281528a6020848701011115612dab57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060008060408587031215612de557600080fd5b843567ffffffffffffffff80821115612dfd57600080fd5b612e0988838901612a96565b90965094506020870135915080821115612e2257600080fd5b50612bd987828801612a96565b60008060208385031215612e4257600080fd5b823567ffffffffffffffff811115612e5957600080fd5b612c3885828601612b37565b600181811c90821680612e7957607f821691505b60208210811415612e9a57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015612efd57612efd612ed5565b500390565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b60008219821115612f5b57612f5b612ed5565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b600060001982141561302657613026612ed5565b5060010190565b60006020828403121561303f57600080fd5b5051919050565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b60208082526015908201527413995dc81d985b1d59481b585d18da195cc81bdb19605a1b604082015260600190565b60008160001904831182151516156130b9576130b9612ed5565b500290565b8054600090600181811c90808316806130d857607f831692505b60208084108214156130fa57634e487b7160e01b600052602260045260246000fd5b81801561310e576001811461311f5761314c565b60ff1986168952848901965061314c565b60008881526020902060005b868110156131445781548b82015290850190830161312b565b505084890196505b50505050505092915050565b600061316482866130be565b84516131748183602089016128ba565b6127b3818301866130be565b634e487b7160e01b600052601260045260246000fd5b6000826131a5576131a5613180565b500490565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261320b5761320b613180565b500690565b60006020828403121561322257600080fd5b815161114c81612a5a565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613260908301846128e6565b9695505050505050565b60006020828403121561327c57600080fd5b815161114c81612887565b600082516132998184602087016128ba565b919091019291505056fea2646970667358221220dab216517cd44381000e8db9102f9ecef377a78a8eb12d122c6522d4ca6044bc64736f6c634300080c0033

Deployed Bytecode

0x6080604052600436106102745760003560e01c80636f8b44b01161014e578063b0c6030b116100bb578063dde3d31311610077578063dde3d31314610827578063e33b7de314610847578063e966d5121461085c578063e985e9c51461086f578063f2c4ce1e146108b8578063f2fde38b146108d857005b8063b0c6030b1461073b578063b534a5c41461075b578063b88d4fde1461077b578063c87b56dd1461079b578063ce7c2ac2146107bb578063d79779b2146107f157005b806391b7f5ed1161010a57806391b7f5ed1461067d57806395d89b411461069d5780639852595c146106b2578063a0712d68146106e8578063a22cb465146106fb578063acec338a1461071b57005b80636f8b44b0146105d457806370a08231146105f4578063715018a6146106145780638b83209b146106295780638d859f3e146106495780638da5cb5b1461065f57005b80633a98ef39116101ec5780634c8fe526116101a85780634c8fe526146105295780634d44660c1461053e5780634f6ccce71461055e57806350c5a00c1461057e5780636352211e146105945780636790a9de146105b457005b80633a98ef3914610441578063406072a91461045657806342842e0e1461049c578063438b6300146104bc57806348b75044146104e95780634a994eef1461050957005b806318160ddd1161023b57806318160ddd1461038e57806319165587146103b157806322f3e2d4146103d157806323b872dd146103eb5780632f745c591461040b57806332cb6b0c1461042b57005b806301ffc9a7146102bf57806306fdde03146102f45780630777962714610316578063081812fc14610336578063095ea7b31461036e57005b366102bd577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b005b3480156102cb57600080fd5b506102df6102da36600461289d565b6108f8565b60405190151581526020015b60405180910390f35b34801561030057600080fd5b50610309610923565b6040516102eb9190612912565b34801561032257600080fd5b506102df61033136600461293a565b6109b5565b34801561034257600080fd5b50610356610351366004612957565b610a08565b6040516001600160a01b0390911681526020016102eb565b34801561037a57600080fd5b506102bd610389366004612970565b610a90565b34801561039a57600080fd5b506103a3610ba6565b6040519081526020016102eb565b3480156103bd57600080fd5b506102bd6103cc36600461293a565b610bbd565b3480156103dd57600080fd5b506012546102df9060ff1681565b3480156103f757600080fd5b506102bd61040636600461299c565b610ceb565b34801561041757600080fd5b506103a3610426366004612970565b610d1c565b34801561043757600080fd5b506103a360105481565b34801561044d57600080fd5b506008546103a3565b34801561046257600080fd5b506103a36104713660046129dd565b6001600160a01b039182166000908152600e6020908152604080832093909416825291909152205490565b3480156104a857600080fd5b506102bd6104b736600461299c565b610de8565b3480156104c857600080fd5b506104dc6104d736600461293a565b610e03565b6040516102eb9190612a16565b3480156104f557600080fd5b506102bd6105043660046129dd565b610ea3565b34801561051557600080fd5b506102bd610524366004612a68565b61107c565b34801561053557600080fd5b506005546103a3565b34801561054a57600080fd5b506102df610559366004612ae2565b6110d1565b34801561056a57600080fd5b506103a3610579366004612957565b611153565b34801561058a57600080fd5b506103a3600f5481565b3480156105a057600080fd5b506103566105af366004612957565b6111c4565b3480156105c057600080fd5b506102bd6105cf366004612b79565b611250565b3480156105e057600080fd5b506102bd6105ef366004612957565b61129f565b34801561060057600080fd5b506103a361060f36600461293a565b61135e565b34801561062057600080fd5b506102bd61142c565b34801561063557600080fd5b50610356610644366004612957565b611462565b34801561065557600080fd5b506103a360115481565b34801561066b57600080fd5b506000546001600160a01b0316610356565b34801561068957600080fd5b506102bd610698366004612957565b611492565b3480156106a957600080fd5b506103096114e8565b3480156106be57600080fd5b506103a36106cd36600461293a565b6001600160a01b03166000908152600b602052604090205490565b6102bd6106f6366004612957565b6114f7565b34801561070757600080fd5b506102bd610716366004612a68565b61170d565b34801561072757600080fd5b506102bd610736366004612be5565b6117d2565b34801561074757600080fd5b506102bd610756366004612c02565b61183d565b34801561076757600080fd5b506102bd610776366004612c44565b6118d9565b34801561078757600080fd5b506102bd610796366004612cef565b611957565b3480156107a757600080fd5b506103096107b6366004612957565b61198f565b3480156107c757600080fd5b506103a36107d636600461293a565b6001600160a01b03166000908152600a602052604090205490565b3480156107fd57600080fd5b506103a361080c36600461293a565b6001600160a01b03166000908152600d602052604090205490565b34801561083357600080fd5b506102bd610842366004612957565b611ad6565b34801561085357600080fd5b506009546103a3565b6102bd61086a366004612dcf565b611b2c565b34801561087b57600080fd5b506102df61088a3660046129dd565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156108c457600080fd5b506102bd6108d3366004612e2f565b611cf2565b3480156108e457600080fd5b506102bd6108f336600461293a565b611d2d565b60006001600160e01b0319821663780e9d6360e01b148061091d575061091d82611d89565b92915050565b60606002805461093290612e65565b80601f016020809104026020016040519081016040528092919081815260200182805461095e90612e65565b80156109ab5780601f10610980576101008083540402835291602001916109ab565b820191906000526020600020905b81548152906001019060200180831161098e57829003601f168201915b5050505050905090565b600080546001600160a01b031633146109e95760405162461bcd60e51b81526004016109e090612ea0565b60405180910390fd5b506001600160a01b031660009081526001602052604090205460ff1690565b6000610a1382611dd9565b610a745760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109e0565b506000908152600660205260409020546001600160a01b031690565b6000610a9b826111c4565b9050806001600160a01b0316836001600160a01b03161415610b095760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109e0565b336001600160a01b0382161480610b255750610b25813361088a565b610b975760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109e0565b610ba18383611e23565b505050565b600454600554600091610bb891612eeb565b905090565b6001600160a01b0381166000908152600a6020526040902054610bf25760405162461bcd60e51b81526004016109e090612f02565b6000610bfd60095490565b610c079047612f48565b90506000610c348383610c2f866001600160a01b03166000908152600b602052604090205490565b611e91565b905080610c535760405162461bcd60e51b81526004016109e090612f60565b6001600160a01b0383166000908152600b602052604081208054839290610c7b908490612f48565b925050819055508060096000828254610c949190612f48565b90915550610ca490508382611ed7565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610cf53382611ff0565b610d115760405162461bcd60e51b81526004016109e090612fab565b610ba18383836120d6565b60008060005b600554811015610d8b5760058181548110610d3f57610d3f612ffc565b6000918252602090912001546001600160a01b0386811691161415610d7b5783821415610d6f57915061091d9050565b610d7882613012565b91505b610d8481613012565b9050610d22565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016109e0565b610ba183838360405180602001604052806000815250611957565b60606000610e108361135e565b905060008167ffffffffffffffff811115610e2d57610e2d612cd9565b604051908082528060200260200182016040528015610e56578160200160208202803683370190505b50905060005b82811015610e9b57610e6e8582610d1c565b828281518110610e8057610e80612ffc565b6020908102919091010152610e9481613012565b9050610e5c565b509392505050565b6001600160a01b0381166000908152600a6020526040902054610ed85760405162461bcd60e51b81526004016109e090612f02565b6001600160a01b0382166000908152600d60205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015610f35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f59919061302d565b610f639190612f48565b90506000610f9c8383610c2f87876001600160a01b039182166000908152600e6020908152604080832093909416825291909152205490565b905080610fbb5760405162461bcd60e51b81526004016109e090612f60565b6001600160a01b038085166000908152600e6020908152604080832093871683529290529081208054839290610ff2908490612f48565b90915550506001600160a01b0384166000908152600d60205260408120805483929061101f908490612f48565b90915550611030905084848361222c565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b6000546001600160a01b031633146110a65760405162461bcd60e51b81526004016109e090612ea0565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b6000805b8281101561114657846001600160a01b031660058585848181106110fb576110fb612ffc565b905060200201358154811061111257611112612ffc565b6000918252602090912001546001600160a01b03161461113657600091505061114c565b61113f81613012565b90506110d5565b50600190505b9392505050565b600061115d610ba6565b82106111c05760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016109e0565b5090565b600080600583815481106111da576111da612ffc565b6000918252602090912001546001600160a01b031690508061091d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109e0565b3360009081526001602052604090205460ff1661127f5760405162461bcd60e51b81526004016109e090613046565b61128b601385856127f7565b50611298601583836127f7565b5050505050565b6000546001600160a01b031633146112c95760405162461bcd60e51b81526004016109e090612ea0565b8060105414156112eb5760405162461bcd60e51b81526004016109e090613070565b6112f3610ba6565b8110156113595760405162461bcd60e51b815260206004820152602e60248201527f53706563696669656420737570706c79206973206c6f776572207468616e206360448201526d757272656e742062616c616e636560901b60648201526084016109e0565b601055565b60006001600160a01b0382166113c95760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109e0565b6000805b60055481101561142557600581815481106113ea576113ea612ffc565b6000918252602090912001546001600160a01b03858116911614156114155761141282613012565b91505b61141e81613012565b90506113cd565b5092915050565b6000546001600160a01b031633146114565760405162461bcd60e51b81526004016109e090612ea0565b611460600061227e565b565b6000600c828154811061147757611477612ffc565b6000918252602090912001546001600160a01b031692915050565b3360009081526001602052604090205460ff166114c15760405162461bcd60e51b81526004016109e090613046565b8060115414156114e35760405162461bcd60e51b81526004016109e090613070565b601155565b60606003805461093290612e65565b60125460ff1661153e5760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b60448201526064016109e0565b600f548111156115805760405162461bcd60e51b815260206004820152600d60248201526c4f7264657220746f6f2062696760981b60448201526064016109e0565b3360009081526018602052604090205460ff16151560011480156115b1575060125460ff6101009091041615156001145b15611617576115c781666a94d74f43000061309f565b3410156116125760405162461bcd60e51b8152602060048201526019602482015278115d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b60448201526064016109e0565b611670565b80601154611625919061309f565b3410156116705760405162461bcd60e51b8152602060048201526019602482015278115d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b60448201526064016109e0565b600061167a610ba6565b60105490915061168a8383612f48565b11156116d45760405162461bcd60e51b81526020600482015260196024820152784d696e742f6f72646572206578636565647320737570706c7960381b60448201526064016109e0565b60005b82811015610ba1576116fd336116ee836001612f48565b6116f89085612f48565b6122ce565b61170681613012565b90506116d7565b6001600160a01b0382163314156117665760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109e0565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3360009081526001602052604090205460ff166118015760405162461bcd60e51b81526004016109e090613046565b60125460ff161515811515141561182a5760405162461bcd60e51b81526004016109e090613070565b6012805460ff1916911515919091179055565b6000546001600160a01b031633146118675760405162461bcd60e51b81526004016109e090612ea0565b60005b81811015610ba15760016018600085858581811061188a5761188a612ffc565b905060200201602081019061189f919061293a565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806118d181613012565b91505061186a565b60005b8381101561194e5761193e87878787858181106118fb576118fb612ffc565b9050602002013586868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061195792505050565b61194781613012565b90506118dc565b50505050505050565b6119613383611ff0565b61197d5760405162461bcd60e51b81526004016109e090612fab565b6119898484848461234a565b50505050565b606061199a82611dd9565b6119fe5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016109e0565b6107d0611a09610ba6565b1015611aa15760148054611a1c90612e65565b80601f0160208091040260200160405190810160405280929190818152602001828054611a4890612e65565b8015611a955780601f10611a6a57610100808354040283529160200191611a95565b820191906000526020600020905b815481529060010190602001808311611a7857829003601f168201915b50505050509050919050565b6013611aac8361237d565b6015604051602001611ac093929190613158565b6040516020818303038152906040529050919050565b3360009081526001602052604090205460ff16611b055760405162461bcd60e51b81526004016109e090613046565b80600f541415611b275760405162461bcd60e51b81526004016109e090613070565b600f55565b3360009081526001602052604090205460ff16611b5b5760405162461bcd60e51b81526004016109e090613046565b828114611bbf5760405162461bcd60e51b815260206004820152602c60248201527f4d7573742070726f7669646520657175616c207175616e74697469657320616e60448201526b6420726563697069656e747360a01b60648201526084016109e0565b600080611bca610ba6565b905060005b85811015611c0d57868682818110611be957611be9612ffc565b9050602002013583611bfb9190612f48565b9250611c0681613012565b9050611bcf565b50601054611c1b8383612f48565b10611c645760405162461bcd60e51b81526020600482015260196024820152784d696e742f6f72646572206578636565647320737570706c7960381b60448201526064016109e0565b60005b8381101561194e5760005b878783818110611c8457611c84612ffc565b90506020020135811015611ce157611cd1868684818110611ca757611ca7612ffc565b9050602002016020810190611cbc919061293a565b611cc7846001612f48565b6116f89086612f48565b611cda81613012565b9050611c72565b50611ceb81613012565b9050611c67565b3360009081526001602052604090205460ff16611d215760405162461bcd60e51b81526004016109e090613046565b610ba1601483836127f7565b6000546001600160a01b03163314611d575760405162461bcd60e51b81526004016109e090612ea0565b6001600160a01b0381166000908152600160208190526040909120805460ff19169091179055611d868161247b565b50565b60006001600160e01b031982166380ac58cd60e01b1480611dba57506001600160e01b03198216635b5e139f60e01b145b8061091d57506301ffc9a760e01b6001600160e01b031983161461091d565b6005546000908210801561091d575060006001600160a01b031660058381548110611e0657611e06612ffc565b6000918252602090912001546001600160a01b0316141592915050565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611e58826111c4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6008546001600160a01b0384166000908152600a602052604081205490918391611ebb908661309f565b611ec59190613196565b611ecf9190612eeb565b949350505050565b80471015611f275760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016109e0565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611f74576040519150601f19603f3d011682016040523d82523d6000602084013e611f79565b606091505b5050905080610ba15760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016109e0565b6000611ffb82611dd9565b61205c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109e0565b6000612067836111c4565b9050806001600160a01b0316846001600160a01b031614806120a25750836001600160a01b031661209784610a08565b6001600160a01b0316145b80611ecf57506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff16611ecf565b826001600160a01b03166120e9826111c4565b6001600160a01b0316146121515760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016109e0565b6001600160a01b0382166121b35760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109e0565b6121be600082611e23565b81600582815481106121d2576121d2612ffc565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610ba1908490612513565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6005805460018101825560009182527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6123558484846120d6565b612361848484846125e5565b6119895760405162461bcd60e51b81526004016109e0906131aa565b6060816123a15750506040805180820190915260018152600360fc1b602082015290565b8160005b81156123cb57806123b581613012565b91506123c49050600a83613196565b91506123a5565b60008167ffffffffffffffff8111156123e6576123e6612cd9565b6040519080825280601f01601f191660200182016040528015612410576020820181803683370190505b5090505b8415611ecf57612425600183612eeb565b9150612432600a866131fc565b61243d906030612f48565b60f81b81838151811061245257612452612ffc565b60200101906001600160f81b031916908160001a905350612474600a86613196565b9450612414565b6000546001600160a01b031633146124a55760405162461bcd60e51b81526004016109e090612ea0565b6001600160a01b03811661250a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109e0565b611d868161227e565b6000612568826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166126e39092919063ffffffff16565b805190915015610ba157808060200190518101906125869190613210565b610ba15760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016109e0565b60006001600160a01b0384163b156126d857604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061262990339089908890889060040161322d565b6020604051808303816000875af1925050508015612664575060408051601f3d908101601f191682019092526126619181019061326a565b60015b6126be573d808015612692576040519150601f19603f3d011682016040523d82523d6000602084013e612697565b606091505b5080516126b65760405162461bcd60e51b81526004016109e0906131aa565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ecf565b506001949350505050565b6060611ecf8484600085856001600160a01b0385163b6127455760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016109e0565b600080866001600160a01b031685876040516127619190613287565b60006040518083038185875af1925050503d806000811461279e576040519150601f19603f3d011682016040523d82523d6000602084013e6127a3565b606091505b50915091506127b38282866127be565b979650505050505050565b606083156127cd57508161114c565b8251156127dd5782518084602001fd5b8160405162461bcd60e51b81526004016109e09190612912565b82805461280390612e65565b90600052602060002090601f016020900481019282612825576000855561286b565b82601f1061283e5782800160ff1982351617855561286b565b8280016001018555821561286b579182015b8281111561286b578235825591602001919060010190612850565b506111c09291505b808211156111c05760008155600101612873565b6001600160e01b031981168114611d8657600080fd5b6000602082840312156128af57600080fd5b813561114c81612887565b60005b838110156128d55781810151838201526020016128bd565b838111156119895750506000910152565b600081518084526128fe8160208601602086016128ba565b601f01601f19169290920160200192915050565b60208152600061114c60208301846128e6565b6001600160a01b0381168114611d8657600080fd5b60006020828403121561294c57600080fd5b813561114c81612925565b60006020828403121561296957600080fd5b5035919050565b6000806040838503121561298357600080fd5b823561298e81612925565b946020939093013593505050565b6000806000606084860312156129b157600080fd5b83356129bc81612925565b925060208401356129cc81612925565b929592945050506040919091013590565b600080604083850312156129f057600080fd5b82356129fb81612925565b91506020830135612a0b81612925565b809150509250929050565b6020808252825182820181905260009190848201906040850190845b81811015612a4e57835183529284019291840191600101612a32565b50909695505050505050565b8015158114611d8657600080fd5b60008060408385031215612a7b57600080fd5b8235612a8681612925565b91506020830135612a0b81612a5a565b60008083601f840112612aa857600080fd5b50813567ffffffffffffffff811115612ac057600080fd5b6020830191508360208260051b8501011115612adb57600080fd5b9250929050565b600080600060408486031215612af757600080fd5b8335612b0281612925565b9250602084013567ffffffffffffffff811115612b1e57600080fd5b612b2a86828701612a96565b9497909650939450505050565b60008083601f840112612b4957600080fd5b50813567ffffffffffffffff811115612b6157600080fd5b602083019150836020828501011115612adb57600080fd5b60008060008060408587031215612b8f57600080fd5b843567ffffffffffffffff80821115612ba757600080fd5b612bb388838901612b37565b90965094506020870135915080821115612bcc57600080fd5b50612bd987828801612b37565b95989497509550505050565b600060208284031215612bf757600080fd5b813561114c81612a5a565b60008060208385031215612c1557600080fd5b823567ffffffffffffffff811115612c2c57600080fd5b612c3885828601612a96565b90969095509350505050565b60008060008060008060808789031215612c5d57600080fd5b8635612c6881612925565b95506020870135612c7881612925565b9450604087013567ffffffffffffffff80821115612c9557600080fd5b612ca18a838b01612a96565b90965094506060890135915080821115612cba57600080fd5b50612cc789828a01612b37565b979a9699509497509295939492505050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612d0557600080fd5b8435612d1081612925565b93506020850135612d2081612925565b925060408501359150606085013567ffffffffffffffff80821115612d4457600080fd5b818701915087601f830112612d5857600080fd5b813581811115612d6a57612d6a612cd9565b604051601f8201601f19908116603f01168101908382118183101715612d9257612d92612cd9565b816040528281528a6020848701011115612dab57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060008060408587031215612de557600080fd5b843567ffffffffffffffff80821115612dfd57600080fd5b612e0988838901612a96565b90965094506020870135915080821115612e2257600080fd5b50612bd987828801612a96565b60008060208385031215612e4257600080fd5b823567ffffffffffffffff811115612e5957600080fd5b612c3885828601612b37565b600181811c90821680612e7957607f821691505b60208210811415612e9a57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015612efd57612efd612ed5565b500390565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b60008219821115612f5b57612f5b612ed5565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b600060001982141561302657613026612ed5565b5060010190565b60006020828403121561303f57600080fd5b5051919050565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b60208082526015908201527413995dc81d985b1d59481b585d18da195cc81bdb19605a1b604082015260600190565b60008160001904831182151516156130b9576130b9612ed5565b500290565b8054600090600181811c90808316806130d857607f831692505b60208084108214156130fa57634e487b7160e01b600052602260045260246000fd5b81801561310e576001811461311f5761314c565b60ff1986168952848901965061314c565b60008881526020902060005b868110156131445781548b82015290850190830161312b565b505084890196505b50505050505092915050565b600061316482866130be565b84516131748183602089016128ba565b6127b3818301866130be565b634e487b7160e01b600052601260045260246000fd5b6000826131a5576131a5613180565b500490565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261320b5761320b613180565b500690565b60006020828403121561322257600080fd5b815161114c81612a5a565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613260908301846128e6565b9695505050505050565b60006020828403121561327c57600080fd5b815161114c81612887565b600082516132998184602087016128ba565b919091019291505056fea2646970667358221220dab216517cd44381000e8db9102f9ecef377a78a8eb12d122c6522d4ca6044bc64736f6c634300080c0033

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.