ETH Price: $3,392.38 (+2.30%)

Token

Confessions From the Hart Genesis Collection (CFTH)
 

Overview

Max Total Supply

2,379 CFTH

Holders

1,072

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 CFTH
0xf4ab3943b33bb91386fcbde14708d26014a43a65
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
GenerativeCollectionUpdateableWhitelist

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 15000 runs

Other Settings:
default evmVersion
File 1 of 20 : GenerativeCollectionWithUpdateableWhitelist.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.13;

import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol';
import '@openzeppelin/contracts/security/Pausable.sol';
import '@openzeppelin/contracts/access/AccessControl.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/finance/PaymentSplitter.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';

/// @title Simple ERC721 interface with only necessary function for checking presale criteria
interface PresaleContract721Interface {
  function balanceOf(address owner) external view returns (uint256 balance);
}

/// @title Simple ERC1155 interface with only necessary functions for checking presale criteria
interface PresaleContract1155Interface {
  function balanceOf(address _owner, uint256 _id)
    external
    view
    returns (uint256);

  function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
    external
    view
    returns (uint256[] memory);
}

error NotEnoughEther();
error NotEligiblePresale();
error ExceededMaxSupply();
error ExceededMaxPurchaseable();

struct PresaleContract {
  address contractAddress;
  uint256[] tokenIds;
}

/// @title Generative Collection contract with payment splitter, presale, reservation, and access control built in.abi
/// @dev This contract inherits both AccessControl and Ownable.
/// AccessControl is used for limiting access to the contract's functionalities.
/// Ownable is used for setting the current owner of the contract making it easier to
/// deal with secondary markets like OpenSea for claiming ownership and setting royalty info off-chain.
contract GenerativeCollectionUpdateableWhitelist is
  ERC721,
  ERC721URIStorage,
  ERC721Burnable,
  Pausable,
  AccessControl,
  PaymentSplitter,
  Ownable,
  ReentrancyGuard
{
  uint256 private _tokenIdCounter = 1;
  uint256 private _burnCount = 0;
  string private _metadataBaseURI;

  uint256 public immutable maxSupply;
  uint256 public constant MAX_NFT_PURCHASEABLE = 6;
  uint256 public constant MAX_PRESALE_MINTING = 10;

  uint256 private _reserved = 100;
  uint256 private _mintPrice = 0.05 ether;

  bool private _isPresale = true;

  PresaleContract[] private _presaleContracts;
  mapping(address => uint256) private _presaleMintedAddresses;

  uint256 private _numberOfPayees;

  // @dev maps from user address to number of mints allowed for presale
  mapping(address => uint256) public presaleWhitelistForUsers;

  constructor(
    address[] memory payees,
    uint256[] memory shares,
    address owner_,
    string memory name,
    string memory symbol_,
    string memory baseUri,
    uint256 mintPrice,
    uint256 maxSupply_,
    uint256 reservedAmount
  ) ERC721(name, symbol_) PaymentSplitter(payees, shares) {
    _transferOwnership(owner_);
    _grantRole(DEFAULT_ADMIN_ROLE, owner_);

    _numberOfPayees = payees.length;
    _metadataBaseURI = baseUri;
    _mintPrice = mintPrice;
    maxSupply = maxSupply_;
    _reserved = reservedAmount;

    _pause();
  }

  modifier whenNotExceededMaxPresaleMintLimit(
    address sender,
    uint256 numberOfTokens
  ) {
    uint256 presaleWhitelistMints = presaleWhitelistForUsers[sender];
    bool isPresale_ = _isPresale;

    if (isPresale_ && presaleWhitelistMints == 0) {
      require(
        _presaleMintedAddresses[sender] + numberOfTokens <= MAX_PRESALE_MINTING,
        'Presale mint limit reached'
      );
    } else if (isPresale_ && (presaleWhitelistMints > 0)) {
      require(
        numberOfTokens <= presaleWhitelistMints,
        'Requested more mints than allowed for presale'
      );
    }

    _;
  }

  modifier whenPresale(address sender) {
    if (_isPresale) {
      bool isEligible = determineIsEligibleForPresale(sender);

      if (!isEligible) {
        revert NotEligiblePresale();
      }
    }

    _;
  }

  modifier whenAmountIsZero(uint256 numberOfTokens) {
    require(numberOfTokens != 0, 'Mint amount cannot be zero');

    _;
  }

  modifier whenNotExceedMaxPurchaseable(uint256 numberOfTokens) {
    if (numberOfTokens < 0 || numberOfTokens > MAX_NFT_PURCHASEABLE) {
      revert ExceededMaxPurchaseable();
    }

    _;
  }

  modifier whenNotExceedMaxSupply(uint256 numberOfTokens) {
    if (
      totalSupply() + numberOfTokens > (maxSupplyWithBurnCount() - _reserved)
    ) {
      revert ExceededMaxSupply();
    }

    _;
  }

  modifier hasEnoughEther(uint256 numberOfTokens) {
    if (msg.value < _mintPrice * numberOfTokens) {
      revert NotEnoughEther();
    }

    _;
  }

  // @dev only being used in whenPresale modifier, to allow early returns
  // @dev could possibly be inlined
  // @return boolean, whether or not address is eligible
  function determineIsEligibleForPresale(address sender)
    internal
    view
    returns (bool)
  {
    if (presaleWhitelistForUsers[sender] > 0) {
      return true;
    }

    // caching array length
    uint256 presaleContractsLength = _presaleContracts.length;
    for (uint256 i = 0; i < presaleContractsLength; i++) {
      PresaleContract memory presaleContract = _presaleContracts[i];

      // check if presale address is a contract
      if (!(presaleContract.contractAddress.code.length > 0)) {
        break;
      }

      if (
        // ERC721 presale
        presaleContract.tokenIds.length == 0 &&
        PresaleContract721Interface(presaleContract.contractAddress).balanceOf(
          sender
        ) >
        0
      ) {
        return true;
      } else if (presaleContract.tokenIds.length > 0) {
        // ERC1155
        // compile the array of addresses for the batch call
        address[] memory addresses = new address[](
          presaleContract.tokenIds.length
        );

        uint256 addressesLength = addresses.length;
        for (uint256 j = 0; j < addressesLength; j++) {
          addresses[j] = sender;
        }

        // check balances of tokens for user
        uint256[] memory balances = PresaleContract1155Interface(
          presaleContract.contractAddress
        ).balanceOfBatch(addresses, presaleContract.tokenIds);

        uint256 balancesLength = balances.length;
        for (uint256 k = 0; k < balancesLength; k++) {
          if (balances[k] > 0) {
            return true;
          }
        }
      }
    }

    return false;
  }

  /// @dev Takes into account of the burnt tokens. This is used by etherscan to display the total supply of the NFT collection
  /// @return Total supply of the minted tokens
  function totalSupply() public view returns (uint256) {
    // token supply starts at 1
    return _tokenIdCounter - _burnCount - 1;
  }

  function maxSupplyWithBurnCount() internal view returns (uint256) {
    return maxSupply - _burnCount;
  }

  function updatePresaleWhitelist(
    address[] calldata _addresses,
    uint256[] calldata _mints
  ) external onlyRole(DEFAULT_ADMIN_ROLE) {
    require(
      _addresses.length == _mints.length,
      'Addresses and mints should have same length'
    );

    uint256 length = _addresses.length;
    for (uint256 i = 0; i < length; i++) {
      presaleWhitelistForUsers[_addresses[i]] = _mints[i];
    }
  }

  /// @notice Mint the given number of NFTs to the msg.sender
  /// @param numberOfTokens The number of NFTs to be minted
  function mintNft(uint256 numberOfTokens)
    external
    payable
    whenNotPaused
    nonReentrant
    whenNotExceededMaxPresaleMintLimit(msg.sender, numberOfTokens)
    whenPresale(msg.sender)
    whenAmountIsZero(numberOfTokens)
    whenNotExceedMaxPurchaseable(numberOfTokens)
    whenNotExceedMaxSupply(numberOfTokens)
    hasEnoughEther(numberOfTokens)
  {
    // keep track of who has minted in presale to limit presale minting
    if (_isPresale) {
      _presaleMintedAddresses[msg.sender] += numberOfTokens;
      presaleWhitelistForUsers[msg.sender] -= numberOfTokens;
    }

    for (uint256 i = 0; i < numberOfTokens; i++) {
      if (totalSupply() < maxSupplyWithBurnCount()) {
        _safeMint(msg.sender, _tokenIdCounter);

        // Safety:
        // token ID counter is never able to come close to an uint256 overflow
        unchecked {
          _tokenIdCounter++;
        }
      }
    }
  }

  /// @notice Mint directly to another wallet address
  /// @dev This is used by third party service to mint directly to another address
  /// @param numberOfTokens The number of NFTs to be minted
  /// @param recipient Address of the target wallet to mint to
  function mintNftTo(uint256 numberOfTokens, address recipient)
    external
    payable
    nonReentrant
    whenNotPaused
    whenNotExceededMaxPresaleMintLimit(recipient, numberOfTokens)
    whenPresale(recipient)
    whenAmountIsZero(numberOfTokens)
    whenNotExceedMaxPurchaseable(numberOfTokens)
    whenNotExceedMaxSupply(numberOfTokens)
    hasEnoughEther(numberOfTokens)
  {
    if (_isPresale) {
      _presaleMintedAddresses[recipient] += numberOfTokens;
      presaleWhitelistForUsers[recipient] -= numberOfTokens;
    }

    for (uint256 i = 0; i < numberOfTokens; i++) {
      if (totalSupply() < maxSupplyWithBurnCount()) {
        _safeMint(recipient, _tokenIdCounter);

        // Safety:
        // token ID counter is never able to come close to an uint256 overflow
        unchecked {
          _tokenIdCounter++;
        }
      }
    }
  }

  /// @notice Pre-mint number of NFTs to an address. Admin only.
  /// @dev Mint reserved NFTs to a specified wallet. Decreases the number of available reserved amount.
  /// @param to Address of the target wallet to mint to
  /// @param numberOfTokens The number of NFTs to be minted
  function giveAwayNft(address to, uint256 numberOfTokens)
    external
    nonReentrant
    onlyRole(DEFAULT_ADMIN_ROLE)
  {
    require(numberOfTokens <= _reserved, 'Exceeds reserved supply');

    for (uint256 i = 0; i < numberOfTokens; i++) {
      if (totalSupply() < maxSupplyWithBurnCount()) {
        _safeMint(to, _tokenIdCounter);

        // Safety:
        // token ID counter is never able to come close to an uint256 overflow
        unchecked {
          _tokenIdCounter++;
        }
      }
    }

    _reserved -= numberOfTokens;
  }

  /// @notice Ends presale period to start main sale. Admin only.
  function endPresale() external onlyRole(DEFAULT_ADMIN_ROLE) {
    require(_isPresale, 'Presale already ended');
    _isPresale = false;
  }

  /// @return The boolean state of presale for the contract
  function isPresale() external view virtual returns (bool) {
    return _isPresale;
  }

  /// @notice Add presale contract (ERC721 or ERC1155) for targeting during presale period. Admin only.
  /// @dev ERC721: Leave the tokenIds array as empty. ERC1155, add token IDs that we want to target
  /// @param contractAddress Address of an ERC721 or ERC1155 smart contract for presale
  /// @param tokenIds Array of token IDs to be considered for presale
  function addPresaleContract(
    address contractAddress,
    uint256[] memory tokenIds
  ) external onlyRole(DEFAULT_ADMIN_ROLE) {
    _presaleContracts.push(
      PresaleContract({ contractAddress: contractAddress, tokenIds: tokenIds })
    );
  }

  /// @notice Clear all of the presale contracts. Admin only.
  /// @dev For resetting the presale list of contracts and starting over
  function clearPresaleContracts() external onlyRole(DEFAULT_ADMIN_ROLE) {
    // reset the presale contracts array
    delete _presaleContracts;
  }

  /// @notice Get the list of presale contracts
  /// @return Array of presale contracts stored on-chain
  function getPresaleContracts()
    external
    view
    returns (PresaleContract[] memory)
  {
    return _presaleContracts;
  }

  /// @notice Get the current mint price for minting an NFT
  /// @return Current mint price stored on-chain
  function getMintPrice() external view returns (uint256) {
    return _mintPrice;
  }

  /// @notice Set new mint price, override the current one. Admin only.
  /// @param newPrice New mint price
  function setMintPrice(uint256 newPrice)
    external
    onlyRole(DEFAULT_ADMIN_ROLE)
  {
    _mintPrice = newPrice;
  }

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

  /// @notice Get the current token's base URI stored on-chain
  /// @return String of the current stored base URI
  function baseURI() external view virtual returns (string memory) {
    return _baseURI();
  }

  /// @notice Set new base URI. Admin only.
  /// @param baseUri New string of the base URI for NFT
  function setBaseURI(string memory baseUri)
    external
    onlyRole(DEFAULT_ADMIN_ROLE)
  {
    _metadataBaseURI = baseUri;
  }

  /// @notice Get the current token's base URI stored on-chain
  /// @return String of the current stored base URI
  function tokenURI(uint256 tokenId)
    public
    view
    override(ERC721, ERC721URIStorage)
    returns (string memory)
  {
    return super.tokenURI(tokenId);
  }

  /// @notice Pause the contract disable minting. Admin only.
  function pause() external onlyRole(DEFAULT_ADMIN_ROLE) {
    _pause();
  }

  /// @notice Unpause the contract to allow minting. Admin only.
  function unpause() external onlyRole(DEFAULT_ADMIN_ROLE) {
    _unpause();
  }

  function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) {
    super._burn(tokenId);

    // Safety:
    // token ID counter is never able to come close to an uint256 overflow
    unchecked {
      _burnCount++;
    }
  }

  function _beforeTokenTransfer(
    address from,
    address to,
    uint256 tokenId
  ) internal override(ERC721) {
    super._beforeTokenTransfer(from, to, tokenId);
  }

  function supportsInterface(bytes4 interfaceId)
    public
    view
    override(ERC721, AccessControl)
    returns (bool)
  {
    return super.supportsInterface(interfaceId);
  }

  /// @notice Withdraw the contract's fund and split the payment amongst the list of payees. Admin only.
  /// @dev Loops through all of the payees and release funding based on the payee's share
  function withdraw() external onlyRole(DEFAULT_ADMIN_ROLE) {
    for (uint256 i = 0; i < _numberOfPayees; i++) {
      release(payable(payee(i)));
    }
  }

  receive() external payable override(PaymentSplitter) {
    emit PaymentReceived(_msgSender(), msg.value);
  }
}

File 2 of 20 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

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

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

File 3 of 20 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";

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

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

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

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

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

        return super.tokenURI(tokenId);
    }

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

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

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

File 4 of 20 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol)

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

File 5 of 20 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 6 of 20 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 8 of 20 : 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 9 of 20 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 10 of 20 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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`.
     *
     * 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;

    /**
     * @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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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);
}

File 11 of 20 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 12 of 20 : 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 13 of 20 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 14 of 20 : 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 15 of 20 : 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 16 of 20 : 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 17 of 20 : 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 18 of 20 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 19 of 20 : 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 20 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"},{"internalType":"address","name":"owner_","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"baseUri","type":"string"},{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"maxSupply_","type":"uint256"},{"internalType":"uint256","name":"reservedAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ExceededMaxPurchaseable","type":"error"},{"inputs":[],"name":"ExceededMaxSupply","type":"error"},{"inputs":[],"name":"NotEligiblePresale","type":"error"},{"inputs":[],"name":"NotEnoughEther","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_NFT_PURCHASEABLE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PRESALE_MINTING","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"addPresaleContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"clearPresaleContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPresaleContracts","outputs":[{"components":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"internalType":"struct PresaleContract[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"giveAwayNft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintNft","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"mintNftTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleWhitelistForUsers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseUri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_mints","type":"uint256[]"}],"name":"updatePresaleWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a0604052346200010c57620055cd803803806200001d8162000128565b928339810190610120818303126200010c5780516001600160401b0391908281116200010c5783620000519183016200019c565b9160208201518181116200010c57846200006d91840162000209565b906200007c6040840162000187565b9060608401518181116200010c57866200009891860162000266565b60808501518281116200010c5787620000b391870162000266565b9160a08601519081116200010c57620000ec97620000d391870162000266565b9260c08601519461010060e0880151970151976200064a565b60405161483f908162000d8e8239608051818181611fa5015261415b0152f35b600080fd5b50634e487b7160e01b600052604160045260246000fd5b6040519190601f01601f191682016001600160401b038111838210176200014e57604052565b6200015862000111565b604052565b6020906001600160401b03811162000177575b60051b0190565b6200018162000111565b62000170565b51906001600160a01b03821682036200010c57565b9080601f830112156200010c57815190620001c1620001bb836200015d565b62000128565b9182938184526020808095019260051b8201019283116200010c578301905b828210620001ef575050505090565b838091620001fd8462000187565b815201910190620001e0565b9080601f830112156200010c5781519062000228620001bb836200015d565b9182938184526020808095019260051b8201019283116200010c578301905b82821062000256575050505090565b8151815290830190830162000247565b81601f820112156200010c578051906001600160401b038211620002ea575b6020906200029c601f8401601f1916830162000128565b938385528284830101116200010c5782906000905b83838310620002d157505011620002c757505090565b6000918301015290565b81935082819392010151828288010152018391620002b1565b620002f462000111565b62000285565b90600182811c921680156200032c575b60208310146200031657565b634e487b7160e01b600052602260045260246000fd5b91607f16916200030a565b601f811162000344575050565b60009081805260208220906020601f850160051c8301941062000384575b601f0160051c01915b8281106200037857505050565b8181556001016200036b565b909250829062000362565b90601f82116200039d575050565b60019160009083825260208220906020601f850160051c83019410620003e0575b601f0160051c01915b828110620003d55750505050565b8181558301620003c7565b9092508290620003be565b601f8111620003f8575050565b6000906014825260208220906020601f850160051c8301941062000439575b601f0160051c01915b8281106200042d57505050565b81815560010162000420565b909250829062000417565b80519091906001600160401b03811162000536575b60019062000473816200046d8454620002fa565b6200038f565b602080601f8311600114620004b1575081929394600092620004a5575b5050600019600383901b1c191690821b179055565b01519050388062000490565b6001600052601f198316959091907fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6926000905b8882106200051e575050838596971062000504575b505050811b019055565b015160001960f88460031b161c19169055388080620004fa565b808785968294968601518155019501930190620004e5565b6200054062000111565b62000459565b80519091906001600160401b0381116200063a575b62000573816200056d601454620002fa565b620003eb565b602080601f8311600114620005b25750819293600092620005a6575b50508160011b916000199060031b1c191617601455565b0151905038806200058f565b6014600052601f198316949091907fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec926000905b8782106200062157505083600195961062000607575b505050811b01601455565b015160001960f88460031b161c19169055388080620005fc565b80600185968294968601518155019501930190620005e6565b6200064462000111565b6200055b565b9693909895929794919780519160018060401b03831162000882575b60009262000680816200067a8654620002fa565b62000337565b602080601f8311600114620007f057508190620006b9948692620007e4575b50508160011b916000199060031b1c191617835562000444565b620006c960ff1960075416600755565b620006d887518a511462000892565b620006e687511515620008fa565b86518110156200073657806200072a620007166200070962000730948b62000994565b516001600160a01b031690565b62000722838d62000994565b519062000bf9565b6200095e565b620006e6565b50620007cb9192949750620007c5620007d09496620007bf620007d8996200075e3362000a63565b620007696001601155565b620007746001601255565b6200077f6000601355565b6200078a6064601555565b6200079b66b1a2bc2ec50000601655565b620007ae600160ff196017541617601755565b620007b98162000a63565b620009ba565b51601a55565b62000546565b601655565b608052601555565b620007e262000d12565b565b0151905038806200069f565b600080529293919291601f1984167f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5639387905b82821062000869575050916001939185620006b9979694106200084f575b505050811b01835562000444565b015160001960f88460031b161c1916905538808062000841565b8060018697829497870151815501960194019062000823565b6200088c62000111565b62000666565b156200089a57565b60405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b6064820152608490fd5b156200090257565b60405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606490fd5b50634e487b7160e01b600052601160045260246000fd5b60019060001981146200096f570190565b6200097962000947565b0190565b50634e487b7160e01b600052603260045260246000fd5b6020918151811015620009aa575b60051b010190565b620009b46200097d565b620009a2565b6001600160a01b03811660009081527f5eff886ea0ce6ca488a3d6e336d6c0f75f46d19b42c06ce5ee98e42c96d256c7602052604081205460ff1615620009ff575050565b8080526008602090815260408083206001600160a01b038516600090815292529020805460ff1916600117905560405133926001600160a01b031691907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d908290a4565b601080546001600160a01b039283166001600160a01b031982168117909255604051919216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3565b1562000ab957565b60405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606490fd5b1562000b0657565b60405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608490fd5b600d546801000000000000000081101562000bdc575b6001810180600d5581101562000bcc575b600d6000527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180546001600160a01b0319166001600160a01b03909216919091179055565b62000bd66200097d565b62000b86565b62000be662000111565b62000b75565b811981116200096f570190565b906001600160a01b0382161562000cb8577f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac9162000c3982151562000ab1565b6001600160a01b0381166000908152600b6020526040902062000c5e90541562000afe565b62000c698162000b5f565b6001600160a01b0381166000908152600b6020526040902082905562000c9b62000c968360095462000bec565b600955565b604080516001600160a01b039290921682526020820192909252a1565b60405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608490fd5b60075460ff811662000d555760019060ff1916176007557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a1565b60405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606490fdfe60806040526004361015610023575b361561001957600080fd5b6100216147d1565b005b60003560e01c806301ffc9a71461045b57806306fdde0314610452578063081812fc14610449578063095ea7b3146104405780630d730acc1461043757806318160ddd1461042e578063191655871461042557806323b872dd1461041c578063248a9ca3146104135780632f2ff15d1461040a57806336568abe146104015780633a98ef39146103f85780633ccfd60b146103ef5780633f4ba83a146103e6578063406072a9146103dd57806342842e0e146103d457806342966c68146103cb57806348b75044146103c25780634df6e322146103b957806350532993146103b057806355f804b3146103a75780635c975abb1461039e5780636352211e146103955780636c0360eb1461038c57806370a0823114610383578063715018a61461037a5780637aabccb1146103715780638456cb59146103685780638b83209b1461035f5780638da5cb5b1461035657806391d148541461034d57806395364a841461034457806395d89b411461033b578063972d7b33146103325780639852595c14610329578063a217fddf14610320578063a22cb46514610317578063a43be57b1461030e578063a7f93ebd14610305578063ae95ee21146102fc578063b88d4fde146102f3578063b95121b3146102ea578063c87b56dd146102e1578063cbe07ea7146102d8578063cc7feda6146102cf578063ce7c2ac2146102c6578063d4dc69b0146102bd578063d547741f146102b4578063d5abeb01146102ab578063d79779b2146102a2578063e33b7de314610299578063e985e9c514610290578063f2fde38b146102875763f4a0a5280361000e57610282612134565b61000e565b50610282612085565b50610282612026565b50610282612007565b50610282611fc8565b50610282611f8c565b50610282611f49565b50610282611dfd565b50610282611dbe565b50610282611da1565b50610282611d62565b50610282611d42565b50610282611c8a565b50610282611c21565b50610282611b03565b50610282611ab3565b50610282611a40565b5061028261194e565b50610282611927565b506102826118e8565b50610282611852565b50610282611785565b50610282611761565b50610282611709565b506102826116e1565b506102826116c2565b50610282611662565b5061028261159a565b5061028261151e565b50610282611465565b50610282611434565b50610282611415565b506102826113f1565b5061028261129b565b50610282611148565b5061028261105d565b50610282610e92565b50610282610d04565b50610282610cdb565b50610282610c90565b50610282610bce565b50610282610b7f565b50610282610b60565b50610282610abc565b506102826109e4565b506102826109b4565b5061028261098a565b50610282610938565b50610282610914565b50610282610853565b50610282610741565b50610282610700565b50610282610625565b50610282610493565b7fffffffff0000000000000000000000000000000000000000000000000000000081160361048e57565b600080fd5b503461048e57602060031936011261048e5760207fffffffff000000000000000000000000000000000000000000000000000000006004356104d481610464565b167f7965db0b00000000000000000000000000000000000000000000000000000000811490811561050b575b506040519015158152f35b7f80ac58cd0000000000000000000000000000000000000000000000000000000081149150811561056f575b8115610545575b5038610500565b7f01ffc9a7000000000000000000000000000000000000000000000000000000009150143861053e565b7f5b5e139f0000000000000000000000000000000000000000000000000000000081149150610537565b918091926000905b8282106105b95750116105b2575050565b6000910152565b915080602091830151818601520182916105a1565b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f60209361060a81518092818752878088019101610599565b0116010190565b9060206106229281815201906105ce565b90565b503461048e576000806003193601126106fd576040519080805461064881612c62565b808552916001918083169081156106dc5750600114610682575b61067e85610672818703826111da565b60405191829182610611565b0390f35b80809450527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b8284106106c45750505081016020016106728261067e610662565b805460208587018101919091529093019281016106a9565b60ff191660208701525050604084019250610672915083905061067e610662565b80fd5b503461048e57602060031936011261048e57602061071f600435612e7f565b6001600160a01b0360405191168152f35b6001600160a01b0381160361048e57565b503461048e57604060031936011261048e5760043561075f81610730565b60243561076b81612bd8565b916001600160a01b0380841680918316146107e9576100219361079891331490811561079d575b50612e0e565b613381565b6107e391506107dc906107c433916001600160a01b03166000526005602052604060002090565b906001600160a01b0316600052602052604060002090565b5460ff1690565b38610792565b608460405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152fd5b50602060031936011261048e576108d660043561087560ff6007541615613867565b610884600260115414156138b2565b600260115533600052601b60205260406000205460ff6017541680809161090c575b156108e05750503360005260196020526108d1600a6108ca83604060002054612734565b111561396e565b6139b9565b6100216001601155565b80610903575b6108f1575b506139b9565b6108fd908211156138fd565b386108eb565b508015156108e6565b5081156108a6565b503461048e57600060031936011261048e576020610930613809565b604051908152f35b503461048e57602060031936011261048e5761002160043561095981610730565b6127b1565b600319606091011261048e5760043561097681610730565b9060243561098381610730565b9060443590565b503461048e5761002161099c3661095e565b916109af6109aa8433613032565b612f28565b6131aa565b503461048e57602060031936011261048e5760043560005260086020526020600160406000200154604051908152f35b503461048e5760408060031936011261048e5760043590602435610a0781610730565b6000928084526008602052610a21600184862001546123b9565b808452600860205260ff610a4a83858720906001600160a01b0316600052602052604060002090565b541615610a5657505051f35b8084526008602052610a7d82848620906001600160a01b0316600052602052604060002090565b600160ff198254161790556001600160a01b03339216907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d858551a451f35b503461048e57604060031936011261048e57602435610ada81610730565b336001600160a01b03821603610af65761002190600435612496565b608460405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152fd5b503461048e57600060031936011261048e576020600954604051908152f35b503461048e57600060031936011261048e57610b99612156565b60005b601a548110156100215780610bc46001600160a01b03610bbe610bc994612610565b166127b1565b613835565b610b9c565b503461048e57600060031936011261048e57610be8612156565b60075460ff811615610c275760ff19166007557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a1005b606460405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152fd5b600319604091011261048e57600435610c8381610730565b9060243561062281610730565b503461048e576020610cd26001600160a01b03610cac36610c6b565b9116600052600f83526040600020906001600160a01b0316600052602052604060002090565b54604051908152f35b503461048e57610021610ced3661095e565b9060405192610cfb846111be565b60008452612f99565b503461048e57602060031936011261048e57600435610d238133613032565b15610e28576001600160a01b03610d3982612bd8565b610d4283613311565b16908060008381948252600360205260408220600019815460018110610e1b575b0190558282526002602052604082207fffffffffffffffffffffffff000000000000000000000000000000000000000081541690557fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef82604051a4610dda610dd5826000526006602052604060002090565b61477b565b610df9575b50610df4610def60135460010190565b601355565b604051f35b610e10610e15916000526006602052604060002090565b614785565b38610ddf565b610e236126ce565b610d63565b608460405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f766564000000000000000000000000000000006064820152fd5b503461048e577f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a610ec236610c6b565b610eed610ee5829493946001600160a01b0316600052600b602052604060002090565b54151561265d565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b0384169382916110059190610f9a90610f71906020816024818c5afa908115611050575b600091611022575b50610f6a846001600160a01b0316600052600e602052604060002090565b5490612734565b610f92856107c4856001600160a01b0316600052600f602052604060002090565b54908561299c565b938491610fa8831515612740565b610fc9826107c4836001600160a01b0316600052600f602052604060002090565b610fd4848254612734565b9055610ff3816001600160a01b0316600052600e602052604060002090565b610ffe848254612734565b9055612a03565b604080516001600160a01b039290921682526020820192909252a2005b611043915060203d8111611049575b61103b81836111da565b81019061293a565b38610f4c565b503d611031565b611058612949565b610f44565b503461048e57604060031936011261048e5760043561107b81610730565b6024359061108e600260115414156138b2565b600260115561109b6122ef565b60155482116111045760005b8281106110c2576108d66110bd84601554612985565b601555565b6110e0906110ce613809565b6110d6614156565b116110e557613835565b6110a7565b610bc46110ff60126110f8815487613ba7565b5460010190565b601255565b606460405162461bcd60e51b815260206004820152601760248201527f4578636565647320726573657276656420737570706c790000000000000000006044820152fd5b503461048e57600060031936011261048e57602060405160068152f35b507f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040810190811067ffffffffffffffff8211176111b157604052565b6111b9611165565b604052565b6020810190811067ffffffffffffffff8211176111b157604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176111b157604052565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f60209267ffffffffffffffff8111611257575b01160190565b61125f611165565b611251565b9291926112708261121b565b9161127e60405193846111da565b82948184528183011161048e578281602093846000960137010152565b503461048e5760208060031936011261048e5767ffffffffffffffff60043581811161048e573660238201121561048e576112e0903690602481600401359101611264565b916112e96122ef565b82519182116113e4575b61130782611302601454612c62565b61443e565b80601f831160011461133f57508192600092611334575b50506000198260011b9260031b1c191617601455005b01519050388061131e565b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe083169361139060146000527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec90565b926000905b8682106113cc57505083600195106113b3575b505050811b01601455005b015160001960f88460031b161c191690553880806113a8565b80600185968294968601518155019501930190611395565b6113ec611165565b6112f3565b503461048e57600060031936011261048e57602060ff600754166040519015158152f35b503461048e57602060031936011261048e57602061071f600435612bd8565b503461048e57600060031936011261048e5761067e611451612cb5565b6040519182916020835260208301906105ce565b503461048e57602060031936011261048e576001600160a01b0360043561148b81610730565b1680156114b457600052600360205261067e604060002054604051918291829190602083019252565b608460405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152fd5b503461048e576000806003193601126106fd576010547fffffffffffffffffffffffff00000000000000000000000000000000000000006001600160a01b0382169161156b338414612533565b1660105581604051917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08284a3f35b50604060031936011261048e576108d66024356004356115b982610730565b6115c8600260115414156138b2565b60026011556115dc60ff6007541615613867565b6001600160a01b03821680600052601b60205260406000205460ff6017541680809161165a575b1561162b5750506000526019602052611626600a6108ca83604060002054612734565b614185565b90915080611651575b61163f575b50614185565b61164b908211156138fd565b38611639565b50801515611634565b508115611603565b503461048e57600060031936011261048e5761167c612156565b600160ff1960075461169160ff821615613867565b16176007557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a1005b503461048e57602060031936011261048e57602061071f600435612610565b503461048e57600060031936011261048e5760206001600160a01b0360105416604051908152f35b503461048e57604060031936011261048e57602060ff61175560243561172e81610730565b600435600052600884526040600020906001600160a01b0316600052602052604060002090565b54166040519015158152f35b503461048e57600060031936011261048e57602060ff601754166040519015158152f35b503461048e576000806003193601126106fd57604051908060018054916117ab83612c62565b808652928281169081156106dc57506001146117d15761067e85610672818703826111da565b92508083527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b8284106118135750505081016020016106728261067e610662565b805460208587018101919091529093019281016117f8565b60209067ffffffffffffffff8111611845575b60051b0190565b61184d611165565b61183e565b503461048e57604060031936011261048e5760043561187081610730565b60243567ffffffffffffffff811161048e573660238201121561048e57806004013561189b8161182b565b916118a960405193846111da565b81835260209160248385019160051b8301019136831161048e57602401905b8282106118d9576100218587614299565b813581529083019083016118c8565b503461048e57602060031936011261048e576001600160a01b0360043561190e81610730565b16600052600c6020526020604060002054604051908152f35b503461048e57600060031936011261048e57602060405160008152f35b8015150361048e57565b503461048e57604060031936011261048e5760043561196c81610730565b60243561197881611944565b6001600160a01b038216918233146119fc57816119b86119ca923360005260056020526040600020906001600160a01b0316600052602052604060002090565b9060ff60ff1983541691151516179055565b604051901515815233907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190602090a3005b606460405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152fd5b503461048e57600060031936011261048e57611a5a612156565b60175460ff811615611a6f5760ff1916601755005b606460405162461bcd60e51b815260206004820152601560248201527f50726573616c6520616c726561647920656e64656400000000000000000000006044820152fd5b503461048e57600060031936011261048e576020601654604051908152f35b9181601f8401121561048e5782359167ffffffffffffffff831161048e576020808501948460051b01011161048e57565b503461048e57604060031936011261048e5767ffffffffffffffff60043581811161048e57611b36903690600401611ad2565b909160243590811161048e57611b50903690600401611ad2565b9290611b5a6122ef565b838303611bb75760005b838110611b6d57005b80611b7c611bb2928785613845565b35611bac611b93611b8e848989613845565b61385d565b6001600160a01b0316600052601b602052604060002090565b55613835565b611b64565b608460405162461bcd60e51b815260206004820152602b60248201527f41646472657373657320616e64206d696e74732073686f756c6420686176652060448201527f73616d65206c656e6774680000000000000000000000000000000000000000006064820152fd5b503461048e57608060031936011261048e57600435611c3f81610730565b602435611c4b81610730565b6064359167ffffffffffffffff831161048e573660238401121561048e57611c80610021933690602481600401359101611264565b9160443591612f99565b503461048e576000806003193601126106fd57611ca5612156565b6018548160185580611cb8575b50604051f35b60017f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82118116611d35575b601883527fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e91811b8201915b828110611d1e575050611cb2565b808460029255611d2f8382016143d3565b01611d10565b611d3d6126ce565b611ce4565b503461048e57602060031936011261048e5761067e61145160043561449f565b503461048e57602060031936011261048e576001600160a01b03600435611d8881610730565b16600052601b6020526020604060002054604051908152f35b503461048e57600060031936011261048e576020604051600a8152f35b503461048e57602060031936011261048e576001600160a01b03600435611de481610730565b16600052600b6020526020604060002054604051908152f35b503461048e576000806003193601126106fd5760185490611e1d8261182b565b91604092611e2d845191826111da565b81815260188352602080820192847fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e855b838310611f2257505050508451938185019282865251809352858501868460051b8701019496825b858410611e935787870388f35b90919293867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08983989903018552895182606081878501936001600160a01b038151168652015193878382015284518094520192019084905b808210611f09575050509881019896959460010193019190611e86565b9193806001929486518152019401920188939291611eec565b600285600192611f36859c98999a9c613d34565b8152019201920191909795949397611e5e565b503461048e57604060031936011261048e57610021602435600435611f6d82610730565b806000526008602052611f876001604060002001546123b9565b612496565b503461048e57600060031936011261048e5760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b503461048e57602060031936011261048e576001600160a01b03600435611fee81610730565b16600052600e6020526020604060002054604051908152f35b503461048e57600060031936011261048e576020600a54604051908152f35b503461048e57604060031936011261048e57602060ff61175560043561204b81610730565b6001600160a01b036024359161206083610730565b16600052600584526040600020906001600160a01b0316600052602052604060002090565b503461048e57602060031936011261048e576004356120a381610730565b6001600160a01b036120ba81601054163314612533565b8116156120ca576100219061257e565b608460405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b503461048e57602060031936011261048e5761214e6122ef565b600435601655005b3360009081527f5eff886ea0ce6ca488a3d6e336d6c0f75f46d19b42c06ce5ee98e42c96d256c7602052604090205460ff161561218f57565b6121983361375f565b60006121a2613686565b9060306121ae836136c0565b5360786121ba836136d6565b5360415b600181116122945761229060486122788661224c876121dd8815613714565b6040519485937f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000602086015261221d815180926020603789019101610599565b84017f206973206d697373696e6720726f6c65200000000000000000000000000000006037820152019061247f565b037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081018352826111da565b60405191829162461bcd60e51b835260048301610611565b0390fd5b90807f3031323334353637383961626364656600000000000000000000000000000000600f6122dd931660108110156122e2575b1a6122d384866136e7565b5360041c91613706565b6121be565b6122ea6125e0565b6122c8565b3360009081527f5eff886ea0ce6ca488a3d6e336d6c0f75f46d19b42c06ce5ee98e42c96d256c7602052604090205460ff161561232857565b6123313361375f565b600061233b613686565b906030612347836136c0565b536078612353836136d6565b5360415b600181116123765761229060486122788661224c876121dd8815613714565b90807f3031323334353637383961626364656600000000000000000000000000000000600f6123b4931660108110156122e2571a6122d384866136e7565b612357565b80600052600860205260ff6123e5336040600020906001600160a01b0316600052602052604060002090565b5416156123ef5750565b6123f83361375f565b90612401613686565b90603061240d836136c0565b536078612419836136d6565b5360415b6001811161243c5761229060486122788661224c876121dd8815613714565b90807f3031323334353637383961626364656600000000000000000000000000000000600f61247a931660108110156122e2571a6122d384866136e7565b61241d565b9061249260209282815194859201610599565b0190565b80600052600860205260ff6124c2836040600020906001600160a01b0316600052602052604060002090565b54166124cc575050565b8060005260086020526124f6826040600020906001600160a01b0316600052602052604060002090565b60ff1981541690556001600160a01b03339216907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b6000604051a4565b1561253a57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b601054906001600160a01b0380911691827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617601055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e06000604051a3565b507f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6001600160a01b0390600d54811015612650575b600d6000527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb501541690565b6126586125e0565b612624565b1561266457565b608460405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152fd5b507f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6001907ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe811161272c570190565b6124926126ce565b8119811161272c570190565b1561274757565b608460405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152fd5b906001600160a01b038216600092818452600b6020526040936127d885822054151561265d565b6127fb6127e847600a5490612734565b848352600c60205286832054908561299c565b92612807841515612740565b808252600c60205285822061281d858254612734565b905561282b84600a54612734565b600a558347106128f757818091858851915af1612846613475565b501561288e5792516001600160a01b0390931683526020830152907fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0569080604081015b0390a1565b6084845162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152fd5b6064865162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152fd5b9081602091031261048e575190565b506040513d6000823e3d90fd5b8060001904821181151516612969570290565b6129716126ce565b0290565b600019906001811061272c570190565b818110612990570390565b6129986126ce565b0390565b906001600160a01b036129be9216600052600b60205260406000205490612956565b6009549081156129d45704818110612990570390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000060208083019182526001600160a01b03948516602484015260448084019690965294825290929091612a5a6064856111da565b169060405192612a6984611195565b8484527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656485850152823b15612adc57612ab5939260009283809351925af1612aaf613475565b90613646565b80519081612ac257505050565b82612ada93612ad5938301019101612b52565b612b67565b565b6064856040519062461bcd60e51b82526004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152fd5b604051906020820182811067ffffffffffffffff821117612b45575b60405260008252565b612b4d611165565b612b3c565b9081602091031261048e575161062281611944565b15612b6e57565b608460405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152fd5b60005260026020526001600160a01b03604060002054168015612bf85790565b608460405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152fd5b90600182811c92168015612cab575b6020831014612c7c57565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b91607f1691612c71565b6040519060008260145491612cc983612c62565b80835292600190818116908115612d4f5750600114612cf0575b50612ada925003836111da565b6014600090815291507fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec5b848310612d345750612ada935050810160200138612ce3565b81935090816020925483858a01015201910190918592612d1b565b935050505060ff199150166020830152612ada826040810138612ce3565b9060405191826000825492612d8184612c62565b908184526001948581169081600014612dee5750600114612dab575b5050612ada925003836111da565b9093915060005260209081600020936000915b818310612dd6575050612ada93508201013880612d9d565b85548884018501529485019487945091830191612dbe565b94505050505060ff199150166020830152612ada82604081013880612d9d565b15612e1557565b608460405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152fd5b612e9f8160005260026020526001600160a01b0360406000205416151590565b15612ebe5760005260046020526001600160a01b036040600020541690565b608460405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152fd5b15612f2f57565b608460405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152fd5b91612ada9391612fc093612fb06109aa8433613032565b612fbb8383836131aa565b6135e9565b15612fc757565b60405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608490fd5b6130528260005260026020526001600160a01b0360406000205416151590565b156130d05761306082612bd8565b916001600160a01b03908183169282851684149485156130a0575b5050831561308a575b50505090565b61309691929350612e7f565b1614388080613084565b60ff929550906107c46130c6926001600160a01b03166000526005602052604060002090565b541692388061307b565b608460405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152fd5b1561314157565b608460405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152fd5b906131b483612bd8565b6001600160a01b0391829182851693849116036132a75761320261327e928216946131e086151561313a565b6131e987613311565b6001600160a01b03166000526003602052604060002090565b61320c8154612975565b905561322b816001600160a01b03166000526003602052604060002090565b61323581546126fe565b905561324b856000526002602052604060002090565b906001600160a01b03167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6000604051a4565b608460405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152fd5b80600052600460205260406000207fffffffffffffffffffffffff0000000000000000000000000000000000000000815416905560006001600160a01b0361335883612bd8565b167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92582604051a4565b8160005260046020526133c6816040600020906001600160a01b03167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b6001600160a01b03806133d884612bd8565b169116907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256000604051a4565b9081602091031261048e575161062281610464565b61062293926001600160a01b0360809316825260006020830152604082015281606082015201906105ce565b909261062294936080936001600160a01b038092168452166020830152604082015281606082015201906105ce565b3d156134a0573d906134868261121b565b9161349460405193846111da565b82523d6000602084013e565b606090565b909190803b156135e1576134f86020916001600160a01b039360006040519586809581947f150b7a02000000000000000000000000000000000000000000000000000000009a8b8452336004850161341a565b0393165af1600091816135b1575b5061358b57613513613475565b805190816135865760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608490fd5b602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000161490565b6135d391925060203d81116135da575b6135cb81836111da565b810190613405565b9038613506565b503d6135c1565b505050600190565b92909190823b1561363d576134f89260209260006001600160a01b036040518097819682957f150b7a02000000000000000000000000000000000000000000000000000000009b8c85523360048601613446565b50505050600190565b90919015613652575090565b8151156136625750805190602001fd5b6122909060405191829162461bcd60e51b83526020600484015260248301906105ce565b604051906080820182811067ffffffffffffffff8211176136b3575b604052604282526060366020840137565b6136bb611165565b6136a2565b6020908051156136ce570190565b6124926125e0565b6021908051600110156136ce570190565b9060209180518210156136f957010190565b6137016125e0565b010190565b60001990801561272c570190565b1561371b57565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b604051906060820182811067ffffffffffffffff8211176137fc575b604052602a825260403660208401376030613795836136c0565b5360786137a1836136d6565b536029905b600182116137b957610622915015613714565b807f3031323334353637383961626364656600000000000000000000000000000000600f6137f6931660108110156122e2571a6122d384866136e7565b906137a6565b613804611165565b61377b565b60001960125460135490818110613828575b036001811061272c570190565b6138306126ce565b61381b565b600190600019811461272c570190565b91908110156138555760051b0190565b61184d6125e0565b3561062281610730565b1561386e57565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b156138b957565b606460405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b1561390457565b608460405162461bcd60e51b815260206004820152602d60248201527f526571756573746564206d6f7265206d696e7473207468616e20616c6c6f776560448201527f6420666f722070726573616c65000000000000000000000000000000000000006064820152fd5b1561397557565b606460405162461bcd60e51b815260206004820152601a60248201527f50726573616c65206d696e74206c696d697420726561636865640000000000006044820152fd5b60ff6017541680613b25575b6139d0821515613b5c565b60068211613afb576139e9826139e4613809565b612734565b6139f1614156565b60155490818110613aee575b0310613ac457613a0f82601654612956565b3410613a9a57613a5e575b60005b818110613a28575050565b613a4690613a34613809565b613a3c614156565b11613a4b57613835565b613a1d565b610bc46110ff60126110f8815433613ba7565b3360005260196020526040600020613a77828254612734565b9055336000908152601b60205260409020613a93828254612985565b9055613a1a565b60046040517f8a0d3779000000000000000000000000000000000000000000000000000000008152fd5b60046040517ffb88d215000000000000000000000000000000000000000000000000000000008152fd5b613af66126ce565b6139fd565b60046040517fb637d13b000000000000000000000000000000000000000000000000000000008152fd5b613b2e33613f0c565b6139c55760046040517f35e3e74c000000000000000000000000000000000000000000000000000000008152fd5b15613b6357565b606460405162461bcd60e51b815260206004820152601a60248201527f4d696e7420616d6f756e742063616e6e6f74206265207a65726f0000000000006044820152fd5b90604051613bb4816111be565b600081526001600160a01b038316918215613ca857613be98160005260026020526001600160a01b0360406000205416151590565b613c64578381612fc094613c13612ada976001600160a01b03166000526003602052604060002090565b613c1d81546126fe565b9055613c378361324b846000526002602052604060002090565b60007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef81604051a46134a5565b606460405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152fd5b606460405162461bcd60e51b815260206004820152602060248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152fd5b601854811015613d27575b601860005260011b7fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e0190600090565b613d2f6125e0565b613cf7565b90604051613d4181611195565b80926001600160a01b03815416825260018091019160405191828481955492838652602080960191600052856000209060005b87868210613d905750505050613d8c925003846111da565b0152565b8354855289955090930192918101918101613d74565b90613db08261182b565b613dbd60405191826111da565b8281527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0613deb829461182b565b0190602036910137565b6020918151811015613e0a575b60051b010190565b613e126125e0565b613e02565b602090818184031261048e5780519067ffffffffffffffff821161048e57019180601f8401121561048e578251613e4d8161182b565b93613e5b60405195866111da565b818552838086019260051b82010192831161048e578301905b828210613e82575050505090565b81518152908301908301613e74565b6040810190604081528251809252606081019160208094019060005b818110613eef575050508281830391015281808451928381520193019160005b828110613edb575050505090565b835185529381019392810192600101613ecd565b82516001600160a01b031685529385019391850191600101613ead565b613f29816001600160a01b0316600052601b602052604060002090565b54614150576018549060005b828110613f45575b505050600090565b613f57613f5182613cec565b50613d34565b80516001600160a01b0316803b1561414957602090818301918251511591826140be575b505015613f8c575050505050600190565b80515180613fa6575b505050613fa190613835565b613f35565b613faf90613da6565b91825160005b81811061409957505091600091613fe8613fdc613fdc61402096516001600160a01b031690565b6001600160a01b031690565b9051916040518095819482937f4e1273f400000000000000000000000000000000000000000000000000000000845260048401613e91565b03915afa90811561408c575b60009161406b575b5080519060005b82811015613f955761404d8183613df5565b516140605761405b90613835565b61403b565b505050505050600190565b614086913d8091833e61407e81836111da565b810190613e17565b38614034565b614094612949565b61402c565b80610bc4886140ab6140b99489613df5565b906001600160a01b03169052565b613fb5565b6040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b03888116600483015292935091839183916024918391165afa91821561413c575b60009261411f575b505015153880613f7b565b6141359250803d106110495761103b81836111da565b3880614114565b614144612949565b61410c565b5050613f3d565b50600190565b6013547f0000000000000000000000000000000000000000000000000000000000000000818110612990570390565b9060ff6017541680614262575b61419d831515613b5c565b60068311613afb576141b1836139e4613809565b6141b9614156565b60155490818110614255575b0310613ac4576141d783601654612956565b3410613a9a57614202575b60005b8281106141f157505050565b6141fd906110ce613809565b6141e5565b6001600160a01b03811660005260196020526040600020614224838254612734565b9055614243816001600160a01b0316600052601b602052604060002090565b61424e838254612985565b90556141e2565b61425d6126ce565b6141c5565b61426b82613f0c565b6141925760046040517f35e3e74c000000000000000000000000000000000000000000000000000000008152fd5b6142f292916142a66122ef565b604051916142b383611195565b6001600160a01b038091168352602092838101928352614330601854926801000000000000000084101561437f575b6001978489809601601855613cec565b939093614372575b511682906001600160a01b03167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b019051918083519361434285856143f7565b0191600052806000206000925b84841061435f5750505050509050565b805182559286019290860190820161434f565b61437a61438c565b6142fa565b614387611165565b6142e2565b507f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b8181106143c7575050565b600081556001016143bc565b805460008255806143e2575050565b612ada916000526020600020908101906143bc565b90680100000000000000008111614431575b81549080835581811061441b57505050565b612ada92600052602060002091820191016143bc565b614439611165565b614409565b90601f821161444b575050565b612ada9160146000527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec906020601f840160051c83019310614495575b601f0160051c01906143bc565b9091508190614488565b6144bf8160005260026020526001600160a01b0360406000205416151590565b15614528576144e06144db826000526006602052604060002090565b612d6d565b906144e9612cb5565b80511561452357825161450157506106229150614592565b610622915061224c61451d93604051948593602085019061247f565b9061247f565b505090565b608460405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f722060448201527f6e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006064820152fd5b6145b28160005260026020526001600160a01b0360406000205416151590565b156145f6576145bf612cb5565b8051909190156145ec5761451d9161224c6145dc61062293614660565b604051948593602085019061247f565b5050610622612b20565b608460405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152fd5b801561474157806000908282935b61472d575061467c8361121b565b9261468a60405194856111da565b808452817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe06146b88361121b565b013660208701375b6146ca5750505090565b6146d390612975565b90600a907fff00000000000000000000000000000000000000000000000000000000000000828206603081198111614720575b0160f81b16841a61471784876136e7565b530490816146c0565b6147286126ce565b614706565b92614739600a91613835565b93048061466e565b5060405161474e81611195565b600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b6106229054612c62565b61478f8154612c62565b9081614799575050565b81601f600093116001146147ab575055565b818352602083206147c791601f0160051c8101906001016143bc565b8160208120915555565b604080513381523460208201527f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770918190810161288956fea2646970667358221220ef167b5421973145990d2fe7ddae832317d919b56620c41fe541e3087f25f02464736f6c634300080d0033000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000f68b2107febf2614314ca3e80029fc897ce0fa80000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000c80000000000000000000000000000000000000000000000000000000000000003000000000000000000000000584db82ca34ca78ce59f4ccd601cc285e4b9e3110000000000000000000000000f68b2107febf2614314ca3e80029fc897ce0fa800000000000000000000000050e18b87633019453be558b534f67bae337a8c7e00000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000002c436f6e66657373696f6e732046726f6d2074686520486172742047656e6573697320436f6c6c656374696f6e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044346544800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005468747470733a2f2f6d6f6f6e77616c6b2e6d7970696e6174612e636c6f75642f697066732f516d6657326242434559447857396f4d7a774e524a574e467151747248487852584c344573636f7a4748336751352f000000000000000000000000

Deployed Bytecode

0x60806040526004361015610023575b361561001957600080fd5b6100216147d1565b005b60003560e01c806301ffc9a71461045b57806306fdde0314610452578063081812fc14610449578063095ea7b3146104405780630d730acc1461043757806318160ddd1461042e578063191655871461042557806323b872dd1461041c578063248a9ca3146104135780632f2ff15d1461040a57806336568abe146104015780633a98ef39146103f85780633ccfd60b146103ef5780633f4ba83a146103e6578063406072a9146103dd57806342842e0e146103d457806342966c68146103cb57806348b75044146103c25780634df6e322146103b957806350532993146103b057806355f804b3146103a75780635c975abb1461039e5780636352211e146103955780636c0360eb1461038c57806370a0823114610383578063715018a61461037a5780637aabccb1146103715780638456cb59146103685780638b83209b1461035f5780638da5cb5b1461035657806391d148541461034d57806395364a841461034457806395d89b411461033b578063972d7b33146103325780639852595c14610329578063a217fddf14610320578063a22cb46514610317578063a43be57b1461030e578063a7f93ebd14610305578063ae95ee21146102fc578063b88d4fde146102f3578063b95121b3146102ea578063c87b56dd146102e1578063cbe07ea7146102d8578063cc7feda6146102cf578063ce7c2ac2146102c6578063d4dc69b0146102bd578063d547741f146102b4578063d5abeb01146102ab578063d79779b2146102a2578063e33b7de314610299578063e985e9c514610290578063f2fde38b146102875763f4a0a5280361000e57610282612134565b61000e565b50610282612085565b50610282612026565b50610282612007565b50610282611fc8565b50610282611f8c565b50610282611f49565b50610282611dfd565b50610282611dbe565b50610282611da1565b50610282611d62565b50610282611d42565b50610282611c8a565b50610282611c21565b50610282611b03565b50610282611ab3565b50610282611a40565b5061028261194e565b50610282611927565b506102826118e8565b50610282611852565b50610282611785565b50610282611761565b50610282611709565b506102826116e1565b506102826116c2565b50610282611662565b5061028261159a565b5061028261151e565b50610282611465565b50610282611434565b50610282611415565b506102826113f1565b5061028261129b565b50610282611148565b5061028261105d565b50610282610e92565b50610282610d04565b50610282610cdb565b50610282610c90565b50610282610bce565b50610282610b7f565b50610282610b60565b50610282610abc565b506102826109e4565b506102826109b4565b5061028261098a565b50610282610938565b50610282610914565b50610282610853565b50610282610741565b50610282610700565b50610282610625565b50610282610493565b7fffffffff0000000000000000000000000000000000000000000000000000000081160361048e57565b600080fd5b503461048e57602060031936011261048e5760207fffffffff000000000000000000000000000000000000000000000000000000006004356104d481610464565b167f7965db0b00000000000000000000000000000000000000000000000000000000811490811561050b575b506040519015158152f35b7f80ac58cd0000000000000000000000000000000000000000000000000000000081149150811561056f575b8115610545575b5038610500565b7f01ffc9a7000000000000000000000000000000000000000000000000000000009150143861053e565b7f5b5e139f0000000000000000000000000000000000000000000000000000000081149150610537565b918091926000905b8282106105b95750116105b2575050565b6000910152565b915080602091830151818601520182916105a1565b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f60209361060a81518092818752878088019101610599565b0116010190565b9060206106229281815201906105ce565b90565b503461048e576000806003193601126106fd576040519080805461064881612c62565b808552916001918083169081156106dc5750600114610682575b61067e85610672818703826111da565b60405191829182610611565b0390f35b80809450527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b8284106106c45750505081016020016106728261067e610662565b805460208587018101919091529093019281016106a9565b60ff191660208701525050604084019250610672915083905061067e610662565b80fd5b503461048e57602060031936011261048e57602061071f600435612e7f565b6001600160a01b0360405191168152f35b6001600160a01b0381160361048e57565b503461048e57604060031936011261048e5760043561075f81610730565b60243561076b81612bd8565b916001600160a01b0380841680918316146107e9576100219361079891331490811561079d575b50612e0e565b613381565b6107e391506107dc906107c433916001600160a01b03166000526005602052604060002090565b906001600160a01b0316600052602052604060002090565b5460ff1690565b38610792565b608460405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152fd5b50602060031936011261048e576108d660043561087560ff6007541615613867565b610884600260115414156138b2565b600260115533600052601b60205260406000205460ff6017541680809161090c575b156108e05750503360005260196020526108d1600a6108ca83604060002054612734565b111561396e565b6139b9565b6100216001601155565b80610903575b6108f1575b506139b9565b6108fd908211156138fd565b386108eb565b508015156108e6565b5081156108a6565b503461048e57600060031936011261048e576020610930613809565b604051908152f35b503461048e57602060031936011261048e5761002160043561095981610730565b6127b1565b600319606091011261048e5760043561097681610730565b9060243561098381610730565b9060443590565b503461048e5761002161099c3661095e565b916109af6109aa8433613032565b612f28565b6131aa565b503461048e57602060031936011261048e5760043560005260086020526020600160406000200154604051908152f35b503461048e5760408060031936011261048e5760043590602435610a0781610730565b6000928084526008602052610a21600184862001546123b9565b808452600860205260ff610a4a83858720906001600160a01b0316600052602052604060002090565b541615610a5657505051f35b8084526008602052610a7d82848620906001600160a01b0316600052602052604060002090565b600160ff198254161790556001600160a01b03339216907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d858551a451f35b503461048e57604060031936011261048e57602435610ada81610730565b336001600160a01b03821603610af65761002190600435612496565b608460405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152fd5b503461048e57600060031936011261048e576020600954604051908152f35b503461048e57600060031936011261048e57610b99612156565b60005b601a548110156100215780610bc46001600160a01b03610bbe610bc994612610565b166127b1565b613835565b610b9c565b503461048e57600060031936011261048e57610be8612156565b60075460ff811615610c275760ff19166007557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a1005b606460405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152fd5b600319604091011261048e57600435610c8381610730565b9060243561062281610730565b503461048e576020610cd26001600160a01b03610cac36610c6b565b9116600052600f83526040600020906001600160a01b0316600052602052604060002090565b54604051908152f35b503461048e57610021610ced3661095e565b9060405192610cfb846111be565b60008452612f99565b503461048e57602060031936011261048e57600435610d238133613032565b15610e28576001600160a01b03610d3982612bd8565b610d4283613311565b16908060008381948252600360205260408220600019815460018110610e1b575b0190558282526002602052604082207fffffffffffffffffffffffff000000000000000000000000000000000000000081541690557fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef82604051a4610dda610dd5826000526006602052604060002090565b61477b565b610df9575b50610df4610def60135460010190565b601355565b604051f35b610e10610e15916000526006602052604060002090565b614785565b38610ddf565b610e236126ce565b610d63565b608460405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f766564000000000000000000000000000000006064820152fd5b503461048e577f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a610ec236610c6b565b610eed610ee5829493946001600160a01b0316600052600b602052604060002090565b54151561265d565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b0384169382916110059190610f9a90610f71906020816024818c5afa908115611050575b600091611022575b50610f6a846001600160a01b0316600052600e602052604060002090565b5490612734565b610f92856107c4856001600160a01b0316600052600f602052604060002090565b54908561299c565b938491610fa8831515612740565b610fc9826107c4836001600160a01b0316600052600f602052604060002090565b610fd4848254612734565b9055610ff3816001600160a01b0316600052600e602052604060002090565b610ffe848254612734565b9055612a03565b604080516001600160a01b039290921682526020820192909252a2005b611043915060203d8111611049575b61103b81836111da565b81019061293a565b38610f4c565b503d611031565b611058612949565b610f44565b503461048e57604060031936011261048e5760043561107b81610730565b6024359061108e600260115414156138b2565b600260115561109b6122ef565b60155482116111045760005b8281106110c2576108d66110bd84601554612985565b601555565b6110e0906110ce613809565b6110d6614156565b116110e557613835565b6110a7565b610bc46110ff60126110f8815487613ba7565b5460010190565b601255565b606460405162461bcd60e51b815260206004820152601760248201527f4578636565647320726573657276656420737570706c790000000000000000006044820152fd5b503461048e57600060031936011261048e57602060405160068152f35b507f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040810190811067ffffffffffffffff8211176111b157604052565b6111b9611165565b604052565b6020810190811067ffffffffffffffff8211176111b157604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176111b157604052565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f60209267ffffffffffffffff8111611257575b01160190565b61125f611165565b611251565b9291926112708261121b565b9161127e60405193846111da565b82948184528183011161048e578281602093846000960137010152565b503461048e5760208060031936011261048e5767ffffffffffffffff60043581811161048e573660238201121561048e576112e0903690602481600401359101611264565b916112e96122ef565b82519182116113e4575b61130782611302601454612c62565b61443e565b80601f831160011461133f57508192600092611334575b50506000198260011b9260031b1c191617601455005b01519050388061131e565b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe083169361139060146000527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec90565b926000905b8682106113cc57505083600195106113b3575b505050811b01601455005b015160001960f88460031b161c191690553880806113a8565b80600185968294968601518155019501930190611395565b6113ec611165565b6112f3565b503461048e57600060031936011261048e57602060ff600754166040519015158152f35b503461048e57602060031936011261048e57602061071f600435612bd8565b503461048e57600060031936011261048e5761067e611451612cb5565b6040519182916020835260208301906105ce565b503461048e57602060031936011261048e576001600160a01b0360043561148b81610730565b1680156114b457600052600360205261067e604060002054604051918291829190602083019252565b608460405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152fd5b503461048e576000806003193601126106fd576010547fffffffffffffffffffffffff00000000000000000000000000000000000000006001600160a01b0382169161156b338414612533565b1660105581604051917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08284a3f35b50604060031936011261048e576108d66024356004356115b982610730565b6115c8600260115414156138b2565b60026011556115dc60ff6007541615613867565b6001600160a01b03821680600052601b60205260406000205460ff6017541680809161165a575b1561162b5750506000526019602052611626600a6108ca83604060002054612734565b614185565b90915080611651575b61163f575b50614185565b61164b908211156138fd565b38611639565b50801515611634565b508115611603565b503461048e57600060031936011261048e5761167c612156565b600160ff1960075461169160ff821615613867565b16176007557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a1005b503461048e57602060031936011261048e57602061071f600435612610565b503461048e57600060031936011261048e5760206001600160a01b0360105416604051908152f35b503461048e57604060031936011261048e57602060ff61175560243561172e81610730565b600435600052600884526040600020906001600160a01b0316600052602052604060002090565b54166040519015158152f35b503461048e57600060031936011261048e57602060ff601754166040519015158152f35b503461048e576000806003193601126106fd57604051908060018054916117ab83612c62565b808652928281169081156106dc57506001146117d15761067e85610672818703826111da565b92508083527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b8284106118135750505081016020016106728261067e610662565b805460208587018101919091529093019281016117f8565b60209067ffffffffffffffff8111611845575b60051b0190565b61184d611165565b61183e565b503461048e57604060031936011261048e5760043561187081610730565b60243567ffffffffffffffff811161048e573660238201121561048e57806004013561189b8161182b565b916118a960405193846111da565b81835260209160248385019160051b8301019136831161048e57602401905b8282106118d9576100218587614299565b813581529083019083016118c8565b503461048e57602060031936011261048e576001600160a01b0360043561190e81610730565b16600052600c6020526020604060002054604051908152f35b503461048e57600060031936011261048e57602060405160008152f35b8015150361048e57565b503461048e57604060031936011261048e5760043561196c81610730565b60243561197881611944565b6001600160a01b038216918233146119fc57816119b86119ca923360005260056020526040600020906001600160a01b0316600052602052604060002090565b9060ff60ff1983541691151516179055565b604051901515815233907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190602090a3005b606460405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152fd5b503461048e57600060031936011261048e57611a5a612156565b60175460ff811615611a6f5760ff1916601755005b606460405162461bcd60e51b815260206004820152601560248201527f50726573616c6520616c726561647920656e64656400000000000000000000006044820152fd5b503461048e57600060031936011261048e576020601654604051908152f35b9181601f8401121561048e5782359167ffffffffffffffff831161048e576020808501948460051b01011161048e57565b503461048e57604060031936011261048e5767ffffffffffffffff60043581811161048e57611b36903690600401611ad2565b909160243590811161048e57611b50903690600401611ad2565b9290611b5a6122ef565b838303611bb75760005b838110611b6d57005b80611b7c611bb2928785613845565b35611bac611b93611b8e848989613845565b61385d565b6001600160a01b0316600052601b602052604060002090565b55613835565b611b64565b608460405162461bcd60e51b815260206004820152602b60248201527f41646472657373657320616e64206d696e74732073686f756c6420686176652060448201527f73616d65206c656e6774680000000000000000000000000000000000000000006064820152fd5b503461048e57608060031936011261048e57600435611c3f81610730565b602435611c4b81610730565b6064359167ffffffffffffffff831161048e573660238401121561048e57611c80610021933690602481600401359101611264565b9160443591612f99565b503461048e576000806003193601126106fd57611ca5612156565b6018548160185580611cb8575b50604051f35b60017f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82118116611d35575b601883527fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e91811b8201915b828110611d1e575050611cb2565b808460029255611d2f8382016143d3565b01611d10565b611d3d6126ce565b611ce4565b503461048e57602060031936011261048e5761067e61145160043561449f565b503461048e57602060031936011261048e576001600160a01b03600435611d8881610730565b16600052601b6020526020604060002054604051908152f35b503461048e57600060031936011261048e576020604051600a8152f35b503461048e57602060031936011261048e576001600160a01b03600435611de481610730565b16600052600b6020526020604060002054604051908152f35b503461048e576000806003193601126106fd5760185490611e1d8261182b565b91604092611e2d845191826111da565b81815260188352602080820192847fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e855b838310611f2257505050508451938185019282865251809352858501868460051b8701019496825b858410611e935787870388f35b90919293867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08983989903018552895182606081878501936001600160a01b038151168652015193878382015284518094520192019084905b808210611f09575050509881019896959460010193019190611e86565b9193806001929486518152019401920188939291611eec565b600285600192611f36859c98999a9c613d34565b8152019201920191909795949397611e5e565b503461048e57604060031936011261048e57610021602435600435611f6d82610730565b806000526008602052611f876001604060002001546123b9565b612496565b503461048e57600060031936011261048e5760206040517f00000000000000000000000000000000000000000000000000000000000027108152f35b503461048e57602060031936011261048e576001600160a01b03600435611fee81610730565b16600052600e6020526020604060002054604051908152f35b503461048e57600060031936011261048e576020600a54604051908152f35b503461048e57604060031936011261048e57602060ff61175560043561204b81610730565b6001600160a01b036024359161206083610730565b16600052600584526040600020906001600160a01b0316600052602052604060002090565b503461048e57602060031936011261048e576004356120a381610730565b6001600160a01b036120ba81601054163314612533565b8116156120ca576100219061257e565b608460405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b503461048e57602060031936011261048e5761214e6122ef565b600435601655005b3360009081527f5eff886ea0ce6ca488a3d6e336d6c0f75f46d19b42c06ce5ee98e42c96d256c7602052604090205460ff161561218f57565b6121983361375f565b60006121a2613686565b9060306121ae836136c0565b5360786121ba836136d6565b5360415b600181116122945761229060486122788661224c876121dd8815613714565b6040519485937f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000602086015261221d815180926020603789019101610599565b84017f206973206d697373696e6720726f6c65200000000000000000000000000000006037820152019061247f565b037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081018352826111da565b60405191829162461bcd60e51b835260048301610611565b0390fd5b90807f3031323334353637383961626364656600000000000000000000000000000000600f6122dd931660108110156122e2575b1a6122d384866136e7565b5360041c91613706565b6121be565b6122ea6125e0565b6122c8565b3360009081527f5eff886ea0ce6ca488a3d6e336d6c0f75f46d19b42c06ce5ee98e42c96d256c7602052604090205460ff161561232857565b6123313361375f565b600061233b613686565b906030612347836136c0565b536078612353836136d6565b5360415b600181116123765761229060486122788661224c876121dd8815613714565b90807f3031323334353637383961626364656600000000000000000000000000000000600f6123b4931660108110156122e2571a6122d384866136e7565b612357565b80600052600860205260ff6123e5336040600020906001600160a01b0316600052602052604060002090565b5416156123ef5750565b6123f83361375f565b90612401613686565b90603061240d836136c0565b536078612419836136d6565b5360415b6001811161243c5761229060486122788661224c876121dd8815613714565b90807f3031323334353637383961626364656600000000000000000000000000000000600f61247a931660108110156122e2571a6122d384866136e7565b61241d565b9061249260209282815194859201610599565b0190565b80600052600860205260ff6124c2836040600020906001600160a01b0316600052602052604060002090565b54166124cc575050565b8060005260086020526124f6826040600020906001600160a01b0316600052602052604060002090565b60ff1981541690556001600160a01b03339216907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b6000604051a4565b1561253a57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b601054906001600160a01b0380911691827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617601055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e06000604051a3565b507f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6001600160a01b0390600d54811015612650575b600d6000527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb501541690565b6126586125e0565b612624565b1561266457565b608460405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152fd5b507f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6001907ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe811161272c570190565b6124926126ce565b8119811161272c570190565b1561274757565b608460405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152fd5b906001600160a01b038216600092818452600b6020526040936127d885822054151561265d565b6127fb6127e847600a5490612734565b848352600c60205286832054908561299c565b92612807841515612740565b808252600c60205285822061281d858254612734565b905561282b84600a54612734565b600a558347106128f757818091858851915af1612846613475565b501561288e5792516001600160a01b0390931683526020830152907fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0569080604081015b0390a1565b6084845162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152fd5b6064865162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152fd5b9081602091031261048e575190565b506040513d6000823e3d90fd5b8060001904821181151516612969570290565b6129716126ce565b0290565b600019906001811061272c570190565b818110612990570390565b6129986126ce565b0390565b906001600160a01b036129be9216600052600b60205260406000205490612956565b6009549081156129d45704818110612990570390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000060208083019182526001600160a01b03948516602484015260448084019690965294825290929091612a5a6064856111da565b169060405192612a6984611195565b8484527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656485850152823b15612adc57612ab5939260009283809351925af1612aaf613475565b90613646565b80519081612ac257505050565b82612ada93612ad5938301019101612b52565b612b67565b565b6064856040519062461bcd60e51b82526004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152fd5b604051906020820182811067ffffffffffffffff821117612b45575b60405260008252565b612b4d611165565b612b3c565b9081602091031261048e575161062281611944565b15612b6e57565b608460405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152fd5b60005260026020526001600160a01b03604060002054168015612bf85790565b608460405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152fd5b90600182811c92168015612cab575b6020831014612c7c57565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b91607f1691612c71565b6040519060008260145491612cc983612c62565b80835292600190818116908115612d4f5750600114612cf0575b50612ada925003836111da565b6014600090815291507fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec5b848310612d345750612ada935050810160200138612ce3565b81935090816020925483858a01015201910190918592612d1b565b935050505060ff199150166020830152612ada826040810138612ce3565b9060405191826000825492612d8184612c62565b908184526001948581169081600014612dee5750600114612dab575b5050612ada925003836111da565b9093915060005260209081600020936000915b818310612dd6575050612ada93508201013880612d9d565b85548884018501529485019487945091830191612dbe565b94505050505060ff199150166020830152612ada82604081013880612d9d565b15612e1557565b608460405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152fd5b612e9f8160005260026020526001600160a01b0360406000205416151590565b15612ebe5760005260046020526001600160a01b036040600020541690565b608460405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152fd5b15612f2f57565b608460405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152fd5b91612ada9391612fc093612fb06109aa8433613032565b612fbb8383836131aa565b6135e9565b15612fc757565b60405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608490fd5b6130528260005260026020526001600160a01b0360406000205416151590565b156130d05761306082612bd8565b916001600160a01b03908183169282851684149485156130a0575b5050831561308a575b50505090565b61309691929350612e7f565b1614388080613084565b60ff929550906107c46130c6926001600160a01b03166000526005602052604060002090565b541692388061307b565b608460405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152fd5b1561314157565b608460405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152fd5b906131b483612bd8565b6001600160a01b0391829182851693849116036132a75761320261327e928216946131e086151561313a565b6131e987613311565b6001600160a01b03166000526003602052604060002090565b61320c8154612975565b905561322b816001600160a01b03166000526003602052604060002090565b61323581546126fe565b905561324b856000526002602052604060002090565b906001600160a01b03167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6000604051a4565b608460405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152fd5b80600052600460205260406000207fffffffffffffffffffffffff0000000000000000000000000000000000000000815416905560006001600160a01b0361335883612bd8565b167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92582604051a4565b8160005260046020526133c6816040600020906001600160a01b03167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b6001600160a01b03806133d884612bd8565b169116907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256000604051a4565b9081602091031261048e575161062281610464565b61062293926001600160a01b0360809316825260006020830152604082015281606082015201906105ce565b909261062294936080936001600160a01b038092168452166020830152604082015281606082015201906105ce565b3d156134a0573d906134868261121b565b9161349460405193846111da565b82523d6000602084013e565b606090565b909190803b156135e1576134f86020916001600160a01b039360006040519586809581947f150b7a02000000000000000000000000000000000000000000000000000000009a8b8452336004850161341a565b0393165af1600091816135b1575b5061358b57613513613475565b805190816135865760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608490fd5b602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000161490565b6135d391925060203d81116135da575b6135cb81836111da565b810190613405565b9038613506565b503d6135c1565b505050600190565b92909190823b1561363d576134f89260209260006001600160a01b036040518097819682957f150b7a02000000000000000000000000000000000000000000000000000000009b8c85523360048601613446565b50505050600190565b90919015613652575090565b8151156136625750805190602001fd5b6122909060405191829162461bcd60e51b83526020600484015260248301906105ce565b604051906080820182811067ffffffffffffffff8211176136b3575b604052604282526060366020840137565b6136bb611165565b6136a2565b6020908051156136ce570190565b6124926125e0565b6021908051600110156136ce570190565b9060209180518210156136f957010190565b6137016125e0565b010190565b60001990801561272c570190565b1561371b57565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b604051906060820182811067ffffffffffffffff8211176137fc575b604052602a825260403660208401376030613795836136c0565b5360786137a1836136d6565b536029905b600182116137b957610622915015613714565b807f3031323334353637383961626364656600000000000000000000000000000000600f6137f6931660108110156122e2571a6122d384866136e7565b906137a6565b613804611165565b61377b565b60001960125460135490818110613828575b036001811061272c570190565b6138306126ce565b61381b565b600190600019811461272c570190565b91908110156138555760051b0190565b61184d6125e0565b3561062281610730565b1561386e57565b606460405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152fd5b156138b957565b606460405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b1561390457565b608460405162461bcd60e51b815260206004820152602d60248201527f526571756573746564206d6f7265206d696e7473207468616e20616c6c6f776560448201527f6420666f722070726573616c65000000000000000000000000000000000000006064820152fd5b1561397557565b606460405162461bcd60e51b815260206004820152601a60248201527f50726573616c65206d696e74206c696d697420726561636865640000000000006044820152fd5b60ff6017541680613b25575b6139d0821515613b5c565b60068211613afb576139e9826139e4613809565b612734565b6139f1614156565b60155490818110613aee575b0310613ac457613a0f82601654612956565b3410613a9a57613a5e575b60005b818110613a28575050565b613a4690613a34613809565b613a3c614156565b11613a4b57613835565b613a1d565b610bc46110ff60126110f8815433613ba7565b3360005260196020526040600020613a77828254612734565b9055336000908152601b60205260409020613a93828254612985565b9055613a1a565b60046040517f8a0d3779000000000000000000000000000000000000000000000000000000008152fd5b60046040517ffb88d215000000000000000000000000000000000000000000000000000000008152fd5b613af66126ce565b6139fd565b60046040517fb637d13b000000000000000000000000000000000000000000000000000000008152fd5b613b2e33613f0c565b6139c55760046040517f35e3e74c000000000000000000000000000000000000000000000000000000008152fd5b15613b6357565b606460405162461bcd60e51b815260206004820152601a60248201527f4d696e7420616d6f756e742063616e6e6f74206265207a65726f0000000000006044820152fd5b90604051613bb4816111be565b600081526001600160a01b038316918215613ca857613be98160005260026020526001600160a01b0360406000205416151590565b613c64578381612fc094613c13612ada976001600160a01b03166000526003602052604060002090565b613c1d81546126fe565b9055613c378361324b846000526002602052604060002090565b60007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef81604051a46134a5565b606460405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152fd5b606460405162461bcd60e51b815260206004820152602060248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152fd5b601854811015613d27575b601860005260011b7fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e0190600090565b613d2f6125e0565b613cf7565b90604051613d4181611195565b80926001600160a01b03815416825260018091019160405191828481955492838652602080960191600052856000209060005b87868210613d905750505050613d8c925003846111da565b0152565b8354855289955090930192918101918101613d74565b90613db08261182b565b613dbd60405191826111da565b8281527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0613deb829461182b565b0190602036910137565b6020918151811015613e0a575b60051b010190565b613e126125e0565b613e02565b602090818184031261048e5780519067ffffffffffffffff821161048e57019180601f8401121561048e578251613e4d8161182b565b93613e5b60405195866111da565b818552838086019260051b82010192831161048e578301905b828210613e82575050505090565b81518152908301908301613e74565b6040810190604081528251809252606081019160208094019060005b818110613eef575050508281830391015281808451928381520193019160005b828110613edb575050505090565b835185529381019392810192600101613ecd565b82516001600160a01b031685529385019391850191600101613ead565b613f29816001600160a01b0316600052601b602052604060002090565b54614150576018549060005b828110613f45575b505050600090565b613f57613f5182613cec565b50613d34565b80516001600160a01b0316803b1561414957602090818301918251511591826140be575b505015613f8c575050505050600190565b80515180613fa6575b505050613fa190613835565b613f35565b613faf90613da6565b91825160005b81811061409957505091600091613fe8613fdc613fdc61402096516001600160a01b031690565b6001600160a01b031690565b9051916040518095819482937f4e1273f400000000000000000000000000000000000000000000000000000000845260048401613e91565b03915afa90811561408c575b60009161406b575b5080519060005b82811015613f955761404d8183613df5565b516140605761405b90613835565b61403b565b505050505050600190565b614086913d8091833e61407e81836111da565b810190613e17565b38614034565b614094612949565b61402c565b80610bc4886140ab6140b99489613df5565b906001600160a01b03169052565b613fb5565b6040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b03888116600483015292935091839183916024918391165afa91821561413c575b60009261411f575b505015153880613f7b565b6141359250803d106110495761103b81836111da565b3880614114565b614144612949565b61410c565b5050613f3d565b50600190565b6013547f0000000000000000000000000000000000000000000000000000000000002710818110612990570390565b9060ff6017541680614262575b61419d831515613b5c565b60068311613afb576141b1836139e4613809565b6141b9614156565b60155490818110614255575b0310613ac4576141d783601654612956565b3410613a9a57614202575b60005b8281106141f157505050565b6141fd906110ce613809565b6141e5565b6001600160a01b03811660005260196020526040600020614224838254612734565b9055614243816001600160a01b0316600052601b602052604060002090565b61424e838254612985565b90556141e2565b61425d6126ce565b6141c5565b61426b82613f0c565b6141925760046040517f35e3e74c000000000000000000000000000000000000000000000000000000008152fd5b6142f292916142a66122ef565b604051916142b383611195565b6001600160a01b038091168352602092838101928352614330601854926801000000000000000084101561437f575b6001978489809601601855613cec565b939093614372575b511682906001600160a01b03167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b019051918083519361434285856143f7565b0191600052806000206000925b84841061435f5750505050509050565b805182559286019290860190820161434f565b61437a61438c565b6142fa565b614387611165565b6142e2565b507f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b8181106143c7575050565b600081556001016143bc565b805460008255806143e2575050565b612ada916000526020600020908101906143bc565b90680100000000000000008111614431575b81549080835581811061441b57505050565b612ada92600052602060002091820191016143bc565b614439611165565b614409565b90601f821161444b575050565b612ada9160146000527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec906020601f840160051c83019310614495575b601f0160051c01906143bc565b9091508190614488565b6144bf8160005260026020526001600160a01b0360406000205416151590565b15614528576144e06144db826000526006602052604060002090565b612d6d565b906144e9612cb5565b80511561452357825161450157506106229150614592565b610622915061224c61451d93604051948593602085019061247f565b9061247f565b505090565b608460405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f722060448201527f6e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006064820152fd5b6145b28160005260026020526001600160a01b0360406000205416151590565b156145f6576145bf612cb5565b8051909190156145ec5761451d9161224c6145dc61062293614660565b604051948593602085019061247f565b5050610622612b20565b608460405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152fd5b801561474157806000908282935b61472d575061467c8361121b565b9261468a60405194856111da565b808452817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe06146b88361121b565b013660208701375b6146ca5750505090565b6146d390612975565b90600a907fff00000000000000000000000000000000000000000000000000000000000000828206603081198111614720575b0160f81b16841a61471784876136e7565b530490816146c0565b6147286126ce565b614706565b92614739600a91613835565b93048061466e565b5060405161474e81611195565b600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b6106229054612c62565b61478f8154612c62565b9081614799575050565b81601f600093116001146147ab575055565b818352602083206147c791601f0160051c8101906001016143bc565b8160208120915555565b604080513381523460208201527f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770918190810161288956fea2646970667358221220ef167b5421973145990d2fe7ddae832317d919b56620c41fe541e3087f25f02464736f6c634300080d0033

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

000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000f68b2107febf2614314ca3e80029fc897ce0fa80000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000c80000000000000000000000000000000000000000000000000000000000000003000000000000000000000000584db82ca34ca78ce59f4ccd601cc285e4b9e3110000000000000000000000000f68b2107febf2614314ca3e80029fc897ce0fa800000000000000000000000050e18b87633019453be558b534f67bae337a8c7e00000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000002c436f6e66657373696f6e732046726f6d2074686520486172742047656e6573697320436f6c6c656374696f6e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044346544800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005468747470733a2f2f6d6f6f6e77616c6b2e6d7970696e6174612e636c6f75642f697066732f516d6657326242434559447857396f4d7a774e524a574e467151747248487852584c344573636f7a4748336751352f000000000000000000000000

-----Decoded View---------------
Arg [0] : payees (address[]): 0x584DB82CA34CA78ce59F4CCd601CC285e4b9e311,0x0f68b2107fEbF2614314ca3E80029fC897ce0FA8,0x50e18b87633019453Be558b534f67Bae337a8C7e
Arg [1] : shares (uint256[]): 80,10,10
Arg [2] : owner_ (address): 0x0f68b2107fEbF2614314ca3E80029fC897ce0FA8
Arg [3] : name (string): Confessions From the Hart Genesis Collection
Arg [4] : symbol_ (string): CFTH
Arg [5] : baseUri (string): https://moonwalk.mypinata.cloud/ipfs/QmfW2bBCEYDxW9oMzwNRJWNFqQtrHHxRXL4EscozGH3gQ5/
Arg [6] : mintPrice (uint256): 100000000000000000
Arg [7] : maxSupply_ (uint256): 10000
Arg [8] : reservedAmount (uint256): 200

-----Encoded View---------------
26 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [2] : 0000000000000000000000000f68b2107febf2614314ca3e80029fc897ce0fa8
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000280
Arg [5] : 00000000000000000000000000000000000000000000000000000000000002c0
Arg [6] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [8] : 00000000000000000000000000000000000000000000000000000000000000c8
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [10] : 000000000000000000000000584db82ca34ca78ce59f4ccd601cc285e4b9e311
Arg [11] : 0000000000000000000000000f68b2107febf2614314ca3e80029fc897ce0fa8
Arg [12] : 00000000000000000000000050e18b87633019453be558b534f67bae337a8c7e
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000050
Arg [15] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [16] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [17] : 000000000000000000000000000000000000000000000000000000000000002c
Arg [18] : 436f6e66657373696f6e732046726f6d2074686520486172742047656e657369
Arg [19] : 7320436f6c6c656374696f6e0000000000000000000000000000000000000000
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [21] : 4346544800000000000000000000000000000000000000000000000000000000
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000054
Arg [23] : 68747470733a2f2f6d6f6f6e77616c6b2e6d7970696e6174612e636c6f75642f
Arg [24] : 697066732f516d6657326242434559447857396f4d7a774e524a574e46715174
Arg [25] : 7248487852584c344573636f7a4748336751352f000000000000000000000000


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.