ETH Price: $3,362.31 (-1.59%)
Gas: 7 Gwei

Token

Feline Fiendz (FF)
 

Overview

Max Total Supply

6,949 FF

Holders

3,162

Market

Volume (24H)

0.0253 ETH

Min Price (24H)

$19.84 @ 0.005900 ETH

Max Price (24H)

$24.88 @ 0.007400 ETH

Other Info

Balance
3 FF
0xAe072046758A5999e8B55995F463b4FfB039738b
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

For the Web3 Degens, by Degens. Feline Fiendz is a collection of 7,777 dope looking felines that have escaped on the Ethereum Blockchain.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
FelineFiendz

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import './Delegated.sol';
import './PaymentSplitterMod.sol';
import './Merkle.sol';
import './FF721Batch.sol';

contract FelineFiendz is Delegated, FF721Batch, Merkle, PaymentSplitterMod {
  using Strings for uint256;

  //EIP-2309
  event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed fromAddress, address indexed toAddress);

  uint public PRICE  = 0.05 ether;
  uint public MAX_ORDER  = 3;
  uint public MAX_SUPPLY = 7777;
  uint public MAX_MINT = 3;

  uint public burned;
  bool public isPresaleActive = false;
  bool public isMainsaleActive = false;

  string private _tokenURIPrefix;
  string private _tokenURISuffix;

  address[] private _payees = [
    0x493b641091483A6855a382fC920E2f1e5D10a059,
    0x10e220d130b8210Ad4D741082264c1e05E33dCcE,
    0x6E894E887C24F0F71B6bE4D54DE8fE039631E155,
    0xCEf9b5c629664b415dc8d456b5f139154f8D8F0C,
    0x6210d6717D2a20FB7Ead2AD01ba413eA64f8F1e1,
    0xFB58FE5251717A4f2404e6F488048838079a7727,
    0x102DD33ef3c1af8736EDdCc30985fEB69e099cD8
  ];

  uint[] private _shares = [
    1966,
    1966,
    1966,
    1966,
     983,
     983,
      17
  ];

  constructor()
    FF721("Feline Fiendz", "FF")
    PaymentSplitterMod( _payees, _shares ){
  }


  //view: external
  fallback() external payable {}


  //view: IERC721Metadata
  function tokenURI( uint tokenId ) external view override returns( string memory ){
    require(_exists(tokenId), "FelineFiendz: query for nonexistent token");
    return string(abi.encodePacked(_tokenURIPrefix, tokenId.toString(), _tokenURISuffix));
  }


  //view: IERC721Enumerable
  function totalSupply() public view override returns( uint totalSupply_ ){
    return tokens.length - burned;
  }


  //payable
  function mint( uint quantity, bytes32[] calldata proof ) external payable {
    require( 0 < quantity && quantity <= MAX_ORDER,  "FelineFiendz: order too big"             );
    require( msg.value >= PRICE * quantity,          "FelineFiendz: ether sent is not correct" );
    require( owners[ msg.sender ].purchased + quantity <= MAX_MINT, "FelineFiendz: don't be greedy" );
    require( totalSupply() + quantity <= MAX_SUPPLY, "FelineFiendz: mint/order exceeds supply" );

    if( isMainsaleActive ){
      //no-op
    }
    else if( isPresaleActive ){
      verifyProof( keccak256( abi.encodePacked( msg.sender ) ), proof );
    }
    else{
      revert( "FelineFiendz: sale is not active" );
    }

    _mintN( msg.sender, quantity, true );
  }


  //onlyDelegates
  function burnFrom( address account, uint[] calldata tokenIds ) external onlyDelegates{
    unchecked{
      for(uint i; i < tokenIds.length; ++i ){
        _burn( account, tokenIds[i] );
      }
    }
  }

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

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

      for(uint i; i < recipient.length; ++i){
        if( quantity[i] > 0 )
          _mintN( recipient[i], quantity[i], false );
      }
    }
  }

  function resurrect( address[] calldata recipient, uint[] calldata tokenIds ) external onlyDelegates{
    require(tokenIds.length == recipient.length,   "FelineFiendz: must provide equal tokenIds and recipients" );

    unchecked{
      for(uint i; i < tokenIds.length; ++i ){
        _resurrect( recipient[i], tokenIds[i] );
      }
    }
  }

  function setActive(bool isPresaleActive_, bool isMainsaleActive_) external onlyDelegates{
    isPresaleActive = isPresaleActive_;
    isMainsaleActive = isMainsaleActive_;
  }

  function setBaseURI(string calldata _newPrefix, string calldata _newSuffix) external onlyDelegates{
    _tokenURIPrefix = _newPrefix;
    _tokenURISuffix = _newSuffix;
  }

  function setConfig(uint maxOrder, uint maxSupply, uint maxMint, uint price) external onlyDelegates{
    require( maxSupply >= totalSupply(), "FelineFiendz: specified supply is lower than current balance" );
    MAX_ORDER  = maxOrder;
    MAX_SUPPLY = maxSupply;
    MAX_MINT   = maxMint;
    PRICE      = price;
  }


  //onlyOwner
  function addPayee(address account, uint256 shares_) external onlyOwner {
    _addPayee( account, shares_ );
  }

  function resetCounters() external onlyOwner {
    _resetCounters();
  }

  function setPayee( uint index, address account, uint newShares ) external onlyOwner {
    _setPayee(index, account, newShares);
  }


  //private
  function _burn( address from, uint tokenId ) private {
    require( from == tokens[ tokenId ].owner, "FelineFiendz: owner mismatch" );
    tokens[ tokenId ].owner = address(0);

    ++burned;
    _beforeTokenTransfer(from, address(0));
    tokens[ tokenId ].owner = address(0);
    emit Transfer(from, address(0), tokenId);
  }


  function _mint( address to, uint tokenId ) private {
    tokens.push( Token( to ) );
    emit Transfer(address(0), to, tokenId);
  }

  function _mintN( address to, uint quantity, bool isPurchase ) private {
    unchecked{
      uint fromToken = tokens.length;
      uint toToken = fromToken + quantity - 1;

      if( isPurchase )
        owners[to].purchased += uint16(quantity);

      owners[to].balance += uint16(quantity);
      for(uint i; i < quantity; ++i){
        tokens.push( Token( to ) );
      }

      emit ConsecutiveTransfer( fromToken, toToken, address(0), to );
    }
  }

  function _resurrect( address to, uint tokenId ) private {
    require( !_exists( tokenId ), "FelineFiendz: can't resurrect existing token" );
    --burned;
    tokens[ tokenId ].owner = to;

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

File 2 of 22 : PaymentSplitterMod.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/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.
 */
contract PaymentSplitterMod is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(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;

    /**
     * @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 {
        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 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 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 = (totalReceived * _shares[account]) / _totalShares - _released[account];
        require(payment != 0, "PaymentSplitter: account is not due payment");

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

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

    function _addPayee(address account, uint256 shares_) internal {
        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_);
    }

    function _resetCounters() internal {
        _totalReleased = 0;
        for(uint i; i < _payees.length; ++i ){
            _released[ _payees[i] ] = 0;
        }
    }

    function _setPayee( uint index, address account, uint newShares ) internal {
        _totalShares = _totalShares - _shares[ account ] + newShares;
        _shares[ account ] = newShares;
        _payees[ index ] = account;
    }
}

File 3 of 22 : Merkle.sol
// SPDX-License-Identifier: BSD-3

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import './Delegated.sol';

contract Merkle is Delegated{
  bytes32 internal merkleRoot;

  function setMerkleRoot( bytes32 merkleRoot_ ) external onlyOwner{
    merkleRoot = merkleRoot_;
  }

  function verifyProof(bytes32 leaf, bytes32[] memory proof) internal view{
    require( MerkleProof.processProof( proof, leaf ) == merkleRoot, "Merkle Proof verification failed" );
  }
}

File 4 of 22 : IERC721Batch.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

interface IERC721Batch {
  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 5 of 22 : FF721Enumerable.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

/****************************************
 * @author: squeebo_nft                 *
 ****************************************
 *   Blimpie-FF721 provides low-gas     *
 *       mints + transfers              *
 ****************************************/

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

abstract contract FF721Enumerable is FF721, IERC721Enumerable {
  function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, FF721) returns( bool isSupported ){
    return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
  }

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

    revert( "FF721Enumerable: owner index out of bounds" );
  }

  function tokenByIndex(uint index) external view override returns( uint tokenId ){
    require(index < tokens.length, "FF721Enumerable: query for nonexistent token");
    return index;
  }
}

File 6 of 22 : FF721Batch.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

/****************************************
 * @author: squeebo_nft                 *
 ****************************************
 *   Blimpie-FF721 provides low-gas     *
 *       mints + transfers              *
 ****************************************/

import "./IERC721Batch.sol";
import "./FF721Enumerable.sol";

abstract contract FF721Batch is FF721Enumerable, IERC721Batch {
  function isOwnerOf( address account, uint[] calldata tokenIds ) external view override returns( bool ){
    for(uint i; i < tokenIds.length; ++i ){
      if( account != tokens[ tokenIds[i] ].owner )
        return false;
    }

    return true;
  }

  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 ) public view override returns( uint[] memory wallet ){
    uint count;
    uint quantity = balanceOf( account );
    wallet = new uint[]( quantity );
    for( uint i; i < tokens.length; ++i ){
      if( account == tokens[i].owner ){
        wallet[ count++ ] = i;
        if( count == quantity )
          break;
      }
    }
    return wallet;
  }
}

File 7 of 22 : FF721.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

/****************************************
 * @author: squeebo_nft                 *
 ****************************************
 *   Blimpie-FF721 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 FF721 is Context, ERC165, IERC721, IERC721Metadata {
  using Address for address;

  struct Owner{
    uint16 balance;
    uint16 purchased;
  }

  struct Token{
    address owner;
  }

  Token[] public tokens;
  mapping(address => Owner) public owners;

  string private _name;
  string private _symbol;

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

  constructor(string memory name_, string memory symbol_){
    _name = name_;
    _symbol = symbol_;
  }

  //public view
  function balanceOf(address owner) public view override returns (uint balance){
    return owners[owner].balance;
  }

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

  function ownerOf(uint tokenId) public view override returns( address owner ){
    require(_exists(tokenId), "FF721: query for nonexistent token");
    return tokens[tokenId].owner;
  }

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

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


  //approvals
  function approve(address to, uint tokenId) external override {
    address owner = ownerOf(tokenId);
    require(to != owner, "FF721: approval to current owner");

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

    _approve(to, tokenId);
  }

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

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

  function setApprovalForAll(address operator, bool approved) external override {
    _operatorApprovals[_msgSender()][operator] = approved;
    emit ApprovalForAll(_msgSender(), operator, approved);
  }


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

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

  function transferFrom(address from, address to, uint tokenId) external override {
    require(_isApprovedOrOwner(_msgSender(), tokenId), "FF721: caller is not owner nor approved");
    _transfer(from, to, tokenId);
  }


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

  function _beforeTokenTransfer(address from, address to) internal virtual {
    if( from != address(0) )
      --owners[from].balance;

    if( to != address(0) )
      ++owners[to].balance;
  }

  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("FF721: transfer to non ERC721Receiver implementer");
        } else {
          assembly {
            revert(add(32, reason), mload(reason))
          }
        }
      }
    } else {
      return true;
    }
  }

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

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

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

  function _transfer(address from, address to, uint tokenId) internal {
    require(ownerOf(tokenId) == from, "FF721: transfer of token that is not own");
    _beforeTokenTransfer(from, to);
    _approve(address(0), tokenId);
    tokens[tokenId].owner = to;

    emit Transfer(from, to, tokenId);
  }
}

File 8 of 22 : 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 9 of 22 : 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 10 of 22 : 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 11 of 22 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }
        return computedHash;
    }
}

File 12 of 22 : 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 13 of 22 : 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 14 of 22 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 15 of 22 : 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 16 of 22 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 tokenId);

    /**
     * @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 17 of 22 : 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 18 of 22 : 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 19 of 22 : 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 20 of 22 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 21 of 22 : 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 22 of 22 : 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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"},{"indexed":true,"internalType":"address","name":"toAddress","type":"address"}],"name":"ConsecutiveTransfer","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_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"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":"account","type":"address"},{"internalType":"uint256","name":"shares_","type":"uint256"}],"name":"addPayee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"approver","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isApproved","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":[],"name":"isMainsaleActive","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":[],"name":"isPresaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipient","type":"address[]"},{"internalType":"uint256[]","name":"quantity","type":"uint256[]"}],"name":"mintTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"name_","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"owners","outputs":[{"internalType":"uint16","name":"balance","type":"uint16"},{"internalType":"uint16","name":"purchased","type":"uint16"}],"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":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resetCounters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipient","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"resurrect","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":"isPresaleActive_","type":"bool"},{"internalType":"bool","name":"isMainsaleActive_","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":"_newPrefix","type":"string"},{"internalType":"string","name":"_newSuffix","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxOrder","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"maxMint","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setConfig","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":"bytes32","name":"merkleRoot_","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"newShares","type":"uint256"}],"name":"setPayee","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":"isSupported","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"symbol_","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"tokenId","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":"uint256","name":"","type":"uint256"}],"name":"tokens","outputs":[{"internalType":"address","name":"owner","type":"address"}],"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":"totalSupply_","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":"wallet","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

66b1a2bc2ec50000600e556003600f819055611e616010556011556013805461ffff1916905561016060405273493b641091483a6855a382fc920e2f1e5d10a05960809081527310e220d130b8210ad4d741082264c1e05e33dcce60a052736e894e887c24f0f71b6be4d54de8fe039631e15560c05273cef9b5c629664b415dc8d456b5f139154f8d8f0c60e052736210d6717d2a20fb7ead2ad01ba413ea64f8f1e16101005273fb58fe5251717a4f2404e6f488048838079a77276101205273102dd33ef3c1af8736eddcc30985feb69e099cd861014052620000e89060169060076200063e565b506040805160e0810182526107ae8082526020820181905291810182905260608101919091526103d76080820181905260a0820152601160c082015262000134906017906007620006a8565b503480156200014257600080fd5b5060168054806020026020016040519081016040528092919081815260200182805480156200019b57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116200017c575b50505050506017805480602002602001604051908101604052809291908181526020018280548015620001ee57602002820191906000526020600020905b815481526020019060010190808311620001d9575b50505050506040518060400160405280600d81526020016c2332b634b732902334b2b7323d60991b81525060405180604001604052806002815260200161232360f11b81525081600290805190602001906200024c929190620006ec565b50805162000262906003906020840190620006ec565b5050506200027f62000279620003fa60201b60201c565b620003fe565b600160076000620002986006546001600160a01b031690565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558051825114620003325760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620003855760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f20706179656573000000000000604482015260640162000329565b60005b8251811015620003f157620003dc838281518110620003ab57620003ab62000780565b6020026020010151838381518110620003c857620003c862000780565b60200260200101516200045060201b60201c565b80620003e881620007ac565b91505062000388565b50505062000822565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620004bd5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b606482015260840162000329565b600081116200050f5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a20736861726573206172652030000000604482015260640162000329565b6001600160a01b0382166000908152600b6020526040902054156200058b5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b606482015260840162000329565b600d8054600181019091557fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180546001600160a01b0319166001600160a01b0384169081179091556000908152600b60205260409020819055600954620005f5908290620007ca565b600955604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b82805482825590600052602060002090810192821562000696579160200282015b828111156200069657825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200065f565b50620006a492915062000769565b5090565b82805482825590600052602060002090810192821562000696579160200282015b8281111562000696578251829061ffff16905591602001919060010190620006c9565b828054620006fa90620007e5565b90600052602060002090601f0160209004810192826200071e576000855562000696565b82601f106200073957805160ff191683800117855562000696565b8280016001018555821562000696579182015b82811115620006965782518255916020019190600101906200074c565b5b80821115620006a457600081556001016200076a565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415620007c357620007c362000796565b5060010190565b60008219821115620007e057620007e062000796565b500190565b600181811c90821680620007fa57607f821691505b602082108114156200081c57634e487b7160e01b600052602260045260246000fd5b50919050565b61354c80620008326000396000f3fe6080604052600436106102af5760003560e01c8063715018a611610166578063a22cb465116100d3578063df2388001161008f578063e5c389cd1161006c578063e5c389cd146108f3578063e985e9c514610913578063f0292a031461095c578063f2fde38b1461097257005b8063df238800146108a9578063e33b7de3146108c9578063e4ed53a9146108de57005b8063a22cb465146107e0578063b534a5c414610800578063b88d4fde14610820578063ba41b0c614610840578063c87b56dd14610853578063ce7c2ac21461087357005b806389af61071161012257806389af6107146107215780638b83209b146107415780638d859f3e146107615780638da5cb5b1461077757806395d89b41146107955780639852595c146107aa57005b8063715018a61461067757806373f425611461068c5780637cb64759146106a25780637f608d03146106c25780637f75c315146106e257806380fda1e21461070157005b80633a98ef391161021c5780634f6ccce7116101d85780636352211e116101b55780636352211e146105ea5780636790a9de1461060a57806369add11d1461062a57806370a082311461063d57005b80634f6ccce71461059a57806350c5a00c146105ba57806360d938dc146105d057005b80633a98ef39146104d857806342842e0e146104ed578063438b63001461050d5780634a994eef1461053a5780634d44660c1461055a5780634f64b2be1461057a57005b806318160ddd1161026b57806318160ddd1461041f57806318f9b02314610442578063191655871461046257806323b872dd146104825780632f745c59146104a257806332cb6b0c146104c257005b806301ffc9a7146102fa578063022914a71461032f57806306fdde031461038557806307779627146103a7578063081812fc146103c7578063095ea7b3146103ff57005b366102f8577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b005b34801561030657600080fd5b5061031a610315366004612b26565b610992565b60405190151581526020015b60405180910390f35b34801561033b57600080fd5b5061036a61034a366004612b58565b60016020526000908152604090205461ffff808216916201000090041682565b6040805161ffff938416815292909116602083015201610326565b34801561039157600080fd5b5061039a6109bd565b6040516103269190612bcd565b3480156103b357600080fd5b5061031a6103c2366004612b58565b610a4f565b3480156103d357600080fd5b506103e76103e2366004612be0565b610aa8565b6040516001600160a01b039091168152602001610326565b34801561040b57600080fd5b506102f861041a366004612bf9565b610aeb565b34801561042b57600080fd5b50610434610be9565b604051908152602001610326565b34801561044e57600080fd5b506102f861045d366004612bf9565b610c00565b34801561046e57600080fd5b506102f861047d366004612b58565b610c38565b34801561048e57600080fd5b506102f861049d366004612c25565b610e09565b3480156104ae57600080fd5b506104346104bd366004612bf9565b610e3a565b3480156104ce57600080fd5b5061043460105481565b3480156104e457600080fd5b50600954610434565b3480156104f957600080fd5b506102f8610508366004612c25565b610f05565b34801561051957600080fd5b5061052d610528366004612b58565b610f20565b6040516103269190612c66565b34801561054657600080fd5b506102f8610555366004612cba565b61101d565b34801561056657600080fd5b5061031a610575366004612d3b565b611072565b34801561058657600080fd5b506103e7610595366004612be0565b6110ee565b3480156105a657600080fd5b506104346105b5366004612be0565b611118565b3480156105c657600080fd5b50610434600f5481565b3480156105dc57600080fd5b5060135461031a9060ff1681565b3480156105f657600080fd5b506103e7610605366004612be0565b611183565b34801561061657600080fd5b506102f8610625366004612dd2565b6111d8565b6102f8610638366004612e3e565b611227565b34801561064957600080fd5b50610434610658366004612b58565b6001600160a01b031660009081526001602052604090205461ffff1690565b34801561068357600080fd5b506102f86113b1565b34801561069857600080fd5b5061043460125481565b3480156106ae57600080fd5b506102f86106bd366004612be0565b6113e7565b3480156106ce57600080fd5b506102f86106dd366004612e9e565b611416565b3480156106ee57600080fd5b5060135461031a90610100900460ff1681565b34801561070d57600080fd5b506102f861071c366004612e3e565b611469565b34801561072d57600080fd5b506102f861073c366004612d3b565b611568565b34801561074d57600080fd5b506103e761075c366004612be0565b6115d2565b34801561076d57600080fd5b50610434600e5481565b34801561078357600080fd5b506006546001600160a01b03166103e7565b3480156107a157600080fd5b5061039a6115e7565b3480156107b657600080fd5b506104346107c5366004612b58565b6001600160a01b03166000908152600c602052604090205490565b3480156107ec57600080fd5b506102f86107fb366004612cba565b6115f6565b34801561080c57600080fd5b506102f861081b366004612eba565b611662565b34801561082c57600080fd5b506102f861083b366004612f65565b6116e0565b6102f861084e366004613045565b611712565b34801561085f57600080fd5b5061039a61086e366004612be0565b611971565b34801561087f57600080fd5b5061043461088e366004612b58565b6001600160a01b03166000908152600b602052604090205490565b3480156108b557600080fd5b506102f86108c4366004613078565b611a0f565b3480156108d557600080fd5b50600a54610434565b3480156108ea57600080fd5b506102f8611a44565b3480156108ff57600080fd5b506102f861090e36600461309f565b611a76565b34801561091f57600080fd5b5061031a61092e3660046130d1565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561096857600080fd5b5061043460115481565b34801561097e57600080fd5b506102f861098d366004612b58565b611b36565b60006001600160e01b0319821663780e9d6360e01b14806109b757506109b782611b8f565b92915050565b6060600280546109cc9061310a565b80601f01602080910402602001604051908101604052809291908181526020018280546109f89061310a565b8015610a455780601f10610a1a57610100808354040283529160200191610a45565b820191906000526020600020905b815481529060010190602001808311610a2857829003601f168201915b5050505050905090565b6006546000906001600160a01b03163314610a855760405162461bcd60e51b8152600401610a7c90613145565b60405180910390fd5b506001600160a01b03811660009081526007602052604090205460ff165b919050565b6000610ab382611bdf565b610acf5760405162461bcd60e51b8152600401610a7c9061317a565b506000908152600460205260409020546001600160a01b031690565b6000610af682611183565b9050806001600160a01b0316836001600160a01b03161415610b5a5760405162461bcd60e51b815260206004820181905260248201527f46463732313a20617070726f76616c20746f2063757272656e74206f776e65726044820152606401610a7c565b336001600160a01b0382161480610b765750610b76813361092e565b610bda5760405162461bcd60e51b815260206004820152602f60248201527f46463732313a2063616c6c6572206973206e6f74206f776e6572206e6f72206160448201526e1c1c1c9bdd995908199bdc88185b1b608a1b6064820152608401610a7c565b610be48383611c27565b505050565b601254600080549091610bfb916131d2565b905090565b6006546001600160a01b03163314610c2a5760405162461bcd60e51b8152600401610a7c90613145565b610c348282611c95565b5050565b6001600160a01b0381166000908152600b6020526040902054610cac5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b6064820152608401610a7c565b6000600a5447610cbc91906131e9565b6001600160a01b0383166000908152600c6020908152604080832054600954600b909352908320549394509192610cf39085613201565b610cfd9190613236565b610d0791906131d2565b905080610d6a5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610a7c565b6001600160a01b0383166000908152600c6020526040902054610d8e9082906131e9565b6001600160a01b0384166000908152600c6020526040902055600a54610db59082906131e9565b600a55610dc28382611e7b565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610e133382611f94565b610e2f5760405162461bcd60e51b8152600401610a7c9061324a565b610be4838383612039565b60008060005b600054811015610ea95760008181548110610e5d57610e5d613291565b6000918252602090912001546001600160a01b0386811691161415610e995783821415610e8d5791506109b79050565b610e96826132a7565b91505b610ea2816132a7565b9050610e40565b5060405162461bcd60e51b815260206004820152602a60248201527f4646373231456e756d657261626c653a206f776e657220696e646578206f7574604482015269206f6620626f756e647360b01b6064820152608401610a7c565b610be4838383604051806020016040528060008152506116e0565b6060600080610f48846001600160a01b031660009081526001602052604090205461ffff1690565b90508067ffffffffffffffff811115610f6357610f63612f4f565b604051908082528060200260200182016040528015610f8c578160200160208202803683370190505b50925060005b6000548110156110155760008181548110610faf57610faf613291565b6000918252602090912001546001600160a01b038681169116141561100557808484610fda816132a7565b955081518110610fec57610fec613291565b6020026020010181815250508183141561100557611015565b61100e816132a7565b9050610f92565b505050919050565b6006546001600160a01b031633146110475760405162461bcd60e51b8152600401610a7c90613145565b6001600160a01b03919091166000908152600760205260409020805460ff1916911515919091179055565b6000805b828110156110e157600084848381811061109257611092613291565b90506020020135815481106110a9576110a9613291565b6000918252602090912001546001600160a01b038681169116146110d15760009150506110e7565b6110da816132a7565b9050611076565b50600190505b9392505050565b600081815481106110fe57600080fd5b6000918252602090912001546001600160a01b0316905081565b60008054821061117f5760405162461bcd60e51b815260206004820152602c60248201527f4646373231456e756d657261626c653a20717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a7c565b5090565b600061118e82611bdf565b6111aa5760405162461bcd60e51b8152600401610a7c9061317a565b600082815481106111bd576111bd613291565b6000918252602090912001546001600160a01b031692915050565b3360009081526007602052604090205460ff166112075760405162461bcd60e51b8152600401610a7c906132c2565b61121360148585612a80565b5061122060158383612a80565b5050505050565b3360009081526007602052604090205460ff166112565760405162461bcd60e51b8152600401610a7c906132c2565b8083146112cb5760405162461bcd60e51b815260206004820152603a60248201527f46656c696e654669656e647a3a206d7573742070726f7669646520657175616c60448201527f207175616e74697469657320616e6420726563697069656e74730000000000006064820152608401610a7c565b6000805b828110156112ff578383828181106112e9576112e9613291565b90506020020135820191508060010190506112cf565b506010548161130c610be9565b01111561132b5760405162461bcd60e51b8152600401610a7c906132ec565b60005b848110156113a957600084848381811061134a5761134a613291565b9050602002013511156113a1576113a186868381811061136c5761136c613291565b90506020020160208101906113819190612b58565b85858481811061139357611393613291565b905060200201356000612136565b60010161132e565b505050505050565b6006546001600160a01b031633146113db5760405162461bcd60e51b8152600401610a7c90613145565b6113e56000612274565b565b6006546001600160a01b031633146114115760405162461bcd60e51b8152600401610a7c90613145565b600855565b3360009081526007602052604090205460ff166114455760405162461bcd60e51b8152600401610a7c906132c2565b6013805461ffff191692151561ff0019169290921761010091151591909102179055565b3360009081526007602052604090205460ff166114985760405162461bcd60e51b8152600401610a7c906132c2565b80831461150d5760405162461bcd60e51b815260206004820152603860248201527f46656c696e654669656e647a3a206d7573742070726f7669646520657175616c60448201527f20746f6b656e49647320616e6420726563697069656e747300000000000000006064820152608401610a7c565b60005b818110156112205761156085858381811061152d5761152d613291565b90506020020160208101906115429190612b58565b84848481811061155457611554613291565b905060200201356122c6565b600101611510565b3360009081526007602052604090205460ff166115975760405162461bcd60e51b8152600401610a7c906132c2565b60005b818110156115cc576115c4848484848181106115b8576115b8613291565b905060200201356123ca565b60010161159a565b50505050565b6000600d82815481106111bd576111bd613291565b6060600380546109cc9061310a565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60005b838110156116d7576116c7878787878581811061168457611684613291565b9050602002013586868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506116e092505050565b6116d0816132a7565b9050611665565b50505050505050565b6116ea3383611f94565b6117065760405162461bcd60e51b8152600401610a7c9061324a565b6115cc8484848461250f565b8260001080156117245750600f548311155b6117705760405162461bcd60e51b815260206004820152601b60248201527f46656c696e654669656e647a3a206f7264657220746f6f2062696700000000006044820152606401610a7c565b82600e5461177e9190613201565b3410156117dd5760405162461bcd60e51b815260206004820152602760248201527f46656c696e654669656e647a3a2065746865722073656e74206973206e6f742060448201526618dbdc9c9958dd60ca1b6064820152608401610a7c565b6011543360009081526001602052604090205461180590859062010000900461ffff166131e9565b11156118535760405162461bcd60e51b815260206004820152601d60248201527f46656c696e654669656e647a3a20646f6e2774206265206772656564790000006044820152606401610a7c565b6010548361185f610be9565b61186991906131e9565b11156118875760405162461bcd60e51b8152600401610a7c906132ec565b601354610100900460ff161561189c57611965565b60135460ff161561191d576040516bffffffffffffffffffffffff193360601b166020820152611918906034016040516020818303038152906040528051906020012083838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061254292505050565b611965565b60405162461bcd60e51b815260206004820181905260248201527f46656c696e654669656e647a3a2073616c65206973206e6f74206163746976656044820152606401610a7c565b610be433846001612136565b606061197c82611bdf565b6119da5760405162461bcd60e51b815260206004820152602960248201527f46656c696e654669656e647a3a20717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a7c565b60146119e58361259c565b60156040516020016119f9939291906133cd565b6040516020818303038152906040529050919050565b6006546001600160a01b03163314611a395760405162461bcd60e51b8152600401610a7c90613145565b610be483838361269a565b6006546001600160a01b03163314611a6e5760405162461bcd60e51b8152600401610a7c90613145565b6113e5612733565b3360009081526007602052604090205460ff16611aa55760405162461bcd60e51b8152600401610a7c906132c2565b611aad610be9565b831015611b225760405162461bcd60e51b815260206004820152603c60248201527f46656c696e654669656e647a3a2073706563696669656420737570706c79206960448201527f73206c6f776572207468616e2063757272656e742062616c616e6365000000006064820152608401610a7c565b600f93909355601091909155601155600e55565b6006546001600160a01b03163314611b605760405162461bcd60e51b8152600401610a7c90613145565b6001600160a01b0381166000908152600760205260409020805460ff19166001179055611b8c81612793565b50565b60006001600160e01b031982166380ac58cd60e01b1480611bc057506001600160e01b03198216635b5e139f60e01b145b806109b757506301ffc9a760e01b6001600160e01b03198316146109b7565b60008054821080156109b7575060006001600160a01b031660008381548110611c0a57611c0a613291565b6000918252602090912001546001600160a01b0316141592915050565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c5c82611183565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038216611d005760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401610a7c565b60008111611d505760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401610a7c565b6001600160a01b0382166000908152600b602052604090205415611dca5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401610a7c565b600d8054600181019091557fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180546001600160a01b0319166001600160a01b0384169081179091556000908152600b60205260409020819055600954611e329082906131e9565b600955604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b80471015611ecb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a7c565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611f18576040519150601f19603f3d011682016040523d82523d6000602084013e611f1d565b606091505b5050905080610be45760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a7c565b6000611f9f82611bdf565b611fbb5760405162461bcd60e51b8152600401610a7c9061317a565b6000611fc683611183565b9050806001600160a01b0316846001600160a01b031614806120015750836001600160a01b0316611ff684610aa8565b6001600160a01b0316145b8061203157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661204c82611183565b6001600160a01b0316146120b35760405162461bcd60e51b815260206004820152602860248201527f46463732313a207472616e73666572206f6620746f6b656e2074686174206973604482015267103737ba1037bbb760c11b6064820152608401610a7c565b6120bd838361282b565b6120c8600082611c27565b81600082815481106120dc576120dc613291565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b60005460001983820101821561217f576001600160a01b0385166000908152600160205260409020805461ffff62010000808304821688019091160263ffff0000199091161790555b6001600160a01b0385166000908152600160205260408120805461ffff80821688011661ffff199091161790555b8481101561221d5760408051602081019091526001600160a01b038781168252600080546001808201835591805292517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56390930180546001600160a01b03191693909216929092179055016121ad565b50846001600160a01b031660006001600160a01b0316837fdeaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d8460405161226591815260200190565b60405180910390a45050505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6122cf81611bdf565b156123315760405162461bcd60e51b815260206004820152602c60248201527f46656c696e654669656e647a3a2063616e27742072657375727265637420657860448201526b34b9ba34b733903a37b5b2b760a11b6064820152608401610a7c565b60126000815461234090613400565b91905081905550816000828154811061235b5761235b613291565b6000918252602082200180546001600160a01b0319166001600160a01b03939093169290921790915561238e908361282b565b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600081815481106123dd576123dd613291565b6000918252602090912001546001600160a01b038381169116146124435760405162461bcd60e51b815260206004820152601c60248201527f46656c696e654669656e647a3a206f776e6572206d69736d61746368000000006044820152606401610a7c565b600080828154811061245757612457613291565b9060005260206000200160000160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550601260008154612497906132a7565b909155506124a682600061282b565b60008082815481106124ba576124ba613291565b6000918252602082200180546001600160a01b0319166001600160a01b0393841617905560405183928516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b61251a848484612039565b612526848484846128d6565b6115cc5760405162461bcd60e51b8152600401610a7c90613417565b60085461254f82846129d4565b14610c345760405162461bcd60e51b815260206004820181905260248201527f4d65726b6c652050726f6f6620766572696669636174696f6e206661696c65646044820152606401610a7c565b6060816125c05750506040805180820190915260018152600360fc1b602082015290565b8160005b81156125ea57806125d4816132a7565b91506125e39050600a83613236565b91506125c4565b60008167ffffffffffffffff81111561260557612605612f4f565b6040519080825280601f01601f19166020018201604052801561262f576020820181803683370190505b5090505b8415612031576126446001836131d2565b9150612651600a86613468565b61265c9060306131e9565b60f81b81838151811061267157612671613291565b60200101906001600160f81b031916908160001a905350612693600a86613236565b9450612633565b6001600160a01b0382166000908152600b602052604090205460095482916126c1916131d2565b6126cb91906131e9565b6009556001600160a01b0382166000908152600b60205260409020819055600d80548391908590811061270057612700613291565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550505050565b6000600a8190555b600d54811015611b8c576000600c6000600d848154811061275e5761275e613291565b60009182526020808320909101546001600160a01b0316835282019290925260400190205561278c816132a7565b905061273b565b6006546001600160a01b031633146127bd5760405162461bcd60e51b8152600401610a7c90613145565b6001600160a01b0381166128225760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a7c565b611b8c81612274565b6001600160a01b0382161561287f576001600160a01b038216600090815260016020526040812080549091906128649061ffff1661347c565b91906101000a81548161ffff021916908361ffff1602179055505b6001600160a01b03811615610c34576001600160a01b038116600090815260016020526040812080549091906128b89061ffff1661349a565b91906101000a81548161ffff021916908361ffff1602179055505050565b60006001600160a01b0384163b156129c957604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061291a9033908990889088906004016134bc565b6020604051808303816000875af1925050508015612955575060408051601f3d908101601f19168201909252612952918101906134f9565b60015b6129af573d808015612983576040519150601f19603f3d011682016040523d82523d6000602084013e612988565b606091505b5080516129a75760405162461bcd60e51b8152600401610a7c90613417565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612031565b506001949350505050565b600081815b8451811015612a785760008582815181106129f6576129f6613291565b60200260200101519050808311612a38576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612a65565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612a70816132a7565b9150506129d9565b509392505050565b828054612a8c9061310a565b90600052602060002090601f016020900481019282612aae5760008555612af4565b82601f10612ac75782800160ff19823516178555612af4565b82800160010185558215612af4579182015b82811115612af4578235825591602001919060010190612ad9565b5061117f9291505b8082111561117f5760008155600101612afc565b6001600160e01b031981168114611b8c57600080fd5b600060208284031215612b3857600080fd5b81356110e781612b10565b6001600160a01b0381168114611b8c57600080fd5b600060208284031215612b6a57600080fd5b81356110e781612b43565b60005b83811015612b90578181015183820152602001612b78565b838111156115cc5750506000910152565b60008151808452612bb9816020860160208601612b75565b601f01601f19169290920160200192915050565b6020815260006110e76020830184612ba1565b600060208284031215612bf257600080fd5b5035919050565b60008060408385031215612c0c57600080fd5b8235612c1781612b43565b946020939093013593505050565b600080600060608486031215612c3a57600080fd5b8335612c4581612b43565b92506020840135612c5581612b43565b929592945050506040919091013590565b6020808252825182820181905260009190848201906040850190845b81811015612c9e57835183529284019291840191600101612c82565b50909695505050505050565b80358015158114610aa357600080fd5b60008060408385031215612ccd57600080fd5b8235612cd881612b43565b9150612ce660208401612caa565b90509250929050565b60008083601f840112612d0157600080fd5b50813567ffffffffffffffff811115612d1957600080fd5b6020830191508360208260051b8501011115612d3457600080fd5b9250929050565b600080600060408486031215612d5057600080fd5b8335612d5b81612b43565b9250602084013567ffffffffffffffff811115612d7757600080fd5b612d8386828701612cef565b9497909650939450505050565b60008083601f840112612da257600080fd5b50813567ffffffffffffffff811115612dba57600080fd5b602083019150836020828501011115612d3457600080fd5b60008060008060408587031215612de857600080fd5b843567ffffffffffffffff80821115612e0057600080fd5b612e0c88838901612d90565b90965094506020870135915080821115612e2557600080fd5b50612e3287828801612d90565b95989497509550505050565b60008060008060408587031215612e5457600080fd5b843567ffffffffffffffff80821115612e6c57600080fd5b612e7888838901612cef565b90965094506020870135915080821115612e9157600080fd5b50612e3287828801612cef565b60008060408385031215612eb157600080fd5b612cd883612caa565b60008060008060008060808789031215612ed357600080fd5b8635612ede81612b43565b95506020870135612eee81612b43565b9450604087013567ffffffffffffffff80821115612f0b57600080fd5b612f178a838b01612cef565b90965094506060890135915080821115612f3057600080fd5b50612f3d89828a01612d90565b979a9699509497509295939492505050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612f7b57600080fd5b8435612f8681612b43565b93506020850135612f9681612b43565b925060408501359150606085013567ffffffffffffffff80821115612fba57600080fd5b818701915087601f830112612fce57600080fd5b813581811115612fe057612fe0612f4f565b604051601f8201601f19908116603f0116810190838211818310171561300857613008612f4f565b816040528281528a602084870101111561302157600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060006040848603121561305a57600080fd5b83359250602084013567ffffffffffffffff811115612d7757600080fd5b60008060006060848603121561308d57600080fd5b833592506020840135612c5581612b43565b600080600080608085870312156130b557600080fd5b5050823594602084013594506040840135936060013592509050565b600080604083850312156130e457600080fd5b82356130ef81612b43565b915060208301356130ff81612b43565b809150509250929050565b600181811c9082168061311e57607f821691505b6020821081141561313f57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526022908201527f46463732313a20717565727920666f72206e6f6e6578697374656e7420746f6b60408201526132b760f11b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000828210156131e4576131e46131bc565b500390565b600082198211156131fc576131fc6131bc565b500190565b600081600019048311821515161561321b5761321b6131bc565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261324557613245613220565b500490565b60208082526027908201527f46463732313a2063616c6c6572206973206e6f74206f776e6572206e6f7220616040820152661c1c1c9bdd995960ca1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60006000198214156132bb576132bb6131bc565b5060010190565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b60208082526027908201527f46656c696e654669656e647a3a206d696e742f6f72646572206578636565647360408201526620737570706c7960c81b606082015260800190565b8054600090600181811c908083168061334d57607f831692505b602080841082141561336f57634e487b7160e01b600052602260045260246000fd5b8180156133835760018114613394576133c1565b60ff198616895284890196506133c1565b60008881526020902060005b868110156133b95781548b8201529085019083016133a0565b505084890196505b50505050505092915050565b60006133d98286613333565b84516133e9818360208901612b75565b6133f581830186613333565b979650505050505050565b60008161340f5761340f6131bc565b506000190190565b60208082526031908201527f46463732313a207472616e7366657220746f206e6f6e2045524337323152656360408201527032b4bb32b91034b6b83632b6b2b73a32b960791b606082015260800190565b60008261347757613477613220565b500690565b600061ffff821680613490576134906131bc565b6000190192915050565b600061ffff808316818114156134b2576134b26131bc565b6001019392505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906134ef90830184612ba1565b9695505050505050565b60006020828403121561350b57600080fd5b81516110e781612b1056fea26469706673582212207e9c0c6626b6adcd5c152616063a2506608bf58ce5c7c6531ccc60859e69210664736f6c634300080c0033

Deployed Bytecode

0x6080604052600436106102af5760003560e01c8063715018a611610166578063a22cb465116100d3578063df2388001161008f578063e5c389cd1161006c578063e5c389cd146108f3578063e985e9c514610913578063f0292a031461095c578063f2fde38b1461097257005b8063df238800146108a9578063e33b7de3146108c9578063e4ed53a9146108de57005b8063a22cb465146107e0578063b534a5c414610800578063b88d4fde14610820578063ba41b0c614610840578063c87b56dd14610853578063ce7c2ac21461087357005b806389af61071161012257806389af6107146107215780638b83209b146107415780638d859f3e146107615780638da5cb5b1461077757806395d89b41146107955780639852595c146107aa57005b8063715018a61461067757806373f425611461068c5780637cb64759146106a25780637f608d03146106c25780637f75c315146106e257806380fda1e21461070157005b80633a98ef391161021c5780634f6ccce7116101d85780636352211e116101b55780636352211e146105ea5780636790a9de1461060a57806369add11d1461062a57806370a082311461063d57005b80634f6ccce71461059a57806350c5a00c146105ba57806360d938dc146105d057005b80633a98ef39146104d857806342842e0e146104ed578063438b63001461050d5780634a994eef1461053a5780634d44660c1461055a5780634f64b2be1461057a57005b806318160ddd1161026b57806318160ddd1461041f57806318f9b02314610442578063191655871461046257806323b872dd146104825780632f745c59146104a257806332cb6b0c146104c257005b806301ffc9a7146102fa578063022914a71461032f57806306fdde031461038557806307779627146103a7578063081812fc146103c7578063095ea7b3146103ff57005b366102f8577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b005b34801561030657600080fd5b5061031a610315366004612b26565b610992565b60405190151581526020015b60405180910390f35b34801561033b57600080fd5b5061036a61034a366004612b58565b60016020526000908152604090205461ffff808216916201000090041682565b6040805161ffff938416815292909116602083015201610326565b34801561039157600080fd5b5061039a6109bd565b6040516103269190612bcd565b3480156103b357600080fd5b5061031a6103c2366004612b58565b610a4f565b3480156103d357600080fd5b506103e76103e2366004612be0565b610aa8565b6040516001600160a01b039091168152602001610326565b34801561040b57600080fd5b506102f861041a366004612bf9565b610aeb565b34801561042b57600080fd5b50610434610be9565b604051908152602001610326565b34801561044e57600080fd5b506102f861045d366004612bf9565b610c00565b34801561046e57600080fd5b506102f861047d366004612b58565b610c38565b34801561048e57600080fd5b506102f861049d366004612c25565b610e09565b3480156104ae57600080fd5b506104346104bd366004612bf9565b610e3a565b3480156104ce57600080fd5b5061043460105481565b3480156104e457600080fd5b50600954610434565b3480156104f957600080fd5b506102f8610508366004612c25565b610f05565b34801561051957600080fd5b5061052d610528366004612b58565b610f20565b6040516103269190612c66565b34801561054657600080fd5b506102f8610555366004612cba565b61101d565b34801561056657600080fd5b5061031a610575366004612d3b565b611072565b34801561058657600080fd5b506103e7610595366004612be0565b6110ee565b3480156105a657600080fd5b506104346105b5366004612be0565b611118565b3480156105c657600080fd5b50610434600f5481565b3480156105dc57600080fd5b5060135461031a9060ff1681565b3480156105f657600080fd5b506103e7610605366004612be0565b611183565b34801561061657600080fd5b506102f8610625366004612dd2565b6111d8565b6102f8610638366004612e3e565b611227565b34801561064957600080fd5b50610434610658366004612b58565b6001600160a01b031660009081526001602052604090205461ffff1690565b34801561068357600080fd5b506102f86113b1565b34801561069857600080fd5b5061043460125481565b3480156106ae57600080fd5b506102f86106bd366004612be0565b6113e7565b3480156106ce57600080fd5b506102f86106dd366004612e9e565b611416565b3480156106ee57600080fd5b5060135461031a90610100900460ff1681565b34801561070d57600080fd5b506102f861071c366004612e3e565b611469565b34801561072d57600080fd5b506102f861073c366004612d3b565b611568565b34801561074d57600080fd5b506103e761075c366004612be0565b6115d2565b34801561076d57600080fd5b50610434600e5481565b34801561078357600080fd5b506006546001600160a01b03166103e7565b3480156107a157600080fd5b5061039a6115e7565b3480156107b657600080fd5b506104346107c5366004612b58565b6001600160a01b03166000908152600c602052604090205490565b3480156107ec57600080fd5b506102f86107fb366004612cba565b6115f6565b34801561080c57600080fd5b506102f861081b366004612eba565b611662565b34801561082c57600080fd5b506102f861083b366004612f65565b6116e0565b6102f861084e366004613045565b611712565b34801561085f57600080fd5b5061039a61086e366004612be0565b611971565b34801561087f57600080fd5b5061043461088e366004612b58565b6001600160a01b03166000908152600b602052604090205490565b3480156108b557600080fd5b506102f86108c4366004613078565b611a0f565b3480156108d557600080fd5b50600a54610434565b3480156108ea57600080fd5b506102f8611a44565b3480156108ff57600080fd5b506102f861090e36600461309f565b611a76565b34801561091f57600080fd5b5061031a61092e3660046130d1565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561096857600080fd5b5061043460115481565b34801561097e57600080fd5b506102f861098d366004612b58565b611b36565b60006001600160e01b0319821663780e9d6360e01b14806109b757506109b782611b8f565b92915050565b6060600280546109cc9061310a565b80601f01602080910402602001604051908101604052809291908181526020018280546109f89061310a565b8015610a455780601f10610a1a57610100808354040283529160200191610a45565b820191906000526020600020905b815481529060010190602001808311610a2857829003601f168201915b5050505050905090565b6006546000906001600160a01b03163314610a855760405162461bcd60e51b8152600401610a7c90613145565b60405180910390fd5b506001600160a01b03811660009081526007602052604090205460ff165b919050565b6000610ab382611bdf565b610acf5760405162461bcd60e51b8152600401610a7c9061317a565b506000908152600460205260409020546001600160a01b031690565b6000610af682611183565b9050806001600160a01b0316836001600160a01b03161415610b5a5760405162461bcd60e51b815260206004820181905260248201527f46463732313a20617070726f76616c20746f2063757272656e74206f776e65726044820152606401610a7c565b336001600160a01b0382161480610b765750610b76813361092e565b610bda5760405162461bcd60e51b815260206004820152602f60248201527f46463732313a2063616c6c6572206973206e6f74206f776e6572206e6f72206160448201526e1c1c1c9bdd995908199bdc88185b1b608a1b6064820152608401610a7c565b610be48383611c27565b505050565b601254600080549091610bfb916131d2565b905090565b6006546001600160a01b03163314610c2a5760405162461bcd60e51b8152600401610a7c90613145565b610c348282611c95565b5050565b6001600160a01b0381166000908152600b6020526040902054610cac5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b6064820152608401610a7c565b6000600a5447610cbc91906131e9565b6001600160a01b0383166000908152600c6020908152604080832054600954600b909352908320549394509192610cf39085613201565b610cfd9190613236565b610d0791906131d2565b905080610d6a5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610a7c565b6001600160a01b0383166000908152600c6020526040902054610d8e9082906131e9565b6001600160a01b0384166000908152600c6020526040902055600a54610db59082906131e9565b600a55610dc28382611e7b565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610e133382611f94565b610e2f5760405162461bcd60e51b8152600401610a7c9061324a565b610be4838383612039565b60008060005b600054811015610ea95760008181548110610e5d57610e5d613291565b6000918252602090912001546001600160a01b0386811691161415610e995783821415610e8d5791506109b79050565b610e96826132a7565b91505b610ea2816132a7565b9050610e40565b5060405162461bcd60e51b815260206004820152602a60248201527f4646373231456e756d657261626c653a206f776e657220696e646578206f7574604482015269206f6620626f756e647360b01b6064820152608401610a7c565b610be4838383604051806020016040528060008152506116e0565b6060600080610f48846001600160a01b031660009081526001602052604090205461ffff1690565b90508067ffffffffffffffff811115610f6357610f63612f4f565b604051908082528060200260200182016040528015610f8c578160200160208202803683370190505b50925060005b6000548110156110155760008181548110610faf57610faf613291565b6000918252602090912001546001600160a01b038681169116141561100557808484610fda816132a7565b955081518110610fec57610fec613291565b6020026020010181815250508183141561100557611015565b61100e816132a7565b9050610f92565b505050919050565b6006546001600160a01b031633146110475760405162461bcd60e51b8152600401610a7c90613145565b6001600160a01b03919091166000908152600760205260409020805460ff1916911515919091179055565b6000805b828110156110e157600084848381811061109257611092613291565b90506020020135815481106110a9576110a9613291565b6000918252602090912001546001600160a01b038681169116146110d15760009150506110e7565b6110da816132a7565b9050611076565b50600190505b9392505050565b600081815481106110fe57600080fd5b6000918252602090912001546001600160a01b0316905081565b60008054821061117f5760405162461bcd60e51b815260206004820152602c60248201527f4646373231456e756d657261626c653a20717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a7c565b5090565b600061118e82611bdf565b6111aa5760405162461bcd60e51b8152600401610a7c9061317a565b600082815481106111bd576111bd613291565b6000918252602090912001546001600160a01b031692915050565b3360009081526007602052604090205460ff166112075760405162461bcd60e51b8152600401610a7c906132c2565b61121360148585612a80565b5061122060158383612a80565b5050505050565b3360009081526007602052604090205460ff166112565760405162461bcd60e51b8152600401610a7c906132c2565b8083146112cb5760405162461bcd60e51b815260206004820152603a60248201527f46656c696e654669656e647a3a206d7573742070726f7669646520657175616c60448201527f207175616e74697469657320616e6420726563697069656e74730000000000006064820152608401610a7c565b6000805b828110156112ff578383828181106112e9576112e9613291565b90506020020135820191508060010190506112cf565b506010548161130c610be9565b01111561132b5760405162461bcd60e51b8152600401610a7c906132ec565b60005b848110156113a957600084848381811061134a5761134a613291565b9050602002013511156113a1576113a186868381811061136c5761136c613291565b90506020020160208101906113819190612b58565b85858481811061139357611393613291565b905060200201356000612136565b60010161132e565b505050505050565b6006546001600160a01b031633146113db5760405162461bcd60e51b8152600401610a7c90613145565b6113e56000612274565b565b6006546001600160a01b031633146114115760405162461bcd60e51b8152600401610a7c90613145565b600855565b3360009081526007602052604090205460ff166114455760405162461bcd60e51b8152600401610a7c906132c2565b6013805461ffff191692151561ff0019169290921761010091151591909102179055565b3360009081526007602052604090205460ff166114985760405162461bcd60e51b8152600401610a7c906132c2565b80831461150d5760405162461bcd60e51b815260206004820152603860248201527f46656c696e654669656e647a3a206d7573742070726f7669646520657175616c60448201527f20746f6b656e49647320616e6420726563697069656e747300000000000000006064820152608401610a7c565b60005b818110156112205761156085858381811061152d5761152d613291565b90506020020160208101906115429190612b58565b84848481811061155457611554613291565b905060200201356122c6565b600101611510565b3360009081526007602052604090205460ff166115975760405162461bcd60e51b8152600401610a7c906132c2565b60005b818110156115cc576115c4848484848181106115b8576115b8613291565b905060200201356123ca565b60010161159a565b50505050565b6000600d82815481106111bd576111bd613291565b6060600380546109cc9061310a565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60005b838110156116d7576116c7878787878581811061168457611684613291565b9050602002013586868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506116e092505050565b6116d0816132a7565b9050611665565b50505050505050565b6116ea3383611f94565b6117065760405162461bcd60e51b8152600401610a7c9061324a565b6115cc8484848461250f565b8260001080156117245750600f548311155b6117705760405162461bcd60e51b815260206004820152601b60248201527f46656c696e654669656e647a3a206f7264657220746f6f2062696700000000006044820152606401610a7c565b82600e5461177e9190613201565b3410156117dd5760405162461bcd60e51b815260206004820152602760248201527f46656c696e654669656e647a3a2065746865722073656e74206973206e6f742060448201526618dbdc9c9958dd60ca1b6064820152608401610a7c565b6011543360009081526001602052604090205461180590859062010000900461ffff166131e9565b11156118535760405162461bcd60e51b815260206004820152601d60248201527f46656c696e654669656e647a3a20646f6e2774206265206772656564790000006044820152606401610a7c565b6010548361185f610be9565b61186991906131e9565b11156118875760405162461bcd60e51b8152600401610a7c906132ec565b601354610100900460ff161561189c57611965565b60135460ff161561191d576040516bffffffffffffffffffffffff193360601b166020820152611918906034016040516020818303038152906040528051906020012083838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061254292505050565b611965565b60405162461bcd60e51b815260206004820181905260248201527f46656c696e654669656e647a3a2073616c65206973206e6f74206163746976656044820152606401610a7c565b610be433846001612136565b606061197c82611bdf565b6119da5760405162461bcd60e51b815260206004820152602960248201527f46656c696e654669656e647a3a20717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a7c565b60146119e58361259c565b60156040516020016119f9939291906133cd565b6040516020818303038152906040529050919050565b6006546001600160a01b03163314611a395760405162461bcd60e51b8152600401610a7c90613145565b610be483838361269a565b6006546001600160a01b03163314611a6e5760405162461bcd60e51b8152600401610a7c90613145565b6113e5612733565b3360009081526007602052604090205460ff16611aa55760405162461bcd60e51b8152600401610a7c906132c2565b611aad610be9565b831015611b225760405162461bcd60e51b815260206004820152603c60248201527f46656c696e654669656e647a3a2073706563696669656420737570706c79206960448201527f73206c6f776572207468616e2063757272656e742062616c616e6365000000006064820152608401610a7c565b600f93909355601091909155601155600e55565b6006546001600160a01b03163314611b605760405162461bcd60e51b8152600401610a7c90613145565b6001600160a01b0381166000908152600760205260409020805460ff19166001179055611b8c81612793565b50565b60006001600160e01b031982166380ac58cd60e01b1480611bc057506001600160e01b03198216635b5e139f60e01b145b806109b757506301ffc9a760e01b6001600160e01b03198316146109b7565b60008054821080156109b7575060006001600160a01b031660008381548110611c0a57611c0a613291565b6000918252602090912001546001600160a01b0316141592915050565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c5c82611183565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038216611d005760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401610a7c565b60008111611d505760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401610a7c565b6001600160a01b0382166000908152600b602052604090205415611dca5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401610a7c565b600d8054600181019091557fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180546001600160a01b0319166001600160a01b0384169081179091556000908152600b60205260409020819055600954611e329082906131e9565b600955604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b80471015611ecb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a7c565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611f18576040519150601f19603f3d011682016040523d82523d6000602084013e611f1d565b606091505b5050905080610be45760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a7c565b6000611f9f82611bdf565b611fbb5760405162461bcd60e51b8152600401610a7c9061317a565b6000611fc683611183565b9050806001600160a01b0316846001600160a01b031614806120015750836001600160a01b0316611ff684610aa8565b6001600160a01b0316145b8061203157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661204c82611183565b6001600160a01b0316146120b35760405162461bcd60e51b815260206004820152602860248201527f46463732313a207472616e73666572206f6620746f6b656e2074686174206973604482015267103737ba1037bbb760c11b6064820152608401610a7c565b6120bd838361282b565b6120c8600082611c27565b81600082815481106120dc576120dc613291565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b60005460001983820101821561217f576001600160a01b0385166000908152600160205260409020805461ffff62010000808304821688019091160263ffff0000199091161790555b6001600160a01b0385166000908152600160205260408120805461ffff80821688011661ffff199091161790555b8481101561221d5760408051602081019091526001600160a01b038781168252600080546001808201835591805292517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56390930180546001600160a01b03191693909216929092179055016121ad565b50846001600160a01b031660006001600160a01b0316837fdeaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d8460405161226591815260200190565b60405180910390a45050505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6122cf81611bdf565b156123315760405162461bcd60e51b815260206004820152602c60248201527f46656c696e654669656e647a3a2063616e27742072657375727265637420657860448201526b34b9ba34b733903a37b5b2b760a11b6064820152608401610a7c565b60126000815461234090613400565b91905081905550816000828154811061235b5761235b613291565b6000918252602082200180546001600160a01b0319166001600160a01b03939093169290921790915561238e908361282b565b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600081815481106123dd576123dd613291565b6000918252602090912001546001600160a01b038381169116146124435760405162461bcd60e51b815260206004820152601c60248201527f46656c696e654669656e647a3a206f776e6572206d69736d61746368000000006044820152606401610a7c565b600080828154811061245757612457613291565b9060005260206000200160000160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550601260008154612497906132a7565b909155506124a682600061282b565b60008082815481106124ba576124ba613291565b6000918252602082200180546001600160a01b0319166001600160a01b0393841617905560405183928516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b61251a848484612039565b612526848484846128d6565b6115cc5760405162461bcd60e51b8152600401610a7c90613417565b60085461254f82846129d4565b14610c345760405162461bcd60e51b815260206004820181905260248201527f4d65726b6c652050726f6f6620766572696669636174696f6e206661696c65646044820152606401610a7c565b6060816125c05750506040805180820190915260018152600360fc1b602082015290565b8160005b81156125ea57806125d4816132a7565b91506125e39050600a83613236565b91506125c4565b60008167ffffffffffffffff81111561260557612605612f4f565b6040519080825280601f01601f19166020018201604052801561262f576020820181803683370190505b5090505b8415612031576126446001836131d2565b9150612651600a86613468565b61265c9060306131e9565b60f81b81838151811061267157612671613291565b60200101906001600160f81b031916908160001a905350612693600a86613236565b9450612633565b6001600160a01b0382166000908152600b602052604090205460095482916126c1916131d2565b6126cb91906131e9565b6009556001600160a01b0382166000908152600b60205260409020819055600d80548391908590811061270057612700613291565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550505050565b6000600a8190555b600d54811015611b8c576000600c6000600d848154811061275e5761275e613291565b60009182526020808320909101546001600160a01b0316835282019290925260400190205561278c816132a7565b905061273b565b6006546001600160a01b031633146127bd5760405162461bcd60e51b8152600401610a7c90613145565b6001600160a01b0381166128225760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a7c565b611b8c81612274565b6001600160a01b0382161561287f576001600160a01b038216600090815260016020526040812080549091906128649061ffff1661347c565b91906101000a81548161ffff021916908361ffff1602179055505b6001600160a01b03811615610c34576001600160a01b038116600090815260016020526040812080549091906128b89061ffff1661349a565b91906101000a81548161ffff021916908361ffff1602179055505050565b60006001600160a01b0384163b156129c957604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061291a9033908990889088906004016134bc565b6020604051808303816000875af1925050508015612955575060408051601f3d908101601f19168201909252612952918101906134f9565b60015b6129af573d808015612983576040519150601f19603f3d011682016040523d82523d6000602084013e612988565b606091505b5080516129a75760405162461bcd60e51b8152600401610a7c90613417565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612031565b506001949350505050565b600081815b8451811015612a785760008582815181106129f6576129f6613291565b60200260200101519050808311612a38576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612a65565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612a70816132a7565b9150506129d9565b509392505050565b828054612a8c9061310a565b90600052602060002090601f016020900481019282612aae5760008555612af4565b82601f10612ac75782800160ff19823516178555612af4565b82800160010185558215612af4579182015b82811115612af4578235825591602001919060010190612ad9565b5061117f9291505b8082111561117f5760008155600101612afc565b6001600160e01b031981168114611b8c57600080fd5b600060208284031215612b3857600080fd5b81356110e781612b10565b6001600160a01b0381168114611b8c57600080fd5b600060208284031215612b6a57600080fd5b81356110e781612b43565b60005b83811015612b90578181015183820152602001612b78565b838111156115cc5750506000910152565b60008151808452612bb9816020860160208601612b75565b601f01601f19169290920160200192915050565b6020815260006110e76020830184612ba1565b600060208284031215612bf257600080fd5b5035919050565b60008060408385031215612c0c57600080fd5b8235612c1781612b43565b946020939093013593505050565b600080600060608486031215612c3a57600080fd5b8335612c4581612b43565b92506020840135612c5581612b43565b929592945050506040919091013590565b6020808252825182820181905260009190848201906040850190845b81811015612c9e57835183529284019291840191600101612c82565b50909695505050505050565b80358015158114610aa357600080fd5b60008060408385031215612ccd57600080fd5b8235612cd881612b43565b9150612ce660208401612caa565b90509250929050565b60008083601f840112612d0157600080fd5b50813567ffffffffffffffff811115612d1957600080fd5b6020830191508360208260051b8501011115612d3457600080fd5b9250929050565b600080600060408486031215612d5057600080fd5b8335612d5b81612b43565b9250602084013567ffffffffffffffff811115612d7757600080fd5b612d8386828701612cef565b9497909650939450505050565b60008083601f840112612da257600080fd5b50813567ffffffffffffffff811115612dba57600080fd5b602083019150836020828501011115612d3457600080fd5b60008060008060408587031215612de857600080fd5b843567ffffffffffffffff80821115612e0057600080fd5b612e0c88838901612d90565b90965094506020870135915080821115612e2557600080fd5b50612e3287828801612d90565b95989497509550505050565b60008060008060408587031215612e5457600080fd5b843567ffffffffffffffff80821115612e6c57600080fd5b612e7888838901612cef565b90965094506020870135915080821115612e9157600080fd5b50612e3287828801612cef565b60008060408385031215612eb157600080fd5b612cd883612caa565b60008060008060008060808789031215612ed357600080fd5b8635612ede81612b43565b95506020870135612eee81612b43565b9450604087013567ffffffffffffffff80821115612f0b57600080fd5b612f178a838b01612cef565b90965094506060890135915080821115612f3057600080fd5b50612f3d89828a01612d90565b979a9699509497509295939492505050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612f7b57600080fd5b8435612f8681612b43565b93506020850135612f9681612b43565b925060408501359150606085013567ffffffffffffffff80821115612fba57600080fd5b818701915087601f830112612fce57600080fd5b813581811115612fe057612fe0612f4f565b604051601f8201601f19908116603f0116810190838211818310171561300857613008612f4f565b816040528281528a602084870101111561302157600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060006040848603121561305a57600080fd5b83359250602084013567ffffffffffffffff811115612d7757600080fd5b60008060006060848603121561308d57600080fd5b833592506020840135612c5581612b43565b600080600080608085870312156130b557600080fd5b5050823594602084013594506040840135936060013592509050565b600080604083850312156130e457600080fd5b82356130ef81612b43565b915060208301356130ff81612b43565b809150509250929050565b600181811c9082168061311e57607f821691505b6020821081141561313f57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526022908201527f46463732313a20717565727920666f72206e6f6e6578697374656e7420746f6b60408201526132b760f11b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000828210156131e4576131e46131bc565b500390565b600082198211156131fc576131fc6131bc565b500190565b600081600019048311821515161561321b5761321b6131bc565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261324557613245613220565b500490565b60208082526027908201527f46463732313a2063616c6c6572206973206e6f74206f776e6572206e6f7220616040820152661c1c1c9bdd995960ca1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60006000198214156132bb576132bb6131bc565b5060010190565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b60208082526027908201527f46656c696e654669656e647a3a206d696e742f6f72646572206578636565647360408201526620737570706c7960c81b606082015260800190565b8054600090600181811c908083168061334d57607f831692505b602080841082141561336f57634e487b7160e01b600052602260045260246000fd5b8180156133835760018114613394576133c1565b60ff198616895284890196506133c1565b60008881526020902060005b868110156133b95781548b8201529085019083016133a0565b505084890196505b50505050505092915050565b60006133d98286613333565b84516133e9818360208901612b75565b6133f581830186613333565b979650505050505050565b60008161340f5761340f6131bc565b506000190190565b60208082526031908201527f46463732313a207472616e7366657220746f206e6f6e2045524337323152656360408201527032b4bb32b91034b6b83632b6b2b73a32b960791b606082015260800190565b60008261347757613477613220565b500690565b600061ffff821680613490576134906131bc565b6000190192915050565b600061ffff808316818114156134b2576134b26131bc565b6001019392505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906134ef90830184612ba1565b9695505050505050565b60006020828403121561350b57600080fd5b81516110e781612b1056fea26469706673582212207e9c0c6626b6adcd5c152616063a2506608bf58ce5c7c6531ccc60859e69210664736f6c634300080c0033

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.