Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 12451003 | 1286 days ago | IN | 0 ETH | 0.25214213 |
Latest 25 internal transactions (View All)
Advanced mode:
Loading...
Loading
Contract Name:
RewardFactory
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-05-18 */ // SPDX-License-Identifier: MIT // File: contracts\Interfaces.sol pragma solidity 0.6.12; /** * @dev Standard math utilities missing in the Solidity language. */ library MathUtil { /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } } contract ReentrancyGuard { uint256 private _guardCounter; constructor () internal { _guardCounter = 1; } modifier nonReentrant() { _guardCounter += 1; uint256 localCounter = _guardCounter; _; require(localCounter == _guardCounter, "ReentrancyGuard: reentrant call"); } } interface ICurveGauge { function deposit(uint256) external; function balanceOf(address) external view returns (uint256); function withdraw(uint256) external; function claim_rewards() external; function reward_tokens(uint256) external view returns(address);//v2 function rewarded_token() external view returns(address);//v1 } interface ICurveVoteEscrow { function create_lock(uint256, uint256) external; function increase_amount(uint256) external; function increase_unlock_time(uint256) external; function withdraw() external; function smart_wallet_checker() external view returns (address); } interface IWalletChecker { function check(address) external view returns (bool); } interface IVoting{ function vote(uint256, bool, bool) external; //voteId, support, executeIfDecided function getVote(uint256) external view returns(bool,bool,uint64,uint64,uint64,uint64,uint256,uint256,uint256,bytes memory); function vote_for_gauge_weights(address,uint256) external; } interface IMinter{ function mint(address) external; } interface IRegistry{ function get_registry() external view returns(address); function get_address(uint256 _id) external view returns(address); function gauge_controller() external view returns(address); function get_lp_token(address) external view returns(address); function get_gauges(address) external view returns(address[10] memory,uint128[10] memory); } interface IStaker{ function deposit(address, address) external; function withdraw(address) external; function withdraw(address, address, uint256) external; function withdrawAll(address, address) external; function createLock(uint256, uint256) external; function increaseAmount(uint256) external; function increaseTime(uint256) external; function release() external; function claimCrv(address) external returns (uint256); function claimRewards(address) external; function claimFees(address,address) external; function setStashAccess(address, bool) external; function vote(uint256,address,bool) external; function voteGaugeWeight(address,uint256) external; function balanceOfPool(address) external view returns (uint256); function operator() external view returns (address); function execute(address _to, uint256 _value, bytes calldata _data) external returns (bool, bytes memory); } interface IRewards{ function stake(address, uint256) external; function stakeFor(address, uint256) external; function withdraw(address, uint256) external; function exit(address) external; function getReward(address) external; function queueNewRewards(uint256) external; function notifyRewardAmount(uint256) external; function addExtraReward(address) external; function stakingToken() external returns (address); } interface IStash{ function stashRewards() external returns (bool); function processStash() external returns (bool); function claimRewards() external returns (bool); } interface IFeeDistro{ function claim() external; function token() external view returns(address); } interface ITokenMinter{ function mint(address,uint256) external; function burn(address,uint256) external; } interface IDeposit{ function isShutdown() external view returns(bool); function balanceOf(address _account) external view returns(uint256); function totalSupply() external view returns(uint256); function poolInfo(uint256) external view returns(address,address,address,address,address, bool); function rewardClaimed(uint256,address,uint256) external; function withdrawTo(uint256,uint256,address) external; function claimRewards(uint256,address) external returns(bool); function rewardArbitrator() external returns(address); } interface ICrvDeposit{ function deposit(uint256, bool) external; function lockIncentive() external view returns(uint256); } interface IRewardFactory{ function setAccess(address,bool) external; function CreateCrvRewards(uint256,address) external returns(address); function CreateTokenRewards(address,address,address) external returns(address); function activeRewardCount(address) external view returns(uint256); function addActiveReward(address,uint256) external returns(bool); function removeActiveReward(address,uint256) external returns(bool); } interface IStashFactory{ function CreateStash(uint256,address,address,uint256) external returns(address); } interface ITokenFactory{ function CreateDepositToken(address) external returns(address); } interface IPools{ function addPool(address _lptoken, address _gauge, uint256 _stashVersion) external returns(bool); function shutdownPool(uint256 _pid) external returns(bool); function poolInfo(uint256) external view returns(address,address,address,address,address,bool); function poolLength() external view returns (uint256); function gaugeMap(address) external view returns(bool); function setPoolManager(address _poolM) external; } interface IVestedEscrow{ function fund(address[] calldata _recipient, uint256[] calldata _amount) external returns(bool); } // File: @openzeppelin\contracts\math\SafeMath.sol pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } } // File: @openzeppelin\contracts\token\ERC20\IERC20.sol pragma solidity >=0.6.0 <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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: @openzeppelin\contracts\utils\Address.sol pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin\contracts\token\ERC20\SafeERC20.sol pragma solidity >=0.6.0 <0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: contracts\BaseRewardPool.sol pragma solidity 0.6.12; /** *Submitted for verification at Etherscan.io on 2020-07-17 */ /* ____ __ __ __ _ / __/__ __ ___ / /_ / / ___ / /_ (_)__ __ _\ \ / // // _ \/ __// _ \/ -_)/ __// / \ \ / /___/ \_, //_//_/\__//_//_/\__/ \__//_/ /_\_\ /___/ * Synthetix: BaseRewardPool.sol * * Docs: https://docs.synthetix.io/ * * * MIT License * =========== * * Copyright (c) 2020 Synthetix * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE */ contract BaseRewardPool { using SafeMath for uint256; using SafeERC20 for IERC20; IERC20 public rewardToken; IERC20 public stakingToken; uint256 public constant duration = 7 days; address public operator; address public rewardManager; uint256 public pid; uint256 public periodFinish = 0; uint256 public rewardRate = 0; uint256 public lastUpdateTime; uint256 public rewardPerTokenStored; uint256 public queuedRewards = 0; uint256 public currentRewards = 0; uint256 public historicalRewards = 0; uint256 public constant newRewardRatio = 830; uint256 private _totalSupply; mapping(address => uint256) public userRewardPerTokenPaid; mapping(address => uint256) public rewards; mapping(address => uint256) private _balances; address[] public extraRewards; 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); constructor( uint256 pid_, address stakingToken_, address rewardToken_, address operator_, address rewardManager_ ) public { pid = pid_; stakingToken = IERC20(stakingToken_); rewardToken = IERC20(rewardToken_); operator = operator_; rewardManager = rewardManager_; } function totalSupply() public view returns (uint256) { return _totalSupply; } function balanceOf(address account) public view returns (uint256) { return _balances[account]; } function extraRewardsLength() external view returns (uint256) { return extraRewards.length; } function addExtraReward(address _reward) external returns(bool){ require(msg.sender == rewardManager, "!authorized"); require(_reward != address(0),"!reward setting"); extraRewards.push(_reward); return true; } function clearExtraRewards() external{ require(msg.sender == rewardManager, "!authorized"); delete extraRewards; } modifier updateReward(address account) { rewardPerTokenStored = rewardPerToken(); lastUpdateTime = lastTimeRewardApplicable(); if (account != address(0)) { rewards[account] = earned(account); userRewardPerTokenPaid[account] = rewardPerTokenStored; } _; } function lastTimeRewardApplicable() public view returns (uint256) { return MathUtil.min(block.timestamp, periodFinish); } function rewardPerToken() public view returns (uint256) { if (totalSupply() == 0) { return rewardPerTokenStored; } return rewardPerTokenStored.add( lastTimeRewardApplicable() .sub(lastUpdateTime) .mul(rewardRate) .mul(1e18) .div(totalSupply()) ); } function earned(address account) public view returns (uint256) { return balanceOf(account) .mul(rewardPerToken().sub(userRewardPerTokenPaid[account])) .div(1e18) .add(rewards[account]); } function stake(uint256 _amount) public updateReward(msg.sender) returns(bool) { require(_amount > 0, 'RewardPool : Cannot stake 0'); //also stake to linked rewards for(uint i=0; i < extraRewards.length; i++){ IRewards(extraRewards[i]).stake(msg.sender, _amount); } _totalSupply = _totalSupply.add(_amount); _balances[msg.sender] = _balances[msg.sender].add(_amount); stakingToken.safeTransferFrom(msg.sender, address(this), _amount); emit Staked(msg.sender, _amount); return true; } function stakeAll() external returns(bool){ uint256 balance = stakingToken.balanceOf(msg.sender); stake(balance); return true; } function stakeFor(address _for, uint256 _amount) public updateReward(_for) returns(bool) { require(_amount > 0, 'RewardPool : Cannot stake 0'); //also stake to linked rewards for(uint i=0; i < extraRewards.length; i++){ IRewards(extraRewards[i]).stake(_for, _amount); } //give to _for _totalSupply = _totalSupply.add(_amount); _balances[_for] = _balances[_for].add(_amount); //take away from sender stakingToken.safeTransferFrom(msg.sender, address(this), _amount); emit Staked(_for, _amount); return true; } function withdraw(uint256 amount, bool claim) public updateReward(msg.sender) returns(bool) { require(amount > 0, 'RewardPool : Cannot withdraw 0'); //also withdraw from linked rewards for(uint i=0; i < extraRewards.length; i++){ IRewards(extraRewards[i]).withdraw(msg.sender, amount); } _totalSupply = _totalSupply.sub(amount); _balances[msg.sender] = _balances[msg.sender].sub(amount); stakingToken.safeTransfer(msg.sender, amount); emit Withdrawn(msg.sender, amount); if(claim){ getReward(msg.sender,true); } return true; } function withdrawAll(bool claim) external{ withdraw(_balances[msg.sender],claim); } function withdrawAndUnwrap(uint256 amount, bool claim) public updateReward(msg.sender) returns(bool){ //also withdraw from linked rewards for(uint i=0; i < extraRewards.length; i++){ IRewards(extraRewards[i]).withdraw(msg.sender, amount); } _totalSupply = _totalSupply.sub(amount); _balances[msg.sender] = _balances[msg.sender].sub(amount); //tell operator to withdraw from here directly to user IDeposit(operator).withdrawTo(pid,amount,msg.sender); emit Withdrawn(msg.sender, amount); //get rewards too if(claim){ getReward(msg.sender,true); } return true; } function withdrawAllAndUnwrap(bool claim) external{ withdrawAndUnwrap(_balances[msg.sender],claim); } function getReward(address _account, bool _claimExtras) public updateReward(_account) returns(bool){ uint256 reward = earned(_account); if (reward > 0) { rewards[_account] = 0; rewardToken.safeTransfer(_account, reward); IDeposit(operator).rewardClaimed(pid, _account, reward); emit RewardPaid(_account, reward); } //also get rewards from linked rewards if(_claimExtras){ for(uint i=0; i < extraRewards.length; i++){ IRewards(extraRewards[i]).getReward(_account); } } return true; } function getReward() external returns(bool){ getReward(msg.sender,true); return true; } function donate(uint256 _amount) external returns(bool){ IERC20(rewardToken).safeTransferFrom(msg.sender, address(this), _amount); queuedRewards = queuedRewards.add(_amount); } function queueNewRewards(uint256 _rewards) external returns(bool){ require(msg.sender == operator, "!authorized"); _rewards = _rewards.add(queuedRewards); if (block.timestamp >= periodFinish) { notifyRewardAmount(_rewards); queuedRewards = 0; return true; } //et = now - (finish-duration) uint256 elapsedTime = block.timestamp.sub(periodFinish.sub(duration)); //current at now: rewardRate * elapsedTime uint256 currentAtNow = rewardRate * elapsedTime; uint256 queuedRatio = currentAtNow.mul(1000).div(_rewards); //uint256 queuedRatio = currentRewards.mul(1000).div(_rewards); if(queuedRatio < newRewardRatio){ notifyRewardAmount(_rewards); queuedRewards = 0; }else{ queuedRewards = _rewards; } return true; } function notifyRewardAmount(uint256 reward) internal updateReward(address(0)) { historicalRewards = historicalRewards.add(reward); if (block.timestamp >= periodFinish) { rewardRate = reward.div(duration); } else { uint256 remaining = periodFinish.sub(block.timestamp); uint256 leftover = remaining.mul(rewardRate); reward = reward.add(leftover); rewardRate = reward.div(duration); } currentRewards = reward; lastUpdateTime = block.timestamp; periodFinish = block.timestamp.add(duration); emit RewardAdded(reward); } } // File: contracts\VirtualBalanceRewardPool.sol pragma solidity 0.6.12; /** *Submitted for verification at Etherscan.io on 2020-07-17 */ /* ____ __ __ __ _ / __/__ __ ___ / /_ / / ___ / /_ (_)__ __ _\ \ / // // _ \/ __// _ \/ -_)/ __// / \ \ / /___/ \_, //_//_/\__//_//_/\__/ \__//_/ /_\_\ /___/ * Synthetix: VirtualBalanceRewardPool.sol * * Docs: https://docs.synthetix.io/ * * * MIT License * =========== * * Copyright (c) 2020 Synthetix * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE */ contract VirtualBalanceWrapper { using SafeMath for uint256; using SafeERC20 for IERC20; IDeposit public deposits; function totalSupply() public view returns (uint256) { return deposits.totalSupply(); } function balanceOf(address account) public view returns (uint256) { return deposits.balanceOf(account); } } contract VirtualBalanceRewardPool is VirtualBalanceWrapper { using SafeERC20 for IERC20; IERC20 public rewardToken; uint256 public constant duration = 7 days; address public operator; uint256 public periodFinish = 0; uint256 public rewardRate = 0; uint256 public lastUpdateTime; uint256 public rewardPerTokenStored; uint256 public queuedRewards = 0; uint256 public currentRewards = 0; uint256 public historicalRewards = 0; uint256 public newRewardRatio = 830; mapping(address => uint256) public userRewardPerTokenPaid; mapping(address => uint256) public rewards; 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); constructor( address deposit_, address reward_, address op_ ) public { deposits = IDeposit(deposit_); rewardToken = IERC20(reward_); operator = op_; } modifier updateReward(address account) { rewardPerTokenStored = rewardPerToken(); lastUpdateTime = lastTimeRewardApplicable(); if (account != address(0)) { rewards[account] = earned(account); userRewardPerTokenPaid[account] = rewardPerTokenStored; } _; } function lastTimeRewardApplicable() public view returns (uint256) { return MathUtil.min(block.timestamp, periodFinish); } function rewardPerToken() public view returns (uint256) { if (totalSupply() == 0) { return rewardPerTokenStored; } return rewardPerTokenStored.add( lastTimeRewardApplicable() .sub(lastUpdateTime) .mul(rewardRate) .mul(1e18) .div(totalSupply()) ); } function earned(address account) public view returns (uint256) { return balanceOf(account) .mul(rewardPerToken().sub(userRewardPerTokenPaid[account])) .div(1e18) .add(rewards[account]); } //update reward, emit, call linked reward's stake function stake(address _account, uint256 amount) external updateReward(_account) { require(msg.sender == address(deposits), "!authorized"); // require(amount > 0, 'VirtualDepositRewardPool: Cannot stake 0'); emit Staked(_account, amount); } function withdraw(address _account, uint256 amount) public updateReward(_account) { require(msg.sender == address(deposits), "!authorized"); //require(amount > 0, 'VirtualDepositRewardPool : Cannot withdraw 0'); emit Withdrawn(_account, amount); } function getReward(address _account) public updateReward(_account){ uint256 reward = earned(_account); if (reward > 0) { rewards[_account] = 0; rewardToken.safeTransfer(_account, reward); emit RewardPaid(_account, reward); } } function getReward() external{ getReward(msg.sender); } function donate(uint256 _amount) external returns(bool){ IERC20(rewardToken).safeTransferFrom(msg.sender, address(this), _amount); queuedRewards = queuedRewards.add(_amount); } function queueNewRewards(uint256 _rewards) external{ require(msg.sender == operator, "!authorized"); _rewards = _rewards.add(queuedRewards); if (block.timestamp >= periodFinish) { notifyRewardAmount(_rewards); queuedRewards = 0; return; } //et = now - (finish-duration) uint256 elapsedTime = block.timestamp.sub(periodFinish.sub(duration)); //current at now: rewardRate * elapsedTime uint256 currentAtNow = rewardRate * elapsedTime; uint256 queuedRatio = currentAtNow.mul(1000).div(_rewards); if(queuedRatio < newRewardRatio){ notifyRewardAmount(_rewards); queuedRewards = 0; }else{ queuedRewards = _rewards; } } function notifyRewardAmount(uint256 reward) internal updateReward(address(0)) { historicalRewards = historicalRewards.add(reward); if (block.timestamp >= periodFinish) { rewardRate = reward.div(duration); } else { uint256 remaining = periodFinish.sub(block.timestamp); uint256 leftover = remaining.mul(rewardRate); reward = reward.add(leftover); rewardRate = reward.div(duration); } currentRewards = reward; lastUpdateTime = block.timestamp; periodFinish = block.timestamp.add(duration); emit RewardAdded(reward); } } // File: contracts\RewardFactory.sol pragma solidity 0.6.12; contract RewardFactory { using Address for address; address public constant crv = address(0xD533a949740bb3306d119CC777fa900bA034cd52); address public operator; mapping (address => bool) private rewardAccess; mapping(address => uint256[]) public rewardActiveList; constructor(address _operator) public { operator = _operator; } //Get active count function function activeRewardCount(address _reward) external view returns(uint256){ return rewardActiveList[_reward].length; } function addActiveReward(address _reward, uint256 _pid) external returns(bool){ require(rewardAccess[msg.sender] == true,"!auth"); if(_reward == address(0)){ return true; } uint256[] storage activeList = rewardActiveList[_reward]; uint256 pid = _pid+1; //offset by 1 so that we can use 0 as empty uint256 length = activeList.length; for(uint256 i = 0; i < length; i++){ if(activeList[i] == pid) return true; } activeList.push(pid); return true; } function removeActiveReward(address _reward, uint256 _pid) external returns(bool){ require(rewardAccess[msg.sender] == true,"!auth"); if(_reward == address(0)){ return true; } uint256[] storage activeList = rewardActiveList[_reward]; uint256 pid = _pid+1; //offset by 1 so that we can use 0 as empty uint256 length = activeList.length; for(uint256 i = 0; i < length; i++){ if(activeList[i] == pid){ if (i != length-1) { activeList[i] = activeList[length-1]; } activeList.pop(); break; } } return true; } //stash contracts need access to create new Virtual balance pools for extra gauge incentives(ex. snx) function setAccess(address _stash, bool _status) external{ require(msg.sender == operator, "!auth"); rewardAccess[_stash] = _status; } //Create a Managed Reward Pool to handle distribution of all crv mined in a pool function CreateCrvRewards(uint256 _pid, address _depositToken) external returns (address) { require(msg.sender == operator, "!auth"); //operator = booster(deposit) contract so that new crv can be added and distributed //reward manager = this factory so that extra incentive tokens(ex. snx) can be linked to the main managed reward pool BaseRewardPool rewardPool = new BaseRewardPool(_pid,_depositToken,crv,operator, address(this)); return address(rewardPool); } //create a virtual balance reward pool that mimicks the balance of a pool's main reward contract //used for extra incentive tokens(ex. snx) as well as vecrv fees function CreateTokenRewards(address _token, address _mainRewards, address _operator) external returns (address) { require(msg.sender == operator || rewardAccess[msg.sender] == true, "!auth"); //create new pool, use main pool for balance lookup VirtualBalanceRewardPool rewardPool = new VirtualBalanceRewardPool(_mainRewards,_token,_operator); address rAddress = address(rewardPool); //add the new pool to main pool's list of extra rewards, assuming this factory has "reward manager" role IRewards(_mainRewards).addExtraReward(rAddress); //return new pool's address return rAddress; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_depositToken","type":"address"}],"name":"CreateCrvRewards","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_mainRewards","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"CreateTokenRewards","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_reward","type":"address"}],"name":"activeRewardCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_reward","type":"address"},{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"addActiveReward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"crv","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_reward","type":"address"},{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"removeActiveReward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardActiveList","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_stash","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"setAccess","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516134ab3803806134ab8339818101604052602081101561003357600080fd5b5051600080546001600160a01b039092166001600160a01b0319909216919091179055613446806100656000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80638d9622d9116100665780638d9622d914610128578063b7f927b114610154578063b84614a514610194578063ef9126ad146101c4578063f8d6122e146101f057610093565b80630d5843f714610098578063570ca735146100d057806358cbfd45146100f45780636a4874a114610120575b600080fd5b6100be600480360360208110156100ae57600080fd5b50356001600160a01b0316610228565b60408051918252519081900360200190f35b6100d8610243565b604080516001600160a01b039092168252519081900360200190f35b6100d86004803603604081101561010a57600080fd5b50803590602001356001600160a01b0316610252565b6100d8610327565b6100be6004803603604081101561013e57600080fd5b506001600160a01b03813516906020013561033f565b6101806004803603604081101561016a57600080fd5b506001600160a01b03813516906020013561036d565b604080519115158252519081900360200190f35b6101c2600480360360408110156101aa57600080fd5b506001600160a01b0381351690602001351515610450565b005b610180600480360360408110156101da57600080fd5b506001600160a01b0381351690602001356104c2565b6100d86004803603606081101561020657600080fd5b506001600160a01b0381358116916020810135821691604090910135166105e9565b6001600160a01b031660009081526002602052604090205490565b6000546001600160a01b031681565b600080546001600160a01b0316331461029a576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b600080546040518591859173d533a949740bb3306d119cc777fa900ba034cd52916001600160a01b03169030906102d09061071a565b9485526001600160a01b039384166020860152918316604080860191909152908316606085015291166080830152519081900360a001906000f08015801561031c573d6000803e3d6000fd5b509150505b92915050565b73d533a949740bb3306d119cc777fa900ba034cd5281565b6002602052816000526040600020818154811061035857fe5b90600052602060002001600091509150505481565b33600090815260016020819052604082205460ff161515146103be576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6001600160a01b0383166103d457506001610321565b6001600160a01b0383166000908152600260205260408120805490916001850191905b81811015610432578284828154811061040c57fe5b9060005260206000200154141561042a576001945050505050610321565b6001016103f7565b50508154600180820184556000938452602090932001559392505050565b6000546001600160a01b03163314610497576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b33600090815260016020819052604082205460ff16151514610513576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6001600160a01b03831661052957506001610321565b6001600160a01b0383166000908152600260205260408120805490916001850191905b818110156105dc578284828154811061056157fe5b906000526020600020015414156105d4576001820381146105af5783600183038154811061058b57fe5b90600052602060002001548482815481106105a257fe5b6000918252602090912001555b838054806105b957fe5b600190038181906000526020600020016000905590556105dc565b60010161054c565b5060019695505050505050565b600080546001600160a01b031633148061061857503360009081526001602081905260409091205460ff161515145b610651576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b600083858460405161066290610727565b6001600160a01b03938416815291831660208301529091166040808301919091525190819003606001906000f0801580156106a1573d6000803e3d6000fd5b5090506000819050846001600160a01b0316635e43c47b826040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b1580156106f857600080fd5b505af115801561070c573d6000803e3d6000fd5b509298975050505050505050565b611ba28061073583390190565b61113a806122d78339019056fe60806040526000600555600060065560006009556000600a556000600b5534801561002957600080fd5b50604051611ba2380380611ba2833981810160405260a081101561004c57600080fd5b508051602082015160408301516060840151608090940151600493909355600180546001600160a01b03199081166001600160a01b039485161790915560008054821692841692909217825560028054821695841695909517909455600380549094169190921617909155611adb9081906100c790396000f3fe608060405234801561001057600080fd5b506004361061021b5760003560e01c80637050ccd911610125578063c32e7202116100ad578063df136d651161007c578063df136d65146104e3578063ebe2b12b146104eb578063f1068454146104f3578063f14faf6f146104fb578063f7c618c1146105185761021b565b8063c32e7202146104a6578063c8f33c91146104cb578063cd3daf9d146104d3578063d55a23f4146104db5761021b565b806380faa57d116100f457806380faa57d1461044b5780638b876347146104535780638dcb406114610479578063901a7d5314610481578063a694fc3a146104895761021b565b80637050ccd9146103e757806370a082311461041557806372f702f31461043b5780637b0a47ee146104435761021b565b806338d07436116101a8578063570ca73511610177578063570ca7351461038c578063590a41f5146103945780635e43c47b146103b157806363d38c3b146103d75780636c8bcee8146103df5761021b565b806338d07436146103235780633d18b9121461034857806340c354461461035057806349f039a21461036d5761021b565b80630fb5a6b4116101ef5780630fb5a6b4146102ac57806318160ddd146102b45780631c1c6fe5146102bc578063262d3d6d146102db5780632ee40908146102e35761021b565b80628cc262146102205780630569d388146102585780630700037d146102625780630f4ef8a614610288575b600080fd5b6102466004803603602081101561023657600080fd5b50356001600160a01b0316610520565b60408051918252519081900360200190f35b610260610590565b005b6102466004803603602081101561027857600080fd5b50356001600160a01b03166105eb565b6102906105fd565b604080516001600160a01b039092168252519081900360200190f35b61024661060c565b610246610613565b610260600480360360208110156102d257600080fd5b5035151561061a565b610246610638565b61030f600480360360408110156102f957600080fd5b506001600160a01b03813516906020013561063e565b604080519115158252519081900360200190f35b61030f6004803603604081101561033957600080fd5b50803590602001351515610831565b61030f610a20565b6102906004803603602081101561036657600080fd5b5035610a35565b6102606004803603602081101561038357600080fd5b50351515610a5c565b610290610a76565b61030f600480360360208110156103aa57600080fd5b5035610a85565b61030f600480360360208110156103c757600080fd5b50356001600160a01b0316610b72565b610246610c63565b610246610c69565b61030f600480360360408110156103fd57600080fd5b506001600160a01b0381351690602001351515610c6f565b6102466004803603602081101561042b57600080fd5b50356001600160a01b0316610e61565b610290610e7c565b610246610e8b565b610246610e91565b6102466004803603602081101561046957600080fd5b50356001600160a01b0316610ea4565b61030f610eb6565b610246610f46565b61030f6004803603602081101561049f57600080fd5b5035610f4c565b61030f600480360360408110156104bc57600080fd5b50803590602001351515611128565b61024661130d565b610246611313565b610246611361565b610246611367565b61024661136d565b610246611373565b61030f6004803603602081101561051157600080fd5b5035611379565b6102906113a7565b6001600160a01b0381166000908152600e6020908152604080832054600d909252822054610588919061058290670de0b6b3a76400009061057c9061056d90610567611313565b906113b6565b61057688610e61565b90611418565b90611478565b906114df565b90505b919050565b6003546001600160a01b031633146105dd576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b6105e9601060006119fa565b565b600e6020526000908152604090205481565b6003546001600160a01b031681565b62093a8081565b600c545b90565b336000908152600f60205260409020546106349082610831565b5050565b600b5481565b600082610649611313565b600855610654610e91565b6007556001600160a01b0381161561069b5761066f81610520565b6001600160a01b0382166000908152600e6020908152604080832093909355600854600d909152919020555b600083116106f0576040805162461bcd60e51b815260206004820152601b60248201527f526577617264506f6f6c203a2043616e6e6f74207374616b6520300000000000604482015290519081900360640190fd5b60005b601054811015610787576010818154811061070a57fe5b6000918252602082200154604080516356e4bb9760e11b81526001600160a01b038981166004830152602482018990529151919092169263adc9772e926044808201939182900301818387803b15801561076357600080fd5b505af1158015610777573d6000803e3d6000fd5b5050600190920191506106f39050565b50600c5461079590846114df565b600c556001600160a01b0384166000908152600f60205260409020546107bb90846114df565b6001600160a01b038086166000908152600f60205260409020919091556001546107e89116333086611539565b6040805184815290516001600160a01b038616917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25060019392505050565b60003361083c611313565b600855610847610e91565b6007556001600160a01b0381161561088e5761086281610520565b6001600160a01b0382166000908152600e6020908152604080832093909355600854600d909152919020555b600084116108e3576040805162461bcd60e51b815260206004820152601e60248201527f526577617264506f6f6c203a2043616e6e6f7420776974686472617720300000604482015290519081900360640190fd5b60005b60105481101561097657601081815481106108fd57fe5b60009182526020822001546040805163f3fef3a360e01b81523360048201526024810189905290516001600160a01b039092169263f3fef3a39260448084019382900301818387803b15801561095257600080fd5b505af1158015610966573d6000803e3d6000fd5b5050600190920191506108e69050565b50600c5461098490856113b6565b600c55336000908152600f60205260409020546109a190856113b6565b336000818152600f60205260409020919091556001546109cd916001600160a01b039091169086611599565b60408051858152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a28215610a1657610a14336001610c6f565b505b5060019392505050565b6000610a2d336001610c6f565b506001905090565b60108181548110610a4257fe5b6000918252602090912001546001600160a01b0316905081565b336000908152600f60205260409020546106349082611128565b6002546001600160a01b031681565b6002546000906001600160a01b03163314610ad5576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b600954610ae39083906114df565b91506005544210610b0457610af7826115f0565b506000600955600161058b565b6000610b28610b2162093a806005546113b690919063ffffffff16565b42906113b6565b60065490915081026000610b428561057c846103e8611418565b905061033e811015610b6157610b57856115f0565b6000600955610b67565b60098590555b506001949350505050565b6003546000906001600160a01b03163314610bc2576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b6001600160a01b038216610c0f576040805162461bcd60e51b815260206004820152600f60248201526e217265776172642073657474696e6760881b604482015290519081900360640190fd5b5060108054600181810183556000929092527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6720180546001600160a01b0384166001600160a01b0319909116179055919050565b60095481565b61033e81565b600082610c7a611313565b600855610c85610e91565b6007556001600160a01b03811615610ccc57610ca081610520565b6001600160a01b0382166000908152600e6020908152604080832093909355600854600d909152919020555b6000610cd785610520565b90508015610dbf576001600160a01b038086166000908152600e6020526040812081905554610d0891168683611599565b60025460048054604080516371192b1760e01b8152928301919091526001600160a01b0388811660248401526044830185905290519216916371192b179160648082019260009290919082900301818387803b158015610d6757600080fd5b505af1158015610d7b573d6000803e3d6000fd5b50506040805184815290516001600160a01b03891693507fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048692509081900360200190a25b8315610b675760005b601054811015610e555760108181548110610ddf57fe5b600091825260208220015460408051630c00007b60e41b81526001600160a01b038a811660048301529151919092169263c00007b0926024808201939182900301818387803b158015610e3157600080fd5b505af1158015610e45573d6000803e3d6000fd5b505060019092019150610dc89050565b50506001949350505050565b6001600160a01b03166000908152600f602052604090205490565b6001546001600160a01b031681565b60065481565b6000610e9f42600554611716565b905090565b600d6020526000908152604090205481565b600154604080516370a0823160e01b8152336004820152905160009283926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015610f0657600080fd5b505afa158015610f1a573d6000803e3d6000fd5b505050506040513d6020811015610f3057600080fd5b50519050610f3d81610f4c565b50600191505090565b600a5481565b600033610f57611313565b600855610f62610e91565b6007556001600160a01b03811615610fa957610f7d81610520565b6001600160a01b0382166000908152600e6020908152604080832093909355600854600d909152919020555b60008311610ffe576040805162461bcd60e51b815260206004820152601b60248201527f526577617264506f6f6c203a2043616e6e6f74207374616b6520300000000000604482015290519081900360640190fd5b60005b601054811015611091576010818154811061101857fe5b6000918252602082200154604080516356e4bb9760e11b81523360048201526024810188905290516001600160a01b039092169263adc9772e9260448084019382900301818387803b15801561106d57600080fd5b505af1158015611081573d6000803e3d6000fd5b5050600190920191506110019050565b50600c5461109f90846114df565b600c55336000908152600f60205260409020546110bc90846114df565b336000818152600f60205260409020919091556001546110e9916001600160a01b03909116903086611539565b60408051848152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a250600192915050565b600033611133611313565b60085561113e610e91565b6007556001600160a01b038116156111855761115981610520565b6001600160a01b0382166000908152600e6020908152604080832093909355600854600d909152919020555b60005b601054811015611218576010818154811061119f57fe5b60009182526020822001546040805163f3fef3a360e01b81523360048201526024810189905290516001600160a01b039092169263f3fef3a39260448084019382900301818387803b1580156111f457600080fd5b505af1158015611208573d6000803e3d6000fd5b5050600190920191506111889050565b50600c5461122690856113b6565b600c55336000908152600f602052604090205461124390856113b6565b336000818152600f6020526040808220939093556002546004805485516305335c3960e21b81529182015260248101899052604481019390935292516001600160a01b03909316926314cd70e492606480820193929182900301818387803b1580156112ae57600080fd5b505af11580156112c2573d6000803e3d6000fd5b50506040805187815290513393507f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d592509081900360200190a28215610a1657610a14336001610c6f565b60075481565b600061131d610613565b61132a5750600854610617565b610e9f611358611338610613565b61057c670de0b6b3a7640000610576600654610576600754610567610e91565b600854906114df565b60105490565b60085481565b60055481565b60045481565b60008054611392906001600160a01b0316333085611539565b60095461139f90836114df565b600955919050565b6000546001600160a01b031681565b60008282111561140d576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b60008261142757506000611412565b8282028284828161143457fe5b04146114715760405162461bcd60e51b8152600401808060200182810382526021815260200180611a5b6021913960400191505060405180910390fd5b9392505050565b60008082116114ce576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816114d757fe5b049392505050565b600082820183811015611471576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261159390859061172c565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526115eb90849061172c565b505050565b60006115fa611313565b600855611605610e91565b6007556001600160a01b0381161561164c5761162081610520565b6001600160a01b0382166000908152600e6020908152604080832093909355600854600d909152919020555b600b5461165990836114df565b600b55600554421061167a576116728262093a80611478565b6006556116c4565b60055460009061168a90426113b6565b905060006116a36006548361141890919063ffffffff16565b90506116af84826114df565b93506116be8462093a80611478565b60065550505b600a8290554260078190556116dc9062093a806114df565b6005556040805183815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15050565b60008183106117255781611471565b5090919050565b6060611781826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166117dd9092919063ffffffff16565b8051909150156115eb578080602001905160208110156117a057600080fd5b50516115eb5760405162461bcd60e51b815260040180806020018281038252602a815260200180611a7c602a913960400191505060405180910390fd5b60606117ec84846000856117f4565b949350505050565b6060824710156118355760405162461bcd60e51b8152600401808060200182810382526026815260200180611a356026913960400191505060405180910390fd5b61183e85611950565b61188f576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106118ce5780518252601f1990920191602091820191016118af565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611930576040519150601f19603f3d011682016040523d82523d6000602084013e611935565b606091505b5091509150611945828286611956565b979650505050505050565b3b151590565b60608315611965575081611471565b8251156119755782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156119bf5781810151838201526020016119a7565b50505050905090810190601f1680156119ec5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5080546000825590600052602060002090810190611a189190611a1b565b50565b5b80821115611a305760008155600101611a1c565b509056fe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220c2587b5a77d7a7f733569d1f0dd4c08f00e3e34db8828f410842bfa6d54215fe64736f6c634300060c003360806040526000600355600060045560006007556000600855600060095561033e600a5534801561002f57600080fd5b5060405161113a38038061113a8339818101604052606081101561005257600080fd5b5080516020820151604090920151600080546001600160a01b039384166001600160a01b031991821617909155600180549484169482169490941790935560028054929091169190921617905561108c806100ae6000396000f3fe608060405234801561001057600080fd5b50600436106101725760003560e01c80637b0a47ee116100de578063c8f33c9111610097578063ebe2b12b11610071578063ebe2b12b1461031e578063f14faf6f14610326578063f3fef3a314610357578063f7c618c11461038357610172565b8063c8f33c9114610306578063cd3daf9d1461030e578063df136d651461031657610172565b80637b0a47ee1461027657806380faa57d1461027e5780638b87634714610286578063901a7d53146102ac578063adc9772e146102b4578063c00007b0146102e057610172565b80633d18b912116101305780633d18b91214610211578063570ca7351461021b578063590a41f51461022357806363d38c3b146102405780636c8bcee81461024857806370a082311461025057610172565b80628cc262146101775780630700037d146101af5780630fb5a6b4146101d557806318160ddd146101dd578063262d3d6d146101e5578063323a5e0b146101ed575b600080fd5b61019d6004803603602081101561018d57600080fd5b50356001600160a01b031661038b565b60408051918252519081900360200190f35b61019d600480360360208110156101c557600080fd5b50356001600160a01b03166103f9565b61019d61040b565b61019d610412565b61019d610493565b6101f5610499565b604080516001600160a01b039092168252519081900360200190f35b6102196104a8565b005b6101f56104b3565b6102196004803603602081101561023957600080fd5b50356104c2565b61019d6105a5565b61019d6105ab565b61019d6004803603602081101561026657600080fd5b50356001600160a01b03166105b1565b61019d610631565b61019d610637565b61019d6004803603602081101561029c57600080fd5b50356001600160a01b031661064a565b61019d61065c565b610219600480360360408110156102ca57600080fd5b506001600160a01b038135169060200135610662565b610219600480360360208110156102f657600080fd5b50356001600160a01b031661074e565b61019d61082a565b61019d610830565b61019d61087e565b61019d610884565b6103436004803603602081101561033c57600080fd5b503561088a565b604080519115158252519081900360200190f35b6102196004803603604081101561036d57600080fd5b506001600160a01b0381351690602001356108ba565b6101f56109a6565b6001600160a01b0381166000908152600c6020908152604080832054600b9092528220546103f391906103ed90670de0b6b3a7640000906103e7906103d8906103d2610830565b906109b5565b6103e1886105b1565b90610a12565b90610a72565b90610ad9565b92915050565b600c6020526000908152604090205481565b62093a8081565b60008060009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561046157600080fd5b505afa158015610475573d6000803e3d6000fd5b505050506040513d602081101561048b57600080fd5b505190505b90565b60095481565b6000546001600160a01b031681565b6104b13361074e565b565b6002546001600160a01b031681565b6002546001600160a01b0316331461050f576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b60075461051d908290610ad9565b9050600354421061053b5761053181610b33565b60006007556105a2565b600061055f61055862093a806003546109b590919063ffffffff16565b42906109b5565b60045490915081026000610579846103e7846103e8610a12565b9050600a548110156105985761058e84610b33565b600060075561059e565b60078490555b5050505b50565b60075481565b600a5481565b60008054604080516370a0823160e01b81526001600160a01b038581166004830152915191909216916370a08231916024808301926020929190829003018186803b1580156105ff57600080fd5b505afa158015610613573d6000803e3d6000fd5b505050506040513d602081101561062957600080fd5b505192915050565b60045481565b600061064542600354610c59565b905090565b600b6020526000908152604090205481565b60085481565b8161066b610830565b600655610676610637565b6005556001600160a01b038116156106bd576106918161038b565b6001600160a01b0382166000908152600c6020908152604080832093909355600654600b909152919020555b6000546001600160a01b0316331461070a576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b6040805183815290516001600160a01b038516917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a2505050565b80610757610830565b600655610762610637565b6005556001600160a01b038116156107a95761077d8161038b565b6001600160a01b0382166000908152600c6020908152604080832093909355600654600b909152919020555b60006107b48361038b565b90508015610825576001600160a01b038084166000908152600c60205260408120556001546107e591168483610c6f565b6040805182815290516001600160a01b038516917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b505050565b60055481565b600061083a610412565b6108475750600654610490565b610645610875610855610412565b6103e7670de0b6b3a76400006103e16004546103e16005546103d2610637565b60065490610ad9565b60065481565b60035481565b6001546000906108a5906001600160a01b0316333085610cc1565b6007546108b29083610ad9565b600755919050565b816108c3610830565b6006556108ce610637565b6005556001600160a01b03811615610915576108e98161038b565b6001600160a01b0382166000908152600c6020908152604080832093909355600654600b909152919020555b6000546001600160a01b03163314610962576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b6040805183815290516001600160a01b038516917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a2505050565b6001546001600160a01b031681565b600082821115610a0c576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082610a21575060006103f3565b82820282848281610a2e57fe5b0414610a6b5760405162461bcd60e51b815260040180806020018281038252602181526020018061100c6021913960400191505060405180910390fd5b9392505050565b6000808211610ac8576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381610ad157fe5b049392505050565b600082820183811015610a6b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000610b3d610830565b600655610b48610637565b6005556001600160a01b03811615610b8f57610b638161038b565b6001600160a01b0382166000908152600c6020908152604080832093909355600654600b909152919020555b600954610b9c9083610ad9565b6009556003544210610bbd57610bb58262093a80610a72565b600455610c07565b600354600090610bcd90426109b5565b90506000610be660045483610a1290919063ffffffff16565b9050610bf28482610ad9565b9350610c018462093a80610a72565b60045550505b6008829055426005819055610c1f9062093a80610ad9565b6003556040805183815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15050565b6000818310610c685781610a6b565b5090919050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610825908490610d17565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261059e9085905b6060610d6c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610dc89092919063ffffffff16565b80519091501561082557808060200190516020811015610d8b57600080fd5b50516108255760405162461bcd60e51b815260040180806020018281038252602a81526020018061102d602a913960400191505060405180910390fd5b6060610dd78484600085610ddf565b949350505050565b606082471015610e205760405162461bcd60e51b8152600401808060200182810382526026815260200180610fe66026913960400191505060405180910390fd5b610e2985610f3b565b610e7a576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610eb95780518252601f199092019160209182019101610e9a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610f1b576040519150601f19603f3d011682016040523d82523d6000602084013e610f20565b606091505b5091509150610f30828286610f41565b979650505050505050565b3b151590565b60608315610f50575081610a6b565b825115610f605782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610faa578181015183820152602001610f92565b50505050905090810190601f168015610fd75780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220b1846f38f03004027517b5b4eb8715888a9f20b003182accc0cf65bce3d2999264736f6c634300060c0033a2646970667358221220ecd597c67a5707f6b7a90edfb665b20b29bf46a0b8c24e3a741a2d8848987e9b64736f6c634300060c0033000000000000000000000000f403c135812408bfbe8713b5a23a04b3d48aae31
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100935760003560e01c80638d9622d9116100665780638d9622d914610128578063b7f927b114610154578063b84614a514610194578063ef9126ad146101c4578063f8d6122e146101f057610093565b80630d5843f714610098578063570ca735146100d057806358cbfd45146100f45780636a4874a114610120575b600080fd5b6100be600480360360208110156100ae57600080fd5b50356001600160a01b0316610228565b60408051918252519081900360200190f35b6100d8610243565b604080516001600160a01b039092168252519081900360200190f35b6100d86004803603604081101561010a57600080fd5b50803590602001356001600160a01b0316610252565b6100d8610327565b6100be6004803603604081101561013e57600080fd5b506001600160a01b03813516906020013561033f565b6101806004803603604081101561016a57600080fd5b506001600160a01b03813516906020013561036d565b604080519115158252519081900360200190f35b6101c2600480360360408110156101aa57600080fd5b506001600160a01b0381351690602001351515610450565b005b610180600480360360408110156101da57600080fd5b506001600160a01b0381351690602001356104c2565b6100d86004803603606081101561020657600080fd5b506001600160a01b0381358116916020810135821691604090910135166105e9565b6001600160a01b031660009081526002602052604090205490565b6000546001600160a01b031681565b600080546001600160a01b0316331461029a576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b600080546040518591859173d533a949740bb3306d119cc777fa900ba034cd52916001600160a01b03169030906102d09061071a565b9485526001600160a01b039384166020860152918316604080860191909152908316606085015291166080830152519081900360a001906000f08015801561031c573d6000803e3d6000fd5b509150505b92915050565b73d533a949740bb3306d119cc777fa900ba034cd5281565b6002602052816000526040600020818154811061035857fe5b90600052602060002001600091509150505481565b33600090815260016020819052604082205460ff161515146103be576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6001600160a01b0383166103d457506001610321565b6001600160a01b0383166000908152600260205260408120805490916001850191905b81811015610432578284828154811061040c57fe5b9060005260206000200154141561042a576001945050505050610321565b6001016103f7565b50508154600180820184556000938452602090932001559392505050565b6000546001600160a01b03163314610497576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b33600090815260016020819052604082205460ff16151514610513576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b6001600160a01b03831661052957506001610321565b6001600160a01b0383166000908152600260205260408120805490916001850191905b818110156105dc578284828154811061056157fe5b906000526020600020015414156105d4576001820381146105af5783600183038154811061058b57fe5b90600052602060002001548482815481106105a257fe5b6000918252602090912001555b838054806105b957fe5b600190038181906000526020600020016000905590556105dc565b60010161054c565b5060019695505050505050565b600080546001600160a01b031633148061061857503360009081526001602081905260409091205460ff161515145b610651576040805162461bcd60e51b8152602060048201526005602482015264042c2eae8d60db1b604482015290519081900360640190fd5b600083858460405161066290610727565b6001600160a01b03938416815291831660208301529091166040808301919091525190819003606001906000f0801580156106a1573d6000803e3d6000fd5b5090506000819050846001600160a01b0316635e43c47b826040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b1580156106f857600080fd5b505af115801561070c573d6000803e3d6000fd5b509298975050505050505050565b611ba28061073583390190565b61113a806122d78339019056fe60806040526000600555600060065560006009556000600a556000600b5534801561002957600080fd5b50604051611ba2380380611ba2833981810160405260a081101561004c57600080fd5b508051602082015160408301516060840151608090940151600493909355600180546001600160a01b03199081166001600160a01b039485161790915560008054821692841692909217825560028054821695841695909517909455600380549094169190921617909155611adb9081906100c790396000f3fe608060405234801561001057600080fd5b506004361061021b5760003560e01c80637050ccd911610125578063c32e7202116100ad578063df136d651161007c578063df136d65146104e3578063ebe2b12b146104eb578063f1068454146104f3578063f14faf6f146104fb578063f7c618c1146105185761021b565b8063c32e7202146104a6578063c8f33c91146104cb578063cd3daf9d146104d3578063d55a23f4146104db5761021b565b806380faa57d116100f457806380faa57d1461044b5780638b876347146104535780638dcb406114610479578063901a7d5314610481578063a694fc3a146104895761021b565b80637050ccd9146103e757806370a082311461041557806372f702f31461043b5780637b0a47ee146104435761021b565b806338d07436116101a8578063570ca73511610177578063570ca7351461038c578063590a41f5146103945780635e43c47b146103b157806363d38c3b146103d75780636c8bcee8146103df5761021b565b806338d07436146103235780633d18b9121461034857806340c354461461035057806349f039a21461036d5761021b565b80630fb5a6b4116101ef5780630fb5a6b4146102ac57806318160ddd146102b45780631c1c6fe5146102bc578063262d3d6d146102db5780632ee40908146102e35761021b565b80628cc262146102205780630569d388146102585780630700037d146102625780630f4ef8a614610288575b600080fd5b6102466004803603602081101561023657600080fd5b50356001600160a01b0316610520565b60408051918252519081900360200190f35b610260610590565b005b6102466004803603602081101561027857600080fd5b50356001600160a01b03166105eb565b6102906105fd565b604080516001600160a01b039092168252519081900360200190f35b61024661060c565b610246610613565b610260600480360360208110156102d257600080fd5b5035151561061a565b610246610638565b61030f600480360360408110156102f957600080fd5b506001600160a01b03813516906020013561063e565b604080519115158252519081900360200190f35b61030f6004803603604081101561033957600080fd5b50803590602001351515610831565b61030f610a20565b6102906004803603602081101561036657600080fd5b5035610a35565b6102606004803603602081101561038357600080fd5b50351515610a5c565b610290610a76565b61030f600480360360208110156103aa57600080fd5b5035610a85565b61030f600480360360208110156103c757600080fd5b50356001600160a01b0316610b72565b610246610c63565b610246610c69565b61030f600480360360408110156103fd57600080fd5b506001600160a01b0381351690602001351515610c6f565b6102466004803603602081101561042b57600080fd5b50356001600160a01b0316610e61565b610290610e7c565b610246610e8b565b610246610e91565b6102466004803603602081101561046957600080fd5b50356001600160a01b0316610ea4565b61030f610eb6565b610246610f46565b61030f6004803603602081101561049f57600080fd5b5035610f4c565b61030f600480360360408110156104bc57600080fd5b50803590602001351515611128565b61024661130d565b610246611313565b610246611361565b610246611367565b61024661136d565b610246611373565b61030f6004803603602081101561051157600080fd5b5035611379565b6102906113a7565b6001600160a01b0381166000908152600e6020908152604080832054600d909252822054610588919061058290670de0b6b3a76400009061057c9061056d90610567611313565b906113b6565b61057688610e61565b90611418565b90611478565b906114df565b90505b919050565b6003546001600160a01b031633146105dd576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b6105e9601060006119fa565b565b600e6020526000908152604090205481565b6003546001600160a01b031681565b62093a8081565b600c545b90565b336000908152600f60205260409020546106349082610831565b5050565b600b5481565b600082610649611313565b600855610654610e91565b6007556001600160a01b0381161561069b5761066f81610520565b6001600160a01b0382166000908152600e6020908152604080832093909355600854600d909152919020555b600083116106f0576040805162461bcd60e51b815260206004820152601b60248201527f526577617264506f6f6c203a2043616e6e6f74207374616b6520300000000000604482015290519081900360640190fd5b60005b601054811015610787576010818154811061070a57fe5b6000918252602082200154604080516356e4bb9760e11b81526001600160a01b038981166004830152602482018990529151919092169263adc9772e926044808201939182900301818387803b15801561076357600080fd5b505af1158015610777573d6000803e3d6000fd5b5050600190920191506106f39050565b50600c5461079590846114df565b600c556001600160a01b0384166000908152600f60205260409020546107bb90846114df565b6001600160a01b038086166000908152600f60205260409020919091556001546107e89116333086611539565b6040805184815290516001600160a01b038616917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25060019392505050565b60003361083c611313565b600855610847610e91565b6007556001600160a01b0381161561088e5761086281610520565b6001600160a01b0382166000908152600e6020908152604080832093909355600854600d909152919020555b600084116108e3576040805162461bcd60e51b815260206004820152601e60248201527f526577617264506f6f6c203a2043616e6e6f7420776974686472617720300000604482015290519081900360640190fd5b60005b60105481101561097657601081815481106108fd57fe5b60009182526020822001546040805163f3fef3a360e01b81523360048201526024810189905290516001600160a01b039092169263f3fef3a39260448084019382900301818387803b15801561095257600080fd5b505af1158015610966573d6000803e3d6000fd5b5050600190920191506108e69050565b50600c5461098490856113b6565b600c55336000908152600f60205260409020546109a190856113b6565b336000818152600f60205260409020919091556001546109cd916001600160a01b039091169086611599565b60408051858152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a28215610a1657610a14336001610c6f565b505b5060019392505050565b6000610a2d336001610c6f565b506001905090565b60108181548110610a4257fe5b6000918252602090912001546001600160a01b0316905081565b336000908152600f60205260409020546106349082611128565b6002546001600160a01b031681565b6002546000906001600160a01b03163314610ad5576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b600954610ae39083906114df565b91506005544210610b0457610af7826115f0565b506000600955600161058b565b6000610b28610b2162093a806005546113b690919063ffffffff16565b42906113b6565b60065490915081026000610b428561057c846103e8611418565b905061033e811015610b6157610b57856115f0565b6000600955610b67565b60098590555b506001949350505050565b6003546000906001600160a01b03163314610bc2576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b6001600160a01b038216610c0f576040805162461bcd60e51b815260206004820152600f60248201526e217265776172642073657474696e6760881b604482015290519081900360640190fd5b5060108054600181810183556000929092527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6720180546001600160a01b0384166001600160a01b0319909116179055919050565b60095481565b61033e81565b600082610c7a611313565b600855610c85610e91565b6007556001600160a01b03811615610ccc57610ca081610520565b6001600160a01b0382166000908152600e6020908152604080832093909355600854600d909152919020555b6000610cd785610520565b90508015610dbf576001600160a01b038086166000908152600e6020526040812081905554610d0891168683611599565b60025460048054604080516371192b1760e01b8152928301919091526001600160a01b0388811660248401526044830185905290519216916371192b179160648082019260009290919082900301818387803b158015610d6757600080fd5b505af1158015610d7b573d6000803e3d6000fd5b50506040805184815290516001600160a01b03891693507fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048692509081900360200190a25b8315610b675760005b601054811015610e555760108181548110610ddf57fe5b600091825260208220015460408051630c00007b60e41b81526001600160a01b038a811660048301529151919092169263c00007b0926024808201939182900301818387803b158015610e3157600080fd5b505af1158015610e45573d6000803e3d6000fd5b505060019092019150610dc89050565b50506001949350505050565b6001600160a01b03166000908152600f602052604090205490565b6001546001600160a01b031681565b60065481565b6000610e9f42600554611716565b905090565b600d6020526000908152604090205481565b600154604080516370a0823160e01b8152336004820152905160009283926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015610f0657600080fd5b505afa158015610f1a573d6000803e3d6000fd5b505050506040513d6020811015610f3057600080fd5b50519050610f3d81610f4c565b50600191505090565b600a5481565b600033610f57611313565b600855610f62610e91565b6007556001600160a01b03811615610fa957610f7d81610520565b6001600160a01b0382166000908152600e6020908152604080832093909355600854600d909152919020555b60008311610ffe576040805162461bcd60e51b815260206004820152601b60248201527f526577617264506f6f6c203a2043616e6e6f74207374616b6520300000000000604482015290519081900360640190fd5b60005b601054811015611091576010818154811061101857fe5b6000918252602082200154604080516356e4bb9760e11b81523360048201526024810188905290516001600160a01b039092169263adc9772e9260448084019382900301818387803b15801561106d57600080fd5b505af1158015611081573d6000803e3d6000fd5b5050600190920191506110019050565b50600c5461109f90846114df565b600c55336000908152600f60205260409020546110bc90846114df565b336000818152600f60205260409020919091556001546110e9916001600160a01b03909116903086611539565b60408051848152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a250600192915050565b600033611133611313565b60085561113e610e91565b6007556001600160a01b038116156111855761115981610520565b6001600160a01b0382166000908152600e6020908152604080832093909355600854600d909152919020555b60005b601054811015611218576010818154811061119f57fe5b60009182526020822001546040805163f3fef3a360e01b81523360048201526024810189905290516001600160a01b039092169263f3fef3a39260448084019382900301818387803b1580156111f457600080fd5b505af1158015611208573d6000803e3d6000fd5b5050600190920191506111889050565b50600c5461122690856113b6565b600c55336000908152600f602052604090205461124390856113b6565b336000818152600f6020526040808220939093556002546004805485516305335c3960e21b81529182015260248101899052604481019390935292516001600160a01b03909316926314cd70e492606480820193929182900301818387803b1580156112ae57600080fd5b505af11580156112c2573d6000803e3d6000fd5b50506040805187815290513393507f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d592509081900360200190a28215610a1657610a14336001610c6f565b60075481565b600061131d610613565b61132a5750600854610617565b610e9f611358611338610613565b61057c670de0b6b3a7640000610576600654610576600754610567610e91565b600854906114df565b60105490565b60085481565b60055481565b60045481565b60008054611392906001600160a01b0316333085611539565b60095461139f90836114df565b600955919050565b6000546001600160a01b031681565b60008282111561140d576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b60008261142757506000611412565b8282028284828161143457fe5b04146114715760405162461bcd60e51b8152600401808060200182810382526021815260200180611a5b6021913960400191505060405180910390fd5b9392505050565b60008082116114ce576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816114d757fe5b049392505050565b600082820183811015611471576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261159390859061172c565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526115eb90849061172c565b505050565b60006115fa611313565b600855611605610e91565b6007556001600160a01b0381161561164c5761162081610520565b6001600160a01b0382166000908152600e6020908152604080832093909355600854600d909152919020555b600b5461165990836114df565b600b55600554421061167a576116728262093a80611478565b6006556116c4565b60055460009061168a90426113b6565b905060006116a36006548361141890919063ffffffff16565b90506116af84826114df565b93506116be8462093a80611478565b60065550505b600a8290554260078190556116dc9062093a806114df565b6005556040805183815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15050565b60008183106117255781611471565b5090919050565b6060611781826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166117dd9092919063ffffffff16565b8051909150156115eb578080602001905160208110156117a057600080fd5b50516115eb5760405162461bcd60e51b815260040180806020018281038252602a815260200180611a7c602a913960400191505060405180910390fd5b60606117ec84846000856117f4565b949350505050565b6060824710156118355760405162461bcd60e51b8152600401808060200182810382526026815260200180611a356026913960400191505060405180910390fd5b61183e85611950565b61188f576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106118ce5780518252601f1990920191602091820191016118af565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611930576040519150601f19603f3d011682016040523d82523d6000602084013e611935565b606091505b5091509150611945828286611956565b979650505050505050565b3b151590565b60608315611965575081611471565b8251156119755782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156119bf5781810151838201526020016119a7565b50505050905090810190601f1680156119ec5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5080546000825590600052602060002090810190611a189190611a1b565b50565b5b80821115611a305760008155600101611a1c565b509056fe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220c2587b5a77d7a7f733569d1f0dd4c08f00e3e34db8828f410842bfa6d54215fe64736f6c634300060c003360806040526000600355600060045560006007556000600855600060095561033e600a5534801561002f57600080fd5b5060405161113a38038061113a8339818101604052606081101561005257600080fd5b5080516020820151604090920151600080546001600160a01b039384166001600160a01b031991821617909155600180549484169482169490941790935560028054929091169190921617905561108c806100ae6000396000f3fe608060405234801561001057600080fd5b50600436106101725760003560e01c80637b0a47ee116100de578063c8f33c9111610097578063ebe2b12b11610071578063ebe2b12b1461031e578063f14faf6f14610326578063f3fef3a314610357578063f7c618c11461038357610172565b8063c8f33c9114610306578063cd3daf9d1461030e578063df136d651461031657610172565b80637b0a47ee1461027657806380faa57d1461027e5780638b87634714610286578063901a7d53146102ac578063adc9772e146102b4578063c00007b0146102e057610172565b80633d18b912116101305780633d18b91214610211578063570ca7351461021b578063590a41f51461022357806363d38c3b146102405780636c8bcee81461024857806370a082311461025057610172565b80628cc262146101775780630700037d146101af5780630fb5a6b4146101d557806318160ddd146101dd578063262d3d6d146101e5578063323a5e0b146101ed575b600080fd5b61019d6004803603602081101561018d57600080fd5b50356001600160a01b031661038b565b60408051918252519081900360200190f35b61019d600480360360208110156101c557600080fd5b50356001600160a01b03166103f9565b61019d61040b565b61019d610412565b61019d610493565b6101f5610499565b604080516001600160a01b039092168252519081900360200190f35b6102196104a8565b005b6101f56104b3565b6102196004803603602081101561023957600080fd5b50356104c2565b61019d6105a5565b61019d6105ab565b61019d6004803603602081101561026657600080fd5b50356001600160a01b03166105b1565b61019d610631565b61019d610637565b61019d6004803603602081101561029c57600080fd5b50356001600160a01b031661064a565b61019d61065c565b610219600480360360408110156102ca57600080fd5b506001600160a01b038135169060200135610662565b610219600480360360208110156102f657600080fd5b50356001600160a01b031661074e565b61019d61082a565b61019d610830565b61019d61087e565b61019d610884565b6103436004803603602081101561033c57600080fd5b503561088a565b604080519115158252519081900360200190f35b6102196004803603604081101561036d57600080fd5b506001600160a01b0381351690602001356108ba565b6101f56109a6565b6001600160a01b0381166000908152600c6020908152604080832054600b9092528220546103f391906103ed90670de0b6b3a7640000906103e7906103d8906103d2610830565b906109b5565b6103e1886105b1565b90610a12565b90610a72565b90610ad9565b92915050565b600c6020526000908152604090205481565b62093a8081565b60008060009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561046157600080fd5b505afa158015610475573d6000803e3d6000fd5b505050506040513d602081101561048b57600080fd5b505190505b90565b60095481565b6000546001600160a01b031681565b6104b13361074e565b565b6002546001600160a01b031681565b6002546001600160a01b0316331461050f576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b60075461051d908290610ad9565b9050600354421061053b5761053181610b33565b60006007556105a2565b600061055f61055862093a806003546109b590919063ffffffff16565b42906109b5565b60045490915081026000610579846103e7846103e8610a12565b9050600a548110156105985761058e84610b33565b600060075561059e565b60078490555b5050505b50565b60075481565b600a5481565b60008054604080516370a0823160e01b81526001600160a01b038581166004830152915191909216916370a08231916024808301926020929190829003018186803b1580156105ff57600080fd5b505afa158015610613573d6000803e3d6000fd5b505050506040513d602081101561062957600080fd5b505192915050565b60045481565b600061064542600354610c59565b905090565b600b6020526000908152604090205481565b60085481565b8161066b610830565b600655610676610637565b6005556001600160a01b038116156106bd576106918161038b565b6001600160a01b0382166000908152600c6020908152604080832093909355600654600b909152919020555b6000546001600160a01b0316331461070a576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b6040805183815290516001600160a01b038516917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a2505050565b80610757610830565b600655610762610637565b6005556001600160a01b038116156107a95761077d8161038b565b6001600160a01b0382166000908152600c6020908152604080832093909355600654600b909152919020555b60006107b48361038b565b90508015610825576001600160a01b038084166000908152600c60205260408120556001546107e591168483610c6f565b6040805182815290516001600160a01b038516917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b505050565b60055481565b600061083a610412565b6108475750600654610490565b610645610875610855610412565b6103e7670de0b6b3a76400006103e16004546103e16005546103d2610637565b60065490610ad9565b60065481565b60035481565b6001546000906108a5906001600160a01b0316333085610cc1565b6007546108b29083610ad9565b600755919050565b816108c3610830565b6006556108ce610637565b6005556001600160a01b03811615610915576108e98161038b565b6001600160a01b0382166000908152600c6020908152604080832093909355600654600b909152919020555b6000546001600160a01b03163314610962576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b6040805183815290516001600160a01b038516917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a2505050565b6001546001600160a01b031681565b600082821115610a0c576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082610a21575060006103f3565b82820282848281610a2e57fe5b0414610a6b5760405162461bcd60e51b815260040180806020018281038252602181526020018061100c6021913960400191505060405180910390fd5b9392505050565b6000808211610ac8576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381610ad157fe5b049392505050565b600082820183811015610a6b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000610b3d610830565b600655610b48610637565b6005556001600160a01b03811615610b8f57610b638161038b565b6001600160a01b0382166000908152600c6020908152604080832093909355600654600b909152919020555b600954610b9c9083610ad9565b6009556003544210610bbd57610bb58262093a80610a72565b600455610c07565b600354600090610bcd90426109b5565b90506000610be660045483610a1290919063ffffffff16565b9050610bf28482610ad9565b9350610c018462093a80610a72565b60045550505b6008829055426005819055610c1f9062093a80610ad9565b6003556040805183815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15050565b6000818310610c685781610a6b565b5090919050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610825908490610d17565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261059e9085905b6060610d6c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610dc89092919063ffffffff16565b80519091501561082557808060200190516020811015610d8b57600080fd5b50516108255760405162461bcd60e51b815260040180806020018281038252602a81526020018061102d602a913960400191505060405180910390fd5b6060610dd78484600085610ddf565b949350505050565b606082471015610e205760405162461bcd60e51b8152600401808060200182810382526026815260200180610fe66026913960400191505060405180910390fd5b610e2985610f3b565b610e7a576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610eb95780518252601f199092019160209182019101610e9a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610f1b576040519150601f19603f3d011682016040523d82523d6000602084013e610f20565b606091505b5091509150610f30828286610f41565b979650505050505050565b3b151590565b60608315610f50575081610a6b565b825115610f605782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610faa578181015183820152602001610f92565b50505050905090810190601f168015610fd75780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220b1846f38f03004027517b5b4eb8715888a9f20b003182accc0cf65bce3d2999264736f6c634300060c0033a2646970667358221220ecd597c67a5707f6b7a90edfb665b20b29bf46a0b8c24e3a741a2d8848987e9b64736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f403c135812408bfbe8713b5a23a04b3d48aae31
-----Decoded View---------------
Arg [0] : _operator (address): 0xF403C135812408BFbE8713b5A23a04b3D48AAE31
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000f403c135812408bfbe8713b5a23a04b3d48aae31
Deployed Bytecode Sourcemap
45858:3581:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46275:132;;;;;;;;;;;;;;;;-1:-1:-1;46275:132:0;-1:-1:-1;;;;;46275:132:0;;:::i;:::-;;;;;;;;;;;;;;;;46012:23;;;:::i;:::-;;;;-1:-1:-1;;;;;46012:23:0;;;;;;;;;;;;;;48081:513;;;;;;;;;;;;;;;;-1:-1:-1;48081:513:0;;;;;;-1:-1:-1;;;;;48081:513:0;;:::i;45922:81::-;;;:::i;46095:53::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;46095:53:0;;;;;;;;:::i;46415:571::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;46415:571:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;47830:157;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;47830:157:0;;;;;;;;;;:::i;:::-;;46994:721;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;46994:721:0;;;;;;;;:::i;48774:662::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;48774:662:0;;;;;;;;;;;;;;;;;;;:::i;46275:132::-;-1:-1:-1;;;;;46367:25:0;46341:7;46367:25;;;:16;:25;;;;;:32;;46275:132::o;46012:23::-;;;-1:-1:-1;;;;;46012:23:0;;:::o;48081:513::-;48162:7;48204:8;;-1:-1:-1;;;;;48204:8:0;48190:10;:22;48182:40;;;;;-1:-1:-1;;;48182:40:0;;;;;;;;;;;;-1:-1:-1;;;48182:40:0;;;;;;;;;;;;;;;48455:25;48525:8;;48483:66;;48502:4;;48507:13;;45960:42;;-1:-1:-1;;;;;48525:8:0;;48543:4;;48483:66;;;:::i;:::-;;;;-1:-1:-1;;;;;48483:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48483:66:0;;;;;;;;;;;;;;;-1:-1:-1;48455:94:0;-1:-1:-1;;48081:513:0;;;;;:::o;45922:81::-;45960:42;45922:81;:::o;46095:53::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;46415:571::-;46525:10;46488:4;46512:24;;;:12;:24;;;;;;;;;;:32;;;46504:49;;;;;-1:-1:-1;;;46504:49:0;;;;;;;;;;;;-1:-1:-1;;;46504:49:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;46567:21:0;;46564:63;;-1:-1:-1;46611:4:0;46604:11;;46564:63;-1:-1:-1;;;;;46670:25:0;;46639:28;46670:25;;;:16;:25;;;;;46800:17;;46670:25;;46725:1;46720:6;;;46800:17;46828:98;46851:6;46847:1;:10;46828:98;;;46898:3;46881:10;46892:1;46881:13;;;;;;;;;;;;;;;;:20;46878:36;;;46910:4;46903:11;;;;;;;;46878:36;46859:3;;46828:98;;;-1:-1:-1;;46936:20:0;;;;;;;;-1:-1:-1;46936:20:0;;;;;;;;;;46415:571;-1:-1:-1;;;46415:571:0:o;47830:157::-;47920:8;;-1:-1:-1;;;;;47920:8:0;47906:10;:22;47898:40;;;;;-1:-1:-1;;;47898:40:0;;;;;;;;;;;;-1:-1:-1;;;47898:40:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;47949:20:0;;;;;;;;:12;:20;;;;;:30;;-1:-1:-1;;47949:30:0;;;;;;;;;;47830:157::o;46994:721::-;47107:10;47070:4;47094:24;;;:12;:24;;;;;;;;;;:32;;;47086:49;;;;;-1:-1:-1;;;47086:49:0;;;;;;;;;;;;-1:-1:-1;;;47086:49:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;47149:21:0;;47146:63;;-1:-1:-1;47193:4:0;47186:11;;47146:63;-1:-1:-1;;;;;47252:25:0;;47221:28;47252:25;;;:16;:25;;;;;47382:17;;47252:25;;47307:1;47302:6;;;47382:17;47410:276;47433:6;47429:1;:10;47410:276;;;47480:3;47463:10;47474:1;47463:13;;;;;;;;;;;;;;;;:20;47460:215;;;47519:1;47512:6;:8;47507:1;:13;47503:98;;47561:10;47579:1;47572:6;:8;47561:20;;;;;;;;;;;;;;;;47545:10;47556:1;47545:13;;;;;;;;;;;;;;;;;:36;47503:98;47619:10;:16;;;;;;;;;;;;;;;;;;;;;;;;47654:5;;47460:215;47441:3;;47410:276;;;-1:-1:-1;47703:4:0;;46994:721;-1:-1:-1;;;;;;46994:721:0:o;48774:662::-;48877:7;48919:8;;-1:-1:-1;;;;;48919:8:0;48905:10;:22;;:58;;-1:-1:-1;48944:10:0;48931:24;;;;:12;:24;;;;;;;;;;;:32;;;48905:58;48897:76;;;;;-1:-1:-1;;;48897:76:0;;;;;;;;;;;;-1:-1:-1;;;48897:76:0;;;;;;;;;;;;;;;49047:35;49114:12;49127:6;49134:9;49085:59;;;;;:::i;:::-;-1:-1:-1;;;;;49085:59:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;49085:59:0;;;;;;;;;;;;;;;;49047:97;;49155:16;49182:10;49155:38;;49327:12;-1:-1:-1;;;;;49318:37:0;;49356:8;49318:47;;;;;;;;;;;;;-1:-1:-1;;;;;49318:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;49420:8:0;;48774:662;-1:-1:-1;;;;;;;;48774:662:0:o;-1:-1:-1:-;;;;;;;;:::o;:::-;;;;;;;;:::o
Swarm Source
ipfs://ecd597c67a5707f6b7a90edfb665b20b29bf46a0b8c24e3a741a2d8848987e9b
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ 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.