Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 19,675 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Unstake | 20257799 | 138 days ago | IN | 0 ETH | 0.000099 | ||||
Stake | 19919009 | 185 days ago | IN | 0 ETH | 0.00126885 | ||||
Unstake | 19784590 | 204 days ago | IN | 0 ETH | 0.00034477 | ||||
Unstake | 19784587 | 204 days ago | IN | 0 ETH | 0.00031893 | ||||
Unstake | 19784586 | 204 days ago | IN | 0 ETH | 0.0004322 | ||||
Unstake | 19716726 | 214 days ago | IN | 0 ETH | 0.00067113 | ||||
Unstake | 19716712 | 214 days ago | IN | 0 ETH | 0.00044018 | ||||
Unstake | 19639254 | 225 days ago | IN | 0 ETH | 0.0008029 | ||||
Stake | 19629614 | 226 days ago | IN | 0 ETH | 0.00105504 | ||||
Unstake | 19626409 | 226 days ago | IN | 0 ETH | 0.00109958 | ||||
Unstake | 19626402 | 226 days ago | IN | 0 ETH | 0.00110247 | ||||
Unstake | 19603258 | 230 days ago | IN | 0 ETH | 0.00057688 | ||||
Unstake | 19572276 | 234 days ago | IN | 0 ETH | 0.00154439 | ||||
Unstake | 19557988 | 236 days ago | IN | 0 ETH | 0.00098793 | ||||
Unstake | 19504082 | 244 days ago | IN | 0 ETH | 0.00076882 | ||||
Unstake | 19489775 | 246 days ago | IN | 0 ETH | 0.00151104 | ||||
Unstake | 19476014 | 248 days ago | IN | 0 ETH | 0.00163619 | ||||
Unstake | 19476014 | 248 days ago | IN | 0 ETH | 0.00163619 | ||||
Unstake | 19473876 | 248 days ago | IN | 0 ETH | 0.0020807 | ||||
Unstake | 19421795 | 255 days ago | IN | 0 ETH | 0.00241195 | ||||
Unstake | 19417047 | 256 days ago | IN | 0 ETH | 0.002423 | ||||
Unstake | 19413435 | 256 days ago | IN | 0 ETH | 0.00204489 | ||||
Unstake | 19413420 | 256 days ago | IN | 0 ETH | 0.0055213 | ||||
Unstake | 19410481 | 257 days ago | IN | 0 ETH | 0.00420685 | ||||
Unstake | 19410444 | 257 days ago | IN | 0 ETH | 0.0024874 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
Staker
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 2000 runs
Other Settings:
byzantium EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
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"); _; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/Context.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; } }
// 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; } }
// 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); }
// 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); } } } }
// 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; } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 2000 }, "evmVersion": "byzantium", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
608060405234801561001057600080fd5b506000610024640100000000610099810204565b60008054600160a060020a031916600160a060020a0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018054600160a060020a031916733d6f0dea3ac3c607b3998e6ce14b6350721752d917905561009d565b3390565b61113b806100ac6000396000f3fe608060405234801561001057600080fd5b50600436106100e6576000357c01000000000000000000000000000000000000000000000000000000009004806376b467b71161009e578063a694fc3a11610078578063a694fc3a1461025a578063d91114bd14610277578063f2fde38b146102aa576100e6565b806376b467b7146101d75780638da5cb5b1461020a57806396a38d221461023b576100e6565b806360217267116100cf5780636021726714610143578063715018a61461018857806373b8ff1a14610190576100e6565b8063282d3fdf146100eb5780632e17de7814610126575b600080fd5b6101246004803603604081101561010157600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356102dd565b005b6101246004803603602081101561013c57600080fd5b50356104a4565b6101766004803603602081101561015957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610795565b60408051918252519081900360200190f35b6101246107bd565b6101c3600480360360208110156101a657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166108d4565b604080519115158252519081900360200190f35b610176600480360360208110156101ed57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166108ff565b610212610927565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101246004803603602081101561025157600080fd5b50351515610943565b6101246004803603602081101561027057600080fd5b50356109fe565b6101246004803603602081101561028d57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610c64565b610124600480360360208110156102c057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610dbf565b600460006102e9610f60565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff1661037e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f5374616b65723a206f6e6c792049444f732063616e206c6f636b000000000000604482015290519081900360640190fd5b4281116103ec57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f5374616b65723a20756e6c6f636b20697320696e207468652070617374000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260409020548111156104a05773ffffffffffffffffffffffffffffffffffffffff821660008181526003602052604090208290557f75784e97e4541f1b3d2c44d8c51b419e33fb6de615033cfc6e6810db54ffa4fe428361046c610f60565b60408051938452602084019290925273ffffffffffffffffffffffffffffffffffffffff1682820152519081900360600190a25b5050565b42600360006104b1610f60565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054111561055957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f5374616b65723a206163636f756e74206973206c6f636b656400000000000000604482015290519081900360640190fd5b8060026000610566610f60565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410156105f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806110e36023913960400191505060405180910390fd5b61064f816040518060600160405280602381526020016110e36023913960026000610621610f60565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020549190610f64565b6002600061065b610f60565b73ffffffffffffffffffffffffffffffffffffffff90811682526020820192909252604001600020919091556001541663a9059cbb610698610f60565b836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561070857600080fd5b505af115801561071c573d6000803e3d6000fd5b505050506040513d602081101561073257600080fd5b5061073d9050610f60565b73ffffffffffffffffffffffffffffffffffffffff167ff960dbf9e5d0682f7a298ed974e33a28b4464914b7a2bfac12ae419a9afeb2804283604051808381526020018281526020019250505060405180910390a250565b73ffffffffffffffffffffffffffffffffffffffff1660009081526002602052604090205490565b6107c5610f60565b73ffffffffffffffffffffffffffffffffffffffff166107e3610927565b73ffffffffffffffffffffffffffffffffffffffff161461086557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b73ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090205460ff1690565b73ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b61094b610f60565b73ffffffffffffffffffffffffffffffffffffffff16610969610927565b73ffffffffffffffffffffffffffffffffffffffff16146109eb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6005805460ff1916911515919091179055565b60055460ff1615610a7057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f5374616b65723a204465706f7369747320617265207061757365640000000000604482015290519081900360640190fd5b60008111610ac9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180611091602c913960400191505060405180910390fd5b60015473ffffffffffffffffffffffffffffffffffffffff166323b872dd610aef610f60565b604080517c010000000000000000000000000000000000000000000000000000000063ffffffff851602815273ffffffffffffffffffffffffffffffffffffffff9092166004830152306024830152604482018590525160648083019260209291908290030181600087803b158015610b6757600080fd5b505af1158015610b7b573d6000803e3d6000fd5b505050506040513d6020811015610b9157600080fd5b50610bd190508160026000610ba4610f60565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205490611015565b60026000610bdd610f60565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002055610c0c610f60565b73ffffffffffffffffffffffffffffffffffffffff167f5af417134f72a9d41143ace85b0a26dce6f550f894f2cbc1eeee8810603d91b64283604051808381526020018281526020019250505060405180910390a250565b610c6c610f60565b73ffffffffffffffffffffffffffffffffffffffff16610c8a610927565b73ffffffffffffffffffffffffffffffffffffffff1614610d0c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116610d8e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f5374616b65723a2063616e6e6f74206265207a65726f20616464726573730000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff166000908152600460205260409020805460ff19166001179055565b610dc7610f60565b73ffffffffffffffffffffffffffffffffffffffff16610de5610927565b73ffffffffffffffffffffffffffffffffffffffff1614610e6757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116610ed3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806110bd6026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b3390565b6000818484111561100d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610fd2578181015183820152602001610fba565b50505050905090810190601f168015610fff5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561108957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b939250505056fe5374616b65723a207374616b652076616c75652073686f756c642062652067726561746572207468616e20304f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735374616b65723a20696e73756666696369656e74207374616b65642062616c616e6365a2646970667358221220b68ceb62aa90cfe396bdf280262a25e705a9ca448297f04eeb4bcb94d64c1a4964736f6c634300060c0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100e6576000357c01000000000000000000000000000000000000000000000000000000009004806376b467b71161009e578063a694fc3a11610078578063a694fc3a1461025a578063d91114bd14610277578063f2fde38b146102aa576100e6565b806376b467b7146101d75780638da5cb5b1461020a57806396a38d221461023b576100e6565b806360217267116100cf5780636021726714610143578063715018a61461018857806373b8ff1a14610190576100e6565b8063282d3fdf146100eb5780632e17de7814610126575b600080fd5b6101246004803603604081101561010157600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356102dd565b005b6101246004803603602081101561013c57600080fd5b50356104a4565b6101766004803603602081101561015957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610795565b60408051918252519081900360200190f35b6101246107bd565b6101c3600480360360208110156101a657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166108d4565b604080519115158252519081900360200190f35b610176600480360360208110156101ed57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166108ff565b610212610927565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101246004803603602081101561025157600080fd5b50351515610943565b6101246004803603602081101561027057600080fd5b50356109fe565b6101246004803603602081101561028d57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610c64565b610124600480360360208110156102c057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610dbf565b600460006102e9610f60565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff1661037e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f5374616b65723a206f6e6c792049444f732063616e206c6f636b000000000000604482015290519081900360640190fd5b4281116103ec57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f5374616b65723a20756e6c6f636b20697320696e207468652070617374000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260409020548111156104a05773ffffffffffffffffffffffffffffffffffffffff821660008181526003602052604090208290557f75784e97e4541f1b3d2c44d8c51b419e33fb6de615033cfc6e6810db54ffa4fe428361046c610f60565b60408051938452602084019290925273ffffffffffffffffffffffffffffffffffffffff1682820152519081900360600190a25b5050565b42600360006104b1610f60565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054111561055957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f5374616b65723a206163636f756e74206973206c6f636b656400000000000000604482015290519081900360640190fd5b8060026000610566610f60565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410156105f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806110e36023913960400191505060405180910390fd5b61064f816040518060600160405280602381526020016110e36023913960026000610621610f60565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020549190610f64565b6002600061065b610f60565b73ffffffffffffffffffffffffffffffffffffffff90811682526020820192909252604001600020919091556001541663a9059cbb610698610f60565b836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561070857600080fd5b505af115801561071c573d6000803e3d6000fd5b505050506040513d602081101561073257600080fd5b5061073d9050610f60565b73ffffffffffffffffffffffffffffffffffffffff167ff960dbf9e5d0682f7a298ed974e33a28b4464914b7a2bfac12ae419a9afeb2804283604051808381526020018281526020019250505060405180910390a250565b73ffffffffffffffffffffffffffffffffffffffff1660009081526002602052604090205490565b6107c5610f60565b73ffffffffffffffffffffffffffffffffffffffff166107e3610927565b73ffffffffffffffffffffffffffffffffffffffff161461086557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b73ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090205460ff1690565b73ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b61094b610f60565b73ffffffffffffffffffffffffffffffffffffffff16610969610927565b73ffffffffffffffffffffffffffffffffffffffff16146109eb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6005805460ff1916911515919091179055565b60055460ff1615610a7057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f5374616b65723a204465706f7369747320617265207061757365640000000000604482015290519081900360640190fd5b60008111610ac9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180611091602c913960400191505060405180910390fd5b60015473ffffffffffffffffffffffffffffffffffffffff166323b872dd610aef610f60565b604080517c010000000000000000000000000000000000000000000000000000000063ffffffff851602815273ffffffffffffffffffffffffffffffffffffffff9092166004830152306024830152604482018590525160648083019260209291908290030181600087803b158015610b6757600080fd5b505af1158015610b7b573d6000803e3d6000fd5b505050506040513d6020811015610b9157600080fd5b50610bd190508160026000610ba4610f60565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205490611015565b60026000610bdd610f60565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002055610c0c610f60565b73ffffffffffffffffffffffffffffffffffffffff167f5af417134f72a9d41143ace85b0a26dce6f550f894f2cbc1eeee8810603d91b64283604051808381526020018281526020019250505060405180910390a250565b610c6c610f60565b73ffffffffffffffffffffffffffffffffffffffff16610c8a610927565b73ffffffffffffffffffffffffffffffffffffffff1614610d0c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116610d8e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f5374616b65723a2063616e6e6f74206265207a65726f20616464726573730000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff166000908152600460205260409020805460ff19166001179055565b610dc7610f60565b73ffffffffffffffffffffffffffffffffffffffff16610de5610927565b73ffffffffffffffffffffffffffffffffffffffff1614610e6757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116610ed3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806110bd6026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b3390565b6000818484111561100d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610fd2578181015183820152602001610fba565b50505050905090810190601f168015610fff5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561108957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b939250505056fe5374616b65723a207374616b652076616c75652073686f756c642062652067726561746572207468616e20304f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735374616b65723a20696e73756666696369656e74207374616b65642062616c616e6365a2646970667358221220b68ceb62aa90cfe396bdf280262a25e705a9ca448297f04eeb4bcb94d64c1a4964736f6c634300060c0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.