Overview
ETH Balance
0 ETH
Eth Value
$0.00Token Holdings
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 3,046 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 16995265 | 635 days ago | IN | 0 ETH | 0.00494966 | ||||
Withdraw | 16240903 | 740 days ago | IN | 0 ETH | 0.00424112 | ||||
Get Reward | 15980561 | 777 days ago | IN | 0 ETH | 0.00122529 | ||||
Get Reward | 15844894 | 796 days ago | IN | 0 ETH | 0.0007439 | ||||
Withdraw | 15770898 | 806 days ago | IN | 0 ETH | 0.00535912 | ||||
Withdraw | 15770894 | 806 days ago | IN | 0 ETH | 0.00534163 | ||||
Withdraw | 15746943 | 809 days ago | IN | 0 ETH | 0.00442722 | ||||
Withdraw | 15743483 | 810 days ago | IN | 0 ETH | 0.00232491 | ||||
Get Reward | 15743477 | 810 days ago | IN | 0 ETH | 0.00119221 | ||||
Withdraw | 15729165 | 812 days ago | IN | 0 ETH | 0.00633297 | ||||
Withdraw | 15722642 | 813 days ago | IN | 0 ETH | 0.00522191 | ||||
Get Reward | 15711359 | 814 days ago | IN | 0 ETH | 0.00181442 | ||||
Withdraw | 15698643 | 816 days ago | IN | 0 ETH | 0.00142998 | ||||
Get Reward | 15698642 | 816 days ago | IN | 0 ETH | 0.00055008 | ||||
Get Reward | 15693030 | 817 days ago | IN | 0 ETH | 0.00060993 | ||||
Withdraw | 15687354 | 818 days ago | IN | 0 ETH | 0.00216318 | ||||
Withdraw | 15686307 | 818 days ago | IN | 0 ETH | 0.00147185 | ||||
Get Reward | 15686303 | 818 days ago | IN | 0 ETH | 0.00088527 | ||||
Withdraw | 15684365 | 818 days ago | IN | 0 ETH | 0.00306022 | ||||
Stake | 15681764 | 818 days ago | IN | 0 ETH | 0.00220202 | ||||
Withdraw | 15676566 | 819 days ago | IN | 0 ETH | 0.00249992 | ||||
Stake | 15672598 | 820 days ago | IN | 0 ETH | 0.006064 | ||||
Withdraw | 15657561 | 822 days ago | IN | 0 ETH | 0.00074268 | ||||
Get Reward | 15652413 | 823 days ago | IN | 0 ETH | 0.00054879 | ||||
Withdraw | 15648148 | 823 days ago | IN | 0 ETH | 0.00277625 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
MultiRewardsStake
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 100000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./helpers/ReentrancyGuard.sol"; import "./helpers/Ownable.sol"; import "./interfaces/IERC20.sol"; import "./libraries/Math.sol"; import "./libraries/SafeMath.sol"; import "./libraries/SafeERC20.sol"; //solhint-disable not-rely-on-time contract MultiRewardsStake is ReentrancyGuard, Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Base staking info IERC20 public stakingToken; uint256 public periodFinish; uint256 public rewardsDuration; uint256 public lastUpdateTime; // User reward info mapping(address => mapping (address => uint256)) private _userRewardPerTokenPaid; mapping(address => mapping (address => uint256)) private _rewards; // Reward token data uint256 private _totalRewardTokens; mapping (uint => RewardToken) private _rewardTokens; mapping (address => uint) private _rewardTokenToIndex; // User deposit data uint256 private _totalSupply; mapping(address => uint256) private _balances; // Store reward token data struct RewardToken { address token; uint256 rewardRate; uint256 rewardPerTokenStored; } constructor( address[] memory rewardTokens_, address stakingToken_ ) { stakingToken = IERC20(stakingToken_); _totalRewardTokens = rewardTokens_.length; for (uint i; i < rewardTokens_.length; i++) { _rewardTokens[i + 1] = RewardToken({ token: rewardTokens_[i], rewardRate: 0, rewardPerTokenStored: 0 }); _rewardTokenToIndex[rewardTokens_[i]] = i + 1; } rewardsDuration = 14 days; } /* VIEWS */ function totalSupply() external view returns (uint256) { return _totalSupply; } function balanceOf(address account) external view returns (uint256) { return _balances[account]; } function lastTimeRewardApplicable() public view returns (uint256) { return Math.min(block.timestamp, periodFinish); } function totalRewardTokens() external view returns (uint256) { return _totalRewardTokens; } // Get reward rate for all tokens function rewardPerToken() public view returns (uint256[] memory) { uint256[] memory tokens = new uint256[](_totalRewardTokens); if (_totalSupply == 0) { for (uint i = 0; i < _totalRewardTokens; i++) { tokens[i] = _rewardTokens[i + 1].rewardPerTokenStored; } } else { for (uint i = 0; i < _totalRewardTokens; i++) { RewardToken storage rewardToken = _rewardTokens[i + 1]; tokens[i] = rewardToken.rewardPerTokenStored.add( lastTimeRewardApplicable() .sub(lastUpdateTime) .mul(rewardToken.rewardRate) .mul(1e18) .div(_totalSupply) ); } } return tokens; } // Get reward rate for individual token function rewardForToken(address token) public view returns (uint256) { uint256 index = _rewardTokenToIndex[token]; if (_totalSupply == 0) { return _rewardTokens[index].rewardPerTokenStored; } else { return _rewardTokens[index].rewardPerTokenStored.add( lastTimeRewardApplicable() .sub(lastUpdateTime) .mul(_rewardTokens[index].rewardRate) .mul(1e18) .div(_totalSupply) ); } } function getRewardTokens() public view returns (RewardToken[] memory) { RewardToken[] memory tokens = new RewardToken[](_totalRewardTokens); for (uint i = 0; i < _totalRewardTokens; i++) { tokens[i] = _rewardTokens[i + 1]; } return tokens; } function earned(address account) public view returns (uint256[] memory) { uint256[] memory earnings = new uint256[](_totalRewardTokens); uint256[] memory tokenRewards = rewardPerToken(); for (uint i = 0; i < _totalRewardTokens; i++) { address token = _rewardTokens[i + 1].token; earnings[i] = _balances[account] .mul(tokenRewards[i] .sub(_userRewardPerTokenPaid[account][token]) ) .div(1e18) .add(_rewards[account][token] ); } return earnings; } function getRewardForDuration() external view returns (uint256[] memory) { uint256[] memory currentRewards = new uint256[](_totalRewardTokens); for (uint i = 0; i < _totalRewardTokens; i++) { currentRewards[i] = _rewardTokens[i + 1].rewardRate.mul(rewardsDuration); } return currentRewards; } /* === MUTATIONS === */ function stake(uint256 amount) external nonReentrant updateReward(msg.sender) { require(amount > 0, "Cannot stake 0"); uint256 currentBalance = stakingToken.balanceOf(address(this)); stakingToken.safeTransferFrom(msg.sender, address(this), amount); uint256 newBalance = stakingToken.balanceOf(address(this)); uint256 supplyDiff = newBalance.sub(currentBalance); _totalSupply = _totalSupply.add(supplyDiff); _balances[msg.sender] = _balances[msg.sender].add(supplyDiff); emit Staked(msg.sender, amount); } function withdraw(uint256 amount) public nonReentrant updateReward(msg.sender) { require(amount > 0, "Cannot withdraw 0"); _totalSupply = _totalSupply.sub(amount); _balances[msg.sender] = _balances[msg.sender].sub(amount); stakingToken.safeTransfer(msg.sender, amount); emit Withdrawn(msg.sender, amount); } function getReward() public nonReentrant updateReward(msg.sender) { for (uint i = 0; i < _totalRewardTokens; i++) { uint256 currentReward = _rewards[msg.sender][_rewardTokens[i + 1].token]; if (currentReward > 0) { _rewards[msg.sender][_rewardTokens[i + 1].token] = 0; IERC20(_rewardTokens[i + 1].token).safeTransfer(msg.sender, currentReward); emit RewardPaid(msg.sender, currentReward); } } } function exit() external { withdraw(_balances[msg.sender]); getReward(); } /* === RESTRICTED FUNCTIONS === */ function depositRewardTokens(uint256[] memory amount) external onlyOwner { require(amount.length == _totalRewardTokens, "Wrong amounts"); // uint256[] memory newRewards = new uint256[](_totalRewardTokens); for (uint i = 0; i < _totalRewardTokens; i++) { RewardToken storage rewardToken = _rewardTokens[i + 1]; uint256 prevBalance = IERC20(rewardToken.token).balanceOf(address(this)); IERC20(rewardToken.token).safeTransferFrom(msg.sender, address(this), amount[i]); uint reward = IERC20(rewardToken.token).balanceOf(address(this)).sub(prevBalance); if (block.timestamp >= periodFinish) { rewardToken.rewardRate = reward.div(rewardsDuration); } else { uint256 remaining = periodFinish.sub(block.timestamp); uint256 leftover = remaining.mul(rewardToken.rewardRate); rewardToken.rewardRate = reward.add(leftover).div(rewardsDuration); } uint256 balance = IERC20(rewardToken.token).balanceOf(address(this)); require(rewardToken.rewardRate <= balance.div(rewardsDuration), "Reward too high"); emit RewardAdded(reward); } lastUpdateTime = block.timestamp; periodFinish = block.timestamp.add(rewardsDuration); // notifyRewardAmount(newRewards); } function notifyRewardAmount(uint256[] memory reward) public onlyOwner updateReward(address(0)) { require(reward.length == _totalRewardTokens, "Wrong reward amounts"); for (uint i = 0; i < _totalRewardTokens; i++) { RewardToken storage rewardToken = _rewardTokens[i + 1]; if (block.timestamp >= periodFinish) { rewardToken.rewardRate = reward[i].div(rewardsDuration); } else { uint256 remaining = periodFinish.sub(block.timestamp); uint256 leftover = remaining.mul(rewardToken.rewardRate); rewardToken.rewardRate = reward[i].add(leftover).div(rewardsDuration); } uint256 balance = IERC20(rewardToken.token).balanceOf(address(this)); require(rewardToken.rewardRate <= balance.div(rewardsDuration), "Reward too high"); emit RewardAdded(reward[i]); } lastUpdateTime = block.timestamp; periodFinish = block.timestamp.add(rewardsDuration); } function addRewardToken(address token) external onlyOwner { require(_totalRewardTokens < 6, "Too many tokens"); require(IERC20(token).balanceOf(address(this)) > 0, "Must prefund contract"); // Increment total reward tokens _totalRewardTokens += 1; // Create new reward token record _rewardTokens[_totalRewardTokens] = RewardToken({ token: token, rewardRate: 0, rewardPerTokenStored: 0 }); _rewardTokenToIndex[token] = _totalRewardTokens; uint256[] memory rewardAmounts = new uint256[](_totalRewardTokens); for (uint i = 0; i < _totalRewardTokens; i++) { if (i == _totalRewardTokens - 1) { rewardAmounts[i] = IERC20(token).balanceOf(address(this)); } } notifyRewardAmount(rewardAmounts); } function removeRewardToken(address token) public onlyOwner updateReward(address(0)) { require(_totalRewardTokens > 1, "Cannot have 0 reward tokens"); // Get the index of token to remove uint indexToDelete = _rewardTokenToIndex[token]; // Start at index of token to remove. Remove token and move all later indices lower. for (uint i = indexToDelete; i <= _totalRewardTokens; i++) { // Get token of one later index RewardToken storage rewardToken = _rewardTokens[i + 1]; // Overwrite existing index with index + 1 record _rewardTokens[i] = rewardToken; // Delete original delete _rewardTokens[i + 1]; // Set new index _rewardTokenToIndex[rewardToken.token] = i; } _totalRewardTokens -= 1; } function emergencyWithdrawal(address token) external onlyOwner updateReward(address(0)) { uint256 balance = IERC20(token).balanceOf(address(this)); require(balance > 0, "Contract holds no tokens"); IERC20(token).transfer(owner(), balance); removeRewardToken(token); } /* === MODIFIERS === */ modifier updateReward(address account) { uint256[] memory rewardsPerToken = rewardPerToken(); uint256[] memory currentEarnings = earned(account); lastUpdateTime = lastTimeRewardApplicable(); for (uint i = 0; i < _totalRewardTokens; i++) { RewardToken storage rewardToken = _rewardTokens[i + 1]; rewardToken.rewardPerTokenStored = rewardsPerToken[i]; if (account != address(0)) { _rewards[account][rewardToken.token] = currentEarnings[i]; _userRewardPerTokenPaid[account][rewardToken.token] = rewardsPerToken[i]; } } _; } /* === EVENTS === */ event RewardAdded(uint256 reward); event Staked(address indexed user, uint256 amount); event Withdrawn(address indexed user, uint256 amount); event RewardPaid(address indexed user, uint256 reward); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "./Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the amount of decimals in the token */ function decimals() external view returns (uint256); /** * @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 `from` to `to` 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 from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/Math.sol) pragma solidity ^0.8.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. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @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 a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../interfaces/IERC20.sol"; import "./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 IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' 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) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": true, "runs": 100000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address[]","name":"rewardTokens_","type":"address[]"},{"internalType":"address","name":"stakingToken_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","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"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"addRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"amount","type":"uint256[]"}],"name":"depositRewardTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"emergencyWithdrawal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardForDuration","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardTokens","outputs":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"rewardRate","type":"uint256"},{"internalType":"uint256","name":"rewardPerTokenStored","type":"uint256"}],"internalType":"struct MultiRewardsStake.RewardToken[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"reward","type":"uint256[]"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"removeRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"rewardForToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRewardTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162003b5c38038062003b5c83398101604081905262000034916200020a565b600160005562000044336200019b565b600280546001600160a01b0319166001600160a01b038316179055815160085560005b82518110156200018b5760405180606001604052808483815181106200009d57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316815260200160008152602001600081525060096000836001620000d29190620002f2565b81526020808201929092526040908101600020835181546001600160a01b0319166001600160a01b039091161781559183015160018084019190915592015160029091015562000124908290620002f2565b600a60008584815181106200014957634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002081905550808062000182906200030d565b91505062000067565b5050621275006004555062000357565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516001600160a01b03811681146200020557600080fd5b919050565b600080604083850312156200021d578182fd5b82516001600160401b038082111562000234578384fd5b818501915085601f83011262000248578384fd5b81516020828211156200025f576200025f62000341565b8160051b604051601f19603f8301168101818110868211171562000287576200028762000341565b604052838152828101945085830182870184018b1015620002a6578889fd5b8896505b84871015620002d357620002be81620001ed565b865260019690960195948301948301620002aa565b509650620002e59050878201620001ed565b9450505050509250929050565b600082198211156200030857620003086200032b565b500190565b60006000198214156200032457620003246200032b565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6137f580620003676000396000f3fe608060405234801561001057600080fd5b50600436106101a25760003560e01c8063715018a6116100ee578063c4f59f9b11610097578063e71e7f7811610071578063e71e7f7814610359578063e9fad8ee1461036c578063ebe2b12b14610374578063f2fde38b1461037d57600080fd5b8063c4f59f9b14610333578063c8f33c9114610348578063cd3daf9d1461035157600080fd5b80638da5cb5b116100c85780638da5cb5b146102ef578063a54f5e0d1461030d578063a694fc3a1461032057600080fd5b8063715018a61461029a57806372f702f3146102a257806380faa57d146102e757600080fd5b8063386a9525116101505780636a1af3b71161012a5780636a1af3b71461023e5780636e353a1d1461025157806370a082311461026457600080fd5b8063386a95251461021a5780633d18b912146102235780633d509c971461022b57600080fd5b80631c03e6cc116101815780631c03e6cc146101ea5780631c1f78eb146101ff5780632e1a7d4d1461020757600080fd5b80628cc262146101a757806318160ddd146101d05780631b0875a6146101e2575b600080fd5b6101ba6101b53660046133d5565b610390565b6040516101c791906135c2565b60405180910390f35b600b545b6040519081526020016101c7565b6008546101d4565b6101fd6101f83660046133d5565b61058b565b005b6101ba6109be565b6101fd610215366004613507565b610acf565b6101d460045481565b6101fd610e11565b6101fd6102393660046133d5565b6111a6565b6101fd61024c366004613409565b6115bb565b6101fd61025f3660046133d5565b611a86565b6101d46102723660046133d5565b73ffffffffffffffffffffffffffffffffffffffff166000908152600c602052604090205490565b6101fd611ec6565b6002546102c29073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101c7565b6101d4611f53565b60015473ffffffffffffffffffffffffffffffffffffffff166102c2565b6101d461031b3660046133d5565b611f66565b6101fd61032e366004613507565b61200d565b61033b6124af565b6040516101c79190613553565b6101d460055481565b6101ba612621565b6101fd610367366004613409565b6127dc565b6101fd612d7e565b6101d460035481565b6101fd61038b3660046133d5565b612d9f565b6060600060085467ffffffffffffffff8111156103d6577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156103ff578160200160208202803683370190505b509050600061040c612621565b905060005b60085481101561058257600060098161042b846001613657565b8152602080820192909252604090810160009081205473ffffffffffffffffffffffffffffffffffffffff8a81168084526007865284842091909216808452908552838320549183526006855283832081845290945291902054855192935061052b9261052591670de0b6b3a76400009161051f916104f3918a908a9081106104dd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151612ecf90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff8c166000908152600c602052604090205490612edb565b90612ee7565b90612ef3565b848381518110610564577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010152508061057a81613728565b915050610411565b50909392505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314610611576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60066008541061067d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f546f6f206d616e7920746f6b656e7300000000000000000000000000000000006044820152606401610608565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a082319060240160206040518083038186803b1580156106e557600080fd5b505afa1580156106f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071d919061351f565b11610784576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d7573742070726566756e6420636f6e747261637400000000000000000000006044820152606401610608565b6001600860008282546107979190613657565b90915550506040805160608101825273ffffffffffffffffffffffffffffffffffffffff8381168083526000602080850182815285870183815260088054855260098452888520975188547fffffffffffffffffffffffff000000000000000000000000000000000000000016971696909617875590516001870155516002909501949094559154908252600a90925291822081905567ffffffffffffffff81111561086c577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610895578160200160208202803683370190505b50905060005b6008548110156109b05760016008546108b491906136e5565b81141561099e576040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8416906370a082319060240160206040518083038186803b15801561092057600080fd5b505afa158015610934573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610958919061351f565b828281518110610991577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250505b806109a881613728565b91505061089b565b506109ba816127dc565b5050565b6060600060085467ffffffffffffffff811115610a04577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610a2d578160200160208202803683370190505b50905060005b600854811015610ac957600454610a739060096000610a53856001613657565b815260200190815260200160002060010154612edb90919063ffffffff16565b828281518110610aac577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602090810291909101015280610ac181613728565b915050610a33565b50919050565b60026000541415610b3c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610608565b600260009081553390610b4d612621565b90506000610b5a83610390565b9050610b64611f53565b60055560005b600854811015610d03576000600981610b84846001613657565b81526020019081526020016000209050838281518110610bcd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010151600282015573ffffffffffffffffffffffffffffffffffffffff851615610cf057828281518110610c32577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526007845260408082208654909316825291909352909120558351849083908110610cae577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526006845260408082208654909316825291909352909120555b5080610cfb81613728565b915050610b6a565b5060008411610d6e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f43616e6e6f7420776974686472617720300000000000000000000000000000006044820152606401610608565b600b54610d7b9085612ecf565b600b55336000908152600c6020526040902054610d989085612ecf565b336000818152600c6020526040902091909155600254610dd19173ffffffffffffffffffffffffffffffffffffffff9091169086612eff565b60405184815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d59060200160405180910390a2505060016000555050565b60026000541415610e7e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610608565b600260009081553390610e8f612621565b90506000610e9c83610390565b9050610ea6611f53565b60055560005b600854811015611045576000600981610ec6846001613657565b81526020019081526020016000209050838281518110610f0f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010151600282015573ffffffffffffffffffffffffffffffffffffffff85161561103257828281518110610f74577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526007845260408082208654909316825291909352909120558351849083908110610ff0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526006845260408082208654909316825291909352909120555b508061103d81613728565b915050610eac565b5060005b60085481101561119b5733600090815260076020526040812081600981611071866001613657565b8152602080820192909252604090810160009081205473ffffffffffffffffffffffffffffffffffffffff1684529183019390935291019020549050801561118857336000908152600760205260408120816009816110d1876001613657565b8152602080820192909252604090810160009081205473ffffffffffffffffffffffffffffffffffffffff1684529183019390935291018120919091556111529033908390600990611124876001613657565b815260208101919091526040016000205473ffffffffffffffffffffffffffffffffffffffff169190612eff565b60405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869060200160405180910390a25b508061119381613728565b915050611049565b505060016000555050565b60015473ffffffffffffffffffffffffffffffffffffffff163314611227576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610608565b600080611232612621565b9050600061123f83610390565b9050611249611f53565b60055560005b6008548110156113e8576000600981611269846001613657565b815260200190815260200160002090508382815181106112b2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010151600282015573ffffffffffffffffffffffffffffffffffffffff8516156113d557828281518110611317577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526007845260408082208654909316825291909352909120558351849083908110611393577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526006845260408082208654909316825291909352909120555b50806113e081613728565b91505061124f565b50600160085411611455576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616e6e6f74206861766520302072657761726420746f6b656e7300000000006044820152606401610608565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600a6020526040902054805b600854811161159b576000600981611496846001613657565b815260208082019290925260409081016000908120858252600993849052918120825481547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909116178155600180840154818301556002808501549201919091559193509061151d908590613657565b81526020808201929092526040908101600090812080547fffffffffffffffffffffffff000000000000000000000000000000000000000016815560018101829055600201819055925473ffffffffffffffffffffffffffffffffffffffff168352600a90915290208190558061159381613728565b91505061147d565b506001600860008282546115af91906136e5565b90915550505050505050565b60015473ffffffffffffffffffffffffffffffffffffffff16331461163c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610608565b6008548151146116a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f57726f6e6720616d6f756e7473000000000000000000000000000000000000006044820152606401610608565b60005b600854811015611a6c5760006009816116c5846001613657565b8152602081019190915260409081016000908120805492517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152909350909173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561174357600080fd5b505afa158015611757573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177b919061351f565b90506117e633308686815181106117bb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010151855473ffffffffffffffffffffffffffffffffffffffff16929190612fd8565b81546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009161189391849173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561185557600080fd5b505afa158015611869573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061188d919061351f565b90612ecf565b905060035442106118b6576004546118ac908290612ee7565b60018401556118fd565b6003546000906118c69042612ecf565b905060006118e1856001015483612edb90919063ffffffff16565b6004549091506118f59061051f8584612ef3565b600186015550505b82546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561196657600080fd5b505afa15801561197a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061199e919061351f565b90506119b560045482612ee790919063ffffffff16565b84600101541115611a22576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f52657761726420746f6f206869676800000000000000000000000000000000006044820152606401610608565b6040518281527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a1505050508080611a6490613728565b9150506116ab565b50426005819055600454611a809190612ef3565b60035550565b60015473ffffffffffffffffffffffffffffffffffffffff163314611b07576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610608565b600080611b12612621565b90506000611b1f83610390565b9050611b29611f53565b60055560005b600854811015611cc8576000600981611b49846001613657565b81526020019081526020016000209050838281518110611b92577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010151600282015573ffffffffffffffffffffffffffffffffffffffff851615611cb557828281518110611bf7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526007845260408082208654909316825291909352909120558351849083908110611c73577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526006845260408082208654909316825291909352909120555b5080611cc081613728565b915050611b2f565b506040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8616906370a082319060240160206040518083038186803b158015611d3157600080fd5b505afa158015611d45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d69919061351f565b905060008111611dd5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f436f6e747261637420686f6c6473206e6f20746f6b656e7300000000000000006044820152606401610608565b8473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb611e1060015473ffffffffffffffffffffffffffffffffffffffff1690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff909116600482015260248101849052604401602060405180830381600087803b158015611e7d57600080fd5b505af1158015611e91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eb591906134e7565b50611ebf856111a6565b5050505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314611f47576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610608565b611f51600061303c565b565b6000611f61426003546130b3565b905090565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600a6020526040812054600b54611fab5760009081526009602052604090206002015492915050565b612006611fee600b5461051f670de0b6b3a7640000611fe86009600088815260200190815260200160002060010154611fe860055461188d611f53565b90612edb565b60008381526009602052604090206002015490612ef3565b9392505050565b6002600054141561207a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610608565b60026000908155339061208b612621565b9050600061209883610390565b90506120a2611f53565b60055560005b6008548110156122415760006009816120c2846001613657565b8152602001908152602001600020905083828151811061210b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010151600282015573ffffffffffffffffffffffffffffffffffffffff85161561222e57828281518110612170577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff808816600090815260078452604080822086549093168252919093529091205583518490839081106121ec577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526006845260408082208654909316825291909352909120555b508061223981613728565b9150506120a8565b50600084116122ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f43616e6e6f74207374616b6520300000000000000000000000000000000000006044820152606401610608565b6002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561231657600080fd5b505afa15801561232a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061234e919061351f565b6002549091506123769073ffffffffffffffffffffffffffffffffffffffff16333088612fd8565b6002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b1580156123e057600080fd5b505afa1580156123f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612418919061351f565b905060006124268284612ecf565b600b549091506124369082612ef3565b600b55336000908152600c60205260409020546124539082612ef3565b336000818152600c6020526040908190209290925590517f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d90612499908a815260200190565b60405180910390a2505060016000555050505050565b6060600060085467ffffffffffffffff8111156124f5577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561256057816020015b61254d6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081525090565b8152602001906001900390816125135790505b50905060005b600854811015610ac9576009600061257f836001613657565b815260208082019290925260409081016000208151606081018352815473ffffffffffffffffffffffffffffffffffffffff16815260018201549381019390935260020154908201528251839083908110612603577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181905250808061261990613728565b915050612566565b6060600060085467ffffffffffffffff811115612667577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015612690578160200160208202803683370190505b509050600b54600014156127225760005b600854811015610ac957600960006126ba836001613657565b815260200190815260200160002060020154828281518110612705577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910101528061271a81613728565b9150506126a1565b60005b600854811015610ac957600060098161273f846001613657565b8152602001908152602001600020905061278561277a600b5461051f670de0b6b3a7640000611fe88660010154611fe860055461188d611f53565b600283015490612ef3565b8383815181106127be577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602090810291909101015250806127d481613728565b915050612725565b60015473ffffffffffffffffffffffffffffffffffffffff16331461285d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610608565b600080612868612621565b9050600061287583610390565b905061287f611f53565b60055560005b600854811015612a1e57600060098161289f846001613657565b815260200190815260200160002090508382815181106128e8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010151600282015573ffffffffffffffffffffffffffffffffffffffff851615612a0b5782828151811061294d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff808816600090815260078452604080822086549093168252919093529091205583518490839081106129c9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526006845260408082208654909316825291909352909120555b5080612a1681613728565b915050612885565b50600854845114612a8b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f57726f6e672072657761726420616d6f756e74730000000000000000000000006044820152606401610608565b60005b600854811015612d61576000600981612aa8846001613657565b815260200190815260200160002090506003544210612b2057612b16600454878481518110612b00577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151612ee790919063ffffffff16565b6001820155612bae565b600354600090612b309042612ecf565b90506000612b4b836001015483612edb90919063ffffffff16565b9050612ba660045461051f838b8881518110612b90577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151612ef390919063ffffffff16565b600184015550505b80546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b158015612c1757600080fd5b505afa158015612c2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c4f919061351f565b9050612c6660045482612ee790919063ffffffff16565b82600101541115612cd3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f52657761726420746f6f206869676800000000000000000000000000000000006044820152606401610608565b7fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d878481518110612d2d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151604051612d4491815260200190565b60405180910390a150508080612d5990613728565b915050612a8e565b50426005819055600454612d759190612ef3565b60035550505050565b336000908152600c6020526040902054612d9790610acf565b611f51610e11565b60015473ffffffffffffffffffffffffffffffffffffffff163314612e20576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610608565b73ffffffffffffffffffffffffffffffffffffffff8116612ec3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610608565b612ecc8161303c565b50565b600061200682846136e5565b600061200682846136a8565b6000612006828461366f565b60006120068284613657565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052612fd39084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526130c9565b505050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526130369085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401612f51565b50505050565b6001805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008183106130c25781612006565b5090919050565b600061312b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166131d59092919063ffffffff16565b805190915015612fd3578080602001905181019061314991906134e7565b612fd3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610608565b60606131e484846000856131ec565b949350505050565b60608247101561327e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610608565b73ffffffffffffffffffffffffffffffffffffffff85163b6132fc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610608565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516133259190613537565b60006040518083038185875af1925050503d8060008114613362576040519150601f19603f3d011682016040523d82523d6000602084013e613367565b606091505b5091509150613377828286613382565b979650505050505050565b60608315613391575081612006565b8251156133a15782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106089190613606565b6000602082840312156133e6578081fd5b813573ffffffffffffffffffffffffffffffffffffffff81168114612006578182fd5b6000602080838503121561341b578182fd5b823567ffffffffffffffff80821115613432578384fd5b818501915085601f830112613445578384fd5b81358181111561345757613457613790565b8060051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f8301168101818110858211171561349a5761349a613790565b604052828152858101935084860182860187018a10156134b8578788fd5b8795505b838610156134da5780358552600195909501949386019386016134bc565b5098975050505050505050565b6000602082840312156134f8578081fd5b81518015158114612006578182fd5b600060208284031215613518578081fd5b5035919050565b600060208284031215613530578081fd5b5051919050565b600082516135498184602087016136fc565b9190910192915050565b602080825282518282018190526000919060409081850190868401855b828110156135b5578151805173ffffffffffffffffffffffffffffffffffffffff16855286810151878601528501518585015260609093019290850190600101613570565b5091979650505050505050565b6020808252825182820181905260009190848201906040850190845b818110156135fa578351835292840192918401916001016135de565b50909695505050505050565b60208152600082518060208401526136258160408501602087016136fc565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b6000821982111561366a5761366a613761565b500190565b6000826136a3577f4e487b710000000000000000000000000000000000000000000000000000000081526012600452602481fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156136e0576136e0613761565b500290565b6000828210156136f7576136f7613761565b500390565b60005b838110156137175781810151838201526020016136ff565b838111156130365750506000910152565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561375a5761375a613761565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea2646970667358221220e8c7fac6f5ee12f307dde3448e9b4d97fdbcb162796a4ba3f31ab56f5fc255b664736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000005e9f35e8163c44cd7e606bdd716abed32ad2f1c600000000000000000000000000000000000000000000000000000000000000020000000000000000000000008b3192f5eebd8579568a2ed41e6feb402f93f73f000000000000000000000000ab167e816e4d76089119900e941befdfa37d6b32
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a25760003560e01c8063715018a6116100ee578063c4f59f9b11610097578063e71e7f7811610071578063e71e7f7814610359578063e9fad8ee1461036c578063ebe2b12b14610374578063f2fde38b1461037d57600080fd5b8063c4f59f9b14610333578063c8f33c9114610348578063cd3daf9d1461035157600080fd5b80638da5cb5b116100c85780638da5cb5b146102ef578063a54f5e0d1461030d578063a694fc3a1461032057600080fd5b8063715018a61461029a57806372f702f3146102a257806380faa57d146102e757600080fd5b8063386a9525116101505780636a1af3b71161012a5780636a1af3b71461023e5780636e353a1d1461025157806370a082311461026457600080fd5b8063386a95251461021a5780633d18b912146102235780633d509c971461022b57600080fd5b80631c03e6cc116101815780631c03e6cc146101ea5780631c1f78eb146101ff5780632e1a7d4d1461020757600080fd5b80628cc262146101a757806318160ddd146101d05780631b0875a6146101e2575b600080fd5b6101ba6101b53660046133d5565b610390565b6040516101c791906135c2565b60405180910390f35b600b545b6040519081526020016101c7565b6008546101d4565b6101fd6101f83660046133d5565b61058b565b005b6101ba6109be565b6101fd610215366004613507565b610acf565b6101d460045481565b6101fd610e11565b6101fd6102393660046133d5565b6111a6565b6101fd61024c366004613409565b6115bb565b6101fd61025f3660046133d5565b611a86565b6101d46102723660046133d5565b73ffffffffffffffffffffffffffffffffffffffff166000908152600c602052604090205490565b6101fd611ec6565b6002546102c29073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101c7565b6101d4611f53565b60015473ffffffffffffffffffffffffffffffffffffffff166102c2565b6101d461031b3660046133d5565b611f66565b6101fd61032e366004613507565b61200d565b61033b6124af565b6040516101c79190613553565b6101d460055481565b6101ba612621565b6101fd610367366004613409565b6127dc565b6101fd612d7e565b6101d460035481565b6101fd61038b3660046133d5565b612d9f565b6060600060085467ffffffffffffffff8111156103d6577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156103ff578160200160208202803683370190505b509050600061040c612621565b905060005b60085481101561058257600060098161042b846001613657565b8152602080820192909252604090810160009081205473ffffffffffffffffffffffffffffffffffffffff8a81168084526007865284842091909216808452908552838320549183526006855283832081845290945291902054855192935061052b9261052591670de0b6b3a76400009161051f916104f3918a908a9081106104dd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151612ecf90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff8c166000908152600c602052604090205490612edb565b90612ee7565b90612ef3565b848381518110610564577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010152508061057a81613728565b915050610411565b50909392505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314610611576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60066008541061067d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f546f6f206d616e7920746f6b656e7300000000000000000000000000000000006044820152606401610608565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a082319060240160206040518083038186803b1580156106e557600080fd5b505afa1580156106f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071d919061351f565b11610784576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d7573742070726566756e6420636f6e747261637400000000000000000000006044820152606401610608565b6001600860008282546107979190613657565b90915550506040805160608101825273ffffffffffffffffffffffffffffffffffffffff8381168083526000602080850182815285870183815260088054855260098452888520975188547fffffffffffffffffffffffff000000000000000000000000000000000000000016971696909617875590516001870155516002909501949094559154908252600a90925291822081905567ffffffffffffffff81111561086c577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610895578160200160208202803683370190505b50905060005b6008548110156109b05760016008546108b491906136e5565b81141561099e576040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8416906370a082319060240160206040518083038186803b15801561092057600080fd5b505afa158015610934573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610958919061351f565b828281518110610991577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250505b806109a881613728565b91505061089b565b506109ba816127dc565b5050565b6060600060085467ffffffffffffffff811115610a04577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610a2d578160200160208202803683370190505b50905060005b600854811015610ac957600454610a739060096000610a53856001613657565b815260200190815260200160002060010154612edb90919063ffffffff16565b828281518110610aac577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602090810291909101015280610ac181613728565b915050610a33565b50919050565b60026000541415610b3c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610608565b600260009081553390610b4d612621565b90506000610b5a83610390565b9050610b64611f53565b60055560005b600854811015610d03576000600981610b84846001613657565b81526020019081526020016000209050838281518110610bcd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010151600282015573ffffffffffffffffffffffffffffffffffffffff851615610cf057828281518110610c32577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526007845260408082208654909316825291909352909120558351849083908110610cae577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526006845260408082208654909316825291909352909120555b5080610cfb81613728565b915050610b6a565b5060008411610d6e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f43616e6e6f7420776974686472617720300000000000000000000000000000006044820152606401610608565b600b54610d7b9085612ecf565b600b55336000908152600c6020526040902054610d989085612ecf565b336000818152600c6020526040902091909155600254610dd19173ffffffffffffffffffffffffffffffffffffffff9091169086612eff565b60405184815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d59060200160405180910390a2505060016000555050565b60026000541415610e7e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610608565b600260009081553390610e8f612621565b90506000610e9c83610390565b9050610ea6611f53565b60055560005b600854811015611045576000600981610ec6846001613657565b81526020019081526020016000209050838281518110610f0f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010151600282015573ffffffffffffffffffffffffffffffffffffffff85161561103257828281518110610f74577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526007845260408082208654909316825291909352909120558351849083908110610ff0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526006845260408082208654909316825291909352909120555b508061103d81613728565b915050610eac565b5060005b60085481101561119b5733600090815260076020526040812081600981611071866001613657565b8152602080820192909252604090810160009081205473ffffffffffffffffffffffffffffffffffffffff1684529183019390935291019020549050801561118857336000908152600760205260408120816009816110d1876001613657565b8152602080820192909252604090810160009081205473ffffffffffffffffffffffffffffffffffffffff1684529183019390935291018120919091556111529033908390600990611124876001613657565b815260208101919091526040016000205473ffffffffffffffffffffffffffffffffffffffff169190612eff565b60405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869060200160405180910390a25b508061119381613728565b915050611049565b505060016000555050565b60015473ffffffffffffffffffffffffffffffffffffffff163314611227576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610608565b600080611232612621565b9050600061123f83610390565b9050611249611f53565b60055560005b6008548110156113e8576000600981611269846001613657565b815260200190815260200160002090508382815181106112b2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010151600282015573ffffffffffffffffffffffffffffffffffffffff8516156113d557828281518110611317577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526007845260408082208654909316825291909352909120558351849083908110611393577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526006845260408082208654909316825291909352909120555b50806113e081613728565b91505061124f565b50600160085411611455576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616e6e6f74206861766520302072657761726420746f6b656e7300000000006044820152606401610608565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600a6020526040902054805b600854811161159b576000600981611496846001613657565b815260208082019290925260409081016000908120858252600993849052918120825481547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff909116178155600180840154818301556002808501549201919091559193509061151d908590613657565b81526020808201929092526040908101600090812080547fffffffffffffffffffffffff000000000000000000000000000000000000000016815560018101829055600201819055925473ffffffffffffffffffffffffffffffffffffffff168352600a90915290208190558061159381613728565b91505061147d565b506001600860008282546115af91906136e5565b90915550505050505050565b60015473ffffffffffffffffffffffffffffffffffffffff16331461163c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610608565b6008548151146116a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f57726f6e6720616d6f756e7473000000000000000000000000000000000000006044820152606401610608565b60005b600854811015611a6c5760006009816116c5846001613657565b8152602081019190915260409081016000908120805492517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152909350909173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561174357600080fd5b505afa158015611757573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177b919061351f565b90506117e633308686815181106117bb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010151855473ffffffffffffffffffffffffffffffffffffffff16929190612fd8565b81546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009161189391849173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561185557600080fd5b505afa158015611869573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061188d919061351f565b90612ecf565b905060035442106118b6576004546118ac908290612ee7565b60018401556118fd565b6003546000906118c69042612ecf565b905060006118e1856001015483612edb90919063ffffffff16565b6004549091506118f59061051f8584612ef3565b600186015550505b82546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561196657600080fd5b505afa15801561197a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061199e919061351f565b90506119b560045482612ee790919063ffffffff16565b84600101541115611a22576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f52657761726420746f6f206869676800000000000000000000000000000000006044820152606401610608565b6040518281527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a1505050508080611a6490613728565b9150506116ab565b50426005819055600454611a809190612ef3565b60035550565b60015473ffffffffffffffffffffffffffffffffffffffff163314611b07576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610608565b600080611b12612621565b90506000611b1f83610390565b9050611b29611f53565b60055560005b600854811015611cc8576000600981611b49846001613657565b81526020019081526020016000209050838281518110611b92577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010151600282015573ffffffffffffffffffffffffffffffffffffffff851615611cb557828281518110611bf7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526007845260408082208654909316825291909352909120558351849083908110611c73577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526006845260408082208654909316825291909352909120555b5080611cc081613728565b915050611b2f565b506040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8616906370a082319060240160206040518083038186803b158015611d3157600080fd5b505afa158015611d45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d69919061351f565b905060008111611dd5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f436f6e747261637420686f6c6473206e6f20746f6b656e7300000000000000006044820152606401610608565b8473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb611e1060015473ffffffffffffffffffffffffffffffffffffffff1690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff909116600482015260248101849052604401602060405180830381600087803b158015611e7d57600080fd5b505af1158015611e91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eb591906134e7565b50611ebf856111a6565b5050505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314611f47576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610608565b611f51600061303c565b565b6000611f61426003546130b3565b905090565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600a6020526040812054600b54611fab5760009081526009602052604090206002015492915050565b612006611fee600b5461051f670de0b6b3a7640000611fe86009600088815260200190815260200160002060010154611fe860055461188d611f53565b90612edb565b60008381526009602052604090206002015490612ef3565b9392505050565b6002600054141561207a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610608565b60026000908155339061208b612621565b9050600061209883610390565b90506120a2611f53565b60055560005b6008548110156122415760006009816120c2846001613657565b8152602001908152602001600020905083828151811061210b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010151600282015573ffffffffffffffffffffffffffffffffffffffff85161561222e57828281518110612170577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff808816600090815260078452604080822086549093168252919093529091205583518490839081106121ec577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526006845260408082208654909316825291909352909120555b508061223981613728565b9150506120a8565b50600084116122ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f43616e6e6f74207374616b6520300000000000000000000000000000000000006044820152606401610608565b6002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561231657600080fd5b505afa15801561232a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061234e919061351f565b6002549091506123769073ffffffffffffffffffffffffffffffffffffffff16333088612fd8565b6002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b1580156123e057600080fd5b505afa1580156123f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612418919061351f565b905060006124268284612ecf565b600b549091506124369082612ef3565b600b55336000908152600c60205260409020546124539082612ef3565b336000818152600c6020526040908190209290925590517f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d90612499908a815260200190565b60405180910390a2505060016000555050505050565b6060600060085467ffffffffffffffff8111156124f5577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561256057816020015b61254d6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081525090565b8152602001906001900390816125135790505b50905060005b600854811015610ac9576009600061257f836001613657565b815260208082019290925260409081016000208151606081018352815473ffffffffffffffffffffffffffffffffffffffff16815260018201549381019390935260020154908201528251839083908110612603577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181905250808061261990613728565b915050612566565b6060600060085467ffffffffffffffff811115612667577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015612690578160200160208202803683370190505b509050600b54600014156127225760005b600854811015610ac957600960006126ba836001613657565b815260200190815260200160002060020154828281518110612705577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910101528061271a81613728565b9150506126a1565b60005b600854811015610ac957600060098161273f846001613657565b8152602001908152602001600020905061278561277a600b5461051f670de0b6b3a7640000611fe88660010154611fe860055461188d611f53565b600283015490612ef3565b8383815181106127be577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602090810291909101015250806127d481613728565b915050612725565b60015473ffffffffffffffffffffffffffffffffffffffff16331461285d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610608565b600080612868612621565b9050600061287583610390565b905061287f611f53565b60055560005b600854811015612a1e57600060098161289f846001613657565b815260200190815260200160002090508382815181106128e8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020908102919091010151600282015573ffffffffffffffffffffffffffffffffffffffff851615612a0b5782828151811061294d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff808816600090815260078452604080822086549093168252919093529091205583518490839081106129c9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff80881660009081526006845260408082208654909316825291909352909120555b5080612a1681613728565b915050612885565b50600854845114612a8b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f57726f6e672072657761726420616d6f756e74730000000000000000000000006044820152606401610608565b60005b600854811015612d61576000600981612aa8846001613657565b815260200190815260200160002090506003544210612b2057612b16600454878481518110612b00577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151612ee790919063ffffffff16565b6001820155612bae565b600354600090612b309042612ecf565b90506000612b4b836001015483612edb90919063ffffffff16565b9050612ba660045461051f838b8881518110612b90577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151612ef390919063ffffffff16565b600184015550505b80546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b158015612c1757600080fd5b505afa158015612c2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c4f919061351f565b9050612c6660045482612ee790919063ffffffff16565b82600101541115612cd3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f52657761726420746f6f206869676800000000000000000000000000000000006044820152606401610608565b7fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d878481518110612d2d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151604051612d4491815260200190565b60405180910390a150508080612d5990613728565b915050612a8e565b50426005819055600454612d759190612ef3565b60035550505050565b336000908152600c6020526040902054612d9790610acf565b611f51610e11565b60015473ffffffffffffffffffffffffffffffffffffffff163314612e20576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610608565b73ffffffffffffffffffffffffffffffffffffffff8116612ec3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610608565b612ecc8161303c565b50565b600061200682846136e5565b600061200682846136a8565b6000612006828461366f565b60006120068284613657565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052612fd39084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526130c9565b505050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526130369085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401612f51565b50505050565b6001805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008183106130c25781612006565b5090919050565b600061312b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166131d59092919063ffffffff16565b805190915015612fd3578080602001905181019061314991906134e7565b612fd3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610608565b60606131e484846000856131ec565b949350505050565b60608247101561327e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610608565b73ffffffffffffffffffffffffffffffffffffffff85163b6132fc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610608565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516133259190613537565b60006040518083038185875af1925050503d8060008114613362576040519150601f19603f3d011682016040523d82523d6000602084013e613367565b606091505b5091509150613377828286613382565b979650505050505050565b60608315613391575081612006565b8251156133a15782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106089190613606565b6000602082840312156133e6578081fd5b813573ffffffffffffffffffffffffffffffffffffffff81168114612006578182fd5b6000602080838503121561341b578182fd5b823567ffffffffffffffff80821115613432578384fd5b818501915085601f830112613445578384fd5b81358181111561345757613457613790565b8060051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f8301168101818110858211171561349a5761349a613790565b604052828152858101935084860182860187018a10156134b8578788fd5b8795505b838610156134da5780358552600195909501949386019386016134bc565b5098975050505050505050565b6000602082840312156134f8578081fd5b81518015158114612006578182fd5b600060208284031215613518578081fd5b5035919050565b600060208284031215613530578081fd5b5051919050565b600082516135498184602087016136fc565b9190910192915050565b602080825282518282018190526000919060409081850190868401855b828110156135b5578151805173ffffffffffffffffffffffffffffffffffffffff16855286810151878601528501518585015260609093019290850190600101613570565b5091979650505050505050565b6020808252825182820181905260009190848201906040850190845b818110156135fa578351835292840192918401916001016135de565b50909695505050505050565b60208152600082518060208401526136258160408501602087016136fc565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b6000821982111561366a5761366a613761565b500190565b6000826136a3577f4e487b710000000000000000000000000000000000000000000000000000000081526012600452602481fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156136e0576136e0613761565b500290565b6000828210156136f7576136f7613761565b500390565b60005b838110156137175781810151838201526020016136ff565b838111156130365750506000910152565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561375a5761375a613761565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea2646970667358221220e8c7fac6f5ee12f307dde3448e9b4d97fdbcb162796a4ba3f31ab56f5fc255b664736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000005e9f35e8163c44cd7e606bdd716abed32ad2f1c600000000000000000000000000000000000000000000000000000000000000020000000000000000000000008b3192f5eebd8579568a2ed41e6feb402f93f73f000000000000000000000000ab167e816e4d76089119900e941befdfa37d6b32
-----Decoded View---------------
Arg [0] : rewardTokens_ (address[]): 0x8B3192f5eEBD8579568A2Ed41E6FEB402f93f73F,0xab167E816E4d76089119900e941BEfdfA37d6b32
Arg [1] : stakingToken_ (address): 0x5e9F35E8163c44cD7e606BdD716AbED32AD2F1C6
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000005e9f35e8163c44cd7e606bdd716abed32ad2f1c6
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [3] : 0000000000000000000000008b3192f5eebd8579568a2ed41e6feb402f93f73f
Arg [4] : 000000000000000000000000ab167e816e4d76089119900e941befdfa37d6b32
Loading...
Loading
Loading...
Loading
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.