Contract 0xb47d3Cd10DB2f035e14163e3D96F2B2F92eB66e2

Contract Overview

Balance:
84.962080963359427408 AVAX

AVAX Value:
$1,439.26 (@ $16.94/AVAX)
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x3b4ec681d1f901c5d7271f5b5ae08ac4fb41aa909c7c5a2a6ee75556ff6be922Claim Rewards167085982022-06-30 9:21:174 days 1 hr ago0x9d46cbbbc3be560c218c3b53518e87420370aefa IN  0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20 AVAX0.0012891455 26.5
0xc9035d8577113ae7256b23cd035758faa84c19b6aceed9531f452bb75e404562Claim Rewards162096842022-06-18 20:23:2115 days 14 hrs ago0x5d7c19659c548a1459a86a380e59cfdf123c9e2a IN  0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20 AVAX0.002245940536 70.834217568
0x9a84c072675a76bdaeb86dc7cceb49f8d60f0f7cd91f8db9ac16aa9e9c7a05b0Claim Rewards159893532022-06-13 19:14:0220 days 16 hrs ago0xf061d370a0fc85dd51b5f6e40e4df850cfec311a IN  0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20 AVAX0.0017422955 26.5
0x9896752bb66b32fd59bdcd62de88741d435652b8f208f63be1802119c62e7b83Claim Rewards158011942022-06-09 11:27:1724 days 23 hrs ago0x2d0432b9c23b482edc7f03a87949f1bfec3b8547 IN  0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20 AVAX0.0032543855 26.5
0xba58d07c248ded4be0dce18e45389e11e21f3feaaba5fb4844c0f1386e71cef0Mint Token157861462022-06-09 3:00:5125 days 8 hrs ago0x86a69e4fa797262e9cb539155adf1ae6681a9766 IN  0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e21.3 AVAX0.0068570605 26.5
0xa8a597c3edff4261063421cb22ae9b1c1ee9496f3fcab10f20039f310a390b2eClaim Rewards154043292022-05-31 5:46:2434 days 5 hrs ago0xf3bb039b9d32d850efd89718413a484fa5807a03 IN  0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20 AVAX0.0019442255 26.5
0x058ac5c9845f110e356c912048436bbf51aff489091ce9f7ee73558a799f3b54Claim Rewards151695212022-05-25 18:56:2639 days 16 hrs ago0x7993b9c64781107dc0fd2c37038cf654f3442713 IN  0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20 AVAX0.001323842098 27.213232025
0x75149476fcee67b15cbdce502833bf7544dadc56890484403a3a8b4dcfd772a1Claim Rewards150858982022-05-23 20:12:1941 days 15 hrs ago0xa5a1757e0a9c3ff9f4adf9583947ce2e22dca0df IN  0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20 AVAX0.0012891455 26.5
0xf1fcd4adfd6f255b495bd809090917f62f6e0b3bedd11280235b6dc32129e88bClaim Rewards150123202022-05-22 3:00:3943 days 8 hrs ago0xed09c46ee0cf5842c8de47921f191e22883eacfa IN  0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20 AVAX0.0065297855 26.5
0x291a0d64c094643d8e0790c19d303b5d42c530f7a2f5ebf577288d11a279f082Batch Migrate147209282022-05-15 8:49:4550 days 2 hrs ago0x1534693a6be5a9b769dd9ab4249ae230ec6f9f2f IN  0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20 AVAX0.0322247155 26.5
0x195920ff46f9968288c8b60264a7b93cc764e2318cb25112c7236611646ecc65Migrate143494682022-05-06 15:05:2358 days 20 hrs ago0x8338b684708b322d1326fb4f77abc72d0c3713ba IN  0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20 AVAX0.040175374363 126.376601479
0x0517c1685372c1aab001f40ca65589e275edcde40ee2387ee0b09f4a97820722Claim Rewards142814672022-05-05 0:05:2460 days 11 hrs ago0x795e21a94f511b4e4b7536c1b3a6c0c807748834 IN  0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20 AVAX0.007449301328 114.381152645
0x078ea3c5d529efeeae7ce1af0b99f9349e30decbf3a9fba596a66fe4dd031869Set Approval For...142694762022-05-04 17:15:4060 days 17 hrs ago0xd59683f07f03d2979d1ffa566b2e093d7922d25a IN  0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20 AVAX0.004293614593 92.792777184
0xeea5edc9867a3fe8f6e45b33dfe8272cbeb09f7c0d89954a81c67c509c8d0408Batch Migrate142377352022-05-03 23:10:4961 days 12 hrs ago0x12565da095b7df9a5c8d4d41bd03bd23d7cf00c3 IN  0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20 AVAX0.08045081229 107.141465646
0xe6577f4154f4cd0275049118f20a7c0749d7954367ae3bf96d050aae6705fcdaBatch Migrate140928512022-04-30 12:28:1964 days 22 hrs ago0xea1752e3c3f7cb2370f9818509a364ec6035f0c3 IN  0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20 AVAX0.025627863351 34.925623006
0xd3be4caf0660ce440be13a846cfa22a3d6617af1bf50405502bb7385277552ceBatch Migrate140928332022-04-30 12:27:4364 days 22 hrs ago0xea1752e3c3f7cb2370f9818509a364ec6035f0c3 IN  0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20 AVAX0.019272088698 35.419601804
0x1a6150088022206a0870ac2cb85d8276aa581890e17165fdf0b44d1a133a0d04Claim Rewards140903152022-04-30 11:01:0665 days 13 mins ago0x6e723f760e9f0bbb0e95c359d4d08b5f90ce845d IN  0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20 AVAX0.002104815741 43.267123184
0x89e5fb9430f06e468183a3d5568d6e8a18ee63dbb7b63db36f46563eea3a3efeMigrate140525902022-04-29 13:26:1765 days 21 hrs ago0x59c7cc170a351603ec5fb2bf2add1bf140b0a250 IN  0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20 AVAX0.014925267368 45.845327757
0x04365a963ff5bc630f2cc72e1dbd41e944a67b71d64398ee6edb946167f4fea5Set Approval For...140414522022-04-29 7:00:4566 days 4 hrs ago0xacc53197069a4699b9df2ed99191763ee2d4f937 IN  0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20 AVAX0.001653947234 35.744791212
0x6f77194c3958c0fab4e939a7d3791574ae5a084e203c514ab8a628a19c7242d2Batch Migrate138636792022-04-25 3:02:2770 days 8 hrs ago0xc77a55abb91e7cdeb810748cb1fbc5de8f36a7b7 IN  0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20 AVAX0.07970085664 68.223775551
0x32d06e06fa8453251c78aa0aa600da27b4c04c91fa1cbd65f731385daca47e24Batch Migrate138636592022-04-25 3:01:4770 days 8 hrs ago0xc77a55abb91e7cdeb810748cb1fbc5de8f36a7b7 IN  0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20 AVAX0.36245273909 65.422273095
0x5b4de315296a8ac517e78fe80b17ad97584dd941845c6d5c3a0d3eeb403b7abcClaim Rewards138210252022-04-24 3:09:4071 days 8 hrs ago0x8d94c331a24e89051417420ea30a054f7ab612f5 IN  0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20 AVAX0.002776270838 57.069723495
0x2b3f25929ec1306a8ee902866264878f1ea3c204d7f25221a7097bd291dbc9c0Safe Transfer Fr...137520852022-04-22 12:35:2472 days 22 hrs ago0x031cc631ff410c17e6023140902c331eacbe45ad IN  0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20 AVAX0.020000836723 80.182313817
0x8dbf8938ce4abda7db3d7790234ae6774a6393609db62ed1b83fdaabde2143e3Safe Transfer Fr...136436042022-04-19 23:50:1875 days 11 hrs ago0xf581654455f7515b24bb9d9374977f3213a39ab3 IN  0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20 AVAX0.020771514225 83.265243708
0x445d3bab038db980d97f025c2b089d155e7594b7aa127adf47fb70a3f33f39fdBatch Migrate136413612022-04-19 22:35:1475 days 12 hrs ago0x9c54ec74731e3095fa8579c75f7cd15236abe1df IN  0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20 AVAX0.288081351079 85.801290611
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x3b4ec681d1f901c5d7271f5b5ae08ac4fb41aa909c7c5a2a6ee75556ff6be922167085982022-06-30 9:21:174 days 1 hr ago 0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20x9d46cbbbc3be560c218c3b53518e87420370aefa0.092293766945783154 AVAX
0x9a84c072675a76bdaeb86dc7cceb49f8d60f0f7cd91f8db9ac16aa9e9c7a05b0159893532022-06-13 19:14:0220 days 16 hrs ago 0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20xf061d370a0fc85dd51b5f6e40e4df850cfec311a0.149248198319026523 AVAX
0x9896752bb66b32fd59bdcd62de88741d435652b8f208f63be1802119c62e7b83158011942022-06-09 11:27:1724 days 23 hrs ago 0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20x2d0432b9c23b482edc7f03a87949f1bfec3b85470.11767817607485589 AVAX
0xba58d07c248ded4be0dce18e45389e11e21f3feaaba5fb4844c0f1386e71cef0157861462022-06-09 3:00:5125 days 8 hrs ago 0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20x55b55755e52888b4d7116343530ff31450241fa30.364 AVAX
0xa8a597c3edff4261063421cb22ae9b1c1ee9496f3fcab10f20039f310a390b2e154043292022-05-31 5:46:2434 days 5 hrs ago 0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20xf3bb039b9d32d850efd89718413a484fa5807a030.118077861427580428 AVAX
0x058ac5c9845f110e356c912048436bbf51aff489091ce9f7ee73558a799f3b54151695212022-05-25 18:56:2639 days 16 hrs ago 0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20x7993b9c64781107dc0fd2c37038cf654f34427130.007180725890135734 AVAX
0x75149476fcee67b15cbdce502833bf7544dadc56890484403a3a8b4dcfd772a1150858982022-05-23 20:12:1941 days 15 hrs ago 0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20xa5a1757e0a9c3ff9f4adf9583947ce2e22dca0df0.086175722759325152 AVAX
0xf1fcd4adfd6f255b495bd809090917f62f6e0b3bedd11280235b6dc32129e88b150123202022-05-22 3:00:3943 days 8 hrs ago 0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20xed09c46ee0cf5842c8de47921f191e22883eacfa0.170902536060462575 AVAX
0x0517c1685372c1aab001f40ca65589e275edcde40ee2387ee0b09f4a97820722142814672022-05-05 0:05:2460 days 11 hrs ago 0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20x795e21a94f511b4e4b7536c1b3a6c0c8077488340.023611194159495367 AVAX
0x1a6150088022206a0870ac2cb85d8276aa581890e17165fdf0b44d1a133a0d04140903152022-04-30 11:01:0665 days 13 mins ago 0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20x6e723f760e9f0bbb0e95c359d4d08b5f90ce845d0.023278904994387135 AVAX
0x5b4de315296a8ac517e78fe80b17ad97584dd941845c6d5c3a0d3eeb403b7abc138210252022-04-24 3:09:4071 days 8 hrs ago 0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20x8d94c331a24e89051417420ea30a054f7ab612f50.037557233672539717 AVAX
0x0da1a57472fc0cd3c55985c0caa39b0de46474228a1c0dd4dc9d2999c79fe484134085152022-04-14 12:36:1280 days 22 hrs ago 0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20xc8e1f4ac50d7d41ce3daa47dd8ae5bd884b4e30f0.039865238540425021 AVAX
0xe49140771dac5a79a8c38d57a639a859b89269bac419ef6a5270bb1c8dd91d8c133020542022-04-12 1:05:1783 days 10 hrs ago 0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20xd970a8f57ece3c1a645d34b7e3e3cbe77008919f10.741084633871977581 AVAX
0xe75ee8fffc928e993877d968c51461a61f33d930c641a9dd30b48d012960d89a132823892022-04-11 14:03:0883 days 21 hrs ago 0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20x1fafa4b3681b3641149063cd422027fe123ab9a40.018446629207056144 AVAX
0x8a9501064d0344b7755ccece96d2feffcb58bd91d6283ec9adf15c4f9c1582e5131975772022-04-09 14:20:2085 days 20 hrs ago 0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20x08380a9cd3a5034036b44c18ab40fce3ad1c13ba0.011084720191845845 AVAX
0x882ed471aae99ec03ef7a421dcb7a5428c5d80e96ba6d9d008305d86b827ea11130889322022-04-07 1:16:0088 days 9 hrs ago 0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20xfa405ea4b58f10115e236dce30120621fb9c9d4b0.297860311011141732 AVAX
0x1330bc1262f1a88900955b8c1b20ed12ebfbea9467f5eba2d0f044c6147bdd98130465782022-04-06 1:29:4689 days 9 hrs ago 0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20xdc6a06a689a0dcf8c3b49b65b209271914b54e5b0.04485198057445829 AVAX
0xcb1ba284895bb099444726ab2a71a23e3e06171692fd9fd9f8960e3fa0a3fa84130192012022-04-05 9:32:2190 days 1 hr ago 0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20xacc53197069a4699b9df2ed99191763ee2d4f9370.009272512801003818 AVAX
0xfe3462d5057b77d92a67a12ccebdbfc0d84b9f6ee7b607729ce8350d8125029f129369872022-04-03 10:11:3492 days 1 hr ago 0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20x764be127a621500726c32cf5bbc4e532eae39b6e0.115281618918126384 AVAX
0x735087c854e50e37ec3d1a3be7d4a420937ae9a32a67c52e7b23599ca06f2d0b127655962022-03-30 9:25:5996 days 1 hr ago 0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20x90a71c12271047cdff20cd85e73592c4ed82528d0.016663235587964211 AVAX
0x94c57c9ece26328885f31abdcd452de7714ee110c84515ba14f9b21abfbf7bf1127650632022-03-30 9:08:0196 days 2 hrs ago 0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20xc9b47e745b7e4c47359d2a285fe0b9cc53150cfa0.087331993825880874 AVAX
0xda195daeb19b3e006baacdaa1859da51ab993cebbaa1939a1b7f007b399ddf4e126953302022-03-28 17:48:0497 days 17 hrs ago 0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20x8fd7d6b629eb96d840e0b3b242b97b5a91c3ee7f0.048968116035955992 AVAX
0x5f47d76ee363ff03cbb1214174a0a331857819741f16b9da4ee5b825228984ed126946392022-03-28 17:24:4897 days 17 hrs ago 0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20xc228ea5cea00a8b336e80c4bbe357084a1cc827e0.269147758671603226 AVAX
0x2f697c80bcfe1887acb412c1147f2462ae78131e9bf87d071abc2cf34f4c3358126557092022-03-27 19:28:4398 days 15 hrs ago 0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20x862ae851aeccde52bb78c57afbfe228c7adf29a00.164544574547699392 AVAX
0x0ad51e875ce512244762cfab2466ccf61994aebcc6fba7aa14c4f92a2e45faeb125554612022-03-25 10:50:05101 days 24 mins ago 0xb47d3cd10db2f035e14163e3d96f2b2f92eb66e20xd44cab13ab8ecc31b38653c851749e07ac1f93390.018168224971964071 AVAX
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NeonMonstersV2

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 19 : NeonMonstersV2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import {ERC721Enumerable} from "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import {ERC721Burnable} from "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import {Address, IERC721, IERC165, ERC721} from "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {Pausable} from "@openzeppelin/contracts/security/Pausable.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import {INeonMonsters} from "./INeonMonsters.sol";

contract NeonMonstersV2 is
    ERC721,
    ERC721Enumerable,
    Pausable,
    Ownable,
    ERC721Burnable,
    ReentrancyGuard,
    INeonMonsters
{
    using SafeERC20 for IERC20;

    INeonMonsters public immutable nemoV1;
    address payable public devAddr;

    uint256 private constant _MAX_SUPPLY = 10000;
    uint256 private constant _SEGMENT_COUNT = 20;

    address public deadAddr;

    uint256 private _nextTokenId;
    uint256 public reflectionBalance;
    uint256 public totalDividend;
    uint256 public basePrice;
    uint256 public stepPrice;

    uint256 public initialized;

    /**
     * @dev 0 = disabled, 1 = enabled.
     */
    uint256 public saleStatus;

    string private _baseURIextended;
    string public provenance;

    mapping(uint256 => uint256) private _lastDividendAt;
    mapping(uint256 => address) private _minters;
    mapping(address => bool) private _isMinter;
    mapping(address => bool) private _blacklist;

    error SaleError();
    error AddressZeroError();
    error UninitializedError();
    error InitializedError();
    error ExceedMaxSupplyError();
    error IncorrectEtherSentError(uint256 value);
    error OwnershipError();
    error InvalidTokenError(uint256 tokenId);
    error AccountBlacklisted(address to, address from, address caller);

    event PriceUpdated(uint256 indexed basePrice, uint256 indexed stepPrice);
    event Initialized();
    event SaleStatusUpdated(uint256 indexed status);

    constructor() ERC721("Neon Monsters v2", "NEMOv2") {
        basePrice = 0.1 ether;
        stepPrice = 0.1 ether;
        _nextTokenId = 5905;
        nemoV1 = INeonMonsters(0x1b72CFde16E5a33a36eAAFbf2eb9CDEd02B09577);
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override(ERC721, ERC721Enumerable) whenNotPaused {
        if (!(initialized > 0)) revert UninitializedError();

        if (_blacklist[from] || _blacklist[to] || _blacklist[_msgSender()])
            revert AccountBlacklisted({
                from: from,
                to: to,
                caller: _msgSender()
            });

        super._beforeTokenTransfer(from, to, tokenId);
    }

    /**
     * @inheritdoc INeonMonsters
     */
    function nextTokenId() external view override returns (uint256) {
        return _nextTokenId;
    }

    /**
     * @dev The formula
     *
     * segment size = max supply / segment count
     * segment no = token id / segment size
     */
    function segmentNoOfToken(uint256 tokenId) public pure returns (uint256) {
        uint256 segmentSize = _MAX_SUPPLY / _SEGMENT_COUNT;
        return tokenId / segmentSize;
    }

    /**
     * @dev The Formula
     *
     * token price = price step + (segment no * base price)
     */
    function tokenPrice(uint256 tokenId) public view returns (uint256) {
        uint256 segmentNo = segmentNoOfToken(tokenId);

        return stepPrice + (segmentNo * basePrice);
    }

    /**
     * @inheritdoc INeonMonsters
     */
    function minterOf(uint256 tokenId)
        external
        view
        override
        returns (address)
    {
        if (!_exists(tokenId)) revert InvalidTokenError({tokenId: tokenId});
        return _minters[tokenId];
    }

    /**
     * @inheritdoc INeonMonsters
     */
    function isMinter(address account) external view override returns (bool) {
        return _isMinter[account];
    }

    function mintToken(address to) external payable nonReentrant {
        if (!(saleStatus > 0)) revert SaleError();
        uint256 mintIndex = _nextTokenId;

        if (!(mintIndex < _MAX_SUPPLY)) revert ExceedMaxSupplyError();

        uint256 amountToPay = tokenPrice(mintIndex);
        if (!(msg.value >= amountToPay))
            revert IncorrectEtherSentError({value: msg.value});

        // mint and reflect to the holders
        _nextTokenId++;
        _isMinter[to] = true;
        _minters[mintIndex] = to;
        _lastDividendAt[mintIndex] = totalDividend;
        uint256 amount = msg.value;
        uint256 reflectionShare = calcReflectionShare();
        uint256 reflectionAmount = (amount * reflectionShare) / 100;
        uint256 mintFee = amount - reflectionAmount;

        _reflectDividend(reflectionAmount);
        _safeMint(to, mintIndex);
        Address.sendValue(devAddr, mintFee);
    }

    function ownerMintToken(address to) external payable onlyOwner {
        uint256 mintIndex = _nextTokenId;
        _nextTokenId++;

        if (!(mintIndex < _MAX_SUPPLY)) revert ExceedMaxSupplyError();

        _isMinter[to] = true;
        _minters[mintIndex] = to;
        _lastDividendAt[mintIndex] = totalDividend;
        _safeMint(to, mintIndex);
    }

    function batchMigrate(uint256 perBatch) external nonReentrant {
        address account = _msgSender();
        uint256 count = INeonMonsters(nemoV1).balanceOf(account);

        uint256 end = count > perBatch ? perBatch : count;

        for (uint256 i = 0; end > i; i++) {
            uint256 tokenId = INeonMonsters(nemoV1).tokenOfOwnerByIndex(
                account,
                0
            );
            _migrate(account, tokenId);
        }
    }

    function migrate(address account, uint256 tokenId) external nonReentrant {
        address ownerOfToken = INeonMonsters(nemoV1).ownerOf(tokenId);
        if (ownerOfToken != _msgSender()) revert OwnershipError();

        _migrate(account, tokenId);
    }

    // Reflection functions

    /**
     * @dev The Formula
     *
     * ref share = ref base - (segment no * ref step)
     */
    function calcReflectionShare() public view returns (uint256) {
        uint256 lastMintedTokenId = _nextTokenId - 1;
        uint256 refBase = 96;
        uint256 refStep = 2;
        uint256 segmentNo = segmentNoOfToken(lastMintedTokenId);

        return refBase - (segmentNo * refStep);
    }

    function getRefBalances(address account)
        external
        view
        override
        returns (uint256)
    {
        uint256 count = balanceOf(account);
        uint256 total = 0;
        for (uint256 i = 0; i < count; i++) {
            uint256 tokenId = tokenOfOwnerByIndex(account, i);
            total += getRefBalance(tokenId);
        }
        return total;
    }

    function getRefBalance(uint256 tokenId)
        public
        view
        override
        returns (uint256)
    {
        return totalDividend - _lastDividendAt[tokenId];
    }

    function currentRate() external view override returns (uint256) {
        uint256 ts = totalSupply();
        ts++;

        return reflectionBalance / ts;
    }

    function claimReward(uint256 tokenId) external nonReentrant whenNotPaused {
        bool approved = _isApprovedOrOwner(_msgSender(), tokenId);
        if (!approved) revert OwnershipError();

        _lastDividendAt[tokenId] = totalDividend;

        uint256 balance = getRefBalance(tokenId);
        address payable recipient = payable(ownerOf(tokenId));
        Address.sendValue(recipient, balance);
    }

    function claimRewards(address payable account)
        external
        nonReentrant
        whenNotPaused
    {
        uint256 count = balanceOf(account);
        uint256 balance = 0;

        for (uint256 i = 0; count > i; i++) {
            uint256 tokenId = tokenOfOwnerByIndex(account, i);
            balance += getRefBalance(tokenId);
            _lastDividendAt[tokenId] = totalDividend;
        }

        Address.sendValue(account, balance);
    }

    function reflectToHolders() external payable override {
        _reflectDividend(msg.value);
    }

    // Helper functions

    function _migrate(address account, uint256 tokenId) private {
        if (tokenId > 5904) revert InvalidTokenError({tokenId: tokenId});

        // fetch_isMinter from old contract
        address minterOfToken = INeonMonsters(nemoV1).minterOf(tokenId);
        _isMinter[minterOfToken] = true;
        _minters[tokenId] = minterOfToken;
        _lastDividendAt[tokenId] = totalDividend;

        // mint new token
        _safeMint(account, tokenId);

        // burn old token
        INeonMonsters(nemoV1).transferFrom(account, deadAddr, tokenId);
    }

    function _reflectDividend(uint256 amount) private {
        uint256 ts = totalSupply();
        ts++;

        reflectionBalance += amount;
        totalDividend = totalDividend + (amount / ts);
    }

    // solhint-disable-next-line no-empty-blocks
    receive() external payable {}

    fallback() external payable {}

    // Owner functions

    function init(address payable dev, address dead) external onlyOwner {
        if (initialized > 0) revert InitializedError();

        if (dev == address(0) || dead == address(0)) revert AddressZeroError();

        devAddr = dev;
        deadAddr = dead;

        initialized = 1;
        emit Initialized();
    }

    function setSaleStatus(uint256 status) external onlyOwner {
        saleStatus = status;

        emit SaleStatusUpdated(saleStatus);
    }

    function setPrice(uint256 base, uint256 step) external onlyOwner {
        basePrice = base;
        stepPrice = step;

        emit PriceUpdated(basePrice, stepPrice);
    }

    function setDev(address payable dev) external onlyOwner {
        if (dev == address(0)) revert AddressZeroError();

        devAddr = dev;
    }

    function setBlacklisted(address[] memory accounts, bool approval)
        external
        onlyOwner
    {
        for (uint256 i = 0; accounts.length > i; i++) {
            _blacklist[accounts[i]] = approval;
        }
    }

    function rescueNative() external onlyOwner {
        Address.sendValue(devAddr, address(this).balance);
    }

    function rescueERC20(IERC20 tokenAddr_, uint256 amount) external onlyOwner {
        require(address(tokenAddr_) != address(this), "Unexpected Error!");
        IERC20(tokenAddr_).safeTransfer(devAddr, amount);
    }

    function rescueERC721(IERC721 tokenAddr_, uint256 tokenId)
        external
        onlyOwner
    {
        require(address(tokenAddr_) != address(this), "Unexpected Error!");
        IERC721(tokenAddr_).safeTransferFrom(address(this), devAddr, tokenId);
    }

    function setProvenance(string memory hash) external onlyOwner {
        provenance = hash;
    }

    function setBaseURI(string memory baseURI) external onlyOwner {
        _baseURIextended = baseURI;
    }

    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }

    // The following functions are overrides required by Solidity.

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

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

File 2 of 19 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

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

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

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

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

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

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

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

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

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

File 5 of 19 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 9 of 19 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 10 of 19 : INeonMonsters.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

interface INeonMonsters is IERC721, IERC721Enumerable {
    /**
     * @dev Returns the next mintable token's id.
     */
    function nextTokenId() external view returns (uint256);

    /**
     * @dev Returns the minter of the given token id.
     */
    function minterOf(uint256) external view returns (address);

    /**
     * @dev Returns true if given account is a minter.
     */
    function isMinter(address) external view returns (bool);

    /**
     * @dev Returns the given address' reflection balance
     */
    function getRefBalances(address) external view returns (uint256);

    /**
     * @dev Returns the given token id's reflection balance
     */
    function getRefBalance(uint256) external view returns (uint256);

    /**
     * @dev Returns the ratio between ref. balance and total supply.
     */
    function currentRate() external view returns (uint256);

    /**
     * @dev Reflect paid amount to current holders.
     */
    function reflectToHolders() external payable;
}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 15 of 19 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"caller","type":"address"}],"name":"AccountBlacklisted","type":"error"},{"inputs":[],"name":"AddressZeroError","type":"error"},{"inputs":[],"name":"ExceedMaxSupplyError","type":"error"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"IncorrectEtherSentError","type":"error"},{"inputs":[],"name":"InitializedError","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"InvalidTokenError","type":"error"},{"inputs":[],"name":"OwnershipError","type":"error"},{"inputs":[],"name":"SaleError","type":"error"},{"inputs":[],"name":"UninitializedError","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"basePrice","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"stepPrice","type":"uint256"}],"name":"PriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"status","type":"uint256"}],"name":"SaleStatusUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"basePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"perBatch","type":"uint256"}],"name":"batchMigrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"calcReflectionShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deadAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devAddr","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getRefBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getRefBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"dev","type":"address"},{"internalType":"address","name":"dead","type":"address"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialized","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":[{"internalType":"address","name":"account","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mintToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"minterOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nemoV1","outputs":[{"internalType":"contract INeonMonsters","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"ownerMintToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenance","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reflectToHolders","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"reflectionBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"tokenAddr_","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC721","name":"tokenAddr_","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"rescueERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rescueNative","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":[],"name":"saleStatus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"segmentNoOfToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"bool","name":"approval","type":"bool"}],"name":"setBlacklisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"dev","type":"address"}],"name":"setDev","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"base","type":"uint256"},{"internalType":"uint256","name":"step","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"hash","type":"string"}],"name":"setProvenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"status","type":"uint256"}],"name":"setSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stepPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDividend","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a06040523480156200001157600080fd5b50604080518082018252601081526f2732b7b71026b7b739ba32b939903b1960811b6020808301918252835180850190945260068452652722a6a7bb1960d11b908401528151919291620000689160009162000136565b5080516200007e90600190602084019062000136565b5050600a805460ff19169055506200009633620000dc565b6001600b5567016345785d8a00006011819055601255611711600e557f1b72cfde16e5a33a36eaafbf2eb9cded02b0957700000000000000000000000060805262000219565b600a80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200014490620001dc565b90600052602060002090601f016020900481019282620001685760008555620001b3565b82601f106200018357805160ff1916838001178555620001b3565b82800160010185558215620001b3579182015b82811115620001b357825182559160200191906001019062000196565b50620001c1929150620001c5565b5090565b5b80821115620001c15760008155600101620001c6565b600181811c90821680620001f157607f821691505b602082108114156200021357634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c613b656200025b600039600081816106b60152818161154d015281816116100152818161171f01528181612722015261282f0152613b656000f3fe6080604052600436106103605760003560e01c80639a7a0bf1116101c4578063d7981834116100f6578063f29f15af1161009a578063f9f8bdb71161006c578063f9f8bdb714610a1b578063fa5ba0f914610a30578063fc82f08414610a46578063ffe630b514610a5b57005b8063f29f15af146109a5578063f2fde38b146109c5578063f7d97577146109e5578063f9020e3314610a0557005b8063e85b053b116100d3578063e85b053b14610907578063e985e9c51461091c578063ef5cfb8c14610965578063f09a40161461098557005b8063d7981834146108a7578063da09c72c146108c7578063e1baae1f146108e757005b8063aa271e1a11610168578063c7876ea41161013a578063c7876ea414610831578063c87b56dd14610847578063d477f05f14610867578063d4ddce8a1461088757005b8063aa271e1a14610798578063ad68ebf7146107d1578063ae169a50146107f1578063b88d4fde1461081157005b8063a13d7b33116101a1578063a13d7b3314610718578063a22cb46514610738578063a596252414610758578063a69237661461077857005b80639a7a0bf1146106a45780639dfb402c146106d85780639e942ace146106f857005b806342966c681161029d57806370a08231116102415780638cd4426d116102135780638cd4426d1461062c5780638da5cb5b1461064c57806395d89b411461066f57806398a526a41461068457005b806370a08231146105cd578063715018a6146105ed57806375794a3c146106025780638456cb591461061757005b806355f804b31161027a57806355f804b31461056d5780635849a5c61461058d5780635c975abb146105955780636352211e146105ad57005b806342966c68146105175780634b6acafb146105375780634f6ccce71461054d57005b8063158ef93e116103045780632f745c59116102e15780632f745c59146104ac5780633f4ba83a146104cc5780634131ff99146104e157806342842e0e146104f757005b8063158ef93e1461045357806318160ddd1461047757806323b872dd1461048c57005b806307bd68441161033d57806307bd6844146103d3578063081812fc146103e6578063095ea7b31461041e5780630f7309e81461043e57005b806301173a741461036957806301ffc9a71461037c57806306fdde03146103b157005b3661036757005b005b610367610377366004613431565b610a7b565b34801561038857600080fd5b5061039c6103973660046136aa565b610bf2565b60405190151581526020015b60405180910390f35b3480156103bd57600080fd5b506103c6610c03565b6040516103a8919061383f565b6103676103e1366004613431565b610c95565b3480156103f257600080fd5b5061040661040136600461373a565b610d5a565b6040516001600160a01b0390911681526020016103a8565b34801561042a57600080fd5b5061036761043936600461359d565b610def565b34801561044a57600080fd5b506103c6610f05565b34801561045f57600080fd5b5061046960135481565b6040519081526020016103a8565b34801561048357600080fd5b50600854610469565b34801561049857600080fd5b506103676104a73660046134b3565b610f93565b3480156104b857600080fd5b506104696104c736600461359d565b610fc5565b3480156104d857600080fd5b5061036761105b565b3480156104ed57600080fd5b50610469600f5481565b34801561050357600080fd5b506103676105123660046134b3565b611095565b34801561052357600080fd5b5061036761053236600461373a565b6110b0565b34801561054357600080fd5b5061046960105481565b34801561055957600080fd5b5061046961056836600461373a565b61112a565b34801561057957600080fd5b506103676105883660046136f4565b6111cb565b61036761120e565b3480156105a157600080fd5b50600a5460ff1661039c565b3480156105b957600080fd5b506104066105c836600461373a565b611217565b3480156105d957600080fd5b506104696105e8366004613431565b61128e565b3480156105f957600080fd5b50610367611315565b34801561060e57600080fd5b50600e54610469565b34801561062357600080fd5b5061036761134f565b34801561063857600080fd5b506103676106473660046136e2565b611387565b34801561065857600080fd5b50600a5461010090046001600160a01b0316610406565b34801561067b57600080fd5b506103c661141e565b34801561069057600080fd5b5061046961069f366004613431565b61142d565b3480156106b057600080fd5b506104067f000000000000000000000000000000000000000000000000000000000000000081565b3480156106e457600080fd5b506104696106f336600461373a565b611486565b34801561070457600080fd5b5061040661071336600461373a565b6114a9565b34801561072457600080fd5b5061036761073336600461373a565b6114fd565b34801561074457600080fd5b50610367610753366004613570565b6116b7565b34801561076457600080fd5b50600d54610406906001600160a01b031681565b34801561078457600080fd5b5061046961079336600461373a565b6116c2565b3480156107a457600080fd5b5061039c6107b3366004613431565b6001600160a01b031660009081526019602052604090205460ff1690565b3480156107dd57600080fd5b506103676107ec36600461359d565b6116de565b3480156107fd57600080fd5b5061036761080c36600461373a565b6117e0565b34801561081d57600080fd5b5061036761082c3660046134f3565b61189a565b34801561083d57600080fd5b5061046960115481565b34801561085357600080fd5b506103c661086236600461373a565b6118d1565b34801561087357600080fd5b50610367610882366004613431565b6119ab565b34801561089357600080fd5b506104696108a236600461373a565b611a24565b3480156108b357600080fd5b506103676108c23660046136e2565b611a4d565b3480156108d357600080fd5b50600c54610406906001600160a01b031681565b3480156108f357600080fd5b506103676109023660046135c8565b611b3a565b34801561091357600080fd5b50610469611bdf565b34801561092857600080fd5b5061039c6109373660046134a1565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561097157600080fd5b50610367610980366004613431565b611c21565b34801561099157600080fd5b506103676109a0366004613469565b611cdb565b3480156109b157600080fd5b506103676109c036600461373a565b611dc9565b3480156109d157600080fd5b506103676109e0366004613431565b611e2c565b3480156109f157600080fd5b50610367610a0036600461376a565b611eca565b348015610a1157600080fd5b5061046960145481565b348015610a2757600080fd5b50610469611f35565b348015610a3c57600080fd5b5061046960125481565b348015610a5257600080fd5b50610367611f64565b348015610a6757600080fd5b50610367610a763660046136f4565b611faa565b6002600b541415610aa75760405162461bcd60e51b8152600401610a9e90613954565b60405180910390fd5b6002600b55601454610acc576040516310e3032b60e11b815260040160405180910390fd5b600e546127108110610af15760405163385433ab60e01b815260040160405180910390fd5b6000610afc82611a24565b905080341015610b215760405163b697067760e01b8152346004820152602401610a9e565b600e8054906000610b3183613a85565b90915550506001600160a01b0383166000818152601960209081526040808320805460ff191660011790558583526018825280832080546001600160a01b0319169094179093556010546017909152918120919091553490610b91611bdf565b905060006064610ba183856139e8565b610bab91906139d4565b90506000610bb98285613a07565b9050610bc482611fed565b610bce878761203d565b600c54610be4906001600160a01b031682612057565b50506001600b555050505050565b6000610bfd82612170565b92915050565b606060008054610c1290613a4a565b80601f0160208091040260200160405190810160405280929190818152602001828054610c3e90613a4a565b8015610c8b5780601f10610c6057610100808354040283529160200191610c8b565b820191906000526020600020905b815481529060010190602001808311610c6e57829003601f168201915b5050505050905090565b600a546001600160a01b03610100909104163314610cc55760405162461bcd60e51b8152600401610a9e906138ce565b600e80549081906000610cd783613a85565b91905055506127108110610cfe5760405163385433ab60e01b815260040160405180910390fd5b6001600160a01b0382166000818152601960209081526040808320805460ff191660011790558483526018825280832080546001600160a01b031916909417909355601054601790915291902055610d56828261203d565b5050565b6000818152600260205260408120546001600160a01b0316610dd35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a9e565b506000908152600460205260409020546001600160a01b031690565b6000610dfa82611217565b9050806001600160a01b0316836001600160a01b03161415610e685760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a9e565b336001600160a01b0382161480610e845750610e848133610937565b610ef65760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a9e565b610f008383612195565b505050565b60168054610f1290613a4a565b80601f0160208091040260200160405190810160405280929190818152602001828054610f3e90613a4a565b8015610f8b5780601f10610f6057610100808354040283529160200191610f8b565b820191906000526020600020905b815481529060010190602001808311610f6e57829003601f168201915b505050505081565b610f9e335b82612203565b610fba5760405162461bcd60e51b8152600401610a9e90613903565b610f008383836122fa565b6000610fd08361128e565b82106110325760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a9e565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b0361010090910416331461108b5760405162461bcd60e51b8152600401610a9e906138ce565b6110936124a5565b565b610f008383836040518060200160405280600081525061189a565b6110b933610f98565b61111e5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610a9e565b61112781612538565b50565b600061113560085490565b82106111985760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a9e565b600882815481106111b957634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600a546001600160a01b036101009091041633146111fb5760405162461bcd60e51b8152600401610a9e906138ce565b8051610d56906015906020840190613330565b61109334611fed565b6000818152600260205260408120546001600160a01b031680610bfd5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a9e565b60006001600160a01b0382166112f95760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a9e565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b036101009091041633146113455760405162461bcd60e51b8152600401610a9e906138ce565b61109360006125df565b600a546001600160a01b0361010090910416331461137f5760405162461bcd60e51b8152600401610a9e906138ce565b611093612639565b600a546001600160a01b036101009091041633146113b75760405162461bcd60e51b8152600401610a9e906138ce565b6001600160a01b0382163014156114045760405162461bcd60e51b8152602060048201526011602482015270556e6578706563746564204572726f722160781b6044820152606401610a9e565b600c54610d56906001600160a01b03848116911683612691565b606060018054610c1290613a4a565b6000806114398361128e565b90506000805b8281101561147e5760006114538683610fc5565b905061145e816116c2565b61146890846139bc565b925050808061147690613a85565b91505061143f565b509392505050565b60008061149660146127106139d4565b90506114a281846139d4565b9392505050565b6000818152600260205260408120546001600160a01b03166114e157604051632abfe32760e11b815260048101839052602401610a9e565b506000908152601860205260409020546001600160a01b031690565b6002600b5414156115205760405162461bcd60e51b8152600401610a9e90613954565b6002600b556000336040516370a0823160e01b81526001600160a01b0380831660048301529192506000917f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b15801561158f57600080fd5b505afa1580156115a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c79190613752565b905060008382116115d857816115da565b835b905060005b808211156116ab57604051632f745c5960e01b81526001600160a01b038581166004830152600060248301819052917f000000000000000000000000000000000000000000000000000000000000000090911690632f745c599060440160206040518083038186803b15801561165457600080fd5b505afa158015611668573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061168c9190613752565b905061169885826126e3565b50806116a381613a85565b9150506115df565b50506001600b55505050565b610d56338383612892565b600081815260176020526040812054601054610bfd9190613a07565b6002600b5414156117015760405162461bcd60e51b8152600401610a9e90613954565b6002600b556040516331a9108f60e11b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690636352211e9060240160206040518083038186803b15801561176957600080fd5b505afa15801561177d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117a1919061344d565b90506001600160a01b03811633146117cc576040516353eaacbd60e01b815260040160405180910390fd5b6117d683836126e3565b50506001600b5550565b6002600b5414156118035760405162461bcd60e51b8152600401610a9e90613954565b6002600b55600a5460ff161561182b5760405162461bcd60e51b8152600401610a9e906138a4565b6000611838335b83612203565b905080611858576040516353eaacbd60e01b815260040160405180910390fd5b601054600083815260176020526040812091909155611876836116c2565b9050600061188384611217565b905061188f8183612057565b50506001600b555050565b6118a333611832565b6118bf5760405162461bcd60e51b8152600401610a9e90613903565b6118cb84848484612961565b50505050565b6000818152600260205260409020546060906001600160a01b03166119505760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a9e565b600061195a612994565b9050600081511161197a57604051806020016040528060008152506114a2565b80611984846129a3565b6040516020016119959291906137d3565b6040516020818303038152906040529392505050565b600a546001600160a01b036101009091041633146119db5760405162461bcd60e51b8152600401610a9e906138ce565b6001600160a01b038116611a02576040516349431df560e11b815260040160405180910390fd5b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b600080611a3083611486565b905060115481611a4091906139e8565b6012546114a291906139bc565b600a546001600160a01b03610100909104163314611a7d5760405162461bcd60e51b8152600401610a9e906138ce565b6001600160a01b038216301415611aca5760405162461bcd60e51b8152602060048201526011602482015270556e6578706563746564204572726f722160781b6044820152606401610a9e565b600c54604051632142170760e11b81523060048201526001600160a01b03918216602482015260448101839052908316906342842e0e90606401600060405180830381600087803b158015611b1e57600080fd5b505af1158015611b32573d6000803e3d6000fd5b505050505050565b600a546001600160a01b03610100909104163314611b6a5760405162461bcd60e51b8152600401610a9e906138ce565b60005b8083511115610f005781601a6000858481518110611b9b57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580611bd781613a85565b915050611b6d565b6000806001600e54611bf19190613a07565b9050606060026000611c0284611486565b9050611c0e82826139e8565b611c189084613a07565b94505050505090565b6002600b541415611c445760405162461bcd60e51b8152600401610a9e90613954565b6002600b55600a5460ff1615611c6c5760405162461bcd60e51b8152600401610a9e906138a4565b6000611c778261128e565b90506000805b80831115611cd0576000611c918583610fc5565b9050611c9c816116c2565b611ca690846139bc565b60105460009283526017602052604090922091909155915080611cc881613a85565b915050611c7d565b506117d68382612057565b600a546001600160a01b03610100909104163314611d0b5760405162461bcd60e51b8152600401610a9e906138ce565b60135415611d2c5760405163d7a1a5ef60e01b815260040160405180910390fd5b6001600160a01b0382161580611d4957506001600160a01b038116155b15611d67576040516349431df560e11b815260040160405180910390fd5b600c80546001600160a01b038085166001600160a01b031992831617909255600d80549284169290911691909117905560016013556040517f5daa87a0e9463431830481fd4b6e3403442dfb9a12b9c07597e9f61d50b633c890600090a15050565b600a546001600160a01b03610100909104163314611df95760405162461bcd60e51b8152600401610a9e906138ce565b601481905560405181907fe2ac177d79853153e2e7afd349ab754ee6c6e859a63b855297d56a5b411a04a990600090a250565b600a546001600160a01b03610100909104163314611e5c5760405162461bcd60e51b8152600401610a9e906138ce565b6001600160a01b038116611ec15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a9e565b611127816125df565b600a546001600160a01b03610100909104163314611efa5760405162461bcd60e51b8152600401610a9e906138ce565b60118290556012819055604051819083907f945c1c4e99aa89f648fbfe3df471b916f719e16d960fcec0737d4d56bd69683890600090a35050565b600080611f4160085490565b905080611f4d81613a85565b91505080600f54611f5e91906139d4565b91505090565b600a546001600160a01b03610100909104163314611f945760405162461bcd60e51b8152600401610a9e906138ce565b600c54611093906001600160a01b031647612057565b600a546001600160a01b03610100909104163314611fda5760405162461bcd60e51b8152600401610a9e906138ce565b8051610d56906016906020840190613330565b6000611ff860085490565b90508061200481613a85565b91505081600f600082825461201991906139bc565b90915550612029905081836139d4565b60105461203691906139bc565b6010555050565b610d56828260405180602001604052806000815250612abd565b804710156120a75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a9e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146120f4576040519150601f19603f3d011682016040523d82523d6000602084013e6120f9565b606091505b5050905080610f005760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a9e565b60006001600160e01b0319821663780e9d6360e01b1480610bfd5750610bfd82612af0565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906121ca82611217565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661227c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a9e565b600061228783611217565b9050806001600160a01b0316846001600160a01b031614806122c25750836001600160a01b03166122b784610d5a565b6001600160a01b0316145b806122f257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661230d82611217565b6001600160a01b0316146123755760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a9e565b6001600160a01b0382166123d75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a9e565b6123e2838383612b40565b6123ed600082612195565b6001600160a01b0383166000908152600360205260408120805460019290612416908490613a07565b90915550506001600160a01b03821660009081526003602052604081208054600192906124449084906139bc565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a5460ff166124ee5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a9e565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600061254382611217565b905061255181600084612b40565b61255c600083612195565b6001600160a01b0381166000908152600360205260408120805460019290612585908490613a07565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600a80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a5460ff161561265c5760405162461bcd60e51b8152600401610a9e906138a4565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861251b3390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610f00908490612c21565b61171081111561270957604051632abfe32760e11b815260048101829052602401610a9e565b604051634f4a156760e11b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690639e942ace9060240160206040518083038186803b15801561276c57600080fd5b505afa158015612780573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127a4919061344d565b6001600160a01b0381166000818152601960209081526040808320805460ff191660011790558683526018825280832080546001600160a01b03191690941790935560105460179091529190205590506127fe838361203d565b600d546040516323b872dd60e01b81526001600160a01b0385811660048301529182166024820152604481018490527f0000000000000000000000000000000000000000000000000000000000000000909116906323b872dd90606401600060405180830381600087803b15801561287557600080fd5b505af1158015612889573d6000803e3d6000fd5b50505050505050565b816001600160a01b0316836001600160a01b031614156128f45760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a9e565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61296c8484846122fa565b61297884848484612cf3565b6118cb5760405162461bcd60e51b8152600401610a9e90613852565b606060158054610c1290613a4a565b6060816129c75750506040805180820190915260018152600360fc1b602082015290565b8160005b81156129f157806129db81613a85565b91506129ea9050600a836139d4565b91506129cb565b60008167ffffffffffffffff811115612a1a57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612a44576020820181803683370190505b5090505b84156122f257612a59600183613a07565b9150612a66600a86613aa0565b612a719060306139bc565b60f81b818381518110612a9457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612ab6600a866139d4565b9450612a48565b612ac78383612e00565b612ad46000848484612cf3565b610f005760405162461bcd60e51b8152600401610a9e90613852565b60006001600160e01b031982166380ac58cd60e01b1480612b2157506001600160e01b03198216635b5e139f60e01b145b80610bfd57506301ffc9a760e01b6001600160e01b0319831614610bfd565b600a5460ff1615612b635760405162461bcd60e51b8152600401610a9e906138a4565b600060135411612b8657604051631d2ad63f60e01b815260040160405180910390fd5b6001600160a01b0383166000908152601a602052604090205460ff1680612bc557506001600160a01b0382166000908152601a602052604090205460ff165b80612bdf5750336000908152601a602052604090205460ff165b15612c1657604051630ea9606d60e01b81526001600160a01b03808416600483015284166024820152336044820152606401610a9e565b610f00838383612f4e565b6000612c76826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166130069092919063ffffffff16565b805190915015610f005780806020019051810190612c94919061368e565b610f005760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610a9e565b60006001600160a01b0384163b15612df557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612d37903390899088908890600401613802565b602060405180830381600087803b158015612d5157600080fd5b505af1925050508015612d81575060408051601f3d908101601f19168201909252612d7e918101906136c6565b60015b612ddb573d808015612daf576040519150601f19603f3d011682016040523d82523d6000602084013e612db4565b606091505b508051612dd35760405162461bcd60e51b8152600401610a9e90613852565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506122f2565b506001949350505050565b6001600160a01b038216612e565760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a9e565b6000818152600260205260409020546001600160a01b031615612ebb5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a9e565b612ec760008383612b40565b6001600160a01b0382166000908152600360205260408120805460019290612ef09084906139bc565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b038316612fa957612fa481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612fcc565b816001600160a01b0316836001600160a01b031614612fcc57612fcc8382613015565b6001600160a01b038216612fe357610f00816130b2565b826001600160a01b0316826001600160a01b031614610f0057610f00828261318b565b60606122f284846000856131cf565b600060016130228461128e565b61302c9190613a07565b60008381526007602052604090205490915080821461307f576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906130c490600190613a07565b600083815260096020526040812054600880549394509092849081106130fa57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061312957634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061316f57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006131968361128e565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6060824710156132305760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610a9e565b843b61327e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a9e565b600080866001600160a01b0316858760405161329a91906137b7565b60006040518083038185875af1925050503d80600081146132d7576040519150601f19603f3d011682016040523d82523d6000602084013e6132dc565b606091505b50915091506132ec8282866132f7565b979650505050505050565b606083156133065750816114a2565b8251156133165782518084602001fd5b8160405162461bcd60e51b8152600401610a9e919061383f565b82805461333c90613a4a565b90600052602060002090601f01602090048101928261335e57600085556133a4565b82601f1061337757805160ff19168380011785556133a4565b828001600101855582156133a4579182015b828111156133a4578251825591602001919060010190613389565b506133b09291506133b4565b5090565b5b808211156133b057600081556001016133b5565b600067ffffffffffffffff8311156133e3576133e3613ae0565b6133f6601f8401601f191660200161398b565b905082815283838301111561340a57600080fd5b828260208301376000602084830101529392505050565b803561342c81613b0b565b919050565b600060208284031215613442578081fd5b81356114a281613af6565b60006020828403121561345e578081fd5b81516114a281613af6565b6000806040838503121561347b578081fd5b823561348681613af6565b9150602083013561349681613af6565b809150509250929050565b6000806040838503121561347b578182fd5b6000806000606084860312156134c7578081fd5b83356134d281613af6565b925060208401356134e281613af6565b929592945050506040919091013590565b60008060008060808587031215613508578081fd5b843561351381613af6565b9350602085013561352381613af6565b925060408501359150606085013567ffffffffffffffff811115613545578182fd5b8501601f81018713613555578182fd5b613564878235602084016133c9565b91505092959194509250565b60008060408385031215613582578182fd5b823561358d81613af6565b9150602083013561349681613b0b565b600080604083850312156135af578081fd5b82356135ba81613af6565b946020939093013593505050565b600080604083850312156135da578182fd5b823567ffffffffffffffff808211156135f1578384fd5b818501915085601f830112613604578384fd5b813560208282111561361857613618613ae0565b8160051b925061362981840161398b565b8281528181019085830185870184018b1015613643578889fd5b8896505b84871015613671578035955061365c86613af6565b85835260019690960195918301918301613647565b5096506136819050878201613421565b9450505050509250929050565b60006020828403121561369f578081fd5b81516114a281613b0b565b6000602082840312156136bb578081fd5b81356114a281613b19565b6000602082840312156136d7578081fd5b81516114a281613b19565b600080604083850312156135af578182fd5b600060208284031215613705578081fd5b813567ffffffffffffffff81111561371b578182fd5b8201601f8101841361372b578182fd5b6122f2848235602084016133c9565b60006020828403121561374b578081fd5b5035919050565b600060208284031215613763578081fd5b5051919050565b6000806040838503121561377c578182fd5b50508035926020909101359150565b600081518084526137a3816020860160208601613a1e565b601f01601f19169290920160200192915050565b600082516137c9818460208701613a1e565b9190910192915050565b600083516137e5818460208801613a1e565b8351908301906137f9818360208801613a1e565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906138359083018461378b565b9695505050505050565b6020815260006114a2602083018461378b565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f1916810167ffffffffffffffff811182821017156139b4576139b4613ae0565b604052919050565b600082198211156139cf576139cf613ab4565b500190565b6000826139e3576139e3613aca565b500490565b6000816000190483118215151615613a0257613a02613ab4565b500290565b600082821015613a1957613a19613ab4565b500390565b60005b83811015613a39578181015183820152602001613a21565b838111156118cb5750506000910152565b600181811c90821680613a5e57607f821691505b60208210811415613a7f57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613a9957613a99613ab4565b5060010190565b600082613aaf57613aaf613aca565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461112757600080fd5b801515811461112757600080fd5b6001600160e01b03198116811461112757600080fdfea26469706673582212203530feec728773e58978555d96b4328d682150cbe6dca54b89cb31eb884b03e764736f6c63430008040033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.