ETH Price: $2,390.43 (-1.59%)

Contract

0x99C718FB97f4afC46FCDFdE8E66761101F6cfB0e
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Unstake167954082023-03-10 4:34:11575 days ago1678422851IN
0x99C718FB...01F6cfB0e
0 ETH0.0089219623.63296775
Harvest167953862023-03-10 4:29:47575 days ago1678422587IN
0x99C718FB...01F6cfB0e
0 ETH0.0022701823.07055822
Stake165969882023-02-10 7:53:23603 days ago1676015603IN
0x99C718FB...01F6cfB0e
0 ETH0.0089356720.02527437
Unstake155494202022-09-16 23:24:35749 days ago1663370675IN
0x99C718FB...01F6cfB0e
0 ETH0.000695815.01894728
Harvest155494172022-09-16 23:23:59749 days ago1663370639IN
0x99C718FB...01F6cfB0e
0 ETH0.000362945.36907363
Harvest155132992022-09-11 6:27:37755 days ago1662877657IN
0x99C718FB...01F6cfB0e
0 ETH0.000554947.75880431
Unstake154199492022-08-27 6:10:10770 days ago1661580610IN
0x99C718FB...01F6cfB0e
0 ETH0.000987314.96552666
Harvest153047022022-08-08 23:59:12788 days ago1660003152IN
0x99C718FB...01F6cfB0e
0 ETH0.0027816426.3127092
Harvest152380482022-07-29 15:02:28799 days ago1659106948IN
0x99C718FB...01F6cfB0e
0 ETH0.0031947630.22055223
Harvest152080882022-07-24 22:47:30803 days ago1658702850IN
0x99C718FB...01F6cfB0e
0 ETH0.0010146913.45750092
Harvest151778772022-07-20 6:19:04808 days ago1658297944IN
0x99C718FB...01F6cfB0e
0 ETH0.0018463417.46527601
Harvest151334112022-07-13 9:10:17815 days ago1657703417IN
0x99C718FB...01F6cfB0e
0 ETH0.0009967513.93596655
Harvest151295992022-07-12 18:54:13816 days ago1657652053IN
0x99C718FB...01F6cfB0e
0 ETH0.0015765814.91354299
Harvest151079942022-07-09 11:09:44819 days ago1657364984IN
0x99C718FB...01F6cfB0e
0 ETH0.000539936.64298934
Harvest150696572022-07-03 12:42:43825 days ago1656852163IN
0x99C718FB...01F6cfB0e
0 ETH0.0016538515.64447977
Harvest150450762022-06-29 12:46:08829 days ago1656506768IN
0x99C718FB...01F6cfB0e
0 ETH0.0044013541.63412587
Harvest150281292022-06-26 8:39:03832 days ago1656232743IN
0x99C718FB...01F6cfB0e
0 ETH0.0029040828.00066528
Stake150200652022-06-24 20:20:11833 days ago1656102011IN
0x99C718FB...01F6cfB0e
0 ETH0.0115698946.67351598
Harvest150068762022-06-22 9:01:28836 days ago1655888488IN
0x99C718FB...01F6cfB0e
0 ETH0.001788125
Harvest149958092022-06-20 9:35:20838 days ago1655717720IN
0x99C718FB...01F6cfB0e
0 ETH0.0025821130.30509345
Stake149851192022-06-18 13:03:38840 days ago1655557418IN
0x99C718FB...01F6cfB0e
0 ETH0.0107020338.55242231
Harvest149850642022-06-18 12:52:45840 days ago1655556765IN
0x99C718FB...01F6cfB0e
0 ETH0.001414514.03156816
Harvest149754882022-06-16 21:20:27841 days ago1655414427IN
0x99C718FB...01F6cfB0e
0 ETH0.0052936452.51162597
Harvest149523092022-06-12 21:14:34845 days ago1655068474IN
0x99C718FB...01F6cfB0e
0 ETH0.0023193827.22154786
Harvest149518332022-06-12 19:13:07846 days ago1655061187IN
0x99C718FB...01F6cfB0e
0 ETH0.0030130830.49403862
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
METAGRAPHX_STAKING

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-04-28
*/

// File: @openzeppelin/contracts/security/ReentrancyGuard.sol


// 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: @openzeppelin/contracts/utils/structs/EnumerableSet.sol


// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol


// 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: @openzeppelin/contracts/utils/introspection/IERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

// File: @openzeppelin/contracts/utils/introspection/ERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;


/**
 * @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: @openzeppelin/contracts/token/ERC721/IERC721.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;


/**
 * @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: @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;


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

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

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

// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @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: @openzeppelin/contracts/utils/Context.sol


// 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: @openzeppelin/contracts/security/Pausable.sol


// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;


/**
 * @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: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;


/**
 * @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: @openzeppelin/contracts/utils/Counters.sol


// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

// File: @openzeppelin/contracts/utils/Address.sol


// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;



/**
 * @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: @openzeppelin/contracts/utils/Strings.sol


// 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: @openzeppelin/contracts/token/ERC721/ERC721.sol


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;








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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;



/**
 * @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: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol


// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

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

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

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

// File: contracts/METAGRAPHX/METAGRAPHX_STAKING.sol


pragma solidity ^0.8.0;












contract METAGRAPHX_STAKING is ReentrancyGuard, Pausable, Ownable, IERC721Receiver {
    using Counters for Counters.Counter;
    using Strings for uint256;
    using EnumerableSet for EnumerableSet.UintSet;
    using SafeERC20 for IERC20;
    /* ------------------------ NFT Staking ------------------------- */
    bool public _enableHarvest = false;

    bytes32 public HASH_ROOT;

    address public NFT_TOKEN_ADDRESS;
    address public REWARD_TOKEN_ADDRESS;

    struct UserInfo {
        uint256 rewards;
        uint256 lastUpdated;
    }

    mapping(address => EnumerableSet.UintSet) private userBalances;
    mapping(uint256 => uint256) public mapHashrates;
    mapping(address => UserInfo) public userInfo;

    address[] public stakerList;

    /* --------------------------------------------------------------------------------- */
    constructor(address _nftAddress, address _rewardTokenAddress) {
        NFT_TOKEN_ADDRESS = _nftAddress;
        REWARD_TOKEN_ADDRESS = _rewardTokenAddress;
    }
    
    function setEnableHarvest (bool _bEnabled) external onlyOwner {
        _enableHarvest = _bEnabled;
    }

    function withdraw() external onlyOwner {
        uint256 balance = address(this).balance;
        payable(_msgSender()).transfer(balance);
    }

    function withdrawToken() external onlyOwner {
        IERC20(REWARD_TOKEN_ADDRESS).safeTransfer(_msgSender(), IERC20(REWARD_TOKEN_ADDRESS).balanceOf(address(this)));
    }

    function userHoldNFT(address _owner) public view returns(uint256[] memory){
        uint256 tokenCount = IERC721(NFT_TOKEN_ADDRESS).balanceOf(_owner);
        if (tokenCount == 0) {
            return new uint256[](0);
        } else {
            uint256[] memory result = new uint256[](tokenCount);
            uint256 index;
            for (index = 0; index < tokenCount; index++) {
                result[index] = IERC721Enumerable(NFT_TOKEN_ADDRESS).tokenOfOwnerByIndex(_owner, index);
            }
            return result;
        }
    }

    /* --------------------------------------------------------------------- */
    function setNFTAddress(address _nftAddress) public onlyOwner {
        NFT_TOKEN_ADDRESS = _nftAddress;
    }
    function setTokenRewardAddress(address _tokenAddress) public onlyOwner {
        REWARD_TOKEN_ADDRESS = _tokenAddress;
    }

    function setHashRoot(bytes32 _root) public onlyOwner {
        HASH_ROOT = _root;
    }
    // Verify that a given leaf is in the tree.
    function isHashValid(bytes32 _leafNode, bytes32[] memory _proof) public view returns (bool) {
        return MerkleProof.verify(_proof, HASH_ROOT, _leafNode);
    }

    // Generate the leaf node (just the hash of tokenID concatenated with the account address)
    function toLeaf(uint256 tokenID, uint256 index, uint256 grade) public pure returns (bytes32) {
        return keccak256(abi.encodePacked(index, tokenID, grade));
    }

    function addStakerList(address _user) internal{
        for (uint256 i = 0; i < stakerList.length; i++) {
            if (stakerList[i] == _user)
                return;
        }
        stakerList.push(_user);
    }

    function userStakeInfo(address _owner) external view returns(UserInfo memory){
         return userInfo[_owner];
    }
    
    function userStakedNFT(address _owner) public view returns(uint256[] memory){
        uint256 tokenCount = userBalances[_owner].length();
        if (tokenCount == 0) {
            return new uint256[](0);
        } else {
            uint256[] memory result = new uint256[](tokenCount);
            uint256 index;
            for (index = 0; index < tokenCount; index++) {
                result[index] = userBalances[_owner].at(index);
            }
            return result;
        }
    }

    function isStaked( address account ,uint256 tokenId) public view returns (bool) {
        return userBalances[account].contains(tokenId);
    }

    function getHashrate(address account) public view returns (uint256) {
        uint256 tokenCount = userBalances[account].length();
        uint256 index = 0;
        uint256 hashrate = 0;
        for (index = 0; index < tokenCount; index++) {
            hashrate += mapHashrates[userBalances[account].at(index)];
        }
        return hashrate;
    }

    function getBoost(address account) public view returns (uint256) {
        uint256 tokenCount = userBalances[account].length();

        if (tokenCount <= 1) {
            return 0;
        } else if (tokenCount >= 2 && tokenCount < 4) {
            return 10;
        } else if (tokenCount >= 4 && tokenCount < 6) {
            return 15;
        } else if (tokenCount >= 6 && tokenCount <= 8) {
            return 20;
        } else if (tokenCount >= 8 && tokenCount < 10) {
            return 25;
        } else if (tokenCount >= 10 && tokenCount < 20) {
            return 30;
        } else {
            return 50;
        }
    }

    function earned(address account) public view returns (uint256) {
        uint256 blockTime = block.timestamp;

        UserInfo memory user = userInfo[account];

        uint256 amount = (blockTime - user.lastUpdated) * getHashrate(account) / (1 days);

        return user.rewards + amount * (100 + getBoost(account)) / 100;
    }

    function totalEarned() public view returns (uint256) {
        uint256 totalEarning = 0;
        for (uint256 i = 0; i < stakerList.length; i++) {
            totalEarning += earned(stakerList[i]);
        }
        return totalEarning;
    }

    function totalStakedCount() public view returns (uint256) {
        uint256 totalCount = 0;
        for (uint256 i = 0; i < stakerList.length; i++) {
            totalCount += userBalances[stakerList[i]].length();
        }
        return totalCount;
    }

    function totalStakedMembers() public view returns (uint256) {
        uint256 totalMembers = 0;
        for (uint256 i = 0; i < stakerList.length; i++) {
            if (userBalances[stakerList[i]].length() > 0) totalMembers += 1;
        }
        return totalMembers;
    }

    
    function stake( uint256[] calldata _tokenIDList, uint256[] calldata _indexList, uint256[] calldata _hashrateList, bytes32[][] calldata _proofList) public nonReentrant whenNotPaused {
        require(IERC721(NFT_TOKEN_ADDRESS).isApprovedForAll(_msgSender(),address(this)),"Not approve nft to staker address");

        addStakerList(_msgSender());

        UserInfo storage user = userInfo[_msgSender()];
        user.rewards = earned(_msgSender());
        user.lastUpdated = block.timestamp;

        for (uint256 i = 0; i < _tokenIDList.length; i++) {
            require (isHashValid(toLeaf(_tokenIDList[i], _indexList[i], _hashrateList[i]), _proofList[i]), "Invalid Hash");
            
            IERC721(NFT_TOKEN_ADDRESS).safeTransferFrom(_msgSender(), address(this), _tokenIDList[i]);
            
            userBalances[_msgSender()].add(_tokenIDList[i]);

            mapHashrates[_tokenIDList[i]] = _hashrateList[i];
        }
    }

    function unstake( uint256[] memory  tokenIdList) public nonReentrant {
        UserInfo storage user = userInfo[_msgSender()];
        user.rewards = earned(_msgSender());
        user.lastUpdated = block.timestamp;

        for (uint256 i = 0; i < tokenIdList.length; i++) {

            require(isStaked(_msgSender(), tokenIdList[i]), "Not staked this nft");        

            IERC721(NFT_TOKEN_ADDRESS).safeTransferFrom(address(this) , _msgSender(), tokenIdList[i], "");

            userBalances[_msgSender()].remove(tokenIdList[i]);
        }
    }

    function harvest() public nonReentrant {
        require(_enableHarvest == true, "Harvest is not activated");
        
        UserInfo storage user = userInfo[_msgSender()];
        user.rewards = earned(_msgSender());
        user.lastUpdated = block.timestamp;

        require(IERC20(REWARD_TOKEN_ADDRESS).balanceOf(address(this)) >= user.rewards,"Reward token amount is small");

        if (user.rewards > 0) {
            IERC20(REWARD_TOKEN_ADDRESS).safeTransfer(_msgSender(), user.rewards);
        }

        user.rewards = 0;
    }

    function onERC721Received(address, address, uint256, bytes memory) public virtual override returns (bytes4) {
        return this.onERC721Received.selector;
    }

    receive() external payable {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"},{"internalType":"address","name":"_rewardTokenAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"HASH_ROOT","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NFT_TOKEN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REWARD_TOKEN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_enableHarvest","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getBoost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getHashrate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_leafNode","type":"bytes32"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"isHashValid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isStaked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mapHashrates","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_bEnabled","type":"bool"}],"name":"setEnableHarvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setHashRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"}],"name":"setNFTAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"setTokenRewardAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIDList","type":"uint256[]"},{"internalType":"uint256[]","name":"_indexList","type":"uint256[]"},{"internalType":"uint256[]","name":"_hashrateList","type":"uint256[]"},{"internalType":"bytes32[][]","name":"_proofList","type":"bytes32[][]"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakerList","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"grade","type":"uint256"}],"name":"toLeaf","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalEarned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStakedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStakedMembers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIdList","type":"uint256[]"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"userHoldNFT","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"rewards","type":"uint256"},{"internalType":"uint256","name":"lastUpdated","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"userStakeInfo","outputs":[{"components":[{"internalType":"uint256","name":"rewards","type":"uint256"},{"internalType":"uint256","name":"lastUpdated","type":"uint256"}],"internalType":"struct METAGRAPHX_STAKING.UserInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"userStakedNFT","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526001805460ff60a81b191690553480156200001e57600080fd5b50604051620024de380380620024de833981016040819052620000419162000104565b60016000819055805460ff191690556200005b336200008d565b600380546001600160a01b039384166001600160a01b031991821617909155600480549290931691161790556200013c565b600180546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516001600160a01b0381168114620000ff57600080fd5b919050565b600080604083850312156200011857600080fd5b6200012383620000e7565b91506200013360208401620000e7565b90509250929050565b612392806200014c6000396000f3fe6080604052600436106101f15760003560e01c80635c975abb1161010d5780638da5cb5b116100a0578063e449f3411161006f578063e449f3411461062e578063f2fde38b1461064e578063f36c6fbf1461066e578063ff01f7361461068e578063ff7d4cee146106a357600080fd5b80638da5cb5b146105c157806391875030146105e4578063920387b414610604578063ca628c781461061957600080fd5b80636dfa8d99116100dc5780636dfa8d9914610561578063715018a6146105765780637c7940971461058b57806383348353146105a157600080fd5b80635c975abb146104dc57806367ba3d90146104f457806369d03738146105145780636cd954471461053457600080fd5b8063348e50c61161018557806346c440b61161015457806346c440b6146103fe5780634ead43271461041e5780634f525c941461049b5780635451da1b146104bc57600080fd5b8063348e50c6146103875780633ccfd60b146103a757806340376ba2146103bc5780634641257d146103e957600080fd5b80631959a002116101c15780631959a002146102c65780631ff51c861461030f578063232135d61461034757806324494bde1461036757600080fd5b80628cc262146101fd578063110cc21a14610230578063150b7a0214610252578063155451871461029657600080fd5b366101f857005b600080fd5b34801561020957600080fd5b5061021d610218366004611cca565b6106c3565b6040519081526020015b60405180910390f35b34801561023c57600080fd5b5061025061024b366004611cca565b610769565b005b34801561025e57600080fd5b5061027d61026d366004611d2c565b630a85bd0160e11b949350505050565b6040516001600160e01b03199091168152602001610227565b3480156102a257600080fd5b506102b66102b1366004611e10565b6107c4565b6040519015158152602001610227565b3480156102d257600080fd5b506102fa6102e1366004611cca565b6007602052600090815260409020805460019091015482565b60408051928352602083019190915201610227565b34801561031b57600080fd5b5060045461032f906001600160a01b031681565b6040516001600160a01b039091168152602001610227565b34801561035357600080fd5b5060035461032f906001600160a01b031681565b34801561037357600080fd5b50610250610382366004611ec0565b6107dc565b34801561039357600080fd5b5061032f6103a2366004611edd565b61082a565b3480156103b357600080fd5b50610250610854565b3480156103c857600080fd5b506103dc6103d7366004611cca565b6108b7565b6040516102279190611ef6565b3480156103f557600080fd5b506102506109bd565b34801561040a57600080fd5b50610250610419366004611edd565b610b4a565b34801561042a57600080fd5b50610480610439366004611cca565b6040805180820190915260008082526020820152506001600160a01b0316600090815260076020908152604091829020825180840190935280548352600101549082015290565b60408051825181526020928301519281019290925201610227565b3480156104a757600080fd5b506001546102b690600160a81b900460ff1681565b3480156104c857600080fd5b506102b66104d7366004611f3a565b610b7f565b3480156104e857600080fd5b5060015460ff166102b6565b34801561050057600080fd5b5061021d61050f366004611cca565b610ba1565b34801561052057600080fd5b5061025061052f366004611cca565b610c7c565b34801561054057600080fd5b5061021d61054f366004611edd565b60066020526000908152604090205481565b34801561056d57600080fd5b5061021d610cce565b34801561058257600080fd5b50610250610d31565b34801561059757600080fd5b5061021d60025481565b3480156105ad57600080fd5b506102506105bc366004611fb0565b610d6d565b3480156105cd57600080fd5b5060015461010090046001600160a01b031661032f565b3480156105f057600080fd5b5061021d6105ff366004611cca565b611118565b34801561061057600080fd5b5061021d6111a5565b34801561062557600080fd5b50610250611215565b34801561063a57600080fd5b50610250610649366004612074565b6112c9565b34801561065a57600080fd5b50610250610669366004611cca565b61148c565b34801561067a57600080fd5b506103dc610689366004611cca565b61152d565b34801561069a57600080fd5b5061021d6116a7565b3480156106af57600080fd5b5061021d6106be3660046120fa565b6116f8565b6001600160a01b038116600090815260076020908152604080832081518083019092528054825260010154918101919091524290826201518061070586611118565b6020840151610714908661213c565b61071e9190612153565b6107289190612172565b9050606461073586610ba1565b610740906064612194565b61074a9083612153565b6107549190612172565b82516107609190612194565b95945050505050565b6001546001600160a01b036101009091041633146107a25760405162461bcd60e51b8152600401610799906121ac565b60405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b60006107d38260025485611736565b90505b92915050565b6001546001600160a01b0361010090910416331461080c5760405162461bcd60e51b8152600401610799906121ac565b60018054911515600160a81b0260ff60a81b19909216919091179055565b6008818154811061083a57600080fd5b6000918252602090912001546001600160a01b0316905081565b6001546001600160a01b036101009091041633146108845760405162461bcd60e51b8152600401610799906121ac565b6040514790339082156108fc029083906000818181858888f193505050501580156108b3573d6000803e3d6000fd5b5050565b6001600160a01b0381166000908152600560205260408120606091906108dc9061174c565b90508060000361091a5760005b604051908082528060200260200182016040528015610912578160200160208202803683370190505b509392505050565b60008167ffffffffffffffff81111561093557610935611ce5565b60405190808252806020026020018201604052801561095e578160200160208202803683370190505b50905060005b82811015610912576001600160a01b038516600090815260056020526040902061098e9082611756565b8282815181106109a0576109a06121e1565b6020908102919091010152806109b5816121f7565b915050610964565b6002600054036109df5760405162461bcd60e51b815260040161079990612210565b600260005560018054600160a81b900460ff16151514610a415760405162461bcd60e51b815260206004820152601860248201527f48617276657374206973206e6f742061637469766174656400000000000000006044820152606401610799565b33600081815260076020526040902090610a5a906106c3565b808255426001830155600480546040516370a0823160e01b815230928101929092526001600160a01b0316906370a0823190602401602060405180830381865afa158015610aac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad09190612247565b1015610b1e5760405162461bcd60e51b815260206004820152601c60248201527f52657761726420746f6b656e20616d6f756e7420697320736d616c6c000000006044820152606401610799565b805415610b3e57610b3e3382546004546001600160a01b03169190611762565b60009081905560019055565b6001546001600160a01b03610100909104163314610b7a5760405162461bcd60e51b8152600401610799906121ac565b600255565b6001600160a01b03821660009081526005602052604081206107d390836117b9565b6001600160a01b03811660009081526005602052604081208190610bc49061174c565b905060018111610bd75750600092915050565b60028110158015610be85750600481105b15610bf65750600a92915050565b60048110158015610c075750600681105b15610c155750600f92915050565b60068110158015610c27575060088111155b15610c355750601492915050565b60088110158015610c465750600a81105b15610c545750601992915050565b600a8110158015610c655750601481105b15610c735750601e92915050565b50603292915050565b6001546001600160a01b03610100909104163314610cac5760405162461bcd60e51b8152600401610799906121ac565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b600080805b600854811015610d2b57610d0d60088281548110610cf357610cf36121e1565b6000918252602090912001546001600160a01b03166106c3565b610d179083612194565b915080610d23816121f7565b915050610cd3565b50919050565b6001546001600160a01b03610100909104163314610d615760405162461bcd60e51b8152600401610799906121ac565b610d6b60006117d1565b565b600260005403610d8f5760405162461bcd60e51b815260040161079990612210565b600260005560015460ff1615610dda5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610799565b6003546001600160a01b031663e985e9c5336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604401602060405180830381865afa158015610e36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e5a9190612260565b610eb05760405162461bcd60e51b815260206004820152602160248201527f4e6f7420617070726f7665206e667420746f207374616b6572206164647265736044820152607360f81b6064820152608401610799565b610eb93361182b565b33600081815260076020526040902090610ed2906106c3565b815542600182015560005b8881101561110757610f96610f3b8b8b84818110610efd57610efd6121e1565b905060200201358a8a85818110610f1657610f166121e1565b90506020020135898986818110610f2f57610f2f6121e1565b905060200201356116f8565b858584818110610f4d57610f4d6121e1565b9050602002810190610f5f919061227d565b808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506107c492505050565b610fd15760405162461bcd60e51b815260206004820152600c60248201526b092dcecc2d8d2c84090c2e6d60a31b6044820152606401610799565b6003546001600160a01b03166342842e0e33308d8d86818110610ff657610ff66121e1565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561104d57600080fd5b505af1158015611061573d6000803e3d6000fd5b505050506110ab8a8a8381811061107a5761107a6121e1565b905060200201356005600061108c3390565b6001600160a01b031681526020810191909152604001600020906118d8565b508585828181106110be576110be6121e1565b90506020020135600660008c8c858181106110db576110db6121e1565b9050602002013581526020019081526020016000208190555080806110ff906121f7565b915050610edd565b505060016000555050505050505050565b6001600160a01b0381166000908152600560205260408120819061113b9061174c565b90506000805b8282101561119d576001600160a01b03851660009081526005602052604081206006919061116f9085611756565b815260200190815260200160002054816111899190612194565b905081611195816121f7565b925050611141565b949350505050565b600080805b600854811015610d2b576111f760056000600884815481106111ce576111ce6121e1565b60009182526020808320909101546001600160a01b03168352820192909252604001902061174c565b6112019083612194565b91508061120d816121f7565b9150506111aa565b6001546001600160a01b036101009091041633146112455760405162461bcd60e51b8152600401610799906121ac565b610d6b33600480546040516370a0823160e01b815230928101929092526001600160a01b0316906370a0823190602401602060405180830381865afa158015611292573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b69190612247565b6004546001600160a01b03169190611762565b6002600054036112eb5760405162461bcd60e51b815260040161079990612210565b6002600090815533808252600760205260409091209061130a906106c3565b815542600182015560005b82518110156114825761134133848381518110611334576113346121e1565b6020026020010151610b7f565b6113835760405162461bcd60e51b8152602060048201526013602482015272139bdd081cdd185ad959081d1a1a5cc81b999d606a1b6044820152606401610799565b6003546001600160a01b031663b88d4fde30338685815181106113a8576113a86121e1565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152608060648201526000608482015260a401600060405180830381600087803b15801561141057600080fd5b505af1158015611424573d6000803e3d6000fd5b5050505061146f83828151811061143d5761143d6121e1565b6020026020010151600560006114503390565b6001600160a01b031681526020810191909152604001600020906118e4565b508061147a816121f7565b915050611315565b5050600160005550565b6001546001600160a01b036101009091041633146114bc5760405162461bcd60e51b8152600401610799906121ac565b6001600160a01b0381166115215760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610799565b61152a816117d1565b50565b6003546040516370a0823160e01b81526001600160a01b0383811660048301526060926000929116906370a0823190602401602060405180830381865afa15801561157c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115a09190612247565b9050806000036115b15760006108e9565b60008167ffffffffffffffff8111156115cc576115cc611ce5565b6040519080825280602002602001820160405280156115f5578160200160208202803683370190505b50905060005b8281101561091257600354604051632f745c5960e01b81526001600160a01b0387811660048301526024820184905290911690632f745c5990604401602060405180830381865afa158015611654573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116789190612247565b82828151811061168a5761168a6121e1565b60209081029190910101528061169f816121f7565b9150506115fb565b600080805b600854811015610d2b5760006116d260056000600885815481106111ce576111ce6121e1565b11156116e6576116e3600183612194565b91505b806116f0816121f7565b9150506116ac565b6040805160208101849052908101849052606081018290526000906080016040516020818303038152906040528051906020012090505b9392505050565b60008261174385846118f0565b14949350505050565b60006107d6825490565b60006107d3838361195c565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526117b4908490611986565b505050565b600081815260018301602052604081205415156107d3565b600180546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b60085481101561188557816001600160a01b031660088281548110611855576118556121e1565b6000918252602090912001546001600160a01b031603611873575050565b8061187d816121f7565b91505061182e565b50600880546001810182556000919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30180546001600160a01b0319166001600160a01b0392909216919091179055565b60006107d38383611a58565b60006107d38383611aa7565b600081815b8451811015610912576000858281518110611912576119126121e1565b602002602001015190508083116119385760008381526020829052604090209250611949565b600081815260208490526040902092505b5080611954816121f7565b9150506118f5565b6000826000018281548110611973576119736121e1565b9060005260206000200154905092915050565b60006119db826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611b9a9092919063ffffffff16565b8051909150156117b457808060200190518101906119f99190612260565b6117b45760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610799565b6000818152600183016020526040812054611a9f575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556107d6565b5060006107d6565b60008181526001830160205260408120548015611b90576000611acb60018361213c565b8554909150600090611adf9060019061213c565b9050818114611b44576000866000018281548110611aff57611aff6121e1565b9060005260206000200154905080876000018481548110611b2257611b226121e1565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611b5557611b556122c7565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506107d6565b60009150506107d6565b606061119d8484600085856001600160a01b0385163b611bfc5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610799565b600080866001600160a01b03168587604051611c18919061230d565b60006040518083038185875af1925050503d8060008114611c55576040519150601f19603f3d011682016040523d82523d6000602084013e611c5a565b606091505b5091509150611c6a828286611c75565b979650505050505050565b60608315611c8457508161172f565b825115611c945782518084602001fd5b8160405162461bcd60e51b81526004016107999190612329565b80356001600160a01b0381168114611cc557600080fd5b919050565b600060208284031215611cdc57600080fd5b6107d382611cae565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611d2457611d24611ce5565b604052919050565b60008060008060808587031215611d4257600080fd5b611d4b85611cae565b93506020611d5a818701611cae565b935060408601359250606086013567ffffffffffffffff80821115611d7e57600080fd5b818801915088601f830112611d9257600080fd5b813581811115611da457611da4611ce5565b611db6601f8201601f19168501611cfb565b91508082528984828501011115611dcc57600080fd5b808484018584013760008482840101525080935050505092959194509250565b600067ffffffffffffffff821115611e0657611e06611ce5565b5060051b60200190565b60008060408385031215611e2357600080fd5b8235915060208084013567ffffffffffffffff811115611e4257600080fd5b8401601f81018613611e5357600080fd5b8035611e66611e6182611dec565b611cfb565b81815260059190911b82018301908381019088831115611e8557600080fd5b928401925b82841015611ea357833582529284019290840190611e8a565b80955050505050509250929050565b801515811461152a57600080fd5b600060208284031215611ed257600080fd5b813561172f81611eb2565b600060208284031215611eef57600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b81811015611f2e57835183529284019291840191600101611f12565b50909695505050505050565b60008060408385031215611f4d57600080fd5b611f5683611cae565b946020939093013593505050565b60008083601f840112611f7657600080fd5b50813567ffffffffffffffff811115611f8e57600080fd5b6020830191508360208260051b8501011115611fa957600080fd5b9250929050565b6000806000806000806000806080898b031215611fcc57600080fd5b883567ffffffffffffffff80821115611fe457600080fd5b611ff08c838d01611f64565b909a50985060208b013591508082111561200957600080fd5b6120158c838d01611f64565b909850965060408b013591508082111561202e57600080fd5b61203a8c838d01611f64565b909650945060608b013591508082111561205357600080fd5b506120608b828c01611f64565b999c989b5096995094979396929594505050565b6000602080838503121561208757600080fd5b823567ffffffffffffffff81111561209e57600080fd5b8301601f810185136120af57600080fd5b80356120bd611e6182611dec565b81815260059190911b820183019083810190878311156120dc57600080fd5b928401925b82841015611c6a578335825292840192908401906120e1565b60008060006060848603121561210f57600080fd5b505081359360208301359350604090920135919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561214e5761214e612126565b500390565b600081600019048311821515161561216d5761216d612126565b500290565b60008261218f57634e487b7160e01b600052601260045260246000fd5b500490565b600082198211156121a7576121a7612126565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60006001820161220957612209612126565b5060010190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60006020828403121561225957600080fd5b5051919050565b60006020828403121561227257600080fd5b815161172f81611eb2565b6000808335601e1984360301811261229457600080fd5b83018035915067ffffffffffffffff8211156122af57600080fd5b6020019150600581901b3603821315611fa957600080fd5b634e487b7160e01b600052603160045260246000fd5b60005b838110156122f85781810151838201526020016122e0565b83811115612307576000848401525b50505050565b6000825161231f8184602087016122dd565b9190910192915050565b60208152600082518060208401526123488160408501602087016122dd565b601f01601f1916919091016040019291505056fea2646970667358221220466aba356d46585e91caf7d2ead1a504eaf1c285fa749f11a1b3d621f236b4b364736f6c634300080d0033000000000000000000000000c7a8ff4115308540a61b5357d806f068d3a47a1d000000000000000000000000231ee5310e1db4427d9852343045b0a1479cbdf8

Deployed Bytecode

0x6080604052600436106101f15760003560e01c80635c975abb1161010d5780638da5cb5b116100a0578063e449f3411161006f578063e449f3411461062e578063f2fde38b1461064e578063f36c6fbf1461066e578063ff01f7361461068e578063ff7d4cee146106a357600080fd5b80638da5cb5b146105c157806391875030146105e4578063920387b414610604578063ca628c781461061957600080fd5b80636dfa8d99116100dc5780636dfa8d9914610561578063715018a6146105765780637c7940971461058b57806383348353146105a157600080fd5b80635c975abb146104dc57806367ba3d90146104f457806369d03738146105145780636cd954471461053457600080fd5b8063348e50c61161018557806346c440b61161015457806346c440b6146103fe5780634ead43271461041e5780634f525c941461049b5780635451da1b146104bc57600080fd5b8063348e50c6146103875780633ccfd60b146103a757806340376ba2146103bc5780634641257d146103e957600080fd5b80631959a002116101c15780631959a002146102c65780631ff51c861461030f578063232135d61461034757806324494bde1461036757600080fd5b80628cc262146101fd578063110cc21a14610230578063150b7a0214610252578063155451871461029657600080fd5b366101f857005b600080fd5b34801561020957600080fd5b5061021d610218366004611cca565b6106c3565b6040519081526020015b60405180910390f35b34801561023c57600080fd5b5061025061024b366004611cca565b610769565b005b34801561025e57600080fd5b5061027d61026d366004611d2c565b630a85bd0160e11b949350505050565b6040516001600160e01b03199091168152602001610227565b3480156102a257600080fd5b506102b66102b1366004611e10565b6107c4565b6040519015158152602001610227565b3480156102d257600080fd5b506102fa6102e1366004611cca565b6007602052600090815260409020805460019091015482565b60408051928352602083019190915201610227565b34801561031b57600080fd5b5060045461032f906001600160a01b031681565b6040516001600160a01b039091168152602001610227565b34801561035357600080fd5b5060035461032f906001600160a01b031681565b34801561037357600080fd5b50610250610382366004611ec0565b6107dc565b34801561039357600080fd5b5061032f6103a2366004611edd565b61082a565b3480156103b357600080fd5b50610250610854565b3480156103c857600080fd5b506103dc6103d7366004611cca565b6108b7565b6040516102279190611ef6565b3480156103f557600080fd5b506102506109bd565b34801561040a57600080fd5b50610250610419366004611edd565b610b4a565b34801561042a57600080fd5b50610480610439366004611cca565b6040805180820190915260008082526020820152506001600160a01b0316600090815260076020908152604091829020825180840190935280548352600101549082015290565b60408051825181526020928301519281019290925201610227565b3480156104a757600080fd5b506001546102b690600160a81b900460ff1681565b3480156104c857600080fd5b506102b66104d7366004611f3a565b610b7f565b3480156104e857600080fd5b5060015460ff166102b6565b34801561050057600080fd5b5061021d61050f366004611cca565b610ba1565b34801561052057600080fd5b5061025061052f366004611cca565b610c7c565b34801561054057600080fd5b5061021d61054f366004611edd565b60066020526000908152604090205481565b34801561056d57600080fd5b5061021d610cce565b34801561058257600080fd5b50610250610d31565b34801561059757600080fd5b5061021d60025481565b3480156105ad57600080fd5b506102506105bc366004611fb0565b610d6d565b3480156105cd57600080fd5b5060015461010090046001600160a01b031661032f565b3480156105f057600080fd5b5061021d6105ff366004611cca565b611118565b34801561061057600080fd5b5061021d6111a5565b34801561062557600080fd5b50610250611215565b34801561063a57600080fd5b50610250610649366004612074565b6112c9565b34801561065a57600080fd5b50610250610669366004611cca565b61148c565b34801561067a57600080fd5b506103dc610689366004611cca565b61152d565b34801561069a57600080fd5b5061021d6116a7565b3480156106af57600080fd5b5061021d6106be3660046120fa565b6116f8565b6001600160a01b038116600090815260076020908152604080832081518083019092528054825260010154918101919091524290826201518061070586611118565b6020840151610714908661213c565b61071e9190612153565b6107289190612172565b9050606461073586610ba1565b610740906064612194565b61074a9083612153565b6107549190612172565b82516107609190612194565b95945050505050565b6001546001600160a01b036101009091041633146107a25760405162461bcd60e51b8152600401610799906121ac565b60405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b60006107d38260025485611736565b90505b92915050565b6001546001600160a01b0361010090910416331461080c5760405162461bcd60e51b8152600401610799906121ac565b60018054911515600160a81b0260ff60a81b19909216919091179055565b6008818154811061083a57600080fd5b6000918252602090912001546001600160a01b0316905081565b6001546001600160a01b036101009091041633146108845760405162461bcd60e51b8152600401610799906121ac565b6040514790339082156108fc029083906000818181858888f193505050501580156108b3573d6000803e3d6000fd5b5050565b6001600160a01b0381166000908152600560205260408120606091906108dc9061174c565b90508060000361091a5760005b604051908082528060200260200182016040528015610912578160200160208202803683370190505b509392505050565b60008167ffffffffffffffff81111561093557610935611ce5565b60405190808252806020026020018201604052801561095e578160200160208202803683370190505b50905060005b82811015610912576001600160a01b038516600090815260056020526040902061098e9082611756565b8282815181106109a0576109a06121e1565b6020908102919091010152806109b5816121f7565b915050610964565b6002600054036109df5760405162461bcd60e51b815260040161079990612210565b600260005560018054600160a81b900460ff16151514610a415760405162461bcd60e51b815260206004820152601860248201527f48617276657374206973206e6f742061637469766174656400000000000000006044820152606401610799565b33600081815260076020526040902090610a5a906106c3565b808255426001830155600480546040516370a0823160e01b815230928101929092526001600160a01b0316906370a0823190602401602060405180830381865afa158015610aac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad09190612247565b1015610b1e5760405162461bcd60e51b815260206004820152601c60248201527f52657761726420746f6b656e20616d6f756e7420697320736d616c6c000000006044820152606401610799565b805415610b3e57610b3e3382546004546001600160a01b03169190611762565b60009081905560019055565b6001546001600160a01b03610100909104163314610b7a5760405162461bcd60e51b8152600401610799906121ac565b600255565b6001600160a01b03821660009081526005602052604081206107d390836117b9565b6001600160a01b03811660009081526005602052604081208190610bc49061174c565b905060018111610bd75750600092915050565b60028110158015610be85750600481105b15610bf65750600a92915050565b60048110158015610c075750600681105b15610c155750600f92915050565b60068110158015610c27575060088111155b15610c355750601492915050565b60088110158015610c465750600a81105b15610c545750601992915050565b600a8110158015610c655750601481105b15610c735750601e92915050565b50603292915050565b6001546001600160a01b03610100909104163314610cac5760405162461bcd60e51b8152600401610799906121ac565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b600080805b600854811015610d2b57610d0d60088281548110610cf357610cf36121e1565b6000918252602090912001546001600160a01b03166106c3565b610d179083612194565b915080610d23816121f7565b915050610cd3565b50919050565b6001546001600160a01b03610100909104163314610d615760405162461bcd60e51b8152600401610799906121ac565b610d6b60006117d1565b565b600260005403610d8f5760405162461bcd60e51b815260040161079990612210565b600260005560015460ff1615610dda5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610799565b6003546001600160a01b031663e985e9c5336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604401602060405180830381865afa158015610e36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e5a9190612260565b610eb05760405162461bcd60e51b815260206004820152602160248201527f4e6f7420617070726f7665206e667420746f207374616b6572206164647265736044820152607360f81b6064820152608401610799565b610eb93361182b565b33600081815260076020526040902090610ed2906106c3565b815542600182015560005b8881101561110757610f96610f3b8b8b84818110610efd57610efd6121e1565b905060200201358a8a85818110610f1657610f166121e1565b90506020020135898986818110610f2f57610f2f6121e1565b905060200201356116f8565b858584818110610f4d57610f4d6121e1565b9050602002810190610f5f919061227d565b808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506107c492505050565b610fd15760405162461bcd60e51b815260206004820152600c60248201526b092dcecc2d8d2c84090c2e6d60a31b6044820152606401610799565b6003546001600160a01b03166342842e0e33308d8d86818110610ff657610ff66121e1565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561104d57600080fd5b505af1158015611061573d6000803e3d6000fd5b505050506110ab8a8a8381811061107a5761107a6121e1565b905060200201356005600061108c3390565b6001600160a01b031681526020810191909152604001600020906118d8565b508585828181106110be576110be6121e1565b90506020020135600660008c8c858181106110db576110db6121e1565b9050602002013581526020019081526020016000208190555080806110ff906121f7565b915050610edd565b505060016000555050505050505050565b6001600160a01b0381166000908152600560205260408120819061113b9061174c565b90506000805b8282101561119d576001600160a01b03851660009081526005602052604081206006919061116f9085611756565b815260200190815260200160002054816111899190612194565b905081611195816121f7565b925050611141565b949350505050565b600080805b600854811015610d2b576111f760056000600884815481106111ce576111ce6121e1565b60009182526020808320909101546001600160a01b03168352820192909252604001902061174c565b6112019083612194565b91508061120d816121f7565b9150506111aa565b6001546001600160a01b036101009091041633146112455760405162461bcd60e51b8152600401610799906121ac565b610d6b33600480546040516370a0823160e01b815230928101929092526001600160a01b0316906370a0823190602401602060405180830381865afa158015611292573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b69190612247565b6004546001600160a01b03169190611762565b6002600054036112eb5760405162461bcd60e51b815260040161079990612210565b6002600090815533808252600760205260409091209061130a906106c3565b815542600182015560005b82518110156114825761134133848381518110611334576113346121e1565b6020026020010151610b7f565b6113835760405162461bcd60e51b8152602060048201526013602482015272139bdd081cdd185ad959081d1a1a5cc81b999d606a1b6044820152606401610799565b6003546001600160a01b031663b88d4fde30338685815181106113a8576113a86121e1565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152608060648201526000608482015260a401600060405180830381600087803b15801561141057600080fd5b505af1158015611424573d6000803e3d6000fd5b5050505061146f83828151811061143d5761143d6121e1565b6020026020010151600560006114503390565b6001600160a01b031681526020810191909152604001600020906118e4565b508061147a816121f7565b915050611315565b5050600160005550565b6001546001600160a01b036101009091041633146114bc5760405162461bcd60e51b8152600401610799906121ac565b6001600160a01b0381166115215760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610799565b61152a816117d1565b50565b6003546040516370a0823160e01b81526001600160a01b0383811660048301526060926000929116906370a0823190602401602060405180830381865afa15801561157c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115a09190612247565b9050806000036115b15760006108e9565b60008167ffffffffffffffff8111156115cc576115cc611ce5565b6040519080825280602002602001820160405280156115f5578160200160208202803683370190505b50905060005b8281101561091257600354604051632f745c5960e01b81526001600160a01b0387811660048301526024820184905290911690632f745c5990604401602060405180830381865afa158015611654573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116789190612247565b82828151811061168a5761168a6121e1565b60209081029190910101528061169f816121f7565b9150506115fb565b600080805b600854811015610d2b5760006116d260056000600885815481106111ce576111ce6121e1565b11156116e6576116e3600183612194565b91505b806116f0816121f7565b9150506116ac565b6040805160208101849052908101849052606081018290526000906080016040516020818303038152906040528051906020012090505b9392505050565b60008261174385846118f0565b14949350505050565b60006107d6825490565b60006107d3838361195c565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526117b4908490611986565b505050565b600081815260018301602052604081205415156107d3565b600180546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b60085481101561188557816001600160a01b031660088281548110611855576118556121e1565b6000918252602090912001546001600160a01b031603611873575050565b8061187d816121f7565b91505061182e565b50600880546001810182556000919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30180546001600160a01b0319166001600160a01b0392909216919091179055565b60006107d38383611a58565b60006107d38383611aa7565b600081815b8451811015610912576000858281518110611912576119126121e1565b602002602001015190508083116119385760008381526020829052604090209250611949565b600081815260208490526040902092505b5080611954816121f7565b9150506118f5565b6000826000018281548110611973576119736121e1565b9060005260206000200154905092915050565b60006119db826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611b9a9092919063ffffffff16565b8051909150156117b457808060200190518101906119f99190612260565b6117b45760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610799565b6000818152600183016020526040812054611a9f575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556107d6565b5060006107d6565b60008181526001830160205260408120548015611b90576000611acb60018361213c565b8554909150600090611adf9060019061213c565b9050818114611b44576000866000018281548110611aff57611aff6121e1565b9060005260206000200154905080876000018481548110611b2257611b226121e1565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611b5557611b556122c7565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506107d6565b60009150506107d6565b606061119d8484600085856001600160a01b0385163b611bfc5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610799565b600080866001600160a01b03168587604051611c18919061230d565b60006040518083038185875af1925050503d8060008114611c55576040519150601f19603f3d011682016040523d82523d6000602084013e611c5a565b606091505b5091509150611c6a828286611c75565b979650505050505050565b60608315611c8457508161172f565b825115611c945782518084602001fd5b8160405162461bcd60e51b81526004016107999190612329565b80356001600160a01b0381168114611cc557600080fd5b919050565b600060208284031215611cdc57600080fd5b6107d382611cae565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611d2457611d24611ce5565b604052919050565b60008060008060808587031215611d4257600080fd5b611d4b85611cae565b93506020611d5a818701611cae565b935060408601359250606086013567ffffffffffffffff80821115611d7e57600080fd5b818801915088601f830112611d9257600080fd5b813581811115611da457611da4611ce5565b611db6601f8201601f19168501611cfb565b91508082528984828501011115611dcc57600080fd5b808484018584013760008482840101525080935050505092959194509250565b600067ffffffffffffffff821115611e0657611e06611ce5565b5060051b60200190565b60008060408385031215611e2357600080fd5b8235915060208084013567ffffffffffffffff811115611e4257600080fd5b8401601f81018613611e5357600080fd5b8035611e66611e6182611dec565b611cfb565b81815260059190911b82018301908381019088831115611e8557600080fd5b928401925b82841015611ea357833582529284019290840190611e8a565b80955050505050509250929050565b801515811461152a57600080fd5b600060208284031215611ed257600080fd5b813561172f81611eb2565b600060208284031215611eef57600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b81811015611f2e57835183529284019291840191600101611f12565b50909695505050505050565b60008060408385031215611f4d57600080fd5b611f5683611cae565b946020939093013593505050565b60008083601f840112611f7657600080fd5b50813567ffffffffffffffff811115611f8e57600080fd5b6020830191508360208260051b8501011115611fa957600080fd5b9250929050565b6000806000806000806000806080898b031215611fcc57600080fd5b883567ffffffffffffffff80821115611fe457600080fd5b611ff08c838d01611f64565b909a50985060208b013591508082111561200957600080fd5b6120158c838d01611f64565b909850965060408b013591508082111561202e57600080fd5b61203a8c838d01611f64565b909650945060608b013591508082111561205357600080fd5b506120608b828c01611f64565b999c989b5096995094979396929594505050565b6000602080838503121561208757600080fd5b823567ffffffffffffffff81111561209e57600080fd5b8301601f810185136120af57600080fd5b80356120bd611e6182611dec565b81815260059190911b820183019083810190878311156120dc57600080fd5b928401925b82841015611c6a578335825292840192908401906120e1565b60008060006060848603121561210f57600080fd5b505081359360208301359350604090920135919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561214e5761214e612126565b500390565b600081600019048311821515161561216d5761216d612126565b500290565b60008261218f57634e487b7160e01b600052601260045260246000fd5b500490565b600082198211156121a7576121a7612126565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60006001820161220957612209612126565b5060010190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60006020828403121561225957600080fd5b5051919050565b60006020828403121561227257600080fd5b815161172f81611eb2565b6000808335601e1984360301811261229457600080fd5b83018035915067ffffffffffffffff8211156122af57600080fd5b6020019150600581901b3603821315611fa957600080fd5b634e487b7160e01b600052603160045260246000fd5b60005b838110156122f85781810151838201526020016122e0565b83811115612307576000848401525b50505050565b6000825161231f8184602087016122dd565b9190910192915050565b60208152600082518060208401526123488160408501602087016122dd565b601f01601f1916919091016040019291505056fea2646970667358221220466aba356d46585e91caf7d2ead1a504eaf1c285fa749f11a1b3d621f236b4b364736f6c634300080d0033

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

000000000000000000000000c7a8ff4115308540a61b5357d806f068d3a47a1d000000000000000000000000231ee5310e1db4427d9852343045b0a1479cbdf8

-----Decoded View---------------
Arg [0] : _nftAddress (address): 0xc7a8ff4115308540a61B5357d806F068d3A47A1D
Arg [1] : _rewardTokenAddress (address): 0x231ee5310e1dB4427d9852343045B0a1479cBdF8

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000c7a8ff4115308540a61b5357d806f068d3a47a1d
Arg [1] : 000000000000000000000000231ee5310e1db4427d9852343045b0a1479cbdf8


Deployed Bytecode Sourcemap

73949:8541:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79005:339;;;;;;;;;;-1:-1:-1;79005:339:0;;;;;:::i;:::-;;:::i;:::-;;;529:25:1;;;517:2;502:18;79005:339:0;;;;;;;;76218:126;;;;;;;;;;-1:-1:-1;76218:126:0;;;;;:::i;:::-;;:::i;:::-;;82286:164;;;;;;;;;;-1:-1:-1;82286:164:0;;;;;:::i;:::-;-1:-1:-1;;;82286:164:0;;;;;;;;;;-1:-1:-1;;;;;;2124:33:1;;;2106:52;;2094:2;2079:18;82286:164:0;1962:202:1;76496:166:0;;;;;;;;;;-1:-1:-1;76496:166:0;;;;;:::i;:::-;;:::i;:::-;;;3486:14:1;;3479:22;3461:41;;3449:2;3434:18;76496:166:0;3321:187:1;74642:44:0;;;;;;;;;;-1:-1:-1;74642:44:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;3687:25:1;;;3743:2;3728:18;;3721:34;;;;3660:18;74642:44:0;3513:248:1;74387:35:0;;;;;;;;;;-1:-1:-1;74387:35:0;;;;-1:-1:-1;;;;;74387:35:0;;;;;;-1:-1:-1;;;;;3930:32:1;;;3912:51;;3900:2;3885:18;74387:35:0;3766:203:1;74348:32:0;;;;;;;;;;-1:-1:-1;74348:32:0;;;;-1:-1:-1;;;;;74348:32:0;;;75001:107;;;;;;;;;;-1:-1:-1;75001:107:0;;;;;:::i;:::-;;:::i;74695:27::-;;;;;;;;;;-1:-1:-1;74695:27:0;;;;;:::i;:::-;;:::i;75116:147::-;;;;;;;;;;;;;:::i;77306:506::-;;;;;;;;;;-1:-1:-1;77306:506:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;81722:556::-;;;;;;;;;;;;;:::i;76352:89::-;;;;;;;;;;-1:-1:-1;76352:89:0;;;;;:::i;:::-;;:::i;77174:120::-;;;;;;;;;;-1:-1:-1;77174:120:0;;;;;:::i;:::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;77270:16:0;;;;;:8;:16;;;;;;;;;77263:23;;;;;;;;;;;;;;;;;;;;77174:120;;;;;5566:13:1;;5548:32;;5636:4;5624:17;;;5618:24;5596:20;;;5589:54;;;;5521:18;77174:120:0;5350:299:1;74272:34:0;;;;;;;;;;-1:-1:-1;74272:34:0;;;;-1:-1:-1;;;74272:34:0;;;;;;77820:145;;;;;;;;;;-1:-1:-1;77820:145:0;;;;;:::i;:::-;;:::i;29972:86::-;;;;;;;;;;-1:-1:-1;30043:7:0;;;;29972:86;;78343:654;;;;;;;;;;-1:-1:-1;78343:654:0;;;;;:::i;:::-;;:::i;76101:111::-;;;;;;;;;;-1:-1:-1;76101:111:0;;;;;:::i;:::-;;:::i;74588:47::-;;;;;;;;;;-1:-1:-1;74588:47:0;;;;;:::i;:::-;;;;;;;;;;;;;;79352:248;;;;;;;;;;;;;:::i;32871:103::-;;;;;;;;;;;;;:::i;74315:24::-;;;;;;;;;;;;;;;;80173:964;;;;;;;;;;-1:-1:-1;80173:964:0;;;;;:::i;:::-;;:::i;32220:87::-;;;;;;;;;;-1:-1:-1;32293:6:0;;;;;-1:-1:-1;;;;;32293:6:0;32220:87;;77973:362;;;;;;;;;;-1:-1:-1;77973:362:0;;;;;:::i;:::-;;:::i;79608:262::-;;;;;;;;;;;;;:::i;75271:173::-;;;;;;;;;;;;;:::i;81145:569::-;;;;;;;;;;-1:-1:-1;81145:569:0;;;;;:::i;:::-;;:::i;33129:201::-;;;;;;;;;;-1:-1:-1;33129:201:0;;;;;:::i;:::-;;:::i;75452:560::-;;;;;;;;;;-1:-1:-1;75452:560:0;;;;;:::i;:::-;;:::i;79878:281::-;;;;;;;;;;;;;:::i;76766:169::-;;;;;;;;;;-1:-1:-1;76766:169:0;;;;;:::i;:::-;;:::i;79005:339::-;-1:-1:-1;;;;;79150:17:0;;79059:7;79150:17;;;:8;:17;;;;;;;;79127:40;;;;;;;;;;;;;;;;;;;;;;79099:15;;79059:7;79254:6;79230:20;79159:7;79230:11;:20::i;:::-;79210:16;;;;79198:28;;:9;:28;:::i;:::-;79197:53;;;;:::i;:::-;:64;;;;:::i;:::-;79180:81;;79333:3;79312:17;79321:7;79312:8;:17::i;:::-;79306:23;;:3;:23;:::i;:::-;79296:34;;:6;:34;:::i;:::-;:40;;;;:::i;:::-;79281:12;;:55;;;;:::i;:::-;79274:62;79005:339;-1:-1:-1;;;;;79005:339:0:o;76218:126::-;32293:6;;-1:-1:-1;;;;;32293:6:0;;;;;28706:10;32440:23;32432:68;;;;-1:-1:-1;;;32432:68:0;;;;;;;:::i;:::-;;;;;;;;;76300:20:::1;:36:::0;;-1:-1:-1;;;;;;76300:36:0::1;-1:-1:-1::0;;;;;76300:36:0;;;::::1;::::0;;;::::1;::::0;;76218:126::o;76496:166::-;76582:4;76606:48;76625:6;76633:9;;76644;76606:18;:48::i;:::-;76599:55;;76496:166;;;;;:::o;75001:107::-;32293:6;;-1:-1:-1;;;;;32293:6:0;;;;;28706:10;32440:23;32432:68;;;;-1:-1:-1;;;32432:68:0;;;;;;;:::i;:::-;75074:14:::1;:26:::0;;;::::1;;-1:-1:-1::0;;;75074:26:0::1;-1:-1:-1::0;;;;75074:26:0;;::::1;::::0;;;::::1;::::0;;75001:107::o;74695:27::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;74695:27:0;;-1:-1:-1;74695:27:0;:::o;75116:147::-;32293:6;;-1:-1:-1;;;;;32293:6:0;;;;;28706:10;32440:23;32432:68;;;;-1:-1:-1;;;32432:68:0;;;;;;;:::i;:::-;75216:39:::1;::::0;75184:21:::1;::::0;28706:10;;75216:39;::::1;;;::::0;75184:21;;75216:39:::1;::::0;;;75184:21;28706:10;75216:39;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;75155:108;75116:147::o:0;77306:506::-;-1:-1:-1;;;;;77414:20:0;;77393:18;77414:20;;;:12;:20;;;;;77365:16;;77393:18;77414:29;;:27;:29::i;:::-;77393:50;;77458:10;77472:1;77458:15;77454:351;;77511:1;77497:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;77497:16:0;-1:-1:-1;77490:23:0;77306:506;-1:-1:-1;;;77306:506:0:o;77454:351::-;77546:23;77586:10;77572:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;77572:25:0;;77546:51;;77612:13;77640:126;77664:10;77656:5;:18;77640:126;;;-1:-1:-1;;;;;77720:20:0;;;;;;:12;:20;;;;;:30;;77744:5;77720:23;:30::i;:::-;77704:6;77711:5;77704:13;;;;;;;;:::i;:::-;;;;;;;;;;:46;77676:7;;;;:::i;:::-;;;;77640:126;;81722:556;1812:1;2410:7;;:19;2402:63;;;;-1:-1:-1;;;2402:63:0;;;;;;;:::i;:::-;1812:1;2543:7;:18;81780:14:::1;::::0;;-1:-1:-1;;;81780:14:0;::::1;;;:22;;;81772:59;;;::::0;-1:-1:-1;;;81772:59:0;;11105:2:1;81772:59:0::1;::::0;::::1;11087:21:1::0;11144:2;11124:18;;;11117:30;11183:26;11163:18;;;11156:54;11227:18;;81772:59:0::1;10903:348:1::0;81772:59:0::1;28706:10:::0;81852:21:::1;81876:22:::0;;;:8:::1;:22;::::0;;;;;81924:20:::1;::::0;79005:339;:::i;81924:20::-:1;81909:35:::0;;;81974:15:::1;81955:16;::::0;::::1;:34:::0;82017:20:::1;::::0;;82010:53:::1;::::0;-1:-1:-1;;;82010:53:0;;82057:4:::1;82010:53:::0;;::::1;3912:51:1::0;;;;-1:-1:-1;;;;;82017:20:0::1;::::0;82010:38:::1;::::0;3885:18:1;;82010:53:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:69;;82002:109;;;::::0;-1:-1:-1;;;82002:109:0;;11647:2:1;82002:109:0::1;::::0;::::1;11629:21:1::0;11686:2;11666:18;;;11659:30;11725;11705:18;;;11698:58;11773:18;;82002:109:0::1;11445:352:1::0;82002:109:0::1;82128:12:::0;;:16;82124:118:::1;;82161:69;28706:10:::0;82217:12;;82168:20:::1;::::0;-1:-1:-1;;;;;82168:20:0::1;::::0;82161:69;:41:::1;:69::i;:::-;82269:1;82254:16:::0;;;;1768:1;2722:22;;81722:556::o;76352:89::-;32293:6;;-1:-1:-1;;;;;32293:6:0;;;;;28706:10;32440:23;32432:68;;;;-1:-1:-1;;;32432:68:0;;;;;;;:::i;:::-;76416:9:::1;:17:::0;76352:89::o;77820:145::-;-1:-1:-1;;;;;77918:21:0;;77894:4;77918:21;;;:12;:21;;;;;:39;;77949:7;77918:30;:39::i;78343:654::-;-1:-1:-1;;;;;78440:21:0;;78399:7;78440:21;;;:12;:21;;;;;78399:7;;78440:30;;:28;:30::i;:::-;78419:51;;78501:1;78487:10;:15;78483:507;;-1:-1:-1;78526:1:0;;78343:654;-1:-1:-1;;78343:654:0:o;78483:507::-;78563:1;78549:10;:15;;:33;;;;;78581:1;78568:10;:14;78549:33;78545:445;;;-1:-1:-1;78606:2:0;;78343:654;-1:-1:-1;;78343:654:0:o;78545:445::-;78644:1;78630:10;:15;;:33;;;;;78662:1;78649:10;:14;78630:33;78626:364;;;-1:-1:-1;78687:2:0;;78343:654;-1:-1:-1;;78343:654:0:o;78626:364::-;78725:1;78711:10;:15;;:34;;;;;78744:1;78730:10;:15;;78711:34;78707:283;;;-1:-1:-1;78769:2:0;;78343:654;-1:-1:-1;;78343:654:0:o;78707:283::-;78807:1;78793:10;:15;;:34;;;;;78825:2;78812:10;:15;78793:34;78789:201;;;-1:-1:-1;78851:2:0;;78343:654;-1:-1:-1;;78343:654:0:o;78789:201::-;78889:2;78875:10;:16;;:35;;;;;78908:2;78895:10;:15;78875:35;78871:119;;;-1:-1:-1;78934:2:0;;78343:654;-1:-1:-1;;78343:654:0:o;78871:119::-;-1:-1:-1;78976:2:0;;78343:654;-1:-1:-1;;78343:654:0:o;76101:111::-;32293:6;;-1:-1:-1;;;;;32293:6:0;;;;;28706:10;32440:23;32432:68;;;;-1:-1:-1;;;32432:68:0;;;;;;;:::i;:::-;76173:17:::1;:31:::0;;-1:-1:-1;;;;;;76173:31:0::1;-1:-1:-1::0;;;;;76173:31:0;;;::::1;::::0;;;::::1;::::0;;76101:111::o;79352:248::-;79396:7;;;79451:112;79475:10;:17;79471:21;;79451:112;;;79530:21;79537:10;79548:1;79537:13;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;79537:13:0;79530:6;:21::i;:::-;79514:37;;;;:::i;:::-;;-1:-1:-1;79494:3:0;;;;:::i;:::-;;;;79451:112;;;-1:-1:-1;79580:12:0;79352:248;-1:-1:-1;79352:248:0:o;32871:103::-;32293:6;;-1:-1:-1;;;;;32293:6:0;;;;;28706:10;32440:23;32432:68;;;;-1:-1:-1;;;32432:68:0;;;;;;;:::i;:::-;32936:30:::1;32963:1;32936:18;:30::i;:::-;32871:103::o:0;80173:964::-;1812:1;2410:7;;:19;2402:63;;;;-1:-1:-1;;;2402:63:0;;;;;;;:::i;:::-;1812:1;2543:7;:18;30043:7;;;;30297:9:::1;30289:38;;;::::0;-1:-1:-1;;;30289:38:0;;12004:2:1;30289:38:0::1;::::0;::::1;11986:21:1::0;12043:2;12023:18;;;12016:30;-1:-1:-1;;;12062:18:1;;;12055:46;12118:18;;30289:38:0::1;11802:340:1::0;30289:38:0::1;80381:17:::2;::::0;-1:-1:-1;;;;;80381:17:0::2;80373:43;28706:10:::0;80373:71:::2;::::0;-1:-1:-1;;;;;;80373:71:0::2;::::0;;;;;;-1:-1:-1;;;;;12377:15:1;;;80373:71:0::2;::::0;::::2;12359:34:1::0;80438:4:0::2;12409:18:1::0;;;12402:43;12294:18;;80373:71:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;80365:116;;;::::0;-1:-1:-1;;;80365:116:0;;12908:2:1;80365:116:0::2;::::0;::::2;12890:21:1::0;12947:2;12927:18;;;12920:30;12986:34;12966:18;;;12959:62;-1:-1:-1;;;13037:18:1;;;13030:31;13078:19;;80365:116:0::2;12706:397:1::0;80365:116:0::2;80494:27;28706:10:::0;80494:13:::2;:27::i;:::-;28706:10:::0;80534:21:::2;80558:22:::0;;;:8:::2;:22;::::0;;;;;80606:20:::2;::::0;79005:339;:::i;80606:20::-:2;80591:35:::0;;80656:15:::2;80637:16;::::0;::::2;:34:::0;80591:12:::2;80684:446;80704:23:::0;;::::2;80684:446;;;80758:84;80770:56;80777:12;;80790:1;80777:15;;;;;;;:::i;:::-;;;;;;;80794:10;;80805:1;80794:13;;;;;;;:::i;:::-;;;;;;;80809;;80823:1;80809:16;;;;;;;:::i;:::-;;;;;;;80770:6;:56::i;:::-;80828:10;;80839:1;80828:13;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;80758:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;::::0;;;;-1:-1:-1;80758:11:0::2;::::0;-1:-1:-1;;;80758:84:0:i:2;:::-;80749:110;;;::::0;-1:-1:-1;;;80749:110:0;;13860:2:1;80749:110:0::2;::::0;::::2;13842:21:1::0;13899:2;13879:18;;;13872:30;-1:-1:-1;;;13918:18:1;;;13911:42;13970:18;;80749:110:0::2;13658:336:1::0;80749:110:0::2;80896:17;::::0;-1:-1:-1;;;;;80896:17:0::2;80888:43;28706:10:::0;80954:4:::2;80961:12;;80974:1;80961:15;;;;;;;:::i;:::-;80888:89;::::0;-1:-1:-1;;;;;;80888:89:0::2;::::0;;;;;;-1:-1:-1;;;;;14257:15:1;;;80888:89:0::2;::::0;::::2;14239:34:1::0;14309:15;;;;14289:18;;;14282:43;-1:-1:-1;80961:15:0::2;::::0;;::::2;;;14341:18:1::0;;;14334:34;14174:18;;80888:89:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;81006:47;81037:12;;81050:1;81037:15;;;;;;;:::i;:::-;;;;;;;81006:12;:26;81019:12;28706:10:::0;;28626:98;81019:12:::2;-1:-1:-1::0;;;;;81006:26:0::2;::::0;;::::2;::::0;::::2;::::0;;;;;;-1:-1:-1;81006:26:0;;:30:::2;:47::i;:::-;;81102:13;;81116:1;81102:16;;;;;;;:::i;:::-;;;;;;;81070:12;:29;81083:12;;81096:1;81083:15;;;;;;;:::i;:::-;;;;;;;81070:29;;;;;;;;;;;:48;;;;80729:3;;;;;:::i;:::-;;;;80684:446;;;-1:-1:-1::0;;1768:1:0;2722:7;:22;-1:-1:-1;;;;;;;;80173:964:0:o;77973:362::-;-1:-1:-1;;;;;78073:21:0;;78032:7;78073:21;;;:12;:21;;;;;78032:7;;78073:30;;:28;:30::i;:::-;78052:51;-1:-1:-1;78114:13:0;;78173:129;78197:10;78189:5;:18;78173:129;;;-1:-1:-1;;;;;78258:21:0;;78245:45;78258:21;;;:12;:21;;;;;78245:12;;:45;78258:31;;78283:5;78258:24;:31::i;:::-;78245:45;;;;;;;;;;;;78233:57;;;;;:::i;:::-;;-1:-1:-1;78209:7:0;;;;:::i;:::-;;;;78173:129;;;78319:8;77973:362;-1:-1:-1;;;;77973:362:0:o;79608:262::-;79657:7;;;79710:125;79734:10;:17;79730:21;;79710:125;;;79787:36;:12;:27;79800:10;79811:1;79800:13;;;;;;;;:::i;:::-;;;;;;;;;;;;;-1:-1:-1;;;;;79800:13:0;79787:27;;;;;;;;;;;;:34;:36::i;:::-;79773:50;;;;:::i;:::-;;-1:-1:-1;79753:3:0;;;;:::i;:::-;;;;79710:125;;75271:173;32293:6;;-1:-1:-1;;;;;32293:6:0;;;;;28706:10;32440:23;32432:68;;;;-1:-1:-1;;;32432:68:0;;;;;;;:::i;:::-;75326:110:::1;28706:10:::0;75389:20:::1;::::0;;75382:53:::1;::::0;-1:-1:-1;;;75382:53:0;;75429:4:::1;75382:53:::0;;::::1;3912:51:1::0;;;;-1:-1:-1;;;;;75389:20:0::1;::::0;75382:38:::1;::::0;3885:18:1;;75382:53:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;75333:20;::::0;-1:-1:-1;;;;;75333:20:0::1;::::0;75326:110;:41:::1;:110::i;81145:569::-:0;1812:1;2410:7;;:19;2402:63;;;;-1:-1:-1;;;2402:63:0;;;;;;;:::i;:::-;1812:1;2543:7;:18;;;28706:10;81249:22;;;:8:::1;:22;::::0;;;;;;81297:20:::1;::::0;79005:339;:::i;81297:20::-:1;81282:35:::0;;81347:15:::1;81328:16;::::0;::::1;:34:::0;81282:12:::1;81375:332;81399:11;:18;81395:1;:22;81375:332;;;81449:38;28706:10:::0;81472:11:::1;81484:1;81472:14;;;;;;;;:::i;:::-;;;;;;;81449:8;:38::i;:::-;81441:70;;;::::0;-1:-1:-1;;;81441:70:0;;14581:2:1;81441:70:0::1;::::0;::::1;14563:21:1::0;14620:2;14600:18;;;14593:30;-1:-1:-1;;;14639:18:1;;;14632:49;14698:18;;81441:70:0::1;14379:343:1::0;81441:70:0::1;81544:17;::::0;-1:-1:-1;;;;;81544:17:0::1;81536:43;81588:4;28706:10:::0;81610:11:::1;81622:1;81610:14;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;81536:93:::1;::::0;-1:-1:-1;;;;;;81536:93:0::1;::::0;;;;;;-1:-1:-1;;;;;15050:15:1;;;81536:93:0::1;::::0;::::1;15032:34:1::0;15102:15;;;;15082:18;;;15075:43;15134:18;;;15127:34;15197:3;15177:18;;;15170:31;-1:-1:-1;15217:19:1;;;15210:30;15257:19;;81536:93:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;81646:49;81680:11;81692:1;81680:14;;;;;;;;:::i;:::-;;;;;;;81646:12;:26;81659:12;28706:10:::0;;28626:98;81659:12:::1;-1:-1:-1::0;;;;;81646:26:0::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;81646:26:0;;:33:::1;:49::i;:::-;-1:-1:-1::0;81419:3:0;::::1;::::0;::::1;:::i;:::-;;;;81375:332;;;-1:-1:-1::0;;1768:1:0;2722:7;:22;-1:-1:-1;81145:569:0:o;33129:201::-;32293:6;;-1:-1:-1;;;;;32293:6:0;;;;;28706:10;32440:23;32432:68;;;;-1:-1:-1;;;32432:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;33218:22:0;::::1;33210:73;;;::::0;-1:-1:-1;;;33210:73:0;;15489:2:1;33210:73:0::1;::::0;::::1;15471:21:1::0;15528:2;15508:18;;;15501:30;15567:34;15547:18;;;15540:62;-1:-1:-1;;;15618:18:1;;;15611:36;15664:19;;33210:73:0::1;15287:402:1::0;33210:73:0::1;33294:28;33313:8;33294:18;:28::i;:::-;33129:201:::0;:::o;75452:560::-;75566:17;;75558:44;;-1:-1:-1;;;75558:44:0;;-1:-1:-1;;;;;3930:32:1;;;75558:44:0;;;3912:51:1;75509:16:0;;75537:18;;75566:17;;;75558:36;;3885:18:1;;75558:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;75537:65;;75617:10;75631:1;75617:15;75613:392;;75670:1;75656:16;;75613:392;75705:23;75745:10;75731:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;75731:25:0;;75705:51;;75771:13;75799:167;75823:10;75815:5;:18;75799:167;;;75897:17;;75879:71;;-1:-1:-1;;;75879:71:0;;-1:-1:-1;;;;;15886:32:1;;;75879:71:0;;;15868:51:1;15935:18;;;15928:34;;;75897:17:0;;;;75879:56;;15841:18:1;;75879:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;75863:6;75870:5;75863:13;;;;;;;;:::i;:::-;;;;;;;;;;:87;75835:7;;;;:::i;:::-;;;;75799:167;;79878:281;79929:7;;;79984:138;80008:10;:17;80004:21;;79984:138;;;80090:1;80051:36;:12;:27;80064:10;80075:1;80064:13;;;;;;;;:::i;80051:36::-;:40;80047:63;;;80093:17;80109:1;80093:17;;:::i;:::-;;;80047:63;80027:3;;;;:::i;:::-;;;;79984:138;;76766:169;76887:39;;;;;;16158:19:1;;;16193:12;;;16186:28;;;16230:12;;;16223:28;;;76850:7:0;;16267:12:1;;76887:39:0;;;;;;;;;;;;76877:50;;;;;;76870:57;;76766:169;;;;;;:::o;72376:190::-;72501:4;72554;72525:25;72538:5;72545:4;72525:12;:25::i;:::-;:33;;72376:190;-1:-1:-1;;;;72376:190:0:o;13911:114::-;13971:7;13998:19;14006:3;6940:18;;6857:109;14379:137;14450:7;14485:22;14489:3;14501:5;14485:3;:22::i;44353:211::-;44497:58;;;-1:-1:-1;;;;;15886:32:1;;44497:58:0;;;15868:51:1;15935:18;;;;15928:34;;;44497:58:0;;;;;;;;;;15841:18:1;;;;44497:58:0;;;;;;;;-1:-1:-1;;;;;44497:58:0;-1:-1:-1;;;44497:58:0;;;44470:86;;44490:5;;44470:19;:86::i;:::-;44353:211;;;:::o;13679:146::-;13756:4;6739:19;;;:12;;;:19;;;;;;:24;;13780:37;6642:129;33490:191;33583:6;;;-1:-1:-1;;;;;33600:17:0;;;33583:6;33600:17;;;-1:-1:-1;;;;;;33600:17:0;;;;;;33633:40;;33583:6;;;;;;;;33633:40;;33564:16;;33633:40;33553:128;33490:191;:::o;76943:223::-;77005:9;77000:126;77024:10;:17;77020:21;;77000:126;;;77084:5;-1:-1:-1;;;;;77067:22:0;:10;77078:1;77067:13;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;77067:13:0;:22;77063:52;;77108:7;76943:223;:::o;77063:52::-;77043:3;;;;:::i;:::-;;;;77000:126;;;-1:-1:-1;77136:10:0;:22;;;;;;;-1:-1:-1;77136:22:0;;;;;;;;-1:-1:-1;;;;;;77136:22:0;-1:-1:-1;;;;;77136:22:0;;;;;;;;;;76943:223::o;13149:131::-;13216:4;13240:32;13245:3;13265:5;13240:4;:32::i;13456:137::-;13526:4;13550:35;13558:3;13578:5;13550:7;:35::i;72928:675::-;73011:7;73054:4;73011:7;73069:497;73093:5;:12;73089:1;:16;73069:497;;;73127:20;73150:5;73156:1;73150:8;;;;;;;;:::i;:::-;;;;;;;73127:31;;73193:12;73177;:28;73173:382;;73679:13;73729:15;;;73765:4;73758:15;;;73812:4;73796:21;;73305:57;;73173:382;;;73679:13;73729:15;;;73765:4;73758:15;;;73812:4;73796:21;;73482:57;;73173:382;-1:-1:-1;73107:3:0;;;;:::i;:::-;;;;73069:497;;7320:120;7387:7;7414:3;:11;;7426:5;7414:18;;;;;;;;:::i;:::-;;;;;;;;;7407:25;;7320:120;;;;:::o;46926:716::-;47350:23;47376:69;47404:4;47376:69;;;;;;;;;;;;;;;;;47384:5;-1:-1:-1;;;;;47376:27:0;;;:69;;;;;:::i;:::-;47460:17;;47350:95;;-1:-1:-1;47460:21:0;47456:179;;47557:10;47546:30;;;;;;;;;;;;:::i;:::-;47538:85;;;;-1:-1:-1;;;47538:85:0;;16492:2:1;47538:85:0;;;16474:21:1;16531:2;16511:18;;;16504:30;16570:34;16550:18;;;16543:62;-1:-1:-1;;;16621:18:1;;;16614:40;16671:19;;47538:85:0;16290:406:1;4546:414:0;4609:4;6739:19;;;:12;;;:19;;;;;;4626:327;;-1:-1:-1;4669:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;4852:18;;4830:19;;;:12;;;:19;;;;;;:40;;;;4885:11;;4626:327;-1:-1:-1;4936:5:0;4929:12;;5136:1420;5202:4;5341:19;;;:12;;;:19;;;;;;5377:15;;5373:1176;;5752:21;5776:14;5789:1;5776:10;:14;:::i;:::-;5825:18;;5752:38;;-1:-1:-1;5805:17:0;;5825:22;;5846:1;;5825:22;:::i;:::-;5805:42;;5881:13;5868:9;:26;5864:405;;5915:17;5935:3;:11;;5947:9;5935:22;;;;;;;;:::i;:::-;;;;;;;;;5915:42;;6089:9;6060:3;:11;;6072:13;6060:26;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;6174:23;;;:12;;;:23;;;;;:36;;;5864:405;6350:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;6445:3;:12;;:19;6458:5;6445:19;;;;;;;;;;;6438:26;;;6488:4;6481:11;;;;;;;5373:1176;6532:5;6525:12;;;;;39131:229;39268:12;39300:52;39322:6;39330:4;39336:1;39339:12;39268;-1:-1:-1;;;;;36681:19:0;;;40538:60;;;;-1:-1:-1;;;40538:60:0;;17442:2:1;40538:60:0;;;17424:21:1;17481:2;17461:18;;;17454:30;17520:31;17500:18;;;17493:59;17569:18;;40538:60:0;17240:353:1;40538:60:0;40612:12;40626:23;40653:6;-1:-1:-1;;;;;40653:11:0;40672:5;40679:4;40653:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40611:73;;;;40702:51;40719:7;40728:10;40740:12;40702:16;:51::i;:::-;40695:58;40251:510;-1:-1:-1;;;;;;;40251:510:0:o;42937:712::-;43087:12;43116:7;43112:530;;;-1:-1:-1;43147:10:0;43140:17;;43112:530;43261:17;;:21;43257:374;;43459:10;43453:17;43520:15;43507:10;43503:2;43499:19;43492:44;43257:374;43602:12;43595:20;;-1:-1:-1;;;43595:20:0;;;;;;;;:::i;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:186::-;251:6;304:2;292:9;283:7;279:23;275:32;272:52;;;320:1;317;310:12;272:52;343:29;362:9;343:29;:::i;565:127::-;626:10;621:3;617:20;614:1;607:31;657:4;654:1;647:15;681:4;678:1;671:15;697:275;768:2;762:9;833:2;814:13;;-1:-1:-1;;810:27:1;798:40;;868:18;853:34;;889:22;;;850:62;847:88;;;915:18;;:::i;:::-;951:2;944:22;697:275;;-1:-1:-1;697:275:1:o;977:980::-;1072:6;1080;1088;1096;1149:3;1137:9;1128:7;1124:23;1120:33;1117:53;;;1166:1;1163;1156:12;1117:53;1189:29;1208:9;1189:29;:::i;:::-;1179:39;;1237:2;1258:38;1292:2;1281:9;1277:18;1258:38;:::i;:::-;1248:48;;1343:2;1332:9;1328:18;1315:32;1305:42;;1398:2;1387:9;1383:18;1370:32;1421:18;1462:2;1454:6;1451:14;1448:34;;;1478:1;1475;1468:12;1448:34;1516:6;1505:9;1501:22;1491:32;;1561:7;1554:4;1550:2;1546:13;1542:27;1532:55;;1583:1;1580;1573:12;1532:55;1619:2;1606:16;1641:2;1637;1634:10;1631:36;;;1647:18;;:::i;:::-;1689:53;1732:2;1713:13;;-1:-1:-1;;1709:27:1;1705:36;;1689:53;:::i;:::-;1676:66;;1765:2;1758:5;1751:17;1805:7;1800:2;1795;1791;1787:11;1783:20;1780:33;1777:53;;;1826:1;1823;1816:12;1777:53;1881:2;1876;1872;1868:11;1863:2;1856:5;1852:14;1839:45;1925:1;1920:2;1915;1908:5;1904:14;1900:23;1893:34;;1946:5;1936:15;;;;;977:980;;;;;;;:::o;2169:183::-;2229:4;2262:18;2254:6;2251:30;2248:56;;;2284:18;;:::i;:::-;-1:-1:-1;2329:1:1;2325:14;2341:4;2321:25;;2169:183::o;2357:959::-;2450:6;2458;2511:2;2499:9;2490:7;2486:23;2482:32;2479:52;;;2527:1;2524;2517:12;2479:52;2563:9;2550:23;2540:33;;2592:2;2645;2634:9;2630:18;2617:32;2672:18;2664:6;2661:30;2658:50;;;2704:1;2701;2694:12;2658:50;2727:22;;2780:4;2772:13;;2768:27;-1:-1:-1;2758:55:1;;2809:1;2806;2799:12;2758:55;2845:2;2832:16;2868:60;2884:43;2924:2;2884:43;:::i;:::-;2868:60;:::i;:::-;2962:15;;;3044:1;3040:10;;;;3032:19;;3028:28;;;2993:12;;;;3068:19;;;3065:39;;;3100:1;3097;3090:12;3065:39;3124:11;;;;3144:142;3160:6;3155:3;3152:15;3144:142;;;3226:17;;3214:30;;3177:12;;;;3264;;;;3144:142;;;3305:5;3295:15;;;;;;;2357:959;;;;;:::o;3974:118::-;4060:5;4053:13;4046:21;4039:5;4036:32;4026:60;;4082:1;4079;4072:12;4097:241;4153:6;4206:2;4194:9;4185:7;4181:23;4177:32;4174:52;;;4222:1;4219;4212:12;4174:52;4261:9;4248:23;4280:28;4302:5;4280:28;:::i;4343:180::-;4402:6;4455:2;4443:9;4434:7;4430:23;4426:32;4423:52;;;4471:1;4468;4461:12;4423:52;-1:-1:-1;4494:23:1;;4343:180;-1:-1:-1;4343:180:1:o;4528:632::-;4699:2;4751:21;;;4821:13;;4724:18;;;4843:22;;;4670:4;;4699:2;4922:15;;;;4896:2;4881:18;;;4670:4;4965:169;4979:6;4976:1;4973:13;4965:169;;;5040:13;;5028:26;;5109:15;;;;5074:12;;;;5001:1;4994:9;4965:169;;;-1:-1:-1;5151:3:1;;4528:632;-1:-1:-1;;;;;;4528:632:1:o;5654:254::-;5722:6;5730;5783:2;5771:9;5762:7;5758:23;5754:32;5751:52;;;5799:1;5796;5789:12;5751:52;5822:29;5841:9;5822:29;:::i;:::-;5812:39;5898:2;5883:18;;;;5870:32;;-1:-1:-1;;;5654:254:1:o;6095:367::-;6158:8;6168:6;6222:3;6215:4;6207:6;6203:17;6199:27;6189:55;;6240:1;6237;6230:12;6189:55;-1:-1:-1;6263:20:1;;6306:18;6295:30;;6292:50;;;6338:1;6335;6328:12;6292:50;6375:4;6367:6;6363:17;6351:29;;6435:3;6428:4;6418:6;6415:1;6411:14;6403:6;6399:27;6395:38;6392:47;6389:67;;;6452:1;6449;6442:12;6389:67;6095:367;;;;;:::o;6467:1431::-;6688:6;6696;6704;6712;6720;6728;6736;6744;6797:3;6785:9;6776:7;6772:23;6768:33;6765:53;;;6814:1;6811;6804:12;6765:53;6854:9;6841:23;6883:18;6924:2;6916:6;6913:14;6910:34;;;6940:1;6937;6930:12;6910:34;6979:70;7041:7;7032:6;7021:9;7017:22;6979:70;:::i;:::-;7068:8;;-1:-1:-1;6953:96:1;-1:-1:-1;7156:2:1;7141:18;;7128:32;;-1:-1:-1;7172:16:1;;;7169:36;;;7201:1;7198;7191:12;7169:36;7240:72;7304:7;7293:8;7282:9;7278:24;7240:72;:::i;:::-;7331:8;;-1:-1:-1;7214:98:1;-1:-1:-1;7419:2:1;7404:18;;7391:32;;-1:-1:-1;7435:16:1;;;7432:36;;;7464:1;7461;7454:12;7432:36;7503:72;7567:7;7556:8;7545:9;7541:24;7503:72;:::i;:::-;7594:8;;-1:-1:-1;7477:98:1;-1:-1:-1;7682:2:1;7667:18;;7654:32;;-1:-1:-1;7698:16:1;;;7695:36;;;7727:1;7724;7717:12;7695:36;;7766:72;7830:7;7819:8;7808:9;7804:24;7766:72;:::i;:::-;6467:1431;;;;-1:-1:-1;6467:1431:1;;-1:-1:-1;6467:1431:1;;;;;;7857:8;-1:-1:-1;;;6467:1431:1:o;7903:891::-;7987:6;8018:2;8061;8049:9;8040:7;8036:23;8032:32;8029:52;;;8077:1;8074;8067:12;8029:52;8117:9;8104:23;8150:18;8142:6;8139:30;8136:50;;;8182:1;8179;8172:12;8136:50;8205:22;;8258:4;8250:13;;8246:27;-1:-1:-1;8236:55:1;;8287:1;8284;8277:12;8236:55;8323:2;8310:16;8346:60;8362:43;8402:2;8362:43;:::i;8346:60::-;8440:15;;;8522:1;8518:10;;;;8510:19;;8506:28;;;8471:12;;;;8546:19;;;8543:39;;;8578:1;8575;8568:12;8543:39;8602:11;;;;8622:142;8638:6;8633:3;8630:15;8622:142;;;8704:17;;8692:30;;8655:12;;;;8742;;;;8622:142;;8799:316;8876:6;8884;8892;8945:2;8933:9;8924:7;8920:23;8916:32;8913:52;;;8961:1;8958;8951:12;8913:52;-1:-1:-1;;8984:23:1;;;9054:2;9039:18;;9026:32;;-1:-1:-1;9105:2:1;9090:18;;;9077:32;;8799:316;-1:-1:-1;8799:316:1:o;9120:127::-;9181:10;9176:3;9172:20;9169:1;9162:31;9212:4;9209:1;9202:15;9236:4;9233:1;9226:15;9252:125;9292:4;9320:1;9317;9314:8;9311:34;;;9325:18;;:::i;:::-;-1:-1:-1;9362:9:1;;9252:125::o;9382:168::-;9422:7;9488:1;9484;9480:6;9476:14;9473:1;9470:21;9465:1;9458:9;9451:17;9447:45;9444:71;;;9495:18;;:::i;:::-;-1:-1:-1;9535:9:1;;9382:168::o;9555:217::-;9595:1;9621;9611:132;;9665:10;9660:3;9656:20;9653:1;9646:31;9700:4;9697:1;9690:15;9728:4;9725:1;9718:15;9611:132;-1:-1:-1;9757:9:1;;9555:217::o;9777:128::-;9817:3;9848:1;9844:6;9841:1;9838:13;9835:39;;;9854:18;;:::i;:::-;-1:-1:-1;9890:9:1;;9777:128::o;9910:356::-;10112:2;10094:21;;;10131:18;;;10124:30;10190:34;10185:2;10170:18;;10163:62;10257:2;10242:18;;9910:356::o;10271:127::-;10332:10;10327:3;10323:20;10320:1;10313:31;10363:4;10360:1;10353:15;10387:4;10384:1;10377:15;10403:135;10442:3;10463:17;;;10460:43;;10483:18;;:::i;:::-;-1:-1:-1;10530:1:1;10519:13;;10403:135::o;10543:355::-;10745:2;10727:21;;;10784:2;10764:18;;;10757:30;10823:33;10818:2;10803:18;;10796:61;10889:2;10874:18;;10543:355::o;11256:184::-;11326:6;11379:2;11367:9;11358:7;11354:23;11350:32;11347:52;;;11395:1;11392;11385:12;11347:52;-1:-1:-1;11418:16:1;;11256:184;-1:-1:-1;11256:184:1:o;12456:245::-;12523:6;12576:2;12564:9;12555:7;12551:23;12547:32;12544:52;;;12592:1;12589;12582:12;12544:52;12624:9;12618:16;12643:28;12665:5;12643:28;:::i;13108:545::-;13201:4;13207:6;13267:11;13254:25;13361:2;13357:7;13346:8;13330:14;13326:29;13322:43;13302:18;13298:68;13288:96;;13380:1;13377;13370:12;13288:96;13407:33;;13459:20;;;-1:-1:-1;13502:18:1;13491:30;;13488:50;;;13534:1;13531;13524:12;13488:50;13567:4;13555:17;;-1:-1:-1;13618:1:1;13614:14;;;13598;13594:35;13584:46;;13581:66;;;13643:1;13640;13633:12;16701:127;16762:10;16757:3;16753:20;16750:1;16743:31;16793:4;16790:1;16783:15;16817:4;16814:1;16807:15;17598:258;17670:1;17680:113;17694:6;17691:1;17688:13;17680:113;;;17770:11;;;17764:18;17751:11;;;17744:39;17716:2;17709:10;17680:113;;;17811:6;17808:1;17805:13;17802:48;;;17846:1;17837:6;17832:3;17828:16;17821:27;17802:48;;17598:258;;;:::o;17861:274::-;17990:3;18028:6;18022:13;18044:53;18090:6;18085:3;18078:4;18070:6;18066:17;18044:53;:::i;:::-;18113:16;;;;;17861:274;-1:-1:-1;;17861:274:1:o;18140:383::-;18289:2;18278:9;18271:21;18252:4;18321:6;18315:13;18364:6;18359:2;18348:9;18344:18;18337:34;18380:66;18439:6;18434:2;18423:9;18419:18;18414:2;18406:6;18402:15;18380:66;:::i;:::-;18507:2;18486:15;-1:-1:-1;;18482:29:1;18467:45;;;;18514:2;18463:54;;18140:383;-1:-1:-1;;18140:383:1:o

Swarm Source

ipfs://466aba356d46585e91caf7d2ead1a504eaf1c285fa749f11a1b3d621f236b4b3

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.