More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,092 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 15318609 | 830 days ago | IN | 0 ETH | 0.00158169 | ||||
Withdraw | 15218285 | 845 days ago | IN | 0 ETH | 0.00252358 | ||||
Withdraw | 15192058 | 849 days ago | IN | 0 ETH | 0.00126179 | ||||
Withdraw | 14989198 | 883 days ago | IN | 0 ETH | 0.00235948 | ||||
Withdraw | 14753938 | 922 days ago | IN | 0 ETH | 0.0100174 | ||||
Withdraw | 14552536 | 953 days ago | IN | 0 ETH | 0.00672955 | ||||
Withdraw | 14534985 | 956 days ago | IN | 0 ETH | 0.00504716 | ||||
Withdraw | 14534528 | 956 days ago | IN | 0 ETH | 0.00300841 | ||||
Withdraw | 14500463 | 961 days ago | IN | 0 ETH | 0.00372467 | ||||
Withdraw | 14346086 | 985 days ago | IN | 0 ETH | 0.00350497 | ||||
Withdraw | 13836578 | 1064 days ago | IN | 0 ETH | 0.00451261 | ||||
Withdraw | 13834806 | 1064 days ago | IN | 0 ETH | 0.00376051 | ||||
Withdraw | 13742976 | 1079 days ago | IN | 0 ETH | 0.01661005 | ||||
Withdraw | 13742484 | 1079 days ago | IN | 0 ETH | 0.00969377 | ||||
Withdraw | 13377346 | 1137 days ago | IN | 0 ETH | 0.0103623 | ||||
Withdraw | 13372337 | 1137 days ago | IN | 0 ETH | 0.01320358 | ||||
Withdraw | 13354085 | 1140 days ago | IN | 0 ETH | 0.0552384 | ||||
Withdraw | 13231329 | 1159 days ago | IN | 0 ETH | 0.01570228 | ||||
Withdraw | 13165801 | 1169 days ago | IN | 0 ETH | 0.00825469 | ||||
Withdraw | 13160276 | 1170 days ago | IN | 0 ETH | 0.03117049 | ||||
Withdraw | 13015912 | 1193 days ago | IN | 0 ETH | 0.00275771 | ||||
Withdraw | 12978886 | 1198 days ago | IN | 0 ETH | 0.00865144 | ||||
Withdraw | 12952436 | 1202 days ago | IN | 0 ETH | 0.00372467 | ||||
Withdraw | 12781515 | 1229 days ago | IN | 0 ETH | 0.00553668 | ||||
Withdraw | 12769011 | 1231 days ago | IN | 0 ETH | 0.0017135 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | ||||
---|---|---|---|---|---|---|---|
15318609 | 830 days ago | 0 ETH | |||||
15318609 | 830 days ago | 0 ETH | |||||
15318609 | 830 days ago | 0 ETH | |||||
15218285 | 845 days ago | 0 ETH | |||||
15218285 | 845 days ago | 0 ETH | |||||
15218285 | 845 days ago | 0 ETH | |||||
15192058 | 849 days ago | 0 ETH | |||||
15192058 | 849 days ago | 0 ETH | |||||
15192058 | 849 days ago | 0 ETH | |||||
14989198 | 883 days ago | 0 ETH | |||||
14989198 | 883 days ago | 0 ETH | |||||
14989198 | 883 days ago | 0 ETH | |||||
14753938 | 922 days ago | 0 ETH | |||||
14753938 | 922 days ago | 0 ETH | |||||
14753938 | 922 days ago | 0 ETH | |||||
14552536 | 953 days ago | 0 ETH | |||||
14552536 | 953 days ago | 0 ETH | |||||
14552536 | 953 days ago | 0 ETH | |||||
14534985 | 956 days ago | 0 ETH | |||||
14534985 | 956 days ago | 0 ETH | |||||
14534985 | 956 days ago | 0 ETH | |||||
14534528 | 956 days ago | 0 ETH | |||||
14500463 | 961 days ago | 0 ETH | |||||
14346086 | 985 days ago | 0 ETH | |||||
14346086 | 985 days ago | 0 ETH |
Loading...
Loading
Contract Name:
SimpleStakingProxy
Compiler Version
v0.5.14+commit.01f1aaa4
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-07-31 */ // File: openzeppelin-solidity/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-solidity/contracts/access/Roles.sol pragma solidity ^0.5.0; /** * @title Roles * @dev Library for managing addresses assigned to a Role. */ library Roles { struct Role { mapping (address => bool) bearer; } /** * @dev Give an account access to this role. */ function add(Role storage role, address account) internal { require(!has(role, account), "Roles: account already has role"); role.bearer[account] = true; } /** * @dev Remove an account's access to this role. */ function remove(Role storage role, address account) internal { require(has(role, account), "Roles: account does not have role"); role.bearer[account] = false; } /** * @dev Check if an account has this role. * @return bool */ function has(Role storage role, address account) internal view returns (bool) { require(account != address(0), "Roles: account is the zero address"); return role.bearer[account]; } } // File: openzeppelin-solidity/contracts/access/roles/PauserRole.sol pragma solidity ^0.5.0; contract PauserRole is Context { using Roles for Roles.Role; event PauserAdded(address indexed account); event PauserRemoved(address indexed account); Roles.Role private _pausers; constructor () internal { _addPauser(_msgSender()); } modifier onlyPauser() { require(isPauser(_msgSender()), "PauserRole: caller does not have the Pauser role"); _; } function isPauser(address account) public view returns (bool) { return _pausers.has(account); } function addPauser(address account) public onlyPauser { _addPauser(account); } function renouncePauser() public { _removePauser(_msgSender()); } function _addPauser(address account) internal { _pausers.add(account); emit PauserAdded(account); } function _removePauser(address account) internal { _pausers.remove(account); emit PauserRemoved(account); } } // File: openzeppelin-solidity/contracts/lifecycle/Pausable.sol pragma solidity ^0.5.0; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ contract Pausable is Context, PauserRole { /** * @dev Emitted when the pause is triggered by a pauser (`account`). */ event Paused(address account); /** * @dev Emitted when the pause is lifted by a pauser (`account`). */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. Assigns the Pauser role * to the deployer. */ constructor () internal { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. */ modifier whenNotPaused() { require(!_paused, "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. */ modifier whenPaused() { require(_paused, "Pausable: not paused"); _; } /** * @dev Called by a pauser to pause, triggers stopped state. */ function pause() public onlyPauser whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Called by a pauser to unpause, returns to normal state. */ function unpause() public onlyPauser whenPaused { _paused = false; emit Unpaused(_msgSender()); } } // File: openzeppelin-solidity/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-solidity/contracts/token/ERC20/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); /** * @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: openzeppelin-solidity/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. * * This test is non-exhaustive, and there may be false-negatives: during the * execution of a contract's constructor, its address will be reported as * not containing 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. */ function isContract(address account) internal view returns (bool) { // This method relies in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. // 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 != 0x0 && codehash != accountHash); } /** * @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: openzeppelin-solidity/contracts/token/ERC20/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; 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: openzeppelin-solidity/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 { _owner = _msgSender(); emit OwnershipTransferred(address(0), _owner); } /** * @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/Withdrawable.sol pragma solidity ^0.5.0; contract Withdrawable is Ownable { using SafeERC20 for IERC20; function adminWithdraw(address asset) onlyOwner public { uint amount = adminWitrawAllowed(asset); require(amount > 0, "admin witdraw not allowed"); if (asset == address(0)) { msg.sender.transfer(amount); } else { IERC20(asset).safeTransfer(msg.sender, amount); } } // can be overridden to disallow withdraw for some token function adminWitrawAllowed(address asset) internal view returns(uint allowedAmount) { allowedAmount = asset == address(0) ? address(this).balance : IERC20(asset).balanceOf(address(this)); } } // File: contracts/SimpleStaking.sol pragma solidity ^0.5.0; contract SimpleStaking is Withdrawable, Pausable { using SafeERC20 for IERC20; using SafeMath for uint; IERC20 public token; uint public stakingStart; uint public stakingEnd; uint public interestRate; uint constant interestRateUnit = 1e6; // uint public accruingDelta = 15 days; // uint public stakingStepTimespan; uint constant HUGE_TIME = 99999999999999999; uint public adminStopTime = HUGE_TIME; uint public accruingInterval; mapping (address => uint) public lockedAmount; mapping (address => uint) public alreadyWithdrawn; uint public totalLocked; uint public totalWithdrawn; uint public interestReserveBalance; event StakingUpdated(address indexed user, uint userLocked, uint remainingInterestReserve); event Withdraw(address investor, uint amount); constructor (address token_, uint start_, uint end_, uint accruingInterval_, uint rate_) public { token = IERC20(token_); require(end_ > start_, "end must be greater than start"); stakingStart = start_; stakingEnd = end_; require(rate_ > 0 && rate_ < interestRateUnit, "rate must be greater than 0 and lower than unit"); interestRate = rate_; require(accruingInterval_ > 0, "accruingInterval_ must be greater than 0"); require((end_ - start_) % accruingInterval_ == 0, "end time not alligned"); require(end_ - start_ >= accruingInterval_, "end - start must be greater than accruingInterval"); accruingInterval = accruingInterval_; } modifier afterStart() { require(stakingStart < now, "Only after start"); _; } modifier beforeStart() { require(now < stakingStart, "Only before start"); _; } function adminWitrawAllowed(address asset) internal view returns(uint) { if (asset != address(token)) { return super.adminWitrawAllowed(asset); } else { uint balance = token.balanceOf(address(this)); uint maxInterest = _getTotalInterestAmount(totalLocked); uint interest = adminStopTime == HUGE_TIME ? maxInterest : _getAccruedInterest(maxInterest, adminStopTime); uint reserved = totalLocked.add(interest).sub(totalWithdrawn); return reserved < balance ? balance - reserved : 0; } } function _min(uint a, uint b) private pure returns(uint) { return a < b ? a : b; } function _max(uint a, uint b) private pure returns(uint) { return a > b ? a : b; } function adminStop() public onlyOwner { require(adminStopTime == HUGE_TIME, "already admin stopped"); require(now < stakingEnd, "already ended"); adminStopTime = _max(now, stakingStart); } function _transferTokensFromSender(uint amount) private { require(amount > 0, "Invalid amount"); uint expectedBalance = token.balanceOf(address(this)).add(amount); token.safeTransferFrom(msg.sender, address(this), amount); require(token.balanceOf(address(this)) == expectedBalance, "Invalid balance after transfer"); } function addFundsForInterests(uint amount) public { _transferTokensFromSender(amount); interestReserveBalance = interestReserveBalance.add(amount); } function getAvailableStaking() external view returns(uint) { return now > stakingStart ? 0 : interestReserveBalance.mul(interestRateUnit).div(interestRate).add(interestRateUnit / interestRate).sub(1); } function _getTotalInterestAmount(uint investmentAmount) private view returns(uint) { return investmentAmount.mul(interestRate).div(interestRateUnit); } function getAccruedInterestNow(address user) public view returns(uint) { return getAccruedInterest(user, now); } function getAccruedInterest(address user, uint time) public view returns(uint) { uint totalInterest = _getTotalInterestAmount(lockedAmount[user]); return _getAccruedInterest(totalInterest, time); } function _getAccruedInterest(uint totalInterest, uint time) private view returns(uint) { if (time < stakingStart + accruingInterval) { return 0; } else if ( stakingEnd <= time && time < adminStopTime) { return totalInterest; } else { uint lockTimespanLength = stakingEnd - stakingStart; uint elapsed = _min(time, adminStopTime).sub(stakingStart).div(accruingInterval).mul(accruingInterval); return totalInterest.mul(elapsed).div(lockTimespanLength); } } function addStaking(uint amount) external whenNotPaused beforeStart { require(token.allowance(msg.sender, address(this)) >= amount, "Insufficient allowance"); uint interestAmount = _getTotalInterestAmount(amount); require(interestAmount <= interestReserveBalance, "No tokens available for interest"); _transferTokensFromSender(amount); interestReserveBalance = interestReserveBalance.sub(interestAmount); uint newLockedAmount = lockedAmount[msg.sender].add(amount); lockedAmount[msg.sender] = newLockedAmount; totalLocked = totalLocked.add(amount); emit StakingUpdated(msg.sender, newLockedAmount, interestReserveBalance); } function withdraw() external afterStart returns(uint) { uint locked = lockedAmount[msg.sender]; uint withdrawn = alreadyWithdrawn[msg.sender]; uint accruedInterest = getAccruedInterest(msg.sender, now); uint unlockedAmount = now < _min(stakingEnd, adminStopTime) ? 0 : locked; uint accrued = accruedInterest + unlockedAmount; require(accrued > withdrawn, "nothing to withdraw"); uint toTransfer = accrued.sub(withdrawn); alreadyWithdrawn[msg.sender] = withdrawn.add(toTransfer); totalWithdrawn = totalWithdrawn.add(toTransfer); token.safeTransfer(msg.sender, toTransfer); emit Withdraw(msg.sender, toTransfer); return toTransfer; } } // File: contracts/SimpleStakingProxy.sol pragma solidity ^0.5.0; contract SimpleStakingProxy is Withdrawable, Pausable { using SafeERC20 for IERC20; using SafeMath for uint; IERC20 public token; uint public stakingStart; uint public stakingEnd; uint public interestRate; uint constant interestRateUnit = 1e6; // uint public accruingDelta = 15 days; // uint public stakingStepTimespan; uint constant HUGE_TIME = 99999999999999999; uint public adminStopTime = HUGE_TIME; uint public accruingInterval; SimpleStaking public proxedStaking; mapping (address => uint) public _lockedAmount; mapping (address => uint) public _alreadyWithdrawn; uint public totalLocked; uint public totalWithdrawn; uint public interestReserveBalance; event StakingUpdated(address indexed user, uint userLocked, uint remainingInterestReserve); event Withdraw(address investor, uint amount); constructor (address token_, address staking_) public { token = IERC20(token_); proxedStaking = SimpleStaking(staking_); stakingStart = proxedStaking.stakingStart(); stakingEnd = proxedStaking.stakingEnd(); interestRate = proxedStaking.interestRate(); accruingInterval = proxedStaking.accruingInterval(); totalLocked = proxedStaking.totalLocked(); // totalWithdrawn = proxedStaking.totalWithdrawn(); require(proxedStaking.paused(), "proxed staking contract must be paused"); require(stakingEnd > stakingStart, "end must be greater than start"); require(interestRate > 0 && interestRate < interestRateUnit, "rate must be greater than 0 and lower than unit"); require(accruingInterval > 0, "accruingInterval_ must be greater than 0"); require((stakingEnd - stakingStart) % accruingInterval == 0, "end time not alligned"); require(stakingEnd - stakingStart >= accruingInterval, "end - start must be greater than accruingInterval"); } modifier afterStart() { require(stakingStart < now, "Only after start"); _; } modifier beforeStart() { require(now < stakingStart, "Only before start"); _; } function _min(uint a, uint b) private pure returns(uint) { return a < b ? a : b; } function _max(uint a, uint b) private pure returns(uint) { return a > b ? a : b; } function adminStop() public onlyOwner { require(adminStopTime == HUGE_TIME, "already admin stopped"); require(now < stakingEnd, "already ended"); adminStopTime = _max(now, stakingStart); } function lockedAmount(address user) public view returns(uint amount) { amount = _lockedAmount[user]; if (amount == 0) { amount = proxedStaking.lockedAmount(user); } } function alreadyWithdrawn(address user) public view returns(uint amount) { if (_lockedAmount[user] == 0) { amount = proxedStaking.alreadyWithdrawn(user); } else { amount = _alreadyWithdrawn[user]; } } function _fetchAmounts(address user) internal returns(uint locked, uint withdrawn) { locked = _lockedAmount[user]; withdrawn = _alreadyWithdrawn[user]; if (locked == 0) { locked = proxedStaking.lockedAmount(user); withdrawn = proxedStaking.alreadyWithdrawn(user); _lockedAmount[user] = locked; _alreadyWithdrawn[user] = withdrawn; } } function fetchAmounts(address[] memory users) public { for (uint i=0; i < users.length; i++) { _fetchAmounts(users[i]); } } event AdminStakingChanged(address user, uint oldLocked, uint oldWithdrawn, uint newLocked, uint newWithdrawn); function adminSetAmounts(address user, uint locked, uint withdrawn) public onlyOwner { (uint oldLocked, uint oldWithdrawn) = _fetchAmounts(msg.sender); _lockedAmount[user] = locked; _alreadyWithdrawn[user] = withdrawn; emit AdminStakingChanged(user, oldLocked, oldWithdrawn, locked, withdrawn); } function _transferTokensFromSender(uint amount) private { require(amount > 0, "Invalid amount"); uint expectedBalance = token.balanceOf(address(this)).add(amount); token.safeTransferFrom(msg.sender, address(this), amount); require(token.balanceOf(address(this)) == expectedBalance, "Invalid balance after transfer"); } function addFundsForInterests(uint amount) public { _transferTokensFromSender(amount); interestReserveBalance = interestReserveBalance.add(amount); } function getAvailableStaking() external view returns(uint) { return now > stakingStart ? 0 : interestReserveBalance.mul(interestRateUnit).div(interestRate).add(interestRateUnit / interestRate).sub(1); } function _getTotalInterestAmount(uint investmentAmount) private view returns(uint) { return investmentAmount.mul(interestRate).div(interestRateUnit); } function getAccruedInterestNow(address user) public view returns(uint) { return getAccruedInterest(user, now); } function getAccruedInterest(address user, uint time) public view returns(uint) { uint totalInterest = _getTotalInterestAmount(lockedAmount(user)); return _getAccruedInterest(totalInterest, time); } function _getAccruedInterest(uint totalInterest, uint time) private view returns(uint) { if (time < stakingStart + accruingInterval) { return 0; } else if ( stakingEnd <= time && time < adminStopTime) { return totalInterest; } else { uint lockTimespanLength = stakingEnd - stakingStart; uint elapsed = _min(time, adminStopTime).sub(stakingStart).div(accruingInterval).mul(accruingInterval); return totalInterest.mul(elapsed).div(lockTimespanLength); } } function addStaking(uint amount) external whenNotPaused beforeStart { require(token.allowance(msg.sender, address(this)) >= amount, "Insufficient allowance"); uint interestAmount = _getTotalInterestAmount(amount); require(interestAmount <= interestReserveBalance, "No tokens available for interest"); _transferTokensFromSender(amount); interestReserveBalance = interestReserveBalance.sub(interestAmount); (uint newLockedAmount, ) = _fetchAmounts(msg.sender); newLockedAmount = newLockedAmount.add(amount); _lockedAmount[msg.sender] = newLockedAmount; totalLocked = totalLocked.add(amount); emit StakingUpdated(msg.sender, newLockedAmount, interestReserveBalance); } function withdraw() external afterStart returns(uint) { (, uint withdrawn) = _fetchAmounts(msg.sender); uint accruedInterest = getAccruedInterest(msg.sender, now); // uint unlockedAmount = now < _min(stakingEnd, adminStopTime) ? 0 : locked; uint unlockedAmount = 0; // locked tokens managed by the DAO uint accrued = accruedInterest + unlockedAmount; require(accrued > withdrawn, "nothing to withdraw"); uint toTransfer = accrued.sub(withdrawn); _alreadyWithdrawn[msg.sender] = withdrawn.add(toTransfer); totalWithdrawn = totalWithdrawn.add(toTransfer); token.safeTransfer(msg.sender, toTransfer); emit Withdraw(msg.sender, toTransfer); return toTransfer; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"token_","type":"address"},{"internalType":"address","name":"staking_","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"oldLocked","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"oldWithdrawn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newLocked","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newWithdrawn","type":"uint256"}],"name":"AdminStakingChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"PauserAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"PauserRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"userLocked","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"remainingInterestReserve","type":"uint256"}],"name":"StakingUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"investor","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_alreadyWithdrawn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_lockedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"accruingInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"addFundsForInterests","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addPauser","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"addStaking","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"locked","type":"uint256"},{"internalType":"uint256","name":"withdrawn","type":"uint256"}],"name":"adminSetAmounts","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"adminStop","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"adminStopTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"adminWithdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"alreadyWithdrawn","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address[]","name":"users","type":"address[]"}],"name":"fetchAmounts","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"time","type":"uint256"}],"name":"getAccruedInterest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getAccruedInterestNow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getAvailableStaking","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"interestRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"interestReserveBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isPauser","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"lockedAmount","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"proxedStaking","outputs":[{"internalType":"contract SimpleStaking","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renouncePauser","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"stakingEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"stakingStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalLocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalWithdrawn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405267016345785d89ffff6006553480156200001d57600080fd5b506040516200271838038062002718833981810160405260408110156200004357600080fd5b5080516020909101516200005f6001600160e01b03620005a816565b600080546001600160a01b0319166001600160a01b03928316178082556040519216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3620000cd620000be6001600160e01b03620005a816565b6001600160e01b03620005ac16565b600280546001600160a81b0319166101006001600160a01b038581169190910291909117909155600880546001600160a01b031916838316179081905560408051636bb8d85360e11b81529051919092169163d771b0a6916004808301926020929190829003018186803b1580156200014557600080fd5b505afa1580156200015a573d6000803e3d6000fd5b505050506040513d60208110156200017157600080fd5b50516003556008546040805163517d041160e01b815290516001600160a01b039092169163517d041191600480820192602092909190829003018186803b158015620001bc57600080fd5b505afa158015620001d1573d6000803e3d6000fd5b505050506040513d6020811015620001e857600080fd5b5051600490815560085460408051637c3a00fd60e01b815290516001600160a01b0390921692637c3a00fd928282019260209290829003018186803b1580156200023157600080fd5b505afa15801562000246573d6000803e3d6000fd5b505050506040513d60208110156200025d57600080fd5b505160055560085460408051633e86b6e160e11b815290516001600160a01b0390921691637d0d6dc291600480820192602092909190829003018186803b158015620002a857600080fd5b505afa158015620002bd573d6000803e3d6000fd5b505050506040513d6020811015620002d457600080fd5b505160075560085460408051632b448a0960e11b815290516001600160a01b0390921691635689141291600480820192602092909190829003018186803b1580156200031f57600080fd5b505afa15801562000334573d6000803e3d6000fd5b505050506040513d60208110156200034b57600080fd5b5051600b5560085460408051635c975abb60e01b815290516001600160a01b0390921691635c975abb91600480820192602092909190829003018186803b1580156200039657600080fd5b505afa158015620003ab573d6000803e3d6000fd5b505050506040513d6020811015620003c257600080fd5b5051620004015760405162461bcd60e51b8152600401808060200182810382526026815260200180620026486026913960400191505060405180910390fd5b600354600454116200045a576040805162461bcd60e51b815260206004820152601e60248201527f656e64206d7573742062652067726561746572207468616e2073746172740000604482015290519081900360640190fd5b6000600554118015620004715750620f4240600554105b620004ae5760405162461bcd60e51b815260040180806020018281038252602f81526020018062002696602f913960400191505060405180910390fd5b600060075411620004f15760405162461bcd60e51b81526004018080602001828103825260288152602001806200266e6028913960400191505060405180910390fd5b60075460035460045403816200050357fe5b061562000557576040805162461bcd60e51b815260206004820152601560248201527f656e642074696d65206e6f7420616c6c69676e65640000000000000000000000604482015290519081900360640190fd5b600754600354600454031015620005a05760405162461bcd60e51b8152600401808060200182810382526031815260200180620026e76031913960400191505060405180910390fd5b5050620006f4565b3390565b620005c7816001620005fe60201b62001ce51790919060201c565b6040516001600160a01b038216907f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f890600090a250565b6200061382826001600160e01b036200068b16565b1562000666576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b60006001600160a01b038216620006d45760405162461bcd60e51b8152600401808060200182810382526022815260200180620026c56022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b611f4480620007046000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c806382dc1ec41161011a578063a28835b6116100ad578063d771b0a61161007c578063d771b0a614610510578063dcfcc93514610518578063f2fde38b14610520578063f52b3bb514610546578063fc0c546a1461057857610206565b8063a28835b61461047b578063bb66c596146104a1578063d0a3d6c8146104c7578063d4c825a7146104e457610206565b8063985d3ecc116100e9578063985d3ecc1461040a5780639aa2e39e146104275780639e673fbd1461044d578063a153e7081461045557610206565b806382dc1ec4146103cc5780638456cb59146103f25780638da5cb5b146103fa5780638f32d59b1461040257610206565b806346fbf68e1161019d5780635c975abb1161016c5780635c975abb146103a45780636ef8d66d146103ac578063715018a6146103b45780637c3a00fd146103bc5780637d0d6dc2146103c457610206565b806346fbf68e146103525780634b3197131461038c578063517d041114610394578063568914121461039c57610206565b80633d798877116101d95780633d798877146103165780633e4e8fd11461031e5780633f4ba83a1461034257806346e2c09a1461034a57610206565b806308de073a1461020b5780631074bbe5146102b05780632f50151a146102e85780633ccfd60b1461030e575b600080fd5b6102ae6004803603602081101561022157600080fd5b81019060208101813564010000000081111561023c57600080fd5b82018360208201111561024e57600080fd5b8035906020019184602083028401116401000000008311171561027057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610580945050505050565b005b6102d6600480360360208110156102c657600080fd5b50356001600160a01b03166105b6565b60408051918252519081900360200190f35b6102d6600480360360208110156102fe57600080fd5b50356001600160a01b03166105c8565b6102d66105dc565b6102d661073a565b6103266107ab565b604080516001600160a01b039092168252519081900360200190f35b6102ae6107ba565b6102d66108a3565b6103786004803603602081101561036857600080fd5b50356001600160a01b03166108a9565b604080519115158252519081900360200190f35b6102d66108bc565b6102d66108c2565b6102d66108c8565b6103786108ce565b6102ae6108d7565b6102ae6108e9565b6102d661097a565b6102d6610980565b6102ae600480360360208110156103e257600080fd5b50356001600160a01b0316610986565b6102ae6109d8565b610326610a9f565b610378610aae565b6102ae6004803603602081101561042057600080fd5b5035610ad2565b6102d66004803603602081101561043d57600080fd5b50356001600160a01b0316610af4565b6102ae610bad565b6102d66004803603602081101561046b57600080fd5b50356001600160a01b0316610ca1565b6102ae6004803603602081101561049157600080fd5b50356001600160a01b0316610d3e565b6102d6600480360360208110156104b757600080fd5b50356001600160a01b0316610e42565b6102ae600480360360208110156104dd57600080fd5b5035610e54565b6102d6600480360360408110156104fa57600080fd5b506001600160a01b0381351690602001356110c6565b6102d66110f0565b6102d66110f6565b6102ae6004803603602081101561053657600080fd5b50356001600160a01b03166110fc565b6102ae6004803603606081101561055c57600080fd5b506001600160a01b03813516906020810135906040013561114c565b61032661121f565b60005b81518110156105b2576105a882828151811061059b57fe5b6020026020010151611233565b5050600101610583565b5050565b60096020526000908152604090205481565b60006105d482426110c6565b90505b919050565b60004260035410610627576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e4818599d195c881cdd185c9d60821b604482015290519081900360640190fd5b600061063233611233565b915050600061064133426110c6565b9050600081838111610690576040805162461bcd60e51b81526020600482015260136024820152726e6f7468696e6720746f20776974686472617760681b604482015290519081900360640190fd5b60006106a2828663ffffffff61138116565b90506106b4858263ffffffff6113ca16565b336000908152600a6020526040902055600c546106d7908263ffffffff6113ca16565b600c556002546106f69061010090046001600160a01b03163383611424565b604080513381526020810183905281517f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364929181900390910190a194505050505090565b600060035442116107a35761079e6001610792600554620f42408161075b57fe5b0461078660055461077a620f4240600d5461147b90919063ffffffff16565b9063ffffffff6114d416565b9063ffffffff6113ca16565b9063ffffffff61138116565b6107a6565b60005b905090565b6008546001600160a01b031681565b6107ca6107c5611516565b6108a9565b6108055760405162461bcd60e51b8152600401808060200182810382526030815260200180611e0c6030913960400191505060405180910390fd5b60025460ff16610853576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610886611516565b604080516001600160a01b039092168252519081900360200190a1565b600d5481565b60006105d460018363ffffffff61151a16565b600c5481565b60045481565b600b5481565b60025460ff1690565b6108e76108e2611516565b611581565b565b6108f1610aae565b610930576040805162461bcd60e51b81526020600482018190526024820152600080516020611ea4833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60055481565b60075481565b6109916107c5611516565b6109cc5760405162461bcd60e51b8152600401808060200182810382526030815260200180611e0c6030913960400191505060405180910390fd5b6109d5816115c9565b50565b6109e36107c5611516565b610a1e5760405162461bcd60e51b8152600401808060200182810382526030815260200180611e0c6030913960400191505060405180910390fd5b60025460ff1615610a69576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610886611516565b6000546001600160a01b031690565b600080546001600160a01b0316610ac3611516565b6001600160a01b031614905090565b610adb81611611565b600d54610aee908263ffffffff6113ca16565b600d5550565b6001600160a01b038116600090815260096020526040812054610b915760085460408051634d5171cf60e11b81526001600160a01b03858116600483015291519190921691639aa2e39e916024808301926020929190829003018186803b158015610b5e57600080fd5b505afa158015610b72573d6000803e3d6000fd5b505050506040513d6020811015610b8857600080fd5b505190506105d7565b506001600160a01b03166000908152600a602052604090205490565b610bb5610aae565b610bf4576040805162461bcd60e51b81526020600482018190526024820152600080516020611ea4833981519152604482015290519081900360640190fd5b67016345785d89ffff60065414610c4a576040805162461bcd60e51b8152602060048201526015602482015274185b1c9958591e4818591b5a5b881cdd1bdc1c1959605a1b604482015290519081900360640190fd5b6004544210610c90576040805162461bcd60e51b815260206004820152600d60248201526c185b1c9958591e48195b991959609a1b604482015290519081900360640190fd5b610c9c426003546117d4565b600655565b6001600160a01b038116600090815260096020526040902054806105d7576008546040805163142a7ce160e31b81526001600160a01b0385811660048301529151919092169163a153e708916024808301926020929190829003018186803b158015610d0c57600080fd5b505afa158015610d20573d6000803e3d6000fd5b505050506040513d6020811015610d3657600080fd5b505192915050565b610d46610aae565b610d85576040805162461bcd60e51b81526020600482018190526024820152600080516020611ea4833981519152604482015290519081900360640190fd5b6000610d90826117ea565b905060008111610de7576040805162461bcd60e51b815260206004820152601960248201527f61646d696e2077697464726177206e6f7420616c6c6f77656400000000000000604482015290519081900360640190fd5b6001600160a01b038216610e2857604051339082156108fc029083906000818181858888f19350505050158015610e22573d6000803e3d6000fd5b506105b2565b6105b26001600160a01b038316338363ffffffff61142416565b600a6020526000908152604090205481565b60025460ff1615610e9f576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6003544210610ee9576040805162461bcd60e51b815260206004820152601160248201527013db9b1e481899599bdc99481cdd185c9d607a1b604482015290519081900360640190fd5b60025460408051636eb1769f60e11b81523360048201523060248201529051839261010090046001600160a01b03169163dd62ed3e916044808301926020929190829003018186803b158015610f3e57600080fd5b505afa158015610f52573d6000803e3d6000fd5b505050506040513d6020811015610f6857600080fd5b50511015610fb6576040805162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b604482015290519081900360640190fd5b6000610fc182611879565b9050600d5481111561101a576040805162461bcd60e51b815260206004820181905260248201527f4e6f20746f6b656e7320617661696c61626c6520666f7220696e746572657374604482015290519081900360640190fd5b61102382611611565b600d54611036908263ffffffff61138116565b600d55600061104433611233565b509050611057818463ffffffff6113ca16565b336000908152600960205260409020819055600b5490915061107f908463ffffffff6113ca16565b600b55600d54604080518381526020810192909252805133927f03735efedca16801cca0a49e574af289cc3f8c64b2e99a426e9a1ee724c8150692908290030190a2505050565b6000806110da6110d585610ca1565b611879565b90506110e68184611897565b9150505b92915050565b60035481565b60065481565b611104610aae565b611143576040805162461bcd60e51b81526020600482018190526024820152600080516020611ea4833981519152604482015290519081900360640190fd5b6109d581611924565b611154610aae565b611193576040805162461bcd60e51b81526020600482018190526024820152600080516020611ea4833981519152604482015290519081900360640190fd5b60008061119f33611233565b6001600160a01b03871660008181526009602090815260408083208a9055600a825291829020889055815192835282018490528181018390526060820188905260808201879052519294509092507fdd37faada21682836050d9de9d021e2acf341ebee9b26e4b54e523708a7a17a8919081900360a00190a15050505050565b60025461010090046001600160a01b031681565b6001600160a01b038116600090815260096020908152604080832054600a909252909120548161137c576008546040805163142a7ce160e31b81526001600160a01b0386811660048301529151919092169163a153e708916024808301926020929190829003018186803b1580156112aa57600080fd5b505afa1580156112be573d6000803e3d6000fd5b505050506040513d60208110156112d457600080fd5b505160085460408051634d5171cf60e11b81526001600160a01b0387811660048301529151939550911691639aa2e39e91602480820192602092909190829003018186803b15801561132557600080fd5b505afa158015611339573d6000803e3d6000fd5b505050506040513d602081101561134f57600080fd5b50516001600160a01b0384166000908152600960209081526040808320869055600a909152902081905590505b915091565b60006113c383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506119c4565b9392505050565b6000828201838110156113c3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611476908490611a5b565b505050565b60008261148a575060006110ea565b8282028284828161149757fe5b04146113c35760405162461bcd60e51b8152600401808060200182810382526021815260200180611e836021913960400191505060405180910390fd5b60006113c383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611c19565b3390565b60006001600160a01b0382166115615760405162461bcd60e51b8152600401808060200182810382526022815260200180611ec46022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b61159260018263ffffffff611c7e16565b6040516001600160a01b038216907fcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e90600090a250565b6115da60018263ffffffff611ce516565b6040516001600160a01b038216907f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f890600090a250565b60008111611657576040805162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b604482015290519081900360640190fd5b600254604080516370a0823160e01b815230600482015290516000926116e79285926101009092046001600160a01b0316916370a0823191602480820192602092909190829003018186803b1580156116af57600080fd5b505afa1580156116c3573d6000803e3d6000fd5b505050506040513d60208110156116d957600080fd5b50519063ffffffff6113ca16565b6002549091506117079061010090046001600160a01b0316333085611d66565b600254604080516370a0823160e01b81523060048201529051839261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561175657600080fd5b505afa15801561176a573d6000803e3d6000fd5b505050506040513d602081101561178057600080fd5b5051146105b2576040805162461bcd60e51b815260206004820152601e60248201527f496e76616c69642062616c616e6365206166746572207472616e736665720000604482015290519081900360640190fd5b60008183116117e357816113c3565b5090919050565b60006001600160a01b0382161561187257604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561184157600080fd5b505afa158015611855573d6000803e3d6000fd5b505050506040513d602081101561186b57600080fd5b50516105d4565b4792915050565b60006105d4620f424061077a6005548561147b90919063ffffffff16565b6000600754600354018210156118af575060006110ea565b81600454111580156118c2575060065482105b156118ce5750816110ea565b600060035460045403905060006119056007546118f960075461077a6003546107928a600654611dc0565b9063ffffffff61147b16565b905061191b8261077a878463ffffffff61147b16565b925050506110ea565b6001600160a01b0381166119695760405162461bcd60e51b8152600401808060200182810382526026815260200180611e3c6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008184841115611a535760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611a18578181015183820152602001611a00565b50505050905090810190601f168015611a455780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b611a6d826001600160a01b0316611dcf565b611abe576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310611afc5780518252601f199092019160209182019101611add565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611b5e576040519150601f19603f3d011682016040523d82523d6000602084013e611b63565b606091505b509150915081611bba576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115611c1357808060200190516020811015611bd657600080fd5b5051611c135760405162461bcd60e51b815260040180806020018281038252602a815260200180611ee6602a913960400191505060405180910390fd5b50505050565b60008183611c685760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611a18578181015183820152602001611a00565b506000838581611c7457fe5b0495945050505050565b611c88828261151a565b611cc35760405162461bcd60e51b8152600401808060200182810382526021815260200180611e626021913960400191505060405180910390fd5b6001600160a01b0316600090815260209190915260409020805460ff19169055565b611cef828261151a565b15611d41576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611c13908590611a5b565b60008183106117e357816113c3565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708115801590611e035750808214155b94935050505056fe506175736572526f6c653a2063616c6c657220646f6573206e6f742068617665207468652050617573657220726f6c654f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c65536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572526f6c65733a206163636f756e7420697320746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a723158202729e54cf68a1fbc92ea5b6586894e80f3a12838c57c37fbc9ee2621edeb1c1d64736f6c634300050e003270726f786564207374616b696e6720636f6e7472616374206d757374206265207061757365646163637275696e67496e74657276616c5f206d7573742062652067726561746572207468616e203072617465206d7573742062652067726561746572207468616e203020616e64206c6f776572207468616e20756e6974526f6c65733a206163636f756e7420697320746865207a65726f2061646472657373656e64202d207374617274206d7573742062652067726561746572207468616e206163637275696e67496e74657276616c00000000000000000000000089ab32156e46f46d02ade3fecbe5fc4243b9aaed0000000000000000000000004bbea0ba8c493fb6820080c5544623b5f245d745
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102065760003560e01c806382dc1ec41161011a578063a28835b6116100ad578063d771b0a61161007c578063d771b0a614610510578063dcfcc93514610518578063f2fde38b14610520578063f52b3bb514610546578063fc0c546a1461057857610206565b8063a28835b61461047b578063bb66c596146104a1578063d0a3d6c8146104c7578063d4c825a7146104e457610206565b8063985d3ecc116100e9578063985d3ecc1461040a5780639aa2e39e146104275780639e673fbd1461044d578063a153e7081461045557610206565b806382dc1ec4146103cc5780638456cb59146103f25780638da5cb5b146103fa5780638f32d59b1461040257610206565b806346fbf68e1161019d5780635c975abb1161016c5780635c975abb146103a45780636ef8d66d146103ac578063715018a6146103b45780637c3a00fd146103bc5780637d0d6dc2146103c457610206565b806346fbf68e146103525780634b3197131461038c578063517d041114610394578063568914121461039c57610206565b80633d798877116101d95780633d798877146103165780633e4e8fd11461031e5780633f4ba83a1461034257806346e2c09a1461034a57610206565b806308de073a1461020b5780631074bbe5146102b05780632f50151a146102e85780633ccfd60b1461030e575b600080fd5b6102ae6004803603602081101561022157600080fd5b81019060208101813564010000000081111561023c57600080fd5b82018360208201111561024e57600080fd5b8035906020019184602083028401116401000000008311171561027057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610580945050505050565b005b6102d6600480360360208110156102c657600080fd5b50356001600160a01b03166105b6565b60408051918252519081900360200190f35b6102d6600480360360208110156102fe57600080fd5b50356001600160a01b03166105c8565b6102d66105dc565b6102d661073a565b6103266107ab565b604080516001600160a01b039092168252519081900360200190f35b6102ae6107ba565b6102d66108a3565b6103786004803603602081101561036857600080fd5b50356001600160a01b03166108a9565b604080519115158252519081900360200190f35b6102d66108bc565b6102d66108c2565b6102d66108c8565b6103786108ce565b6102ae6108d7565b6102ae6108e9565b6102d661097a565b6102d6610980565b6102ae600480360360208110156103e257600080fd5b50356001600160a01b0316610986565b6102ae6109d8565b610326610a9f565b610378610aae565b6102ae6004803603602081101561042057600080fd5b5035610ad2565b6102d66004803603602081101561043d57600080fd5b50356001600160a01b0316610af4565b6102ae610bad565b6102d66004803603602081101561046b57600080fd5b50356001600160a01b0316610ca1565b6102ae6004803603602081101561049157600080fd5b50356001600160a01b0316610d3e565b6102d6600480360360208110156104b757600080fd5b50356001600160a01b0316610e42565b6102ae600480360360208110156104dd57600080fd5b5035610e54565b6102d6600480360360408110156104fa57600080fd5b506001600160a01b0381351690602001356110c6565b6102d66110f0565b6102d66110f6565b6102ae6004803603602081101561053657600080fd5b50356001600160a01b03166110fc565b6102ae6004803603606081101561055c57600080fd5b506001600160a01b03813516906020810135906040013561114c565b61032661121f565b60005b81518110156105b2576105a882828151811061059b57fe5b6020026020010151611233565b5050600101610583565b5050565b60096020526000908152604090205481565b60006105d482426110c6565b90505b919050565b60004260035410610627576040805162461bcd60e51b815260206004820152601060248201526f13db9b1e4818599d195c881cdd185c9d60821b604482015290519081900360640190fd5b600061063233611233565b915050600061064133426110c6565b9050600081838111610690576040805162461bcd60e51b81526020600482015260136024820152726e6f7468696e6720746f20776974686472617760681b604482015290519081900360640190fd5b60006106a2828663ffffffff61138116565b90506106b4858263ffffffff6113ca16565b336000908152600a6020526040902055600c546106d7908263ffffffff6113ca16565b600c556002546106f69061010090046001600160a01b03163383611424565b604080513381526020810183905281517f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364929181900390910190a194505050505090565b600060035442116107a35761079e6001610792600554620f42408161075b57fe5b0461078660055461077a620f4240600d5461147b90919063ffffffff16565b9063ffffffff6114d416565b9063ffffffff6113ca16565b9063ffffffff61138116565b6107a6565b60005b905090565b6008546001600160a01b031681565b6107ca6107c5611516565b6108a9565b6108055760405162461bcd60e51b8152600401808060200182810382526030815260200180611e0c6030913960400191505060405180910390fd5b60025460ff16610853576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610886611516565b604080516001600160a01b039092168252519081900360200190a1565b600d5481565b60006105d460018363ffffffff61151a16565b600c5481565b60045481565b600b5481565b60025460ff1690565b6108e76108e2611516565b611581565b565b6108f1610aae565b610930576040805162461bcd60e51b81526020600482018190526024820152600080516020611ea4833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60055481565b60075481565b6109916107c5611516565b6109cc5760405162461bcd60e51b8152600401808060200182810382526030815260200180611e0c6030913960400191505060405180910390fd5b6109d5816115c9565b50565b6109e36107c5611516565b610a1e5760405162461bcd60e51b8152600401808060200182810382526030815260200180611e0c6030913960400191505060405180910390fd5b60025460ff1615610a69576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610886611516565b6000546001600160a01b031690565b600080546001600160a01b0316610ac3611516565b6001600160a01b031614905090565b610adb81611611565b600d54610aee908263ffffffff6113ca16565b600d5550565b6001600160a01b038116600090815260096020526040812054610b915760085460408051634d5171cf60e11b81526001600160a01b03858116600483015291519190921691639aa2e39e916024808301926020929190829003018186803b158015610b5e57600080fd5b505afa158015610b72573d6000803e3d6000fd5b505050506040513d6020811015610b8857600080fd5b505190506105d7565b506001600160a01b03166000908152600a602052604090205490565b610bb5610aae565b610bf4576040805162461bcd60e51b81526020600482018190526024820152600080516020611ea4833981519152604482015290519081900360640190fd5b67016345785d89ffff60065414610c4a576040805162461bcd60e51b8152602060048201526015602482015274185b1c9958591e4818591b5a5b881cdd1bdc1c1959605a1b604482015290519081900360640190fd5b6004544210610c90576040805162461bcd60e51b815260206004820152600d60248201526c185b1c9958591e48195b991959609a1b604482015290519081900360640190fd5b610c9c426003546117d4565b600655565b6001600160a01b038116600090815260096020526040902054806105d7576008546040805163142a7ce160e31b81526001600160a01b0385811660048301529151919092169163a153e708916024808301926020929190829003018186803b158015610d0c57600080fd5b505afa158015610d20573d6000803e3d6000fd5b505050506040513d6020811015610d3657600080fd5b505192915050565b610d46610aae565b610d85576040805162461bcd60e51b81526020600482018190526024820152600080516020611ea4833981519152604482015290519081900360640190fd5b6000610d90826117ea565b905060008111610de7576040805162461bcd60e51b815260206004820152601960248201527f61646d696e2077697464726177206e6f7420616c6c6f77656400000000000000604482015290519081900360640190fd5b6001600160a01b038216610e2857604051339082156108fc029083906000818181858888f19350505050158015610e22573d6000803e3d6000fd5b506105b2565b6105b26001600160a01b038316338363ffffffff61142416565b600a6020526000908152604090205481565b60025460ff1615610e9f576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6003544210610ee9576040805162461bcd60e51b815260206004820152601160248201527013db9b1e481899599bdc99481cdd185c9d607a1b604482015290519081900360640190fd5b60025460408051636eb1769f60e11b81523360048201523060248201529051839261010090046001600160a01b03169163dd62ed3e916044808301926020929190829003018186803b158015610f3e57600080fd5b505afa158015610f52573d6000803e3d6000fd5b505050506040513d6020811015610f6857600080fd5b50511015610fb6576040805162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b604482015290519081900360640190fd5b6000610fc182611879565b9050600d5481111561101a576040805162461bcd60e51b815260206004820181905260248201527f4e6f20746f6b656e7320617661696c61626c6520666f7220696e746572657374604482015290519081900360640190fd5b61102382611611565b600d54611036908263ffffffff61138116565b600d55600061104433611233565b509050611057818463ffffffff6113ca16565b336000908152600960205260409020819055600b5490915061107f908463ffffffff6113ca16565b600b55600d54604080518381526020810192909252805133927f03735efedca16801cca0a49e574af289cc3f8c64b2e99a426e9a1ee724c8150692908290030190a2505050565b6000806110da6110d585610ca1565b611879565b90506110e68184611897565b9150505b92915050565b60035481565b60065481565b611104610aae565b611143576040805162461bcd60e51b81526020600482018190526024820152600080516020611ea4833981519152604482015290519081900360640190fd5b6109d581611924565b611154610aae565b611193576040805162461bcd60e51b81526020600482018190526024820152600080516020611ea4833981519152604482015290519081900360640190fd5b60008061119f33611233565b6001600160a01b03871660008181526009602090815260408083208a9055600a825291829020889055815192835282018490528181018390526060820188905260808201879052519294509092507fdd37faada21682836050d9de9d021e2acf341ebee9b26e4b54e523708a7a17a8919081900360a00190a15050505050565b60025461010090046001600160a01b031681565b6001600160a01b038116600090815260096020908152604080832054600a909252909120548161137c576008546040805163142a7ce160e31b81526001600160a01b0386811660048301529151919092169163a153e708916024808301926020929190829003018186803b1580156112aa57600080fd5b505afa1580156112be573d6000803e3d6000fd5b505050506040513d60208110156112d457600080fd5b505160085460408051634d5171cf60e11b81526001600160a01b0387811660048301529151939550911691639aa2e39e91602480820192602092909190829003018186803b15801561132557600080fd5b505afa158015611339573d6000803e3d6000fd5b505050506040513d602081101561134f57600080fd5b50516001600160a01b0384166000908152600960209081526040808320869055600a909152902081905590505b915091565b60006113c383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506119c4565b9392505050565b6000828201838110156113c3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611476908490611a5b565b505050565b60008261148a575060006110ea565b8282028284828161149757fe5b04146113c35760405162461bcd60e51b8152600401808060200182810382526021815260200180611e836021913960400191505060405180910390fd5b60006113c383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611c19565b3390565b60006001600160a01b0382166115615760405162461bcd60e51b8152600401808060200182810382526022815260200180611ec46022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b61159260018263ffffffff611c7e16565b6040516001600160a01b038216907fcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e90600090a250565b6115da60018263ffffffff611ce516565b6040516001600160a01b038216907f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f890600090a250565b60008111611657576040805162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b604482015290519081900360640190fd5b600254604080516370a0823160e01b815230600482015290516000926116e79285926101009092046001600160a01b0316916370a0823191602480820192602092909190829003018186803b1580156116af57600080fd5b505afa1580156116c3573d6000803e3d6000fd5b505050506040513d60208110156116d957600080fd5b50519063ffffffff6113ca16565b6002549091506117079061010090046001600160a01b0316333085611d66565b600254604080516370a0823160e01b81523060048201529051839261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561175657600080fd5b505afa15801561176a573d6000803e3d6000fd5b505050506040513d602081101561178057600080fd5b5051146105b2576040805162461bcd60e51b815260206004820152601e60248201527f496e76616c69642062616c616e6365206166746572207472616e736665720000604482015290519081900360640190fd5b60008183116117e357816113c3565b5090919050565b60006001600160a01b0382161561187257604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561184157600080fd5b505afa158015611855573d6000803e3d6000fd5b505050506040513d602081101561186b57600080fd5b50516105d4565b4792915050565b60006105d4620f424061077a6005548561147b90919063ffffffff16565b6000600754600354018210156118af575060006110ea565b81600454111580156118c2575060065482105b156118ce5750816110ea565b600060035460045403905060006119056007546118f960075461077a6003546107928a600654611dc0565b9063ffffffff61147b16565b905061191b8261077a878463ffffffff61147b16565b925050506110ea565b6001600160a01b0381166119695760405162461bcd60e51b8152600401808060200182810382526026815260200180611e3c6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008184841115611a535760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611a18578181015183820152602001611a00565b50505050905090810190601f168015611a455780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b611a6d826001600160a01b0316611dcf565b611abe576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310611afc5780518252601f199092019160209182019101611add565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611b5e576040519150601f19603f3d011682016040523d82523d6000602084013e611b63565b606091505b509150915081611bba576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115611c1357808060200190516020811015611bd657600080fd5b5051611c135760405162461bcd60e51b815260040180806020018281038252602a815260200180611ee6602a913960400191505060405180910390fd5b50505050565b60008183611c685760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611a18578181015183820152602001611a00565b506000838581611c7457fe5b0495945050505050565b611c88828261151a565b611cc35760405162461bcd60e51b8152600401808060200182810382526021815260200180611e626021913960400191505060405180910390fd5b6001600160a01b0316600090815260209190915260409020805460ff19169055565b611cef828261151a565b15611d41576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611c13908590611a5b565b60008183106117e357816113c3565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708115801590611e035750808214155b94935050505056fe506175736572526f6c653a2063616c6c657220646f6573206e6f742068617665207468652050617573657220726f6c654f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c65536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572526f6c65733a206163636f756e7420697320746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a723158202729e54cf68a1fbc92ea5b6586894e80f3a12838c57c37fbc9ee2621edeb1c1d64736f6c634300050e0032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000089ab32156e46f46d02ade3fecbe5fc4243b9aaed0000000000000000000000004bbea0ba8c493fb6820080c5544623b5f245d745
-----Decoded View---------------
Arg [0] : token_ (address): 0x89Ab32156e46F46D02ade3FEcbe5Fc4243B9AAeD
Arg [1] : staking_ (address): 0x4BbEA0bA8c493Fb6820080C5544623b5f245D745
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000089ab32156e46f46d02ade3fecbe5fc4243b9aaed
Arg [1] : 0000000000000000000000004bbea0ba8c493fb6820080c5544623b5f245d745
Deployed Bytecode Sourcemap
30140:7140:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;30140:7140:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33441:143;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;33441:143:0;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;33441:143:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;33441:143:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;33441:143:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;33441:143:0;;-1:-1:-1;33441:143:0;;-1:-1:-1;;;;;33441:143:0:i;:::-;;30654:46;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;30654:46:0;-1:-1:-1;;;;;30654:46:0;;:::i;:::-;;;;;;;;;;;;;;;;34937:120;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;34937:120:0;-1:-1:-1;;;;;34937:120:0;;:::i;36539:738::-;;;:::i;34546:220::-;;;:::i;30615:34::-;;;:::i;:::-;;;;-1:-1:-1;;;;;30615:34:0;;;;;;;;;;;;;;5347:120;;;:::i;30821:34::-;;;:::i;2818:109::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2818:109:0;-1:-1:-1;;;;;2818:109:0;;:::i;:::-;;;;;;;;;;;;;;;;;;30788:26;;;:::i;30313:22::-;;;:::i;30760:23::-;;;:::i;4554:78::-;;;:::i;3035:79::-;;;:::i;22578:140::-;;;:::i;30340:24::-;;;:::i;30580:28::-;;;:::i;2935:92::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2935:92:0;-1:-1:-1;;;;;2935:92:0;;:::i;5134:118::-;;;:::i;21767:79::-;;;:::i;22133:94::-;;;:::i;34378:162::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;34378:162:0;;:::i;32812:232::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32812:232:0;-1:-1:-1;;;;;32812:232:0;;:::i;32403:206::-;;;:::i;32615:191::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32615:191:0;-1:-1:-1;;;;;32615:191:0;;:::i;23471:340::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23471:340:0;-1:-1:-1;;;;;23471:340:0;;:::i;30705:50::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;30705:50:0;-1:-1:-1;;;;;30705:50:0;;:::i;35796:737::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;35796:737:0;;:::i;35063:210::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;35063:210:0;;;;;;;;:::i;30284:24::-;;;:::i;30538:37::-;;;:::i;22873:109::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22873:109:0;-1:-1:-1;;;;;22873:109:0;;:::i;33706:319::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;33706:319:0;;;;;;;;;;;;;:::i;30260:19::-;;;:::i;33441:143::-;33506:6;33501:78;33520:5;:12;33516:1;:16;33501:78;;;33548:23;33562:5;33568:1;33562:8;;;;;;;;;;;;;;33548:13;:23::i;:::-;-1:-1:-1;;33534:3:0;;33501:78;;;;33441:143;:::o;30654:46::-;;;;;;;;;;;;;:::o;34937:120::-;35002:4;35022:29;35041:4;35047:3;35022:18;:29::i;:::-;35015:36;;34937:120;;;;:::o;36539:738::-;36597:4;32069:3;32054:12;;:18;32046:47;;;;;-1:-1:-1;;;32046:47:0;;;;;;;;;;;;-1:-1:-1;;;32046:47:0;;;;;;;;;;;;;;;36616:14;36634:25;36648:10;36634:13;:25::i;:::-;36613:46;;;36666:20;36689:35;36708:10;36720:3;36689:18;:35::i;:::-;36666:58;-1:-1:-1;36812:19:0;36666:58;36942:19;;;36934:51;;;;;-1:-1:-1;;;36934:51:0;;;;;;;;;;;;-1:-1:-1;;;36934:51:0;;;;;;;;;;;;;;;36992:15;37010:22;:7;37022:9;37010:22;:11;:22;:::i;:::-;36992:40;-1:-1:-1;37073:25:0;:9;36992:40;37073:25;:13;:25;:::i;:::-;37059:10;37041:29;;;;:17;:29;;;;;:57;37122:14;;:30;;37141:10;37122:30;:18;:30;:::i;:::-;37105:14;:47;37159:5;;:42;;:5;;;-1:-1:-1;;;;;37159:5:0;37178:10;37190;37159:18;:42::i;:::-;37213:32;;;37222:10;37213:32;;;;;;;;;;;;;;;;;;;;;37261:10;-1:-1:-1;;;;;36539:738:0;:::o;34546:220::-;34599:4;34625:12;;34619:3;:18;:141;;34654:106;34758:1;34654:99;34740:12;;30402:3;34721:31;;;;;;34654:62;34703:12;;34654:44;30402:3;34654:22;;:26;;:44;;;;:::i;:::-;:48;:62;:48;:62;:::i;:::-;:66;:99;:66;:99;:::i;:::-;:103;:106;:103;:106;:::i;:::-;34619:141;;;34645:1;34619:141;34612:148;;34546:220;:::o;30615:34::-;;;-1:-1:-1;;;;;30615:34:0;;:::o;5347:120::-;2715:22;2724:12;:10;:12::i;:::-;2715:8;:22::i;:::-;2707:83;;;;-1:-1:-1;;;2707:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4990:7;;;;4982:40;;;;;-1:-1:-1;;;4982:40:0;;;;;;;;;;;;-1:-1:-1;;;4982:40:0;;;;;;;;;;;;;;;5406:7;:15;;-1:-1:-1;;5406:15:0;;;5437:22;5446:12;:10;:12::i;:::-;5437:22;;;-1:-1:-1;;;;;5437:22:0;;;;;;;;;;;;;;5347:120::o;30821:34::-;;;;:::o;2818:109::-;2874:4;2898:21;:8;2911:7;2898:21;:12;:21;:::i;30788:26::-;;;;:::o;30313:22::-;;;;:::o;30760:23::-;;;;:::o;4554:78::-;4617:7;;;;4554:78;:::o;3035:79::-;3079:27;3093:12;:10;:12::i;:::-;3079:13;:27::i;:::-;3035:79::o;22578:140::-;21979:9;:7;:9::i;:::-;21971:54;;;;;-1:-1:-1;;;21971:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21971:54:0;;;;;;;;;;;;;;;22677:1;22661:6;;22640:40;;-1:-1:-1;;;;;22661:6:0;;;;22640:40;;22677:1;;22640:40;22708:1;22691:19;;-1:-1:-1;;;;;;22691:19:0;;;22578:140::o;30340:24::-;;;;:::o;30580:28::-;;;;:::o;2935:92::-;2715:22;2724:12;:10;:12::i;2715:22::-;2707:83;;;;-1:-1:-1;;;2707:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3000:19;3011:7;3000:10;:19::i;:::-;2935:92;:::o;5134:118::-;2715:22;2724:12;:10;:12::i;2715:22::-;2707:83;;;;-1:-1:-1;;;2707:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4791:7;;;;4790:8;4782:37;;;;;-1:-1:-1;;;4782:37:0;;;;;;;;;;;;-1:-1:-1;;;4782:37:0;;;;;;;;;;;;;;;5194:7;:14;;-1:-1:-1;;5194:14:0;5204:4;5194:14;;;5224:20;5231:12;:10;:12::i;21767:79::-;21805:7;21832:6;-1:-1:-1;;;;;21832:6:0;21767:79;:::o;22133:94::-;22173:4;22213:6;;-1:-1:-1;;;;;22213:6:0;22197:12;:10;:12::i;:::-;-1:-1:-1;;;;;22197:22:0;;22190:29;;22133:94;:::o;34378:162::-;34435:33;34461:6;34435:25;:33::i;:::-;34500:22;;:34;;34527:6;34500:34;:26;:34;:::i;:::-;34475:22;:59;-1:-1:-1;34378:162:0:o;32812:232::-;-1:-1:-1;;;;;32896:19:0;;32872:11;32896:19;;;:13;:19;;;;;;32892:147;;32940:13;;:36;;;-1:-1:-1;;;32940:36:0;;-1:-1:-1;;;;;32940:36:0;;;;;;;;;:13;;;;;:30;;:36;;;;;;;;;;;;;;:13;:36;;;5:2:-1;;;;30:1;27;20:12;5:2;32940:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;32940:36:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32940:36:0;;-1:-1:-1;32892:147:0;;;-1:-1:-1;;;;;;33008:23:0;;;;;:17;:23;;;;;;;32812:232::o;32403:206::-;21979:9;:7;:9::i;:::-;21971:54;;;;;-1:-1:-1;;;21971:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21971:54:0;;;;;;;;;;;;;;;30516:17;32456:13;;:26;32448:60;;;;;-1:-1:-1;;;32448:60:0;;;;;;;;;;;;-1:-1:-1;;;32448:60:0;;;;;;;;;;;;;;;32529:10;;32523:3;:16;32515:42;;;;;-1:-1:-1;;;32515:42:0;;;;;;;;;;;;-1:-1:-1;;;32515:42:0;;;;;;;;;;;;;;;32580:23;32585:3;32590:12;;32580:4;:23::i;:::-;32564:13;:39;32403:206::o;32615:191::-;-1:-1:-1;;;;;32700:19:0;;32671:11;32700:19;;;:13;:19;;;;;;32730:11;32726:75;;32761:13;;:32;;;-1:-1:-1;;;32761:32:0;;-1:-1:-1;;;;;32761:32:0;;;;;;;;;:13;;;;;:26;;:32;;;;;;;;;;;;;;:13;:32;;;5:2:-1;;;;30:1;27;20:12;5:2;32761:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;32761:32:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32761:32:0;;32615:191;-1:-1:-1;;32615:191:0:o;23471:340::-;21979:9;:7;:9::i;:::-;21971:54;;;;;-1:-1:-1;;;21971:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21971:54:0;;;;;;;;;;;;;;;23537:11;23551:25;23570:5;23551:18;:25::i;:::-;23537:39;;23604:1;23595:6;:10;23587:48;;;;;-1:-1:-1;;;23587:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;23650:19:0;;23646:158;;23686:27;;:10;;:27;;;;;23706:6;;23686:27;;;;23706:6;23686:10;:27;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;23686:27:0;23646:158;;;23746:46;-1:-1:-1;;;;;23746:26:0;;23773:10;23785:6;23746:46;:26;:46;:::i;30705:50::-;;;;;;;;;;;;;:::o;35796:737::-;4791:7;;;;4790:8;4782:37;;;;;-1:-1:-1;;;4782:37:0;;;;;;;;;;;;-1:-1:-1;;;4782:37:0;;;;;;;;;;;;;;;32157:12;;32151:3;:18;32143:48;;;;;-1:-1:-1;;;32143:48:0;;;;;;;;;;;;-1:-1:-1;;;32143:48:0;;;;;;;;;;;;;;;35892:5;;:42;;;-1:-1:-1;;;35892:42:0;;35908:10;35892:42;;;;35928:4;35892:42;;;;;;35938:6;;35892:5;;;-1:-1:-1;;;;;35892:5:0;;:15;;:42;;;;;;;;;;;;;;:5;:42;;;5:2:-1;;;;30:1;27;20:12;5:2;35892:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;35892:42:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;35892:42:0;:52;;35884:87;;;;;-1:-1:-1;;;35884:87:0;;;;;;;;;;;;-1:-1:-1;;;35884:87:0;;;;;;;;;;;;;;;35978:19;36000:31;36024:6;36000:23;:31::i;:::-;35978:53;;36064:22;;36046:14;:40;;36038:85;;;;;-1:-1:-1;;;36038:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36132:33;36158:6;36132:25;:33::i;:::-;36197:22;;:42;;36224:14;36197:42;:26;:42;:::i;:::-;36172:22;:67;36249:20;36275:25;36289:10;36275:13;:25::i;:::-;-1:-1:-1;36248:52:0;-1:-1:-1;36325:27:0;36248:52;36345:6;36325:27;:19;:27;:::i;:::-;36373:10;36359:25;;;;:13;:25;;;;;:43;;;36423:11;;36307:45;;-1:-1:-1;36423:23:0;;36439:6;36423:23;:15;:23;:::i;:::-;36409:11;:37;36504:22;;36460:67;;;;;;;;;;;;;;;36475:10;;36460:67;;;;;;;;;32198:1;;35796:737;:::o;35063:210::-;35136:4;35149:18;35170:43;35194:18;35207:4;35194:12;:18::i;:::-;35170:23;:43::i;:::-;35149:64;;35227:40;35247:13;35262:4;35227:19;:40::i;:::-;35220:47;;;35063:210;;;;;:::o;30284:24::-;;;;:::o;30538:37::-;;;;:::o;22873:109::-;21979:9;:7;:9::i;:::-;21971:54;;;;;-1:-1:-1;;;21971:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21971:54:0;;;;;;;;;;;;;;;22946:28;22965:8;22946:18;:28::i;33706:319::-;21979:9;:7;:9::i;:::-;21971:54;;;;;-1:-1:-1;;;21971:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21971:54:0;;;;;;;;;;;;;;;33799:14;33815:17;33836:25;33850:10;33836:13;:25::i;:::-;-1:-1:-1;;;;;33868:19:0;;;;;;:13;:19;;;;;;;;:28;;;33903:17;:23;;;;;;:35;;;33950:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33798:63;;-1:-1:-1;33798:63:0;;-1:-1:-1;33950:69:0;;;;;;;;;;22036:1;;33706:319;;;:::o;30260:19::-;;;;;;-1:-1:-1;;;;;30260:19:0;;:::o;33050:385::-;-1:-1:-1;;;;;33149:19:0;;33104:11;33149:19;;;:13;:19;;;;;;;;;33187:17;:23;;;;;;;33221:11;33217:213;;33252:13;;:32;;;-1:-1:-1;;;33252:32:0;;-1:-1:-1;;;;;33252:32:0;;;;;;;;;:13;;;;;:26;;:32;;;;;;;;;;;;;;:13;:32;;;5:2:-1;;;;30:1;27;20:12;5:2;33252:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;33252:32:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;33252:32:0;33305:13;;:36;;;-1:-1:-1;;;33305:36:0;;-1:-1:-1;;;;;33305:36:0;;;;;;;;;33252:32;;-1:-1:-1;33305:13:0;;;:30;;:36;;;;;33252:32;;33305:36;;;;;;;;:13;:36;;;5:2:-1;;;;30:1;27;20:12;5:2;33305:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;33305:36:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;33305:36:0;-1:-1:-1;;;;;33350:19:0;;;;;;:13;33305:36;33350:19;;;;;;;:28;;;33387:17;:23;;;;;:35;;;33305:36;-1:-1:-1;33217:213:0;33050:385;;;:::o;6851:136::-;6909:7;6936:43;6940:1;6943;6936:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;6929:50;6851:136;-1:-1:-1;;;6851:136:0:o;6395:181::-;6453:7;6485:5;;;6509:6;;;;6501:46;;;;;-1:-1:-1;;;6501:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;17686:176;17795:58;;;-1:-1:-1;;;;;17795:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;17795:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;17769:85:0;;17788:5;;17769:18;:85::i;:::-;17686:176;;;:::o;7767:471::-;7825:7;8070:6;8066:47;;-1:-1:-1;8100:1:0;8093:8;;8066:47;8137:5;;;8141:1;8137;:5;:1;8161:5;;;;;:10;8153:56;;;;-1:-1:-1;;;8153:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8706:132;8764:7;8791:39;8795:1;8798;8791:39;;;;;;;;;;;;;;;;;:3;:39::i;866:98::-;946:10;866:98;:::o;2075:203::-;2147:4;-1:-1:-1;;;;;2172:21:0;;2164:68;;;;-1:-1:-1;;;2164:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;2250:20:0;:11;:20;;;;;;;;;;;;;;;2075:203::o;3252:130::-;3312:24;:8;3328:7;3312:24;:15;:24;:::i;:::-;3352:22;;-1:-1:-1;;;;;3352:22:0;;;;;;;;3252:130;:::o;3122:122::-;3179:21;:8;3192:7;3179:21;:12;:21;:::i;:::-;3216:20;;-1:-1:-1;;;;;3216:20:0;;;;;;;;3122:122;:::o;34031:341::-;34111:1;34102:6;:10;34094:37;;;;;-1:-1:-1;;;34094:37:0;;;;;;;;;;;;-1:-1:-1;;;34094:37:0;;;;;;;;;;;;;;;34161:5;;:30;;;-1:-1:-1;;;34161:30:0;;34185:4;34161:30;;;;;;-1:-1:-1;;34161:42:0;;34196:6;;34161:5;;;;-1:-1:-1;;;;;34161:5:0;;:15;;:30;;;;;;;;;;;;;;;:5;:30;;;5:2:-1;;;;30:1;27;20:12;5:2;34161:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;34161:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;34161:30:0;;:42;:34;:42;:::i;:::-;34210:5;;34138:65;;-1:-1:-1;34210:57:0;;:5;;;-1:-1:-1;;;;;34210:5:0;34233:10;34253:4;34260:6;34210:22;:57::i;:::-;34282:5;;:30;;;-1:-1:-1;;;34282:30:0;;34306:4;34282:30;;;;;;34316:15;;34282:5;;;-1:-1:-1;;;;;34282:5:0;;:15;;:30;;;;;;;;;;;;;;:5;:30;;;5:2:-1;;;;30:1;27;20:12;5:2;34282:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;34282:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;34282:30:0;:49;34274:92;;;;;-1:-1:-1;;;34274:92:0;;;;;;;;;;;;;;;;;;;;;;;;;;;32307:90;32358:4;32382:1;32378;:5;:13;;32390:1;32378:13;;;-1:-1:-1;32386:1:0;;32307:90;-1:-1:-1;32307:90:0:o;23881:230::-;23946:18;-1:-1:-1;;;;;23993:19:0;;;:110;;24065:38;;;-1:-1:-1;;;24065:38:0;;24097:4;24065:38;;;;;;-1:-1:-1;;;;;24065:23:0;;;;;:38;;;;;;;;;;;;;;:23;:38;;;5:2:-1;;;;30:1;27;20:12;5:2;24065:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;24065:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24065:38:0;23993:110;;;24028:21;23977:126;23881:230;-1:-1:-1;;23881:230:0:o;34772:159::-;34849:4;34869:56;30402:3;34869:34;34890:12;;34869:16;:20;;:34;;;;:::i;35279:511::-;35360:4;35399:16;;35384:12;;:31;35377:4;:38;35373:412;;;-1:-1:-1;35433:1:0;35426:8;;35373:412;35467:4;35453:10;;:18;;:42;;;;;35482:13;;35475:4;:20;35453:42;35448:337;;;-1:-1:-1;35513:13:0;35506:20;;35448:337;35549:23;35588:12;;35575:10;;:25;35549:51;;35609:12;35624:87;35694:16;;35624:65;35672:16;;35624:43;35654:12;;35624:25;35629:4;35635:13;;35624:4;:25::i;:65::-;:69;:87;:69;:87;:::i;:::-;35609:102;-1:-1:-1;35727:50:0;35758:18;35727:26;:13;35609:102;35727:26;:17;:26;:::i;:50::-;35720:57;;;;;;23088:229;-1:-1:-1;;;;;23162:22:0;;23154:73;;;;-1:-1:-1;;;23154:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23264:6;;;23243:38;;-1:-1:-1;;;;;23243:38:0;;;;23264:6;;;23243:38;;;23292:6;:17;;-1:-1:-1;;;;;;23292:17:0;-1:-1:-1;;;;;23292:17:0;;;;;;;;;;23088:229::o;7324:192::-;7410:7;7446:12;7438:6;;;;7430:29;;;;-1:-1:-1;;;7430:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;7430:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;7482:5:0;;;7324:192::o;19725:1114::-;20329:27;20337:5;-1:-1:-1;;;;;20329:25:0;;:27::i;:::-;20321:71;;;;;-1:-1:-1;;;20321:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;20466:12;20480:23;20515:5;-1:-1:-1;;;;;20507:19:0;20527:4;20507:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;20507:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;20465:67:0;;;;20551:7;20543:52;;;;;-1:-1:-1;;;20543:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20612:17;;:21;20608:224;;20754:10;20743:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20743:30:0;20735:85;;;;-1:-1:-1;;;20735:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19725:1114;;;;:::o;9368:345::-;9454:7;9556:12;9549:5;9541:28;;;;-1:-1:-1;;;9541:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;9541:28:0;;9580:9;9596:1;9592;:5;;;;;;;9368:345;-1:-1:-1;;;;;9368:345:0:o;1797:183::-;1877:18;1881:4;1887:7;1877:3;:18::i;:::-;1869:64;;;;-1:-1:-1;;;1869:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1944:20:0;1967:5;1944:20;;;;;;;;;;;:28;;-1:-1:-1;;1944:28:0;;;1797:183::o;1539:178::-;1617:18;1621:4;1627:7;1617:3;:18::i;:::-;1616:19;1608:63;;;;;-1:-1:-1;;;1608:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1682:20:0;:11;:20;;;;;;;;;;;:27;;-1:-1:-1;;1682:27:0;1705:4;1682:27;;;1539:178::o;17870:204::-;17997:68;;;-1:-1:-1;;;;;17997:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;17997:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;17971:95:0;;17990:5;;17971:18;:95::i;32211:90::-;32262:4;32286:1;32282;:5;:13;;32294:1;32282:13;;14516:810;14576:4;15235:20;;15078:66;15275:15;;;;;:42;;;15306:11;15294:8;:23;;15275:42;15267:51;14516:810;-1:-1:-1;;;;14516:810:0:o
Swarm Source
bzzr://2729e54cf68a1fbc92ea5b6586894e80f3a12838c57c37fbc9ee2621edeb1c1d
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.00487 | 26,195.458 | $127.57 |
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.