ETH Price: $3,474.82 (+5.60%)

Contract

0xad2Fd18932c39fA5085429853E1f0d39a65A438e
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Unstake202577992024-07-07 23:04:59138 days ago1720393499IN
0xad2Fd189...9a65A438e
0 ETH0.0000991.50559345
Stake199190092024-05-21 14:55:11185 days ago1716303311IN
0xad2Fd189...9a65A438e
0 ETH0.0012688522.78500655
Unstake197845902024-05-02 19:42:11204 days ago1714678931IN
0xad2Fd189...9a65A438e
0 ETH0.000344776.45119567
Unstake197845872024-05-02 19:41:35204 days ago1714678895IN
0xad2Fd189...9a65A438e
0 ETH0.000318935.96769903
Unstake197845862024-05-02 19:41:11204 days ago1714678871IN
0xad2Fd189...9a65A438e
0 ETH0.00043226.12688948
Unstake197167262024-04-23 7:52:59214 days ago1713858779IN
0xad2Fd189...9a65A438e
0 ETH0.0006711310.20845683
Unstake197167122024-04-23 7:49:59214 days ago1713858599IN
0xad2Fd189...9a65A438e
0 ETH0.000440189.79076461
Unstake196392542024-04-12 11:32:59225 days ago1712921579IN
0xad2Fd189...9a65A438e
0 ETH0.000802912.21278051
Stake196296142024-04-11 3:09:59226 days ago1712804999IN
0xad2Fd189...9a65A438e
0 ETH0.0010550413.59180136
Unstake196264092024-04-10 16:26:11226 days ago1712766371IN
0xad2Fd189...9a65A438e
0 ETH0.0010995824.45744048
Unstake196264022024-04-10 16:24:47226 days ago1712766287IN
0xad2Fd189...9a65A438e
0 ETH0.0011024724.52169736
Unstake196032582024-04-07 10:35:47230 days ago1712486147IN
0xad2Fd189...9a65A438e
0 ETH0.0005768811.85966319
Unstake195722762024-04-03 2:29:59234 days ago1712111399IN
0xad2Fd189...9a65A438e
0 ETH0.0015443921.89302083
Unstake195579882024-04-01 2:20:47236 days ago1711938047IN
0xad2Fd189...9a65A438e
0 ETH0.0009879315.02452834
Unstake195040822024-03-24 11:23:23244 days ago1711279403IN
0xad2Fd189...9a65A438e
0 ETH0.0007688215.80543589
Unstake194897752024-03-22 11:09:47246 days ago1711105787IN
0xad2Fd189...9a65A438e
0 ETH0.0015110422.98404481
Unstake194760142024-03-20 12:49:23248 days ago1710938963IN
0xad2Fd189...9a65A438e
0 ETH0.0016361936.39314388
Unstake194760142024-03-20 12:49:23248 days ago1710938963IN
0xad2Fd189...9a65A438e
0 ETH0.0016361936.39314388
Unstake194738762024-03-20 5:36:59248 days ago1710913019IN
0xad2Fd189...9a65A438e
0 ETH0.002080738.94186989
Unstake194217952024-03-12 21:50:23255 days ago1710280223IN
0xad2Fd189...9a65A438e
0 ETH0.0024119549.58492903
Unstake194170472024-03-12 5:55:35256 days ago1710222935IN
0xad2Fd189...9a65A438e
0 ETH0.00242345.3380371
Unstake194134352024-03-11 17:47:11256 days ago1710179231IN
0xad2Fd189...9a65A438e
0 ETH0.0020448978.25533577
Unstake194134202024-03-11 17:44:11256 days ago1710179051IN
0xad2Fd189...9a65A438e
0 ETH0.005521378.25533577
Unstake194104812024-03-11 7:52:11257 days ago1710143531IN
0xad2Fd189...9a65A438e
0 ETH0.0042068563.98944171
Unstake194104442024-03-11 7:44:47257 days ago1710143087IN
0xad2Fd189...9a65A438e
0 ETH0.002487455.32617064
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:
Staker

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 2000 runs

Other Settings:
byzantium EvmVersion
File 1 of 7 : Staking.sol
pragma solidity ^0.6.12;

import "@openzeppelin/contracts/GSN/Context.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract Staker is Ownable {
    using SafeMath for uint256;
    using Address for address;
    
    IERC20 _token; 
    mapping (address => uint256) _balances;
    mapping (address => uint256) _unlockTime;
    mapping (address => bool) _isIDO;
    bool halted;

    event Stake(address indexed account, uint256 timestamp, uint256 value);
    event Unstake(address indexed account, uint256 timestamp, uint256 value);
    event Lock(address indexed account, uint256 timestamp, uint256 unlockTime, address locker);

    constructor() public {
        _token = IERC20(0x3d6F0DEa3AC3C607B3998e6Ce14b6350721752d9);
    }

    function stakedBalance(address account) external view returns (uint256) {
        return _balances[account];
    }

    function unlockTime(address account) external view returns (uint256) {
        return _unlockTime[account];
    }

    function isIDO(address account) external view returns (bool) {
        return _isIDO[account];
    }

    function stake(uint256 value) external notHalted {
        require(value > 0, "Staker: stake value should be greater than 0");
        _token.transferFrom(_msgSender(), address(this), value);

        _balances[_msgSender()] = _balances[_msgSender()].add(value);
        emit Stake(_msgSender(),now,value);
    }

    function unstake(uint256 value) external lockable {
        require(_balances[_msgSender()] >= value, 'Staker: insufficient staked balance');

        _balances[_msgSender()] = _balances[_msgSender()].sub(value,"Staker: insufficient staked balance");
        _token.transfer(_msgSender(), value);
        emit Unstake(_msgSender(),now,value);
    }

    function lock(address user, uint256 unlockTime) external onlyIDO {
        require(unlockTime > now, "Staker: unlock is in the past");
        if (_unlockTime[user] < unlockTime) {
            _unlockTime[user] = unlockTime;
            emit Lock(user,now,unlockTime,_msgSender());
        }
    }

    function halt(bool status) external onlyOwner {
        halted = status;
    }

    function addIDO(address account) external onlyOwner {
        require(account != address(0), "Staker: cannot be zero address");
        _isIDO[account] = true;
    }

    modifier onlyIDO() {
        require(_isIDO[_msgSender()],"Staker: only IDOs can lock");
        _;
    }

    modifier lockable() {
        require(_unlockTime[_msgSender()] <= now, "Staker: account is locked");
        _;
    }

    modifier notHalted() {
        require(!halted, "Staker: Deposits are paused");
        _;
    }
}

File 2 of 7 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

File 3 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

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

File 4 of 7 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.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, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        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) {
        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) {
        // 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) {
        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) {
        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) {
        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) {
        require(b <= a, "SafeMath: subtraction overflow");
        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) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        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) {
        require(b > 0, "SafeMath: modulo by zero");
        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) {
        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.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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);
        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) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 5 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

File 6 of 7 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

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

        uint256 size;
        // 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.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");

        // 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);
            }
        }
    }
}

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

pragma solidity >=0.6.0 <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 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;
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 2000
  },
  "evmVersion": "byzantium",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unlockTime","type":"uint256"},{"indexed":false,"internalType":"address","name":"locker","type":"address"}],"name":"Lock","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":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Unstake","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addIDO","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"halt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isIDO","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"unlockTime","type":"uint256"}],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"stakedBalance","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":"address","name":"account","type":"address"}],"name":"unlockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506000610024640100000000610099810204565b60008054600160a060020a031916600160a060020a0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018054600160a060020a031916733d6f0dea3ac3c607b3998e6ce14b6350721752d917905561009d565b3390565b61113b806100ac6000396000f3fe608060405234801561001057600080fd5b50600436106100e6576000357c01000000000000000000000000000000000000000000000000000000009004806376b467b71161009e578063a694fc3a11610078578063a694fc3a1461025a578063d91114bd14610277578063f2fde38b146102aa576100e6565b806376b467b7146101d75780638da5cb5b1461020a57806396a38d221461023b576100e6565b806360217267116100cf5780636021726714610143578063715018a61461018857806373b8ff1a14610190576100e6565b8063282d3fdf146100eb5780632e17de7814610126575b600080fd5b6101246004803603604081101561010157600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356102dd565b005b6101246004803603602081101561013c57600080fd5b50356104a4565b6101766004803603602081101561015957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610795565b60408051918252519081900360200190f35b6101246107bd565b6101c3600480360360208110156101a657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166108d4565b604080519115158252519081900360200190f35b610176600480360360208110156101ed57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166108ff565b610212610927565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101246004803603602081101561025157600080fd5b50351515610943565b6101246004803603602081101561027057600080fd5b50356109fe565b6101246004803603602081101561028d57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610c64565b610124600480360360208110156102c057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610dbf565b600460006102e9610f60565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff1661037e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f5374616b65723a206f6e6c792049444f732063616e206c6f636b000000000000604482015290519081900360640190fd5b4281116103ec57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f5374616b65723a20756e6c6f636b20697320696e207468652070617374000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260409020548111156104a05773ffffffffffffffffffffffffffffffffffffffff821660008181526003602052604090208290557f75784e97e4541f1b3d2c44d8c51b419e33fb6de615033cfc6e6810db54ffa4fe428361046c610f60565b60408051938452602084019290925273ffffffffffffffffffffffffffffffffffffffff1682820152519081900360600190a25b5050565b42600360006104b1610f60565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054111561055957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f5374616b65723a206163636f756e74206973206c6f636b656400000000000000604482015290519081900360640190fd5b8060026000610566610f60565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410156105f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806110e36023913960400191505060405180910390fd5b61064f816040518060600160405280602381526020016110e36023913960026000610621610f60565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020549190610f64565b6002600061065b610f60565b73ffffffffffffffffffffffffffffffffffffffff90811682526020820192909252604001600020919091556001541663a9059cbb610698610f60565b836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561070857600080fd5b505af115801561071c573d6000803e3d6000fd5b505050506040513d602081101561073257600080fd5b5061073d9050610f60565b73ffffffffffffffffffffffffffffffffffffffff167ff960dbf9e5d0682f7a298ed974e33a28b4464914b7a2bfac12ae419a9afeb2804283604051808381526020018281526020019250505060405180910390a250565b73ffffffffffffffffffffffffffffffffffffffff1660009081526002602052604090205490565b6107c5610f60565b73ffffffffffffffffffffffffffffffffffffffff166107e3610927565b73ffffffffffffffffffffffffffffffffffffffff161461086557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b73ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090205460ff1690565b73ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b61094b610f60565b73ffffffffffffffffffffffffffffffffffffffff16610969610927565b73ffffffffffffffffffffffffffffffffffffffff16146109eb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6005805460ff1916911515919091179055565b60055460ff1615610a7057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f5374616b65723a204465706f7369747320617265207061757365640000000000604482015290519081900360640190fd5b60008111610ac9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180611091602c913960400191505060405180910390fd5b60015473ffffffffffffffffffffffffffffffffffffffff166323b872dd610aef610f60565b604080517c010000000000000000000000000000000000000000000000000000000063ffffffff851602815273ffffffffffffffffffffffffffffffffffffffff9092166004830152306024830152604482018590525160648083019260209291908290030181600087803b158015610b6757600080fd5b505af1158015610b7b573d6000803e3d6000fd5b505050506040513d6020811015610b9157600080fd5b50610bd190508160026000610ba4610f60565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205490611015565b60026000610bdd610f60565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002055610c0c610f60565b73ffffffffffffffffffffffffffffffffffffffff167f5af417134f72a9d41143ace85b0a26dce6f550f894f2cbc1eeee8810603d91b64283604051808381526020018281526020019250505060405180910390a250565b610c6c610f60565b73ffffffffffffffffffffffffffffffffffffffff16610c8a610927565b73ffffffffffffffffffffffffffffffffffffffff1614610d0c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116610d8e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f5374616b65723a2063616e6e6f74206265207a65726f20616464726573730000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff166000908152600460205260409020805460ff19166001179055565b610dc7610f60565b73ffffffffffffffffffffffffffffffffffffffff16610de5610927565b73ffffffffffffffffffffffffffffffffffffffff1614610e6757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116610ed3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806110bd6026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b3390565b6000818484111561100d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610fd2578181015183820152602001610fba565b50505050905090810190601f168015610fff5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561108957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b939250505056fe5374616b65723a207374616b652076616c75652073686f756c642062652067726561746572207468616e20304f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735374616b65723a20696e73756666696369656e74207374616b65642062616c616e6365a2646970667358221220b68ceb62aa90cfe396bdf280262a25e705a9ca448297f04eeb4bcb94d64c1a4964736f6c634300060c0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100e6576000357c01000000000000000000000000000000000000000000000000000000009004806376b467b71161009e578063a694fc3a11610078578063a694fc3a1461025a578063d91114bd14610277578063f2fde38b146102aa576100e6565b806376b467b7146101d75780638da5cb5b1461020a57806396a38d221461023b576100e6565b806360217267116100cf5780636021726714610143578063715018a61461018857806373b8ff1a14610190576100e6565b8063282d3fdf146100eb5780632e17de7814610126575b600080fd5b6101246004803603604081101561010157600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356102dd565b005b6101246004803603602081101561013c57600080fd5b50356104a4565b6101766004803603602081101561015957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610795565b60408051918252519081900360200190f35b6101246107bd565b6101c3600480360360208110156101a657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166108d4565b604080519115158252519081900360200190f35b610176600480360360208110156101ed57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166108ff565b610212610927565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101246004803603602081101561025157600080fd5b50351515610943565b6101246004803603602081101561027057600080fd5b50356109fe565b6101246004803603602081101561028d57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610c64565b610124600480360360208110156102c057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610dbf565b600460006102e9610f60565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff1661037e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f5374616b65723a206f6e6c792049444f732063616e206c6f636b000000000000604482015290519081900360640190fd5b4281116103ec57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f5374616b65723a20756e6c6f636b20697320696e207468652070617374000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260409020548111156104a05773ffffffffffffffffffffffffffffffffffffffff821660008181526003602052604090208290557f75784e97e4541f1b3d2c44d8c51b419e33fb6de615033cfc6e6810db54ffa4fe428361046c610f60565b60408051938452602084019290925273ffffffffffffffffffffffffffffffffffffffff1682820152519081900360600190a25b5050565b42600360006104b1610f60565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054111561055957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f5374616b65723a206163636f756e74206973206c6f636b656400000000000000604482015290519081900360640190fd5b8060026000610566610f60565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410156105f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806110e36023913960400191505060405180910390fd5b61064f816040518060600160405280602381526020016110e36023913960026000610621610f60565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020549190610f64565b6002600061065b610f60565b73ffffffffffffffffffffffffffffffffffffffff90811682526020820192909252604001600020919091556001541663a9059cbb610698610f60565b836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561070857600080fd5b505af115801561071c573d6000803e3d6000fd5b505050506040513d602081101561073257600080fd5b5061073d9050610f60565b73ffffffffffffffffffffffffffffffffffffffff167ff960dbf9e5d0682f7a298ed974e33a28b4464914b7a2bfac12ae419a9afeb2804283604051808381526020018281526020019250505060405180910390a250565b73ffffffffffffffffffffffffffffffffffffffff1660009081526002602052604090205490565b6107c5610f60565b73ffffffffffffffffffffffffffffffffffffffff166107e3610927565b73ffffffffffffffffffffffffffffffffffffffff161461086557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b73ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090205460ff1690565b73ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b61094b610f60565b73ffffffffffffffffffffffffffffffffffffffff16610969610927565b73ffffffffffffffffffffffffffffffffffffffff16146109eb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6005805460ff1916911515919091179055565b60055460ff1615610a7057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f5374616b65723a204465706f7369747320617265207061757365640000000000604482015290519081900360640190fd5b60008111610ac9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180611091602c913960400191505060405180910390fd5b60015473ffffffffffffffffffffffffffffffffffffffff166323b872dd610aef610f60565b604080517c010000000000000000000000000000000000000000000000000000000063ffffffff851602815273ffffffffffffffffffffffffffffffffffffffff9092166004830152306024830152604482018590525160648083019260209291908290030181600087803b158015610b6757600080fd5b505af1158015610b7b573d6000803e3d6000fd5b505050506040513d6020811015610b9157600080fd5b50610bd190508160026000610ba4610f60565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205490611015565b60026000610bdd610f60565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002055610c0c610f60565b73ffffffffffffffffffffffffffffffffffffffff167f5af417134f72a9d41143ace85b0a26dce6f550f894f2cbc1eeee8810603d91b64283604051808381526020018281526020019250505060405180910390a250565b610c6c610f60565b73ffffffffffffffffffffffffffffffffffffffff16610c8a610927565b73ffffffffffffffffffffffffffffffffffffffff1614610d0c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116610d8e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f5374616b65723a2063616e6e6f74206265207a65726f20616464726573730000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff166000908152600460205260409020805460ff19166001179055565b610dc7610f60565b73ffffffffffffffffffffffffffffffffffffffff16610de5610927565b73ffffffffffffffffffffffffffffffffffffffff1614610e6757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116610ed3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806110bd6026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b3390565b6000818484111561100d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610fd2578181015183820152602001610fba565b50505050905090810190601f168015610fff5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561108957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b939250505056fe5374616b65723a207374616b652076616c75652073686f756c642062652067726561746572207468616e20304f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735374616b65723a20696e73756666696369656e74207374616b65642062616c616e6365a2646970667358221220b68ceb62aa90cfe396bdf280262a25e705a9ca448297f04eeb4bcb94d64c1a4964736f6c634300060c0033

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.