Overview
ETH Balance
0 ETH
Eth Value
$0.00Token Holdings
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 591 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Unstake | 13783109 | 1067 days ago | IN | 0 ETH | 0.00596518 | ||||
Unstake | 13741677 | 1074 days ago | IN | 0 ETH | 0.01130978 | ||||
Unstake | 13741564 | 1074 days ago | IN | 0 ETH | 0.01318021 | ||||
Unstake | 13211027 | 1157 days ago | IN | 0 ETH | 0.00680349 | ||||
Unstake | 13074512 | 1178 days ago | IN | 0 ETH | 0.00276626 | ||||
Claim Profit | 13074508 | 1178 days ago | IN | 0 ETH | 0.0027512 | ||||
Claim Profit | 12943128 | 1199 days ago | IN | 0 ETH | 0.0020547 | ||||
Claim Profit | 12870886 | 1210 days ago | IN | 0 ETH | 0.00328363 | ||||
Claim Profit | 12810310 | 1219 days ago | IN | 0 ETH | 0.00097985 | ||||
Unstake | 12786197 | 1223 days ago | IN | 0 ETH | 0.00210248 | ||||
Claim Profit | 12701216 | 1236 days ago | IN | 0 ETH | 0.00055436 | ||||
Unstake | 12692504 | 1238 days ago | IN | 0 ETH | 0.0015606 | ||||
Unstake | 12678612 | 1240 days ago | IN | 0 ETH | 0.00499475 | ||||
Claim Profit | 12661542 | 1243 days ago | IN | 0 ETH | 0.00112581 | ||||
Claim Profit | 12651298 | 1244 days ago | IN | 0 ETH | 0.00166309 | ||||
Claim Profit | 12650195 | 1244 days ago | IN | 0 ETH | 0.00093773 | ||||
Claim Profit | 12649376 | 1244 days ago | IN | 0 ETH | 0.00194106 | ||||
Unstake | 12645830 | 1245 days ago | IN | 0 ETH | 0.00214971 | ||||
Claim Profit | 12645824 | 1245 days ago | IN | 0 ETH | 0.00246236 | ||||
Unstake | 12644352 | 1245 days ago | IN | 0 ETH | 0.00122619 | ||||
Claim Profit | 12643983 | 1245 days ago | IN | 0 ETH | 0.00110873 | ||||
Claim Profit | 12643933 | 1245 days ago | IN | 0 ETH | 0.00123118 | ||||
Claim Profit | 12643836 | 1245 days ago | IN | 0 ETH | 0.00077611 | ||||
Unstake | 12643218 | 1245 days ago | IN | 0 ETH | 0.00111484 | ||||
Claim Profit | 12643080 | 1245 days ago | IN | 0 ETH | 0.00110918 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
O3Staking
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-06-03 */ // SPDX-License-Identifier: GPL-3.0 pragma solidity 0.6.12; // Part: Address /** * @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); } } } } // Part: Context /* * @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; } } // Part: IERC20 /** * @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); } // Part: ReentrancyGuard /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor () internal { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // Part: SafeMath /** * @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; } } // Part: IO3 interface IO3 is IERC20 { function getUnlockFactor(address token) external view returns (uint256); function getUnlockBlockGap(address token) external view returns (uint256); function totalUnlocked() external view returns (uint256); function unlockedOf(address account) external view returns (uint256); function lockedOf(address account) external view returns (uint256); function getStaked(address token) external view returns (uint256); function getUnlockSpeed(address staker, address token) external view returns (uint256); function claimableUnlocked(address token) external view returns (uint256); function setUnlockFactor(address token, uint256 _factor) external; function setUnlockBlockGap(address token, uint256 _blockGap) external; function stake(address token, uint256 amount) external returns (bool); function unstake(address token, uint256 amount) external returns (bool); function claimUnlocked(address token) external returns (bool); function setAuthorizedMintCaller(address caller) external; function removeAuthorizedMintCaller(address caller) external; function mintUnlockedToken(address to, uint256 amount) external; function mintLockedToken(address to, uint256 amount) external; } // Part: Ownable /** * @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; } } // Part: SafeERC20 /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: O3Staking.sol contract O3Staking is Context, Ownable, ReentrancyGuard { using SafeMath for uint; using SafeMath for uint256; using SafeERC20 for IERC20; struct StakingRecord { address staker; uint blockIndex; uint staked; uint totalProfit; } event LOG_STAKE ( address indexed staker, uint stakeAmount ); event LOG_UNSTAKE ( address indexed staker, uint withdrawAmount ); event LOG_CLAIM_PROFIT ( address indexed staker, uint profit ); event LOG_CALL ( bytes4 indexed sig, address indexed caller, bytes data ) anonymous; modifier _logs_() { emit LOG_CALL(msg.sig, _msgSender(), _msgData()); _; } address public StakingToken; address public O3Token; uint public startStakingBlockIndex; uint public startUnstakeBlockIndex; uint public startClaimBlockIndex; uint public totalStaked; mapping(address => StakingRecord) private _stakingRecords; mapping(uint => uint) private _unitProfitAccumu; uint private _unitProfit; // Latest unit profit. uint private _upBlockIndex; // The block index `_unitProfit` refreshed. uint private _sharePerBlock; bool private _stakingPaused; bool private _withdarawPaused; bool private _claimProfitPaused; uint public constant ONE = 10**18; constructor( address _stakingToken, address _o3Token, uint _startStakingBlockIndex, uint _startUnstakeBlockIndex, uint _startClaimBlockIndex ) public { require(_stakingToken != address(0), "O3Staking: ZERO_STAKING_ADDRESS"); require(_o3Token != address(0), "O3Staking: ZERO_O3TOKEN_ADDRESS"); require(_startClaimBlockIndex >= _startStakingBlockIndex, "O3Staking: INVALID_START_CLAIM_BLOCK_INDEX"); StakingToken = _stakingToken; O3Token = _o3Token; startStakingBlockIndex = _startStakingBlockIndex; startUnstakeBlockIndex = _startUnstakeBlockIndex; startClaimBlockIndex = _startClaimBlockIndex; } function getTotalProfit(address staker) external view returns (uint) { if (block.number <= startStakingBlockIndex) { return 0; } uint currentProfitAccumu = _unitProfitAccumu[block.number]; if (_upBlockIndex < block.number) { uint unitProfitIncrease = _unitProfit.mul(block.number.sub(_upBlockIndex)); currentProfitAccumu = _unitProfitAccumu[_upBlockIndex].add(unitProfitIncrease); } StakingRecord storage rec = _stakingRecords[staker]; uint preUnitProfit = _unitProfitAccumu[rec.blockIndex]; uint currentProfit = (currentProfitAccumu.sub(preUnitProfit)).mul(rec.staked).div(ONE); return rec.totalProfit.add(currentProfit); } function getStakingAmount(address staker) external view returns (uint) { StakingRecord storage rec = _stakingRecords[staker]; return rec.staked; } function getSharePerBlock() external view returns (uint) { return _sharePerBlock; } function setStakingToke(address _token) external onlyOwner _logs_ { StakingToken = _token; } function setSharePerBlock(uint sharePerBlock) external onlyOwner _logs_ { _sharePerBlock = sharePerBlock; _updateUnitProfitState(); } function setStartUnstakeBlockIndex(uint _startUnstakeBlockIndex) external onlyOwner _logs_ { startUnstakeBlockIndex = _startUnstakeBlockIndex; } function setStartClaimBlockIndex(uint _startClaimBlockIndex) external onlyOwner _logs_ { startClaimBlockIndex = _startClaimBlockIndex; } function stake(uint amount) external nonReentrant _logs_ { require(!_stakingPaused, "O3Staking: STAKING_PAUSED"); require(amount > 0, "O3Staking: INVALID_STAKING_AMOUNT"); totalStaked = amount.add(totalStaked); _updateUnitProfitState(); StakingRecord storage rec = _stakingRecords[_msgSender()]; uint userTotalProfit = _settleCurrentUserProfit(_msgSender()); _updateUserStakingRecord(_msgSender(), rec.staked.add(amount), userTotalProfit); emit LOG_STAKE(_msgSender(), amount); _pullToken(StakingToken, _msgSender(), amount); } function unstake(uint amount) external nonReentrant _logs_ { require(!_withdarawPaused, "O3Staking: UNSTAKE_PAUSED"); require(block.number >= startUnstakeBlockIndex, "O3Staking: UNSTAKE_NOT_STARTED"); StakingRecord storage rec = _stakingRecords[_msgSender()]; require(amount > 0, "O3Staking: ZERO_UNSTAKE_AMOUNT"); require(amount <= rec.staked, "O3Staking: UNSTAKE_AMOUNT_EXCEEDED"); totalStaked = totalStaked.sub(amount); _updateUnitProfitState(); uint userTotalProfit = _settleCurrentUserProfit(_msgSender()); _updateUserStakingRecord(_msgSender(), rec.staked.sub(amount), userTotalProfit); emit LOG_UNSTAKE(_msgSender(), amount); _pushToken(StakingToken, _msgSender(), amount); } function claimProfit() external nonReentrant _logs_ { require(!_claimProfitPaused, "O3Staking: CLAIM_PROFIT_PAUSED"); require(block.number >= startClaimBlockIndex, "O3Staking: CLAIM_NOT_STARTED"); uint totalProfit = _getTotalProfit(_msgSender()); require(totalProfit > 0, "O3Staking: ZERO_PROFIT"); StakingRecord storage rec = _stakingRecords[_msgSender()]; _updateUserStakingRecord(_msgSender(), rec.staked, 0); emit LOG_CLAIM_PROFIT(_msgSender(), totalProfit); _pushShareToken(_msgSender(), totalProfit); } function _getTotalProfit(address staker) internal returns (uint) { _updateUnitProfitState(); uint totalProfit = _settleCurrentUserProfit(staker); return totalProfit; } function _updateUserStakingRecord(address staker, uint staked, uint totalProfit) internal { _stakingRecords[staker].staked = staked; _stakingRecords[staker].totalProfit = totalProfit; _stakingRecords[staker].blockIndex = block.number; // Any action before `startStakingBlockIndex` is treated as acted in block `startStakingBlockIndex`. if (block.number < startStakingBlockIndex) { _stakingRecords[staker].blockIndex = startStakingBlockIndex; } } function _settleCurrentUserProfit(address staker) internal view returns (uint) { if (block.number <= startStakingBlockIndex) { return 0; } StakingRecord storage rec = _stakingRecords[staker]; uint preUnitProfit = _unitProfitAccumu[rec.blockIndex]; uint currUnitProfit = _unitProfitAccumu[block.number]; uint currentProfit = (currUnitProfit.sub(preUnitProfit)).mul(rec.staked).div(ONE); return rec.totalProfit.add(currentProfit); } function _updateUnitProfitState() internal { uint currentBlockIndex = block.number; if (_upBlockIndex >= currentBlockIndex) { _updateUnitProfit(); return; } // Accumulate unit profit. uint unitStakeProfitIncrease = _unitProfit.mul(currentBlockIndex.sub(_upBlockIndex)); _unitProfitAccumu[currentBlockIndex] = unitStakeProfitIncrease.add(_unitProfitAccumu[_upBlockIndex]); _upBlockIndex = block.number; if (currentBlockIndex <= startStakingBlockIndex) { _unitProfitAccumu[startStakingBlockIndex] = _unitProfitAccumu[currentBlockIndex]; _upBlockIndex = startStakingBlockIndex; } _updateUnitProfit(); } function _updateUnitProfit() internal { if (totalStaked > 0) { _unitProfit = _sharePerBlock.mul(ONE).div(totalStaked); } } function pauseStaking() external onlyOwner _logs_ { _stakingPaused = true; } function unpauseStaking() external onlyOwner _logs_ { _stakingPaused = false; } function pauseUnstake() external onlyOwner _logs_ { _withdarawPaused = true; } function unpauseUnstake() external onlyOwner _logs_ { _withdarawPaused = false; } function pauseClaimProfit() external onlyOwner _logs_ { _claimProfitPaused = true; } function unpauseClaimProfit() external onlyOwner _logs_ { _claimProfitPaused = false; } function collect(address token, address to) external nonReentrant onlyOwner _logs_ { require(token != StakingToken, "O3Staking: COLLECT_NOT_ALLOWED"); uint balance = IERC20(token).balanceOf(address(this)); _pushToken(token, to, balance); } function _pushToken(address token, address to, uint amount) internal { SafeERC20.safeTransfer(IERC20(token), to, amount); } function _pushShareToken(address to, uint amount) internal { IO3(O3Token).mintLockedToken(to, amount); } function _pullToken(address token, address from, uint amount) internal { SafeERC20.safeTransferFrom(IERC20(token), from, address(this), amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"address","name":"_o3Token","type":"address"},{"internalType":"uint256","name":"_startStakingBlockIndex","type":"uint256"},{"internalType":"uint256","name":"_startUnstakeBlockIndex","type":"uint256"},{"internalType":"uint256","name":"_startClaimBlockIndex","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":true,"inputs":[{"indexed":true,"internalType":"bytes4","name":"sig","type":"bytes4"},{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"LOG_CALL","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"profit","type":"uint256"}],"name":"LOG_CLAIM_PROFIT","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"stakeAmount","type":"uint256"}],"name":"LOG_STAKE","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"withdrawAmount","type":"uint256"}],"name":"LOG_UNSTAKE","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"},{"inputs":[],"name":"O3Token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ONE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"StakingToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimProfit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"collect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getSharePerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getStakingAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getTotalProfit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseClaimProfit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pauseStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pauseUnstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"sharePerBlock","type":"uint256"}],"name":"setSharePerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"setStakingToke","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startClaimBlockIndex","type":"uint256"}],"name":"setStartClaimBlockIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startUnstakeBlockIndex","type":"uint256"}],"name":"setStartUnstakeBlockIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startClaimBlockIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startStakingBlockIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startUnstakeBlockIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpauseClaimProfit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpauseStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpauseUnstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200268a3803806200268a833981810160405260a08110156200003757600080fd5b50805160208201516040830151606084015160809094015192939192909190600062000062620001eb565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180556001600160a01b0385166200010c576040805162461bcd60e51b815260206004820152601f60248201527f4f335374616b696e673a205a45524f5f5354414b494e475f4144445245535300604482015290519081900360640190fd5b6001600160a01b03841662000168576040805162461bcd60e51b815260206004820152601f60248201527f4f335374616b696e673a205a45524f5f4f33544f4b454e5f4144445245535300604482015290519081900360640190fd5b82811015620001a95760405162461bcd60e51b815260040180806020018281038252602a81526020018062002660602a913960400191505060405180910390fd5b600280546001600160a01b039687166001600160a01b0319918216179091556003805495909616941693909317909355600455600591909155600655620001ef565b3390565b61246180620001ff6000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c8063817b1cd2116100f9578063b9e718ec11610097578063f011a7af11610071578063f011a7af1461037f578063f1a5282714610387578063f2fde38b1461038f578063f999c506146103b5576101a9565b8063b9e718ec14610349578063be5af9661461036f578063c2ee3a0814610377576101a9565b806393f4bcde116100d357806393f4bcde146102ee578063a12ef25e146102f6578063a694fc3a14610324578063b94532dd14610341576101a9565b8063817b1cd2146102b85780638233fbcb146102c05780638da5cb5b146102e6576101a9565b80635fa8818811610166578063715018a611610140578063715018a61461027a57806374363daa1461028257806375718366146102a85780637d2c0c44146102b0576101a9565b80635fa88188146102385780636320f8d814610255578063656f723c14610272576101a9565b8063291fa963146101ae5780632e17de78146101d257806337ce51ae146101f1578063438000d9146101f9578063548114fb146102135780635d400ad914610230575b600080fd5b6101b66103bd565b604080516001600160a01b039092168252519081900360200190f35b6101ef600480360360208110156101e857600080fd5b50356103cc565b005b6101ef6106e8565b6102016107f1565b60408051918252519081900360200190f35b6101ef6004803603602081101561022957600080fd5b50356107f7565b610201610903565b6101ef6004803603602081101561024e57600080fd5b5035610909565b6101ef6004803603602081101561026b57600080fd5b5035610a0a565b6101ef610b0b565b6101ef610c15565b6102016004803603602081101561029857600080fd5b50356001600160a01b0316610cc1565b6101ef610ce3565b610201610df0565b610201610df6565b610201600480360360208110156102d657600080fd5b50356001600160a01b0316610dfc565b6101b6610ee7565b6101ef610ef6565b6101ef6004803603604081101561030c57600080fd5b506001600160a01b0381358116916020013516610ffe565b6101ef6004803603602081101561033a57600080fd5b5035611230565b6101ef611484565b6101ef6004803603602081101561035f57600080fd5b50356001600160a01b0316611593565b6101b66116b1565b6102016116c0565b6101ef6116cc565b610201611970565b6101ef600480360360208110156103a557600080fd5b50356001600160a01b0316611976565b6101ef611a78565b6003546001600160a01b031681565b60026001541415610412576040805162461bcd60e51b815260206004820152601f6024820152600080516020612312833981519152604482015290519081900360640190fd5b600260015561041f611b83565b6001600160a01b03166001600160e01b03196000351661043d611b87565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561047757818101518382015260200161045f565b50505050905090810190601f1680156104a45780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600d54610100900460ff161561050e576040805162461bcd60e51b815260206004820152601960248201527f4f335374616b696e673a20554e5354414b455f50415553454400000000000000604482015290519081900360640190fd5b600554431015610565576040805162461bcd60e51b815260206004820152601e60248201527f4f335374616b696e673a20554e5354414b455f4e4f545f535441525445440000604482015290519081900360640190fd5b600060086000610573611b83565b6001600160a01b03166001600160a01b031681526020019081526020016000209050600082116105ea576040805162461bcd60e51b815260206004820152601e60248201527f4f335374616b696e673a205a45524f5f554e5354414b455f414d4f554e540000604482015290519081900360640190fd5b806002015482111561062d5760405162461bcd60e51b815260040180806020018281038252602281526020018061237e6022913960400191505060405180910390fd5b60075461063a9083611bc6565b600755610645611c28565b6000610657610652611b83565b611cc7565b9050610679610664611b83565b60028401546106739086611bc6565b83611d46565b610681611b83565b6001600160a01b03167f931778327b1b56275efea0fc7e8320ee8d97b1b6d6b7bbafd0e40107ab3f783d846040518082815260200191505060405180910390a26002546106df906001600160a01b03166106d9611b83565b85611da3565b50506001805550565b6106f0611b83565b6001600160a01b0316610701610ee7565b6001600160a01b03161461074a576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b610752611b83565b6001600160a01b03166001600160e01b031960003516610770611b87565b6040805160208082528351818301528351919283929083019185019080838360005b838110156107aa578181015183820152602001610792565b50505050905090810190601f1680156107d75780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600d805461ff0019169055565b60045481565b6107ff611b83565b6001600160a01b0316610810610ee7565b6001600160a01b031614610859576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b610861611b83565b6001600160a01b03166001600160e01b03196000351661087f611b87565b6040805160208082528351818301528351919283929083019185019080838360005b838110156108b95781810151838201526020016108a1565b50505050905090810190601f1680156108e65780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600c819055610900611c28565b50565b60065481565b610911611b83565b6001600160a01b0316610922610ee7565b6001600160a01b03161461096b576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b610973611b83565b6001600160a01b03166001600160e01b031960003516610991611b87565b6040805160208082528351818301528351919283929083019185019080838360005b838110156109cb5781810151838201526020016109b3565b50505050905090810190601f1680156109f85780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600555565b610a12611b83565b6001600160a01b0316610a23610ee7565b6001600160a01b031614610a6c576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b610a74611b83565b6001600160a01b03166001600160e01b031960003516610a92611b87565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610acc578181015183820152602001610ab4565b50505050905090810190601f168015610af95780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600655565b610b13611b83565b6001600160a01b0316610b24610ee7565b6001600160a01b031614610b6d576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b610b75611b83565b6001600160a01b03166001600160e01b031960003516610b93611b87565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610bcd578181015183820152602001610bb5565b50505050905090810190601f168015610bfa5780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600d805462ff000019169055565b610c1d611b83565b6001600160a01b0316610c2e610ee7565b6001600160a01b031614610c77576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6001600160a01b0381166000908152600860205260409020600201545b919050565b610ceb611b83565b6001600160a01b0316610cfc610ee7565b6001600160a01b031614610d45576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b610d4d611b83565b6001600160a01b03166001600160e01b031960003516610d6b611b87565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610da5578181015183820152602001610d8d565b50505050905090810190601f168015610dd25780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600d805461ff001916610100179055565b60055481565b60075481565b60006004544311610e0f57506000610cde565b43600081815260096020526040902054600b5490911115610e70576000610e4d610e44600b5443611bc690919063ffffffff16565b600a5490611dae565b600b54600090815260096020526040902054909150610e6c9082611e0e565b9150505b6001600160a01b0383166000908152600860209081526040808320600181015484526009909252822054600282015491929091610ecb90670de0b6b3a764000090610ec590610ebf8887611bc6565b90611dae565b90611e68565b6003840154909150610edd9082611e0e565b9695505050505050565b6000546001600160a01b031690565b610efe611b83565b6001600160a01b0316610f0f610ee7565b6001600160a01b031614610f58576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b610f60611b83565b6001600160a01b03166001600160e01b031960003516610f7e611b87565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610fb8578181015183820152602001610fa0565b50505050905090810190601f168015610fe55780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600d805460ff19169055565b60026001541415611044576040805162461bcd60e51b815260206004820152601f6024820152600080516020612312833981519152604482015290519081900360640190fd5b6002600155611051611b83565b6001600160a01b0316611062610ee7565b6001600160a01b0316146110ab576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b6110b3611b83565b6001600160a01b03166001600160e01b0319600035166110d1611b87565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561110b5781810151838201526020016110f3565b50505050905090810190601f1680156111385780820380516001836020036101000a031916815260200191505b509250505060405180910390a26002546001600160a01b03838116911614156111a8576040805162461bcd60e51b815260206004820152601e60248201527f4f335374616b696e673a20434f4c4c4543545f4e4f545f414c4c4f5745440000604482015290519081900360640190fd5b6000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156111f757600080fd5b505afa15801561120b573d6000803e3d6000fd5b505050506040513d602081101561122157600080fd5b505190506106df838383611da3565b60026001541415611276576040805162461bcd60e51b815260206004820152601f6024820152600080516020612312833981519152604482015290519081900360640190fd5b6002600155611283611b83565b6001600160a01b03166001600160e01b0319600035166112a1611b87565b6040805160208082528351818301528351919283929083019185019080838360005b838110156112db5781810151838201526020016112c3565b50505050905090810190601f1680156113085780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600d5460ff161561136d576040805162461bcd60e51b815260206004820152601960248201527f4f335374616b696e673a205354414b494e475f50415553454400000000000000604482015290519081900360640190fd5b600081116113ac5760405162461bcd60e51b81526004018080602001828103825260218152602001806123a06021913960400191505060405180910390fd5b6007546113ba908290611e0e565b6007556113c5611c28565b6000600860006113d3611b83565b6001600160a01b03166001600160a01b0316815260200190815260200160002090506000611402610652611b83565b905061141e61140f611b83565b60028401546106739086611e0e565b611426611b83565b6001600160a01b03167f68e96f8f90613facfb87c3982b737aced9f29f41b491b59bd7b4b5c21b9ae047846040518082815260200191505060405180910390a26002546106df906001600160a01b031661147e611b83565b85611ecf565b61148c611b83565b6001600160a01b031661149d610ee7565b6001600160a01b0316146114e6576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b6114ee611b83565b6001600160a01b03166001600160e01b03196000351661150c611b87565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561154657818101518382015260200161152e565b50505050905090810190601f1680156115735780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600d805462ff0000191662010000179055565b61159b611b83565b6001600160a01b03166115ac610ee7565b6001600160a01b0316146115f5576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b6115fd611b83565b6001600160a01b03166001600160e01b03196000351661161b611b87565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561165557818101518382015260200161163d565b50505050905090810190601f1680156116825780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600280546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031681565b670de0b6b3a764000081565b60026001541415611712576040805162461bcd60e51b815260206004820152601f6024820152600080516020612312833981519152604482015290519081900360640190fd5b600260015561171f611b83565b6001600160a01b03166001600160e01b03196000351661173d611b87565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561177757818101518382015260200161175f565b50505050905090810190601f1680156117a45780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600d5462010000900460ff161561180f576040805162461bcd60e51b815260206004820152601e60248201527f4f335374616b696e673a20434c41494d5f50524f4649545f5041555345440000604482015290519081900360640190fd5b600654431015611866576040805162461bcd60e51b815260206004820152601c60248201527f4f335374616b696e673a20434c41494d5f4e4f545f5354415254454400000000604482015290519081900360640190fd5b6000611878611873611b83565b611edb565b9050600081116118c8576040805162461bcd60e51b815260206004820152601660248201527513ccd4dd185ada5b99ce8816915493d7d41493d1925560521b604482015290519081900360640190fd5b6000600860006118d6611b83565b6001600160a01b03166001600160a01b03168152602001908152602001600020905061190f611903611b83565b82600201546000611d46565b611917611b83565b6001600160a01b03167fb4aec8c2ed4777e9faf61deb12488ff92daac21effd951b1b12382062726b7e9836040518082815260200191505060405180910390a2611968611962611b83565b83611ef0565b505060018055565b600c5490565b61197e611b83565b6001600160a01b031661198f610ee7565b6001600160a01b0316146119d8576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b6001600160a01b038116611a1d5760405162461bcd60e51b81526004018080602001828103825260268152602001806123326026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b611a80611b83565b6001600160a01b0316611a91610ee7565b6001600160a01b031614611ada576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b611ae2611b83565b6001600160a01b03166001600160e01b031960003516611b00611b87565b6040805160208082528351818301528351919283929083019185019080838360005b83811015611b3a578181015183820152602001611b22565b50505050905090810190601f168015611b675780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600d805460ff19166001179055565b3390565b60606000368080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092935050505090565b600082821115611c1d576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b600b5443908111611c4157611c3b611f61565b50611cc5565b6000611c5b610e44600b5484611bc690919063ffffffff16565b600b54600090815260096020526040902054909150611c7b908290611e0e565b60008381526009602052604090205543600b556004548211611cba5760008281526009602052604080822054600480548452919092209190915554600b555b611cc2611f61565b50505b565b60006004544311611cda57506000610cde565b6001600160a01b03821660009081526008602090815260408083206001810154845260099092528083205443845290832054600283015492939192909190611d3490670de0b6b3a764000090610ec590610ebf8688611bc6565b6003850154909150610edd9082611e0e565b6001600160a01b038316600090815260086020526040902060028101839055600381018290554360019091018190556004541115611d9e576004546001600160a01b0384166000908152600860205260409020600101555b505050565b611d9e838383611f91565b600082611dbd57506000611c22565b82820282848281611dca57fe5b0414611e075760405162461bcd60e51b81526004018080602001828103825260218152602001806123c16021913960400191505060405180910390fd5b9392505050565b600082820183811015611e07576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000808211611ebe576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381611ec757fe5b049392505050565b611d9e83833084611fe3565b6000611ee5611c28565b6000611e0783611cc7565b60035460408051630731adf560e21b81526001600160a01b0385811660048301526024820185905291519190921691631cc6b7d491604480830192600092919082900301818387803b158015611f4557600080fd5b505af1158015611f59573d6000803e3d6000fd5b505050505050565b60075415611cc557611f8c600754610ec5670de0b6b3a7640000600c54611dae90919063ffffffff16565b600a55565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611d9e908490612043565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261203d908590612043565b50505050565b6060612098826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166120f49092919063ffffffff16565b805190915015611d9e578080602001905160208110156120b757600080fd5b5051611d9e5760405162461bcd60e51b815260040180806020018281038252602a815260200180612402602a913960400191505060405180910390fd5b6060612103848460008561210b565b949350505050565b60608247101561214c5760405162461bcd60e51b81526004018080602001828103825260268152602001806123586026913960400191505060405180910390fd5b61215585612267565b6121a6576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106121e55780518252601f1990920191602091820191016121c6565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612247576040519150601f19603f3d011682016040523d82523d6000602084013e61224c565b606091505b509150915061225c82828661226d565b979650505050505050565b3b151590565b6060831561227c575081611e07565b82511561228c5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156122d65781810151838201526020016122be565b50505050905090810190601f1680156123035780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe5265656e7472616e637947756172643a207265656e7472616e742063616c6c004f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4f335374616b696e673a20554e5354414b455f414d4f554e545f45584345454445444f335374616b696e673a20494e56414c49445f5354414b494e475f414d4f554e54536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220b813aa31281a61009542a13c0a61ef5033d4dc4fa6604438b1cda833508ecc1664736f6c634300060c00334f335374616b696e673a20494e56414c49445f53544152545f434c41494d5f424c4f434b5f494e444558000000000000000000000000111111111117dc0aa78b770fa6a738034120c302000000000000000000000000ee9801669c6138e84bd50deb500827b776777d280000000000000000000000000000000000000000000000000000000000bf97440000000000000000000000000000000000000000000000000000000000bf97440000000000000000000000000000000000000000000000000000000000bf9744
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a95760003560e01c8063817b1cd2116100f9578063b9e718ec11610097578063f011a7af11610071578063f011a7af1461037f578063f1a5282714610387578063f2fde38b1461038f578063f999c506146103b5576101a9565b8063b9e718ec14610349578063be5af9661461036f578063c2ee3a0814610377576101a9565b806393f4bcde116100d357806393f4bcde146102ee578063a12ef25e146102f6578063a694fc3a14610324578063b94532dd14610341576101a9565b8063817b1cd2146102b85780638233fbcb146102c05780638da5cb5b146102e6576101a9565b80635fa8818811610166578063715018a611610140578063715018a61461027a57806374363daa1461028257806375718366146102a85780637d2c0c44146102b0576101a9565b80635fa88188146102385780636320f8d814610255578063656f723c14610272576101a9565b8063291fa963146101ae5780632e17de78146101d257806337ce51ae146101f1578063438000d9146101f9578063548114fb146102135780635d400ad914610230575b600080fd5b6101b66103bd565b604080516001600160a01b039092168252519081900360200190f35b6101ef600480360360208110156101e857600080fd5b50356103cc565b005b6101ef6106e8565b6102016107f1565b60408051918252519081900360200190f35b6101ef6004803603602081101561022957600080fd5b50356107f7565b610201610903565b6101ef6004803603602081101561024e57600080fd5b5035610909565b6101ef6004803603602081101561026b57600080fd5b5035610a0a565b6101ef610b0b565b6101ef610c15565b6102016004803603602081101561029857600080fd5b50356001600160a01b0316610cc1565b6101ef610ce3565b610201610df0565b610201610df6565b610201600480360360208110156102d657600080fd5b50356001600160a01b0316610dfc565b6101b6610ee7565b6101ef610ef6565b6101ef6004803603604081101561030c57600080fd5b506001600160a01b0381358116916020013516610ffe565b6101ef6004803603602081101561033a57600080fd5b5035611230565b6101ef611484565b6101ef6004803603602081101561035f57600080fd5b50356001600160a01b0316611593565b6101b66116b1565b6102016116c0565b6101ef6116cc565b610201611970565b6101ef600480360360208110156103a557600080fd5b50356001600160a01b0316611976565b6101ef611a78565b6003546001600160a01b031681565b60026001541415610412576040805162461bcd60e51b815260206004820152601f6024820152600080516020612312833981519152604482015290519081900360640190fd5b600260015561041f611b83565b6001600160a01b03166001600160e01b03196000351661043d611b87565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561047757818101518382015260200161045f565b50505050905090810190601f1680156104a45780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600d54610100900460ff161561050e576040805162461bcd60e51b815260206004820152601960248201527f4f335374616b696e673a20554e5354414b455f50415553454400000000000000604482015290519081900360640190fd5b600554431015610565576040805162461bcd60e51b815260206004820152601e60248201527f4f335374616b696e673a20554e5354414b455f4e4f545f535441525445440000604482015290519081900360640190fd5b600060086000610573611b83565b6001600160a01b03166001600160a01b031681526020019081526020016000209050600082116105ea576040805162461bcd60e51b815260206004820152601e60248201527f4f335374616b696e673a205a45524f5f554e5354414b455f414d4f554e540000604482015290519081900360640190fd5b806002015482111561062d5760405162461bcd60e51b815260040180806020018281038252602281526020018061237e6022913960400191505060405180910390fd5b60075461063a9083611bc6565b600755610645611c28565b6000610657610652611b83565b611cc7565b9050610679610664611b83565b60028401546106739086611bc6565b83611d46565b610681611b83565b6001600160a01b03167f931778327b1b56275efea0fc7e8320ee8d97b1b6d6b7bbafd0e40107ab3f783d846040518082815260200191505060405180910390a26002546106df906001600160a01b03166106d9611b83565b85611da3565b50506001805550565b6106f0611b83565b6001600160a01b0316610701610ee7565b6001600160a01b03161461074a576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b610752611b83565b6001600160a01b03166001600160e01b031960003516610770611b87565b6040805160208082528351818301528351919283929083019185019080838360005b838110156107aa578181015183820152602001610792565b50505050905090810190601f1680156107d75780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600d805461ff0019169055565b60045481565b6107ff611b83565b6001600160a01b0316610810610ee7565b6001600160a01b031614610859576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b610861611b83565b6001600160a01b03166001600160e01b03196000351661087f611b87565b6040805160208082528351818301528351919283929083019185019080838360005b838110156108b95781810151838201526020016108a1565b50505050905090810190601f1680156108e65780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600c819055610900611c28565b50565b60065481565b610911611b83565b6001600160a01b0316610922610ee7565b6001600160a01b03161461096b576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b610973611b83565b6001600160a01b03166001600160e01b031960003516610991611b87565b6040805160208082528351818301528351919283929083019185019080838360005b838110156109cb5781810151838201526020016109b3565b50505050905090810190601f1680156109f85780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600555565b610a12611b83565b6001600160a01b0316610a23610ee7565b6001600160a01b031614610a6c576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b610a74611b83565b6001600160a01b03166001600160e01b031960003516610a92611b87565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610acc578181015183820152602001610ab4565b50505050905090810190601f168015610af95780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600655565b610b13611b83565b6001600160a01b0316610b24610ee7565b6001600160a01b031614610b6d576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b610b75611b83565b6001600160a01b03166001600160e01b031960003516610b93611b87565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610bcd578181015183820152602001610bb5565b50505050905090810190601f168015610bfa5780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600d805462ff000019169055565b610c1d611b83565b6001600160a01b0316610c2e610ee7565b6001600160a01b031614610c77576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6001600160a01b0381166000908152600860205260409020600201545b919050565b610ceb611b83565b6001600160a01b0316610cfc610ee7565b6001600160a01b031614610d45576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b610d4d611b83565b6001600160a01b03166001600160e01b031960003516610d6b611b87565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610da5578181015183820152602001610d8d565b50505050905090810190601f168015610dd25780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600d805461ff001916610100179055565b60055481565b60075481565b60006004544311610e0f57506000610cde565b43600081815260096020526040902054600b5490911115610e70576000610e4d610e44600b5443611bc690919063ffffffff16565b600a5490611dae565b600b54600090815260096020526040902054909150610e6c9082611e0e565b9150505b6001600160a01b0383166000908152600860209081526040808320600181015484526009909252822054600282015491929091610ecb90670de0b6b3a764000090610ec590610ebf8887611bc6565b90611dae565b90611e68565b6003840154909150610edd9082611e0e565b9695505050505050565b6000546001600160a01b031690565b610efe611b83565b6001600160a01b0316610f0f610ee7565b6001600160a01b031614610f58576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b610f60611b83565b6001600160a01b03166001600160e01b031960003516610f7e611b87565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610fb8578181015183820152602001610fa0565b50505050905090810190601f168015610fe55780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600d805460ff19169055565b60026001541415611044576040805162461bcd60e51b815260206004820152601f6024820152600080516020612312833981519152604482015290519081900360640190fd5b6002600155611051611b83565b6001600160a01b0316611062610ee7565b6001600160a01b0316146110ab576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b6110b3611b83565b6001600160a01b03166001600160e01b0319600035166110d1611b87565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561110b5781810151838201526020016110f3565b50505050905090810190601f1680156111385780820380516001836020036101000a031916815260200191505b509250505060405180910390a26002546001600160a01b03838116911614156111a8576040805162461bcd60e51b815260206004820152601e60248201527f4f335374616b696e673a20434f4c4c4543545f4e4f545f414c4c4f5745440000604482015290519081900360640190fd5b6000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156111f757600080fd5b505afa15801561120b573d6000803e3d6000fd5b505050506040513d602081101561122157600080fd5b505190506106df838383611da3565b60026001541415611276576040805162461bcd60e51b815260206004820152601f6024820152600080516020612312833981519152604482015290519081900360640190fd5b6002600155611283611b83565b6001600160a01b03166001600160e01b0319600035166112a1611b87565b6040805160208082528351818301528351919283929083019185019080838360005b838110156112db5781810151838201526020016112c3565b50505050905090810190601f1680156113085780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600d5460ff161561136d576040805162461bcd60e51b815260206004820152601960248201527f4f335374616b696e673a205354414b494e475f50415553454400000000000000604482015290519081900360640190fd5b600081116113ac5760405162461bcd60e51b81526004018080602001828103825260218152602001806123a06021913960400191505060405180910390fd5b6007546113ba908290611e0e565b6007556113c5611c28565b6000600860006113d3611b83565b6001600160a01b03166001600160a01b0316815260200190815260200160002090506000611402610652611b83565b905061141e61140f611b83565b60028401546106739086611e0e565b611426611b83565b6001600160a01b03167f68e96f8f90613facfb87c3982b737aced9f29f41b491b59bd7b4b5c21b9ae047846040518082815260200191505060405180910390a26002546106df906001600160a01b031661147e611b83565b85611ecf565b61148c611b83565b6001600160a01b031661149d610ee7565b6001600160a01b0316146114e6576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b6114ee611b83565b6001600160a01b03166001600160e01b03196000351661150c611b87565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561154657818101518382015260200161152e565b50505050905090810190601f1680156115735780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600d805462ff0000191662010000179055565b61159b611b83565b6001600160a01b03166115ac610ee7565b6001600160a01b0316146115f5576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b6115fd611b83565b6001600160a01b03166001600160e01b03196000351661161b611b87565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561165557818101518382015260200161163d565b50505050905090810190601f1680156116825780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600280546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031681565b670de0b6b3a764000081565b60026001541415611712576040805162461bcd60e51b815260206004820152601f6024820152600080516020612312833981519152604482015290519081900360640190fd5b600260015561171f611b83565b6001600160a01b03166001600160e01b03196000351661173d611b87565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561177757818101518382015260200161175f565b50505050905090810190601f1680156117a45780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600d5462010000900460ff161561180f576040805162461bcd60e51b815260206004820152601e60248201527f4f335374616b696e673a20434c41494d5f50524f4649545f5041555345440000604482015290519081900360640190fd5b600654431015611866576040805162461bcd60e51b815260206004820152601c60248201527f4f335374616b696e673a20434c41494d5f4e4f545f5354415254454400000000604482015290519081900360640190fd5b6000611878611873611b83565b611edb565b9050600081116118c8576040805162461bcd60e51b815260206004820152601660248201527513ccd4dd185ada5b99ce8816915493d7d41493d1925560521b604482015290519081900360640190fd5b6000600860006118d6611b83565b6001600160a01b03166001600160a01b03168152602001908152602001600020905061190f611903611b83565b82600201546000611d46565b611917611b83565b6001600160a01b03167fb4aec8c2ed4777e9faf61deb12488ff92daac21effd951b1b12382062726b7e9836040518082815260200191505060405180910390a2611968611962611b83565b83611ef0565b505060018055565b600c5490565b61197e611b83565b6001600160a01b031661198f610ee7565b6001600160a01b0316146119d8576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b6001600160a01b038116611a1d5760405162461bcd60e51b81526004018080602001828103825260268152602001806123326026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b611a80611b83565b6001600160a01b0316611a91610ee7565b6001600160a01b031614611ada576040805162461bcd60e51b815260206004820181905260248201526000805160206123e2833981519152604482015290519081900360640190fd5b611ae2611b83565b6001600160a01b03166001600160e01b031960003516611b00611b87565b6040805160208082528351818301528351919283929083019185019080838360005b83811015611b3a578181015183820152602001611b22565b50505050905090810190601f168015611b675780820380516001836020036101000a031916815260200191505b509250505060405180910390a2600d805460ff19166001179055565b3390565b60606000368080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092935050505090565b600082821115611c1d576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b600b5443908111611c4157611c3b611f61565b50611cc5565b6000611c5b610e44600b5484611bc690919063ffffffff16565b600b54600090815260096020526040902054909150611c7b908290611e0e565b60008381526009602052604090205543600b556004548211611cba5760008281526009602052604080822054600480548452919092209190915554600b555b611cc2611f61565b50505b565b60006004544311611cda57506000610cde565b6001600160a01b03821660009081526008602090815260408083206001810154845260099092528083205443845290832054600283015492939192909190611d3490670de0b6b3a764000090610ec590610ebf8688611bc6565b6003850154909150610edd9082611e0e565b6001600160a01b038316600090815260086020526040902060028101839055600381018290554360019091018190556004541115611d9e576004546001600160a01b0384166000908152600860205260409020600101555b505050565b611d9e838383611f91565b600082611dbd57506000611c22565b82820282848281611dca57fe5b0414611e075760405162461bcd60e51b81526004018080602001828103825260218152602001806123c16021913960400191505060405180910390fd5b9392505050565b600082820183811015611e07576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000808211611ebe576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381611ec757fe5b049392505050565b611d9e83833084611fe3565b6000611ee5611c28565b6000611e0783611cc7565b60035460408051630731adf560e21b81526001600160a01b0385811660048301526024820185905291519190921691631cc6b7d491604480830192600092919082900301818387803b158015611f4557600080fd5b505af1158015611f59573d6000803e3d6000fd5b505050505050565b60075415611cc557611f8c600754610ec5670de0b6b3a7640000600c54611dae90919063ffffffff16565b600a55565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611d9e908490612043565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261203d908590612043565b50505050565b6060612098826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166120f49092919063ffffffff16565b805190915015611d9e578080602001905160208110156120b757600080fd5b5051611d9e5760405162461bcd60e51b815260040180806020018281038252602a815260200180612402602a913960400191505060405180910390fd5b6060612103848460008561210b565b949350505050565b60608247101561214c5760405162461bcd60e51b81526004018080602001828103825260268152602001806123586026913960400191505060405180910390fd5b61215585612267565b6121a6576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106121e55780518252601f1990920191602091820191016121c6565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612247576040519150601f19603f3d011682016040523d82523d6000602084013e61224c565b606091505b509150915061225c82828661226d565b979650505050505050565b3b151590565b6060831561227c575081611e07565b82511561228c5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156122d65781810151838201526020016122be565b50505050905090810190601f1680156123035780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe5265656e7472616e637947756172643a207265656e7472616e742063616c6c004f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4f335374616b696e673a20554e5354414b455f414d4f554e545f45584345454445444f335374616b696e673a20494e56414c49445f5354414b494e475f414d4f554e54536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220b813aa31281a61009542a13c0a61ef5033d4dc4fa6604438b1cda833508ecc1664736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000111111111117dc0aa78b770fa6a738034120c302000000000000000000000000ee9801669c6138e84bd50deb500827b776777d280000000000000000000000000000000000000000000000000000000000bf97440000000000000000000000000000000000000000000000000000000000bf97440000000000000000000000000000000000000000000000000000000000bf9744
-----Decoded View---------------
Arg [0] : _stakingToken (address): 0x111111111117dC0aa78b770fA6A738034120C302
Arg [1] : _o3Token (address): 0xEe9801669C6138E84bD50dEB500827b776777d28
Arg [2] : _startStakingBlockIndex (uint256): 12556100
Arg [3] : _startUnstakeBlockIndex (uint256): 12556100
Arg [4] : _startClaimBlockIndex (uint256): 12556100
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000111111111117dc0aa78b770fa6a738034120c302
Arg [1] : 000000000000000000000000ee9801669c6138e84bd50deb500827b776777d28
Arg [2] : 0000000000000000000000000000000000000000000000000000000000bf9744
Arg [3] : 0000000000000000000000000000000000000000000000000000000000bf9744
Arg [4] : 0000000000000000000000000000000000000000000000000000000000bf9744
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.291702 | 19.5048 | $5.69 |
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.