Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 18571090 | 287 days ago | IN | 0 ETH | 0.21058994 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
StrikeStaking
Compiler Version
v0.5.16+commit.9c3226ce
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.5.16; pragma experimental ABIEncoderV2; import "./StrikeStakingProxy.sol"; import "../Lib/GSN/Context.sol"; import "../Lib/token/ERC20/IERC20.sol"; import "../Lib/token/ERC20/SafeERC20.sol"; import "../Lib/math/Math.sol"; import "../Lib/math/SafeMath.sol"; // Based on EPS's & Geist's MultiFeeDistribution contract StrikeStaking is StrikeStakingG1Storage { using SafeMath for uint256; using SafeERC20 for IERC20; modifier onlyOwner() { require(admin == msg.sender, "caller is not the admin"); _; } function owner() public view returns(address) { return admin; } /* ========== STATE VARIABLES ========== */ struct Reward { uint256 periodFinish; uint256 rewardRate; uint256 lastUpdateTime; uint256 rewardPerTokenStored; } struct Balances { uint256 total; uint256 unlocked; uint256 locked; uint256 earned; } struct LockedBalance { uint256 amount; uint256 unlockTime; } struct RewardData { address token; uint256 amount; } IERC20 public stakingToken; address[] public rewardTokens; mapping(address => Reward) public rewardData; // Duration that rewards are streamed over uint256 public constant rewardsDuration = 86400 * 14; // 2 weeks // Duration of lock/earned penalty period uint256 public constant lockDuration = rewardsDuration * 6; // 12 weeks // Duration of lock/earned group period uint256 public constant groupDuration = 86400 * 7; // 1 weeks // Addresses approved to call mint mapping(address => bool) public minters; address[] public mintersArray; // reward token -> distributor -> is approved to add rewards mapping(address => mapping(address => bool)) public rewardDistributors; // user -> reward token -> amount mapping(address => mapping(address => uint256)) public userRewardPerTokenPaid; mapping(address => mapping(address => uint256)) public rewards; uint256 public totalSupply; uint256 public lockedSupply; // Private mappings for balance data mapping(address => Balances) private balances; mapping(address => LockedBalance[]) private userLocks; mapping(address => LockedBalance[]) private userEarnings; bool private _notEntered; uint256 public constant QUART = 25000; // 25% uint256 public constant HALF = 65000; // 65% uint256 public constant WHOLE = 100000; // 100% /** * @notice Emitted when pendingAdmin is changed */ event NewPendingAdmin(address oldPendingAdmin, address newPendingAdmin); /** * @notice Emitted when pendingAdmin is accepted, which means admin is updated */ event NewAdmin(address oldAdmin, address newAdmin); /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_notEntered, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _notEntered = false; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _notEntered = true; } /** * @dev Prevents blacklisted users from calling the contract. */ modifier nonBlacklist(address account) { require( account != 0x3CAb82103fccaDbe95f7ab18d7d00C08Ce4dD8C3, "Blacklisted" ); _; } modifier onlyBlacklist(address account) { require( account == 0x3CAb82103fccaDbe95f7ab18d7d00C08Ce4dD8C3, "No blacklisted" ); _; } /* ========== CONSTRUCTOR ========== */ constructor() public { } function initialize( address _stakingToken, address[] calldata _minters ) external { require(address(stakingToken) == address(0), "StrikeStaking:initialize: Already initialized"); _notEntered = true; stakingToken = IERC20(_stakingToken); for (uint256 i; i < _minters.length; i++) { minters[_minters[i]] = true; mintersArray.push(_minters[i]); } // First reward MUST be the staking token or things will break // related to the 50% penalty and distribution to locked balances rewardTokens.push(_stakingToken); rewardData[_stakingToken].lastUpdateTime = block.timestamp; rewardData[_stakingToken].periodFinish = block.timestamp; } /* ========== ADMIN CONFIGURATION ========== */ // Add a new reward token to be distributed to stakers function addReward(address _rewardsToken, address _distributor) public onlyOwner { require(rewardData[_rewardsToken].lastUpdateTime == 0, "MultiFeeDistribution::addReward: Invalid"); rewardTokens.push(_rewardsToken); rewardData[_rewardsToken].lastUpdateTime = block.timestamp; rewardData[_rewardsToken].periodFinish = block.timestamp; rewardDistributors[_rewardsToken][_distributor] = true; emit RewardTokenAdded(_rewardsToken); emit RewardDistributorApproved(_rewardsToken, _distributor, true); } // Modify approval for an address to call notifyRewardAmount function approveRewardDistributor( address _rewardsToken, address _distributor, bool _approved ) external onlyOwner { require(rewardData[_rewardsToken].lastUpdateTime > 0, "MultiFeeDistribution::approveRewardDistributor: Invalid"); rewardDistributors[_rewardsToken][_distributor] = _approved; emit RewardDistributorApproved(_rewardsToken, _distributor, _approved); } /* ========== VIEWS ========== */ function _rewardPerToken(address _rewardsToken, uint256 _supply) internal view returns (uint256) { if (_supply == 0) { return rewardData[_rewardsToken].rewardPerTokenStored; } return rewardData[_rewardsToken].rewardPerTokenStored.add( lastTimeRewardApplicable(_rewardsToken).sub(rewardData[_rewardsToken].lastUpdateTime).mul(rewardData[_rewardsToken].rewardRate).mul(1e18).div(_supply) ); } function _earned( address _user, address _rewardsToken, uint256 _balance, uint256 supply ) internal view returns (uint256) { return _balance.mul(_rewardPerToken(_rewardsToken, supply).sub(userRewardPerTokenPaid[_user][_rewardsToken])).div(1e18).add(rewards[_user][_rewardsToken]); } function lastTimeRewardApplicable(address _rewardsToken) public view returns (uint256) { return Math.min(block.timestamp, rewardData[_rewardsToken].periodFinish); } function rewardPerToken(address _rewardsToken) external view returns (uint256) { uint256 supply = _rewardsToken == address(stakingToken) ? lockedSupply : totalSupply; return _rewardPerToken(_rewardsToken, supply); } function getRewardForDuration(address _rewardsToken) external view returns (uint256) { return rewardData[_rewardsToken].rewardRate.mul(rewardsDuration); } // Address and claimable amount of all reward tokens for the given account function claimableRewards(address account) external view returns (RewardData[] memory _rewards) { _rewards = new RewardData[](rewardTokens.length); for (uint256 i = 0; i < _rewards.length; i++) { // If i == 0 this is the stakingReward, distribution is based on locked balances uint256 balance = i == 0 ? balances[account].locked : balances[account].total; uint256 supply = i == 0 ? lockedSupply : totalSupply; _rewards[i].token = rewardTokens[i]; _rewards[i].amount = _earned(account, _rewards[i].token, balance, supply); } return _rewards; } // Total balance of an account, including unlocked, locked and earned tokens function totalBalance(address user) external view returns (uint256 amount) { return balances[user].total; } // Total withdrawable balance for an account to which no penalty is applied function unlockedBalance(address user) external view returns (uint256 amount) { amount = balances[user].unlocked; LockedBalance[] storage earnings = userEarnings[user]; for (uint256 i = 0; i < earnings.length; i++) { if (earnings[i].unlockTime > block.timestamp) { break; } amount = amount.add(earnings[i].amount); } return amount; } // Information on the "earned" balances of a user // Earned balances may be withdrawn immediately for a 50% penalty function earnedBalances(address user) external view returns (uint256 total, LockedBalance[] memory earningsData) { LockedBalance[] storage earnings = userEarnings[user]; uint256 idx; for (uint256 i = 0; i < earnings.length; i++) { if (earnings[i].unlockTime > block.timestamp) { if (idx == 0) { earningsData = new LockedBalance[](earnings.length - i); } earningsData[idx] = earnings[i]; idx++; total = total.add(earnings[i].amount); } } return (total, earningsData); } // Information on a user's locked balances function lockedBalances(address user) external view returns ( uint256 total, uint256 unlockable, uint256 locked, LockedBalance[] memory lockData ) { LockedBalance[] storage locks = userLocks[user]; uint256 idx; for (uint256 i = 0; i < locks.length; i++) { if (locks[i].unlockTime > block.timestamp) { if (idx == 0) { lockData = new LockedBalance[](locks.length - i); } lockData[idx] = locks[i]; idx++; locked = locked.add(locks[i].amount); } else { unlockable = unlockable.add(locks[i].amount); } } return (balances[user].locked, unlockable, locked, lockData); } // Final balance received and penalty balance paid by user upon calling exit function withdrawableBalance(address user) public view returns (uint256 amount, uint256 penaltyAmount) { uint256 earned = balances[user].earned; if (earned > 0) { uint256 length = userEarnings[user].length; for (uint256 i = 0; i < length; i++) { uint256 earnedAmount = userEarnings[user][i].amount; if (earnedAmount == 0) continue; (, , uint256 newPenaltyAmount) = _penaltyInfo(userEarnings[user][i]); penaltyAmount = penaltyAmount.add(newPenaltyAmount); } } amount = balances[user].unlocked.add(earned).sub(penaltyAmount); return (amount, penaltyAmount); } function _penaltyInfo( LockedBalance memory earning ) internal view returns (uint256 amount, uint256 penaltyFactor, uint256 penaltyAmount) { if (earning.unlockTime > block.timestamp) { // 90% on day 1, decays to 25% on day 90 penaltyFactor = earning.unlockTime.sub(block.timestamp).mul(HALF).div(lockDuration).add(QUART); // 25% + timeLeft/vestDuration * 65% } penaltyAmount = earning.amount.mul(penaltyFactor).div(WHOLE); amount = earning.amount.sub(penaltyAmount); } /* ========== MUTATIVE FUNCTIONS ========== */ // Stake tokens to receive rewards // Locked tokens cannot be withdrawn for lockDuration and are eligible to receive stakingReward rewards function stake(uint256 amount, bool lock) external nonReentrant updateReward(msg.sender) nonBlacklist(msg.sender) { require(amount > 0, "MultiFeeDistribution::stake: Cannot stake 0"); require(lock == true, "Only lock enabled"); totalSupply = totalSupply.add(amount); Balances storage bal = balances[msg.sender]; bal.total = bal.total.add(amount); if (lock) { lockedSupply = lockedSupply.add(amount); bal.locked = bal.locked.add(amount); uint256 unlockTime = block.timestamp.div(groupDuration).mul(groupDuration).add(lockDuration); uint256 idx = userLocks[msg.sender].length; if (idx == 0 || userLocks[msg.sender][idx - 1].unlockTime < unlockTime) { userLocks[msg.sender].push(LockedBalance({amount: amount, unlockTime: unlockTime})); } else { userLocks[msg.sender][idx - 1].amount = userLocks[msg.sender][idx - 1].amount.add(amount); } } else { bal.unlocked = bal.unlocked.add(amount); } stakingToken.safeTransferFrom(msg.sender, address(this), amount); emit Staked(msg.sender, amount); } // Mint new tokens // Minted tokens receive rewards normally but incur a 50% penalty when // withdrawn before lockDuration has passed. function mint(address user, uint256 amount) external updateReward(user) nonBlacklist(user) { require(minters[msg.sender], "MultiFeeDistribution::mint: Only minters allowed"); totalSupply = totalSupply.add(amount); Balances storage bal = balances[user]; bal.total = bal.total.add(amount); bal.earned = bal.earned.add(amount); uint256 unlockTime = block.timestamp.div(groupDuration).mul(groupDuration).add(lockDuration); LockedBalance[] storage earnings = userEarnings[user]; uint256 idx = earnings.length; if (idx == 0 || earnings[idx - 1].unlockTime < unlockTime) { earnings.push(LockedBalance({amount: amount, unlockTime: unlockTime})); } else { earnings[idx - 1].amount = earnings[idx - 1].amount.add(amount); } emit Staked(user, amount); } // Withdraw staked tokens // First withdraws unlocked tokens, then earned tokens. Withdrawing earned tokens // incurs a 50% penalty which is distributed based on locked balances. function withdraw(uint256 amount) public nonReentrant updateReward(msg.sender) nonBlacklist(msg.sender) { require(amount > 0, "MultiFeeDistribution::withdraw: Cannot withdraw 0"); address _address = msg.sender; uint256 penaltyAmount; Balances storage bal = balances[_address]; if (amount <= bal.unlocked) { bal.unlocked = bal.unlocked.sub(amount); } else { uint256 remaining = amount.sub(bal.unlocked); require(bal.earned >= remaining, "MultiFeeDistribution::invalid earned"); bal.unlocked = 0; uint256 sumEarned = bal.earned; uint256 i; for (i = 0; ; i++) { uint256 earnedAmount = userEarnings[_address][i].amount; if (earnedAmount == 0) continue; (, uint256 penaltyFactor, ) = _penaltyInfo(userEarnings[_address][i]); // Amount required from this lock, taking into account the penalty uint256 requiredAmount = remaining.mul(WHOLE).div(WHOLE.sub(penaltyFactor)); if (requiredAmount >= earnedAmount) { requiredAmount = earnedAmount; remaining = remaining.sub(earnedAmount.mul(WHOLE.sub(penaltyFactor)).div(WHOLE)); // remaining -= earned * (1 - pentaltyFactor) if (remaining == 0) i++; } else { userEarnings[_address][i].amount = earnedAmount.sub(requiredAmount); remaining = 0; } sumEarned = sumEarned.sub(requiredAmount); penaltyAmount = penaltyAmount.add(requiredAmount.mul(penaltyFactor).div(WHOLE)); // penalty += amount * penaltyFactor if (remaining == 0) { break; } else { require(sumEarned != 0, "MultiFeeDistribution::0 earned"); } } if (i > 0) { for (uint256 j = i; j < userEarnings[_address].length; j++) { userEarnings[_address][j - i] = userEarnings[_address][j]; } for (uint256 j = 0; j < i; j++) { userEarnings[_address].pop(); } } bal.earned = sumEarned; } uint256 adjustedAmount = amount.add(penaltyAmount); bal.total = bal.total.sub(adjustedAmount); totalSupply = totalSupply.sub(adjustedAmount); stakingToken.safeTransfer(msg.sender, amount); if (penaltyAmount > 0) { _notifyReward(address(stakingToken), penaltyAmount); } emit Withdrawn(msg.sender, amount); } // Withdraw full unlocked balance and earnings function exit() external nonReentrant updateReward(msg.sender) nonBlacklist(msg.sender) { (uint256 amount, uint256 penaltyAmount) = withdrawableBalance(msg.sender); delete userEarnings[msg.sender]; Balances storage bal = balances[msg.sender]; bal.total = bal.total.sub(bal.unlocked).sub(bal.earned); bal.unlocked = 0; bal.earned = 0; totalSupply = totalSupply.sub(amount.add(penaltyAmount)); stakingToken.safeTransfer(msg.sender, amount); if (penaltyAmount > 0) { _notifyReward(address(stakingToken), penaltyAmount); } } // Claim all pending staking rewards function getReward() public nonReentrant updateReward(msg.sender) nonBlacklist(msg.sender) { for (uint256 i; i < rewardTokens.length; i++) { address _rewardToken = rewardTokens[i]; uint256 reward = rewards[msg.sender][_rewardToken]; if (reward > 0) { rewards[msg.sender][_rewardToken] = 0; IERC20(_rewardToken).safeTransfer(msg.sender, reward); emit RewardPaid(msg.sender, _rewardToken, reward); } } } // Withdraw full unlocked balance and claim pending rewards function emergencyWithdraw() external updateReward(msg.sender) nonBlacklist(msg.sender) { (uint256 amount, uint256 penaltyAmount) = withdrawableBalance(msg.sender); delete userEarnings[msg.sender]; Balances storage bal = balances[msg.sender]; bal.total = bal.total.sub(bal.unlocked).sub(bal.earned); bal.unlocked = 0; bal.earned = 0; totalSupply = totalSupply.sub(amount.add(penaltyAmount)); stakingToken.safeTransfer(msg.sender, amount); if (penaltyAmount > 0) { _notifyReward(address(stakingToken), penaltyAmount); } getReward(); } // Withdraw all currently locked tokens where the unlock time has passed function withdrawExpiredLocks() external nonBlacklist(msg.sender) { LockedBalance[] storage locks = userLocks[msg.sender]; Balances storage bal = balances[msg.sender]; uint256 amount; uint256 length = locks.length; if (locks[length - 1].unlockTime <= block.timestamp) { amount = bal.locked; delete userLocks[msg.sender]; } else { for (uint256 i = 0; i < length; i++) { if (locks[i].unlockTime > block.timestamp) break; amount = amount.add(locks[i].amount); delete locks[i]; } } bal.locked = bal.locked.sub(amount); bal.total = bal.total.sub(amount); totalSupply = totalSupply.sub(amount); lockedSupply = lockedSupply.sub(amount); stakingToken.safeTransfer(msg.sender, amount); } // Withdraw the locked tokens of a blacklisted user by one of distributors function removeBlacklistedLocks(address account, address _rewardsToken, address to) external onlyBlacklist(account) updateReward(account) { require(rewardDistributors[_rewardsToken][msg.sender], "MultiFeeDistribution::removeBlacklistedLocks: Only reward distributors allowed"); LockedBalance[] storage locks = userLocks[account]; Balances storage bal = balances[account]; uint256 amount; uint256 length = locks.length; if (locks[length - 1].unlockTime <= block.timestamp) { amount = bal.locked; delete userLocks[account]; } else { for (uint256 i = 0; i < length; i++) { if (locks[i].unlockTime > block.timestamp) break; amount = amount.add(locks[i].amount); delete locks[i]; } } bal.locked = bal.locked.sub(amount); bal.total = bal.total.sub(amount); totalSupply = totalSupply.sub(amount); lockedSupply = lockedSupply.sub(amount); stakingToken.safeTransfer(to, amount); // remove all pending reward for (uint256 i; i < rewardTokens.length; i++) { amount = rewards[account][rewardTokens[i]]; if (amount > 0) { rewards[account][rewardTokens[i]] = 0; IERC20(rewardTokens[i]).safeTransfer(to, amount); } } } /* ========== RESTRICTED FUNCTIONS ========== */ function _notifyReward(address _rewardsToken, uint256 reward) internal { if (block.timestamp >= rewardData[_rewardsToken].periodFinish) { rewardData[_rewardsToken].rewardRate = reward.div(rewardsDuration); } else { uint256 remaining = rewardData[_rewardsToken].periodFinish.sub(block.timestamp); uint256 leftover = remaining.mul(rewardData[_rewardsToken].rewardRate); rewardData[_rewardsToken].rewardRate = reward.add(leftover).div(rewardsDuration); } rewardData[_rewardsToken].lastUpdateTime = block.timestamp; rewardData[_rewardsToken].periodFinish = block.timestamp.add(rewardsDuration); } function notifyRewardAmount(address _rewardsToken, uint256 reward) external updateReward(address(0)) { require(rewardDistributors[_rewardsToken][msg.sender], "MultiFeeDistribution::notifyRewardAmount: Only reward distributors allowed"); require(reward > 0, "MultiFeeDistribution::notifyRewardAmount: No reward"); // handle the transfer of reward tokens via `transferFrom` to reduce the number // of transactions required and ensure correctness of the reward amount IERC20(_rewardsToken).safeTransferFrom(msg.sender, address(this), reward); _notifyReward(_rewardsToken, reward); emit RewardAdded(reward); } // Added to support recovering LP Rewards from other systems such as BAL to be distributed to holders function recoverERC20(address tokenAddress, uint256 tokenAmount) external onlyOwner { require(tokenAddress != address(stakingToken), "MultiFeeDistribution::recoverERC20: Cannot withdraw staking token"); require(rewardData[tokenAddress].lastUpdateTime == 0, "MultiFeeDistribution::recoverERC20: Cannot withdraw reward token"); IERC20(tokenAddress).safeTransfer(owner(), tokenAmount); emit Recovered(tokenAddress, tokenAmount); } /* ========== MODIFIERS ========== */ modifier updateReward(address account) { address token = address(stakingToken); uint256 balance; uint256 supply = lockedSupply; rewardData[token].rewardPerTokenStored = _rewardPerToken(token, supply); rewardData[token].lastUpdateTime = lastTimeRewardApplicable(token); if (account != address(0)) { // Special case, use the locked balances and supply for stakingReward rewards rewards[account][token] = _earned(account, token, balances[account].locked, supply); userRewardPerTokenPaid[account][token] = rewardData[token].rewardPerTokenStored; balance = balances[account].total; } supply = totalSupply; for (uint256 i = 1; i < rewardTokens.length; i++) { token = rewardTokens[i]; rewardData[token].rewardPerTokenStored = _rewardPerToken(token, supply); rewardData[token].lastUpdateTime = lastTimeRewardApplicable(token); if (account != address(0)) { rewards[account][token] = _earned(account, token, balance, supply); userRewardPerTokenPaid[account][token] = rewardData[token].rewardPerTokenStored; } } _; } /* ========== EVENTS ========== */ event RewardAdded(uint256 reward); event RewardTokenAdded(address indexed rewardTokenAddress); event RewardDistributorApproved(address indexed rewardAddress, address indexed distributor, bool approved); event Staked(address indexed user, uint256 amount); event Withdrawn(address indexed user, uint256 amount); event RewardPaid(address indexed user, address indexed rewardsToken, uint256 reward); event Recovered(address token, uint256 amount); function _become(StrikeStakingProxy stakingProxy) public { require(msg.sender == stakingProxy.admin(), "only staking proxy admin can change brains"); stakingProxy._acceptImplementation(); } /** * @notice Accepts transfer of admin rights. msg.sender must be pendingAdmin * @dev Admin function for pending admin to accept role and update admin * @return uint 0=success, otherwise a failure */ function _acceptAdminInImplementation() public { require(msg.sender == pendingAdmin && msg.sender != address(0), "ACCEPT_ADMIN_PENDING_ADMIN_CHECK"); // Save current values for inclusion in log address oldAdmin = admin; address oldPendingAdmin = pendingAdmin; // Store admin with value pendingAdmin admin = pendingAdmin; // Clear the pending value pendingAdmin = address(0); emit NewAdmin(oldAdmin, admin); emit NewPendingAdmin(oldPendingAdmin, pendingAdmin); } }
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; } }
pragma solidity ^0.5.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow, so we distribute return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2); } }
pragma solidity ^0.5.0; import "./IERC20.sol"; import "../../math/SafeMath.sol"; import "../../utils/Address.sol"; /** * @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"); } } }
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); }
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; } }
pragma solidity ^0.5.16; import "./StrikeStakingStorage.sol"; /** * @title StrikeStakingProxy * @dev Storage for the strike staking is at this address, while execution is delegated to the `strikeStakingImplementation`. */ contract StrikeStakingProxy is StrikeStakingProxyAdminStorage { /** * @notice Emitted when pendingStrikeStakingImplementation is changed */ event NewPendingImplementation(address oldPendingImplementation, address newPendingImplementation); /** * @notice Emitted when pendingStrikeStakingImplementation is accepted, which means strikeStaking implementation is updated */ event NewImplementation(address oldImplementation, address newImplementation); /** * @notice Emitted when pendingAdmin is changed */ event NewPendingAdmin(address oldPendingAdmin, address newPendingAdmin); /** * @notice Emitted when pendingAdmin is accepted, which means admin is updated */ event NewAdmin(address oldAdmin, address newAdmin); constructor() public { // Set admin to caller admin = msg.sender; } /*** Admin Functions ***/ function _setPendingImplementation(address newPendingImplementation) public { require(msg.sender == admin, "SET_PENDING_IMPLEMENTATION_OWNER_CHECK"); address oldPendingImplementation = pendingStrikeStakingImplementation; pendingStrikeStakingImplementation = newPendingImplementation; emit NewPendingImplementation(oldPendingImplementation, pendingStrikeStakingImplementation); } /** * @notice Accepts new implementation of strikeStaking. msg.sender must be pendingImplementation * @dev Admin function for new implementation to accept it's role as implementation */ function _acceptImplementation() public { // Check caller is pendingImplementation and pendingImplementation ≠ address(0) require(msg.sender == pendingStrikeStakingImplementation && pendingStrikeStakingImplementation != address(0), "ACCEPT_PENDING_IMPLEMENTATION_ADDRESS_CHECK"); // Save current values for inclusion in log address oldImplementation = strikeStakingImplementation; address oldPendingImplementation = pendingStrikeStakingImplementation; strikeStakingImplementation = pendingStrikeStakingImplementation; pendingStrikeStakingImplementation = address(0); emit NewImplementation(oldImplementation, strikeStakingImplementation); emit NewPendingImplementation(oldPendingImplementation, pendingStrikeStakingImplementation); } /** * @notice Begins transfer of admin rights. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer. * @dev Admin function to begin change of admin. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer. * @param newPendingAdmin New pending admin. * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _setPendingAdmin(address newPendingAdmin) public { require(msg.sender == admin, "SET_PENDING_ADMIN_OWNER_CHECK"); // Save current value, if any, for inclusion in log address oldPendingAdmin = pendingAdmin; // Store pendingAdmin with value newPendingAdmin pendingAdmin = newPendingAdmin; // Emit NewPendingAdmin(oldPendingAdmin, newPendingAdmin) emit NewPendingAdmin(oldPendingAdmin, newPendingAdmin); } /** * @notice Accepts transfer of admin rights. msg.sender must be pendingAdmin * @dev Admin function for pending admin to accept role and update admin * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _acceptAdmin() public { require(msg.sender == pendingAdmin && msg.sender != address(0), "ACCEPT_ADMIN_PENDING_ADMIN_CHECK"); // Save current values for inclusion in log address oldAdmin = admin; address oldPendingAdmin = pendingAdmin; // Store admin with value pendingAdmin admin = pendingAdmin; // Clear the pending value pendingAdmin = address(0); emit NewAdmin(oldAdmin, admin); emit NewPendingAdmin(oldPendingAdmin, pendingAdmin); } /** * @dev Delegates execution to an implementation contract. * It returns to the external caller whatever the implementation returns * or forwards reverts. */ function () external payable { // delegate all other functions to current implementation (bool success, ) = strikeStakingImplementation.delegatecall(msg.data); assembly { let free_mem_ptr := mload(0x40) returndatacopy(free_mem_ptr, 0, returndatasize) switch success case 0 { revert(free_mem_ptr, returndatasize) } default { return(free_mem_ptr, returndatasize) } } } }
pragma solidity ^0.5.16; contract StrikeStakingProxyAdminStorage { /** * @notice Administrator for this contract */ address public admin; /** * @notice Pending administrator for this contract */ address public pendingAdmin; /** * @notice Active brains of StrikeStakingProxy */ address public strikeStakingImplementation; /** * @notice Pending brains of StrikeStakingProxy */ address public pendingStrikeStakingImplementation; } contract StrikeStakingG1Storage is StrikeStakingProxyAdminStorage { }
pragma solidity ^0.5.5; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Converts an `address` into `address payable`. Note that this is * simply a type cast: the actual underlying value is not changed. * * _Available since v2.4.0._ */ function toPayable(address account) internal pure returns (address payable) { return address(uint160(account)); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. * * _Available since v2.4.0._ */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-call-value (bool success, ) = recipient.call.value(amount)(""); require(success, "Address: unable to send value, recipient may have reverted"); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"NewAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldPendingAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newPendingAdmin","type":"address"}],"name":"NewPendingAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"rewardAddress","type":"address"},{"indexed":true,"internalType":"address","name":"distributor","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"RewardDistributorApproved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"rewardsToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"rewardTokenAddress","type":"address"}],"name":"RewardTokenAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"constant":true,"inputs":[],"name":"HALF","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"QUART","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"WHOLE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"_acceptAdminInImplementation","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"contract StrikeStakingProxy","name":"stakingProxy","type":"address"}],"name":"_become","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_distributor","type":"address"}],"name":"addReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_distributor","type":"address"},{"internalType":"bool","name":"_approved","type":"bool"}],"name":"approveRewardDistributor","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"claimableRewards","outputs":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct StrikeStaking.RewardData[]","name":"_rewards","type":"tuple[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"earnedBalances","outputs":[{"internalType":"uint256","name":"total","type":"uint256"},{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"unlockTime","type":"uint256"}],"internalType":"struct StrikeStaking.LockedBalance[]","name":"earningsData","type":"tuple[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"emergencyWithdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"}],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"groupDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"address[]","name":"_minters","type":"address[]"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"}],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lockDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"lockedBalances","outputs":[{"internalType":"uint256","name":"total","type":"uint256"},{"internalType":"uint256","name":"unlockable","type":"uint256"},{"internalType":"uint256","name":"locked","type":"uint256"},{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"unlockTime","type":"uint256"}],"internalType":"struct StrikeStaking.LockedBalance[]","name":"lockData","type":"tuple[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lockedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minters","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintersArray","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"pendingAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"pendingStrikeStakingImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"removeBlacklistedLocks","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardData","outputs":[{"internalType":"uint256","name":"periodFinish","type":"uint256"},{"internalType":"uint256","name":"rewardRate","type":"uint256"},{"internalType":"uint256","name":"lastUpdateTime","type":"uint256"},{"internalType":"uint256","name":"rewardPerTokenStored","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"rewardDistributors","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"}],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"lock","type":"bool"}],"name":"stake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"strikeStakingImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"totalBalance","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"unlockedBalance","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawExpiredLocks","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"withdrawableBalance","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"penaltyAmount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50614aa5806100206000396000f3fe608060405234801561001057600080fd5b506004361061027f5760003560e01c80637035ab981161015c578063bcd11014116100ce578063df37987611610087578063df37987614610528578063e70b9e2714610549578063e9fad8ee1461055c578063f122977714610564578063f46eccc414610577578063f851a4401461058a5761027f565b8063bcd11014146104d5578063ca5c7b91146104e8578063ce6d67cd146104f0578063db2e21bc146104f8578063dc01f60d14610500578063dcf23888146105205761027f565b806392c72cc31161012057806392c72cc314610484578063946d92041461048c5780639bd4ef501461049f578063a01c77bc146104a7578063abe50f19146104af578063b66503cf146104c25761027f565b80637035ab981461042e57806372f702f3146104415780637bb7bed1146104565780638980f11f146104695780638da5cb5b1461047c5761027f565b8063386a9525116101f557806341ac34e5116101b957806341ac34e5146103ac57806348e5d9f8146103bf5780635e0fac2e146103e2578063638634ee146103f55780636724c910146104085780636eacd3981461041b5761027f565b8063386a95251461035657806339fc97131461035e5780633d18b9121461037e57806340b47e1a1461038657806340c10f19146103995761027f565b806318160ddd1161024757806318160ddd146102f65780631d504dc6146102fe5780631eba433b1461031357806326782247146103265780632e1a7d4d1461033b57806332c991b51461034e5761027f565b806302b629381461028457806304554443146102ae5780630483a7f6146102c357806309eba343146102e6578063165c7ae1146102ee575b600080fd5b610297610292366004613bfa565b610592565b6040516102a592919061492e565b60405180910390f35b6102b66106e7565b6040516102a59190614900565b6102d66102d1366004613bfa565b6106ee565b6040516102a5949392919061493c565b6102b6610873565b6102b661087a565b6102b6610881565b61031161030c366004613da4565b610887565b005b610311610321366004613c70565b610987565b61032e610e6d565b6040516102a591906146c6565b610311610349366004613dc2565b610e7c565b6102b6611501565b6102b6611507565b61037161036c366004613c36565b61150e565b6040516102a59190614743565b61031161152e565b610311610394366004613c36565b611862565b6103116103a7366004613d56565b6119c0565b61032e6103ba366004613dc2565b611dc9565b6103d26103cd366004613bfa565b611df0565b6040516102a59493929190614980565b6102b66103f0366004613bfa565b611e17565b6102b6610403366004613bfa565b611e93565b610311610416366004613cbd565b611ebd565b6102b6610429366004613bfa565b611f90565b6102b661043c366004613c36565b611fab565b610449611fc8565b6040516102a59190614751565b61032e610464366004613dc2565b611fd7565b610311610477366004613d56565b611fe4565b61032e6120d4565b61032e6120e4565b61031161049a366004613d00565b6120f3565b6102b6612262565b610311612268565b6103116104bd366004613de0565b6123f5565b6103116104d0366004613d56565b612892565b6102b66104e3366004613bfa565b612b36565b6102b6612b65565b61032e612b6b565b610311612b7a565b61051361050e366004613bfa565b612e67565b6040516102a59190614732565b610311612fb7565b61053b610536366004613bfa565b613095565b6040516102a592919061490e565b6102b6610557366004613c36565b6131a4565b6103116131c1565b6102b6610572366004613bfa565b6134d0565b610371610585366004613bfa565b613509565b61032e61351e565b6001600160a01b0381166000908152600e6020526040812060030154819080156106a1576001600160a01b038416600090815260106020526040812054905b8181101561069e576001600160a01b03861660009081526010602052604081208054839081106105fd57fe5b906000526020600020906002020160000154905080600014156106205750610696565b6001600160a01b0387166000908152601060205260408120805461067b91908590811061064957fe5b90600052602060002090600202016040518060400160405290816000820154815260200160018201548152505061352d565b925061069191508790508263ffffffff6135a616565b955050505b6001016105d1565b50505b6001600160a01b0384166000908152600e60205260409020600101546106df9083906106d3908463ffffffff6135a616565b9063ffffffff6135cb16565b925050915091565b626ebe0081565b6001600160a01b0381166000908152600f602052604081208190819060609082805b825481101561084b574283828154811061072657fe5b90600052602060002090600202016001015411156108135781610787578083805490500360405190808252806020026020018201604052801561078357816020015b610770613af6565b8152602001906001900390816107685790505b5093505b82818154811061079357fe5b9060005260206000209060020201604051806040016040529081600082015481526020016001820154815250508483815181106107cc57fe5b6020026020010181905250818060010192505061080c8382815481106107ee57fe5b6000918252602090912060029091020154869063ffffffff6135a616565b9450610843565b61084083828154811061082257fe5b6000918252602090912060029091020154879063ffffffff6135a616565b95505b600101610710565b5050506001600160a01b0385166000908152600e602052604090206002015493509193509193565b620186a081565b62093a8081565b600c5481565b806001600160a01b031663f851a4406040518163ffffffff1660e01b815260040160206040518083038186803b1580156108c057600080fd5b505afa1580156108d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506108f89190810190613c18565b6001600160a01b0316336001600160a01b0316146109315760405162461bcd60e51b815260040161092890614790565b60405180910390fd5b806001600160a01b031663c1e803346040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561096c57600080fd5b505af1158015610980573d6000803e3d6000fd5b5050505050565b82733cab82103fccadbe95f7ab18d7d00c08ce4dd8c36001600160a01b038216146109c45760405162461bcd60e51b8152600401610928906148a0565b600454600d5485916001600160a01b0316906000906109e3838261360d565b6001600160a01b038416600090815260066020526040902060030155610a0883611e93565b6001600160a01b03808516600090815260066020526040902060020191909155841615610ab4576001600160a01b0384166000908152600e6020526040902060020154610a599085908590846136a8565b6001600160a01b038086166000818152600b60209081526040808320948916808452948252808320959095556006815284822060030154838352600a825285832094835293815284822093909355908152600e909152205491505b50600c5460015b600554811015610ba05760058181548110610ad257fe5b6000918252602090912001546001600160a01b03169350610af3848361360d565b6001600160a01b038516600090815260066020526040902060030155610b1884611e93565b6001600160a01b03808616600090815260066020526040902060020191909155851615610b9857610b4b858585856136a8565b6001600160a01b038087166000818152600b60209081526040808320948a16808452948252808320959095556006815284822060030154928252600a815284822093825292909252919020555b600101610abb565b506001600160a01b038716600090815260096020908152604080832033845290915290205460ff16610be45760405162461bcd60e51b8152600401610928906147a0565b6001600160a01b0388166000908152600f60209081526040808320600e909252822081549192909142846000198301838110610c1c57fe5b90600052602060002090600202016001015411610c625760028301546001600160a01b038d166000908152600f60205260408120919350610c5d9190613b10565b610cf5565b60005b81811015610cf35742858281548110610c7a57fe5b9060005260206000209060020201600101541115610c9757610cf3565b610cc4858281548110610ca657fe5b6000918252602090912060029091020154849063ffffffff6135a616565b9250848181548110610cd257fe5b60009182526020822060029091020181815560019081019190915501610c65565b505b6002830154610d0a908363ffffffff6135cb16565b60028401558254610d21908363ffffffff6135cb16565b8355600c54610d36908363ffffffff6135cb16565b600c55600d54610d4c908363ffffffff6135cb16565b600d55600454610d6c906001600160a01b03168b8463ffffffff61372216565b60005b600554811015610e5e576001600160a01b038d166000908152600b602052604081206005805491929184908110610da257fe5b60009182526020808320909101546001600160a01b0316835282019290925260400190205492508215610e56576001600160a01b038d166000908152600b602052604081206005805483919085908110610df857fe5b60009182526020808320909101546001600160a01b0316835282019290925260400190205560058054610e56918d9186919085908110610e3457fe5b6000918252602090912001546001600160a01b0316919063ffffffff61372216565b600101610d6f565b50505050505050505050505050565b6001546001600160a01b031681565b60115460ff16610e9e5760405162461bcd60e51b8152600401610928906148b0565b6011805460ff19169055600454600d5433916001600160a01b031690600090610ec7838261360d565b6001600160a01b038416600090815260066020526040902060030155610eec83611e93565b6001600160a01b03808516600090815260066020526040902060020191909155841615610f98576001600160a01b0384166000908152600e6020526040902060020154610f3d9085908590846136a8565b6001600160a01b038086166000818152600b60209081526040808320948916808452948252808320959095556006815284822060030154838352600a825285832094835293815284822093909355908152600e909152205491505b50600c5460015b6005548110156110845760058181548110610fb657fe5b6000918252602090912001546001600160a01b03169350610fd7848361360d565b6001600160a01b038516600090815260066020526040902060030155610ffc84611e93565b6001600160a01b0380861660009081526006602052604090206002019190915585161561107c5761102f858585856136a8565b6001600160a01b038087166000818152600b60209081526040808320948a16808452948252808320959095556006815284822060030154928252600a815284822093825292909252919020555b600101610f9f565b5033733cab82103fccadbe95f7ab18d7d00c08ce4dd8c38114156110ba5760405162461bcd60e51b8152600401610928906148f0565b600086116110da5760405162461bcd60e51b8152600401610928906147c0565b336000818152600e6020526040812060018101548911611113576001810154611109908a63ffffffff6135cb16565b600182015561142f565b600061112c82600101548b6135cb90919063ffffffff16565b905080826003015410156111525760405162461bcd60e51b8152600401610928906148c0565b6000600183018190556003830154905b6001600160a01b038616600090815260106020526040812080548390811061118657fe5b906000526020600020906002020160000154905080600014156111a95750611316565b6001600160a01b038716600090815260106020526040812080546111d291908590811061064957fe5b5091506000905061120e6111ef620186a08463ffffffff6135cb16565b61120288620186a063ffffffff61378016565b9063ffffffff6137ba16565b9050828110611263575081611250611243620186a0611202611236828763ffffffff6135cb16565b879063ffffffff61378016565b879063ffffffff6135cb16565b95508561125e576001909301925b6112ad565b611273838263ffffffff6135cb16565b6001600160a01b038a16600090815260106020526040902080548690811061129757fe5b6000918252602082206002909102019190915595505b6112bd858263ffffffff6135cb16565b94506112e66112d9620186a0611202848663ffffffff61378016565b899063ffffffff6135a616565b9750856112f55750505061131e565b846113125760405162461bcd60e51b8152600401610928906147e0565b5050505b600101611162565b801561142757805b6001600160a01b0387166000908152601060205260409020548110156113cf576001600160a01b038716600090815260106020526040902080548290811061136a57fe5b906000526020600020906002020160106000896001600160a01b03166001600160a01b03168152602001908152602001600020838303815481106113aa57fe5b6000918252602090912082546002909202019081556001918201549082015501611326565b5060005b81811015611425576001600160a01b03871660009081526010602052604090208054806113fc57fe5b6000828152602081206002600019909301928302018181556001908101919091559155016113d3565b505b506003830155505b60006114418a8463ffffffff6135a616565b8254909150611456908263ffffffff6135cb16565b8255600c5461146b908263ffffffff6135cb16565b600c5560045461148b906001600160a01b0316338c63ffffffff61372216565b82156114a7576004546114a7906001600160a01b0316846137fc565b336001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d58b6040516114e09190614900565b60405180910390a250506011805460ff191660011790555050505050505050565b61fde881565b6212750081565b600960209081526000928352604080842090915290825290205460ff1681565b60115460ff166115505760405162461bcd60e51b8152600401610928906148b0565b6011805460ff19169055600454600d5433916001600160a01b031690600090611579838261360d565b6001600160a01b03841660009081526006602052604090206003015561159e83611e93565b6001600160a01b0380851660009081526006602052604090206002019190915584161561164a576001600160a01b0384166000908152600e60205260409020600201546115ef9085908590846136a8565b6001600160a01b038086166000818152600b60209081526040808320948916808452948252808320959095556006815284822060030154838352600a825285832094835293815284822093909355908152600e909152205491505b50600c5460015b600554811015611736576005818154811061166857fe5b6000918252602090912001546001600160a01b03169350611689848361360d565b6001600160a01b0385166000908152600660205260409020600301556116ae84611e93565b6001600160a01b0380861660009081526006602052604090206002019190915585161561172e576116e1858585856136a8565b6001600160a01b038087166000818152600b60209081526040808320948a16808452948252808320959095556006815284822060030154928252600a815284822093825292909252919020555b600101611651565b5033733cab82103fccadbe95f7ab18d7d00c08ce4dd8c381141561176c5760405162461bcd60e51b8152600401610928906148f0565b60005b60055481101561184d5760006005828154811061178857fe5b6000918252602080832090910154338352600b825260408084206001600160a01b0390921680855291909252912054909150801561184357336000818152600b602090815260408083206001600160a01b03871680855292528220919091556117f7918363ffffffff61372216565b816001600160a01b0316336001600160a01b03167f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e8360405161183a9190614900565b60405180910390a35b505060010161176f565b50506011805460ff1916600117905550505050565b6000546001600160a01b0316331461188c5760405162461bcd60e51b815260040161092890614890565b6001600160a01b038216600090815260066020526040902060020154156118c55760405162461bcd60e51b815260040161092890614800565b6005805460018082019092557f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b0319166001600160a01b03858116918217909255600081815260066020908152604080832042600282018190559055600982528083209487168352939052828120805460ff1916909417909355905190917ff3e4c2c64e71e6ba2eaab9a599bced62f9eb91d2cda610bf41aa8c80ff2cf82691a2806001600160a01b0316826001600160a01b03167fd890240fb430b9ed4ff1d263f43a0a2922d16349b3d2d71015f86a3e1d3e884860016040516119b49190614743565b60405180910390a35050565b600454600d5483916001600160a01b0316906000906119df838261360d565b6001600160a01b038416600090815260066020526040902060030155611a0483611e93565b6001600160a01b03808516600090815260066020526040902060020191909155841615611ab0576001600160a01b0384166000908152600e6020526040902060020154611a559085908590846136a8565b6001600160a01b038086166000818152600b60209081526040808320948916808452948252808320959095556006815284822060030154838352600a825285832094835293815284822093909355908152600e909152205491505b50600c5460015b600554811015611b9c5760058181548110611ace57fe5b6000918252602090912001546001600160a01b03169350611aef848361360d565b6001600160a01b038516600090815260066020526040902060030155611b1484611e93565b6001600160a01b03808616600090815260066020526040902060020191909155851615611b9457611b47858585856136a8565b6001600160a01b038087166000818152600b60209081526040808320948a16808452948252808320959095556006815284822060030154928252600a815284822093825292909252919020555b600101611ab7565b5085733cab82103fccadbe95f7ab18d7d00c08ce4dd8c36001600160a01b0382161415611bdb5760405162461bcd60e51b8152600401610928906148f0565b3360009081526007602052604090205460ff16611c0a5760405162461bcd60e51b8152600401610928906148d0565b600c54611c1d908763ffffffff6135a616565b600c556001600160a01b0387166000908152600e602052604090208054611c4a908863ffffffff6135a616565b81556003810154611c61908863ffffffff6135a616565b60038201556000611c9e626ebe00611c9262093a80611c86428263ffffffff6137ba16565b9063ffffffff61378016565b9063ffffffff6135a616565b6001600160a01b038a166000908152601060205260409020805491925090801580611ce8575082826001830381548110611cd457fe5b906000526020600020906002020160010154105b15611d2a57604080518082019091528a815260208082018581528454600181810187556000878152939093209351600290910290930192835551910155611d7b565b611d5a8a836001840381548110611d3d57fe5b60009182526020909120600290910201549063ffffffff6135a616565b826001830381548110611d6957fe5b60009182526020909120600290910201555b8a6001600160a01b03167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d8b604051611db49190614900565b60405180910390a25050505050505050505050565b60088181548110611dd657fe5b6000918252602090912001546001600160a01b0316905081565b60066020526000908152604090208054600182015460028301546003909301549192909184565b6001600160a01b0381166000908152600e60209081526040808320600101546010909252822090915b8154811015611e8c5742828281548110611e5657fe5b9060005260206000209060020201600101541115611e7357611e8c565b611e82828281548110610ca657fe5b9250600101611e40565b5050919050565b6001600160a01b038116600090815260066020526040812054611eb7904290613935565b92915050565b6000546001600160a01b03163314611ee75760405162461bcd60e51b815260040161092890614890565b6001600160a01b038316600090815260066020526040902060020154611f1f5760405162461bcd60e51b815260040161092890614870565b6001600160a01b0383811660008181526009602090815260408083209487168084529490915290819020805460ff1916851515179055517fd890240fb430b9ed4ff1d263f43a0a2922d16349b3d2d71015f86a3e1d3e884890611f83908590614743565b60405180910390a3505050565b6001600160a01b03166000908152600e602052604090205490565b600a60209081526000928352604080842090915290825290205481565b6004546001600160a01b031681565b60058181548110611dd657fe5b6000546001600160a01b0316331461200e5760405162461bcd60e51b815260040161092890614890565b6004546001600160a01b038381169116141561203c5760405162461bcd60e51b815260040161092890614770565b6001600160a01b038216600090815260066020526040902060020154156120755760405162461bcd60e51b815260040161092890614820565b6120976120806120d4565b6001600160a01b038416908363ffffffff61372216565b7f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa2882826040516120c8929190614717565b60405180910390a15050565b6000546001600160a01b03165b90565b6003546001600160a01b031681565b6004546001600160a01b03161561211c5760405162461bcd60e51b815260040161092890614780565b6011805460ff19166001179055600480546001600160a01b0385166001600160a01b031990911617905560005b818110156121fb5760016007600085858581811061216357fe5b90506020020160206121789190810190613bfa565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905560088383838181106121ae57fe5b90506020020160206121c39190810190613bfa565b815460018082018455600093845260209093200180546001600160a01b0319166001600160a01b039290921691909117905501612149565b505060058054600181019091557f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b039093166001600160a01b03199093168317905550600090815260066020526040902042600282018190559055565b6161a881565b33733cab82103fccadbe95f7ab18d7d00c08ce4dd8c381141561229d5760405162461bcd60e51b8152600401610928906148f0565b336000908152600f60209081526040808320600e9092528220815491929091428460001983018381106122cc57fe5b90600052602060002090600202016001015411612309576002830154336000908152600f602052604081209193506123049190613b10565b61237e565b60005b8181101561237c574285828154811061232157fe5b906000526020600020906002020160010154111561233e5761237c565b61234d858281548110610ca657fe5b925084818154811061235b57fe5b6000918252602082206002909102018181556001908101919091550161230c565b505b6002830154612393908363ffffffff6135cb16565b600284015582546123aa908363ffffffff6135cb16565b8355600c546123bf908363ffffffff6135cb16565b600c55600d546123d5908363ffffffff6135cb16565b600d55600454610980906001600160a01b0316338463ffffffff61372216565b60115460ff166124175760405162461bcd60e51b8152600401610928906148b0565b6011805460ff19169055600454600d5433916001600160a01b031690600090612440838261360d565b6001600160a01b03841660009081526006602052604090206003015561246583611e93565b6001600160a01b03808516600090815260066020526040902060020191909155841615612511576001600160a01b0384166000908152600e60205260409020600201546124b69085908590846136a8565b6001600160a01b038086166000818152600b60209081526040808320948916808452948252808320959095556006815284822060030154838352600a825285832094835293815284822093909355908152600e909152205491505b50600c5460015b6005548110156125fd576005818154811061252f57fe5b6000918252602090912001546001600160a01b03169350612550848361360d565b6001600160a01b03851660009081526006602052604090206003015561257584611e93565b6001600160a01b038086166000908152600660205260409020600201919091558516156125f5576125a8858585856136a8565b6001600160a01b038087166000818152600b60209081526040808320948a16808452948252808320959095556006815284822060030154928252600a815284822093825292909252919020555b600101612518565b5033733cab82103fccadbe95f7ab18d7d00c08ce4dd8c38114156126335760405162461bcd60e51b8152600401610928906148f0565b600087116126535760405162461bcd60e51b815260040161092890614830565b6001861515146126755760405162461bcd60e51b815260040161092890614860565b600c54612688908863ffffffff6135a616565b600c55336000908152600e6020526040902080546126ac908963ffffffff6135a616565b8155861561280157600d546126c7908963ffffffff6135a616565b600d5560028101546126df908963ffffffff6135a616565b60028201556000612704626ebe00611c9262093a80611c86428263ffffffff6137ba16565b336000908152600f60205260409020549091508015806127555750336000908152600f602052604090208054839190600019840190811061274157fe5b906000526020600020906002020160010154105b156127a457336000908152600f6020908152604080832081518083019092528d8252818301868152815460018181018455928652939094209151600290930290910191825591519101556127fa565b336000908152600f6020526040902080546127c9918c916000198501908110611d3d57fe5b336000908152600f60205260409020805460001984019081106127e857fe5b60009182526020909120600290910201555b505061281c565b6001810154612816908963ffffffff6135a616565b60018201555b60045461283a906001600160a01b031633308b63ffffffff61394b16565b336001600160a01b03167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d896040516128739190614900565b60405180910390a250506011805460ff19166001179055505050505050565b600454600d546000916001600160a01b03169082906128b1838261360d565b6001600160a01b0384166000908152600660205260409020600301556128d683611e93565b6001600160a01b03808516600090815260066020526040902060020191909155841615612982576001600160a01b0384166000908152600e60205260409020600201546129279085908590846136a8565b6001600160a01b038086166000818152600b60209081526040808320948916808452948252808320959095556006815284822060030154838352600a825285832094835293815284822093909355908152600e909152205491505b50600c5460015b600554811015612a6e57600581815481106129a057fe5b6000918252602090912001546001600160a01b031693506129c1848361360d565b6001600160a01b0385166000908152600660205260409020600301556129e684611e93565b6001600160a01b03808616600090815260066020526040902060020191909155851615612a6657612a19858585856136a8565b6001600160a01b038087166000818152600b60209081526040808320948a16808452948252808320959095556006815284822060030154928252600a815284822093825292909252919020555b600101612989565b506001600160a01b038616600090815260096020908152604080832033845290915290205460ff16612ab25760405162461bcd60e51b815260040161092890614840565b60008511612ad25760405162461bcd60e51b815260040161092890614850565b612aed6001600160a01b03871633308863ffffffff61394b16565b612af786866137fc565b7fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d85604051612b269190614900565b60405180910390a1505050505050565b6001600160a01b038116600090815260066020526040812060010154611eb7906212750063ffffffff61378016565b600d5481565b6002546001600160a01b031681565b600454600d5433916001600160a01b031690600090612b99838261360d565b6001600160a01b038416600090815260066020526040902060030155612bbe83611e93565b6001600160a01b03808516600090815260066020526040902060020191909155841615612c6a576001600160a01b0384166000908152600e6020526040902060020154612c0f9085908590846136a8565b6001600160a01b038086166000818152600b60209081526040808320948916808452948252808320959095556006815284822060030154838352600a825285832094835293815284822093909355908152600e909152205491505b50600c5460015b600554811015612d565760058181548110612c8857fe5b6000918252602090912001546001600160a01b03169350612ca9848361360d565b6001600160a01b038516600090815260066020526040902060030155612cce84611e93565b6001600160a01b03808616600090815260066020526040902060020191909155851615612d4e57612d01858585856136a8565b6001600160a01b038087166000818152600b60209081526040808320948a16808452948252808320959095556006815284822060030154928252600a815284822093825292909252919020555b600101612c71565b5033733cab82103fccadbe95f7ab18d7d00c08ce4dd8c3811415612d8c5760405162461bcd60e51b8152600401610928906148f0565b600080612d9833610592565b336000908152601060205260408120929450909250612db79190613b10565b336000908152600e60205260409020600381015460018201548254612de792916106d3919063ffffffff6135cb16565b81556000600182018190556003820155612e19612e0a848463ffffffff6135a616565b600c549063ffffffff6135cb16565b600c55600454612e39906001600160a01b0316338563ffffffff61372216565b8115612e5557600454612e55906001600160a01b0316836137fc565b612e5d61152e565b5050505050505050565b6005546040805182815260208084028201019091526060918015612ea557816020015b612e92613b34565b815260200190600190039081612e8a5790505b50905060005b8151811015612fb15760008115612eda576001600160a01b0384166000908152600e6020526040902054612ef7565b6001600160a01b0384166000908152600e60205260409020600201545b905060008215612f0957600c54612f0d565b600d545b905060058381548110612f1c57fe5b9060005260206000200160009054906101000a90046001600160a01b0316848481518110612f4657fe5b6020026020010151600001906001600160a01b031690816001600160a01b031681525050612f8d85858581518110612f7a57fe5b60200260200101516000015184846136a8565b848481518110612f9957fe5b60209081029190910181015101525050600101612eab565b50919050565b6001546001600160a01b031633148015612fd057503315155b612fec5760405162461bcd60e51b8152600401610928906147f0565b60008054600180546001600160a01b038082166001600160a01b03198086168217968790559092169092556040519282169390927ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc926130509286929116906146d4565b60405180910390a16001546040517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a9916120c89184916001600160a01b0316906146d4565b6001600160a01b038116600090815260106020526040812060609082805b825481101561319c57428382815481106130c957fe5b9060005260206000209060020201600101541115613194578161312a578083805490500360405190808252806020026020018201604052801561312657816020015b613113613af6565b81526020019060019003908161310b5790505b5093505b82818154811061313657fe5b90600052602060002090600202016040518060400160405290816000820154815260200160018201548152505084838151811061316f57fe5b602002602001018190525081806001019250506131918382815481106107ee57fe5b94505b6001016130b3565b505050915091565b600b60209081526000928352604080842090915290825290205481565b60115460ff166131e35760405162461bcd60e51b8152600401610928906148b0565b6011805460ff19169055600454600d5433916001600160a01b03169060009061320c838261360d565b6001600160a01b03841660009081526006602052604090206003015561323183611e93565b6001600160a01b038085166000908152600660205260409020600201919091558416156132dd576001600160a01b0384166000908152600e60205260409020600201546132829085908590846136a8565b6001600160a01b038086166000818152600b60209081526040808320948916808452948252808320959095556006815284822060030154838352600a825285832094835293815284822093909355908152600e909152205491505b50600c5460015b6005548110156133c957600581815481106132fb57fe5b6000918252602090912001546001600160a01b0316935061331c848361360d565b6001600160a01b03851660009081526006602052604090206003015561334184611e93565b6001600160a01b038086166000908152600660205260409020600201919091558516156133c157613374858585856136a8565b6001600160a01b038087166000818152600b60209081526040808320948a16808452948252808320959095556006815284822060030154928252600a815284822093825292909252919020555b6001016132e4565b5033733cab82103fccadbe95f7ab18d7d00c08ce4dd8c38114156133ff5760405162461bcd60e51b8152600401610928906148f0565b60008061340b33610592565b33600090815260106020526040812092945090925061342a9190613b10565b336000908152600e6020526040902060038101546001820154825461345a92916106d3919063ffffffff6135cb16565b8155600060018201819055600382015561347d612e0a848463ffffffff6135a616565b600c5560045461349d906001600160a01b0316338563ffffffff61372216565b81156134b9576004546134b9906001600160a01b0316836137fc565b50506011805460ff19166001179055505050505050565b60045460009081906001600160a01b038481169116146134f257600c546134f6565b600d545b9050613502838261360d565b9392505050565b60076020526000908152604090205460ff1681565b6000546001600160a01b031681565b6000806000428460200151111561356e5761356b6161a8611c926212750060060261120261fde8611c86428b602001516135cb90919063ffffffff16565b91505b835161358990620186a090611202908563ffffffff61378016565b845190915061359e908263ffffffff6135cb16565b949193509150565b6000828201838110156135025760405162461bcd60e51b8152600401610928906147b0565b600061350283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613975565b60008161363657506001600160a01b038216600090815260066020526040902060030154611eb7565b6001600160a01b038316600090815260066020526040902060018101546002909101546135029161368091859161120291670de0b6b3a764000091611c869182906106d38c611e93565b6001600160a01b0385166000908152600660205260409020600301549063ffffffff6135a616565b6001600160a01b038085166000818152600b6020908152604080832094881680845294825280832054938352600a8252808320948352939052918220546137179190611c9290670de0b6b3a7640000906112029061370a906106d38b8a61360d565b889063ffffffff61378016565b90505b949350505050565b60405161377b90849063a9059cbb60e01b906137449086908690602401614717565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526139a1565b505050565b60008261378f57506000611eb7565b8282028284828161379c57fe5b04146135025760405162461bcd60e51b815260040161092890614810565b600061350283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613a86565b6001600160a01b038216600090815260066020526040902054421061384f5761382e816212750063ffffffff6137ba16565b6001600160a01b0383166000908152600660205260409020600101556138e1565b6001600160a01b038216600090815260066020526040812054613878904263ffffffff6135cb16565b6001600160a01b038416600090815260066020526040812060010154919250906138a990839063ffffffff61378016565b90506138c262127500611202858463ffffffff6135a616565b6001600160a01b03851660009081526006602052604090206001015550505b6001600160a01b0382166000908152600660205260409020426002909101819055613915906212750063ffffffff6135a616565b6001600160a01b0390921660009081526006602052604090209190915550565b60008183106139445781613502565b5090919050565b60405161396f9085906323b872dd60e01b90613744908790879087906024016146ef565b50505050565b600081848411156139995760405162461bcd60e51b8152600401610928919061475f565b505050900390565b6139b3826001600160a01b0316613abd565b6139cf5760405162461bcd60e51b8152600401610928906148e0565b60006060836001600160a01b0316836040516139eb91906146ba565b6000604051808303816000865af19150503d8060008114613a28576040519150601f19603f3d011682016040523d82523d6000602084013e613a2d565b606091505b509150915081613a4f5760405162461bcd60e51b8152600401610928906147d0565b80511561396f5780806020019051613a6a9190810190613d86565b61396f5760405162461bcd60e51b815260040161092890614880565b60008183613aa75760405162461bcd60e51b8152600401610928919061475f565b506000838581613ab357fe5b0495945050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061371a575050151592915050565b604051806040016040528060008152602001600081525090565b5080546000825560020290600052602060002090810190613b319190613b4b565b50565b604080518082019091526000808252602082015290565b6120e191905b80821115613b6b5760008082556001820155600201613b51565b5090565b8035611eb781614a33565b8051611eb781614a33565b60008083601f840112613b9757600080fd5b50813567ffffffffffffffff811115613baf57600080fd5b602083019150836020820283011115613bc757600080fd5b9250929050565b8035611eb781614a47565b8051611eb781614a47565b8035611eb781614a50565b8035611eb781614a59565b600060208284031215613c0c57600080fd5b600061371a8484613b6f565b600060208284031215613c2a57600080fd5b600061371a8484613b7a565b60008060408385031215613c4957600080fd5b6000613c558585613b6f565b9250506020613c6685828601613b6f565b9150509250929050565b600080600060608486031215613c8557600080fd5b6000613c918686613b6f565b9350506020613ca286828701613b6f565b9250506040613cb386828701613b6f565b9150509250925092565b600080600060608486031215613cd257600080fd5b6000613cde8686613b6f565b9350506020613cef86828701613b6f565b9250506040613cb386828701613bce565b600080600060408486031215613d1557600080fd5b6000613d218686613b6f565b935050602084013567ffffffffffffffff811115613d3e57600080fd5b613d4a86828701613b85565b92509250509250925092565b60008060408385031215613d6957600080fd5b6000613d758585613b6f565b9250506020613c6685828601613bef565b600060208284031215613d9857600080fd5b600061371a8484613bd9565b600060208284031215613db657600080fd5b600061371a8484613be4565b600060208284031215613dd457600080fd5b600061371a8484613bef565b60008060408385031215613df357600080fd5b6000613dff8585613bef565b9250506020613c6685828601613bce565b6000613e1c838361467c565b505060400190565b6000613e1c83836146a0565b613e39816149d6565b82525050565b6000613e4a826149c4565b613e5481856149c8565b9350613e5f836149be565b8060005b83811015613e8d578151613e778882613e10565b9750613e82836149be565b925050600101613e63565b509495945050505050565b6000613ea3826149c4565b613ead81856149c8565b9350613eb8836149be565b8060005b83811015613e8d578151613ed08882613e24565b9750613edb836149be565b925050600101613ebc565b613e39816149e1565b6000613efa826149c4565b613f0481856149d1565b9350613f148185602086016149fd565b9290920192915050565b613e39816149e6565b6000613f32826149c4565b613f3c81856149c8565b9350613f4c8185602086016149fd565b613f5581614a29565b9093019392505050565b6000613f6c6041836149c8565b7f4d756c7469466565446973747269627574696f6e3a3a7265636f76657245524381527f32303a2043616e6e6f74207769746864726177207374616b696e6720746f6b656020820152603760f91b604082015260600192915050565b6000613fd5602d836149c8565b7f537472696b655374616b696e673a696e697469616c697a653a20416c7265616481526c1e481a5b9a5d1a585b1a5e9959609a1b602082015260400192915050565b6000614024602a836149c8565b7f6f6e6c79207374616b696e672070726f78792061646d696e2063616e206368618152696e676520627261696e7360b01b602082015260400192915050565b6000614070604e836149c8565b7f4d756c7469466565446973747269627574696f6e3a3a72656d6f7665426c616381527f6b6c69737465644c6f636b733a204f6e6c79207265776172642064697374726960208201526d189d5d1bdc9cc8185b1b1bddd95960921b604082015260600192915050565b60006140e6601b836149c8565b7f536166654d6174683a206164646974696f6e206f766572666c6f770000000000815260200192915050565b600061411f6031836149c8565b7f4d756c7469466565446973747269627574696f6e3a3a77697468647261773a20815270043616e6e6f74207769746864726177203607c1b602082015260400192915050565b60006141726020836149c8565b7f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815260200192915050565b60006141ab601e836149c8565b7f4d756c7469466565446973747269627574696f6e3a3a30206561726e65640000815260200192915050565b60006141e46020836149c8565b7f4143434550545f41444d494e5f50454e44494e475f41444d494e5f434845434b815260200192915050565b600061421d6028836149c8565b7f4d756c7469466565446973747269627574696f6e3a3a6164645265776172643a81526708125b9d985b1a5960c21b602082015260400192915050565b60006142676021836149c8565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f8152607760f81b602082015260400192915050565b60006142aa6040836149c8565b7f4d756c7469466565446973747269627574696f6e3a3a7265636f76657245524381527f32303a2043616e6e6f742077697468647261772072657761726420746f6b656e602082015260400192915050565b6000614309602b836149c8565b7f4d756c7469466565446973747269627574696f6e3a3a7374616b653a2043616e81526a06e6f74207374616b6520360ac1b602082015260400192915050565b6000614356604a836149c8565b7f4d756c7469466565446973747269627574696f6e3a3a6e6f746966795265776181527f7264416d6f756e743a204f6e6c7920726577617264206469737472696275746f6020820152691c9cc8185b1b1bddd95960b21b604082015260600192915050565b60006143c86033836149c8565b7f4d756c7469466565446973747269627574696f6e3a3a6e6f74696679526577618152721c99105b5bdd5b9d0e88139bc81c995dd85c99606a1b602082015260400192915050565b600061441d6011836149c8565b7013db9b1e481b1bd8dac8195b98589b1959607a1b815260200192915050565b600061444a6037836149c8565b7f4d756c7469466565446973747269627574696f6e3a3a617070726f766552657781527f6172644469737472696275746f723a20496e76616c6964000000000000000000602082015260400192915050565b60006144a9602a836149c8565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e8152691bdd081cdd58d8d9595960b21b602082015260400192915050565b60006144f56017836149c8565b7f63616c6c6572206973206e6f74207468652061646d696e000000000000000000815260200192915050565b600061452e600e836149c8565b6d139bc8189b1858dadb1a5cdd195960921b815260200192915050565b6000614558601f836149c8565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00815260200192915050565b60006145916024836149c8565b7f4d756c7469466565446973747269627574696f6e3a3a696e76616c69642065618152631c9b995960e21b602082015260400192915050565b60006145d76030836149c8565b7f4d756c7469466565446973747269627574696f6e3a3a6d696e743a204f6e6c7981526f081b5a5b9d195c9cc8185b1b1bddd95960821b602082015260400192915050565b6000614629601f836149c8565b7f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400815260200192915050565b6000614662600b836149c8565b6a109b1858dadb1a5cdd195960aa1b815260200192915050565b8051604083019061468d84826146b1565b50602082015161396f60208501826146b1565b8051604083019061468d8482613e30565b613e39816120e1565b60006135028284613eef565b60208101611eb78284613e30565b604081016146e28285613e30565b6135026020830184613e30565b606081016146fd8286613e30565b61470a6020830185613e30565b61371a60408301846146b1565b604081016147258285613e30565b61350260208301846146b1565b602080825281016135028184613e98565b60208101611eb78284613ee6565b60208101611eb78284613f1e565b602080825281016135028184613f27565b60208082528101611eb781613f5f565b60208082528101611eb781613fc8565b60208082528101611eb781614017565b60208082528101611eb781614063565b60208082528101611eb7816140d9565b60208082528101611eb781614112565b60208082528101611eb781614165565b60208082528101611eb78161419e565b60208082528101611eb7816141d7565b60208082528101611eb781614210565b60208082528101611eb78161425a565b60208082528101611eb78161429d565b60208082528101611eb7816142fc565b60208082528101611eb781614349565b60208082528101611eb7816143bb565b60208082528101611eb781614410565b60208082528101611eb78161443d565b60208082528101611eb78161449c565b60208082528101611eb7816144e8565b60208082528101611eb781614521565b60208082528101611eb78161454b565b60208082528101611eb781614584565b60208082528101611eb7816145ca565b60208082528101611eb78161461c565b60208082528101611eb781614655565b60208101611eb782846146b1565b6040810161491c82856146b1565b818103602083015261371a8184613e3f565b6040810161472582856146b1565b6080810161494a82876146b1565b61495760208301866146b1565b61496460408301856146b1565b81810360608301526149768184613e3f565b9695505050505050565b6080810161498e82876146b1565b61499b60208301866146b1565b6149a860408301856146b1565b6149b560608301846146b1565b95945050505050565b60200190565b5190565b90815260200190565b919050565b6000611eb7826149f1565b151590565b6000611eb7826149d6565b6001600160a01b031690565b60005b83811015614a18578181015183820152602001614a00565b8381111561396f5750506000910152565b601f01601f191690565b614a3c816149d6565b8114613b3157600080fd5b614a3c816149e1565b614a3c816149e6565b614a3c816120e156fea365627a7a723158202e8102a5c5196dbf70f02a1314b38e753ab533b2e4d9fc8b30796afad4c3de126c6578706572696d656e74616cf564736f6c63430005100040
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061027f5760003560e01c80637035ab981161015c578063bcd11014116100ce578063df37987611610087578063df37987614610528578063e70b9e2714610549578063e9fad8ee1461055c578063f122977714610564578063f46eccc414610577578063f851a4401461058a5761027f565b8063bcd11014146104d5578063ca5c7b91146104e8578063ce6d67cd146104f0578063db2e21bc146104f8578063dc01f60d14610500578063dcf23888146105205761027f565b806392c72cc31161012057806392c72cc314610484578063946d92041461048c5780639bd4ef501461049f578063a01c77bc146104a7578063abe50f19146104af578063b66503cf146104c25761027f565b80637035ab981461042e57806372f702f3146104415780637bb7bed1146104565780638980f11f146104695780638da5cb5b1461047c5761027f565b8063386a9525116101f557806341ac34e5116101b957806341ac34e5146103ac57806348e5d9f8146103bf5780635e0fac2e146103e2578063638634ee146103f55780636724c910146104085780636eacd3981461041b5761027f565b8063386a95251461035657806339fc97131461035e5780633d18b9121461037e57806340b47e1a1461038657806340c10f19146103995761027f565b806318160ddd1161024757806318160ddd146102f65780631d504dc6146102fe5780631eba433b1461031357806326782247146103265780632e1a7d4d1461033b57806332c991b51461034e5761027f565b806302b629381461028457806304554443146102ae5780630483a7f6146102c357806309eba343146102e6578063165c7ae1146102ee575b600080fd5b610297610292366004613bfa565b610592565b6040516102a592919061492e565b60405180910390f35b6102b66106e7565b6040516102a59190614900565b6102d66102d1366004613bfa565b6106ee565b6040516102a5949392919061493c565b6102b6610873565b6102b661087a565b6102b6610881565b61031161030c366004613da4565b610887565b005b610311610321366004613c70565b610987565b61032e610e6d565b6040516102a591906146c6565b610311610349366004613dc2565b610e7c565b6102b6611501565b6102b6611507565b61037161036c366004613c36565b61150e565b6040516102a59190614743565b61031161152e565b610311610394366004613c36565b611862565b6103116103a7366004613d56565b6119c0565b61032e6103ba366004613dc2565b611dc9565b6103d26103cd366004613bfa565b611df0565b6040516102a59493929190614980565b6102b66103f0366004613bfa565b611e17565b6102b6610403366004613bfa565b611e93565b610311610416366004613cbd565b611ebd565b6102b6610429366004613bfa565b611f90565b6102b661043c366004613c36565b611fab565b610449611fc8565b6040516102a59190614751565b61032e610464366004613dc2565b611fd7565b610311610477366004613d56565b611fe4565b61032e6120d4565b61032e6120e4565b61031161049a366004613d00565b6120f3565b6102b6612262565b610311612268565b6103116104bd366004613de0565b6123f5565b6103116104d0366004613d56565b612892565b6102b66104e3366004613bfa565b612b36565b6102b6612b65565b61032e612b6b565b610311612b7a565b61051361050e366004613bfa565b612e67565b6040516102a59190614732565b610311612fb7565b61053b610536366004613bfa565b613095565b6040516102a592919061490e565b6102b6610557366004613c36565b6131a4565b6103116131c1565b6102b6610572366004613bfa565b6134d0565b610371610585366004613bfa565b613509565b61032e61351e565b6001600160a01b0381166000908152600e6020526040812060030154819080156106a1576001600160a01b038416600090815260106020526040812054905b8181101561069e576001600160a01b03861660009081526010602052604081208054839081106105fd57fe5b906000526020600020906002020160000154905080600014156106205750610696565b6001600160a01b0387166000908152601060205260408120805461067b91908590811061064957fe5b90600052602060002090600202016040518060400160405290816000820154815260200160018201548152505061352d565b925061069191508790508263ffffffff6135a616565b955050505b6001016105d1565b50505b6001600160a01b0384166000908152600e60205260409020600101546106df9083906106d3908463ffffffff6135a616565b9063ffffffff6135cb16565b925050915091565b626ebe0081565b6001600160a01b0381166000908152600f602052604081208190819060609082805b825481101561084b574283828154811061072657fe5b90600052602060002090600202016001015411156108135781610787578083805490500360405190808252806020026020018201604052801561078357816020015b610770613af6565b8152602001906001900390816107685790505b5093505b82818154811061079357fe5b9060005260206000209060020201604051806040016040529081600082015481526020016001820154815250508483815181106107cc57fe5b6020026020010181905250818060010192505061080c8382815481106107ee57fe5b6000918252602090912060029091020154869063ffffffff6135a616565b9450610843565b61084083828154811061082257fe5b6000918252602090912060029091020154879063ffffffff6135a616565b95505b600101610710565b5050506001600160a01b0385166000908152600e602052604090206002015493509193509193565b620186a081565b62093a8081565b600c5481565b806001600160a01b031663f851a4406040518163ffffffff1660e01b815260040160206040518083038186803b1580156108c057600080fd5b505afa1580156108d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506108f89190810190613c18565b6001600160a01b0316336001600160a01b0316146109315760405162461bcd60e51b815260040161092890614790565b60405180910390fd5b806001600160a01b031663c1e803346040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561096c57600080fd5b505af1158015610980573d6000803e3d6000fd5b5050505050565b82733cab82103fccadbe95f7ab18d7d00c08ce4dd8c36001600160a01b038216146109c45760405162461bcd60e51b8152600401610928906148a0565b600454600d5485916001600160a01b0316906000906109e3838261360d565b6001600160a01b038416600090815260066020526040902060030155610a0883611e93565b6001600160a01b03808516600090815260066020526040902060020191909155841615610ab4576001600160a01b0384166000908152600e6020526040902060020154610a599085908590846136a8565b6001600160a01b038086166000818152600b60209081526040808320948916808452948252808320959095556006815284822060030154838352600a825285832094835293815284822093909355908152600e909152205491505b50600c5460015b600554811015610ba05760058181548110610ad257fe5b6000918252602090912001546001600160a01b03169350610af3848361360d565b6001600160a01b038516600090815260066020526040902060030155610b1884611e93565b6001600160a01b03808616600090815260066020526040902060020191909155851615610b9857610b4b858585856136a8565b6001600160a01b038087166000818152600b60209081526040808320948a16808452948252808320959095556006815284822060030154928252600a815284822093825292909252919020555b600101610abb565b506001600160a01b038716600090815260096020908152604080832033845290915290205460ff16610be45760405162461bcd60e51b8152600401610928906147a0565b6001600160a01b0388166000908152600f60209081526040808320600e909252822081549192909142846000198301838110610c1c57fe5b90600052602060002090600202016001015411610c625760028301546001600160a01b038d166000908152600f60205260408120919350610c5d9190613b10565b610cf5565b60005b81811015610cf35742858281548110610c7a57fe5b9060005260206000209060020201600101541115610c9757610cf3565b610cc4858281548110610ca657fe5b6000918252602090912060029091020154849063ffffffff6135a616565b9250848181548110610cd257fe5b60009182526020822060029091020181815560019081019190915501610c65565b505b6002830154610d0a908363ffffffff6135cb16565b60028401558254610d21908363ffffffff6135cb16565b8355600c54610d36908363ffffffff6135cb16565b600c55600d54610d4c908363ffffffff6135cb16565b600d55600454610d6c906001600160a01b03168b8463ffffffff61372216565b60005b600554811015610e5e576001600160a01b038d166000908152600b602052604081206005805491929184908110610da257fe5b60009182526020808320909101546001600160a01b0316835282019290925260400190205492508215610e56576001600160a01b038d166000908152600b602052604081206005805483919085908110610df857fe5b60009182526020808320909101546001600160a01b0316835282019290925260400190205560058054610e56918d9186919085908110610e3457fe5b6000918252602090912001546001600160a01b0316919063ffffffff61372216565b600101610d6f565b50505050505050505050505050565b6001546001600160a01b031681565b60115460ff16610e9e5760405162461bcd60e51b8152600401610928906148b0565b6011805460ff19169055600454600d5433916001600160a01b031690600090610ec7838261360d565b6001600160a01b038416600090815260066020526040902060030155610eec83611e93565b6001600160a01b03808516600090815260066020526040902060020191909155841615610f98576001600160a01b0384166000908152600e6020526040902060020154610f3d9085908590846136a8565b6001600160a01b038086166000818152600b60209081526040808320948916808452948252808320959095556006815284822060030154838352600a825285832094835293815284822093909355908152600e909152205491505b50600c5460015b6005548110156110845760058181548110610fb657fe5b6000918252602090912001546001600160a01b03169350610fd7848361360d565b6001600160a01b038516600090815260066020526040902060030155610ffc84611e93565b6001600160a01b0380861660009081526006602052604090206002019190915585161561107c5761102f858585856136a8565b6001600160a01b038087166000818152600b60209081526040808320948a16808452948252808320959095556006815284822060030154928252600a815284822093825292909252919020555b600101610f9f565b5033733cab82103fccadbe95f7ab18d7d00c08ce4dd8c38114156110ba5760405162461bcd60e51b8152600401610928906148f0565b600086116110da5760405162461bcd60e51b8152600401610928906147c0565b336000818152600e6020526040812060018101548911611113576001810154611109908a63ffffffff6135cb16565b600182015561142f565b600061112c82600101548b6135cb90919063ffffffff16565b905080826003015410156111525760405162461bcd60e51b8152600401610928906148c0565b6000600183018190556003830154905b6001600160a01b038616600090815260106020526040812080548390811061118657fe5b906000526020600020906002020160000154905080600014156111a95750611316565b6001600160a01b038716600090815260106020526040812080546111d291908590811061064957fe5b5091506000905061120e6111ef620186a08463ffffffff6135cb16565b61120288620186a063ffffffff61378016565b9063ffffffff6137ba16565b9050828110611263575081611250611243620186a0611202611236828763ffffffff6135cb16565b879063ffffffff61378016565b879063ffffffff6135cb16565b95508561125e576001909301925b6112ad565b611273838263ffffffff6135cb16565b6001600160a01b038a16600090815260106020526040902080548690811061129757fe5b6000918252602082206002909102019190915595505b6112bd858263ffffffff6135cb16565b94506112e66112d9620186a0611202848663ffffffff61378016565b899063ffffffff6135a616565b9750856112f55750505061131e565b846113125760405162461bcd60e51b8152600401610928906147e0565b5050505b600101611162565b801561142757805b6001600160a01b0387166000908152601060205260409020548110156113cf576001600160a01b038716600090815260106020526040902080548290811061136a57fe5b906000526020600020906002020160106000896001600160a01b03166001600160a01b03168152602001908152602001600020838303815481106113aa57fe5b6000918252602090912082546002909202019081556001918201549082015501611326565b5060005b81811015611425576001600160a01b03871660009081526010602052604090208054806113fc57fe5b6000828152602081206002600019909301928302018181556001908101919091559155016113d3565b505b506003830155505b60006114418a8463ffffffff6135a616565b8254909150611456908263ffffffff6135cb16565b8255600c5461146b908263ffffffff6135cb16565b600c5560045461148b906001600160a01b0316338c63ffffffff61372216565b82156114a7576004546114a7906001600160a01b0316846137fc565b336001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d58b6040516114e09190614900565b60405180910390a250506011805460ff191660011790555050505050505050565b61fde881565b6212750081565b600960209081526000928352604080842090915290825290205460ff1681565b60115460ff166115505760405162461bcd60e51b8152600401610928906148b0565b6011805460ff19169055600454600d5433916001600160a01b031690600090611579838261360d565b6001600160a01b03841660009081526006602052604090206003015561159e83611e93565b6001600160a01b0380851660009081526006602052604090206002019190915584161561164a576001600160a01b0384166000908152600e60205260409020600201546115ef9085908590846136a8565b6001600160a01b038086166000818152600b60209081526040808320948916808452948252808320959095556006815284822060030154838352600a825285832094835293815284822093909355908152600e909152205491505b50600c5460015b600554811015611736576005818154811061166857fe5b6000918252602090912001546001600160a01b03169350611689848361360d565b6001600160a01b0385166000908152600660205260409020600301556116ae84611e93565b6001600160a01b0380861660009081526006602052604090206002019190915585161561172e576116e1858585856136a8565b6001600160a01b038087166000818152600b60209081526040808320948a16808452948252808320959095556006815284822060030154928252600a815284822093825292909252919020555b600101611651565b5033733cab82103fccadbe95f7ab18d7d00c08ce4dd8c381141561176c5760405162461bcd60e51b8152600401610928906148f0565b60005b60055481101561184d5760006005828154811061178857fe5b6000918252602080832090910154338352600b825260408084206001600160a01b0390921680855291909252912054909150801561184357336000818152600b602090815260408083206001600160a01b03871680855292528220919091556117f7918363ffffffff61372216565b816001600160a01b0316336001600160a01b03167f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e8360405161183a9190614900565b60405180910390a35b505060010161176f565b50506011805460ff1916600117905550505050565b6000546001600160a01b0316331461188c5760405162461bcd60e51b815260040161092890614890565b6001600160a01b038216600090815260066020526040902060020154156118c55760405162461bcd60e51b815260040161092890614800565b6005805460018082019092557f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b0319166001600160a01b03858116918217909255600081815260066020908152604080832042600282018190559055600982528083209487168352939052828120805460ff1916909417909355905190917ff3e4c2c64e71e6ba2eaab9a599bced62f9eb91d2cda610bf41aa8c80ff2cf82691a2806001600160a01b0316826001600160a01b03167fd890240fb430b9ed4ff1d263f43a0a2922d16349b3d2d71015f86a3e1d3e884860016040516119b49190614743565b60405180910390a35050565b600454600d5483916001600160a01b0316906000906119df838261360d565b6001600160a01b038416600090815260066020526040902060030155611a0483611e93565b6001600160a01b03808516600090815260066020526040902060020191909155841615611ab0576001600160a01b0384166000908152600e6020526040902060020154611a559085908590846136a8565b6001600160a01b038086166000818152600b60209081526040808320948916808452948252808320959095556006815284822060030154838352600a825285832094835293815284822093909355908152600e909152205491505b50600c5460015b600554811015611b9c5760058181548110611ace57fe5b6000918252602090912001546001600160a01b03169350611aef848361360d565b6001600160a01b038516600090815260066020526040902060030155611b1484611e93565b6001600160a01b03808616600090815260066020526040902060020191909155851615611b9457611b47858585856136a8565b6001600160a01b038087166000818152600b60209081526040808320948a16808452948252808320959095556006815284822060030154928252600a815284822093825292909252919020555b600101611ab7565b5085733cab82103fccadbe95f7ab18d7d00c08ce4dd8c36001600160a01b0382161415611bdb5760405162461bcd60e51b8152600401610928906148f0565b3360009081526007602052604090205460ff16611c0a5760405162461bcd60e51b8152600401610928906148d0565b600c54611c1d908763ffffffff6135a616565b600c556001600160a01b0387166000908152600e602052604090208054611c4a908863ffffffff6135a616565b81556003810154611c61908863ffffffff6135a616565b60038201556000611c9e626ebe00611c9262093a80611c86428263ffffffff6137ba16565b9063ffffffff61378016565b9063ffffffff6135a616565b6001600160a01b038a166000908152601060205260409020805491925090801580611ce8575082826001830381548110611cd457fe5b906000526020600020906002020160010154105b15611d2a57604080518082019091528a815260208082018581528454600181810187556000878152939093209351600290910290930192835551910155611d7b565b611d5a8a836001840381548110611d3d57fe5b60009182526020909120600290910201549063ffffffff6135a616565b826001830381548110611d6957fe5b60009182526020909120600290910201555b8a6001600160a01b03167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d8b604051611db49190614900565b60405180910390a25050505050505050505050565b60088181548110611dd657fe5b6000918252602090912001546001600160a01b0316905081565b60066020526000908152604090208054600182015460028301546003909301549192909184565b6001600160a01b0381166000908152600e60209081526040808320600101546010909252822090915b8154811015611e8c5742828281548110611e5657fe5b9060005260206000209060020201600101541115611e7357611e8c565b611e82828281548110610ca657fe5b9250600101611e40565b5050919050565b6001600160a01b038116600090815260066020526040812054611eb7904290613935565b92915050565b6000546001600160a01b03163314611ee75760405162461bcd60e51b815260040161092890614890565b6001600160a01b038316600090815260066020526040902060020154611f1f5760405162461bcd60e51b815260040161092890614870565b6001600160a01b0383811660008181526009602090815260408083209487168084529490915290819020805460ff1916851515179055517fd890240fb430b9ed4ff1d263f43a0a2922d16349b3d2d71015f86a3e1d3e884890611f83908590614743565b60405180910390a3505050565b6001600160a01b03166000908152600e602052604090205490565b600a60209081526000928352604080842090915290825290205481565b6004546001600160a01b031681565b60058181548110611dd657fe5b6000546001600160a01b0316331461200e5760405162461bcd60e51b815260040161092890614890565b6004546001600160a01b038381169116141561203c5760405162461bcd60e51b815260040161092890614770565b6001600160a01b038216600090815260066020526040902060020154156120755760405162461bcd60e51b815260040161092890614820565b6120976120806120d4565b6001600160a01b038416908363ffffffff61372216565b7f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa2882826040516120c8929190614717565b60405180910390a15050565b6000546001600160a01b03165b90565b6003546001600160a01b031681565b6004546001600160a01b03161561211c5760405162461bcd60e51b815260040161092890614780565b6011805460ff19166001179055600480546001600160a01b0385166001600160a01b031990911617905560005b818110156121fb5760016007600085858581811061216357fe5b90506020020160206121789190810190613bfa565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905560088383838181106121ae57fe5b90506020020160206121c39190810190613bfa565b815460018082018455600093845260209093200180546001600160a01b0319166001600160a01b039290921691909117905501612149565b505060058054600181019091557f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b039093166001600160a01b03199093168317905550600090815260066020526040902042600282018190559055565b6161a881565b33733cab82103fccadbe95f7ab18d7d00c08ce4dd8c381141561229d5760405162461bcd60e51b8152600401610928906148f0565b336000908152600f60209081526040808320600e9092528220815491929091428460001983018381106122cc57fe5b90600052602060002090600202016001015411612309576002830154336000908152600f602052604081209193506123049190613b10565b61237e565b60005b8181101561237c574285828154811061232157fe5b906000526020600020906002020160010154111561233e5761237c565b61234d858281548110610ca657fe5b925084818154811061235b57fe5b6000918252602082206002909102018181556001908101919091550161230c565b505b6002830154612393908363ffffffff6135cb16565b600284015582546123aa908363ffffffff6135cb16565b8355600c546123bf908363ffffffff6135cb16565b600c55600d546123d5908363ffffffff6135cb16565b600d55600454610980906001600160a01b0316338463ffffffff61372216565b60115460ff166124175760405162461bcd60e51b8152600401610928906148b0565b6011805460ff19169055600454600d5433916001600160a01b031690600090612440838261360d565b6001600160a01b03841660009081526006602052604090206003015561246583611e93565b6001600160a01b03808516600090815260066020526040902060020191909155841615612511576001600160a01b0384166000908152600e60205260409020600201546124b69085908590846136a8565b6001600160a01b038086166000818152600b60209081526040808320948916808452948252808320959095556006815284822060030154838352600a825285832094835293815284822093909355908152600e909152205491505b50600c5460015b6005548110156125fd576005818154811061252f57fe5b6000918252602090912001546001600160a01b03169350612550848361360d565b6001600160a01b03851660009081526006602052604090206003015561257584611e93565b6001600160a01b038086166000908152600660205260409020600201919091558516156125f5576125a8858585856136a8565b6001600160a01b038087166000818152600b60209081526040808320948a16808452948252808320959095556006815284822060030154928252600a815284822093825292909252919020555b600101612518565b5033733cab82103fccadbe95f7ab18d7d00c08ce4dd8c38114156126335760405162461bcd60e51b8152600401610928906148f0565b600087116126535760405162461bcd60e51b815260040161092890614830565b6001861515146126755760405162461bcd60e51b815260040161092890614860565b600c54612688908863ffffffff6135a616565b600c55336000908152600e6020526040902080546126ac908963ffffffff6135a616565b8155861561280157600d546126c7908963ffffffff6135a616565b600d5560028101546126df908963ffffffff6135a616565b60028201556000612704626ebe00611c9262093a80611c86428263ffffffff6137ba16565b336000908152600f60205260409020549091508015806127555750336000908152600f602052604090208054839190600019840190811061274157fe5b906000526020600020906002020160010154105b156127a457336000908152600f6020908152604080832081518083019092528d8252818301868152815460018181018455928652939094209151600290930290910191825591519101556127fa565b336000908152600f6020526040902080546127c9918c916000198501908110611d3d57fe5b336000908152600f60205260409020805460001984019081106127e857fe5b60009182526020909120600290910201555b505061281c565b6001810154612816908963ffffffff6135a616565b60018201555b60045461283a906001600160a01b031633308b63ffffffff61394b16565b336001600160a01b03167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d896040516128739190614900565b60405180910390a250506011805460ff19166001179055505050505050565b600454600d546000916001600160a01b03169082906128b1838261360d565b6001600160a01b0384166000908152600660205260409020600301556128d683611e93565b6001600160a01b03808516600090815260066020526040902060020191909155841615612982576001600160a01b0384166000908152600e60205260409020600201546129279085908590846136a8565b6001600160a01b038086166000818152600b60209081526040808320948916808452948252808320959095556006815284822060030154838352600a825285832094835293815284822093909355908152600e909152205491505b50600c5460015b600554811015612a6e57600581815481106129a057fe5b6000918252602090912001546001600160a01b031693506129c1848361360d565b6001600160a01b0385166000908152600660205260409020600301556129e684611e93565b6001600160a01b03808616600090815260066020526040902060020191909155851615612a6657612a19858585856136a8565b6001600160a01b038087166000818152600b60209081526040808320948a16808452948252808320959095556006815284822060030154928252600a815284822093825292909252919020555b600101612989565b506001600160a01b038616600090815260096020908152604080832033845290915290205460ff16612ab25760405162461bcd60e51b815260040161092890614840565b60008511612ad25760405162461bcd60e51b815260040161092890614850565b612aed6001600160a01b03871633308863ffffffff61394b16565b612af786866137fc565b7fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d85604051612b269190614900565b60405180910390a1505050505050565b6001600160a01b038116600090815260066020526040812060010154611eb7906212750063ffffffff61378016565b600d5481565b6002546001600160a01b031681565b600454600d5433916001600160a01b031690600090612b99838261360d565b6001600160a01b038416600090815260066020526040902060030155612bbe83611e93565b6001600160a01b03808516600090815260066020526040902060020191909155841615612c6a576001600160a01b0384166000908152600e6020526040902060020154612c0f9085908590846136a8565b6001600160a01b038086166000818152600b60209081526040808320948916808452948252808320959095556006815284822060030154838352600a825285832094835293815284822093909355908152600e909152205491505b50600c5460015b600554811015612d565760058181548110612c8857fe5b6000918252602090912001546001600160a01b03169350612ca9848361360d565b6001600160a01b038516600090815260066020526040902060030155612cce84611e93565b6001600160a01b03808616600090815260066020526040902060020191909155851615612d4e57612d01858585856136a8565b6001600160a01b038087166000818152600b60209081526040808320948a16808452948252808320959095556006815284822060030154928252600a815284822093825292909252919020555b600101612c71565b5033733cab82103fccadbe95f7ab18d7d00c08ce4dd8c3811415612d8c5760405162461bcd60e51b8152600401610928906148f0565b600080612d9833610592565b336000908152601060205260408120929450909250612db79190613b10565b336000908152600e60205260409020600381015460018201548254612de792916106d3919063ffffffff6135cb16565b81556000600182018190556003820155612e19612e0a848463ffffffff6135a616565b600c549063ffffffff6135cb16565b600c55600454612e39906001600160a01b0316338563ffffffff61372216565b8115612e5557600454612e55906001600160a01b0316836137fc565b612e5d61152e565b5050505050505050565b6005546040805182815260208084028201019091526060918015612ea557816020015b612e92613b34565b815260200190600190039081612e8a5790505b50905060005b8151811015612fb15760008115612eda576001600160a01b0384166000908152600e6020526040902054612ef7565b6001600160a01b0384166000908152600e60205260409020600201545b905060008215612f0957600c54612f0d565b600d545b905060058381548110612f1c57fe5b9060005260206000200160009054906101000a90046001600160a01b0316848481518110612f4657fe5b6020026020010151600001906001600160a01b031690816001600160a01b031681525050612f8d85858581518110612f7a57fe5b60200260200101516000015184846136a8565b848481518110612f9957fe5b60209081029190910181015101525050600101612eab565b50919050565b6001546001600160a01b031633148015612fd057503315155b612fec5760405162461bcd60e51b8152600401610928906147f0565b60008054600180546001600160a01b038082166001600160a01b03198086168217968790559092169092556040519282169390927ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc926130509286929116906146d4565b60405180910390a16001546040517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a9916120c89184916001600160a01b0316906146d4565b6001600160a01b038116600090815260106020526040812060609082805b825481101561319c57428382815481106130c957fe5b9060005260206000209060020201600101541115613194578161312a578083805490500360405190808252806020026020018201604052801561312657816020015b613113613af6565b81526020019060019003908161310b5790505b5093505b82818154811061313657fe5b90600052602060002090600202016040518060400160405290816000820154815260200160018201548152505084838151811061316f57fe5b602002602001018190525081806001019250506131918382815481106107ee57fe5b94505b6001016130b3565b505050915091565b600b60209081526000928352604080842090915290825290205481565b60115460ff166131e35760405162461bcd60e51b8152600401610928906148b0565b6011805460ff19169055600454600d5433916001600160a01b03169060009061320c838261360d565b6001600160a01b03841660009081526006602052604090206003015561323183611e93565b6001600160a01b038085166000908152600660205260409020600201919091558416156132dd576001600160a01b0384166000908152600e60205260409020600201546132829085908590846136a8565b6001600160a01b038086166000818152600b60209081526040808320948916808452948252808320959095556006815284822060030154838352600a825285832094835293815284822093909355908152600e909152205491505b50600c5460015b6005548110156133c957600581815481106132fb57fe5b6000918252602090912001546001600160a01b0316935061331c848361360d565b6001600160a01b03851660009081526006602052604090206003015561334184611e93565b6001600160a01b038086166000908152600660205260409020600201919091558516156133c157613374858585856136a8565b6001600160a01b038087166000818152600b60209081526040808320948a16808452948252808320959095556006815284822060030154928252600a815284822093825292909252919020555b6001016132e4565b5033733cab82103fccadbe95f7ab18d7d00c08ce4dd8c38114156133ff5760405162461bcd60e51b8152600401610928906148f0565b60008061340b33610592565b33600090815260106020526040812092945090925061342a9190613b10565b336000908152600e6020526040902060038101546001820154825461345a92916106d3919063ffffffff6135cb16565b8155600060018201819055600382015561347d612e0a848463ffffffff6135a616565b600c5560045461349d906001600160a01b0316338563ffffffff61372216565b81156134b9576004546134b9906001600160a01b0316836137fc565b50506011805460ff19166001179055505050505050565b60045460009081906001600160a01b038481169116146134f257600c546134f6565b600d545b9050613502838261360d565b9392505050565b60076020526000908152604090205460ff1681565b6000546001600160a01b031681565b6000806000428460200151111561356e5761356b6161a8611c926212750060060261120261fde8611c86428b602001516135cb90919063ffffffff16565b91505b835161358990620186a090611202908563ffffffff61378016565b845190915061359e908263ffffffff6135cb16565b949193509150565b6000828201838110156135025760405162461bcd60e51b8152600401610928906147b0565b600061350283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613975565b60008161363657506001600160a01b038216600090815260066020526040902060030154611eb7565b6001600160a01b038316600090815260066020526040902060018101546002909101546135029161368091859161120291670de0b6b3a764000091611c869182906106d38c611e93565b6001600160a01b0385166000908152600660205260409020600301549063ffffffff6135a616565b6001600160a01b038085166000818152600b6020908152604080832094881680845294825280832054938352600a8252808320948352939052918220546137179190611c9290670de0b6b3a7640000906112029061370a906106d38b8a61360d565b889063ffffffff61378016565b90505b949350505050565b60405161377b90849063a9059cbb60e01b906137449086908690602401614717565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526139a1565b505050565b60008261378f57506000611eb7565b8282028284828161379c57fe5b04146135025760405162461bcd60e51b815260040161092890614810565b600061350283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613a86565b6001600160a01b038216600090815260066020526040902054421061384f5761382e816212750063ffffffff6137ba16565b6001600160a01b0383166000908152600660205260409020600101556138e1565b6001600160a01b038216600090815260066020526040812054613878904263ffffffff6135cb16565b6001600160a01b038416600090815260066020526040812060010154919250906138a990839063ffffffff61378016565b90506138c262127500611202858463ffffffff6135a616565b6001600160a01b03851660009081526006602052604090206001015550505b6001600160a01b0382166000908152600660205260409020426002909101819055613915906212750063ffffffff6135a616565b6001600160a01b0390921660009081526006602052604090209190915550565b60008183106139445781613502565b5090919050565b60405161396f9085906323b872dd60e01b90613744908790879087906024016146ef565b50505050565b600081848411156139995760405162461bcd60e51b8152600401610928919061475f565b505050900390565b6139b3826001600160a01b0316613abd565b6139cf5760405162461bcd60e51b8152600401610928906148e0565b60006060836001600160a01b0316836040516139eb91906146ba565b6000604051808303816000865af19150503d8060008114613a28576040519150601f19603f3d011682016040523d82523d6000602084013e613a2d565b606091505b509150915081613a4f5760405162461bcd60e51b8152600401610928906147d0565b80511561396f5780806020019051613a6a9190810190613d86565b61396f5760405162461bcd60e51b815260040161092890614880565b60008183613aa75760405162461bcd60e51b8152600401610928919061475f565b506000838581613ab357fe5b0495945050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061371a575050151592915050565b604051806040016040528060008152602001600081525090565b5080546000825560020290600052602060002090810190613b319190613b4b565b50565b604080518082019091526000808252602082015290565b6120e191905b80821115613b6b5760008082556001820155600201613b51565b5090565b8035611eb781614a33565b8051611eb781614a33565b60008083601f840112613b9757600080fd5b50813567ffffffffffffffff811115613baf57600080fd5b602083019150836020820283011115613bc757600080fd5b9250929050565b8035611eb781614a47565b8051611eb781614a47565b8035611eb781614a50565b8035611eb781614a59565b600060208284031215613c0c57600080fd5b600061371a8484613b6f565b600060208284031215613c2a57600080fd5b600061371a8484613b7a565b60008060408385031215613c4957600080fd5b6000613c558585613b6f565b9250506020613c6685828601613b6f565b9150509250929050565b600080600060608486031215613c8557600080fd5b6000613c918686613b6f565b9350506020613ca286828701613b6f565b9250506040613cb386828701613b6f565b9150509250925092565b600080600060608486031215613cd257600080fd5b6000613cde8686613b6f565b9350506020613cef86828701613b6f565b9250506040613cb386828701613bce565b600080600060408486031215613d1557600080fd5b6000613d218686613b6f565b935050602084013567ffffffffffffffff811115613d3e57600080fd5b613d4a86828701613b85565b92509250509250925092565b60008060408385031215613d6957600080fd5b6000613d758585613b6f565b9250506020613c6685828601613bef565b600060208284031215613d9857600080fd5b600061371a8484613bd9565b600060208284031215613db657600080fd5b600061371a8484613be4565b600060208284031215613dd457600080fd5b600061371a8484613bef565b60008060408385031215613df357600080fd5b6000613dff8585613bef565b9250506020613c6685828601613bce565b6000613e1c838361467c565b505060400190565b6000613e1c83836146a0565b613e39816149d6565b82525050565b6000613e4a826149c4565b613e5481856149c8565b9350613e5f836149be565b8060005b83811015613e8d578151613e778882613e10565b9750613e82836149be565b925050600101613e63565b509495945050505050565b6000613ea3826149c4565b613ead81856149c8565b9350613eb8836149be565b8060005b83811015613e8d578151613ed08882613e24565b9750613edb836149be565b925050600101613ebc565b613e39816149e1565b6000613efa826149c4565b613f0481856149d1565b9350613f148185602086016149fd565b9290920192915050565b613e39816149e6565b6000613f32826149c4565b613f3c81856149c8565b9350613f4c8185602086016149fd565b613f5581614a29565b9093019392505050565b6000613f6c6041836149c8565b7f4d756c7469466565446973747269627574696f6e3a3a7265636f76657245524381527f32303a2043616e6e6f74207769746864726177207374616b696e6720746f6b656020820152603760f91b604082015260600192915050565b6000613fd5602d836149c8565b7f537472696b655374616b696e673a696e697469616c697a653a20416c7265616481526c1e481a5b9a5d1a585b1a5e9959609a1b602082015260400192915050565b6000614024602a836149c8565b7f6f6e6c79207374616b696e672070726f78792061646d696e2063616e206368618152696e676520627261696e7360b01b602082015260400192915050565b6000614070604e836149c8565b7f4d756c7469466565446973747269627574696f6e3a3a72656d6f7665426c616381527f6b6c69737465644c6f636b733a204f6e6c79207265776172642064697374726960208201526d189d5d1bdc9cc8185b1b1bddd95960921b604082015260600192915050565b60006140e6601b836149c8565b7f536166654d6174683a206164646974696f6e206f766572666c6f770000000000815260200192915050565b600061411f6031836149c8565b7f4d756c7469466565446973747269627574696f6e3a3a77697468647261773a20815270043616e6e6f74207769746864726177203607c1b602082015260400192915050565b60006141726020836149c8565b7f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815260200192915050565b60006141ab601e836149c8565b7f4d756c7469466565446973747269627574696f6e3a3a30206561726e65640000815260200192915050565b60006141e46020836149c8565b7f4143434550545f41444d494e5f50454e44494e475f41444d494e5f434845434b815260200192915050565b600061421d6028836149c8565b7f4d756c7469466565446973747269627574696f6e3a3a6164645265776172643a81526708125b9d985b1a5960c21b602082015260400192915050565b60006142676021836149c8565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f8152607760f81b602082015260400192915050565b60006142aa6040836149c8565b7f4d756c7469466565446973747269627574696f6e3a3a7265636f76657245524381527f32303a2043616e6e6f742077697468647261772072657761726420746f6b656e602082015260400192915050565b6000614309602b836149c8565b7f4d756c7469466565446973747269627574696f6e3a3a7374616b653a2043616e81526a06e6f74207374616b6520360ac1b602082015260400192915050565b6000614356604a836149c8565b7f4d756c7469466565446973747269627574696f6e3a3a6e6f746966795265776181527f7264416d6f756e743a204f6e6c7920726577617264206469737472696275746f6020820152691c9cc8185b1b1bddd95960b21b604082015260600192915050565b60006143c86033836149c8565b7f4d756c7469466565446973747269627574696f6e3a3a6e6f74696679526577618152721c99105b5bdd5b9d0e88139bc81c995dd85c99606a1b602082015260400192915050565b600061441d6011836149c8565b7013db9b1e481b1bd8dac8195b98589b1959607a1b815260200192915050565b600061444a6037836149c8565b7f4d756c7469466565446973747269627574696f6e3a3a617070726f766552657781527f6172644469737472696275746f723a20496e76616c6964000000000000000000602082015260400192915050565b60006144a9602a836149c8565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e8152691bdd081cdd58d8d9595960b21b602082015260400192915050565b60006144f56017836149c8565b7f63616c6c6572206973206e6f74207468652061646d696e000000000000000000815260200192915050565b600061452e600e836149c8565b6d139bc8189b1858dadb1a5cdd195960921b815260200192915050565b6000614558601f836149c8565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00815260200192915050565b60006145916024836149c8565b7f4d756c7469466565446973747269627574696f6e3a3a696e76616c69642065618152631c9b995960e21b602082015260400192915050565b60006145d76030836149c8565b7f4d756c7469466565446973747269627574696f6e3a3a6d696e743a204f6e6c7981526f081b5a5b9d195c9cc8185b1b1bddd95960821b602082015260400192915050565b6000614629601f836149c8565b7f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400815260200192915050565b6000614662600b836149c8565b6a109b1858dadb1a5cdd195960aa1b815260200192915050565b8051604083019061468d84826146b1565b50602082015161396f60208501826146b1565b8051604083019061468d8482613e30565b613e39816120e1565b60006135028284613eef565b60208101611eb78284613e30565b604081016146e28285613e30565b6135026020830184613e30565b606081016146fd8286613e30565b61470a6020830185613e30565b61371a60408301846146b1565b604081016147258285613e30565b61350260208301846146b1565b602080825281016135028184613e98565b60208101611eb78284613ee6565b60208101611eb78284613f1e565b602080825281016135028184613f27565b60208082528101611eb781613f5f565b60208082528101611eb781613fc8565b60208082528101611eb781614017565b60208082528101611eb781614063565b60208082528101611eb7816140d9565b60208082528101611eb781614112565b60208082528101611eb781614165565b60208082528101611eb78161419e565b60208082528101611eb7816141d7565b60208082528101611eb781614210565b60208082528101611eb78161425a565b60208082528101611eb78161429d565b60208082528101611eb7816142fc565b60208082528101611eb781614349565b60208082528101611eb7816143bb565b60208082528101611eb781614410565b60208082528101611eb78161443d565b60208082528101611eb78161449c565b60208082528101611eb7816144e8565b60208082528101611eb781614521565b60208082528101611eb78161454b565b60208082528101611eb781614584565b60208082528101611eb7816145ca565b60208082528101611eb78161461c565b60208082528101611eb781614655565b60208101611eb782846146b1565b6040810161491c82856146b1565b818103602083015261371a8184613e3f565b6040810161472582856146b1565b6080810161494a82876146b1565b61495760208301866146b1565b61496460408301856146b1565b81810360608301526149768184613e3f565b9695505050505050565b6080810161498e82876146b1565b61499b60208301866146b1565b6149a860408301856146b1565b6149b560608301846146b1565b95945050505050565b60200190565b5190565b90815260200190565b919050565b6000611eb7826149f1565b151590565b6000611eb7826149d6565b6001600160a01b031690565b60005b83811015614a18578181015183820152602001614a00565b8381111561396f5750506000910152565b601f01601f191690565b614a3c816149d6565b8114613b3157600080fd5b614a3c816149e1565b614a3c816149e6565b614a3c816120e156fea365627a7a723158202e8102a5c5196dbf70f02a1314b38e753ab533b2e4d9fc8b30796afad4c3de126c6578706572696d656e74616cf564736f6c63430005100040
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.