ETH Price: $3,370.15 (-2.54%)

Token

Charged Particles - Lepton2 (LEPTON2)
 

Overview

Max Total Supply

1,186 LEPTON2

Holders

298

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
deadpolaroid.eth
Balance
1 LEPTON2
0x5dA5F4c020f856aBdB168fd35c957D6006ba2edE
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

LEPTON v2: Stackable Yield-Multiplier NFTs. LEPTON v2 NFTs are rare limited NFT that come with additional functionality. Boosted Yield Farming Rewards, giving its owner additional rewards earned when the Charged Particles Governance Token liquidity mining goes live.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Lepton2

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

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

// Lepton2.sol -- Part of the Charged Particles Protocol
// Copyright (c) 2021 Firma Lux, Inc. <https://charged.fi>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

pragma solidity 0.6.12;

import "../lib/ERC721Basic.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Enumerable.sol";

import "../interfaces/ILepton.sol";
import "../lib/BlackholePrevention.sol";


contract Lepton2 is ILepton, ERC721Basic, Ownable, ReentrancyGuard, BlackholePrevention {
  using SafeMath for uint256;
  using Address for address payable;

  Classification[] internal _leptonTypes;

  uint256 internal _typeIndex;
  uint256 internal _maxSupply;
  uint256 internal _maxMintPerTx;
  uint256 internal _migratedCount;

  bool internal _paused;
  bool internal _migrationComplete;


  /***********************************|
  |          Initialization           |
  |__________________________________*/

  constructor() public ERC721Basic("Charged Particles - Lepton2", "LEPTON2") {
    _paused = true;
  }


  /***********************************|
  |              Public               |
  |__________________________________*/

  function mintLepton() external payable override nonReentrant whenNotPaused returns (uint256 newTokenId) {
    newTokenId = _mintLepton(msg.sender);
  }

  function batchMintLepton(uint256 count) external payable override nonReentrant whenNotPaused {
    _batchMintLepton(msg.sender, count);
  }

  function totalSupply() public view returns (uint256) {
    return _tokenCount;
  }

  function maxSupply() external view returns (uint256) {
    return _maxSupply;
  }

  function getNextType() external view override returns (uint256) {
    if (_typeIndex >= _leptonTypes.length) { return 0; }
    return _typeIndex;
  }

  function getNextPrice() external view override returns (uint256) {
    if (_typeIndex >= _leptonTypes.length) { return 0; }
    return _leptonTypes[_typeIndex].price;
  }

  function getMultiplier(uint256 tokenId) external view override returns (uint256) {
    require(_exists(tokenId), "LPT:E-405");
    return _getLepton(tokenId).multiplier;
  }

  function getBonus(uint256 tokenId) external view override returns (uint256) {
    require(_exists(tokenId), "LPT:E-405");
    return _getLepton(tokenId).bonus;
  }

  function tokenURI(uint256 tokenId) public view override returns (string memory) {
    require(_exists(tokenId), "LPT:E-405");
    return _getLepton(tokenId).tokenUri;
  }

  /***********************************|
  |          Only Admin/DAO           |
  |__________________________________*/

  function addLeptonType(
    string calldata tokenUri,
    uint256 price,
    uint32 supply,
    uint32 multiplier,
    uint32 bonus
  )
    external
    onlyOwner
  {
    _maxSupply = _maxSupply.add(uint256(supply));

    Classification memory lepton = Classification({
      tokenUri: tokenUri,
      price: price,
      supply: supply,
      multiplier: multiplier,
      bonus: bonus,
      _upperBounds: uint128(_maxSupply)
    });
    _leptonTypes.push(lepton);

    emit LeptonTypeAdded(tokenUri, price, supply, multiplier, bonus, _maxSupply);
  }

  function updateLeptonType(
    uint256 leptonIndex,
    string calldata tokenUri,
    uint256 price,
    uint32 supply,
    uint32 multiplier,
    uint32 bonus
  )
    external
    onlyOwner
  {
    _leptonTypes[leptonIndex].tokenUri = tokenUri;
    _leptonTypes[leptonIndex].price = price;
    _leptonTypes[leptonIndex].supply = supply;
    _leptonTypes[leptonIndex].multiplier = multiplier;
    _leptonTypes[leptonIndex].bonus = bonus;

    emit LeptonTypeUpdated(leptonIndex, tokenUri, price, supply, multiplier, bonus, _maxSupply);
  }

  function setMaxMintPerTx(uint256 maxAmount) external onlyOwner {
    _maxMintPerTx = maxAmount;
    emit MaxMintPerTxSet(maxAmount);
  }

  function setPausedState(bool state) external onlyOwner whenMigrated {
    _paused = state;
    emit PausedStateSet(state);
  }


  /***********************************|
  |          Only Admin/DAO           |
  |      (blackhole prevention)       |
  |__________________________________*/

  function withdrawEther(address payable receiver, uint256 amount) external onlyOwner {
    _withdrawEther(receiver, amount);
  }

  function withdrawErc20(address payable receiver, address tokenAddress, uint256 amount) external onlyOwner {
    _withdrawERC20(receiver, tokenAddress, amount);
  }

  function withdrawERC721(address payable receiver, address tokenAddress, uint256 tokenId) external onlyOwner {
    _withdrawERC721(receiver, tokenAddress, tokenId);
  }

  function migrateAccounts(address oldLeptonContract, uint256 count) external onlyOwner whenNotMigrated {
    uint256 oldSupply = IERC721Enumerable(oldLeptonContract).totalSupply();
    if (oldSupply > 0) {
      require(oldSupply > _migratedCount, "LPT:E-004");

      uint256 endTokenId = _migratedCount.add(count);
      if (endTokenId > oldSupply) {
        count = count.sub(endTokenId.sub(oldSupply));
      }

      for (uint256 i = 1; i <= count; i++) {
        uint256 tokenId = _migratedCount.add(i);
        address tokenOwner = IERC721(oldLeptonContract).ownerOf(tokenId);
        _mint(tokenOwner);
      }
      _migratedCount = _tokenCount;
    }

    if (oldSupply == _migratedCount) {
      _finalizeMigration();
    }
  }

  /***********************************|
  |         Private Functions         |
  |__________________________________*/

  function _getLepton(uint256 tokenId) internal view returns (Classification memory) {
    uint256 types = _leptonTypes.length;
    for (uint256 i = 0; i < types; i++) {
      Classification memory lepton = _leptonTypes[i];
      if (tokenId <= lepton._upperBounds) {
        return lepton;
      }
    }
  }

  function _mintLepton(address receiver) internal returns (uint256 newTokenId) {
    require(_typeIndex < _leptonTypes.length, "LPT:E-408");

    Classification memory lepton = _leptonTypes[_typeIndex];
    require(msg.value >= lepton.price, "LPT:E-414");

    newTokenId = _safeMint(receiver, "");

    // Determine Next Type
    if (newTokenId == lepton._upperBounds) {
      _typeIndex = _typeIndex.add(1);
    }

    _refundOverpayment(lepton.price);
  }

  function _batchMintLepton(address receiver, uint256 count) internal {
    require(_typeIndex < _leptonTypes.length, "LPT:E-408");
    require(_maxMintPerTx == 0 || count <= _maxMintPerTx, "LPT:E-429");

    Classification memory lepton = _leptonTypes[_typeIndex];

    uint256 endTokenId = _tokenCount.add(count);
    if (endTokenId > lepton._upperBounds) {
      count = count.sub(endTokenId.sub(lepton._upperBounds));
    }

    uint256 salePrice = lepton.price.mul(count);
    require(msg.value >= salePrice, "LPT:E-414");

    _safeMintBatch(receiver, count, "");

    // Determine Next Type
    if (endTokenId >= lepton._upperBounds) {
      _typeIndex = _typeIndex.add(1);
    }

    _refundOverpayment(salePrice);
  }

  function _refundOverpayment(uint256 threshold) internal {
    uint256 overage = msg.value.sub(threshold);
    if (overage > 0) {
      payable(_msgSender()).sendValue(overage);
    }
  }

  function _finalizeMigration() internal {
    // Determine Next Type
    _typeIndex = 0;
    for (uint256 i = 0; i < _leptonTypes.length; i++) {
      Classification memory lepton = _leptonTypes[i];
      if (_migratedCount >= lepton._upperBounds) {
        _typeIndex = i + 1;
      }
    }
    _migrationComplete = true;
  }


  /***********************************|
  |             Modifiers             |
  |__________________________________*/

  modifier whenMigrated() {
    require(_migrationComplete, "LPT:E-003");
    _;
  }

  modifier whenNotMigrated() {
    require(!_migrationComplete, "LPT:E-004");
    _;
  }

  modifier whenNotPaused() {
    require(!_paused, "LPT:E-101");
    _;
  }
}

File 2 of 17 : ERC721Basic.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

/**
 * @title ERC721 Non-Fungible Token Standard basic implementation
 * @dev see https://eips.ethereum.org/EIPS/eip-721
 */
contract ERC721Basic is Context, ERC165, IERC721, IERC721Metadata {
  using SafeMath for uint256;
  using Address for address;

  // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
  // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`
  bytes4 internal constant _ERC721_RECEIVED = 0x150b7a02;

  // mapping from token ids to their owners
  mapping (uint256 => address) internal _tokenOwners;

  // mapping from owner to token balance
  mapping (address => uint256) internal _ownerBalance;

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

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

  // Token name
  string internal _name;

  // Token symbol
  string internal _symbol;

  // Token Count
  uint256 internal _tokenCount;

  /*
    *     bytes4(keccak256('balanceOf(address)')) == 0x70a08231
    *     bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e
    *     bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3
    *     bytes4(keccak256('getApproved(uint256)')) == 0x081812fc
    *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
    *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
    *     bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd
    *     bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e
    *     bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde
    *
    *     => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^
    *        0xa22cb465 ^ 0xe985e9c ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd
    */
  bytes4 internal constant _INTERFACE_ID_ERC721 = 0x80ac58cd;

  /*
    *     bytes4(keccak256('name()')) == 0x06fdde03
    *     bytes4(keccak256('symbol()')) == 0x95d89b41
    *     bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd
    *
    *     => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f
    */
  bytes4 internal constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;

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

    // register the supported interfaces to conform to ERC721 via ERC165
    _registerInterface(_INTERFACE_ID_ERC721);
    _registerInterface(_INTERFACE_ID_ERC721_METADATA);
  }

  /**
    * @dev See {IERC721-balanceOf}.
    */
  function balanceOf(address owner) public view override returns (uint256) {
    require(owner != address(0), "ERC721:E-403");
    return _ownerBalance[owner];
  }

  /**
    * @dev See {IERC721-ownerOf}.
    */
  function ownerOf(uint256 tokenId) public view override returns (address) {
    return _tokenOwners[tokenId];
  }

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

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

  /**
    * @dev See {IERC721Metadata-tokenURI}.
    */
  function tokenURI(uint256 /* tokenId */) public view virtual override returns (string memory) {
    return "";
  }

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

    require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721:E-105");

    _approve(to, tokenId);
  }

  /**
    * @dev See {IERC721-getApproved}.
    */
  function getApproved(uint256 tokenId) public view override returns (address) {
    require(_exists(tokenId), "ERC721:E-405");
    return _tokenApprovals[tokenId];
  }

  /**
    * @dev See {IERC721-setApprovalForAll}.
    */
  function setApprovalForAll(address operator, bool approved) public virtual override {
    require(operator != _msgSender(), "ERC721:E-111");

    _operatorApprovals[_msgSender()][operator] = approved;
    emit ApprovalForAll(_msgSender(), operator, approved);
  }

  /**
    * @dev See {IERC721-isApprovedForAll}.
    */
  function isApprovedForAll(address owner, address operator) public view 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:E-105");

    _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:E-105");
    _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 mecanisms 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:E-402");
  }

  /**
    * @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 returns (bool) {
    return _tokenOwners[tokenId] != address(0x0);
  }

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

  /**
    * @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, bytes memory _data) internal virtual returns (uint256) {
    uint256 tokenId = _mint(to);
    require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721:E-402");
    return 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 _safeMintBatch(address to, uint256 count, bytes memory _data) internal virtual {
    uint256 startTokenId = _mintBatch(to, count);
    require(_checkOnERC721Received(address(0), to, startTokenId, _data), "ERC721:E-402");
  }

  /**
    * @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) internal virtual returns (uint256) {
    require(to != address(0), "ERC721:E-403");

    _tokenCount = _tokenCount.add(1);
    uint256 tokenId = _tokenCount;
    require(!_exists(tokenId), "ERC721:E-407");

    _tokenOwners[tokenId] = to;
    _ownerBalance[to] = _ownerBalance[to].add(1);

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

  /**
    * @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 _mintBatch(address to, uint256 count) internal virtual returns (uint256) {
    require(to != address(0), "ERC721:E-403");

    uint256 startTokenId = _tokenCount.add(1);
    for (uint i = 1; i <= count; i++) {
      uint256 tokenId = _tokenCount.add(i);
      _tokenOwners[tokenId] = to;
      emit Transfer(address(0), to, tokenId);
    }

    _tokenCount = _tokenCount.add(count);
    _ownerBalance[to] = _ownerBalance[to].add(count);
    return startTokenId;
  }

  /**
    * @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(ownerOf(tokenId) == from, "ERC721:E-102");
    require(to != address(0), "ERC721:E-403");

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

    _tokenOwners[tokenId] = to;
    _ownerBalance[from] = _ownerBalance[from].sub(1);
    _ownerBalance[to] = _ownerBalance[to].add(1);

    emit Transfer(from, to, tokenId);
  }

  /**
    * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
    * The call is not executed if the target address is not a contract.
    *
    * @param from address representing the previous owner of the given token ID
    * @param to target address that will receive the tokens
    * @param tokenId uint256 ID of the token to be transferred
    * @param _data bytes optional data to send along with the call
    * @return bool whether the call correctly returned the expected magic value
    */
  function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)
    internal returns (bool)
  {
    if (!to.isContract()) {
      return true;
    }
    bytes memory returndata = to.functionCall(abi.encodeWithSelector(
      IERC721Receiver(to).onERC721Received.selector,
      _msgSender(),
      from,
      tokenId,
      _data
    ), "ERC721:E-402");
    bytes4 retval = abi.decode(returndata, (bytes4));
    return (retval == _ERC721_RECEIVED);
  }

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

File 3 of 17 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

File 4 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "../GSN/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.
 */
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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 5 of 17 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 6 of 17 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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].
 */
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 () internal {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 7 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 17 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

import "./IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

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

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

File 9 of 17 : ILepton.sol
// SPDX-License-Identifier: MIT

// ILepton.sol -- Part of the Charged Particles Protocol
// Copyright (c) 2021 Firma Lux, Inc. <https://charged.fi>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

pragma solidity >=0.6.0;

/**
 * @title Charged Particles Lepton Interface
 * @dev ...
 */
interface ILepton {

  struct Classification {
    string tokenUri;
    uint256 price;
    uint128 _upperBounds;
    uint32 supply;
    uint32 multiplier;
    uint32 bonus;
  }

  function mintLepton() external payable returns (uint256 newTokenId);
  function batchMintLepton(uint256 count) external payable;
  function getNextType() external view returns (uint256);
  function getNextPrice() external view returns (uint256);
  function getMultiplier(uint256 tokenId) external view returns (uint256);
  function getBonus(uint256 tokenId) external view returns (uint256);


  event MaxMintPerTxSet(uint256 maxAmount);
  event LeptonTypeAdded(string tokenUri, uint256 price, uint32 supply, uint32 multiplier, uint32 bonus, uint256 upperBounds);
  event LeptonTypeUpdated(uint256 leptonIndex, string tokenUri, uint256 price, uint32 supply, uint32 multiplier, uint32 bonus, uint256 upperBounds);
  event LeptonMinted(address indexed receiver, uint256 indexed tokenId, uint256 price, uint32 multiplier);
  event LeptonBatchMinted(address indexed receiver, uint256 indexed tokenId, uint256 count, uint256 price, uint32 multiplier);
  event PausedStateSet(bool isPaused);
}

File 10 of 17 : BlackholePrevention.sol
// SPDX-License-Identifier: MIT

// BlackholePrevention.sol -- Part of the Charged Particles Protocol
// Copyright (c) 2021 Firma Lux, Inc. <https://charged.fi>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

pragma solidity >=0.6.0;

import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

/**
 * @notice Prevents ETH or Tokens from getting stuck in a contract by allowing
 *  the Owner/DAO to pull them out on behalf of a user
 * This is only meant to contracts that are not expected to hold tokens, but do handle transferring them.
 */
contract BlackholePrevention {
  using Address for address payable;
  using SafeERC20 for IERC20;

  event WithdrawStuckEther(address indexed receiver, uint256 amount);
  event WithdrawStuckERC20(address indexed receiver, address indexed tokenAddress, uint256 amount);
  event WithdrawStuckERC721(address indexed receiver, address indexed tokenAddress, uint256 indexed tokenId);

  function _withdrawEther(address payable receiver, uint256 amount) internal virtual {
    require(receiver != address(0x0), "BHP:E-403");
    if (address(this).balance >= amount) {
      receiver.sendValue(amount);
      emit WithdrawStuckEther(receiver, amount);
    }
  }

  function _withdrawERC20(address payable receiver, address tokenAddress, uint256 amount) internal virtual {
    require(receiver != address(0x0), "BHP:E-403");
    if (IERC20(tokenAddress).balanceOf(address(this)) >= amount) {
      IERC20(tokenAddress).safeTransfer(receiver, amount);
      emit WithdrawStuckERC20(receiver, tokenAddress, amount);
    }
  }

  function _withdrawERC721(address payable receiver, address tokenAddress, uint256 tokenId) internal virtual {
    require(receiver != address(0x0), "BHP:E-403");
    if (IERC721(tokenAddress).ownerOf(tokenId) == address(this)) {
      IERC721(tokenAddress).transferFrom(address(this), receiver, tokenId);
      emit WithdrawStuckERC721(receiver, tokenAddress, tokenId);
    }
  }
}

File 11 of 17 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 12 of 17 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

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

pragma solidity ^0.6.0;

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

File 14 of 17 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor () internal {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view override returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

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

pragma solidity ^0.6.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 16 of 17 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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

File 17 of 17 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "./IERC20.sol";
import "../../math/SafeMath.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 SafeMath for uint256;
    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'
        // solhint-disable-next-line max-line-length
        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).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _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
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"count","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint32","name":"multiplier","type":"uint32"}],"name":"LeptonBatchMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint32","name":"multiplier","type":"uint32"}],"name":"LeptonMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"tokenUri","type":"string"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint32","name":"supply","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"multiplier","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"bonus","type":"uint32"},{"indexed":false,"internalType":"uint256","name":"upperBounds","type":"uint256"}],"name":"LeptonTypeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"leptonIndex","type":"uint256"},{"indexed":false,"internalType":"string","name":"tokenUri","type":"string"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint32","name":"supply","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"multiplier","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"bonus","type":"uint32"},{"indexed":false,"internalType":"uint256","name":"upperBounds","type":"uint256"}],"name":"LeptonTypeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxAmount","type":"uint256"}],"name":"MaxMintPerTxSet","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":"bool","name":"isPaused","type":"bool"}],"name":"PausedStateSet","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":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawStuckERC20","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"WithdrawStuckERC721","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawStuckEther","type":"event"},{"inputs":[{"internalType":"string","name":"tokenUri","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint32","name":"supply","type":"uint32"},{"internalType":"uint32","name":"multiplier","type":"uint32"},{"internalType":"uint32","name":"bonus","type":"uint32"}],"name":"addLeptonType","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":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"batchMintLepton","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getBonus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNextPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNextType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"oldLeptonContract","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"migrateAccounts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintLepton","outputs":[{"internalType":"uint256","name":"newTokenId","type":"uint256"}],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxAmount","type":"uint256"}],"name":"setMaxMintPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"setPausedState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"leptonIndex","type":"uint256"},{"internalType":"string","name":"tokenUri","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint32","name":"supply","type":"uint32"},{"internalType":"uint32","name":"multiplier","type":"uint32"},{"internalType":"uint32","name":"bonus","type":"uint32"}],"name":"updateLeptonType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"receiver","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"withdrawERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"receiver","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawErc20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604080518082018252601b81527f43686172676564205061727469636c6573202d204c6570746f6e320000000000602080830191909152825180840190935260078352662622a82a27a71960c91b9083015290620000776301ffc9a760e01b6200013e565b81516200008c906005906020850190620001c7565b508051620000a2906006906020840190620001c7565b50620000b56380ac58cd60e01b6200013e565b620000c7635b5e139f60e01b6200013e565b5060009050620000d6620001c3565b600880546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060016009819055600f805460ff1916909117905562000263565b6001600160e01b031980821614156200019e576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200020a57805160ff19168380011785556200023a565b828001600101855582156200023a579182015b828111156200023a5782518255916020019190600101906200021d565b50620002489291506200024c565b5090565b5b808211156200024857600081556001016200024d565b6135e380620002736000396000f3fe6080604052600436106101e35760003560e01c8063681ce98a11610102578063b88d4fde11610095578063db9f60ff11610064578063db9f60ff146108be578063e6089023146108ea578063e985e9c5146108ff578063f2fde38b1461093a576101e3565b8063b88d4fde14610711578063c87b56dd146107e4578063d5abeb011461080e578063da47bb2614610823576101e3565b806395d89b41116100d157806395d89b41146105f5578063a22cb4651461060a578063adf8252d14610645578063b0fde8cf1461066f576101e3565b8063681ce98a1461058357806370a0823114610598578063715018a6146105cb5780638da5cb5b146105e0576101e3565b806323b872dd1161017a578063522f681511610149578063522f6815146104ee5780635fc194ed14610527578063616cdb1e1461052f5780636352211e14610559576101e3565b806323b872dd146103fb5780634025feb21461043e57806342842e0e146104815780634aa66b28146104c4576101e3565b8063095ea7b3116101b6578063095ea7b31461033b5780630afd902b146103745780631593dee11461039157806318160ddd146103d4576101e3565b806301ffc9a7146101e85780630512487a1461023057806306fdde031461026b578063081812fc146102f5575b600080fd5b3480156101f457600080fd5b5061021c6004803603602081101561020b57600080fd5b50356001600160e01b03191661096d565b604080519115158252519081900360200190f35b34801561023c57600080fd5b506102696004803603604081101561025357600080fd5b506001600160a01b038135169060200135610990565b005b34801561027757600080fd5b50610280610bd7565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102ba5781810151838201526020016102a2565b50505050905090810190601f1680156102e75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561030157600080fd5b5061031f6004803603602081101561031857600080fd5b5035610c6e565b604080516001600160a01b039092168252519081900360200190f35b34801561034757600080fd5b506102696004803603604081101561035e57600080fd5b506001600160a01b038135169060200135610cd5565b6102696004803603602081101561038a57600080fd5b5035610db5565b34801561039d57600080fd5b50610269600480360360608110156103b457600080fd5b506001600160a01b03813581169160208101359091169060400135610e68565b3480156103e057600080fd5b506103e9610ecb565b60408051918252519081900360200190f35b34801561040757600080fd5b506102696004803603606081101561041e57600080fd5b506001600160a01b03813581169160208101359091169060400135610ed1565b34801561044a57600080fd5b506102696004803603606081101561046157600080fd5b506001600160a01b03813581169160208101359091169060400135610f2d565b34801561048d57600080fd5b50610269600480360360608110156104a457600080fd5b506001600160a01b03813581169160208101359091169060400135610f90565b3480156104d057600080fd5b506103e9600480360360208110156104e757600080fd5b5035610fab565b3480156104fa57600080fd5b506102696004803603604081101561051157600080fd5b506001600160a01b03813516906020013561100c565b6103e9611072565b34801561053b57600080fd5b506102696004803603602081101561055257600080fd5b5035611128565b34801561056557600080fd5b5061031f6004803603602081101561057c57600080fd5b50356111bb565b34801561058f57600080fd5b506103e96111d6565b3480156105a457600080fd5b506103e9600480360360208110156105bb57600080fd5b50356001600160a01b0316611212565b3480156105d757600080fd5b5061026961127a565b3480156105ec57600080fd5b5061031f61131c565b34801561060157600080fd5b5061028061132b565b34801561061657600080fd5b506102696004803603604081101561062d57600080fd5b506001600160a01b038135169060200135151561138c565b34801561065157600080fd5b506103e96004803603602081101561066857600080fd5b5035611480565b34801561067b57600080fd5b50610269600480360360c081101561069257600080fd5b813591908101906040810160208201356401000000008111156106b457600080fd5b8201836020820111156106c657600080fd5b803590602001918460018302840111640100000000831117156106e857600080fd5b919350915080359063ffffffff60208201358116916040810135821691606090910135166114e1565b34801561071d57600080fd5b506102696004803603608081101561073457600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561076f57600080fd5b82018360208201111561078157600080fd5b803590602001918460018302840111640100000000831117156107a357600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506116ea945050505050565b3480156107f057600080fd5b506102806004803603602081101561080757600080fd5b503561174d565b34801561081a57600080fd5b506103e96117a5565b34801561082f57600080fd5b50610269600480360360a081101561084657600080fd5b81019060208101813564010000000081111561086157600080fd5b82018360208201111561087357600080fd5b8035906020019184600183028401116401000000008311171561089557600080fd5b919350915080359063ffffffff60208201358116916040810135821691606090910135166117ab565b3480156108ca57600080fd5b50610269600480360360208110156108e157600080fd5b50351515611a2b565b3480156108f657600080fd5b506103e9611b12565b34801561090b57600080fd5b5061021c6004803603604081101561092257600080fd5b506001600160a01b0381358116916020013516611b2f565b34801561094657600080fd5b506102696004803603602081101561095d57600080fd5b50356001600160a01b0316611b5f565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b610998611c58565b6008546001600160a01b039081169116146109e8576040805162461bcd60e51b81526020600482018190526024820152600080516020613564833981519152604482015290519081900360640190fd5b600f54610100900460ff1615610a31576040805162461bcd60e51b81526020600482015260096024820152681314150e914b4c0c0d60ba1b604482015290519081900360640190fd5b6000826001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610a6c57600080fd5b505afa158015610a80573d6000803e3d6000fd5b505050506040513d6020811015610a9657600080fd5b505190508015610bc057600e548111610ae2576040805162461bcd60e51b81526020600482015260096024820152681314150e914b4c0c0d60ba1b604482015290519081900360640190fd5b600e54600090610af29084611c5c565b905081811115610b1357610b10610b098284611cbd565b8490611cbd565b92505b60015b838111610bb757600e54600090610b2d9083611c5c565b90506000866001600160a01b0316636352211e836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610b7557600080fd5b505afa158015610b89573d6000803e3d6000fd5b505050506040513d6020811015610b9f57600080fd5b50519050610bac81611cff565b505050600101610b16565b5050600754600e555b600e54811415610bd257610bd2611e36565b505050565b60058054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610c635780601f10610c3857610100808354040283529160200191610c63565b820191906000526020600020905b815481529060010190602001808311610c4657829003601f168201915b505050505090505b90565b6000610c7982611f93565b610cb9576040805162461bcd60e51b815260206004820152600c60248201526b4552433732313a452d34303560a01b604482015290519081900360640190fd5b506000908152600360205260409020546001600160a01b031690565b6000610ce0826111bb565b9050806001600160a01b0316836001600160a01b03161415610d38576040805162461bcd60e51b815260206004820152600c60248201526b4552433732313a452d31313160a01b604482015290519081900360640190fd5b806001600160a01b0316610d4a611c58565b6001600160a01b03161480610d6b5750610d6b81610d66611c58565b611b2f565b610dab576040805162461bcd60e51b815260206004820152600c60248201526b4552433732313a452d31303560a01b604482015290519081900360640190fd5b610bd28383611fb0565b60026009541415610e0d576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600955600f5460ff1615610e56576040805162461bcd60e51b81526020600482015260096024820152684c50543a452d31303160b81b604482015290519081900360640190fd5b610e60338261201e565b506001600955565b610e70611c58565b6008546001600160a01b03908116911614610ec0576040805162461bcd60e51b81526020600482018190526024820152600080516020613564833981519152604482015290519081900360640190fd5b610bd28383836122bc565b60075490565b610ee2610edc611c58565b826123e6565b610f22576040805162461bcd60e51b815260206004820152600c60248201526b4552433732313a452d31303560a01b604482015290519081900360640190fd5b610bd283838361248f565b610f35611c58565b6008546001600160a01b03908116911614610f85576040805162461bcd60e51b81526020600482018190526024820152600080516020613564833981519152604482015290519081900360640190fd5b610bd2838383612605565b610bd2838383604051806020016040528060008152506116ea565b6000610fb682611f93565b610ff3576040805162461bcd60e51b81526020600482015260096024820152684c50543a452d34303560b81b604482015290519081900360640190fd5b610ffc8261278b565b60a0015163ffffffff1692915050565b611014611c58565b6008546001600160a01b03908116911614611064576040805162461bcd60e51b81526020600482018190526024820152600080516020613564833981519152604482015290519081900360640190fd5b61106e82826128e1565b5050565b6000600260095414156110cc576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600955600f5460ff1615611115576040805162461bcd60e51b81526020600482015260096024820152684c50543a452d31303160b81b604482015290519081900360640190fd5b61111e33612984565b6001600955919050565b611130611c58565b6008546001600160a01b03908116911614611180576040805162461bcd60e51b81526020600482018190526024820152600080516020613564833981519152604482015290519081900360640190fd5b600d8190556040805182815290517f409ba051a4c57ed282ca3d937444126381926068149b2ceb9dcff792655a9b039181900360200190a150565b6000908152600160205260409020546001600160a01b031690565b600a54600b54600091116111ec57506000610c6b565b600a600b54815481106111fb57fe5b906000526020600020906003020160010154905090565b60006001600160a01b03821661125e576040805162461bcd60e51b815260206004820152600c60248201526b4552433732313a452d34303360a01b604482015290519081900360640190fd5b506001600160a01b031660009081526002602052604090205490565b611282611c58565b6008546001600160a01b039081169116146112d2576040805162461bcd60e51b81526020600482018190526024820152600080516020613564833981519152604482015290519081900360640190fd5b6008546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600880546001600160a01b0319169055565b6008546001600160a01b031690565b60068054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610c635780601f10610c3857610100808354040283529160200191610c63565b611394611c58565b6001600160a01b0316826001600160a01b031614156113e9576040805162461bcd60e51b815260206004820152600c60248201526b4552433732313a452d31313160a01b604482015290519081900360640190fd5b80600460006113f6611c58565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561143a611c58565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b600061148b82611f93565b6114c8576040805162461bcd60e51b81526020600482015260096024820152684c50543a452d34303560b81b604482015290519081900360640190fd5b6114d18261278b565b6080015163ffffffff1692915050565b6114e9611c58565b6008546001600160a01b03908116911614611539576040805162461bcd60e51b81526020600482018190526024820152600080516020613564833981519152604482015290519081900360640190fd5b8585600a898154811061154857fe5b6000918252602090912061156293600390920201916133ac565b5083600a888154811061157157fe5b90600052602060002090600302016001018190555082600a888154811061159457fe5b906000526020600020906003020160020160106101000a81548163ffffffff021916908363ffffffff16021790555081600a88815481106115d157fe5b906000526020600020906003020160020160146101000a81548163ffffffff021916908363ffffffff16021790555080600a888154811061160e57fe5b906000526020600020906003020160020160186101000a81548163ffffffff021916908363ffffffff1602179055507fc29eb52b178d59612a9ec3dbfed2e3054ea12f735bff5d06a799a4b06cd47c5287878787878787600c5460405180898152602001806020018781526020018663ffffffff1681526020018563ffffffff1681526020018463ffffffff1681526020018381526020018281038252898982818152602001925080828437600083820152604051601f909101601f19169092018290039b50909950505050505050505050a150505050505050565b6116fb6116f5611c58565b836123e6565b61173b576040805162461bcd60e51b815260206004820152600c60248201526b4552433732313a452d31303560a01b604482015290519081900360640190fd5b61174784848484612b7b565b50505050565b606061175882611f93565b611795576040805162461bcd60e51b81526020600482015260096024820152684c50543a452d34303560b81b604482015290519081900360640190fd5b61179e8261278b565b5192915050565b600c5490565b6117b3611c58565b6008546001600160a01b03908116911614611803576040805162461bcd60e51b81526020600482018190526024820152600080516020613564833981519152604482015290519081900360640190fd5b600c546118199063ffffffff80861690611c5c16565b600c5561182461342a565b6040518060c0016040528088888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509385525050506020808301899052600c546001600160801b0316604084015263ffffffff80891660608501528781166080850152861660a090930192909252600a8054600181018255915282518051939450849360039092027fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a801926118ec9284929091019061345f565b5060208281015160018301556040808401516002909301805460608087015160808089015160a0998a01516fffffffffffffffffffffffffffffffff199095166001600160801b039099169890981763ffffffff60801b1916600160801b63ffffffff938416021763ffffffff60a01b1916600160a01b988316989098029790971763ffffffff60c01b1916600160c01b9382169390930292909217909255600c5483519485018c90528a8216938501939093528881169184019190915286169282019290925291820181905260c080835282018890527f03a96a3a809ae0740a794cb4d254030e999b01bb9985f4b0b5f5e524dc8e0667918991899189918991899189918060e08101898980828437600083820152604051601f909101601f19169092018290039a509098505050505050505050a150505050505050565b611a33611c58565b6008546001600160a01b03908116911614611a83576040805162461bcd60e51b81526020600482018190526024820152600080516020613564833981519152604482015290519081900360640190fd5b600f54610100900460ff16611acb576040805162461bcd60e51b81526020600482015260096024820152684c50543a452d30303360b81b604482015290519081900360640190fd5b600f805482151560ff19909116811790915560408051918252517fa9bfed3d98385b3777389e321dbde773cf7d335fa604fefbae3dca93564f55869181900360200190a150565b600a54600b5460009111611b2857506000610c6b565b50600b5490565b6001600160a01b0380831660009081526004602090815260408083209385168352929052205460ff165b92915050565b611b67611c58565b6008546001600160a01b03908116911614611bb7576040805162461bcd60e51b81526020600482018190526024820152600080516020613564833981519152604482015290519081900360640190fd5b6001600160a01b038116611bfc5760405162461bcd60e51b81526004018080602001828103825260268152602001806134e36026913960400191505060405180910390fd5b6008546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b600082820183811015611cb6576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000611cb683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612bd2565b60006001600160a01b038216611d4b576040805162461bcd60e51b815260206004820152600c60248201526b4552433732313a452d34303360a01b604482015290519081900360640190fd5b600754611d59906001611c5c565b6007819055611d6781611f93565b15611da8576040805162461bcd60e51b815260206004820152600c60248201526b4552433732313a452d34303760a01b604482015290519081900360640190fd5b600081815260016020818152604080842080546001600160a01b0319166001600160a01b0389169081179091558452600290915290912054611de991611c5c565b6001600160a01b0384166000818152600260205260408082209390935591518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a492915050565b6000600b8190555b600a54811015611f8157611e5061342a565b600a8281548110611e5d57fe5b600091825260209182902060408051600393909302909101805460026001821615610100026000190190911604601f8101859004909402830160e090810190925260c0830184815292939092849290918491840182828015611f005780601f10611ed557610100808354040283529160200191611f00565b820191906000526020600020905b815481529060010190602001808311611ee357829003601f168201915b5050509183525050600182015460208201526002909101546001600160801b0380821660408085019190915263ffffffff600160801b840481166060860152600160a01b840481166080860152600160c01b90930490921660a090930192909252820151600e549293501611611f785760018201600b555b50600101611e3e565b50600f805461ff001916610100179055565b6000908152600160205260409020546001600160a01b0316151590565b600081815260036020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611fe5826111bb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600a54600b5410612062576040805162461bcd60e51b8152602060048201526009602482015268098a0a8748a5a6860760bb1b604482015290519081900360640190fd5b600d5415806120735750600d548111155b6120b0576040805162461bcd60e51b81526020600482015260096024820152684c50543a452d34323960b81b604482015290519081900360640190fd5b6120b861342a565b600a600b54815481106120c757fe5b600091825260209182902060408051600393909302909101805460026001821615610100026000190190911604601f8101859004909402830160e090810190925260c083018481529293909284929091849184018282801561216a5780601f1061213f5761010080835404028352916020019161216a565b820191906000526020600020905b81548152906001019060200180831161214d57829003601f168201915b5050509183525050600182015460208201526002909101546001600160801b038116604083015263ffffffff600160801b820481166060840152600160a01b820481166080840152600160c01b909104811660a0909201919091526007549192506000916121da918590611c5c16565b905081604001516001600160801b031681111561221757612214610b0983604001516001600160801b031683611cbd90919063ffffffff16565b92505b60208201516000906122299085612c69565b90508034101561226c576040805162461bcd60e51b81526020600482015260096024820152681314150e914b4d0c4d60ba1b604482015290519081900360640190fd5b612286858560405180602001604052806000815250612cc2565b82604001516001600160801b031682106122ac57600b546122a8906001611c5c565b600b555b6122b581612cdd565b5050505050565b6001600160a01b038316612303576040805162461bcd60e51b81526020600482015260096024820152684248503a452d34303360b81b604482015290519081900360640190fd5b80826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561235157600080fd5b505afa158015612365573d6000803e3d6000fd5b505050506040513d602081101561237b57600080fd5b505110610bd2576123966001600160a01b0383168483612d0c565b816001600160a01b0316836001600160a01b03167f6c9d637297625e945b296ff73a71fcfbd0a9e062652b6491a921c4c60194176b836040518082815260200191505060405180910390a3505050565b60006123f182611f93565b612431576040805162461bcd60e51b815260206004820152600c60248201526b4552433732313a452d34303560a01b604482015290519081900360640190fd5b600061243c836111bb565b9050806001600160a01b0316846001600160a01b031614806124775750836001600160a01b031661246c84610c6e565b6001600160a01b0316145b8061248757506124878185611b2f565b949350505050565b826001600160a01b03166124a2826111bb565b6001600160a01b0316146124ec576040805162461bcd60e51b815260206004820152600c60248201526b22a9219b99189d229698981960a11b604482015290519081900360640190fd5b6001600160a01b038216612536576040805162461bcd60e51b815260206004820152600c60248201526b4552433732313a452d34303360a01b604482015290519081900360640190fd5b612541600082611fb0565b600081815260016020818152604080842080546001600160a01b0319166001600160a01b03888116919091179091558716845260029091529091205461258691611cbd565b6001600160a01b0380851660009081526002602052604080822093909355908416815220546125b6906001611c5c565b6001600160a01b03808416600081815260026020526040808220949094559251849391928716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b03831661264c576040805162461bcd60e51b81526020600482015260096024820152684248503a452d34303360b81b604482015290519081900360640190fd5b306001600160a01b0316826001600160a01b0316636352211e836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561269a57600080fd5b505afa1580156126ae573d6000803e3d6000fd5b505050506040513d60208110156126c457600080fd5b50516001600160a01b03161415610bd257604080516323b872dd60e01b81523060048201526001600160a01b038581166024830152604482018490529151918416916323b872dd9160648082019260009290919082900301818387803b15801561272d57600080fd5b505af1158015612741573d6000803e3d6000fd5b5050505080826001600160a01b0316846001600160a01b03167ffefe036cac4ee3a4aca074a81cbcc4376e1484693289078dbec149c890101d5b60405160405180910390a4505050565b61279361342a565b600a5460005b818110156128da576127a961342a565b600a82815481106127b657fe5b600091825260209182902060408051600393909302909101805460026001821615610100026000190190911604601f8101859004909402830160e090810190925260c08301848152929390928492909184918401828280156128595780601f1061282e57610100808354040283529160200191612859565b820191906000526020600020905b81548152906001019060200180831161283c57829003601f168201915b5050509183525050600182015460208201526002909101546001600160801b0380821660408085019190915263ffffffff600160801b840481166060860152600160a01b840481166080860152600160c01b90930490921660a0909301929092528201519192501685116128d157925061098b915050565b50600101612799565b5050919050565b6001600160a01b038216612928576040805162461bcd60e51b81526020600482015260096024820152684248503a452d34303360b81b604482015290519081900360640190fd5b80471061106e576129426001600160a01b03831682612d5e565b6040805182815290516001600160a01b038416917eddb683bb45cd5d0ad8a200c6fae7152b1c236ee90a4a37db692407f5cc38bd919081900360200190a25050565b600a54600b54600091116129cb576040805162461bcd60e51b8152602060048201526009602482015268098a0a8748a5a6860760bb1b604482015290519081900360640190fd5b6129d361342a565b600a600b54815481106129e257fe5b600091825260209182902060408051600393909302909101805460026001821615610100026000190190911604601f8101859004909402830160e090810190925260c0830184815292939092849290918491840182828015612a855780601f10612a5a57610100808354040283529160200191612a85565b820191906000526020600020905b815481529060010190602001808311612a6857829003601f168201915b505050918352505060018201546020808301919091526002909201546001600160801b038116604083015263ffffffff600160801b820481166060840152600160a01b820481166080840152600160c01b9091041660a090910152810151909150341015612b26576040805162461bcd60e51b81526020600482015260096024820152681314150e914b4d0c4d60ba1b604482015290519081900360640190fd5b612b3f8360405180602001604052806000815250612e43565b915080604001516001600160801b0316821415612b6857600b54612b64906001611c5c565b600b555b612b758160200151612cdd565b50919050565b612b8684848461248f565b612b9284848484612e9e565b611747576040805162461bcd60e51b815260206004820152600c60248201526b22a9219b99189d22969a181960a11b604482015290519081900360640190fd5b60008184841115612c615760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612c26578181015183820152602001612c0e565b50505050905090810190601f168015612c535780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082612c7857506000611b59565b82820282848281612c8557fe5b0414611cb65760405162461bcd60e51b81526004018080602001828103825260218152602001806135436021913960400191505060405180910390fd5b6000612cce848461301a565b9050612b926000858385612e9e565b6000612ce93483611cbd565b9050801561106e5761106e81612cfd611c58565b6001600160a01b031690612d5e565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610bd290849061314b565b80471015612db3576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114612dfe576040519150601f19603f3d011682016040523d82523d6000602084013e612e03565b606091505b5050905080610bd25760405162461bcd60e51b815260040180806020018281038252603a815260200180613509603a913960400191505060405180910390fd5b600080612e4f84611cff565b9050612e5e6000858386612e9e565b611cb6576040805162461bcd60e51b815260206004820152600c60248201526b22a9219b99189d22969a181960a11b604482015290519081900360640190fd5b6000612eb2846001600160a01b03166131fc565b612ebe57506001612487565b6060612fe0630a85bd0160e11b612ed3611c58565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015612f3a578181015183820152602001612f22565b50505050905090810190601f168015612f675780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518060400160405280600c81526020016b22a9219b99189d22969a181960a11b815250876001600160a01b03166132359092919063ffffffff16565b90506000818060200190516020811015612ff957600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60006001600160a01b038316613066576040805162461bcd60e51b815260206004820152600c60248201526b4552433732313a452d34303360a01b604482015290519081900360640190fd5b600754600090613077906001611c5c565b905060015b8381116130f6576007546000906130939083611c5c565b60008181526001602052604080822080546001600160a01b0319166001600160a01b038b16908117909155905192935083929091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45060010161307c565b506007546131049084611c5c565b6007556001600160a01b03841660009081526002602052604090205461312a9084611c5c565b6001600160a01b038516600090815260026020526040902055905092915050565b60606131a0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166132359092919063ffffffff16565b805190915015610bd2578080602001905160208110156131bf57600080fd5b5051610bd25760405162461bcd60e51b815260040180806020018281038252602a815260200180613584602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590612487575050151592915050565b60606124878484600085606061324a856131fc565b61329b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106132da5780518252601f1990920191602091820191016132bb565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461333c576040519150601f19603f3d011682016040523d82523d6000602084013e613341565b606091505b509150915081156133555791506124879050565b8051156133655780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315612c26578181015183820152602001612c0e565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106133ed5782800160ff1982351617855561341a565b8280016001018555821561341a579182015b8281111561341a5782358255916020019190600101906133ff565b506134269291506134cd565b5090565b6040805160c081018252606080825260006020830181905292820183905281018290526080810182905260a081019190915290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106134a057805160ff191683800117855561341a565b8280016001018555821561341a579182015b8281111561341a5782518255916020019190600101906134b2565b5b8082111561342657600081556001016134ce56fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122023629c4d9c51ed50b52b6db7b4f1d8a00deab641c87310a6e4549186a9f1e35364736f6c634300060c0033

Deployed Bytecode

0x6080604052600436106101e35760003560e01c8063681ce98a11610102578063b88d4fde11610095578063db9f60ff11610064578063db9f60ff146108be578063e6089023146108ea578063e985e9c5146108ff578063f2fde38b1461093a576101e3565b8063b88d4fde14610711578063c87b56dd146107e4578063d5abeb011461080e578063da47bb2614610823576101e3565b806395d89b41116100d157806395d89b41146105f5578063a22cb4651461060a578063adf8252d14610645578063b0fde8cf1461066f576101e3565b8063681ce98a1461058357806370a0823114610598578063715018a6146105cb5780638da5cb5b146105e0576101e3565b806323b872dd1161017a578063522f681511610149578063522f6815146104ee5780635fc194ed14610527578063616cdb1e1461052f5780636352211e14610559576101e3565b806323b872dd146103fb5780634025feb21461043e57806342842e0e146104815780634aa66b28146104c4576101e3565b8063095ea7b3116101b6578063095ea7b31461033b5780630afd902b146103745780631593dee11461039157806318160ddd146103d4576101e3565b806301ffc9a7146101e85780630512487a1461023057806306fdde031461026b578063081812fc146102f5575b600080fd5b3480156101f457600080fd5b5061021c6004803603602081101561020b57600080fd5b50356001600160e01b03191661096d565b604080519115158252519081900360200190f35b34801561023c57600080fd5b506102696004803603604081101561025357600080fd5b506001600160a01b038135169060200135610990565b005b34801561027757600080fd5b50610280610bd7565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102ba5781810151838201526020016102a2565b50505050905090810190601f1680156102e75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561030157600080fd5b5061031f6004803603602081101561031857600080fd5b5035610c6e565b604080516001600160a01b039092168252519081900360200190f35b34801561034757600080fd5b506102696004803603604081101561035e57600080fd5b506001600160a01b038135169060200135610cd5565b6102696004803603602081101561038a57600080fd5b5035610db5565b34801561039d57600080fd5b50610269600480360360608110156103b457600080fd5b506001600160a01b03813581169160208101359091169060400135610e68565b3480156103e057600080fd5b506103e9610ecb565b60408051918252519081900360200190f35b34801561040757600080fd5b506102696004803603606081101561041e57600080fd5b506001600160a01b03813581169160208101359091169060400135610ed1565b34801561044a57600080fd5b506102696004803603606081101561046157600080fd5b506001600160a01b03813581169160208101359091169060400135610f2d565b34801561048d57600080fd5b50610269600480360360608110156104a457600080fd5b506001600160a01b03813581169160208101359091169060400135610f90565b3480156104d057600080fd5b506103e9600480360360208110156104e757600080fd5b5035610fab565b3480156104fa57600080fd5b506102696004803603604081101561051157600080fd5b506001600160a01b03813516906020013561100c565b6103e9611072565b34801561053b57600080fd5b506102696004803603602081101561055257600080fd5b5035611128565b34801561056557600080fd5b5061031f6004803603602081101561057c57600080fd5b50356111bb565b34801561058f57600080fd5b506103e96111d6565b3480156105a457600080fd5b506103e9600480360360208110156105bb57600080fd5b50356001600160a01b0316611212565b3480156105d757600080fd5b5061026961127a565b3480156105ec57600080fd5b5061031f61131c565b34801561060157600080fd5b5061028061132b565b34801561061657600080fd5b506102696004803603604081101561062d57600080fd5b506001600160a01b038135169060200135151561138c565b34801561065157600080fd5b506103e96004803603602081101561066857600080fd5b5035611480565b34801561067b57600080fd5b50610269600480360360c081101561069257600080fd5b813591908101906040810160208201356401000000008111156106b457600080fd5b8201836020820111156106c657600080fd5b803590602001918460018302840111640100000000831117156106e857600080fd5b919350915080359063ffffffff60208201358116916040810135821691606090910135166114e1565b34801561071d57600080fd5b506102696004803603608081101561073457600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561076f57600080fd5b82018360208201111561078157600080fd5b803590602001918460018302840111640100000000831117156107a357600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506116ea945050505050565b3480156107f057600080fd5b506102806004803603602081101561080757600080fd5b503561174d565b34801561081a57600080fd5b506103e96117a5565b34801561082f57600080fd5b50610269600480360360a081101561084657600080fd5b81019060208101813564010000000081111561086157600080fd5b82018360208201111561087357600080fd5b8035906020019184600183028401116401000000008311171561089557600080fd5b919350915080359063ffffffff60208201358116916040810135821691606090910135166117ab565b3480156108ca57600080fd5b50610269600480360360208110156108e157600080fd5b50351515611a2b565b3480156108f657600080fd5b506103e9611b12565b34801561090b57600080fd5b5061021c6004803603604081101561092257600080fd5b506001600160a01b0381358116916020013516611b2f565b34801561094657600080fd5b506102696004803603602081101561095d57600080fd5b50356001600160a01b0316611b5f565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b610998611c58565b6008546001600160a01b039081169116146109e8576040805162461bcd60e51b81526020600482018190526024820152600080516020613564833981519152604482015290519081900360640190fd5b600f54610100900460ff1615610a31576040805162461bcd60e51b81526020600482015260096024820152681314150e914b4c0c0d60ba1b604482015290519081900360640190fd5b6000826001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610a6c57600080fd5b505afa158015610a80573d6000803e3d6000fd5b505050506040513d6020811015610a9657600080fd5b505190508015610bc057600e548111610ae2576040805162461bcd60e51b81526020600482015260096024820152681314150e914b4c0c0d60ba1b604482015290519081900360640190fd5b600e54600090610af29084611c5c565b905081811115610b1357610b10610b098284611cbd565b8490611cbd565b92505b60015b838111610bb757600e54600090610b2d9083611c5c565b90506000866001600160a01b0316636352211e836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610b7557600080fd5b505afa158015610b89573d6000803e3d6000fd5b505050506040513d6020811015610b9f57600080fd5b50519050610bac81611cff565b505050600101610b16565b5050600754600e555b600e54811415610bd257610bd2611e36565b505050565b60058054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610c635780601f10610c3857610100808354040283529160200191610c63565b820191906000526020600020905b815481529060010190602001808311610c4657829003601f168201915b505050505090505b90565b6000610c7982611f93565b610cb9576040805162461bcd60e51b815260206004820152600c60248201526b4552433732313a452d34303560a01b604482015290519081900360640190fd5b506000908152600360205260409020546001600160a01b031690565b6000610ce0826111bb565b9050806001600160a01b0316836001600160a01b03161415610d38576040805162461bcd60e51b815260206004820152600c60248201526b4552433732313a452d31313160a01b604482015290519081900360640190fd5b806001600160a01b0316610d4a611c58565b6001600160a01b03161480610d6b5750610d6b81610d66611c58565b611b2f565b610dab576040805162461bcd60e51b815260206004820152600c60248201526b4552433732313a452d31303560a01b604482015290519081900360640190fd5b610bd28383611fb0565b60026009541415610e0d576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600955600f5460ff1615610e56576040805162461bcd60e51b81526020600482015260096024820152684c50543a452d31303160b81b604482015290519081900360640190fd5b610e60338261201e565b506001600955565b610e70611c58565b6008546001600160a01b03908116911614610ec0576040805162461bcd60e51b81526020600482018190526024820152600080516020613564833981519152604482015290519081900360640190fd5b610bd28383836122bc565b60075490565b610ee2610edc611c58565b826123e6565b610f22576040805162461bcd60e51b815260206004820152600c60248201526b4552433732313a452d31303560a01b604482015290519081900360640190fd5b610bd283838361248f565b610f35611c58565b6008546001600160a01b03908116911614610f85576040805162461bcd60e51b81526020600482018190526024820152600080516020613564833981519152604482015290519081900360640190fd5b610bd2838383612605565b610bd2838383604051806020016040528060008152506116ea565b6000610fb682611f93565b610ff3576040805162461bcd60e51b81526020600482015260096024820152684c50543a452d34303560b81b604482015290519081900360640190fd5b610ffc8261278b565b60a0015163ffffffff1692915050565b611014611c58565b6008546001600160a01b03908116911614611064576040805162461bcd60e51b81526020600482018190526024820152600080516020613564833981519152604482015290519081900360640190fd5b61106e82826128e1565b5050565b6000600260095414156110cc576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600955600f5460ff1615611115576040805162461bcd60e51b81526020600482015260096024820152684c50543a452d31303160b81b604482015290519081900360640190fd5b61111e33612984565b6001600955919050565b611130611c58565b6008546001600160a01b03908116911614611180576040805162461bcd60e51b81526020600482018190526024820152600080516020613564833981519152604482015290519081900360640190fd5b600d8190556040805182815290517f409ba051a4c57ed282ca3d937444126381926068149b2ceb9dcff792655a9b039181900360200190a150565b6000908152600160205260409020546001600160a01b031690565b600a54600b54600091116111ec57506000610c6b565b600a600b54815481106111fb57fe5b906000526020600020906003020160010154905090565b60006001600160a01b03821661125e576040805162461bcd60e51b815260206004820152600c60248201526b4552433732313a452d34303360a01b604482015290519081900360640190fd5b506001600160a01b031660009081526002602052604090205490565b611282611c58565b6008546001600160a01b039081169116146112d2576040805162461bcd60e51b81526020600482018190526024820152600080516020613564833981519152604482015290519081900360640190fd5b6008546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600880546001600160a01b0319169055565b6008546001600160a01b031690565b60068054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610c635780601f10610c3857610100808354040283529160200191610c63565b611394611c58565b6001600160a01b0316826001600160a01b031614156113e9576040805162461bcd60e51b815260206004820152600c60248201526b4552433732313a452d31313160a01b604482015290519081900360640190fd5b80600460006113f6611c58565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561143a611c58565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b600061148b82611f93565b6114c8576040805162461bcd60e51b81526020600482015260096024820152684c50543a452d34303560b81b604482015290519081900360640190fd5b6114d18261278b565b6080015163ffffffff1692915050565b6114e9611c58565b6008546001600160a01b03908116911614611539576040805162461bcd60e51b81526020600482018190526024820152600080516020613564833981519152604482015290519081900360640190fd5b8585600a898154811061154857fe5b6000918252602090912061156293600390920201916133ac565b5083600a888154811061157157fe5b90600052602060002090600302016001018190555082600a888154811061159457fe5b906000526020600020906003020160020160106101000a81548163ffffffff021916908363ffffffff16021790555081600a88815481106115d157fe5b906000526020600020906003020160020160146101000a81548163ffffffff021916908363ffffffff16021790555080600a888154811061160e57fe5b906000526020600020906003020160020160186101000a81548163ffffffff021916908363ffffffff1602179055507fc29eb52b178d59612a9ec3dbfed2e3054ea12f735bff5d06a799a4b06cd47c5287878787878787600c5460405180898152602001806020018781526020018663ffffffff1681526020018563ffffffff1681526020018463ffffffff1681526020018381526020018281038252898982818152602001925080828437600083820152604051601f909101601f19169092018290039b50909950505050505050505050a150505050505050565b6116fb6116f5611c58565b836123e6565b61173b576040805162461bcd60e51b815260206004820152600c60248201526b4552433732313a452d31303560a01b604482015290519081900360640190fd5b61174784848484612b7b565b50505050565b606061175882611f93565b611795576040805162461bcd60e51b81526020600482015260096024820152684c50543a452d34303560b81b604482015290519081900360640190fd5b61179e8261278b565b5192915050565b600c5490565b6117b3611c58565b6008546001600160a01b03908116911614611803576040805162461bcd60e51b81526020600482018190526024820152600080516020613564833981519152604482015290519081900360640190fd5b600c546118199063ffffffff80861690611c5c16565b600c5561182461342a565b6040518060c0016040528088888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509385525050506020808301899052600c546001600160801b0316604084015263ffffffff80891660608501528781166080850152861660a090930192909252600a8054600181018255915282518051939450849360039092027fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a801926118ec9284929091019061345f565b5060208281015160018301556040808401516002909301805460608087015160808089015160a0998a01516fffffffffffffffffffffffffffffffff199095166001600160801b039099169890981763ffffffff60801b1916600160801b63ffffffff938416021763ffffffff60a01b1916600160a01b988316989098029790971763ffffffff60c01b1916600160c01b9382169390930292909217909255600c5483519485018c90528a8216938501939093528881169184019190915286169282019290925291820181905260c080835282018890527f03a96a3a809ae0740a794cb4d254030e999b01bb9985f4b0b5f5e524dc8e0667918991899189918991899189918060e08101898980828437600083820152604051601f909101601f19169092018290039a509098505050505050505050a150505050505050565b611a33611c58565b6008546001600160a01b03908116911614611a83576040805162461bcd60e51b81526020600482018190526024820152600080516020613564833981519152604482015290519081900360640190fd5b600f54610100900460ff16611acb576040805162461bcd60e51b81526020600482015260096024820152684c50543a452d30303360b81b604482015290519081900360640190fd5b600f805482151560ff19909116811790915560408051918252517fa9bfed3d98385b3777389e321dbde773cf7d335fa604fefbae3dca93564f55869181900360200190a150565b600a54600b5460009111611b2857506000610c6b565b50600b5490565b6001600160a01b0380831660009081526004602090815260408083209385168352929052205460ff165b92915050565b611b67611c58565b6008546001600160a01b03908116911614611bb7576040805162461bcd60e51b81526020600482018190526024820152600080516020613564833981519152604482015290519081900360640190fd5b6001600160a01b038116611bfc5760405162461bcd60e51b81526004018080602001828103825260268152602001806134e36026913960400191505060405180910390fd5b6008546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b600082820183811015611cb6576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000611cb683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612bd2565b60006001600160a01b038216611d4b576040805162461bcd60e51b815260206004820152600c60248201526b4552433732313a452d34303360a01b604482015290519081900360640190fd5b600754611d59906001611c5c565b6007819055611d6781611f93565b15611da8576040805162461bcd60e51b815260206004820152600c60248201526b4552433732313a452d34303760a01b604482015290519081900360640190fd5b600081815260016020818152604080842080546001600160a01b0319166001600160a01b0389169081179091558452600290915290912054611de991611c5c565b6001600160a01b0384166000818152600260205260408082209390935591518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a492915050565b6000600b8190555b600a54811015611f8157611e5061342a565b600a8281548110611e5d57fe5b600091825260209182902060408051600393909302909101805460026001821615610100026000190190911604601f8101859004909402830160e090810190925260c0830184815292939092849290918491840182828015611f005780601f10611ed557610100808354040283529160200191611f00565b820191906000526020600020905b815481529060010190602001808311611ee357829003601f168201915b5050509183525050600182015460208201526002909101546001600160801b0380821660408085019190915263ffffffff600160801b840481166060860152600160a01b840481166080860152600160c01b90930490921660a090930192909252820151600e549293501611611f785760018201600b555b50600101611e3e565b50600f805461ff001916610100179055565b6000908152600160205260409020546001600160a01b0316151590565b600081815260036020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611fe5826111bb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600a54600b5410612062576040805162461bcd60e51b8152602060048201526009602482015268098a0a8748a5a6860760bb1b604482015290519081900360640190fd5b600d5415806120735750600d548111155b6120b0576040805162461bcd60e51b81526020600482015260096024820152684c50543a452d34323960b81b604482015290519081900360640190fd5b6120b861342a565b600a600b54815481106120c757fe5b600091825260209182902060408051600393909302909101805460026001821615610100026000190190911604601f8101859004909402830160e090810190925260c083018481529293909284929091849184018282801561216a5780601f1061213f5761010080835404028352916020019161216a565b820191906000526020600020905b81548152906001019060200180831161214d57829003601f168201915b5050509183525050600182015460208201526002909101546001600160801b038116604083015263ffffffff600160801b820481166060840152600160a01b820481166080840152600160c01b909104811660a0909201919091526007549192506000916121da918590611c5c16565b905081604001516001600160801b031681111561221757612214610b0983604001516001600160801b031683611cbd90919063ffffffff16565b92505b60208201516000906122299085612c69565b90508034101561226c576040805162461bcd60e51b81526020600482015260096024820152681314150e914b4d0c4d60ba1b604482015290519081900360640190fd5b612286858560405180602001604052806000815250612cc2565b82604001516001600160801b031682106122ac57600b546122a8906001611c5c565b600b555b6122b581612cdd565b5050505050565b6001600160a01b038316612303576040805162461bcd60e51b81526020600482015260096024820152684248503a452d34303360b81b604482015290519081900360640190fd5b80826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561235157600080fd5b505afa158015612365573d6000803e3d6000fd5b505050506040513d602081101561237b57600080fd5b505110610bd2576123966001600160a01b0383168483612d0c565b816001600160a01b0316836001600160a01b03167f6c9d637297625e945b296ff73a71fcfbd0a9e062652b6491a921c4c60194176b836040518082815260200191505060405180910390a3505050565b60006123f182611f93565b612431576040805162461bcd60e51b815260206004820152600c60248201526b4552433732313a452d34303560a01b604482015290519081900360640190fd5b600061243c836111bb565b9050806001600160a01b0316846001600160a01b031614806124775750836001600160a01b031661246c84610c6e565b6001600160a01b0316145b8061248757506124878185611b2f565b949350505050565b826001600160a01b03166124a2826111bb565b6001600160a01b0316146124ec576040805162461bcd60e51b815260206004820152600c60248201526b22a9219b99189d229698981960a11b604482015290519081900360640190fd5b6001600160a01b038216612536576040805162461bcd60e51b815260206004820152600c60248201526b4552433732313a452d34303360a01b604482015290519081900360640190fd5b612541600082611fb0565b600081815260016020818152604080842080546001600160a01b0319166001600160a01b03888116919091179091558716845260029091529091205461258691611cbd565b6001600160a01b0380851660009081526002602052604080822093909355908416815220546125b6906001611c5c565b6001600160a01b03808416600081815260026020526040808220949094559251849391928716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b03831661264c576040805162461bcd60e51b81526020600482015260096024820152684248503a452d34303360b81b604482015290519081900360640190fd5b306001600160a01b0316826001600160a01b0316636352211e836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561269a57600080fd5b505afa1580156126ae573d6000803e3d6000fd5b505050506040513d60208110156126c457600080fd5b50516001600160a01b03161415610bd257604080516323b872dd60e01b81523060048201526001600160a01b038581166024830152604482018490529151918416916323b872dd9160648082019260009290919082900301818387803b15801561272d57600080fd5b505af1158015612741573d6000803e3d6000fd5b5050505080826001600160a01b0316846001600160a01b03167ffefe036cac4ee3a4aca074a81cbcc4376e1484693289078dbec149c890101d5b60405160405180910390a4505050565b61279361342a565b600a5460005b818110156128da576127a961342a565b600a82815481106127b657fe5b600091825260209182902060408051600393909302909101805460026001821615610100026000190190911604601f8101859004909402830160e090810190925260c08301848152929390928492909184918401828280156128595780601f1061282e57610100808354040283529160200191612859565b820191906000526020600020905b81548152906001019060200180831161283c57829003601f168201915b5050509183525050600182015460208201526002909101546001600160801b0380821660408085019190915263ffffffff600160801b840481166060860152600160a01b840481166080860152600160c01b90930490921660a0909301929092528201519192501685116128d157925061098b915050565b50600101612799565b5050919050565b6001600160a01b038216612928576040805162461bcd60e51b81526020600482015260096024820152684248503a452d34303360b81b604482015290519081900360640190fd5b80471061106e576129426001600160a01b03831682612d5e565b6040805182815290516001600160a01b038416917eddb683bb45cd5d0ad8a200c6fae7152b1c236ee90a4a37db692407f5cc38bd919081900360200190a25050565b600a54600b54600091116129cb576040805162461bcd60e51b8152602060048201526009602482015268098a0a8748a5a6860760bb1b604482015290519081900360640190fd5b6129d361342a565b600a600b54815481106129e257fe5b600091825260209182902060408051600393909302909101805460026001821615610100026000190190911604601f8101859004909402830160e090810190925260c0830184815292939092849290918491840182828015612a855780601f10612a5a57610100808354040283529160200191612a85565b820191906000526020600020905b815481529060010190602001808311612a6857829003601f168201915b505050918352505060018201546020808301919091526002909201546001600160801b038116604083015263ffffffff600160801b820481166060840152600160a01b820481166080840152600160c01b9091041660a090910152810151909150341015612b26576040805162461bcd60e51b81526020600482015260096024820152681314150e914b4d0c4d60ba1b604482015290519081900360640190fd5b612b3f8360405180602001604052806000815250612e43565b915080604001516001600160801b0316821415612b6857600b54612b64906001611c5c565b600b555b612b758160200151612cdd565b50919050565b612b8684848461248f565b612b9284848484612e9e565b611747576040805162461bcd60e51b815260206004820152600c60248201526b22a9219b99189d22969a181960a11b604482015290519081900360640190fd5b60008184841115612c615760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612c26578181015183820152602001612c0e565b50505050905090810190601f168015612c535780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082612c7857506000611b59565b82820282848281612c8557fe5b0414611cb65760405162461bcd60e51b81526004018080602001828103825260218152602001806135436021913960400191505060405180910390fd5b6000612cce848461301a565b9050612b926000858385612e9e565b6000612ce93483611cbd565b9050801561106e5761106e81612cfd611c58565b6001600160a01b031690612d5e565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610bd290849061314b565b80471015612db3576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114612dfe576040519150601f19603f3d011682016040523d82523d6000602084013e612e03565b606091505b5050905080610bd25760405162461bcd60e51b815260040180806020018281038252603a815260200180613509603a913960400191505060405180910390fd5b600080612e4f84611cff565b9050612e5e6000858386612e9e565b611cb6576040805162461bcd60e51b815260206004820152600c60248201526b22a9219b99189d22969a181960a11b604482015290519081900360640190fd5b6000612eb2846001600160a01b03166131fc565b612ebe57506001612487565b6060612fe0630a85bd0160e11b612ed3611c58565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015612f3a578181015183820152602001612f22565b50505050905090810190601f168015612f675780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b0383818316178352505050506040518060400160405280600c81526020016b22a9219b99189d22969a181960a11b815250876001600160a01b03166132359092919063ffffffff16565b90506000818060200190516020811015612ff957600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60006001600160a01b038316613066576040805162461bcd60e51b815260206004820152600c60248201526b4552433732313a452d34303360a01b604482015290519081900360640190fd5b600754600090613077906001611c5c565b905060015b8381116130f6576007546000906130939083611c5c565b60008181526001602052604080822080546001600160a01b0319166001600160a01b038b16908117909155905192935083929091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45060010161307c565b506007546131049084611c5c565b6007556001600160a01b03841660009081526002602052604090205461312a9084611c5c565b6001600160a01b038516600090815260026020526040902055905092915050565b60606131a0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166132359092919063ffffffff16565b805190915015610bd2578080602001905160208110156131bf57600080fd5b5051610bd25760405162461bcd60e51b815260040180806020018281038252602a815260200180613584602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590612487575050151592915050565b60606124878484600085606061324a856131fc565b61329b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106132da5780518252601f1990920191602091820191016132bb565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461333c576040519150601f19603f3d011682016040523d82523d6000602084013e613341565b606091505b509150915081156133555791506124879050565b8051156133655780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315612c26578181015183820152602001612c0e565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106133ed5782800160ff1982351617855561341a565b8280016001018555821561341a579182015b8281111561341a5782358255916020019190600101906133ff565b506134269291506134cd565b5090565b6040805160c081018252606080825260006020830181905292820183905281018290526080810182905260a081019190915290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106134a057805160ff191683800117855561341a565b8280016001018555821561341a579182015b8281111561341a5782518255916020019190600101906134b2565b5b8082111561342657600081556001016134ce56fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122023629c4d9c51ed50b52b6db7b4f1d8a00deab641c87310a6e4549186a9f1e35364736f6c634300060c0033

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.