Contract 0xcbfcA68D10B2ec60a0FB2Bc58F7F0Bfd32CD5275 1

 

Contract Overview

Balance:
0 MATIC

MATIC Value:
$0.00

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xe05255ed3e5b0e4af56a9ac5a43c9eefdf20243f18868bad64699c11a47e39e7Withdraw Rewards285644472022-05-20 22:17:2548 mins ago0x2c95cf4df95566dcb123c8a7d3f0853fe8c32cba IN  0xcbfca68d10b2ec60a0fb2bc58f7f0bfd32cd52750 MATIC0.002993176025 30.108799994
0xac2bb8439d047f058c5aac3cf43142b733b4da99c1a6a53ccb66c6344aa4b404Withdraw Rewards285643732022-05-20 22:14:5351 mins ago0x2c95cf4df95566dcb123c8a7d3f0853fe8c32cba IN  0xcbfca68d10b2ec60a0fb2bc58f7f0bfd32cd52750 MATIC0.002993176024 30.108799992
0x46a4a751bc267742089b34a4e5735997e4e7b00577757d22f7b07aefa8b06b1fStake285642272022-05-20 22:09:5356 mins ago0xa9a1bb451ef2bacc8377bdf74cea001278f48347 IN  0xcbfca68d10b2ec60a0fb2bc58f7f0bfd32cd52750 MATIC0.035677357002 176.500000012
0x727ac2056dc6fb047f7d1f7eac3cac028fe636bff812c11d529afe5ce2158476Withdraw Rewards285640812022-05-20 22:04:491 hr 1 min ago0xa9a1bb451ef2bacc8377bdf74cea001278f48347 IN  0xcbfca68d10b2ec60a0fb2bc58f7f0bfd32cd52750 MATIC0.017548336001 176.500000013
0xb9b68b8dcace5b480b9e725838497d893516ffd42f4d8721d59a619b1af3288fWithdraw Rewards285640722022-05-20 22:04:311 hr 1 min ago0xa9a1bb451ef2bacc8377bdf74cea001278f48347 IN  0xcbfca68d10b2ec60a0fb2bc58f7f0bfd32cd52750 MATIC0.014528068001 176.500000015
0x7c7722b08299b5cd39d5aef7058300e68482ac027b5e9379d4a8a82c9abdb819Withdraw Rewards285603192022-05-20 19:47:453 hrs 18 mins ago0x24b48303cececac013f4dca6bd7b8ac697fe82cf IN  0xcbfca68d10b2ec60a0fb2bc58f7f0bfd32cd52750 MATIC0.00249719327 30.338143529
0xf342a89fee838864b0fa49d86a9dcdd63c6d10910ec5744f535c5817094a2da5Withdraw Rewards285596052022-05-20 19:21:053 hrs 44 mins ago0xc1fe9bd63c85f3504a168774c10bc0ddda321d1b IN  0xcbfca68d10b2ec60a0fb2bc58f7f0bfd32cd52750 MATIC0.002988911997 30.062278699
0xc4ba399457ca133002a233c8ee7cfc5dab8735e4da19bebb58e377b934ec4e30Stake285447452022-05-20 10:21:2412 hrs 44 mins ago0xc4341dc0561554f924830abd1f8723cc25143347 IN  0xcbfca68d10b2ec60a0fb2bc58f7f0bfd32cd52750 MATIC0.00607828965 30.069999953
0x0129826d7bb7f0e9be54f1c60819c3bc5fc6108da1e6f431a55258a172f71e04Withdraw Rewards285425732022-05-20 8:59:4214 hrs 6 mins ago0xb5c00d898d3b2e776487c7e88f5b78592343309e IN  0xcbfca68d10b2ec60a0fb2bc58f7f0bfd32cd52750 MATIC0.003180633454 31.990600404
0xd907a71eb480f5c8160e81820ac960cb0a131764cf84a9e8d6a12cf481208f4dWithdraw Rewards285398032022-05-20 7:15:4015 hrs 50 mins ago0x6f973d88a48cf0ac6e06c356b15e3a295cf3b10b IN  0xcbfca68d10b2ec60a0fb2bc58f7f0bfd32cd52750 MATIC0.002479667621 30.125226226
0x086cd04a12f689b91b5c41bd878859c58b6be70233401ef58cf40cb6f75ab71cWithdraw Rewards285397722022-05-20 7:14:3415 hrs 51 mins ago0x6f973d88a48cf0ac6e06c356b15e3a295cf3b10b IN  0xcbfca68d10b2ec60a0fb2bc58f7f0bfd32cd52750 MATIC0.00247512184 30.070000005
0x52e919abaebbdc94b2a640fec74332bcf7844154f6415c43359284faaf15a263Stake285395382022-05-20 7:06:3415 hrs 59 mins ago0xcce8a3fb91290071b377fe0ec3df0eb7cea8affc IN  0xcbfca68d10b2ec60a0fb2bc58f7f0bfd32cd52750 MATIC0.030030394016 30.056934289
0xdc445bd6521e3c04eba9b496c7cce956210077cddea103b615d6d8929e57408fWithdraw Rewards285371762022-05-20 5:42:5517 hrs 23 mins ago0xc1fe9bd63c85f3504a168774c10bc0ddda321d1b IN  0xcbfca68d10b2ec60a0fb2bc58f7f0bfd32cd52750 MATIC0.002989679679 30.069999999
0x4bdb8ca3632f2484a4aa212fedc165751d4eec414e5304a764b7ef8a91281cdeStake285367462022-05-20 5:28:0717 hrs 37 mins ago0x3dccfacd7cc22bbb61ad155beacbcb22eb415a75 IN  0xcbfca68d10b2ec60a0fb2bc58f7f0bfd32cd52750 MATIC0.006355824365 31.442996197
0x4049f8b302e3ebc7edf8c6a6a535a95540b9816d780a00d75aaa463ec2000a97Unstake285366752022-05-20 5:25:4117 hrs 40 mins ago0x3dccfacd7cc22bbb61ad155beacbcb22eb415a75 IN  0xcbfca68d10b2ec60a0fb2bc58f7f0bfd32cd52750 MATIC0.004011851767 31.304683915
0x72e71fe6b172c5ec113bddc91091edbbe05cb17f0e523d9c919deb57df318b76Unstake285366602022-05-20 5:25:1117 hrs 40 mins ago0x3dccfacd7cc22bbb61ad155beacbcb22eb415a75 IN  0xcbfca68d10b2ec60a0fb2bc58f7f0bfd32cd52750 MATIC0.004220336384 32.931500016
0x66acc97b65143e01d3f27141ef3fa2957e1042313518eca393a985fc2389e67bUnstake285366492022-05-20 5:24:4917 hrs 41 mins ago0x3dccfacd7cc22bbb61ad155beacbcb22eb415a75 IN  0xcbfca68d10b2ec60a0fb2bc58f7f0bfd32cd52750 MATIC0.005682665285 35.001479998
0x41c4456f4ee9c0bac65791ead442178db49201fd5dee87018ed8b00e7313473aStake285361242022-05-20 5:06:4317 hrs 59 mins ago0x55834bf9da44c859834e7530db4031d049230a38 IN  0xcbfca68d10b2ec60a0fb2bc58f7f0bfd32cd52750 MATIC0.030811178999 30.999999999
0x5b9756256cba432ad33aed5e5c7259396cfc970ae28f6774a8c5a3849346955aStake285270532022-05-19 23:46:0223 hrs 19 mins ago0x4ecf8998cfb2647b16d408234072e97bb9956761 IN  0xcbfca68d10b2ec60a0fb2bc58f7f0bfd32cd52750 MATIC0.029863016767 30.124953236
0x6017a5ca458b366b1fead3c55c5c57399e8b83dd0536d86bcd9c80c2a669543fWithdraw Rewards285261872022-05-19 23:14:0623 hrs 51 mins ago0xa7ad7ff576d3616d24745b70772678f205356850 IN  0xcbfca68d10b2ec60a0fb2bc58f7f0bfd32cd52750 MATIC0.003755797785 45.628799998
0x8c18253972a12342dd640c4b7aeac50f659f286b18e948e064291503aea66d6fWithdraw Rewards285260802022-05-19 23:10:2823 hrs 55 mins ago0xa7ad7ff576d3616d24745b70772678f205356850 IN  0xcbfca68d10b2ec60a0fb2bc58f7f0bfd32cd52750 MATIC0.003228230058 39.219434085
0x1616d803f9c210e235f304a47742c2fa6068537fc7f83f1b88f5b19d929e8dc4Withdraw Rewards285260472022-05-19 23:09:1823 hrs 56 mins ago0xa7ad7ff576d3616d24745b70772678f205356850 IN  0xcbfca68d10b2ec60a0fb2bc58f7f0bfd32cd52750 MATIC0.003267543785 39.6970525
0xd75d9c68361703e76d4b4df9a9723044bba6f69d969456ebb075cb59129c0889Stake285244862022-05-19 22:15:361 day 50 mins ago0x12219eb3a071f6e2209aad0494e19355ac90d356 IN  0xcbfca68d10b2ec60a0fb2bc58f7f0bfd32cd52750 MATIC0.007445904828 36.835749974
0xac367fd0524df2ac619c8bb1fca7238652a079b8cf18bf3d02b68d963d7542fbWithdraw Rewards285241432022-05-19 22:03:411 day 1 hr ago0x6f973d88a48cf0ac6e06c356b15e3a295cf3b10b IN  0xcbfca68d10b2ec60a0fb2bc58f7f0bfd32cd52750 MATIC0.00350129547 35.215797704
0x128720ce8cb035c4a5e0ce35e6fd7b3920a85f8307b5556059a201c188f51957Withdraw Rewards285236902022-05-19 21:48:071 day 1 hr ago0x87ae481a33b944759ba3f679d833762ceef1a380 IN  0xcbfca68d10b2ec60a0fb2bc58f7f0bfd32cd52750 MATIC0.002989679675 30.06999995
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MiningGameStaker

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2022-05-02
*/

// SPDX-License-Identifier: MIT
/** 

███╗   ███╗██╗███╗   ██╗██╗███╗   ██╗ ██████╗     ██████╗  █████╗ ███╗   ███╗███████╗
████╗ ████║██║████╗  ██║██║████╗  ██║██╔════╝    ██╔════╝ ██╔══██╗████╗ ████║██╔════╝
██╔████╔██║██║██╔██╗ ██║██║██╔██╗ ██║██║  ███╗   ██║  ███╗███████║██╔████╔██║█████╗  
██║╚██╔╝██║██║██║╚██╗██║██║██║╚██╗██║██║   ██║   ██║   ██║██╔══██║██║╚██╔╝██║██╔══╝  
██║ ╚═╝ ██║██║██║ ╚████║██║██║ ╚████║╚██████╔╝██╗╚██████╔╝██║  ██║██║ ╚═╝ ██║███████╗
╚═╝     ╚═╝╚═╝╚═╝  ╚═══╝╚═╝╚═╝  ╚═══╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═╝  ╚═╝╚═╝     ╚═╝╚══════╝
                                                                                     
    www.Mining.game is a Free to play, Play to Earn NFT based mining simulator game.
    
    This is the hardware staking contract.
        Deposit your ERC1155 components and earn WATT token.
        You can stake multiple NFTs, but only ONE FREE NFT!

    @custom:security-contact [email protected]
    
*/


// File: contracts/IRewardsToken.sol


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

pragma solidity ^0.8.7;

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

    function rewardsMint(address to, uint256 _amount) external;
    function rewardsBurn(address from, uint256 _amount) external;


    /**
     * @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/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/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/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/math/SafeMath.sol


// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

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

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

// 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/ERC1155/IERC1155Receiver.sol


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

pragma solidity ^0.8.0;


/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

// File: @openzeppelin/contracts/token/ERC1155/utils/ERC1155Receiver.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC1155/utils/ERC1155Receiver.sol)

pragma solidity ^0.8.0;



/**
 * @dev _Available since v3.1._
 */
abstract contract ERC1155Receiver is ERC165, IERC1155Receiver {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId);
    }
}

// File: @openzeppelin/contracts/token/ERC1155/IERC1155.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;


/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

// File: contracts/NFTStaker.sol


pragma solidity ^0.8.7;







abstract contract ReentrancyGuard { 
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }
    modifier nonReentrant() {
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
   _status = _ENTERED;

        _;
        _status = _NOT_ENTERED;
    }
}
contract MiningGameStaker is Ownable, ReentrancyGuard{
    using SafeMath for uint256;
    using Address for address;
    IERC1155 private nft;
    IRewardsToken private rewardsToken;
    bool public canStake = false;
    //allow/disallow staking for tokenID
    mapping (uint256 => bool) public canDeposit;

    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4) {
        return bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"));
    }


    uint256 public stakedTotal;    
    uint256 public rewardsTokenAmount = 10 ether;

    // stake weight for tokenId
    // rewardsTokenAmount * stakeWeight
    mapping (uint256 => uint256) public stakeWeight; // tokenId => weight, weight is in wei

    // stakingTime for tokenId
    uint256 public stakingTime = 300; // stakingtime is in seconds
    mapping (uint256 => uint256) public minimum_stakingTime; // tokenId => time, time is in seconds
    

    struct NFTDeposit {
        uint256 id; // array index
        address depositOwner; // deposited user address - nft owner address
        uint256 tokenId; // deposited nft token id
        uint256 amount; // deposited nft amount
        bool isWithdrawn; // status if this value is true, in this case user can't withdraw, and false, user can withdraw
        uint256 depositTime; // deposit time(block.time current)
        uint256 timeLockInSeconds; // minimum staking time for tokenID
        uint256 rewardsEarned; // all earned rewards amount via staking
        uint256 rewardsReleased; // released earned rewards amount
    }

    NFTDeposit[] public nftDeposits;

    event NFTDepositLog(
        uint256 depositId,
        address depositOwner,
        uint256 tokenId,
        uint256 amount,
        bool isWithdrawn,
        uint256 depositTime,
        uint256 timeLockInSeconds,
        uint256 rewardsEarned,
        uint256 rewardsReleased
    );

    event NFTWithdrawLog(
        uint256 depositId,
        address depositOwner,
        uint256 tokenId,
        uint256 amount,
        uint256 withdrawTime,
        bool forceWithdraw,
        uint256 rewardsEarned,
        uint256 rewardsReleased
    );

    event RewardsWithdrawLog(
        uint256 depositId,
        address depositOwner,
        uint256 tokenId,
        uint256 amount,
        uint256 withdrawTime,
        uint256 rewardsEarned,
        uint256 rewardsReleased
    );
    

    constructor(IERC1155 _nft, IRewardsToken _rewardsToken) {        
        nft = _nft;
        rewardsToken = _rewardsToken;
        canStake = true;
    }

    function pause() external onlyOwner{
        canStake = false;
    }

    function unpause() external onlyOwner{
        canStake = true;
    }

    function setCanDeposit(uint256 tokenId, bool value) external onlyOwner {
        canDeposit[tokenId] = value;
    }

    function setMinimumStakingTime(uint256 tokenId, uint256 _minimumStakingTime) external onlyOwner{
        minimum_stakingTime[tokenId] = _minimumStakingTime;
    }

    function setStakingTime(uint256 _stakingTime) external onlyOwner{
        stakingTime = _stakingTime;
    }

    function setRewardsTokenAmount(uint256 _newRewardsTokenAmount) external onlyOwner {
        rewardsTokenAmount = _newRewardsTokenAmount;
    }

    function setStakeWeight(uint256 _tokenId, uint256 _weight) external onlyOwner {
        stakeWeight[_tokenId] = _weight;
    }

    function stake(uint256 tokenId, uint256 amount) public {        
        _stake(tokenId, amount);
    }

    function stakeBatch(uint256[] memory tokenIds, uint256[] memory amounts) public {
        for (uint256 i = 0; i < tokenIds.length; i++) {            
            _stake(tokenIds[i], amounts[i]);
        }
    }

    function _stake(uint256 _tokenId,uint256 _amount) internal {
        require(!Address.isContract(msg.sender), "Staking is not allowed for contracts");
        require(canStake == true, "Staking is temporarily disabled");   
        require(canDeposit[_tokenId], "You can't stake for this tokenId");     
        require(nft.balanceOf(msg.sender, _tokenId) != 0, "User must be the owner of the staked nft");
        if (_tokenId == 1)
        {
            require(_amount == 1, 'You can only stake one FREE NFT');
            // check if tokenID 1 is already staked before.
            for (uint256 i = 0; i < nftDeposits.length; i++)
            {
                if (nftDeposits[i].depositOwner == msg.sender && nftDeposits[i].tokenId == _tokenId)
                {
                    require(nftDeposits[i].isWithdrawn == true, 'Please unstake first');
                }
            }            
        }   

        uint256 newItemId = nftDeposits.length;
        nftDeposits.push(
            NFTDeposit(
                newItemId,
                msg.sender,
                _tokenId,
                _amount,
                false,
                block.timestamp,
                minimum_stakingTime[_tokenId],
                0,
                0
            )
        );

        nft.safeTransferFrom(msg.sender, address(this), _tokenId, _amount, "");
        stakedTotal = stakedTotal + _amount;
        emit NFTDepositLog(
            newItemId,
            msg.sender,
            _tokenId,
            _amount,
            false,
            block.timestamp,
            minimum_stakingTime[_tokenId],
            0,
            0
        );
    }    



    // Unstake without caring about rewards. EMERGENCY ONLY.
    function emergencyUnstake(uint256 depositId) public {      

        require(depositId <= nftDeposits.length);

        require(nftDeposits[depositId].depositOwner == msg.sender, "Only the sender can withdraw this deposit");

        require(nftDeposits[depositId].isWithdrawn == false, "This deposit has already been withdrawn.");

        nft.safeTransferFrom(address(this), msg.sender, nftDeposits[depositId].tokenId, nftDeposits[depositId].amount, "");

        stakedTotal = stakedTotal - nftDeposits[depositId].amount;

        nftDeposits[depositId].isWithdrawn = true;

        emit NFTWithdrawLog(
            depositId,
            msg.sender,
            nftDeposits[depositId].tokenId,
            nftDeposits[depositId].amount,
            block.timestamp,
            true,
            nftDeposits[depositId].rewardsEarned,
            nftDeposits[depositId].rewardsReleased
        );
    }

    function unstake(uint256 depositId) public {

        require(depositId <= nftDeposits.length, "Deposit id is not valid");
        require(nftDeposits[depositId].isWithdrawn == false, "This deposit has already been withdrawn.");
        require(nftDeposits[depositId].depositOwner == msg.sender, "You can only withdraw your own deposits.");
        require((block.timestamp - nftDeposits[depositId].depositTime) >= nftDeposits[depositId].timeLockInSeconds + stakingTime, "You can't yet unlock this deposit.  please use emergencyUnstake instead");
        require(rewardsTokenAmount > 0, "Smart contract owner hasn't defined reward for your deposit. Please contact support team.");
        nft.safeTransferFrom(address(this), msg.sender, nftDeposits[depositId].tokenId, nftDeposits[depositId].amount, "");        
        stakedTotal = stakedTotal - nftDeposits[depositId].amount;
        nftDeposits[depositId].isWithdrawn = true;
        uint256 rewardMultiplier = ((block.timestamp - nftDeposits[depositId].depositTime -nftDeposits[depositId].timeLockInSeconds) / stakingTime) * stakeWeight[nftDeposits[depositId].tokenId] * nftDeposits[depositId].amount;
        nftDeposits[depositId].rewardsEarned += rewardsTokenAmount * rewardMultiplier;

        emit NFTWithdrawLog(
            depositId,
            msg.sender,
            nftDeposits[depositId].tokenId,
            nftDeposits[depositId].amount,
            block.timestamp,
            false,
            nftDeposits[depositId].rewardsEarned,
            nftDeposits[depositId].rewardsReleased
        );
        rewardsToken.rewardsMint(msg.sender, nftDeposits[depositId].rewardsEarned );
        nftDeposits[depositId].rewardsReleased += nftDeposits[depositId].rewardsEarned;
        nftDeposits[depositId].rewardsEarned = 0;
        emit RewardsWithdrawLog(
            depositId,
            msg.sender,
            nftDeposits[depositId].tokenId,
            nftDeposits[depositId].amount,
            block.timestamp,
            0,
            nftDeposits[depositId].rewardsReleased
        );
    }

    function unstakeAll() public {
        for(uint256 i = 0; i < nftDeposits.length; i++) {
            if(nftDeposits[i].depositOwner == msg.sender && nftDeposits[i].isWithdrawn == false) {
                nft.safeTransferFrom(address(this), msg.sender, nftDeposits[i].tokenId, nftDeposits[i].amount, "");        
                stakedTotal = stakedTotal - nftDeposits[i].amount;
                nftDeposits[i].isWithdrawn = true;
                uint256 rewardMultiplier = ((block.timestamp - nftDeposits[i].depositTime -nftDeposits[i].timeLockInSeconds) / stakingTime) * stakeWeight[nftDeposits[i].tokenId] * nftDeposits[i].amount;
                nftDeposits[i].rewardsEarned += rewardsTokenAmount * rewardMultiplier;
                emit NFTWithdrawLog(
                    i,
                    msg.sender,
                    nftDeposits[i].tokenId,
                    nftDeposits[i].amount,
                    block.timestamp,
                    false,
                    nftDeposits[i].rewardsEarned,
                    nftDeposits[i].rewardsReleased
                );
                rewardsToken.rewardsMint(msg.sender, nftDeposits[i].rewardsEarned );
                nftDeposits[i].rewardsReleased += nftDeposits[i].rewardsEarned;
                nftDeposits[i].rewardsEarned = 0;
                emit RewardsWithdrawLog(
                    i,
                    msg.sender,
                    nftDeposits[i].tokenId,
                    nftDeposits[i].amount,
                    block.timestamp,
                    0,
                    nftDeposits[i].rewardsReleased
                );
            }
        }
    }


    function withdrawRewards(uint256 depositId) public nonReentrant{            
        require(depositId <= nftDeposits.length, "Deposit id is not valid");
        require(nftDeposits[depositId].isWithdrawn == false, "This deposit has already been withdrawn.");
        require(nftDeposits[depositId].depositOwner == msg.sender, "You can only withdraw your own deposits.");
        require((block.timestamp - nftDeposits[depositId].depositTime) >= nftDeposits[depositId].timeLockInSeconds + stakingTime, "You can't yet unlock this deposit.  please use emergencyUnstake instead");
        require(rewardsTokenAmount > 0, "Smart contract owner hasn't defined reward for your deposit. Please contact support team.");
        uint256 rewardMultiplier = ((block.timestamp - nftDeposits[depositId].depositTime -nftDeposits[depositId].timeLockInSeconds) / stakingTime) * stakeWeight[nftDeposits[depositId].tokenId] * nftDeposits[depositId].amount;
        uint256 rewardAmount = nftDeposits[depositId].rewardsEarned + rewardsTokenAmount * rewardMultiplier;  
        rewardsToken.rewardsMint(msg.sender, rewardAmount );
        nftDeposits[depositId].depositTime = block.timestamp;   
        nftDeposits[depositId].rewardsReleased += rewardAmount;
        nftDeposits[depositId].rewardsEarned = 0;
        emit RewardsWithdrawLog(
            depositId,
            msg.sender,
            nftDeposits[depositId].tokenId,
            nftDeposits[depositId].amount,
            block.timestamp,
            0,
            nftDeposits[depositId].rewardsReleased
        );
    }

    function withdrawAllRewards() public nonReentrant{
        for(uint256 i = 0; i < nftDeposits.length; i++) {
            uint256 rewardMultiplier = ((block.timestamp - nftDeposits[i].depositTime -nftDeposits[i].timeLockInSeconds) / stakingTime) * stakeWeight[nftDeposits[i].tokenId] * nftDeposits[i].amount;
            if(nftDeposits[i].depositOwner == msg.sender && rewardMultiplier > 0 &&nftDeposits[i].isWithdrawn == false) {
                uint256 rewardAmount = nftDeposits[i].rewardsEarned + rewardsTokenAmount * rewardMultiplier;  
                rewardsToken.rewardsMint(msg.sender, rewardAmount );
                nftDeposits[i].depositTime = block.timestamp;   
                nftDeposits[i].rewardsReleased += rewardAmount;
                nftDeposits[i].rewardsEarned = 0;
                emit RewardsWithdrawLog(
                    i,
                    msg.sender,
                    nftDeposits[i].tokenId,
                    nftDeposits[i].amount,
                    block.timestamp,
                    0,
                    nftDeposits[i].rewardsReleased
                );
            }
        }
    }

    function getItemIndexByNFT(uint256 tokenId) external view returns (uint256) {
        uint256 depositId;
        for(uint256 i = 0; i < nftDeposits.length; i ++){
            if(tokenId == nftDeposits[i].tokenId){
                depositId = nftDeposits[i].id;
            }
        }
        return depositId;
    }
    
    function getRewardsAmount(uint256 depositId) external view returns (uint256, uint256) {
        require(depositId <= nftDeposits.length, "Deposit id is not valid");        
        require(rewardsTokenAmount > 0, "Smart contract owner hasn't defined reward for this depositId. Please contact support team.");  
        if (nftDeposits[depositId].isWithdrawn == true) {
            return (0, nftDeposits[depositId].rewardsReleased);
        } else {
            if ((block.timestamp - nftDeposits[depositId].depositTime) >= nftDeposits[depositId].timeLockInSeconds+stakingTime) {
                uint256 rewardMultiplier = ((block.timestamp - nftDeposits[depositId].depositTime -nftDeposits[depositId].timeLockInSeconds) / stakingTime) * stakeWeight[nftDeposits[depositId].tokenId] * nftDeposits[depositId].amount;
                uint256 rewardAmount = nftDeposits[depositId].rewardsEarned + rewardsTokenAmount * rewardMultiplier;          
                return (rewardAmount, nftDeposits[depositId].rewardsReleased);
            } else {
                return (nftDeposits[depositId].rewardsEarned, nftDeposits[depositId].rewardsReleased);
            }
        }        
    }


    function getAllRewardsAmount(address _stakerAddres) external view returns(uint256, uint256) {
        uint256 totalRewardsEarned = 0;
        uint256 totalRewardsReleased = 0;
        for (uint256 i = 0; i < nftDeposits.length; i++) {
            if (nftDeposits[i].depositOwner==_stakerAddres){
                 if (nftDeposits[i].isWithdrawn == true) {                    
                    totalRewardsReleased += nftDeposits[i].rewardsReleased;                    
                } else {
                    if ((block.timestamp - nftDeposits[i].depositTime) >= nftDeposits[i].timeLockInSeconds+stakingTime) {
                        uint256 rewardMultiplier = ((block.timestamp - nftDeposits[i].depositTime- nftDeposits[i].timeLockInSeconds) / stakingTime) * stakeWeight[nftDeposits[i].tokenId] * nftDeposits[i].amount;
                        uint256 rewardAmount = nftDeposits[i].rewardsEarned + rewardsTokenAmount * rewardMultiplier;
                        totalRewardsEarned += rewardAmount;
                        totalRewardsReleased += nftDeposits[i].rewardsReleased;
                    } else {
                        totalRewardsEarned += nftDeposits[i].rewardsEarned;
                        totalRewardsReleased += nftDeposits[i].rewardsReleased;
                    }
                }
            }
        }
        return (totalRewardsEarned, totalRewardsReleased);
    }

    function getActivityLogs(address _walletAddress) external view returns (NFTDeposit[] memory) {
        address walletAddress = _walletAddress;
        uint256 itemCount = 0;
        uint256 currentIndex = 0;

        for(uint256 i = 0; i < nftDeposits.length; i ++){
            if(walletAddress == nftDeposits[i].depositOwner){
                itemCount += 1;
            }
        }
        NFTDeposit[] memory items = new NFTDeposit[](itemCount);
        for (uint256 i = 0; i < nftDeposits.length; i++) {
            if(walletAddress == nftDeposits[i].depositOwner){
                NFTDeposit storage item = nftDeposits[i];
                items[currentIndex] = item;
                currentIndex += 1;
            }
        }
        return items;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC1155","name":"_nft","type":"address"},{"internalType":"contract IRewardsToken","name":"_rewardsToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"depositId","type":"uint256"},{"indexed":false,"internalType":"address","name":"depositOwner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bool","name":"isWithdrawn","type":"bool"},{"indexed":false,"internalType":"uint256","name":"depositTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeLockInSeconds","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewardsEarned","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewardsReleased","type":"uint256"}],"name":"NFTDepositLog","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"depositId","type":"uint256"},{"indexed":false,"internalType":"address","name":"depositOwner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"withdrawTime","type":"uint256"},{"indexed":false,"internalType":"bool","name":"forceWithdraw","type":"bool"},{"indexed":false,"internalType":"uint256","name":"rewardsEarned","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewardsReleased","type":"uint256"}],"name":"NFTWithdrawLog","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"depositId","type":"uint256"},{"indexed":false,"internalType":"address","name":"depositOwner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"withdrawTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewardsEarned","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewardsReleased","type":"uint256"}],"name":"RewardsWithdrawLog","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"canDeposit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canStake","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"depositId","type":"uint256"}],"name":"emergencyUnstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_walletAddress","type":"address"}],"name":"getActivityLogs","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"depositOwner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"isWithdrawn","type":"bool"},{"internalType":"uint256","name":"depositTime","type":"uint256"},{"internalType":"uint256","name":"timeLockInSeconds","type":"uint256"},{"internalType":"uint256","name":"rewardsEarned","type":"uint256"},{"internalType":"uint256","name":"rewardsReleased","type":"uint256"}],"internalType":"struct MiningGameStaker.NFTDeposit[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_stakerAddres","type":"address"}],"name":"getAllRewardsAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getItemIndexByNFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"depositId","type":"uint256"}],"name":"getRewardsAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"minimum_stakingTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nftDeposits","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"depositOwner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"isWithdrawn","type":"bool"},{"internalType":"uint256","name":"depositTime","type":"uint256"},{"internalType":"uint256","name":"timeLockInSeconds","type":"uint256"},{"internalType":"uint256","name":"rewardsEarned","type":"uint256"},{"internalType":"uint256","name":"rewardsReleased","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155Received","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardsTokenAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setCanDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"_minimumStakingTime","type":"uint256"}],"name":"setMinimumStakingTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newRewardsTokenAmount","type":"uint256"}],"name":"setRewardsTokenAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_weight","type":"uint256"}],"name":"setStakeWeight","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakingTime","type":"uint256"}],"name":"setStakingTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"stakeBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakeWeight","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakedTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingTime","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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"depositId","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unstakeAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAllRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"depositId","type":"uint256"}],"name":"withdrawRewards","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526003805460ff60a01b19169055678ac7230489e8000060065561012c6008553480156200003057600080fd5b5060405162003664380380620036648339810160408190526200005391620000f1565b6200005e33620000a1565b60018055600280546001600160a01b039384166001600160a01b0319909116179055600380546001600160a81b0319169190921617600160a01b17905562000149565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080604083850312156200010557600080fd5b8251620001128162000130565b6020840151909250620001258162000130565b809150509250929050565b6001600160a01b03811681146200014657600080fd5b50565b61350b80620001596000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c8063968df2b011610104578063d0f7d24f116100a2578063e8a31bdc11610071578063e8a31bdc146103fa578063e97bd6fd1461040d578063f23a6e611461042d578063f2fde38b1461047f57600080fd5b8063d0f7d24f146103b8578063d29416b6146103cb578063d66692a7146103de578063e41194c8146103e757600080fd5b80639d3b3580116100de5780639d3b3580146103565780639ed2780914610369578063ac676d6a1461037d578063c89e9ee81461039057600080fd5b8063968df2b014610303578063973ebfa2146103165780639d33cc571461033657600080fd5b806339443b8e1161017c5780637b0472f01161014b5780637b0472f0146102ba5780638456cb59146102cd5780638da5cb5b146102d55780639342c8f4146102f057600080fd5b806339443b8e1461026f5780633f4ba83a146102a257806345114ee5146102aa578063715018a6146102b257600080fd5b80632e17de78116101b85780632e17de781461023857806332ec80fe1461024b57806335322f3714610254578063386172f31461025c57600080fd5b8063012ce501146101df578063146d4574146101f45780631bc5fc9614610210575b600080fd5b6101f26101ed366004612fd6565b610492565b005b6101fd60085481565b6040519081526020015b60405180910390f35b61022361021e366004612fd6565b61078a565b60405161020799989796959493929190613326565b6101f2610246366004612fd6565b6107f3565b6101fd60065481565b6101f2610e41565b6101f261026a366004612fd6565b6113c0565b61029261027d366004612fd6565b60046020526000908152604090205460ff1681565b6040519015158152602001610207565b6101f26113ef565b6101f261142e565b6101f26117df565b6101f26102c836600461303d565b611815565b6101f2611823565b6000546040516001600160a01b039091168152602001610207565b6101f26102fe366004612fd6565b61185c565b6101f261031136600461303d565b611cd0565b6101fd610324366004612fd6565b60096020526000908152604090205481565b6101fd610344366004612fd6565b60076020526000908152604090205481565b6101fd610364366004612fd6565b611d0c565b60035461029290600160a01b900460ff1681565b6101f261038b366004612fd6565b611d89565b6103a361039e366004612fd6565b611db8565b60408051928352602083019190915201610207565b6101f26103c6366004612f72565b6120d3565b6101f26103d9366004613008565b612132565b6101fd60055481565b6101f26103f536600461303d565b61217c565b6103a3610408366004612eaa565b6121b8565b61042061041b366004612eaa565b6124c6565b6040516102079190613097565b61046661043b366004612ecc565b7ff23a6e612e1ff4830e658fe43f4e3cb4a5f8170bd5d9e69fb5d7a7fa9e4fdf979695505050505050565b6040516001600160e01b03199091168152602001610207565b6101f261048d366004612eaa565b612708565b600a548111156104a157600080fd5b336001600160a01b0316600a82815481106104be576104be613489565b60009182526020909120600160099092020101546001600160a01b03161461053f5760405162461bcd60e51b815260206004820152602960248201527f4f6e6c79207468652073656e6465722063616e207769746864726177207468696044820152681cc819195c1bdcda5d60ba1b60648201526084015b60405180910390fd5b600a818154811061055257610552613489565b600091825260209091206004600990920201015460ff16156105865760405162461bcd60e51b8152600401610536906131bd565b600254600a80546001600160a01b039092169163f242432a913091339190869081106105b4576105b4613489565b906000526020600020906009020160020154600a86815481106105d9576105d9613489565b9060005260206000209060090201600301546040518563ffffffff1660e01b815260040161060a949392919061305f565b600060405180830381600087803b15801561062457600080fd5b505af1158015610638573d6000803e3d6000fd5b50505050600a818154811061064f5761064f613489565b90600052602060002090600902016003015460055461066e9190613441565b6005819055506001600a828154811061068957610689613489565b906000526020600020906009020160040160006101000a81548160ff0219169083151502179055507f99ec30897cf320328d2e640abbc5e8f6db3468ad8b24351953a3e3d9839be35b8133600a84815481106106e7576106e7613489565b906000526020600020906009020160020154600a858154811061070c5761070c613489565b906000526020600020906009020160030154426001600a888154811061073457610734613489565b906000526020600020906009020160070154600a898154811061075957610759613489565b90600052602060002090600902016008015460405161077f98979695949392919061336e565b60405180910390a150565b600a818154811061079a57600080fd5b60009182526020909120600990910201805460018201546002830154600384015460048501546005860154600687015460078801546008909801549698506001600160a01b03909516969395929460ff90921693909289565b600a548111156108155760405162461bcd60e51b8152600401610536906132ef565b600a818154811061082857610828613489565b600091825260209091206004600990920201015460ff161561085c5760405162461bcd60e51b8152600401610536906131bd565b336001600160a01b0316600a828154811061087957610879613489565b60009182526020909120600160099092020101546001600160a01b0316146108b35760405162461bcd60e51b815260040161053690613272565b600854600a82815481106108c9576108c9613489565b9060005260206000209060090201600601546108e591906133e8565b600a82815481106108f8576108f8613489565b906000526020600020906009020160050154426109159190613441565b10156109335760405162461bcd60e51b815260040161053690613205565b6000600654116109555760405162461bcd60e51b81526004016105369061313a565b600254600a80546001600160a01b039092169163f242432a9130913391908690811061098357610983613489565b906000526020600020906009020160020154600a86815481106109a8576109a8613489565b9060005260206000209060090201600301546040518563ffffffff1660e01b81526004016109d9949392919061305f565b600060405180830381600087803b1580156109f357600080fd5b505af1158015610a07573d6000803e3d6000fd5b50505050600a8181548110610a1e57610a1e613489565b906000526020600020906009020160030154600554610a3d9190613441565b6005819055506001600a8281548110610a5857610a58613489565b60009182526020822060099190910201600401805460ff191692151592909217909155600a805483908110610a8f57610a8f613489565b90600052602060002090600902016003015460076000600a8581548110610ab857610ab8613489565b906000526020600020906009020160020154815260200190815260200160002054600854600a8581548110610aef57610aef613489565b906000526020600020906009020160060154600a8681548110610b1457610b14613489565b90600052602060002090600902016005015442610b319190613441565b610b3b9190613441565b610b459190613400565b610b4f9190613422565b610b599190613422565b905080600654610b699190613422565b600a8381548110610b7c57610b7c613489565b90600052602060002090600902016007016000828254610b9c91906133e8565b925050819055507f99ec30897cf320328d2e640abbc5e8f6db3468ad8b24351953a3e3d9839be35b8233600a8581548110610bd957610bd9613489565b906000526020600020906009020160020154600a8681548110610bfe57610bfe613489565b906000526020600020906009020160030154426000600a8981548110610c2657610c26613489565b906000526020600020906009020160070154600a8a81548110610c4b57610c4b613489565b906000526020600020906009020160080154604051610c7198979695949392919061336e565b60405180910390a1600354600a80546001600160a01b039092169163c3a4211491339186908110610ca457610ca4613489565b60009182526020909120600760099092020101546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015610cfe57600080fd5b505af1158015610d12573d6000803e3d6000fd5b50505050600a8281548110610d2957610d29613489565b906000526020600020906009020160070154600a8381548110610d4e57610d4e613489565b90600052602060002090600902016008016000828254610d6e91906133e8565b925050819055506000600a8381548110610d8a57610d8a613489565b9060005260206000209060090201600701819055506000805160206134b68339815191528233600a8581548110610dc357610dc3613489565b906000526020600020906009020160020154600a8681548110610de857610de8613489565b906000526020600020906009020160030154426000600a8981548110610e1057610e10613489565b906000526020600020906009020160080154604051610e3597969594939291906133af565b60405180910390a15050565b60005b600a548110156113bd57336001600160a01b0316600a8281548110610e6b57610e6b613489565b60009182526020909120600160099092020101546001600160a01b0316148015610ebc5750600a8181548110610ea357610ea3613489565b600091825260209091206004600990920201015460ff16155b156113ab57600254600a80546001600160a01b039092169163f242432a91309133919086908110610eef57610eef613489565b906000526020600020906009020160020154600a8681548110610f1457610f14613489565b9060005260206000209060090201600301546040518563ffffffff1660e01b8152600401610f45949392919061305f565b600060405180830381600087803b158015610f5f57600080fd5b505af1158015610f73573d6000803e3d6000fd5b50505050600a8181548110610f8a57610f8a613489565b906000526020600020906009020160030154600554610fa99190613441565b6005819055506001600a8281548110610fc457610fc4613489565b60009182526020822060099190910201600401805460ff191692151592909217909155600a805483908110610ffb57610ffb613489565b90600052602060002090600902016003015460076000600a858154811061102457611024613489565b906000526020600020906009020160020154815260200190815260200160002054600854600a858154811061105b5761105b613489565b906000526020600020906009020160060154600a868154811061108057611080613489565b9060005260206000209060090201600501544261109d9190613441565b6110a79190613441565b6110b19190613400565b6110bb9190613422565b6110c59190613422565b9050806006546110d59190613422565b600a83815481106110e8576110e8613489565b9060005260206000209060090201600701600082825461110891906133e8565b925050819055507f99ec30897cf320328d2e640abbc5e8f6db3468ad8b24351953a3e3d9839be35b8233600a858154811061114557611145613489565b906000526020600020906009020160020154600a868154811061116a5761116a613489565b906000526020600020906009020160030154426000600a898154811061119257611192613489565b906000526020600020906009020160070154600a8a815481106111b7576111b7613489565b9060005260206000209060090201600801546040516111dd98979695949392919061336e565b60405180910390a1600354600a80546001600160a01b039092169163c3a421149133918690811061121057611210613489565b60009182526020909120600760099092020101546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561126a57600080fd5b505af115801561127e573d6000803e3d6000fd5b50505050600a828154811061129557611295613489565b906000526020600020906009020160070154600a83815481106112ba576112ba613489565b906000526020600020906009020160080160008282546112da91906133e8565b925050819055506000600a83815481106112f6576112f6613489565b9060005260206000209060090201600701819055506000805160206134b68339815191528233600a858154811061132f5761132f613489565b906000526020600020906009020160020154600a868154811061135457611354613489565b906000526020600020906009020160030154426000600a898154811061137c5761137c613489565b9060005260206000209060090201600801546040516113a197969594939291906133af565b60405180910390a1505b806113b581613458565b915050610e44565b50565b6000546001600160a01b031633146113ea5760405162461bcd60e51b8152600401610536906132ba565b600855565b6000546001600160a01b031633146114195760405162461bcd60e51b8152600401610536906132ba565b6003805460ff60a01b1916600160a01b179055565b600260015414156114815760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610536565b600260015560005b600a548110156117d8576000600a82815481106114a8576114a8613489565b90600052602060002090600902016003015460076000600a85815481106114d1576114d1613489565b906000526020600020906009020160020154815260200190815260200160002054600854600a858154811061150857611508613489565b906000526020600020906009020160060154600a868154811061152d5761152d613489565b9060005260206000209060090201600501544261154a9190613441565b6115549190613441565b61155e9190613400565b6115689190613422565b6115729190613422565b9050336001600160a01b0316600a838154811061159157611591613489565b60009182526020909120600160099092020101546001600160a01b03161480156115bb5750600081115b80156115ee5750600a82815481106115d5576115d5613489565b600091825260209091206004600990920201015460ff16155b156117c5576000816006546116039190613422565b600a848154811061161657611616613489565b90600052602060002090600902016007015461163291906133e8565b6003546040516330e9084560e21b8152336004820152602481018390529192506001600160a01b03169063c3a4211490604401600060405180830381600087803b15801561167f57600080fd5b505af1158015611693573d6000803e3d6000fd5b5050505042600a84815481106116ab576116ab613489565b90600052602060002090600902016005018190555080600a84815481106116d4576116d4613489565b906000526020600020906009020160080160008282546116f491906133e8565b925050819055506000600a848154811061171057611710613489565b9060005260206000209060090201600701819055506000805160206134b68339815191528333600a868154811061174957611749613489565b906000526020600020906009020160020154600a878154811061176e5761176e613489565b906000526020600020906009020160030154426000600a8a8154811061179657611796613489565b9060005260206000209060090201600801546040516117bb97969594939291906133af565b60405180910390a1505b50806117d081613458565b915050611489565b5060018055565b6000546001600160a01b031633146118095760405162461bcd60e51b8152600401610536906132ba565b611813600061279c565b565b61181f82826127ec565b5050565b6000546001600160a01b0316331461184d5760405162461bcd60e51b8152600401610536906132ba565b6003805460ff60a01b19169055565b600260015414156118af5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610536565b6002600155600a548111156118d65760405162461bcd60e51b8152600401610536906132ef565b600a81815481106118e9576118e9613489565b600091825260209091206004600990920201015460ff161561191d5760405162461bcd60e51b8152600401610536906131bd565b336001600160a01b0316600a828154811061193a5761193a613489565b60009182526020909120600160099092020101546001600160a01b0316146119745760405162461bcd60e51b815260040161053690613272565b600854600a828154811061198a5761198a613489565b9060005260206000209060090201600601546119a691906133e8565b600a82815481106119b9576119b9613489565b906000526020600020906009020160050154426119d69190613441565b10156119f45760405162461bcd60e51b815260040161053690613205565b600060065411611a165760405162461bcd60e51b81526004016105369061313a565b6000600a8281548110611a2b57611a2b613489565b90600052602060002090600902016003015460076000600a8581548110611a5457611a54613489565b906000526020600020906009020160020154815260200190815260200160002054600854600a8581548110611a8b57611a8b613489565b906000526020600020906009020160060154600a8681548110611ab057611ab0613489565b90600052602060002090600902016005015442611acd9190613441565b611ad79190613441565b611ae19190613400565b611aeb9190613422565b611af59190613422565b9050600081600654611b079190613422565b600a8481548110611b1a57611b1a613489565b906000526020600020906009020160070154611b3691906133e8565b6003546040516330e9084560e21b8152336004820152602481018390529192506001600160a01b03169063c3a4211490604401600060405180830381600087803b158015611b8357600080fd5b505af1158015611b97573d6000803e3d6000fd5b5050505042600a8481548110611baf57611baf613489565b90600052602060002090600902016005018190555080600a8481548110611bd857611bd8613489565b90600052602060002090600902016008016000828254611bf891906133e8565b925050819055506000600a8481548110611c1457611c14613489565b9060005260206000209060090201600701819055506000805160206134b68339815191528333600a8681548110611c4d57611c4d613489565b906000526020600020906009020160020154600a8781548110611c7257611c72613489565b906000526020600020906009020160030154426000600a8a81548110611c9a57611c9a613489565b906000526020600020906009020160080154604051611cbf97969594939291906133af565b60405180910390a150506001805550565b6000546001600160a01b03163314611cfa5760405162461bcd60e51b8152600401610536906132ba565b60009182526009602052604090912055565b60008060005b600a54811015611d8257600a8181548110611d2f57611d2f613489565b906000526020600020906009020160020154841415611d7057600a8181548110611d5b57611d5b613489565b90600052602060002090600902016000015491505b80611d7a81613458565b915050611d12565b5092915050565b6000546001600160a01b03163314611db35760405162461bcd60e51b8152600401610536906132ba565b600655565b600a546000908190831115611ddf5760405162461bcd60e51b8152600401610536906132ef565b600060065411611e7d5760405162461bcd60e51b815260206004820152605b60248201527f536d61727420636f6e7472616374206f776e6572206861736e2774206465666960448201527f6e65642072657761726420666f722074686973206465706f73697449642e205060648201527f6c6561736520636f6e7461637420737570706f7274207465616d2e0000000000608482015260a401610536565b600a8381548110611e9057611e90613489565b600091825260209091206004600990920201015460ff16151560011415611ee1576000600a8481548110611ec657611ec6613489565b90600052602060002090600902016008015491509150915091565b600854600a8481548110611ef757611ef7613489565b906000526020600020906009020160060154611f1391906133e8565b600a8481548110611f2657611f26613489565b90600052602060002090600902016005015442611f439190613441565b1061209b576000600a8481548110611f5d57611f5d613489565b90600052602060002090600902016003015460076000600a8781548110611f8657611f86613489565b906000526020600020906009020160020154815260200190815260200160002054600854600a8781548110611fbd57611fbd613489565b906000526020600020906009020160060154600a8881548110611fe257611fe2613489565b90600052602060002090600902016005015442611fff9190613441565b6120099190613441565b6120139190613400565b61201d9190613422565b6120279190613422565b90506000816006546120399190613422565b600a868154811061204c5761204c613489565b90600052602060002090600902016007015461206891906133e8565b905080600a868154811061207e5761207e613489565b906000526020600020906009020160080154935093505050915091565b600a83815481106120ae576120ae613489565b906000526020600020906009020160070154600a8481548110611ec657611ec6613489565b60005b825181101561212d5761211b8382815181106120f4576120f4613489565b602002602001015183838151811061210e5761210e613489565b60200260200101516127ec565b8061212581613458565b9150506120d6565b505050565b6000546001600160a01b0316331461215c5760405162461bcd60e51b8152600401610536906132ba565b600091825260046020526040909120805460ff1916911515919091179055565b6000546001600160a01b031633146121a65760405162461bcd60e51b8152600401610536906132ba565b60009182526007602052604090912055565b60008060008060005b600a548110156124bb57856001600160a01b0316600a82815481106121e8576121e8613489565b60009182526020909120600160099092020101546001600160a01b031614156124a957600a818154811061221e5761221e613489565b600091825260209091206004600990920201015460ff1615156001141561227657600a818154811061225257612252613489565b9060005260206000209060090201600801548261226f91906133e8565b91506124a9565b600854600a828154811061228c5761228c613489565b9060005260206000209060090201600601546122a891906133e8565b600a82815481106122bb576122bb613489565b906000526020600020906009020160050154426122d89190613441565b10612444576000600a82815481106122f2576122f2613489565b90600052602060002090600902016003015460076000600a858154811061231b5761231b613489565b906000526020600020906009020160020154815260200190815260200160002054600854600a858154811061235257612352613489565b906000526020600020906009020160060154600a868154811061237757612377613489565b906000526020600020906009020160050154426123949190613441565b61239e9190613441565b6123a89190613400565b6123b29190613422565b6123bc9190613422565b90506000816006546123ce9190613422565b600a84815481106123e1576123e1613489565b9060005260206000209060090201600701546123fd91906133e8565b905061240981866133e8565b9450600a838154811061241e5761241e613489565b9060005260206000209060090201600801548461243b91906133e8565b935050506124a9565b600a818154811061245757612457613489565b9060005260206000209060090201600701548361247491906133e8565b9250600a818154811061248957612489613489565b906000526020600020906009020160080154826124a691906133e8565b91505b806124b381613458565b9150506121c1565b509094909350915050565b606081600080805b600a5481101561253257600a81815481106124eb576124eb613489565b60009182526020909120600160099092020101546001600160a01b03858116911614156125205761251d6001846133e8565b92505b8061252a81613458565b9150506124ce565b5060008267ffffffffffffffff81111561254e5761254e61349f565b6040519080825280602002602001820160405280156125d957816020015b6125c66040518061012001604052806000815260200160006001600160a01b031681526020016000815260200160008152602001600015158152602001600081526020016000815260200160008152602001600081525090565b81526020019060019003908161256c5790505b50905060005b600a548110156126fe57600a81815481106125fc576125fc613489565b60009182526020909120600160099092020101546001600160a01b03868116911614156126ec576000600a828154811061263857612638613489565b6000918252602091829020604080516101208101825260099093029091018054835260018101546001600160a01b03169383019390935260028301549082015260038201546060820152600482015460ff1615156080820152600582015460a0820152600682015460c0820152600782015460e082015260088201546101008201528451919250908490869081106126d2576126d2613489565b60209081029190910101526126e86001856133e8565b9350505b806126f681613458565b9150506125df565b5095945050505050565b6000546001600160a01b031633146127325760405162461bcd60e51b8152600401610536906132ba565b6001600160a01b0381166127975760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610536565b6113bd815b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b333b156128475760405162461bcd60e51b8152602060048201526024808201527f5374616b696e67206973206e6f7420616c6c6f77656420666f7220636f6e74726044820152636163747360e01b6064820152608401610536565b600354600160a01b900460ff1615156001146128a55760405162461bcd60e51b815260206004820152601f60248201527f5374616b696e672069732074656d706f726172696c792064697361626c6564006044820152606401610536565b60008281526004602052604090205460ff166129035760405162461bcd60e51b815260206004820181905260248201527f596f752063616e2774207374616b6520666f72207468697320746f6b656e49646044820152606401610536565b600254604051627eeac760e11b8152336004820152602481018490526001600160a01b039091169062fdd58e9060440160206040518083038186803b15801561294b57600080fd5b505afa15801561295f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129839190612fef565b6129e05760405162461bcd60e51b815260206004820152602860248201527f55736572206d75737420626520746865206f776e6572206f6620746865207374604482015267185ad959081b999d60c21b6064820152608401610536565b8160011415612b3b5780600114612a395760405162461bcd60e51b815260206004820152601f60248201527f596f752063616e206f6e6c79207374616b65206f6e652046524545204e4654006044820152606401610536565b60005b600a54811015612b3957336001600160a01b0316600a8281548110612a6357612a63613489565b60009182526020909120600160099092020101546001600160a01b0316148015612ab0575082600a8281548110612a9c57612a9c613489565b906000526020600020906009020160020154145b15612b2757600a8181548110612ac857612ac8613489565b600091825260209091206004600990920201015460ff161515600114612b275760405162461bcd60e51b8152602060048201526014602482015273141b19585cd9481d5b9cdd185ad948199a5c9cdd60621b6044820152606401610536565b80612b3181613458565b915050612a3c565b505b600a80546040805161012081018252828152336020808301828152838501898152606085018981526000608087018181524260a089019081528d83526009968790528983205460c08a0190815260e08a018481526101008b0185815260018e018f559d90945298517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a8978c029788015594517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a9870180546001600160a01b0319166001600160a01b0392831617905593517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2aa87015591517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ab86015590517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ac8501805460ff191691151591909117905591517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ad84015593517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ae830155517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2af82015594517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2b0909501949094556002549151637921219560e11b8152929391169163f242432a91612d519130908890889060040161305f565b600060405180830381600087803b158015612d6b57600080fd5b505af1158015612d7f573d6000803e3d6000fd5b5050505081600554612d9191906133e8565b6005556000838152600960205260408082205490517f057dd3b033eb35f61d38b35ecacea15cfa84088e883fb9c28668478b9f7f2c2c92612de092859233928992899242919083908190613326565b60405180910390a1505050565b80356001600160a01b0381168114612e0457600080fd5b919050565b600082601f830112612e1a57600080fd5b8135602067ffffffffffffffff80831115612e3757612e3761349f565b8260051b604051601f19603f83011681018181108482111715612e5c57612e5c61349f565b60405284815283810192508684018288018501891015612e7b57600080fd5b600092505b85831015612e9e578035845292840192600192909201918401612e80565b50979650505050505050565b600060208284031215612ebc57600080fd5b612ec582612ded565b9392505050565b60008060008060008060a08789031215612ee557600080fd5b612eee87612ded565b9550612efc60208801612ded565b94506040870135935060608701359250608087013567ffffffffffffffff80821115612f2757600080fd5b818901915089601f830112612f3b57600080fd5b813581811115612f4a57600080fd5b8a6020828501011115612f5c57600080fd5b6020830194508093505050509295509295509295565b60008060408385031215612f8557600080fd5b823567ffffffffffffffff80821115612f9d57600080fd5b612fa986838701612e09565b93506020850135915080821115612fbf57600080fd5b50612fcc85828601612e09565b9150509250929050565b600060208284031215612fe857600080fd5b5035919050565b60006020828403121561300157600080fd5b5051919050565b6000806040838503121561301b57600080fd5b823591506020830135801515811461303257600080fd5b809150509250929050565b6000806040838503121561305057600080fd5b50508035926020909101359150565b6001600160a01b0394851681529290931660208301526040820152606081019190915260a06080820181905260009082015260c00190565b602080825282518282018190526000919060409081850190868401855b8281101561312d57815180518552868101516001600160a01b03168786015285810151868601526060808201519086015260808082015115159086015260a0808201519086015260c0808201519086015260e08082015190860152610100908101519085015261012090930192908501906001016130b4565b5091979650505050505050565b60208082526059908201527f536d61727420636f6e7472616374206f776e6572206861736e2774206465666960408201527f6e65642072657761726420666f7220796f7572206465706f7369742e20506c6560608201527f61736520636f6e7461637420737570706f7274207465616d2e00000000000000608082015260a00190565b60208082526028908201527f54686973206465706f7369742068617320616c7265616479206265656e2077696040820152673a34323930bbb71760c11b606082015260800190565b60208082526047908201527f596f752063616e27742079657420756e6c6f636b2074686973206465706f736960408201527f742e2020706c656173652075736520656d657267656e6379556e7374616b65206060820152661a5b9cdd19585960ca1b608082015260a00190565b60208082526028908201527f596f752063616e206f6e6c7920776974686472617720796f7572206f776e206460408201526732b837b9b4ba399760c11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526017908201527f4465706f736974206964206973206e6f742076616c6964000000000000000000604082015260600190565b9889526001600160a01b0397909716602089015260408801959095526060870193909352901515608086015260a085015260c084015260e08301526101008201526101200190565b9788526001600160a01b03969096166020880152604087019490945260608601929092526080850152151560a084015260c083015260e08201526101000190565b9687526001600160a01b0395909516602087015260408601939093526060850191909152608084015260a083015260c082015260e00190565b600082198211156133fb576133fb613473565b500190565b60008261341d57634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561343c5761343c613473565b500290565b60008282101561345357613453613473565b500390565b600060001982141561346c5761346c613473565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfebcf2375d3a437d85bc818bfee082a0b3ded053138d294722c1a79caaf0166d3ba264697066735822122074ae3ddd30a8d1b97cf9effd099818b716e0a752ee1e6184039eef94f0ba0e3e64736f6c63430008070033000000000000000000000000970a8b10147e3459d3cbf56329b76ac18d329728000000000000000000000000e960d5076cd3169c343ee287a2c3380a222e5839

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

000000000000000000000000970a8b10147e3459d3cbf56329b76ac18d329728000000000000000000000000e960d5076cd3169c343ee287a2c3380a222e5839

-----Decoded View---------------
Arg [0] : _nft (address): 0x970a8b10147e3459d3cbf56329b76ac18d329728
Arg [1] : _rewardsToken (address): 0xe960d5076cd3169c343ee287a2c3380a222e5839

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000970a8b10147e3459d3cbf56329b76ac18d329728
Arg [1] : 000000000000000000000000e960d5076cd3169c343ee287a2c3380a222e5839


Deployed ByteCode Sourcemap

33540:16994:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39295:929;;;;;;:::i;:::-;;:::i;:::-;;34451:32;;;;;;;;;13230:25:1;;;13218:2;13203:18;34451:32:0;;;;;;;;35278:31;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;;;;:::i;40232:2105::-;;;;;;:::i;:::-;;:::i;34197:44::-;;;;;;42345:1672;;;:::i;36767:109::-;;;;;;:::i;:::-;;:::i;33810:43::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;6420:14:1;;6413:22;6395:41;;6383:2;6368:18;33810:43:0;6255:187:1;36391:71:0;;;:::i;45624:1151::-;;;:::i;15944:103::-;;;:::i;37172:105::-;;;;;;:::i;:::-;;:::i;36313:70::-;;;:::i;15293:87::-;15339:7;15366:6;15293:87;;-1:-1:-1;;;;;15366:6:0;;;3902:51:1;;3890:2;3875:18;15293:87:0;3756:203:1;44027:1589:0;;;;;;:::i;:::-;;:::i;36595:164::-;;;;;;:::i;:::-;;:::i;34519:55::-;;;;;;:::i;:::-;;;;;;;;;;;;;;34324:47;;;;;;:::i;:::-;;;;;;;;;;;;;;46783:324;;;;;;:::i;:::-;;:::i;33733:28::-;;;;;-1:-1:-1;;;33733:28:0;;;;;;36884:144;;;;;;:::i;:::-;;:::i;47119:1196::-;;;;;;:::i;:::-;;:::i;:::-;;;;16406:25:1;;;16462:2;16447:18;;16440:34;;;;16379:18;47119:1196:0;16232:248:1;37285:214:0;;;;;;:::i;:::-;;:::i;36470:117::-;;;;;;:::i;:::-;;:::i;34160:26::-;;;;;;37036:128;;;;;;:::i;:::-;;:::i;48325:1420::-;;;;;;:::i;:::-;;:::i;49753:778::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;33862:288::-;;;;;;:::i;:::-;34072:69;33862:288;;;;;;;;;;;;-1:-1:-1;;;;;;6609:33:1;;;6591:52;;6579:2;6564:18;33862:288:0;6447:202:1;16202:201:0;;;;;;:::i;:::-;;:::i;39295:929::-;39387:11;:18;39374:31;;;39366:40;;;;;;39466:10;-1:-1:-1;;;;;39427:49:0;:11;39439:9;39427:22;;;;;;;;:::i;:::-;;;;;;;;;:35;:22;;;;;:35;;-1:-1:-1;;;;;39427:35:0;:49;39419:103;;;;-1:-1:-1;;;39419:103:0;;8483:2:1;39419:103:0;;;8465:21:1;8522:2;8502:18;;;8495:30;8561:34;8541:18;;;8534:62;-1:-1:-1;;;8612:18:1;;;8605:39;8661:19;;39419:103:0;;;;;;;;;39543:11;39555:9;39543:22;;;;;;;;:::i;:::-;;;;;;;;;:34;:22;;;;;:34;;;;:43;39535:96;;;;-1:-1:-1;;;39535:96:0;;;;;;;:::i;:::-;39644:3;;39692:11;:22;;-1:-1:-1;;;;;39644:3:0;;;;:20;;39673:4;;39680:10;;39692:11;39704:9;;39692:22;;;;;;:::i;:::-;;;;;;;;;;;:30;;;39724:11;39736:9;39724:22;;;;;;;;:::i;:::-;;;;;;;;;;;:29;;;39644:114;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39799:11;39811:9;39799:22;;;;;;;;:::i;:::-;;;;;;;;;;;:29;;;39785:11;;:43;;;;:::i;:::-;39771:11;:57;;;;39878:4;39841:11;39853:9;39841:22;;;;;;;;:::i;:::-;;;;;;;;;;;:34;;;:41;;;;;;;;;;;;;;;;;;39900:316;39929:9;39953:10;39978:11;39990:9;39978:22;;;;;;;;:::i;:::-;;;;;;;;;;;:30;;;40023:11;40035:9;40023:22;;;;;;;;:::i;:::-;;;;;;;;;;;:29;;;40067:15;40097:4;40116:11;40128:9;40116:22;;;;;;;;:::i;:::-;;;;;;;;;;;:36;;;40167:11;40179:9;40167:22;;;;;;;;:::i;:::-;;;;;;;;;;;:38;;;39900:316;;;;;;;;;;;;;:::i;:::-;;;;;;;;39295:929;:::o;35278:31::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;35278:31:0;;;;;;;;;;;;;;;;:::o;40232:2105::-;40309:11;:18;40296:31;;;40288:67;;;;-1:-1:-1;;;40288:67:0;;;;;;;:::i;:::-;40374:11;40386:9;40374:22;;;;;;;;:::i;:::-;;;;;;;;;:34;:22;;;;;:34;;;;:43;40366:96;;;;-1:-1:-1;;;40366:96:0;;;;;;;:::i;:::-;40520:10;-1:-1:-1;;;;;40481:49:0;:11;40493:9;40481:22;;;;;;;;:::i;:::-;;;;;;;;;:35;:22;;;;;:35;;-1:-1:-1;;;;;40481:35:0;:49;40473:102;;;;-1:-1:-1;;;40473:102:0;;;;;;;:::i;:::-;40695:11;;40652;40664:9;40652:22;;;;;;;;:::i;:::-;;;;;;;;;;;:40;;;:54;;;;:::i;:::-;40613:11;40625:9;40613:22;;;;;;;;:::i;:::-;;;;;;;;;;;:34;;;40595:15;:52;;;;:::i;:::-;40594:112;;40586:196;;;;-1:-1:-1;;;40586:196:0;;;;;;;:::i;:::-;40822:1;40801:18;;:22;40793:124;;;;-1:-1:-1;;;40793:124:0;;;;;;;:::i;:::-;40928:3;;40976:11;:22;;-1:-1:-1;;;;;40928:3:0;;;;:20;;40957:4;;40964:10;;40976:11;40988:9;;40976:22;;;;;;:::i;:::-;;;;;;;;;;;:30;;;41008:11;41020:9;41008:22;;;;;;;;:::i;:::-;;;;;;;;;;;:29;;;40928:114;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41089:11;41101:9;41089:22;;;;;;;;:::i;:::-;;;;;;;;;;;:29;;;41075:11;;:43;;;;:::i;:::-;41061:11;:57;;;;41166:4;41129:11;41141:9;41129:22;;;;;;;;:::i;:::-;;;;;;;;;;;;;;:34;;:41;;-1:-1:-1;;41129:41:0;;;;;;;;;;;41369:11;:22;;41381:9;;41369:22;;;;;;:::i;:::-;;;;;;;;;;;:29;;;41323:11;:43;41335:11;41347:9;41335:22;;;;;;;;:::i;:::-;;;;;;;;;;;:30;;;41323:43;;;;;;;;;;;;41308:11;;41264;41276:9;41264:22;;;;;;;;:::i;:::-;;;;;;;;;;;:40;;;41228:11;41240:9;41228:22;;;;;;;;:::i;:::-;;;;;;;;;;;:34;;;41210:15;:52;;;;:::i;:::-;:94;;;;:::i;:::-;41209:110;;;;:::i;:::-;41208:158;;;;:::i;:::-;:190;;;;:::i;:::-;41181:217;;41470:16;41449:18;;:37;;;;:::i;:::-;41409:11;41421:9;41409:22;;;;;;;;:::i;:::-;;;;;;;;;;;:36;;;:77;;;;;;;:::i;:::-;;;;;;;;41504:317;41533:9;41557:10;41582:11;41594:9;41582:22;;;;;;;;:::i;:::-;;;;;;;;;;;:30;;;41627:11;41639:9;41627:22;;;;;;;;:::i;:::-;;;;;;;;;;;:29;;;41671:15;41701:5;41721:11;41733:9;41721:22;;;;;;;;:::i;:::-;;;;;;;;;;;:36;;;41772:11;41784:9;41772:22;;;;;;;;:::i;:::-;;;;;;;;;;;:38;;;41504:317;;;;;;;;;;;;;:::i;:::-;;;;;;;;41832:12;;41869:11;:22;;-1:-1:-1;;;;;41832:12:0;;;;:24;;41857:10;;41881:9;;41869:22;;;;;;:::i;:::-;;;;;;;;;:36;:22;;;;;:36;;41832:75;;-1:-1:-1;;;;;;41832:75:0;;;;;;;-1:-1:-1;;;;;4788:32:1;;;41832:75:0;;;4770:51:1;4837:18;;;4830:34;4743:18;;41832:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41960:11;41972:9;41960:22;;;;;;;;:::i;:::-;;;;;;;;;;;:36;;;41918:11;41930:9;41918:22;;;;;;;;:::i;:::-;;;;;;;;;;;:38;;;:78;;;;;;;:::i;:::-;;;;;;;;42046:1;42007:11;42019:9;42007:22;;;;;;;;:::i;:::-;;;;;;;;;;;:36;;:40;;;;-1:-1:-1;;;;;;;;;;;42096:9:0;42120:10;42145:11;42157:9;42145:22;;;;;;;;:::i;:::-;;;;;;;;;;;:30;;;42190:11;42202:9;42190:22;;;;;;;;:::i;:::-;;;;;;;;;;;:29;;;42234:15;42264:1;42280:11;42292:9;42280:22;;;;;;;;:::i;:::-;;;;;;;;;;;:38;;;42063:266;;;;;;;;;;;;:::i;:::-;;;;;;;;40275:2062;40232:2105;:::o;42345:1672::-;42389:9;42385:1625;42408:11;:18;42404:22;;42385:1625;;;42482:10;-1:-1:-1;;;;;42451:41:0;:11;42463:1;42451:14;;;;;;;;:::i;:::-;;;;;;;;;:27;:14;;;;;:27;;-1:-1:-1;;;;;42451:27:0;:41;:80;;;;;42496:11;42508:1;42496:14;;;;;;;;:::i;:::-;;;;;;;;;:26;:14;;;;;:26;;;;:35;42451:80;42448:1551;;;42552:3;;42600:11;:14;;-1:-1:-1;;;;;42552:3:0;;;;:20;;42581:4;;42588:10;;42600:11;42612:1;;42600:14;;;;;;:::i;:::-;;;;;;;;;;;:22;;;42624:11;42636:1;42624:14;;;;;;;;:::i;:::-;;;;;;;;;;;:21;;;42552:98;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42705:11;42717:1;42705:14;;;;;;;;:::i;:::-;;;;;;;;;;;:21;;;42691:11;;:35;;;;:::i;:::-;42677:11;:49;;;;42774:4;42745:11;42757:1;42745:14;;;;;;;;:::i;:::-;;;;;;;;;;;;;;:26;;:33;;-1:-1:-1;;42745:33:0;;;;;;;;;;;42961:11;:14;;42973:1;;42961:14;;;;;;:::i;:::-;;;;;;;;;;;:21;;;42923:11;:35;42935:11;42947:1;42935:14;;;;;;;;:::i;:::-;;;;;;;;;;;:22;;;42923:35;;;;;;;;;;;;42908:11;;42872;42884:1;42872:14;;;;;;;;:::i;:::-;;;;;;;;;;;:32;;;42844:11;42856:1;42844:14;;;;;;;;:::i;:::-;;;;;;;;;;;:26;;;42826:15;:44;;;;:::i;:::-;:78;;;;:::i;:::-;42825:94;;;;:::i;:::-;42824:134;;;;:::i;:::-;:158;;;;:::i;:::-;42797:185;;43054:16;43033:18;;:37;;;;:::i;:::-;43001:11;43013:1;43001:14;;;;;;;;:::i;:::-;;;;;;;;;;;:28;;;:69;;;;;;;:::i;:::-;;;;;;;;43094:349;43131:1;43155:10;43188:11;43200:1;43188:14;;;;;;;;:::i;:::-;;;;;;;;;;;:22;;;43233:11;43245:1;43233:14;;;;;;;;:::i;:::-;;;;;;;;;;;:21;;;43277:15;43315:5;43343:11;43355:1;43343:14;;;;;;;;:::i;:::-;;;;;;;;;;;:28;;;43394:11;43406:1;43394:14;;;;;;;;:::i;:::-;;;;;;;;;;;:30;;;43094:349;;;;;;;;;;;;;:::i;:::-;;;;;;;;43462:12;;43499:11;:14;;-1:-1:-1;;;;;43462:12:0;;;;:24;;43487:10;;43511:1;;43499:14;;;;;;:::i;:::-;;;;;;;;;:28;:14;;;;;:28;;43462:67;;-1:-1:-1;;;;;;43462:67:0;;;;;;;-1:-1:-1;;;;;4788:32:1;;;43462:67:0;;;4770:51:1;4837:18;;;4830:34;4743:18;;43462:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43582:11;43594:1;43582:14;;;;;;;;:::i;:::-;;;;;;;;;;;:28;;;43548:11;43560:1;43548:14;;;;;;;;:::i;:::-;;;;;;;;;;;:30;;;:62;;;;;;;:::i;:::-;;;;;;;;43660:1;43629:11;43641:1;43629:14;;;;;;;;:::i;:::-;;;;;;;;;;;:28;;:32;;;;-1:-1:-1;;;;;;;;;;;43726:1:0;43750:10;43783:11;43795:1;43783:14;;;;;;;;:::i;:::-;;;;;;;;;;;:22;;;43828:11;43840:1;43828:14;;;;;;;;:::i;:::-;;;;;;;;;;;:21;;;43872:15;43910:1;43934:11;43946:1;43934:14;;;;;;;;:::i;:::-;;;;;;;;;;;:30;;;43685:298;;;;;;;;;;;;:::i;:::-;;;;;;;;42533:1466;42448:1551;42428:3;;;;:::i;:::-;;;;42385:1625;;;;42345:1672::o;36767:109::-;15339:7;15366:6;-1:-1:-1;;;;;15366:6:0;14097:10;15513:23;15505:68;;;;-1:-1:-1;;;15505:68:0;;;;;;;:::i;:::-;36842:11:::1;:26:::0;36767:109::o;36391:71::-;15339:7;15366:6;-1:-1:-1;;;;;15366:6:0;14097:10;15513:23;15505:68;;;;-1:-1:-1;;;15505:68:0;;;;;;;:::i;:::-;36439:8:::1;:15:::0;;-1:-1:-1;;;;36439:15:0::1;-1:-1:-1::0;;;36439:15:0::1;::::0;;36391:71::o;45624:1151::-;33255:1;33401:7;;:19;;33393:63;;;;-1:-1:-1;;;33393:63:0;;12160:2:1;33393:63:0;;;12142:21:1;12199:2;12179:18;;;12172:30;12238:33;12218:18;;;12211:61;12289:18;;33393:63:0;11958:355:1;33393:63:0;33255:1;33462:7;:18;45688:9:::1;45684:1084;45707:11;:18:::0;45703:22;::::1;45684:1084;;;45747:24;45911:11;45923:1;45911:14;;;;;;;;:::i;:::-;;;;;;;;;;;:21;;;45873:11;:35;45885:11;45897:1;45885:14;;;;;;;;:::i;:::-;;;;;;;;;;;:22;;;45873:35;;;;;;;;;;;;45858:11;;45822;45834:1;45822:14;;;;;;;;:::i;:::-;;;;;;;;;;;:32;;;45794:11;45806:1;45794:14;;;;;;;;:::i;:::-;;;;;;;;;;;:26;;;45776:15;:44;;;;:::i;:::-;:78;;;;:::i;:::-;45775:94;;;;:::i;:::-;45774:134;;;;:::i;:::-;:158;;;;:::i;:::-;45747:185;;45981:10;-1:-1:-1::0;;;;;45950:41:0::1;:11;45962:1;45950:14;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;:27:::1;:14;::::0;;::::1;;:27;::::0;-1:-1:-1;;;;;45950:27:0::1;:41;:65:::0;::::1;;;;46014:1;45995:16;:20;45950:65;:103;;;;;46018:11;46030:1;46018:14;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;:26:::1;:14;::::0;;::::1;;:26;::::0;::::1;;:35;45950:103;45947:810;;;46074:20;46149:16;46128:18;;:37;;;;:::i;:::-;46097:11;46109:1;46097:14;;;;;;;;:::i;:::-;;;;;;;;;;;:28;;;:68;;;;:::i;:::-;46186:12;::::0;:51:::1;::::0;-1:-1:-1;;;46186:51:0;;46211:10:::1;46186:51;::::0;::::1;4770::1::0;4837:18;;;4830:34;;;46074:91:0;;-1:-1:-1;;;;;;46186:12:0::1;::::0;:24:::1;::::0;4743:18:1;;46186:51:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;46285:15;46256:11;46268:1;46256:14;;;;;;;;:::i;:::-;;;;;;;;;;;:26;;:44;;;;46356:12;46322:11;46334:1;46322:14;;;;;;;;:::i;:::-;;;;;;;;;;;:30;;;:46;;;;;;;:::i;:::-;;;;;;;;46418:1;46387:11;46399:1;46387:14;;;;;;;;:::i;:::-;;;;;;;;;;;:28;;:32;;;;-1:-1:-1::0;;;;;;;;;;;46484:1:0::1;46508:10;46541:11;46553:1;46541:14;;;;;;;;:::i;:::-;;;;;;;;;;;:22;;;46586:11;46598:1;46586:14;;;;;;;;:::i;:::-;;;;;;;;;;;:21;;;46630:15;46668:1;46692:11;46704:1;46692:14;;;;;;;;:::i;:::-;;;;;;;;;;;:30;;;46443:298;;;;;;;;;;;;:::i;:::-;;;;;;;;46055:702;45947:810;-1:-1:-1::0;45727:3:0;::::1;::::0;::::1;:::i;:::-;;;;45684:1084;;;-1:-1:-1::0;33211:1:0;33505:22;;45624:1151::o;15944:103::-;15339:7;15366:6;-1:-1:-1;;;;;15366:6:0;14097:10;15513:23;15505:68;;;;-1:-1:-1;;;15505:68:0;;;;;;;:::i;:::-;16009:30:::1;16036:1;16009:18;:30::i;:::-;15944:103::o:0;37172:105::-;37246:23;37253:7;37262:6;37246;:23::i;:::-;37172:105;;:::o;36313:70::-;15339:7;15366:6;-1:-1:-1;;;;;15366:6:0;14097:10;15513:23;15505:68;;;;-1:-1:-1;;;15505:68:0;;;;;;;:::i;:::-;36359:8:::1;:16:::0;;-1:-1:-1;;;;36359:16:0::1;::::0;;36313:70::o;44027:1589::-;33255:1;33401:7;;:19;;33393:63;;;;-1:-1:-1;;;33393:63:0;;12160:2:1;33393:63:0;;;12142:21:1;12199:2;12179:18;;;12172:30;12238:33;12218:18;;;12211:61;12289:18;;33393:63:0;11958:355:1;33393:63:0;33255:1;33462:7;:18;44134:11:::1;:18:::0;44121:31;::::1;;44113:67;;;;-1:-1:-1::0;;;44113:67:0::1;;;;;;;:::i;:::-;44199:11;44211:9;44199:22;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;:34:::1;:22;::::0;;::::1;;:34;::::0;::::1;;:43;44191:96;;;;-1:-1:-1::0;;;44191:96:0::1;;;;;;;:::i;:::-;44345:10;-1:-1:-1::0;;;;;44306:49:0::1;:11;44318:9;44306:22;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;:35:::1;:22;::::0;;::::1;;:35;::::0;-1:-1:-1;;;;;44306:35:0::1;:49;44298:102;;;;-1:-1:-1::0;;;44298:102:0::1;;;;;;;:::i;:::-;44520:11;;44477;44489:9;44477:22;;;;;;;;:::i;:::-;;;;;;;;;;;:40;;;:54;;;;:::i;:::-;44438:11;44450:9;44438:22;;;;;;;;:::i;:::-;;;;;;;;;;;:34;;;44420:15;:52;;;;:::i;:::-;44419:112;;44411:196;;;;-1:-1:-1::0;;;44411:196:0::1;;;;;;;:::i;:::-;44647:1;44626:18;;:22;44618:124;;;;-1:-1:-1::0;;;44618:124:0::1;;;;;;;:::i;:::-;44753:24;44941:11;44953:9;44941:22;;;;;;;;:::i;:::-;;;;;;;;;;;:29;;;44895:11;:43;44907:11;44919:9;44907:22;;;;;;;;:::i;:::-;;;;;;;;;;;:30;;;44895:43;;;;;;;;;;;;44880:11;;44836;44848:9;44836:22;;;;;;;;:::i;:::-;;;;;;;;;;;:40;;;44800:11;44812:9;44800:22;;;;;;;;:::i;:::-;;;;;;;;;;;:34;;;44782:15;:52;;;;:::i;:::-;:94;;;;:::i;:::-;44781:110;;;;:::i;:::-;44780:158;;;;:::i;:::-;:190;;;;:::i;:::-;44753:217;;44981:20;45064:16;45043:18;;:37;;;;:::i;:::-;45004:11;45016:9;45004:22;;;;;;;;:::i;:::-;;;;;;;;;;;:36;;;:76;;;;:::i;:::-;45093:12;::::0;:51:::1;::::0;-1:-1:-1;;;45093:51:0;;45118:10:::1;45093:51;::::0;::::1;4770::1::0;4837:18;;;4830:34;;;44981:99:0;;-1:-1:-1;;;;;;45093:12:0::1;::::0;:24:::1;::::0;4743:18:1;;45093:51:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;45192:15;45155:11;45167:9;45155:22;;;;;;;;:::i;:::-;;;;;;;;;;;:34;;:52;;;;45263:12;45221:11;45233:9;45221:22;;;;;;;;:::i;:::-;;;;;;;;;;;:38;;;:54;;;;;;;:::i;:::-;;;;;;;;45325:1;45286:11;45298:9;45286:22;;;;;;;;:::i;:::-;;;;;;;;;;;:36;;:40;;;;-1:-1:-1::0;;;;;;;;;;;45375:9:0::1;45399:10;45424:11;45436:9;45424:22;;;;;;;;:::i;:::-;;;;;;;;;;;:30;;;45469:11;45481:9;45469:22;;;;;;;;:::i;:::-;;;;;;;;;;;:29;;;45513:15;45543:1;45559:11;45571:9;45559:22;;;;;;;;:::i;:::-;;;;;;;;;;;:38;;;45342:266;;;;;;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1::0;;33211:1:0;33505:22;;-1:-1:-1;44027:1589:0:o;36595:164::-;15339:7;15366:6;-1:-1:-1;;;;;15366:6:0;14097:10;15513:23;15505:68;;;;-1:-1:-1;;;15505:68:0;;;;;;;:::i;:::-;36701:28:::1;::::0;;;:19:::1;:28;::::0;;;;;:50;36595:164::o;46783:324::-;46850:7;46870:17;46902:9;46898:175;46921:11;:18;46917:22;;46898:175;;;46975:11;46987:1;46975:14;;;;;;;;:::i;:::-;;;;;;;;;;;:22;;;46964:7;:33;46961:101;;;47029:11;47041:1;47029:14;;;;;;;;:::i;:::-;;;;;;;;;;;:17;;;47017:29;;46961:101;46941:4;;;;:::i;:::-;;;;46898:175;;;-1:-1:-1;47090:9:0;46783:324;-1:-1:-1;;46783:324:0:o;36884:144::-;15339:7;15366:6;-1:-1:-1;;;;;15366:6:0;14097:10;15513:23;15505:68;;;;-1:-1:-1;;;15505:68:0;;;;;;;:::i;:::-;36977:18:::1;:43:::0;36884:144::o;47119:1196::-;47237:11;:18;47187:7;;;;47224:31;;;47216:67;;;;-1:-1:-1;;;47216:67:0;;;;;;;:::i;:::-;47331:1;47310:18;;:22;47302:126;;;;-1:-1:-1;;;47302:126:0;;11311:2:1;47302:126:0;;;11293:21:1;11350:2;11330:18;;;11323:30;11389:34;11369:18;;;11362:62;11460:34;11440:18;;;11433:62;11532:29;11511:19;;;11504:58;11579:19;;47302:126:0;11109:495:1;47302:126:0;47445:11;47457:9;47445:22;;;;;;;;:::i;:::-;;;;;;;;;:34;:22;;;;;:34;;;;:42;;:34;:42;47441:859;;;47512:1;47515:11;47527:9;47515:22;;;;;;;;:::i;:::-;;;;;;;;;;;:38;;;47504:50;;;;47119:1196;;;:::o;47441:859::-;47690:11;;47649;47661:9;47649:22;;;;;;;;:::i;:::-;;;;;;;;;;;:40;;;:52;;;;:::i;:::-;47610:11;47622:9;47610:22;;;;;;;;:::i;:::-;;;;;;;;;;;:34;;;47592:15;:52;;;;:::i;:::-;47591:110;47587:702;;47722:24;47910:11;47922:9;47910:22;;;;;;;;:::i;:::-;;;;;;;;;;;:29;;;47864:11;:43;47876:11;47888:9;47876:22;;;;;;;;:::i;:::-;;;;;;;;;;;:30;;;47864:43;;;;;;;;;;;;47849:11;;47805;47817:9;47805:22;;;;;;;;:::i;:::-;;;;;;;;;;;:40;;;47769:11;47781:9;47769:22;;;;;;;;:::i;:::-;;;;;;;;;;;:34;;;47751:15;:52;;;;:::i;:::-;:94;;;;:::i;:::-;47750:110;;;;:::i;:::-;47749:158;;;;:::i;:::-;:190;;;;:::i;:::-;47722:217;;47958:20;48041:16;48020:18;;:37;;;;:::i;:::-;47981:11;47993:9;47981:22;;;;;;;;:::i;:::-;;;;;;;;;;;:36;;;:76;;;;:::i;:::-;47958:99;;48094:12;48108:11;48120:9;48108:22;;;;;;;;:::i;:::-;;;;;;;;;;;:38;;;48086:61;;;;;;47119:1196;;;:::o;47587:702::-;48196:11;48208:9;48196:22;;;;;;;;:::i;:::-;;;;;;;;;;;:36;;;48234:11;48246:9;48234:22;;;;;;;;:::i;37285:214::-;37381:9;37376:116;37400:8;:15;37396:1;:19;37376:116;;;37449:31;37456:8;37465:1;37456:11;;;;;;;;:::i;:::-;;;;;;;37469:7;37477:1;37469:10;;;;;;;;:::i;:::-;;;;;;;37449:6;:31::i;:::-;37417:3;;;;:::i;:::-;;;;37376:116;;;;37285:214;;:::o;36470:117::-;15339:7;15366:6;-1:-1:-1;;;;;15366:6:0;14097:10;15513:23;15505:68;;;;-1:-1:-1;;;15505:68:0;;;;;;;:::i;:::-;36552:19:::1;::::0;;;:10:::1;:19;::::0;;;;;:27;;-1:-1:-1;;36552:27:0::1;::::0;::::1;;::::0;;;::::1;::::0;;36470:117::o;37036:128::-;15339:7;15366:6;-1:-1:-1;;;;;15366:6:0;14097:10;15513:23;15505:68;;;;-1:-1:-1;;;15505:68:0;;;;;;;:::i;:::-;37125:21:::1;::::0;;;:11:::1;:21;::::0;;;;;:31;37036:128::o;48325:1420::-;48399:7;48408;48428:26;48469:28;48517:9;48512:1166;48536:11;:18;48532:22;;48512:1166;;;48609:13;-1:-1:-1;;;;;48580:42:0;:11;48592:1;48580:14;;;;;;;;:::i;:::-;;;;;;;;;:27;:14;;;;;:27;;-1:-1:-1;;;;;48580:27:0;:42;48576:1091;;;48647:11;48659:1;48647:14;;;;;;;;:::i;:::-;;;;;;;;;:26;:14;;;;;:26;;;;:34;;:26;:34;48643:1009;;;48750:11;48762:1;48750:14;;;;;;;;:::i;:::-;;;;;;;;;;;:30;;;48726:54;;;;;:::i;:::-;;;48643:1009;;;48936:11;;48903;48915:1;48903:14;;;;;;;;:::i;:::-;;;;;;;;;;;:32;;;:44;;;;:::i;:::-;48872:11;48884:1;48872:14;;;;;;;;:::i;:::-;;;;;;;;;;;:26;;;48854:15;:44;;;;:::i;:::-;48853:94;48849:784;;48976:24;49140:11;49152:1;49140:14;;;;;;;;:::i;:::-;;;;;;;;;;;:21;;;49102:11;:35;49114:11;49126:1;49114:14;;;;;;;;:::i;:::-;;;;;;;;;;;:22;;;49102:35;;;;;;;;;;;;49087:11;;49051;49063:1;49051:14;;;;;;;;:::i;:::-;;;;;;;;;;;:32;;;49023:11;49035:1;49023:14;;;;;;;;:::i;:::-;;;;;;;;;;;:26;;;49005:15;:44;;;;:::i;:::-;:78;;;;:::i;:::-;49004:94;;;;:::i;:::-;49003:134;;;;:::i;:::-;:158;;;;:::i;:::-;48976:185;;49188:20;49263:16;49242:18;;:37;;;;:::i;:::-;49211:11;49223:1;49211:14;;;;;;;;:::i;:::-;;;;;;;;;;;:28;;;:68;;;;:::i;:::-;49188:91;-1:-1:-1;49306:34:0;49188:91;49306:34;;:::i;:::-;;;49391:11;49403:1;49391:14;;;;;;;;:::i;:::-;;;;;;;;;;;:30;;;49367:54;;;;;:::i;:::-;;;48949:496;;48849:784;;;49500:11;49512:1;49500:14;;;;;;;;:::i;:::-;;;;;;;;;;;:28;;;49478:50;;;;;:::i;:::-;;;49579:11;49591:1;49579:14;;;;;;;;:::i;:::-;;;;;;;;;;;:30;;;49555:54;;;;;:::i;:::-;;;48849:784;48556:3;;;;:::i;:::-;;;;48512:1166;;;-1:-1:-1;49696:18:0;;49716:20;;-1:-1:-1;48325:1420:0;-1:-1:-1;;48325:1420:0:o;49753:778::-;49825:19;49881:14;49857:21;;;49975:171;49998:11;:18;49994:22;;49975:171;;;50058:11;50070:1;50058:14;;;;;;;;:::i;:::-;;;;;;;;;:27;:14;;;;;:27;;-1:-1:-1;;;;;50041:44:0;;;50058:27;;50041:44;50038:97;;;50105:14;50118:1;50105:14;;:::i;:::-;;;50038:97;50018:4;;;;:::i;:::-;;;;49975:171;;;;50156:25;50201:9;50184:27;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50184:27:0;;;;;;;;;;;;;;;;;50156:55;;50227:9;50222:279;50246:11;:18;50242:22;;50222:279;;;50306:11;50318:1;50306:14;;;;;;;;:::i;:::-;;;;;;;;;:27;:14;;;;;:27;;-1:-1:-1;;;;;50289:44:0;;;50306:27;;50289:44;50286:204;;;50353:23;50379:11;50391:1;50379:14;;;;;;;;:::i;:::-;;;;;;;;;;50412:26;;;;;;;;50379:14;;;;;;;50412:26;;;;;;;;-1:-1:-1;;;;;50412:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:19;;50379:14;;-1:-1:-1;50412:26:0;:5;;50418:12;;50412:19;;;;;;:::i;:::-;;;;;;;;;;:26;50457:17;50473:1;50457:17;;:::i;:::-;;;50334:156;50286:204;50266:3;;;;:::i;:::-;;;;50222:279;;;-1:-1:-1;50518:5:0;49753:778;-1:-1:-1;;;;;49753:778:0:o;16202:201::-;15339:7;15366:6;-1:-1:-1;;;;;15366:6:0;14097:10;15513:23;15505:68;;;;-1:-1:-1;;;15505:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;16291:22:0;::::1;16283:73;;;::::0;-1:-1:-1;;;16283:73:0;;8893:2:1;16283:73:0::1;::::0;::::1;8875:21:1::0;8932:2;8912:18;;;8905:30;8971:34;8951:18;;;8944:62;-1:-1:-1;;;9022:18:1;;;9015:36;9068:19;;16283:73:0::1;8691:402:1::0;16283:73:0::1;16367:28;16386:8;16563:191:::0;16637:16;16656:6;;-1:-1:-1;;;;;16673:17:0;;;-1:-1:-1;;;;;;16673:17:0;;;;;;16706:40;;16656:6;;;;;;;16706:40;;16637:16;16706:40;16626:128;16563:191;:::o;37507:1710::-;37605:10;6363:19;:23;37577:80;;;;-1:-1:-1;;;37577:80:0;;12881:2:1;37577:80:0;;;12863:21:1;12920:2;12900:18;;;12893:30;12959:34;12939:18;;;12932:62;-1:-1:-1;;;13010:18:1;;;13003:34;13054:19;;37577:80:0;12679:400:1;37577:80:0;37676:8;;-1:-1:-1;;;37676:8:0;;;;:16;;37688:4;37676:16;37668:60;;;;-1:-1:-1;;;37668:60:0;;7763:2:1;37668:60:0;;;7745:21:1;7802:2;7782:18;;;7775:30;7841:33;7821:18;;;7814:61;7892:18;;37668:60:0;7561:355:1;37668:60:0;37750:20;;;;:10;:20;;;;;;;;37742:65;;;;-1:-1:-1;;;37742:65:0;;12520:2:1;37742:65:0;;;12502:21:1;;;12539:18;;;12532:30;12598:34;12578:18;;;12571:62;12650:18;;37742:65:0;12318:356:1;37742:65:0;37831:3;;:35;;-1:-1:-1;;;37831:35:0;;37845:10;37831:35;;;4770:51:1;4837:18;;;4830:34;;;-1:-1:-1;;;;;37831:3:0;;;;:13;;4743:18:1;;37831:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;37823:93;;;;-1:-1:-1;;;37823:93:0;;9300:2:1;37823:93:0;;;9282:21:1;9339:2;9319:18;;;9312:30;9378:34;9358:18;;;9351:62;-1:-1:-1;;;9429:18:1;;;9422:38;9477:19;;37823:93:0;9098:404:1;37823:93:0;37931:8;37943:1;37931:13;37927:506;;;37978:7;37989:1;37978:12;37970:56;;;;-1:-1:-1;;;37970:56:0;;8123:2:1;37970:56:0;;;8105:21:1;8162:2;8142:18;;;8135:30;8201:33;8181:18;;;8174:61;8252:18;;37970:56:0;7921:355:1;37970:56:0;38107:9;38102:308;38126:11;:18;38122:22;;38102:308;;;38218:10;-1:-1:-1;;;;;38187:41:0;:11;38199:1;38187:14;;;;;;;;:::i;:::-;;;;;;;;;:27;:14;;;;;:27;;-1:-1:-1;;;;;38187:27:0;:41;:79;;;;;38258:8;38232:11;38244:1;38232:14;;;;;;;;:::i;:::-;;;;;;;;;;;:22;;;:34;38187:79;38183:212;;;38316:11;38328:1;38316:14;;;;;;;;:::i;:::-;;;;;;;;;:26;:14;;;;;:26;;;;:34;;:26;:34;38308:67;;;;-1:-1:-1;;;38308:67:0;;11811:2:1;38308:67:0;;;11793:21:1;11850:2;11830:18;;;11823:30;-1:-1:-1;;;11869:18:1;;;11862:50;11929:18;;38308:67:0;11609:344:1;38308:67:0;38146:3;;;;:::i;:::-;;;;38102:308;;;;37927:506;38468:11;:18;;38528:281;;;;;;;;;;;38585:10;38528:281;;;;;;;;;;;;;;;;;;;-1:-1:-1;38528:281:0;;;;;;38691:15;38528:281;;;;;;38725:29;;;:19;:29;;;;;;;;38528:281;;;;;;;;;;;;;;;;;;;38497:323;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;38497:323:0;-1:-1:-1;;;;;38497:323:0;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;38497:323:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38833:3;:70;;-1:-1:-1;;;38833:70:0;;38468:18;;38833:3;;;:20;;:70;;38874:4;;38528:281;;;;38497:323;38833:70;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38942:7;38928:11;;:21;;;;:::i;:::-;38914:11;:35;39087:5;39137:29;;;:19;:29;;;;;;;38965:244;;;;;;38993:9;;39017:10;;39042:8;;39065:7;;39107:15;;39137:29;39087:5;;;;38965:244;:::i;:::-;;;;;;;;37566:1651;37507:1710;;:::o;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:913::-;246:5;299:3;292:4;284:6;280:17;276:27;266:55;;317:1;314;307:12;266:55;353:6;340:20;379:4;402:18;439:2;435;432:10;429:36;;;445:18;;:::i;:::-;491:2;488:1;484:10;523:2;517:9;586:2;582:7;577:2;573;569:11;565:25;557:6;553:38;641:6;629:10;626:22;621:2;609:10;606:18;603:46;600:72;;;652:18;;:::i;:::-;688:2;681:22;738:18;;;772:15;;;;-1:-1:-1;807:15:1;;;841;;;837:24;;834:33;-1:-1:-1;831:53:1;;;880:1;877;870:12;831:53;902:1;893:10;;912:163;926:2;923:1;920:9;912:163;;;983:17;;971:30;;1021:12;;;;944:1;937:9;;;;;1053:12;;912:163;;;-1:-1:-1;1093:6:1;192:913;-1:-1:-1;;;;;;;192:913:1:o;1110:186::-;1169:6;1222:2;1210:9;1201:7;1197:23;1193:32;1190:52;;;1238:1;1235;1228:12;1190:52;1261:29;1280:9;1261:29;:::i;:::-;1251:39;1110:186;-1:-1:-1;;;1110:186:1:o;1301:877::-;1407:6;1415;1423;1431;1439;1447;1500:3;1488:9;1479:7;1475:23;1471:33;1468:53;;;1517:1;1514;1507:12;1468:53;1540:29;1559:9;1540:29;:::i;:::-;1530:39;;1588:38;1622:2;1611:9;1607:18;1588:38;:::i;:::-;1578:48;;1673:2;1662:9;1658:18;1645:32;1635:42;;1724:2;1713:9;1709:18;1696:32;1686:42;;1779:3;1768:9;1764:19;1751:33;1803:18;1844:2;1836:6;1833:14;1830:34;;;1860:1;1857;1850:12;1830:34;1898:6;1887:9;1883:22;1873:32;;1943:7;1936:4;1932:2;1928:13;1924:27;1914:55;;1965:1;1962;1955:12;1914:55;2005:2;1992:16;2031:2;2023:6;2020:14;2017:34;;;2047:1;2044;2037:12;2017:34;2092:7;2087:2;2078:6;2074:2;2070:15;2066:24;2063:37;2060:57;;;2113:1;2110;2103:12;2060:57;2144:2;2140;2136:11;2126:21;;2166:6;2156:16;;;;;1301:877;;;;;;;;:::o;2183:595::-;2301:6;2309;2362:2;2350:9;2341:7;2337:23;2333:32;2330:52;;;2378:1;2375;2368:12;2330:52;2418:9;2405:23;2447:18;2488:2;2480:6;2477:14;2474:34;;;2504:1;2501;2494:12;2474:34;2527:61;2580:7;2571:6;2560:9;2556:22;2527:61;:::i;:::-;2517:71;;2641:2;2630:9;2626:18;2613:32;2597:48;;2670:2;2660:8;2657:16;2654:36;;;2686:1;2683;2676:12;2654:36;;2709:63;2764:7;2753:8;2742:9;2738:24;2709:63;:::i;:::-;2699:73;;;2183:595;;;;;:::o;2783:180::-;2842:6;2895:2;2883:9;2874:7;2870:23;2866:32;2863:52;;;2911:1;2908;2901:12;2863:52;-1:-1:-1;2934:23:1;;2783:180;-1:-1:-1;2783:180:1:o;2968:184::-;3038:6;3091:2;3079:9;3070:7;3066:23;3062:32;3059:52;;;3107:1;3104;3097:12;3059:52;-1:-1:-1;3130:16:1;;2968:184;-1:-1:-1;2968:184:1:o;3157:341::-;3222:6;3230;3283:2;3271:9;3262:7;3258:23;3254:32;3251:52;;;3299:1;3296;3289:12;3251:52;3335:9;3322:23;3312:33;;3395:2;3384:9;3380:18;3367:32;3442:5;3435:13;3428:21;3421:5;3418:32;3408:60;;3464:1;3461;3454:12;3408:60;3487:5;3477:15;;;3157:341;;;;;:::o;3503:248::-;3571:6;3579;3632:2;3620:9;3611:7;3607:23;3603:32;3600:52;;;3648:1;3645;3638:12;3600:52;-1:-1:-1;;3671:23:1;;;3741:2;3726:18;;;3713:32;;-1:-1:-1;3503:248:1:o;3964:627::-;-1:-1:-1;;;;;4315:15:1;;;4297:34;;4367:15;;;;4362:2;4347:18;;4340:43;4414:2;4399:18;;4392:34;4457:2;4442:18;;4435:34;;;;4277:3;4500;4485:19;;4478:32;;;4240:4;4526:19;;;4519:30;4581:3;4566:19;;3964:627::o;4875:1375::-;5102:2;5154:21;;;5224:13;;5127:18;;;5246:22;;;5073:4;;5102:2;5287;;5305:18;;;;5346:15;;;5073:4;5389:835;5403:6;5400:1;5397:13;5389:835;;;5462:13;;5500:9;;5488:22;;5554:11;;;5548:18;-1:-1:-1;;;;;5544:44:1;5530:12;;;5523:66;5629:11;;;5623:18;5609:12;;;5602:40;5665:4;5709:11;;;5703:18;5689:12;;;5682:40;5745:4;5803:11;;;5797:18;5790:26;5783:34;5769:12;;;5762:56;5576:3;5885:11;;;5879:18;5865:12;;;5858:40;5921:4;5965:11;;;5959:18;5945:12;;;5938:40;6001:4;6045:11;;;6039:18;6025:12;;;6018:40;6081:6;6127:11;;;6121:18;6107:12;;;6100:40;6169:6;6160:16;;;;6199:15;;;;5585:1;5418:9;5389:835;;;-1:-1:-1;6241:3:1;;4875:1375;-1:-1:-1;;;;;;;4875:1375:1:o;6654:493::-;6856:2;6838:21;;;6895:2;6875:18;;;6868:30;6934:34;6929:2;6914:18;;6907:62;7005:34;7000:2;6985:18;;6978:62;7077:27;7071:3;7056:19;;7049:56;7137:3;7122:19;;6654:493::o;7152:404::-;7354:2;7336:21;;;7393:2;7373:18;;;7366:30;7432:34;7427:2;7412:18;;7405:62;-1:-1:-1;;;7498:2:1;7483:18;;7476:38;7546:3;7531:19;;7152:404::o;9507:475::-;9709:2;9691:21;;;9748:2;9728:18;;;9721:30;9787:34;9782:2;9767:18;;9760:62;9858:34;9853:2;9838:18;;9831:62;-1:-1:-1;;;9924:3:1;9909:19;;9902:38;9972:3;9957:19;;9507:475::o;9987:404::-;10189:2;10171:21;;;10228:2;10208:18;;;10201:30;10267:34;10262:2;10247:18;;10240:62;-1:-1:-1;;;10333:2:1;10318:18;;10311:38;10381:3;10366:19;;9987:404::o;10396:356::-;10598:2;10580:21;;;10617:18;;;10610:30;10676:34;10671:2;10656:18;;10649:62;10743:2;10728:18;;10396:356::o;10757:347::-;10959:2;10941:21;;;10998:2;10978:18;;;10971:30;11037:25;11032:2;11017:18;;11010:53;11095:2;11080:18;;10757:347::o;13266:803::-;13647:25;;;-1:-1:-1;;;;;13708:32:1;;;;13703:2;13688:18;;13681:60;13772:2;13757:18;;13750:34;;;;13815:2;13800:18;;13793:34;;;;13871:14;;13864:22;13858:3;13843:19;;13836:51;13728:3;13903:19;;13896:35;13962:3;13947:19;;13940:35;14006:3;13991:19;;13984:35;14050:3;14035:19;;14028:35;13634:3;13619:19;;13266:803::o;14866:715::-;15203:25;;;-1:-1:-1;;;;;15264:32:1;;;;15259:2;15244:18;;15237:60;15328:2;15313:18;;15306:34;;;;15371:2;15356:18;;15349:34;;;;15414:3;15399:19;;15392:35;15471:14;15464:22;15284:3;15443:19;;15436:51;15518:3;15503:19;;15496:35;15562:3;15547:19;;15540:35;15190:3;15175:19;;14866:715::o;15586:641::-;15909:25;;;-1:-1:-1;;;;;15970:32:1;;;;15965:2;15950:18;;15943:60;16034:2;16019:18;;16012:34;;;;16077:2;16062:18;;16055:34;;;;16120:3;16105:19;;16098:35;15990:3;16149:19;;16142:35;16208:3;16193:19;;16186:35;15896:3;15881:19;;15586:641::o;16485:128::-;16525:3;16556:1;16552:6;16549:1;16546:13;16543:39;;;16562:18;;:::i;:::-;-1:-1:-1;16598:9:1;;16485:128::o;16618:217::-;16658:1;16684;16674:132;;16728:10;16723:3;16719:20;16716:1;16709:31;16763:4;16760:1;16753:15;16791:4;16788:1;16781:15;16674:132;-1:-1:-1;16820:9:1;;16618:217::o;16840:168::-;16880:7;16946:1;16942;16938:6;16934:14;16931:1;16928:21;16923:1;16916:9;16909:17;16905:45;16902:71;;;16953:18;;:::i;:::-;-1:-1:-1;16993:9:1;;16840:168::o;17013:125::-;17053:4;17081:1;17078;17075:8;17072:34;;;17086:18;;:::i;:::-;-1:-1:-1;17123:9:1;;17013:125::o;17143:135::-;17182:3;-1:-1:-1;;17203:17:1;;17200:43;;;17223:18;;:::i;:::-;-1:-1:-1;17270:1:1;17259:13;;17143:135::o;17283:127::-;17344:10;17339:3;17335:20;17332:1;17325:31;17375:4;17372:1;17365:15;17399:4;17396:1;17389:15;17415:127;17476:10;17471:3;17467:20;17464:1;17457:31;17507:4;17504:1;17497:15;17531:4;17528:1;17521:15;17547:127;17608:10;17603:3;17599:20;17596:1;17589:31;17639:4;17636:1;17629:15;17663:4;17660:1;17653:15

Swarm Source

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