More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 3,672 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Exit | 19518947 | 296 days ago | IN | 0 ETH | 0.0114967 | ||||
Get Reward | 19518922 | 296 days ago | IN | 0 ETH | 0.0100439 | ||||
Withdraw | 18193525 | 481 days ago | IN | 0 ETH | 0.00244141 | ||||
Seize | 16786031 | 679 days ago | IN | 0 ETH | 0.00131138 | ||||
Seize | 16786029 | 679 days ago | IN | 0 ETH | 0.00141864 | ||||
Set Governance | 16785989 | 679 days ago | IN | 0 ETH | 0.00185391 | ||||
Get Reward | 16650113 | 699 days ago | IN | 0 ETH | 0.00309635 | ||||
Get Reward | 16650111 | 699 days ago | IN | 0 ETH | 0.01416342 | ||||
Withdraw | 16649996 | 699 days ago | IN | 0 ETH | 0.01084107 | ||||
Stake | 16632565 | 701 days ago | IN | 0 ETH | 0.01459041 | ||||
Stake | 16632565 | 701 days ago | IN | 0 ETH | 0.00890887 | ||||
Exit | 16249031 | 755 days ago | IN | 0 ETH | 0.00821852 | ||||
Get Reward | 16090710 | 777 days ago | IN | 0 ETH | 0.00254025 | ||||
Withdraw | 16090707 | 777 days ago | IN | 0 ETH | 0.00208031 | ||||
Exit | 14498510 | 1021 days ago | IN | 0 ETH | 0.01447457 | ||||
Exit | 14307472 | 1051 days ago | IN | 0 ETH | 0.01069785 | ||||
Exit | 13991647 | 1100 days ago | IN | 0 ETH | 0.06134964 | ||||
Stake | 13482602 | 1179 days ago | IN | 0 ETH | 0.03671193 | ||||
Stake | 13468910 | 1182 days ago | IN | 0 ETH | 0.01733978 | ||||
Get Reward | 12911902 | 1268 days ago | IN | 0 ETH | 0.0029115 | ||||
Withdraw | 12864484 | 1276 days ago | IN | 0 ETH | 0.00560993 | ||||
Stake | 12856799 | 1277 days ago | IN | 0 ETH | 0.00699849 | ||||
Get Reward | 12752311 | 1293 days ago | IN | 0 ETH | 0.00254379 | ||||
Get Reward | 12632608 | 1312 days ago | IN | 0 ETH | 0.00055819 | ||||
Get Reward | 12632608 | 1312 days ago | IN | 0 ETH | 0.00237177 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
UniswapReward
Compiler Version
v0.5.5+commit.47a71e8f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-09-16 */ /*** * ██████╗ ███████╗ ██████╗ ██████╗ * ██╔══██╗██╔════╝██╔════╝ ██╔═══██╗ * ██║ ██║█████╗ ██║ ███╗██║ ██║ * ██║ ██║██╔══╝ ██║ ██║██║ ██║ * ██████╔╝███████╗╚██████╔╝╚██████╔╝ * ╚═════╝ ╚══════╝ ╚═════╝ ╚═════╝ * * https://dego.finance * MIT License * =========== * * Copyright (c) 2020 dego * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE */ // File: @openzeppelin/contracts/math/Math.sol pragma solidity ^0.5.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow, so we distribute return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2); } } // File: @openzeppelin/contracts/math/SafeMath.sol pragma solidity ^0.5.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. * * _Available since v2.4.0._ */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: @openzeppelin/contracts/GSN/Context.sol pragma solidity ^0.5.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. */ contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns (address payable) { return msg.sender; } function _msgData() internal view returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: @openzeppelin/contracts/ownership/Ownable.sol pragma solidity ^0.5.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(isOwner(), "Ownable: caller is not the owner"); _; } /** * @dev Returns true if the caller is the current owner. */ function isOwner() public view returns (bool) { return _msgSender() == _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 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 onlyOwner { _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). */ function _transferOwnership(address newOwner) internal { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: contracts/interface/IERC20.sol pragma solidity ^0.5.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */ 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); function mint(address account, uint amount) external; /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: contracts/interface/IPlayerBook.sol pragma solidity ^0.5.0; interface IPlayerBook { function settleReward( address from,uint256 amount ) external returns (uint256); function bindRefer( address from,string calldata affCode ) external returns (bool); function hasRefer(address from) external returns(bool); } // File: contracts/interface/IPool.sol pragma solidity ^0.5.0; interface IPool { function totalSupply( ) external view returns (uint256); function balanceOf( address player ) external view returns (uint256); } // File: @openzeppelin/contracts/utils/Address.sol pragma solidity ^0.5.5; /** * @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) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Converts an `address` into `address payable`. Note that this is * simply a type cast: the actual underlying value is not changed. * * _Available since v2.4.0._ */ function toPayable(address account) internal pure returns (address payable) { return address(uint160(account)); } /** * @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]. * * _Available since v2.4.0._ */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-call-value (bool success, ) = recipient.call.value(amount)(""); require(success, "Address: unable to send value, recipient may have reverted"); } } // File: contracts/library/SafeERC20.sol pragma solidity ^0.5.0; /** * @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 ERC20;` 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; bytes4 private constant SELECTOR = bytes4(keccak256(bytes('transfer(address,uint256)'))); function safeTransfer(IERC20 token, address to, uint256 value) internal { (bool success, bytes memory data) = address(token).call(abi.encodeWithSelector(SELECTOR, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'SafeERC20: TRANSFER_FAILED'); } // 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)); } 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. // A Solidity high level call has three parts: // 1. The target address is checked to verify it contains contract code // 2. The call itself is made, and success asserted // 3. The return value is decoded, which in turn checks the size of the returned data. // solhint-disable-next-line max-line-length require(address(token).isContract(), "SafeERC20: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(token).call(data); require(success, "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: contracts/library/DegoMath.sol pragma solidity ^0.5.0; library DegoMath { /** * Calculate sqrt (x) rounding down, where x is unsigned 256-bit integer * number. * * @param x unsigned 256-bit integer number * @return unsigned 128-bit integer number */ function sqrt(uint256 x) public pure returns (uint256 y) { uint256 z = (x + 1) / 2; y = x; while (z < y) { y = z; z = (x / z + z) / 2; } } } // File: contracts/library/Governance.sol pragma solidity ^0.5.0; contract Governance { address public _governance; constructor() public { _governance = tx.origin; } event GovernanceTransferred(address indexed previousOwner, address indexed newOwner); modifier onlyGovernance { require(msg.sender == _governance, "not governance"); _; } function setGovernance(address governance) public onlyGovernance { require(governance != address(0), "new governance the zero address"); emit GovernanceTransferred(_governance, governance); _governance = governance; } } // File: contracts/interface/IPowerStrategy.sol pragma solidity ^0.5.0; interface IPowerStrategy { function lpIn(address sender, uint256 amount) external; function lpOut(address sender, uint256 amount) external; function getPower(address sender) view external returns (uint256); } // File: contracts/library/LPTokenWrapper.sol pragma solidity ^0.5.0; contract LPTokenWrapper is IPool,Governance { using SafeMath for uint256; using SafeERC20 for IERC20; IERC20 public _lpToken = IERC20(0xdAC17F958D2ee523a2206206994597C13D831ec7); address public _playerBook = address(0x4cc945E7b97fED1EAD961Cd83eD622Fe48BBf3a0); uint256 private _totalSupply; mapping(address => uint256) private _balances; uint256 private _totalPower; mapping(address => uint256) private _powerBalances; address public _powerStrategy = address(0x0); function totalSupply() public view returns (uint256) { return _totalSupply; } function setPowerStragegy(address strategy) public onlyGovernance{ _powerStrategy = strategy; } function balanceOf(address account) public view returns (uint256) { return _balances[account]; } function balanceOfPower(address account) public view returns (uint256) { return _powerBalances[account]; } function totalPower() public view returns (uint256) { return _totalPower; } function stake(uint256 amount, string memory affCode) public { _totalSupply = _totalSupply.add(amount); _balances[msg.sender] = _balances[msg.sender].add(amount); if( _powerStrategy != address(0x0)){ _totalPower = _totalPower.sub(_powerBalances[msg.sender]); IPowerStrategy(_powerStrategy).lpIn(msg.sender, amount); _powerBalances[msg.sender] = IPowerStrategy(_powerStrategy).getPower(msg.sender); _totalPower = _totalPower.add(_powerBalances[msg.sender]); }else{ _totalPower = _totalSupply; _powerBalances[msg.sender] = _balances[msg.sender]; } _lpToken.safeTransferFrom(msg.sender, address(this), amount); if (!IPlayerBook(_playerBook).hasRefer(msg.sender)) { IPlayerBook(_playerBook).bindRefer(msg.sender, affCode); } } function withdraw(uint256 amount) public { require(amount > 0, "amout > 0"); _totalSupply = _totalSupply.sub(amount); _balances[msg.sender] = _balances[msg.sender].sub(amount); if( _powerStrategy != address(0x0)){ _totalPower = _totalPower.sub(_powerBalances[msg.sender]); IPowerStrategy(_powerStrategy).lpOut(msg.sender, amount); _powerBalances[msg.sender] = IPowerStrategy(_powerStrategy).getPower(msg.sender); _totalPower = _totalPower.add(_powerBalances[msg.sender]); }else{ _totalPower = _totalSupply; _powerBalances[msg.sender] = _balances[msg.sender]; } _lpToken.safeTransfer( msg.sender, amount); } } // File: contracts/reward/UniswapReward.sol pragma solidity ^0.5.0; contract UniswapReward is LPTokenWrapper{ using SafeERC20 for IERC20; IERC20 public _dego = IERC20(0x88EF27e69108B2633F8E1C184CC37940A075cC02); address public _teamWallet = 0x3D0a845C5ef9741De999FC068f70E2048A489F2b; address public _rewardPool = 0xEA6dEc98e137a87F78495a8386f7A137408f7722; uint256 public constant DURATION = 7 days; uint256 public _initReward = 525000 * 1e18; uint256 public _startTime = now + 365 days; uint256 public _periodFinish = 0; uint256 public _rewardRate = 0; uint256 public _lastUpdateTime; uint256 public _rewardPerTokenStored; uint256 public _teamRewardRate = 500; uint256 public _poolRewardRate = 1000; uint256 public _baseRate = 10000; uint256 public _punishTime = 3 days; mapping(address => uint256) public _userRewardPerTokenPaid; mapping(address => uint256) public _rewards; mapping(address => uint256) public _lastStakedTime; bool public _hasStart = false; event RewardAdded(uint256 reward); event Staked(address indexed user, uint256 amount); event Withdrawn(address indexed user, uint256 amount); event RewardPaid(address indexed user, uint256 reward); modifier updateReward(address account) { _rewardPerTokenStored = rewardPerToken(); _lastUpdateTime = lastTimeRewardApplicable(); if (account != address(0)) { _rewards[account] = earned(account); _userRewardPerTokenPaid[account] = _rewardPerTokenStored; } _; } /* Fee collection for any other token */ function seize(IERC20 token, uint256 amount) external onlyGovernance{ require(token != _dego, "reward"); require(token != _lpToken, "stake"); token.safeTransfer(_governance, amount); } function setTeamRewardRate( uint256 teamRewardRate ) public onlyGovernance{ _teamRewardRate = teamRewardRate; } function setPoolRewardRate( uint256 poolRewardRate ) public onlyGovernance{ _poolRewardRate = poolRewardRate; } function setWithDrawPunishTime( uint256 punishTime ) public onlyGovernance{ _punishTime = punishTime; } function lastTimeRewardApplicable() public view returns (uint256) { return Math.min(block.timestamp, _periodFinish); } function rewardPerToken() public view returns (uint256) { if (totalPower() == 0) { return _rewardPerTokenStored; } return _rewardPerTokenStored.add( lastTimeRewardApplicable() .sub(_lastUpdateTime) .mul(_rewardRate) .mul(1e18) .div(totalPower()) ); } function earned(address account) public view returns (uint256) { return balanceOfPower(account) .mul(rewardPerToken().sub(_userRewardPerTokenPaid[account])) .div(1e18) .add(_rewards[account]); } // stake visibility is public as overriding LPTokenWrapper's stake() function function stake(uint256 amount, string memory affCode) public updateReward(msg.sender) checkHalve checkStart { require(amount > 0, "Cannot stake 0"); super.stake(amount, affCode); _lastStakedTime[msg.sender] = now; emit Staked(msg.sender, amount); } function withdraw(uint256 amount) public updateReward(msg.sender) checkHalve checkStart { require(amount > 0, "Cannot withdraw 0"); super.withdraw(amount); emit Withdrawn(msg.sender, amount); } function exit() external { withdraw(balanceOf(msg.sender)); getReward(); } function getReward() public updateReward(msg.sender) checkHalve checkStart { uint256 reward = earned(msg.sender); if (reward > 0) { _rewards[msg.sender] = 0; uint256 fee = IPlayerBook(_playerBook).settleReward(msg.sender, reward); if(fee > 0){ _dego.safeTransfer(_playerBook, fee); } uint256 teamReward = reward.mul(_teamRewardRate).div(_baseRate); if(teamReward>0){ _dego.safeTransfer(_teamWallet, teamReward); } uint256 leftReward = reward.sub(fee).sub(teamReward); uint256 poolReward = 0; //withdraw time check if(now < (_lastStakedTime[msg.sender] + _punishTime) ){ poolReward = leftReward.mul(_poolRewardRate).div(_baseRate); } if(poolReward>0){ _dego.safeTransfer(_rewardPool, poolReward); leftReward = leftReward.sub(poolReward); } if(leftReward>0){ _dego.safeTransfer(msg.sender, leftReward ); } emit RewardPaid(msg.sender, leftReward); } } modifier checkHalve() { if (block.timestamp >= _periodFinish) { _initReward = _initReward.mul(50).div(100); _dego.mint(address(this), _initReward); _rewardRate = _initReward.div(DURATION); _periodFinish = block.timestamp.add(DURATION); emit RewardAdded(_initReward); } _; } modifier checkStart() { require(block.timestamp > _startTime, "not start"); _; } // set fix time to start reward function startReward(uint256 startTime) external onlyGovernance updateReward(address(0)) { require(_hasStart == false, "has started"); _hasStart = true; _startTime = startTime; _rewardRate = _initReward.div(DURATION); _dego.mint(address(this), _initReward); _lastUpdateTime = _startTime; _periodFinish = _startTime.add(DURATION); emit RewardAdded(_initReward); } // //for extra reward function notifyRewardAmount(uint256 reward) external onlyGovernance updateReward(address(0)) { IERC20(_dego).safeTransferFrom(msg.sender, address(this), reward); if (block.timestamp >= _periodFinish) { _rewardRate = reward.div(DURATION); } else { uint256 remaining = _periodFinish.sub(block.timestamp); uint256 leftover = remaining.mul(_rewardRate); _rewardRate = reward.add(leftover).div(DURATION); } _lastUpdateTime = block.timestamp; _periodFinish = block.timestamp.add(DURATION); emit RewardAdded(reward); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"earned","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"teamRewardRate","type":"uint256"}],"name":"setTeamRewardRate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"_rewardPerTokenStored","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_periodFinish","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"DURATION","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_governance","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_lpToken","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"_teamWallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"_poolRewardRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"_lastStakedTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"_userRewardPerTokenPaid","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_rewardRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_lastUpdateTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_dego","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"poolRewardRate","type":"uint256"}],"name":"setPoolRewardRate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"_rewards","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_baseRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"punishTime","type":"uint256"}],"name":"setWithDrawPunishTime","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"_punishTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"strategy","type":"address"}],"name":"setPowerStragegy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"governance","type":"address"}],"name":"setGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"balanceOfPower","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"startTime","type":"uint256"}],"name":"startReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerToken","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalPower","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_rewardPool","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_hasStart","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"},{"name":"affCode","type":"string"}],"name":"stake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"token","type":"address"},{"name":"amount","type":"uint256"}],"name":"seize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"_teamRewardRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_powerStrategy","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_playerBook","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_startTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_initReward","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"user","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"user","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"user","type":"address"},{"indexed":false,"name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"GovernanceTransferred","type":"event"}]
Contract Creation Code
6080604052600180546001600160a01b031990811673dac17f958d2ee523a2206206994597c13d831ec717909155600280548216734cc945e7b97fed1ead961cd83ed622fe48bbf3a017905560078054821690556008805482167388ef27e69108b2633f8e1c184cc37940a075cc02179055600980548216733d0a845c5ef9741de999fc068f70e2048a489f2b179055600a8054821673ea6dec98e137a87f78495a8386f7a137408f7722179055696f2c4e995ec98e200000600b556301e133804201600c556000600d819055600e8190556101f46011556103e86012556127106013556203f4806014556018805460ff191690558054909116321790556123b68061010c6000396000f3fe608060405234801561001057600080fd5b50600436106102525760003560e01c80637d6dfb7e11610146578063db3ad22c116100c3578063eb9253c011610087578063eb9253c0146105c6578063ed6525c4146105f2578063ee631881146105fa578063f9cff35114610602578063fa1acb5c1461060a578063ffd832c11461061257610252565b8063db3ad22c146104e5578063dc7ced3d146104ed578063e45a98dd146104f5578063e7e4e1f714610511578063e9fad8ee146105be57610252565b8063aa981e651161010a578063aa981e651461044e578063ab033ea914610474578063bb1b42691461049a578063c909f152146104c0578063cd3daf9d146104dd57610252565b80637d6dfb7e146103f357806380faa57d14610419578063927b26b9146104215780639a6b25a3146104295780639f3fbd2b1461044657610252565b80633c6b16ab116101d457806368fd25cd1161019857806368fd25cd146103985780636adafab5146103a057806370a08231146103a857806374f9b464146103ce5780637b4d0812146103d657610252565b80633c6b16ab1461031f5780633d18b9121461033c57806353364da01461034457806356728e9d1461034c57806365d82b8a1461037257610252565b80631be052891161021b5780631be05289146102c65780631c2f3e3d146102ce57806329d245aa146102f25780632e1a7d4d146102fa57806337e294d51461031757610252565b80628cc262146102575780630ba86f051461028f578063121544b9146102ae5780631407c664146102b657806318160ddd146102be575b600080fd5b61027d6004803603602081101561026d57600080fd5b50356001600160a01b031661061a565b60408051918252519081900360200190f35b6102ac600480360360208110156102a557600080fd5b50356106a0565b005b61027d6106fb565b61027d610701565b61027d610707565b61027d61070e565b6102d6610715565b604080516001600160a01b039092168252519081900360200190f35b6102d6610724565b6102ac6004803603602081101561031057600080fd5b5035610733565b6102d661095a565b6102ac6004803603602081101561033557600080fd5b5035610969565b6102ac610aec565b61027d610e86565b61027d6004803603602081101561036257600080fd5b50356001600160a01b0316610e8c565b61027d6004803603602081101561038857600080fd5b50356001600160a01b0316610e9e565b61027d610eb0565b61027d610eb6565b61027d600480360360208110156103be57600080fd5b50356001600160a01b0316610ebc565b6102d6610ed7565b6102ac600480360360208110156103ec57600080fd5b5035610ee6565b61027d6004803603602081101561040957600080fd5b50356001600160a01b0316610f41565b61027d610f53565b61027d610f66565b6102ac6004803603602081101561043f57600080fd5b5035610f6c565b61027d610fc7565b6102ac6004803603602081101561046457600080fd5b50356001600160a01b0316610fcd565b6102ac6004803603602081101561048a57600080fd5b50356001600160a01b0316611045565b61027d600480360360208110156104b057600080fd5b50356001600160a01b0316611156565b6102ac600480360360208110156104d657600080fd5b5035611171565b61027d611351565b61027d6113a7565b6102d66113ad565b6104fd6113bc565b604080519115158252519081900360200190f35b6102ac6004803603604081101561052757600080fd5b8135919081019060408101602082013564010000000081111561054957600080fd5b82018360208201111561055b57600080fd5b8035906020019184600183028401116401000000008311171561057d57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506113c5945050505050565b6102ac6115ff565b6102ac600480360360408110156105dc57600080fd5b506001600160a01b03813516906020013561161a565b61027d611733565b6102d6611739565b6102d6611748565b61027d611757565b61027d61175d565b6001600160a01b038116600090815260166020908152604080832054601590925282205461069a919061068e90670de0b6b3a7640000906106829061066d90610661611351565b9063ffffffff61176316565b61067688611156565b9063ffffffff6117ac16565b9063ffffffff61180c16565b9063ffffffff61184e16565b92915050565b6000546001600160a01b031633146106f65760408051600160e51b62461bcd02815260206004820152600e6024820152600160901b6d6e6f7420676f7665726e616e636502604482015290519081900360640190fd5b601155565b60105481565b600d5481565b6003545b90565b62093a8081565b6000546001600160a01b031681565b6001546001600160a01b031681565b3361073c611351565b601055610747610f53565b600f556001600160a01b0381161561078e576107628161061a565b6001600160a01b0382166000908152601660209081526040808320939093556010546015909152919020555b600d544210610878576107b260646106826032600b546117ac90919063ffffffff16565b600b81905560085460408051600160e01b6340c10f190281523060048201526024810193909352516001600160a01b03909116916340c10f1991604480830192600092919082900301818387803b15801561080c57600080fd5b505af1158015610820573d6000803e3d6000fd5b5050600b5461083b9250905062093a8063ffffffff61180c16565b600e556108514262093a8063ffffffff61184e16565b600d55600b5460408051918252516000805160206123208339815191529181900360200190a15b600c5442116108c05760408051600160e51b62461bcd0281526020600482015260096024820152600160ba1b681b9bdd081cdd185c9d02604482015290519081900360640190fd5b8115156109175760408051600160e51b62461bcd02815260206004820152601160248201527f43616e6e6f742077697468647261772030000000000000000000000000000000604482015290519081900360640190fd5b610920826118ab565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b6009546001600160a01b031681565b6000546001600160a01b031633146109bf5760408051600160e51b62461bcd02815260206004820152600e6024820152600160901b6d6e6f7420676f7665726e616e636502604482015290519081900360640190fd5b60006109c9611351565b6010556109d4610f53565b600f556001600160a01b03811615610a1b576109ef8161061a565b6001600160a01b0382166000908152601660209081526040808320939093556010546015909152919020555b600854610a39906001600160a01b031633308563ffffffff611ac416565b600d544210610a5d57610a558262093a8063ffffffff61180c16565b600e55610aab565b600d54600090610a73904263ffffffff61176316565b90506000610a8c600e54836117ac90919063ffffffff16565b9050610aa562093a80610682868463ffffffff61184e16565b600e5550505b42600f819055610ac49062093a8063ffffffff61184e16565b600d556040805183815290516000805160206123208339815191529181900360200190a15050565b33610af5611351565b601055610b00610f53565b600f556001600160a01b03811615610b4757610b1b8161061a565b6001600160a01b0382166000908152601660209081526040808320939093556010546015909152919020555b600d544210610c3157610b6b60646106826032600b546117ac90919063ffffffff16565b600b81905560085460408051600160e01b6340c10f190281523060048201526024810193909352516001600160a01b03909116916340c10f1991604480830192600092919082900301818387803b158015610bc557600080fd5b505af1158015610bd9573d6000803e3d6000fd5b5050600b54610bf49250905062093a8063ffffffff61180c16565b600e55610c0a4262093a8063ffffffff61184e16565b600d55600b5460408051918252516000805160206123208339815191529181900360200190a15b600c544211610c795760408051600160e51b62461bcd0281526020600482015260096024820152600160ba1b681b9bdd081cdd185c9d02604482015290519081900360640190fd5b6000610c843361061a565b90508015610e82573360008181526016602090815260408083208390556002548151600160e01b6335380a55028152600481019590955260248501869052905192936001600160a01b03909116926335380a559260448084019391929182900301818787803b158015610cf657600080fd5b505af1158015610d0a573d6000803e3d6000fd5b505050506040513d6020811015610d2057600080fd5b505190508015610d4d57600254600854610d4d916001600160a01b0391821691168363ffffffff611b2716565b6000610d6a601354610682601154866117ac90919063ffffffff16565b90508015610d9557600954600854610d95916001600160a01b0391821691168363ffffffff611b2716565b6000610dab82610661868663ffffffff61176316565b601454336000908152601760205260408120549293509101421015610de857610de5601354610682601254856117ac90919063ffffffff16565b90505b8015610e2457600a54600854610e11916001600160a01b0391821691168363ffffffff611b2716565b610e21828263ffffffff61176316565b91505b8115610e4757600854610e47906001600160a01b0316338463ffffffff611b2716565b60408051838152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a2505050505b5050565b60125481565b60176020526000908152604090205481565b60156020526000908152604090205481565b600e5481565b600f5481565b6001600160a01b031660009081526004602052604090205490565b6008546001600160a01b031681565b6000546001600160a01b03163314610f3c5760408051600160e51b62461bcd02815260206004820152600e6024820152600160901b6d6e6f7420676f7665726e616e636502604482015290519081900360640190fd5b601255565b60166020526000908152604090205481565b6000610f6142600d54611cc9565b905090565b60135481565b6000546001600160a01b03163314610fc25760408051600160e51b62461bcd02815260206004820152600e6024820152600160901b6d6e6f7420676f7665726e616e636502604482015290519081900360640190fd5b601455565b60145481565b6000546001600160a01b031633146110235760408051600160e51b62461bcd02815260206004820152600e6024820152600160901b6d6e6f7420676f7665726e616e636502604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461109b5760408051600160e51b62461bcd02815260206004820152600e6024820152600160901b6d6e6f7420676f7665726e616e636502604482015290519081900360640190fd5b6001600160a01b03811615156110fb5760408051600160e51b62461bcd02815260206004820152601f60248201527f6e657720676f7665726e616e636520746865207a65726f206164647265737300604482015290519081900360640190fd5b600080546040516001600160a01b03808516939216917f5f56bee8cffbe9a78652a74a60705edede02af10b0bbb888ca44b79a0d42ce8091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b031660009081526006602052604090205490565b6000546001600160a01b031633146111c75760408051600160e51b62461bcd02815260206004820152600e6024820152600160901b6d6e6f7420676f7665726e616e636502604482015290519081900360640190fd5b60006111d1611351565b6010556111dc610f53565b600f556001600160a01b03811615611223576111f78161061a565b6001600160a01b0382166000908152601660209081526040808320939093556010546015909152919020555b60185460ff161561126f5760408051600160e51b62461bcd02815260206004820152600b6024820152600160aa1b6a1a185cc81cdd185c9d195902604482015290519081900360640190fd5b6018805460ff19166001179055600c829055600b546112979062093a8063ffffffff61180c16565b600e55600854600b5460408051600160e01b6340c10f190281523060048201526024810192909252516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b1580156112f357600080fd5b505af1158015611307573d6000803e3d6000fd5b5050600c54600f8190556113279250905062093a8063ffffffff61184e16565b600d55600b5460408051918252516000805160206123208339815191529181900360200190a15050565b600061135b6113a7565b151561136a575060105461070b565b610f616113986113786113a7565b610682670de0b6b3a7640000610676600e54610676600f54610661610f53565b6010549063ffffffff61184e16565b60055490565b600a546001600160a01b031681565b60185460ff1681565b336113ce611351565b6010556113d9610f53565b600f556001600160a01b03811615611420576113f48161061a565b6001600160a01b0382166000908152601660209081526040808320939093556010546015909152919020555b600d54421061150a5761144460646106826032600b546117ac90919063ffffffff16565b600b81905560085460408051600160e01b6340c10f190281523060048201526024810193909352516001600160a01b03909116916340c10f1991604480830192600092919082900301818387803b15801561149e57600080fd5b505af11580156114b2573d6000803e3d6000fd5b5050600b546114cd9250905062093a8063ffffffff61180c16565b600e556114e34262093a8063ffffffff61184e16565b600d55600b5460408051918252516000805160206123208339815191529181900360200190a15b600c5442116115525760408051600160e51b62461bcd0281526020600482015260096024820152600160ba1b681b9bdd081cdd185c9d02604482015290519081900360640190fd5b8215156115a95760408051600160e51b62461bcd02815260206004820152600e60248201527f43616e6e6f74207374616b652030000000000000000000000000000000000000604482015290519081900360640190fd5b6115b38383611cdf565b33600081815260176020908152604091829020429055815186815291517f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9281900390910190a2505050565b61161061160b33610ebc565b610733565b611618610aec565b565b6000546001600160a01b031633146116705760408051600160e51b62461bcd02815260206004820152600e6024820152600160901b6d6e6f7420676f7665726e616e636502604482015290519081900360640190fd5b6008546001600160a01b03838116911614156116c25760408051600160e51b62461bcd0281526020600482015260066024820152600160d21b651c995dd85c9902604482015290519081900360640190fd5b6001546001600160a01b03838116911614156117135760408051600160e51b62461bcd0281526020600482015260056024820152600160d81b647374616b6502604482015290519081900360640190fd5b600054610e82906001600160a01b0384811691168363ffffffff611b2716565b60115481565b6007546001600160a01b031681565b6002546001600160a01b031681565b600c5481565b600b5481565b60006117a583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612015565b9392505050565b60008215156117bd5750600061069a565b8282028284828115156117cc57fe5b04146117a557604051600160e51b62461bcd0281526004018080602001828103825260218152602001806123406021913960400191505060405180910390fd5b60006117a583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506120af565b6000828201838110156117a55760408051600160e51b62461bcd02815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b8015156118f15760408051600160e51b62461bcd0281526020600482015260096024820152600160bc1b680616d6f7574203e20302604482015290519081900360640190fd5b600354611904908263ffffffff61176316565b60035533600090815260046020526040902054611927908263ffffffff61176316565b336000908152600460205260409020556007546001600160a01b031615611a81573360009081526006602052604090205460055461196a9163ffffffff61176316565b60055560075460408051600160e01b63d96145510281523360048201526024810184905290516001600160a01b039092169163d96145519160448082019260009290919082900301818387803b1580156119c357600080fd5b505af11580156119d7573d6000803e3d6000fd5b505060075460408051600160e21b631776451f02815233600482015290516001600160a01b039092169350635dd9147c9250602480820192602092909190829003018186803b158015611a2957600080fd5b505afa158015611a3d573d6000803e3d6000fd5b505050506040513d6020811015611a5357600080fd5b5051336000908152600660205260409020819055600554611a799163ffffffff61184e16565b600555611aa4565b600354600555336000908152600460209081526040808320546006909252909120555b600154611ac1906001600160a01b0316338363ffffffff611b2716565b50565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b0316600160e01b6323b872dd02179052611b2190859061211c565b50505050565b604080518082018252601981527f7472616e7366657228616464726573732c75696e74323536290000000000000060209182015281516001600160a01b0385811660248301526044808301869052845180840390910181526064909201845291810180516001600160e01b0316600160e01b63a9059cbb021781529251815160009460609489169392918291908083835b60208310611bd75780518252601f199092019160209182019101611bb8565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611c39576040519150601f19603f3d011682016040523d82523d6000602084013e611c3e565b606091505b5091509150818015611c6c575080511580611c6c5750808060200190516020811015611c6957600080fd5b50515b1515611cc25760408051600160e51b62461bcd02815260206004820152601a60248201527f5361666545524332303a205452414e534645525f4641494c4544000000000000604482015290519081900360640190fd5b5050505050565b6000818310611cd857816117a5565b5090919050565b600354611cf2908363ffffffff61184e16565b60035533600090815260046020526040902054611d15908363ffffffff61184e16565b336000908152600460205260409020556007546001600160a01b031615611e6f5733600090815260066020526040902054600554611d589163ffffffff61176316565b60055560075460408051600160e31b631b4ac5530281523360048201526024810185905290516001600160a01b039092169163da562a989160448082019260009290919082900301818387803b158015611db157600080fd5b505af1158015611dc5573d6000803e3d6000fd5b505060075460408051600160e21b631776451f02815233600482015290516001600160a01b039092169350635dd9147c9250602480820192602092909190829003018186803b158015611e1757600080fd5b505afa158015611e2b573d6000803e3d6000fd5b505050506040513d6020811015611e4157600080fd5b5051336000908152600660205260409020819055600554611e679163ffffffff61184e16565b600555611e92565b600354600555336000908152600460209081526040808320546006909252909120555b600154611eb0906001600160a01b031633308563ffffffff611ac416565b60025460408051600160e01b63a526a92b02815233600482015290516001600160a01b039092169163a526a92b916024808201926020929091908290030181600087803b158015611f0057600080fd5b505af1158015611f14573d6000803e3d6000fd5b505050506040513d6020811015611f2a57600080fd5b50511515610e825760025460408051600160e01b63d66d14070281523360048201818152602483019384528551604484015285516001600160a01b039095169463d66d1407949293879391606490910190602085019080838360005b83811015611f9e578181015183820152602001611f86565b50505050905090810190601f168015611fcb5780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b158015611feb57600080fd5b505af1158015611fff573d6000803e3d6000fd5b505050506040513d6020811015611b2157600080fd5b600081848411156120a757604051600160e51b62461bcd0281526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561206c578181015183820152602001612054565b50505050905090810190601f1680156120995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183151561210457604051600160e51b62461bcd0281526004018080602001828103825283818151815260200191508051906020019080838360008381101561206c578181015183820152602001612054565b506000838581151561211257fe5b0495945050505050565b61212e826001600160a01b03166122e3565b15156121845760408051600160e51b62461bcd02815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106121c25780518252601f1990920191602091820191016121a3565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612224576040519150601f19603f3d011682016040523d82523d6000602084013e612229565b606091505b50915091508115156122855760408051600160e51b62461bcd02815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115611b21578080602001905160208110156122a157600080fd5b50511515611b2157604051600160e51b62461bcd02815260040180806020018281038252602a815260200180612361602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061231757508115155b94935050505056fede88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a165627a7a72305820692d0eccf245d1c3db90b572d99a139ff77bbdd4aa54d795c3ea5001493535960029
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102525760003560e01c80637d6dfb7e11610146578063db3ad22c116100c3578063eb9253c011610087578063eb9253c0146105c6578063ed6525c4146105f2578063ee631881146105fa578063f9cff35114610602578063fa1acb5c1461060a578063ffd832c11461061257610252565b8063db3ad22c146104e5578063dc7ced3d146104ed578063e45a98dd146104f5578063e7e4e1f714610511578063e9fad8ee146105be57610252565b8063aa981e651161010a578063aa981e651461044e578063ab033ea914610474578063bb1b42691461049a578063c909f152146104c0578063cd3daf9d146104dd57610252565b80637d6dfb7e146103f357806380faa57d14610419578063927b26b9146104215780639a6b25a3146104295780639f3fbd2b1461044657610252565b80633c6b16ab116101d457806368fd25cd1161019857806368fd25cd146103985780636adafab5146103a057806370a08231146103a857806374f9b464146103ce5780637b4d0812146103d657610252565b80633c6b16ab1461031f5780633d18b9121461033c57806353364da01461034457806356728e9d1461034c57806365d82b8a1461037257610252565b80631be052891161021b5780631be05289146102c65780631c2f3e3d146102ce57806329d245aa146102f25780632e1a7d4d146102fa57806337e294d51461031757610252565b80628cc262146102575780630ba86f051461028f578063121544b9146102ae5780631407c664146102b657806318160ddd146102be575b600080fd5b61027d6004803603602081101561026d57600080fd5b50356001600160a01b031661061a565b60408051918252519081900360200190f35b6102ac600480360360208110156102a557600080fd5b50356106a0565b005b61027d6106fb565b61027d610701565b61027d610707565b61027d61070e565b6102d6610715565b604080516001600160a01b039092168252519081900360200190f35b6102d6610724565b6102ac6004803603602081101561031057600080fd5b5035610733565b6102d661095a565b6102ac6004803603602081101561033557600080fd5b5035610969565b6102ac610aec565b61027d610e86565b61027d6004803603602081101561036257600080fd5b50356001600160a01b0316610e8c565b61027d6004803603602081101561038857600080fd5b50356001600160a01b0316610e9e565b61027d610eb0565b61027d610eb6565b61027d600480360360208110156103be57600080fd5b50356001600160a01b0316610ebc565b6102d6610ed7565b6102ac600480360360208110156103ec57600080fd5b5035610ee6565b61027d6004803603602081101561040957600080fd5b50356001600160a01b0316610f41565b61027d610f53565b61027d610f66565b6102ac6004803603602081101561043f57600080fd5b5035610f6c565b61027d610fc7565b6102ac6004803603602081101561046457600080fd5b50356001600160a01b0316610fcd565b6102ac6004803603602081101561048a57600080fd5b50356001600160a01b0316611045565b61027d600480360360208110156104b057600080fd5b50356001600160a01b0316611156565b6102ac600480360360208110156104d657600080fd5b5035611171565b61027d611351565b61027d6113a7565b6102d66113ad565b6104fd6113bc565b604080519115158252519081900360200190f35b6102ac6004803603604081101561052757600080fd5b8135919081019060408101602082013564010000000081111561054957600080fd5b82018360208201111561055b57600080fd5b8035906020019184600183028401116401000000008311171561057d57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506113c5945050505050565b6102ac6115ff565b6102ac600480360360408110156105dc57600080fd5b506001600160a01b03813516906020013561161a565b61027d611733565b6102d6611739565b6102d6611748565b61027d611757565b61027d61175d565b6001600160a01b038116600090815260166020908152604080832054601590925282205461069a919061068e90670de0b6b3a7640000906106829061066d90610661611351565b9063ffffffff61176316565b61067688611156565b9063ffffffff6117ac16565b9063ffffffff61180c16565b9063ffffffff61184e16565b92915050565b6000546001600160a01b031633146106f65760408051600160e51b62461bcd02815260206004820152600e6024820152600160901b6d6e6f7420676f7665726e616e636502604482015290519081900360640190fd5b601155565b60105481565b600d5481565b6003545b90565b62093a8081565b6000546001600160a01b031681565b6001546001600160a01b031681565b3361073c611351565b601055610747610f53565b600f556001600160a01b0381161561078e576107628161061a565b6001600160a01b0382166000908152601660209081526040808320939093556010546015909152919020555b600d544210610878576107b260646106826032600b546117ac90919063ffffffff16565b600b81905560085460408051600160e01b6340c10f190281523060048201526024810193909352516001600160a01b03909116916340c10f1991604480830192600092919082900301818387803b15801561080c57600080fd5b505af1158015610820573d6000803e3d6000fd5b5050600b5461083b9250905062093a8063ffffffff61180c16565b600e556108514262093a8063ffffffff61184e16565b600d55600b5460408051918252516000805160206123208339815191529181900360200190a15b600c5442116108c05760408051600160e51b62461bcd0281526020600482015260096024820152600160ba1b681b9bdd081cdd185c9d02604482015290519081900360640190fd5b8115156109175760408051600160e51b62461bcd02815260206004820152601160248201527f43616e6e6f742077697468647261772030000000000000000000000000000000604482015290519081900360640190fd5b610920826118ab565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b6009546001600160a01b031681565b6000546001600160a01b031633146109bf5760408051600160e51b62461bcd02815260206004820152600e6024820152600160901b6d6e6f7420676f7665726e616e636502604482015290519081900360640190fd5b60006109c9611351565b6010556109d4610f53565b600f556001600160a01b03811615610a1b576109ef8161061a565b6001600160a01b0382166000908152601660209081526040808320939093556010546015909152919020555b600854610a39906001600160a01b031633308563ffffffff611ac416565b600d544210610a5d57610a558262093a8063ffffffff61180c16565b600e55610aab565b600d54600090610a73904263ffffffff61176316565b90506000610a8c600e54836117ac90919063ffffffff16565b9050610aa562093a80610682868463ffffffff61184e16565b600e5550505b42600f819055610ac49062093a8063ffffffff61184e16565b600d556040805183815290516000805160206123208339815191529181900360200190a15050565b33610af5611351565b601055610b00610f53565b600f556001600160a01b03811615610b4757610b1b8161061a565b6001600160a01b0382166000908152601660209081526040808320939093556010546015909152919020555b600d544210610c3157610b6b60646106826032600b546117ac90919063ffffffff16565b600b81905560085460408051600160e01b6340c10f190281523060048201526024810193909352516001600160a01b03909116916340c10f1991604480830192600092919082900301818387803b158015610bc557600080fd5b505af1158015610bd9573d6000803e3d6000fd5b5050600b54610bf49250905062093a8063ffffffff61180c16565b600e55610c0a4262093a8063ffffffff61184e16565b600d55600b5460408051918252516000805160206123208339815191529181900360200190a15b600c544211610c795760408051600160e51b62461bcd0281526020600482015260096024820152600160ba1b681b9bdd081cdd185c9d02604482015290519081900360640190fd5b6000610c843361061a565b90508015610e82573360008181526016602090815260408083208390556002548151600160e01b6335380a55028152600481019590955260248501869052905192936001600160a01b03909116926335380a559260448084019391929182900301818787803b158015610cf657600080fd5b505af1158015610d0a573d6000803e3d6000fd5b505050506040513d6020811015610d2057600080fd5b505190508015610d4d57600254600854610d4d916001600160a01b0391821691168363ffffffff611b2716565b6000610d6a601354610682601154866117ac90919063ffffffff16565b90508015610d9557600954600854610d95916001600160a01b0391821691168363ffffffff611b2716565b6000610dab82610661868663ffffffff61176316565b601454336000908152601760205260408120549293509101421015610de857610de5601354610682601254856117ac90919063ffffffff16565b90505b8015610e2457600a54600854610e11916001600160a01b0391821691168363ffffffff611b2716565b610e21828263ffffffff61176316565b91505b8115610e4757600854610e47906001600160a01b0316338463ffffffff611b2716565b60408051838152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a2505050505b5050565b60125481565b60176020526000908152604090205481565b60156020526000908152604090205481565b600e5481565b600f5481565b6001600160a01b031660009081526004602052604090205490565b6008546001600160a01b031681565b6000546001600160a01b03163314610f3c5760408051600160e51b62461bcd02815260206004820152600e6024820152600160901b6d6e6f7420676f7665726e616e636502604482015290519081900360640190fd5b601255565b60166020526000908152604090205481565b6000610f6142600d54611cc9565b905090565b60135481565b6000546001600160a01b03163314610fc25760408051600160e51b62461bcd02815260206004820152600e6024820152600160901b6d6e6f7420676f7665726e616e636502604482015290519081900360640190fd5b601455565b60145481565b6000546001600160a01b031633146110235760408051600160e51b62461bcd02815260206004820152600e6024820152600160901b6d6e6f7420676f7665726e616e636502604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461109b5760408051600160e51b62461bcd02815260206004820152600e6024820152600160901b6d6e6f7420676f7665726e616e636502604482015290519081900360640190fd5b6001600160a01b03811615156110fb5760408051600160e51b62461bcd02815260206004820152601f60248201527f6e657720676f7665726e616e636520746865207a65726f206164647265737300604482015290519081900360640190fd5b600080546040516001600160a01b03808516939216917f5f56bee8cffbe9a78652a74a60705edede02af10b0bbb888ca44b79a0d42ce8091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b031660009081526006602052604090205490565b6000546001600160a01b031633146111c75760408051600160e51b62461bcd02815260206004820152600e6024820152600160901b6d6e6f7420676f7665726e616e636502604482015290519081900360640190fd5b60006111d1611351565b6010556111dc610f53565b600f556001600160a01b03811615611223576111f78161061a565b6001600160a01b0382166000908152601660209081526040808320939093556010546015909152919020555b60185460ff161561126f5760408051600160e51b62461bcd02815260206004820152600b6024820152600160aa1b6a1a185cc81cdd185c9d195902604482015290519081900360640190fd5b6018805460ff19166001179055600c829055600b546112979062093a8063ffffffff61180c16565b600e55600854600b5460408051600160e01b6340c10f190281523060048201526024810192909252516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b1580156112f357600080fd5b505af1158015611307573d6000803e3d6000fd5b5050600c54600f8190556113279250905062093a8063ffffffff61184e16565b600d55600b5460408051918252516000805160206123208339815191529181900360200190a15050565b600061135b6113a7565b151561136a575060105461070b565b610f616113986113786113a7565b610682670de0b6b3a7640000610676600e54610676600f54610661610f53565b6010549063ffffffff61184e16565b60055490565b600a546001600160a01b031681565b60185460ff1681565b336113ce611351565b6010556113d9610f53565b600f556001600160a01b03811615611420576113f48161061a565b6001600160a01b0382166000908152601660209081526040808320939093556010546015909152919020555b600d54421061150a5761144460646106826032600b546117ac90919063ffffffff16565b600b81905560085460408051600160e01b6340c10f190281523060048201526024810193909352516001600160a01b03909116916340c10f1991604480830192600092919082900301818387803b15801561149e57600080fd5b505af11580156114b2573d6000803e3d6000fd5b5050600b546114cd9250905062093a8063ffffffff61180c16565b600e556114e34262093a8063ffffffff61184e16565b600d55600b5460408051918252516000805160206123208339815191529181900360200190a15b600c5442116115525760408051600160e51b62461bcd0281526020600482015260096024820152600160ba1b681b9bdd081cdd185c9d02604482015290519081900360640190fd5b8215156115a95760408051600160e51b62461bcd02815260206004820152600e60248201527f43616e6e6f74207374616b652030000000000000000000000000000000000000604482015290519081900360640190fd5b6115b38383611cdf565b33600081815260176020908152604091829020429055815186815291517f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9281900390910190a2505050565b61161061160b33610ebc565b610733565b611618610aec565b565b6000546001600160a01b031633146116705760408051600160e51b62461bcd02815260206004820152600e6024820152600160901b6d6e6f7420676f7665726e616e636502604482015290519081900360640190fd5b6008546001600160a01b03838116911614156116c25760408051600160e51b62461bcd0281526020600482015260066024820152600160d21b651c995dd85c9902604482015290519081900360640190fd5b6001546001600160a01b03838116911614156117135760408051600160e51b62461bcd0281526020600482015260056024820152600160d81b647374616b6502604482015290519081900360640190fd5b600054610e82906001600160a01b0384811691168363ffffffff611b2716565b60115481565b6007546001600160a01b031681565b6002546001600160a01b031681565b600c5481565b600b5481565b60006117a583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612015565b9392505050565b60008215156117bd5750600061069a565b8282028284828115156117cc57fe5b04146117a557604051600160e51b62461bcd0281526004018080602001828103825260218152602001806123406021913960400191505060405180910390fd5b60006117a583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506120af565b6000828201838110156117a55760408051600160e51b62461bcd02815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b8015156118f15760408051600160e51b62461bcd0281526020600482015260096024820152600160bc1b680616d6f7574203e20302604482015290519081900360640190fd5b600354611904908263ffffffff61176316565b60035533600090815260046020526040902054611927908263ffffffff61176316565b336000908152600460205260409020556007546001600160a01b031615611a81573360009081526006602052604090205460055461196a9163ffffffff61176316565b60055560075460408051600160e01b63d96145510281523360048201526024810184905290516001600160a01b039092169163d96145519160448082019260009290919082900301818387803b1580156119c357600080fd5b505af11580156119d7573d6000803e3d6000fd5b505060075460408051600160e21b631776451f02815233600482015290516001600160a01b039092169350635dd9147c9250602480820192602092909190829003018186803b158015611a2957600080fd5b505afa158015611a3d573d6000803e3d6000fd5b505050506040513d6020811015611a5357600080fd5b5051336000908152600660205260409020819055600554611a799163ffffffff61184e16565b600555611aa4565b600354600555336000908152600460209081526040808320546006909252909120555b600154611ac1906001600160a01b0316338363ffffffff611b2716565b50565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b0316600160e01b6323b872dd02179052611b2190859061211c565b50505050565b604080518082018252601981527f7472616e7366657228616464726573732c75696e74323536290000000000000060209182015281516001600160a01b0385811660248301526044808301869052845180840390910181526064909201845291810180516001600160e01b0316600160e01b63a9059cbb021781529251815160009460609489169392918291908083835b60208310611bd75780518252601f199092019160209182019101611bb8565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611c39576040519150601f19603f3d011682016040523d82523d6000602084013e611c3e565b606091505b5091509150818015611c6c575080511580611c6c5750808060200190516020811015611c6957600080fd5b50515b1515611cc25760408051600160e51b62461bcd02815260206004820152601a60248201527f5361666545524332303a205452414e534645525f4641494c4544000000000000604482015290519081900360640190fd5b5050505050565b6000818310611cd857816117a5565b5090919050565b600354611cf2908363ffffffff61184e16565b60035533600090815260046020526040902054611d15908363ffffffff61184e16565b336000908152600460205260409020556007546001600160a01b031615611e6f5733600090815260066020526040902054600554611d589163ffffffff61176316565b60055560075460408051600160e31b631b4ac5530281523360048201526024810185905290516001600160a01b039092169163da562a989160448082019260009290919082900301818387803b158015611db157600080fd5b505af1158015611dc5573d6000803e3d6000fd5b505060075460408051600160e21b631776451f02815233600482015290516001600160a01b039092169350635dd9147c9250602480820192602092909190829003018186803b158015611e1757600080fd5b505afa158015611e2b573d6000803e3d6000fd5b505050506040513d6020811015611e4157600080fd5b5051336000908152600660205260409020819055600554611e679163ffffffff61184e16565b600555611e92565b600354600555336000908152600460209081526040808320546006909252909120555b600154611eb0906001600160a01b031633308563ffffffff611ac416565b60025460408051600160e01b63a526a92b02815233600482015290516001600160a01b039092169163a526a92b916024808201926020929091908290030181600087803b158015611f0057600080fd5b505af1158015611f14573d6000803e3d6000fd5b505050506040513d6020811015611f2a57600080fd5b50511515610e825760025460408051600160e01b63d66d14070281523360048201818152602483019384528551604484015285516001600160a01b039095169463d66d1407949293879391606490910190602085019080838360005b83811015611f9e578181015183820152602001611f86565b50505050905090810190601f168015611fcb5780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b158015611feb57600080fd5b505af1158015611fff573d6000803e3d6000fd5b505050506040513d6020811015611b2157600080fd5b600081848411156120a757604051600160e51b62461bcd0281526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561206c578181015183820152602001612054565b50505050905090810190601f1680156120995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183151561210457604051600160e51b62461bcd0281526004018080602001828103825283818151815260200191508051906020019080838360008381101561206c578181015183820152602001612054565b506000838581151561211257fe5b0495945050505050565b61212e826001600160a01b03166122e3565b15156121845760408051600160e51b62461bcd02815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106121c25780518252601f1990920191602091820191016121a3565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612224576040519150601f19603f3d011682016040523d82523d6000602084013e612229565b606091505b50915091508115156122855760408051600160e51b62461bcd02815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115611b21578080602001905160208110156122a157600080fd5b50511515611b2157604051600160e51b62461bcd02815260040180806020018281038252602a815260200180612361602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061231757508115155b94935050505056fede88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a165627a7a72305820692d0eccf245d1c3db90b572d99a139ff77bbdd4aa54d795c3ea5001493535960029
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.999916 | 5,255.571 | $5,255.13 |
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.