ETH Price: $3,138.52 (+2.12%)

Contract

0x41A2E2f0e3A93c16D124C635Ba4aFab4abAfF2b7
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Get Reward143637822022-03-11 5:48:08983 days ago1646977688IN
0x41A2E2f0...4abAfF2b7
0 ETH0.0013471956.87734718
Get Reward143637822022-03-11 5:48:08983 days ago1646977688IN
0x41A2E2f0...4abAfF2b7
0 ETH0.0033724541.22396462
Get Reward127823942021-07-07 20:14:291229 days ago1625688869IN
0x41A2E2f0...4abAfF2b7
0 ETH0.0024014836
Get Reward126223332021-06-12 22:21:131254 days ago1623536473IN
0x41A2E2f0...4abAfF2b7
0 ETH0.0007160810
Get Reward125967402021-06-08 23:05:481258 days ago1623193548IN
0x41A2E2f0...4abAfF2b7
0 ETH0.0012079851
Get Reward125967402021-06-08 23:05:481258 days ago1623193548IN
0x41A2E2f0...4abAfF2b7
0 ETH0.0011710349.44
Get Reward125967402021-06-08 23:05:481258 days ago1623193548IN
0x41A2E2f0...4abAfF2b7
0 ETH0.0012316752
Get Reward125804562021-06-06 10:39:471261 days ago1622975987IN
0x41A2E2f0...4abAfF2b7
0 ETH0.0006670810
Get Token Fund123165732021-04-26 14:45:271302 days ago1619448327IN
0x41A2E2f0...4abAfF2b7
0 ETH0.0022903253.0044
Get Reward123153942021-04-26 10:34:501302 days ago1619433290IN
0x41A2E2f0...4abAfF2b7
0 ETH0.0010184943.00000145
Get Reward123153942021-04-26 10:34:501302 days ago1619433290IN
0x41A2E2f0...4abAfF2b7
0 ETH0.0011132447
Get Reward123153942021-04-26 10:34:501302 days ago1619433290IN
0x41A2E2f0...4abAfF2b7
0 ETH0.0028684443
Get Reward123144012021-04-26 6:48:591302 days ago1619419739IN
0x41A2E2f0...4abAfF2b7
0 ETH0.0028643240.00000145
Withdraw122966392021-04-23 13:17:351305 days ago1619183855IN
0x41A2E2f0...4abAfF2b7
0 ETH0.0026064589
Get Reward122477712021-04-15 23:50:411312 days ago1618530641IN
0x41A2E2f0...4abAfF2b7
0 ETH0.00767142115
Get Reward121753842021-04-04 20:36:161323 days ago1617568576IN
0x41A2E2f0...4abAfF2b7
0 ETH0.0056556987
Get Reward121008642021-03-24 9:48:341335 days ago1616579314IN
0x41A2E2f0...4abAfF2b7
0 ETH0.00877608135
Get Reward119906402021-03-07 9:49:061352 days ago1615110546IN
0x41A2E2f0...4abAfF2b7
0 ETH0.00715088110
Get Reward119572752021-03-02 6:48:141357 days ago1614667694IN
0x41A2E2f0...4abAfF2b7
0 ETH0.0044205468.00000145
Get Reward119572752021-03-02 6:48:141357 days ago1614667694IN
0x41A2E2f0...4abAfF2b7
0 ETH0.0044205468.00000145
Get Reward119572742021-03-02 6:48:121357 days ago1614667692IN
0x41A2E2f0...4abAfF2b7
0 ETH0.0044855569
Get Reward119572742021-03-02 6:48:121357 days ago1614667692IN
0x41A2E2f0...4abAfF2b7
0 ETH0.0055205569
Get Reward119572722021-03-02 6:47:511357 days ago1614667671IN
0x41A2E2f0...4abAfF2b7
0 ETH0.0044855569
Get Reward119569612021-03-02 5:34:191357 days ago1614663259IN
0x41A2E2f0...4abAfF2b7
0 ETH0.0055205569
Withdraw119428042021-02-28 1:13:031359 days ago1614474783IN
0x41A2E2f0...4abAfF2b7
0 ETH0.0031346187
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
QubNQub

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-09-26
*/

pragma solidity ^0.6.2;

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

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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.3._
     */
    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.3._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

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


pragma solidity ^0.6.0;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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



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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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


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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

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

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


contract QubNQub is Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    uint256 MAX_QUB_AMOUNT = 50000*10**18;
    uint256 MIN_STAKING_DAYS = 30 days;

    IERC20 public nqubWrapper = IERC20(0x892A74a8727Daf514cD3EFaBAaC03f415f3D20Af);
    IERC20 public qub = IERC20(0xB2D74b7a454EDa300c6E633f5b593d128C0C0Dcf);
    mapping(address => uint256) public balances;
    mapping(address => uint256) public stakeDates;
    mapping(address => uint256) public withdrawDates;
    mapping(address => uint256) public stakeDays;
    mapping(address => uint256) public stakeRequests;
    mapping(address => bool) public withdrawLocks;

    modifier checkBalance(uint256 amount) {
        require(balances[msg.sender].add(amount) <= MAX_QUB_AMOUNT);
        _;
    }

    modifier checkWithdrawDate {
        require(withdrawDates[msg.sender] > 0 && now >= withdrawDates[msg.sender]);
        require(now.sub(stakeRequests[msg.sender]) >= 24 hours);
        _;
    }

    modifier checkWithdrawLock {
        require(now.sub(stakeRequests[msg.sender]) >= 30 days || !withdrawLocks[msg.sender]);
        _;
    }

    function calculateWithdrawDate() internal {
        stakeDays[msg.sender] = MIN_STAKING_DAYS.mul(MAX_QUB_AMOUNT.div(balances[msg.sender]));
        uint256 newWithdrawDate = now.add(stakeDays[msg.sender]);
        if (stakeDates[msg.sender] > 0) {
            uint256 stakeDuration = withdrawDates[msg.sender].sub(stakeDates[msg.sender]);
            uint256 stakeDurationPercent = now.sub(stakeDates[msg.sender]).mul(100).div(stakeDuration);
            newWithdrawDate = newWithdrawDate.sub(stakeDays[msg.sender].mul(stakeDurationPercent).div(100));
        }
        withdrawDates[msg.sender] = newWithdrawDate;
        stakeDates[msg.sender] = now;
    }

    function stake(uint256 amount) public checkBalance(amount) {
        balances[msg.sender] = balances[msg.sender].add(amount);
        calculateWithdrawDate();
        stakeRequests[msg.sender] = now;
        withdrawLocks[msg.sender] = true;
        qub.safeTransferFrom(msg.sender, address(this), amount);
    }

    function getReward() public checkWithdrawDate {
        uint256 withdrawAmount = 1;
        uint256 overStakeDuration = now.sub(withdrawDates[msg.sender]);
        uint256 additionalAmount = overStakeDuration.div(stakeDays[msg.sender]);
        stakeDates[msg.sender] = 0;
        calculateWithdrawDate();
        withdrawDates[msg.sender] = withdrawDates[msg.sender].sub(overStakeDuration.mod(stakeDays[msg.sender]));
        withdrawAmount = withdrawAmount.add(additionalAmount);
        withdrawLocks[msg.sender] = false;
        nqubWrapper.safeTransfer(msg.sender, withdrawAmount);
    }

    function withdraw(uint256 amount) public checkWithdrawLock {
        balances[msg.sender] = balances[msg.sender].sub(amount);
        if (balances[msg.sender] > 0) {
            calculateWithdrawDate();
        } else {
            stakeDates[msg.sender] = 0;
            withdrawDates[msg.sender] = 0;
        }
        qub.safeTransfer(msg.sender, amount);
    }

    function getEtherFund(uint256 amount) public onlyOwner {
        msg.sender.transfer(amount);
    }

    function getTokenFund(address tokenAddress, uint256 amount) public onlyOwner {
        IERC20 ierc20Token = IERC20(tokenAddress);
        ierc20Token.safeTransfer(msg.sender, amount);
    }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getEtherFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getTokenFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nqubWrapper","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"qub","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakeDates","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakeDays","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakeRequests","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"withdrawDates","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"withdrawLocks","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

6080604052690a968163f0a57b40000060015562278d00600255600380546001600160a01b031990811673892a74a8727daf514cd3efabaac03f415f3d20af179091556004805490911673b2d74b7a454eda300c6e633f5b593d128c0c0dcf17905560006100746001600160e01b036100c316565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506100c7565b3390565b611175806100d66000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c8063818bdc1811610097578063abbf458e11610066578063abbf458e14610260578063b623e40e1461028c578063b90312f7146102b2578063f2fde38b146102d857610100565b8063818bdc18146101db5780638476765a146102155780638da5cb5b1461023b578063a694fc3a1461024357610100565b806346228746116100d3578063462287461461018a5780635582579f146101ae578063715018a6146101cb5780637f47fd47146101d357610100565b806325280d541461010557806327e235e31461013d5780632e1a7d4d146101635780633d18b91214610182575b600080fd5b61012b6004803603602081101561011b57600080fd5b50356001600160a01b03166102fe565b60408051918252519081900360200190f35b61012b6004803603602081101561015357600080fd5b50356001600160a01b0316610310565b6101806004803603602081101561017957600080fd5b5035610322565b005b6101806103f0565b610192610558565b604080516001600160a01b039092168252519081900360200190f35b610180600480360360208110156101c457600080fd5b5035610567565b6101806105f0565b610192610692565b610201600480360360208110156101f157600080fd5b50356001600160a01b03166106a1565b604080519115158252519081900360200190f35b61012b6004803603602081101561022b57600080fd5b50356001600160a01b03166106b6565b6101926106c8565b6101806004803603602081101561025957600080fd5b50356106d7565b6101806004803603604081101561027657600080fd5b506001600160a01b038135169060200135610788565b61012b600480360360208110156102a257600080fd5b50356001600160a01b03166107fb565b61012b600480360360208110156102c857600080fd5b50356001600160a01b031661080d565b610180600480360360208110156102ee57600080fd5b50356001600160a01b031661081f565b60066020526000908152604090205481565b60056020526000908152604090205481565b3360009081526009602052604090205462278d009061034890429063ffffffff61091716565b1015806103655750336000908152600a602052604090205460ff16155b61036e57600080fd5b3360009081526005602052604090205461038e908263ffffffff61091716565b336000908152600560205260409020819055156103b2576103ad610962565b6103d0565b33600090815260066020908152604080832083905560079091528120555b6004546103ed906001600160a01b0316338363ffffffff610aa816565b50565b336000908152600760205260409020541580159061041d5750336000908152600760205260409020544210155b61042657600080fd5b33600090815260096020526040902054620151809061044c90429063ffffffff61091716565b101561045757600080fd5b336000908152600760205260408120546001919061047c90429063ffffffff61091716565b33600090815260086020526040812054919250906104a190839063ffffffff610afa16565b3360009081526006602052604081205590506104bb610962565b336000908152600860205260409020546104fc906104e090849063ffffffff610b3c16565b336000908152600760205260409020549063ffffffff61091716565b3360009081526007602052604090205561051c838263ffffffff610b7e16565b336000818152600a60205260409020805460ff19169055600354919450610553916001600160a01b0316908563ffffffff610aa816565b505050565b6004546001600160a01b031681565b61056f610bd8565b6000546001600160a01b039081169116146105bf576040805162461bcd60e51b815260206004820181905260248201526000805160206110f6833981519152604482015290519081900360640190fd5b604051339082156108fc029083906000818181858888f193505050501580156105ec573d6000803e3d6000fd5b5050565b6105f8610bd8565b6000546001600160a01b03908116911614610648576040805162461bcd60e51b815260206004820181905260248201526000805160206110f6833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6003546001600160a01b031681565b600a6020526000908152604090205460ff1681565b60086020526000908152604090205481565b6000546001600160a01b031690565b600154336000908152600560205260409020548291906106fd908363ffffffff610b7e16565b111561070857600080fd5b33600090815260056020526040902054610728908363ffffffff610b7e16565b33600090815260056020526040902055610740610962565b336000818152600960209081526040808320429055600a9091529020805460ff191660011790556004546105ec916001600160a01b039190911690308563ffffffff610bdc16565b610790610bd8565b6000546001600160a01b039081169116146107e0576040805162461bcd60e51b815260206004820181905260248201526000805160206110f6833981519152604482015290519081900360640190fd5b816105536001600160a01b038216338463ffffffff610aa816565b60096020526000908152604090205481565b60076020526000908152604090205481565b610827610bd8565b6000546001600160a01b03908116911614610877576040805162461bcd60e51b815260206004820181905260248201526000805160206110f6833981519152604482015290519081900360640190fd5b6001600160a01b0381166108bc5760405162461bcd60e51b81526004018080602001828103825260268152602001806110896026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600061095983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610c3c565b90505b92915050565b3360009081526005602052604090205460015461099891610989919063ffffffff610afa16565b6002549063ffffffff610cd816565b336000908152600860205260408120829055906109bc90429063ffffffff610b7e16565b3360009081526006602052604090205490915015610a88573360009081526006602090815260408083205460079092528220546109fe9163ffffffff61091716565b3360009081526006602052604081205491925090610a48908390610a3c90606490610a3090429063ffffffff61091716565b9063ffffffff610cd816565b9063ffffffff610afa16565b33600090815260086020526040902054909150610a8390610a7690606490610a3c908563ffffffff610cd816565b849063ffffffff61091716565b925050505b336000908152600760209081526040808320939093556006905220429055565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610553908490610d31565b600061095983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610de2565b600061095983836040518060400160405280601881526020017f536166654d6174683a206d6f64756c6f206279207a65726f0000000000000000815250610e47565b600082820183811015610959576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610c36908590610d31565b50505050565b60008184841115610ccb5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c90578181015183820152602001610c78565b50505050905090810190601f168015610cbd5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50508183035b9392505050565b600082610ce75750600061095c565b82820282848281610cf457fe5b04146109595760405162461bcd60e51b81526004018080602001828103825260218152602001806110d56021913960400191505060405180910390fd5b6060610d86826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610ea99092919063ffffffff16565b80519091501561055357808060200190516020811015610da557600080fd5b50516105535760405162461bcd60e51b815260040180806020018281038252602a815260200180611116602a913960400191505060405180910390fd5b60008183610e315760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610c90578181015183820152602001610c78565b506000838581610e3d57fe5b0495945050505050565b60008183610e965760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610c90578181015183820152602001610c78565b50828481610ea057fe5b06949350505050565b6060610eb88484600085610ec0565b949350505050565b606082471015610f015760405162461bcd60e51b81526004018080602001828103825260268152602001806110af6026913960400191505060405180910390fd5b610f0a8561101c565b610f5b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610f9a5780518252601f199092019160209182019101610f7b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610ffc576040519150601f19603f3d011682016040523d82523d6000602084013e611001565b606091505b5091509150611011828286611022565b979650505050505050565b3b151590565b60608315611031575081610cd1565b8251156110415782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315610c90578181015183820152602001610c7856fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122047b9cf95cc4fb7e07e3473c063ef9093c73a288efa7e227411ff92ba17f4197b64736f6c63430006060033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101005760003560e01c8063818bdc1811610097578063abbf458e11610066578063abbf458e14610260578063b623e40e1461028c578063b90312f7146102b2578063f2fde38b146102d857610100565b8063818bdc18146101db5780638476765a146102155780638da5cb5b1461023b578063a694fc3a1461024357610100565b806346228746116100d3578063462287461461018a5780635582579f146101ae578063715018a6146101cb5780637f47fd47146101d357610100565b806325280d541461010557806327e235e31461013d5780632e1a7d4d146101635780633d18b91214610182575b600080fd5b61012b6004803603602081101561011b57600080fd5b50356001600160a01b03166102fe565b60408051918252519081900360200190f35b61012b6004803603602081101561015357600080fd5b50356001600160a01b0316610310565b6101806004803603602081101561017957600080fd5b5035610322565b005b6101806103f0565b610192610558565b604080516001600160a01b039092168252519081900360200190f35b610180600480360360208110156101c457600080fd5b5035610567565b6101806105f0565b610192610692565b610201600480360360208110156101f157600080fd5b50356001600160a01b03166106a1565b604080519115158252519081900360200190f35b61012b6004803603602081101561022b57600080fd5b50356001600160a01b03166106b6565b6101926106c8565b6101806004803603602081101561025957600080fd5b50356106d7565b6101806004803603604081101561027657600080fd5b506001600160a01b038135169060200135610788565b61012b600480360360208110156102a257600080fd5b50356001600160a01b03166107fb565b61012b600480360360208110156102c857600080fd5b50356001600160a01b031661080d565b610180600480360360208110156102ee57600080fd5b50356001600160a01b031661081f565b60066020526000908152604090205481565b60056020526000908152604090205481565b3360009081526009602052604090205462278d009061034890429063ffffffff61091716565b1015806103655750336000908152600a602052604090205460ff16155b61036e57600080fd5b3360009081526005602052604090205461038e908263ffffffff61091716565b336000908152600560205260409020819055156103b2576103ad610962565b6103d0565b33600090815260066020908152604080832083905560079091528120555b6004546103ed906001600160a01b0316338363ffffffff610aa816565b50565b336000908152600760205260409020541580159061041d5750336000908152600760205260409020544210155b61042657600080fd5b33600090815260096020526040902054620151809061044c90429063ffffffff61091716565b101561045757600080fd5b336000908152600760205260408120546001919061047c90429063ffffffff61091716565b33600090815260086020526040812054919250906104a190839063ffffffff610afa16565b3360009081526006602052604081205590506104bb610962565b336000908152600860205260409020546104fc906104e090849063ffffffff610b3c16565b336000908152600760205260409020549063ffffffff61091716565b3360009081526007602052604090205561051c838263ffffffff610b7e16565b336000818152600a60205260409020805460ff19169055600354919450610553916001600160a01b0316908563ffffffff610aa816565b505050565b6004546001600160a01b031681565b61056f610bd8565b6000546001600160a01b039081169116146105bf576040805162461bcd60e51b815260206004820181905260248201526000805160206110f6833981519152604482015290519081900360640190fd5b604051339082156108fc029083906000818181858888f193505050501580156105ec573d6000803e3d6000fd5b5050565b6105f8610bd8565b6000546001600160a01b03908116911614610648576040805162461bcd60e51b815260206004820181905260248201526000805160206110f6833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6003546001600160a01b031681565b600a6020526000908152604090205460ff1681565b60086020526000908152604090205481565b6000546001600160a01b031690565b600154336000908152600560205260409020548291906106fd908363ffffffff610b7e16565b111561070857600080fd5b33600090815260056020526040902054610728908363ffffffff610b7e16565b33600090815260056020526040902055610740610962565b336000818152600960209081526040808320429055600a9091529020805460ff191660011790556004546105ec916001600160a01b039190911690308563ffffffff610bdc16565b610790610bd8565b6000546001600160a01b039081169116146107e0576040805162461bcd60e51b815260206004820181905260248201526000805160206110f6833981519152604482015290519081900360640190fd5b816105536001600160a01b038216338463ffffffff610aa816565b60096020526000908152604090205481565b60076020526000908152604090205481565b610827610bd8565b6000546001600160a01b03908116911614610877576040805162461bcd60e51b815260206004820181905260248201526000805160206110f6833981519152604482015290519081900360640190fd5b6001600160a01b0381166108bc5760405162461bcd60e51b81526004018080602001828103825260268152602001806110896026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600061095983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610c3c565b90505b92915050565b3360009081526005602052604090205460015461099891610989919063ffffffff610afa16565b6002549063ffffffff610cd816565b336000908152600860205260408120829055906109bc90429063ffffffff610b7e16565b3360009081526006602052604090205490915015610a88573360009081526006602090815260408083205460079092528220546109fe9163ffffffff61091716565b3360009081526006602052604081205491925090610a48908390610a3c90606490610a3090429063ffffffff61091716565b9063ffffffff610cd816565b9063ffffffff610afa16565b33600090815260086020526040902054909150610a8390610a7690606490610a3c908563ffffffff610cd816565b849063ffffffff61091716565b925050505b336000908152600760209081526040808320939093556006905220429055565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610553908490610d31565b600061095983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610de2565b600061095983836040518060400160405280601881526020017f536166654d6174683a206d6f64756c6f206279207a65726f0000000000000000815250610e47565b600082820183811015610959576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610c36908590610d31565b50505050565b60008184841115610ccb5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c90578181015183820152602001610c78565b50505050905090810190601f168015610cbd5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50508183035b9392505050565b600082610ce75750600061095c565b82820282848281610cf457fe5b04146109595760405162461bcd60e51b81526004018080602001828103825260218152602001806110d56021913960400191505060405180910390fd5b6060610d86826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610ea99092919063ffffffff16565b80519091501561055357808060200190516020811015610da557600080fd5b50516105535760405162461bcd60e51b815260040180806020018281038252602a815260200180611116602a913960400191505060405180910390fd5b60008183610e315760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610c90578181015183820152602001610c78565b506000838581610e3d57fe5b0495945050505050565b60008183610e965760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610c90578181015183820152602001610c78565b50828481610ea057fe5b06949350505050565b6060610eb88484600085610ec0565b949350505050565b606082471015610f015760405162461bcd60e51b81526004018080602001828103825260268152602001806110af6026913960400191505060405180910390fd5b610f0a8561101c565b610f5b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610f9a5780518252601f199092019160209182019101610f7b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610ffc576040519150601f19603f3d011682016040523d82523d6000602084013e611001565b606091505b5091509150611011828286611022565b979650505050505050565b3b151590565b60608315611031575081610cd1565b8251156110415782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315610c90578181015183820152602001610c7856fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122047b9cf95cc4fb7e07e3473c063ef9093c73a288efa7e227411ff92ba17f4197b64736f6c63430006060033

Deployed Bytecode Sourcemap

22752:3458:0:-:0;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;22752:3458:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;23154:45:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;23154:45:0;-1:-1:-1;;;;;23154:45:0;;:::i;:::-;;;;;;;;;;;;;;;;23104:43;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;23104:43:0;-1:-1:-1;;;;;23104:43:0;;:::i;25525:373::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;25525:373:0;;:::i;:::-;;24915:602;;;:::i;23027:70::-;;;:::i;:::-;;;;-1:-1:-1;;;;;23027:70:0;;;;;;;;;;;;;;25906:101;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;25906:101:0;;:::i;22196:148::-;;;:::i;22942:78::-;;;:::i;23367:45::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;23367:45:0;-1:-1:-1;;;;;23367:45:0;;:::i;:::-;;;;;;;;;;;;;;;;;;23261:44;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;23261:44:0;-1:-1:-1;;;;;23261:44:0;;:::i;21554:79::-;;;:::i;24589:318::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;24589:318:0;;:::i;26015:192::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;26015:192:0;;;;;;;;:::i;23312:48::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;23312:48:0;-1:-1:-1;;;;;23312:48:0;;:::i;23206:::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;23206:48:0;-1:-1:-1;;;;;23206:48:0;;:::i;22499:244::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;22499:244:0;-1:-1:-1;;;;;22499:244:0;;:::i;23154:45::-;;;;;;;;;;;;;:::o;23104:43::-;;;;;;;;;;;;;:::o;25525:373::-;23831:10;23817:25;;;;:13;:25;;;;;;23847:7;;23809:34;;:3;;:34;:7;:34;:::i;:::-;:45;;:75;;;-1:-1:-1;23873:10:0;23859:25;;;;:13;:25;;;;;;;;23858:26;23809:75;23801:84;;12:1:-1;9;2:12;23801:84:0;25627:10:::1;25618:20;::::0;;;:8:::1;:20;::::0;;;;;:32:::1;::::0;25643:6;25618:32:::1;:24;:32;:::i;:::-;25604:10;25595:20;::::0;;;:8:::1;:20;::::0;;;;:55;;;25665:24;25661:183:::1;;25706:23;:21;:23::i;:::-;25661:183;;;25773:10;25787:1;25762:22:::0;;;:10:::1;:22;::::0;;;;;;;:26;;;25803:13:::1;:25:::0;;;;;:29;25661:183:::1;25854:3;::::0;:36:::1;::::0;-1:-1:-1;;;;;25854:3:0::1;25871:10;25883:6:::0;25854:36:::1;:16;:36;:::i;:::-;25525:373:::0;:::o;24915:602::-;23617:10;23631:1;23603:25;;;:13;:25;;;;;;:29;;;;:65;;-1:-1:-1;23657:10:0;23643:25;;;;:13;:25;;;;;;23636:3;:32;;23603:65;23595:74;;12:1:-1;9;2:12;23595:74:0;23710:10;23696:25;;;;:13;:25;;;;;;23726:8;;23688:34;;:3;;:34;:7;:34;:::i;:::-;:46;;23680:55;;12:1:-1;9;2:12;23680:55:0;25059:10:::1;24972:22;25045:25:::0;;;:13:::1;:25;::::0;;;;;24997:1:::1;::::0;24972:22;25037:34:::1;::::0;:3:::1;::::0;:34:::1;:7;:34;:::i;:::-;25141:10;25082:24;25131:21:::0;;;:9:::1;:21;::::0;;;;;25009:62;;-1:-1:-1;25082:24:0;25109:44:::1;::::0;25009:62;;25109:44:::1;:21;:44;:::i;:::-;25175:10;25189:1;25164:22:::0;;;:10:::1;:22;::::0;;;;:26;25082:71;-1:-1:-1;25201:23:0::1;:21;:23::i;:::-;25325:10;25315:21;::::0;;;:9:::1;:21;::::0;;;;;25263:75:::1;::::0;25293:44:::1;::::0;:17;;:44:::1;:21;:44;:::i;:::-;25277:10;25263:25;::::0;;;:13:::1;:25;::::0;;;;;;:75:::1;:29;:75;:::i;:::-;25249:10;25235:25;::::0;;;:13:::1;:25;::::0;;;;:103;25366:36:::1;:14:::0;25385:16;25366:36:::1;:18;:36;:::i;:::-;25427:10;25441:5;25413:25:::0;;;:13:::1;:25;::::0;;;;:33;;-1:-1:-1;;25413:33:0::1;::::0;;25457:11:::1;::::0;25349:53;;-1:-1:-1;25457:52:0::1;::::0;-1:-1:-1;;;;;25457:11:0::1;::::0;25349:53;25457:52:::1;:24;:52;:::i;:::-;23746:1;;;24915:602::o:0;23027:70::-;;;-1:-1:-1;;;;;23027:70:0;;:::o;25906:101::-;21776:12;:10;:12::i;:::-;21766:6;;-1:-1:-1;;;;;21766:6:0;;;:22;;;21758:67;;;;;-1:-1:-1;;;21758:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21758:67:0;;;;;;;;;;;;;;;25972:27:::1;::::0;:10:::1;::::0;:27;::::1;;;::::0;25992:6;;25972:27:::1;::::0;;;25992:6;25972:10;:27;::::1;;;;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;25972:27:0;25906:101:::0;:::o;22196:148::-;21776:12;:10;:12::i;:::-;21766:6;;-1:-1:-1;;;;;21766:6:0;;;:22;;;21758:67;;;;;-1:-1:-1;;;21758:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21758:67:0;;;;;;;;;;;;;;;22303:1:::1;22287:6:::0;;22266:40:::1;::::0;-1:-1:-1;;;;;22287:6:0;;::::1;::::0;22266:40:::1;::::0;22303:1;;22266:40:::1;22334:1;22317:19:::0;;-1:-1:-1;;;;;;22317:19:0::1;::::0;;22196:148::o;22942:78::-;;;-1:-1:-1;;;;;22942:78:0;;:::o;23367:45::-;;;;;;;;;;;;;;;:::o;23261:44::-;;;;;;;;;;;;;:::o;21554:79::-;21592:7;21619:6;-1:-1:-1;;;;;21619:6:0;21554:79;:::o;24589:318::-;23514:14;;23487:10;23478:20;;;;:8;:20;;;;;;24640:6;;23514:14;23478:32;;24640:6;23478:32;:24;:32;:::i;:::-;:50;;23470:59;;12:1:-1;9;2:12;23470:59:0;24691:10:::1;24682:20;::::0;;;:8:::1;:20;::::0;;;;;:32:::1;::::0;24707:6;24682:32:::1;:24;:32;:::i;:::-;24668:10;24659:20;::::0;;;:8:::1;:20;::::0;;;;:55;24725:23:::1;:21;:23::i;:::-;24773:10;24759:25;::::0;;;:13:::1;:25;::::0;;;;;;;24787:3:::1;24759:31:::0;;24801:13:::1;:25:::0;;;;;:32;;-1:-1:-1;;24801:32:0::1;24829:4;24801:32;::::0;;24844:3:::1;::::0;:55:::1;::::0;-1:-1:-1;;;;;24844:3:0;;;::::1;::::0;24885:4:::1;24892:6:::0;24844:55:::1;:20;:55;:::i;26015:192::-:0;21776:12;:10;:12::i;:::-;21766:6;;-1:-1:-1;;;;;21766:6:0;;;:22;;;21758:67;;;;;-1:-1:-1;;;21758:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21758:67:0;;;;;;;;;;;;;;;26131:12;26155:44:::1;-1:-1:-1::0;;;;;26155:24:0;::::1;26180:10;26192:6:::0;26155:44:::1;:24;:44;:::i;23312:48::-:0;;;;;;;;;;;;;:::o;23206:::-;;;;;;;;;;;;;:::o;22499:244::-;21776:12;:10;:12::i;:::-;21766:6;;-1:-1:-1;;;;;21766:6:0;;;:22;;;21758:67;;;;;-1:-1:-1;;;21758:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21758:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;22588:22:0;::::1;22580:73;;;;-1:-1:-1::0;;;22580:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22690:6;::::0;;22669:38:::1;::::0;-1:-1:-1;;;;;22669:38:0;;::::1;::::0;22690:6;::::1;::::0;22669:38:::1;::::0;::::1;22718:6;:17:::0;;-1:-1:-1;;;;;;22718:17:0::1;-1:-1:-1::0;;;;;22718:17:0;;;::::1;::::0;;;::::1;::::0;;22499:244::o;9300:136::-;9358:7;9385:43;9389:1;9392;9385:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;9378:50;;9300:136;;;;;:::o;23913:668::-;24039:10;24030:20;;;;:8;:20;;;;;;24011:14;;23990:62;;24011:40;;:14;:40;:18;:40;:::i;:::-;23990:16;;;:62;:20;:62;:::i;:::-;23976:10;23966:21;;;;:9;:21;;;;;:86;;;:21;24089:30;;:3;;:30;:7;:30;:::i;:::-;24145:10;24159:1;24134:22;;;:10;:22;;;;;;24063:56;;-1:-1:-1;24134:26:0;24130:351;;24242:10;24177:21;24231:22;;;:10;:22;;;;;;;;;24201:13;:25;;;;;;:53;;;:29;:53;:::i;:::-;24319:10;24269:28;24308:22;;;:10;:22;;;;;;24177:77;;-1:-1:-1;24269:28:0;24300:59;;24177:77;;24300:40;;24336:3;;24300:31;;:3;;:31;:7;:31;:::i;:::-;:35;:40;:35;:40;:::i;:::-;:44;:59;:44;:59;:::i;:::-;24422:10;24412:21;;;;:9;:21;;;;;;24269:90;;-1:-1:-1;24392:77:0;;24412:56;;24464:3;;24412:47;;24269:90;24412:47;:25;:47;:::i;:56::-;24392:15;;:77;:19;:77;:::i;:::-;24374:95;;24130:351;;;24505:10;24491:25;;;;:13;:25;;;;;;;;:43;;;;24545:10;:22;;;24570:3;24545:28;;23913:668::o;16574:177::-;16684:58;;;-1:-1:-1;;;;;16684:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;16684:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;16657:86:0;;16677:5;;16657:19;:86::i;11137:132::-;11195:7;11222:39;11226:1;11229;11222:39;;;;;;;;;;;;;;;;;:3;:39::i;12508:130::-;12566:7;12593:37;12597:1;12600;12593:37;;;;;;;;;;;;;;;;;:3;:37::i;8836:181::-;8894:7;8926:5;;;8950:6;;;;8942:46;;;;;-1:-1:-1;;;8942:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;20190:106;20278:10;20190:106;:::o;16759:205::-;16887:68;;;-1:-1:-1;;;;;16887:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;16887:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;16860:96:0;;16880:5;;16860:19;:96::i;:::-;16759:205;;;;:::o;9739:192::-;9825:7;9861:12;9853:6;;;;9845:29;;;;-1:-1:-1;;;9845:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;9845:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;9897:5:0;;;9739:192;;;;;;:::o;10190:471::-;10248:7;10493:6;10489:47;;-1:-1:-1;10523:1:0;10516:8;;10489:47;10560:5;;;10564:1;10560;:5;:1;10584:5;;;;;:10;10576:56;;;;-1:-1:-1;;;10576:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18879:761;19303:23;19329:69;19357:4;19329:69;;;;;;;;;;;;;;;;;19337:5;-1:-1:-1;;;;;19329:27:0;;;:69;;;;;:::i;:::-;19413:17;;19303:95;;-1:-1:-1;19413:21:0;19409:224;;19555:10;19544:30;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;19544:30:0;19536:85;;;;-1:-1:-1;;;19536:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11765:278;11851:7;11886:12;11879:5;11871:28;;;;-1:-1:-1;;;11871:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;11871:28:0;;11910:9;11926:1;11922;:5;;;;;;;11765:278;-1:-1:-1;;;;;11765:278:0:o;13123:166::-;13209:7;13245:12;13237:6;13229:29;;;;-1:-1:-1;;;13229:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;13229:29:0;;13280:1;13276;:5;;;;;;;13123:166;-1:-1:-1;;;;13123:166:0:o;3626:195::-;3729:12;3761:52;3783:6;3791:4;3797:1;3800:12;3761:21;:52::i;:::-;3754:59;3626:195;-1:-1:-1;;;;3626:195:0:o;4678:530::-;4805:12;4863:5;4838:21;:30;;4830:81;;;;-1:-1:-1;;;4830:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4930:18;4941:6;4930:10;:18::i;:::-;4922:60;;;;;-1:-1:-1;;;4922:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;5056:12;5070:23;5097:6;-1:-1:-1;;;;;5097:11:0;5117:5;5125:4;5097:33;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;5097:33:0;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;5055:75:0;;;;5148:52;5166:7;5175:10;5187:12;5148:17;:52::i;:::-;5141:59;4678:530;-1:-1:-1;;;;;;;4678:530:0:o;708:422::-;1075:20;1114:8;;;708:422::o;7218:742::-;7333:12;7362:7;7358:595;;;-1:-1:-1;7393:10:0;7386:17;;7358:595;7507:17;;:21;7503:439;;7770:10;7764:17;7831:15;7818:10;7814:2;7810:19;7803:44;7718:148;7906:20;;-1:-1:-1;;;7906:20:0;;;;;;;;;;;;;;;;;7913:12;;7906:20;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;

Swarm Source

ipfs://47b9cf95cc4fb7e07e3473c063ef9093c73a288efa7e227411ff92ba17f4197b

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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