ETH Price: $3,333.30 (-2.50%)

Contract

0x6D1D6710aC18aFc168fD1637180deee8d203870F
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Get Reward149771812022-06-17 4:17:38924 days ago1655439458IN
0x6D1D6710...8d203870F
0 ETH0.0013490830.56035016
Exit149771812022-06-17 4:17:38924 days ago1655439458IN
0x6D1D6710...8d203870F
0 ETH0.0053516630.56035016
Exit148859522022-06-01 16:58:30939 days ago1654102710IN
0x6D1D6710...8d203870F
0 ETH0.0199206498.48152876
Exit146364952022-04-22 19:17:11979 days ago1650655031IN
0x6D1D6710...8d203870F
0 ETH0.0105289254.77597376
Exit137724112021-12-09 17:39:151113 days ago1639071555IN
0x6D1D6710...8d203870F
0 ETH0.014464775.25158688
Exit137030302021-11-28 14:54:071124 days ago1638111247IN
0x6D1D6710...8d203870F
0 ETH0.01619565102.49248316
Exit136800622021-11-24 23:24:061128 days ago1637796246IN
0x6D1D6710...8d203870F
0 ETH0.02696805139.11456587
Exit134089752021-10-13 8:28:041170 days ago1634113684IN
0x6D1D6710...8d203870F
0 ETH0.0144552274.56718726
Exit133220652021-09-29 17:42:341184 days ago1632937354IN
0x6D1D6710...8d203870F
0 ETH0.02100034111.08059627
Exit133198362021-09-29 9:22:021184 days ago1632907322IN
0x6D1D6710...8d203870F
0 ETH0.0058617460.02261414
Transfer133088302021-09-27 16:13:311186 days ago1632759211IN
0x6D1D6710...8d203870F
0 ETH0.0068778257.00125973
Exit132941922021-09-25 9:37:021188 days ago1632562622IN
0x6D1D6710...8d203870F
0 ETH0.0070269338.51537954
Exit132523342021-09-18 22:08:071195 days ago1632002887IN
0x6D1D6710...8d203870F
0 ETH0.0088257849
Exit132423072021-09-17 9:04:561196 days ago1631869496IN
0x6D1D6710...8d203870F
0 ETH0.0108108266.31351268
Get Reward132423032021-09-17 9:03:381196 days ago1631869418IN
0x6D1D6710...8d203870F
0 ETH0.0091128359.85521562
Get Reward132377362021-09-16 16:01:011197 days ago1631808061IN
0x6D1D6710...8d203870F
0 ETH0.0037723554.36452362
Get Reward132089682021-09-12 5:09:171202 days ago1631423357IN
0x6D1D6710...8d203870F
0 ETH0.0064090542.09616501
Get Reward132015372021-09-11 1:28:371203 days ago1631323717IN
0x6D1D6710...8d203870F
0 ETH0.0113881574.8
Transfer131294062021-08-30 21:50:121214 days ago1630360212IN
0x6D1D6710...8d203870F
0 ETH0.01411293130
Transfer131292092021-08-30 21:07:521214 days ago1630357672IN
0x6D1D6710...8d203870F
0 ETH0.0325647300
Exit131248872021-08-30 5:05:291215 days ago1630299929IN
0x6D1D6710...8d203870F
0 ETH0.007873882
Stake130957582021-08-25 17:15:111219 days ago1629911711IN
0x6D1D6710...8d203870F
0 ETH0.01668678131
Get Reward130724282021-08-22 2:32:531223 days ago1629599573IN
0x6D1D6710...8d203870F
0 ETH0.0028776622
Exit130218762021-08-14 7:18:121231 days ago1628925492IN
0x6D1D6710...8d203870F
0 ETH0.0072834546
Exit130152102021-08-13 6:33:231232 days ago1628836403IN
0x6D1D6710...8d203870F
0 ETH0.0068084443
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
118312582021-02-10 21:36:341415 days ago1612992994  Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
UniV2StakeFarm

Compiler Version
v0.7.4+commit.3f05b770

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion, Apache-2.0 license
File 1 of 12 : UniV2StakeFarm.sol
/*
 * Copyright (C) 2020-2021 The Wolfpack
 * This file is part of wolves.finance - https://github.com/wolvesofwallstreet/wolves.finance
 *
 * SPDX-License-Identifier: Apache-2.0
 * See the file LICENSES/README.md for more information.
 */

pragma solidity >=0.6.0 <0.8.0;

import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC20/SafeERC20.sol';
import '@openzeppelin/contracts/math/SafeMath.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/utils/ReentrancyGuard.sol';

import './interfaces/IController.sol';
import './interfaces/IFarm.sol';
import './interfaces/IStakeFarm.sol';
import '../../interfaces/uniswap/IUniswapV2Pair.sol';

contract UniV2StakeFarm is IFarm, IStakeFarm, Ownable, ReentrancyGuard {
  using SafeMath for uint256;
  using SafeERC20 for IERC20;

  /* ========== STATE VARIABLES ========== */

  IUniswapV2Pair public stakingToken;
  uint256 public override periodFinish = 0;
  uint256 public rewardRate = 0;
  uint256 public rewardsDuration = 7 days;
  uint256 public lastUpdateTime;
  uint256 public rewardPerTokenStored;
  uint256 private availableRewards;

  mapping(address => uint256) public userRewardPerTokenPaid;
  mapping(address => uint256) public rewards;
  // TODO: Remove next 2 lines after dapp launch (special reward condition)
  mapping(address => uint256) private firstStakeTime;
  uint256 private constant ETH_LIMIT = 2e17;

  uint256 private _totalSupply;
  mapping(address => uint256) private _balances;

  // Unique name of this farm instance, used in controller
  string private _farmName;
  // Uniswap route to get price for token 0 in pair
  IUniswapV2Pair public immutable route;
  // The address of the controller
  IController public controller;
  // The direction of the uniswap pairs
  uint8 public pairDirection;

  /* ========== CONSTRUCTOR ========== */

  constructor(
    address _owner,
    string memory _name,
    address _stakingToken,
    address _rewardToken,
    address _controller,
    address _route
  ) {
    _farmName = _name;
    stakingToken = IUniswapV2Pair(_stakingToken);
    controller = IController(_controller);
    route = IUniswapV2Pair(_route);

    address routeLink;

    /**
     * @dev Calculate the sort order of the keys once to save gas in further steps
     *
     * Our token sort order is:
     * - stakeToken: token0[routeLink], token1[rewardToken]
     * - route:      token0[routeLink], token1[stableCoin]
     *
     * If the sort order differs, we set one bit for each of both
     */
    if (stakingToken.token0() == _rewardToken) {
      pairDirection = 1;
      routeLink = stakingToken.token1();
    } else routeLink = stakingToken.token0();

    if (
      address(_route) != address(0) &&
      IUniswapV2Pair(_route).token1() == routeLink
    ) pairDirection |= 2;
    transferOwnership(_owner);
  }

  /* ========== VIEWS ========== */

  function farmName() external view override returns (string memory) {
    return _farmName;
  }

  function totalSupply() external view returns (uint256) {
    return _totalSupply;
  }

  function balanceOf(address account) external view returns (uint256) {
    return _balances[account];
  }

  function lastTimeRewardApplicable() public view returns (uint256) {
    // solhint-disable-next-line not-rely-on-time
    return block.timestamp < periodFinish ? 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
      _balances[account]
        .mul(rewardPerToken().sub(userRewardPerTokenPaid[account]))
        .div(1e18)
        .add(rewards[account]);
  }

  function getRewardForDuration() external view returns (uint256) {
    return rewardRate.mul(rewardsDuration);
  }

  function getUIData(address _user) external view returns (uint256[9] memory) {
    (uint112 reserve0, uint112 reserve1, uint256 price) = _getTokenUiData();
    uint256[9] memory result =
      [
        // Pool
        stakingToken.totalSupply(),
        (uint256(reserve0)),
        (uint256(reserve1)),
        price,
        // Stake
        _totalSupply,
        _balances[_user],
        rewardsDuration,
        rewardRate.mul(rewardsDuration),
        earned(_user)
      ];
    return result;
  }

  /* ========== MUTATIVE FUNCTIONS ========== */

  function stake(uint256 amount)
    external
    override
    nonReentrant
    updateReward(msg.sender)
  {
    require(amount > 0, 'Cannot stake 0');

    /*(uint256 fee) = */
    controller.onDeposit(amount);

    _totalSupply = _totalSupply.add(amount);
    _balances[msg.sender] = _balances[msg.sender].add(amount);
    IERC20(address(stakingToken)).safeTransferFrom(
      msg.sender,
      address(this),
      amount
    );

    // TODO: Remove after launch
    if (
      firstStakeTime[msg.sender] == 0 &&
      _ethAmount(_balances[msg.sender]) >= ETH_LIMIT
      // solhint-disable-next-line not-rely-on-time
    ) firstStakeTime[msg.sender] = block.timestamp;

    emit Staked(msg.sender, amount);
  }

  function unstake(uint256 amount)
    public
    override
    nonReentrant
    updateReward(msg.sender)
  {
    require(amount > 0, 'Cannot withdraw 0');

    /*(uint256 fee) = */
    controller.onWithdraw(amount);

    _totalSupply = _totalSupply.sub(amount);
    _balances[msg.sender] = _balances[msg.sender].sub(amount);
    IERC20(address(stakingToken)).safeTransfer(msg.sender, amount);

    // TODO: Remove after launch
    if (
      firstStakeTime[msg.sender] > 0 &&
      (_balances[msg.sender] == 0 ||
        _ethAmount(_balances[msg.sender]) < ETH_LIMIT)
    ) firstStakeTime[msg.sender] = 0;

    emit Unstaked(msg.sender, amount);
  }

  function transfer(address recipient, uint256 amount)
    external
    override
    updateReward(msg.sender)
    updateReward(recipient)
  {
    require(recipient != address(0), 'invalid address');
    require(amount > 0, 'zero amount');

    _balances[msg.sender] = _balances[msg.sender].sub(amount);
    _balances[recipient] = _balances[recipient].add(amount);
    emit Transfered(msg.sender, recipient, amount);
  }

  function getReward() public override nonReentrant updateReward(msg.sender) {
    uint256 reward = rewards[msg.sender];
    if (reward > 0) {
      rewards[msg.sender] = 0;
      availableRewards = availableRewards.sub(reward);
      controller.payOutRewards(msg.sender, reward);
      emit RewardPaid(msg.sender, reward);
    }
  }

  function exit() external override {
    unstake(_balances[msg.sender]);
    getReward();
  }

  /* ========== RESTRICTED FUNCTIONS ========== */

  function setController(address newController)
    external
    override
    onlyController
  {
    controller = IController(newController);
    emit ControllerChanged(newController);
  }

  function notifyRewardAmount(uint256 reward)
    external
    override
    onlyController
    updateReward(address(0))
  {
    // solhint-disable-next-line not-rely-on-time
    if (block.timestamp >= periodFinish) {
      rewardRate = reward.div(rewardsDuration);
    } else {
      // solhint-disable-next-line not-rely-on-time
      uint256 remaining = periodFinish.sub(block.timestamp);
      uint256 leftover = remaining.mul(rewardRate);
      rewardRate = reward.add(leftover).div(rewardsDuration);
    }
    availableRewards = availableRewards.add(reward);

    // Ensure the provided reward amount is not more than the balance in the
    // contract.
    //
    // This keeps the reward rate in the right range, preventing overflows due
    // to very high values of rewardRate in the earned and rewardsPerToken
    // functions.
    //
    // Reward + leftover must be less than 2^256 / 10^18 to avoid overflow.
    //
    require(
      rewardRate <= availableRewards.div(rewardsDuration),
      'Provided reward too high'
    );

    // solhint-disable-next-line not-rely-on-time
    lastUpdateTime = block.timestamp;
    // solhint-disable-next-line not-rely-on-time
    periodFinish = block.timestamp.add(rewardsDuration);

    emit RewardAdded(reward);
  }

  // We don't have any rebalancing here
  // solhint-disable-next-line no-empty-blocks
  function rebalance() external override onlyController {}

  // Added to support recovering LP Rewards from other systems to be distributed to holders
  function recoverERC20(address tokenAddress, uint256 tokenAmount)
    external
    onlyOwner
  {
    // Cannot recover the staking token or the rewards token
    require(
      tokenAddress != address(stakingToken),
      'pool tokens not recoverable'
    );
    IERC20(tokenAddress).safeTransfer(owner(), tokenAmount);
    emit Recovered(tokenAddress, tokenAmount);
  }

  function setRewardsDuration(uint256 _rewardsDuration)
    external
    override
    onlyOwner
  {
    require(
      // solhint-disable-next-line not-rely-on-time
      periodFinish == 0 || block.timestamp > periodFinish,
      'reward period not finished'
    );
    rewardsDuration = _rewardsDuration;
    emit RewardsDurationUpdated(rewardsDuration);
  }

  /* ========== PRIVATE ========== */

  function _ethAmount(uint256 amountToken) private view returns (uint256) {
    (uint112 reserve0, uint112 reserve1, ) = stakingToken.getReserves();

    // RouteLink is token1, swap
    if ((pairDirection & 1) != 0) reserve0 = reserve1;

    return (uint256(reserve0).mul(amountToken)).div(stakingToken.totalSupply());
  }

  /**
   * @dev Returns the reserves in order: ETH -> Token, ETH/stable
   */
  function _getTokenUiData()
    internal
    view
    returns (
      uint112,
      uint112,
      uint256
    )
  {
    (uint112 reserve0, uint112 reserve1, ) = stakingToken.getReserves();
    (uint112 reserve0R, uint112 reserve1R, ) =
      address(route) != address(0) ? route.getReserves() : (1, 1, 0);

    uint112 swap;

    // RouteLink is token1, swap
    if ((pairDirection & 1) != 0) {
      swap = reserve0;
      reserve0 = reserve1;
      reserve1 = swap;
    }

    // RouteLink is token1, swap
    if ((pairDirection & 2) != 0) {
      swap = reserve0R;
      reserve0R = reserve1R;
      reserve1R = swap;
    }

    return (reserve0, reserve1, uint256(reserve0R).mul(1e18).div(reserve1R));
  }

  /* ========== MODIFIERS ========== */

  modifier onlyController {
    require(_msgSender() == address(controller), 'not controller');
    _;
  }

  modifier updateReward(address account) {
    rewardPerTokenStored = rewardPerToken();
    lastUpdateTime = lastTimeRewardApplicable();
    if (account != address(0)) {
      rewards[account] = earned(account);
      userRewardPerTokenPaid[account] = rewardPerTokenStored;
    }
    _;
  }

  /* ========== EVENTS ========== */

  event RewardAdded(uint256 reward);
  event Staked(address indexed user, uint256 amount);
  event Unstaked(address indexed user, uint256 amount);
  event Transfered(address indexed from, address indexed to, uint256 amount);
  event RewardPaid(address indexed user, uint256 reward);
  event RewardsDurationUpdated(uint256 newDuration);
  event Recovered(address token, uint256 amount);
  event ControllerChanged(address newController);
}

File 2 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../utils/Context.sol";
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 3 of 12 : SafeMath.sol
// SPDX-License-Identifier: MIT

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 4 of 12 : IERC20.sol
// SPDX-License-Identifier: MIT

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 5 of 12 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC20.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for 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 6 of 12 : Address.sol
// SPDX-License-Identifier: MIT

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 7 of 12 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 8 of 12 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 9 of 12 : IUniswapV2Pair.sol
/*
 * Copyright (C) 2020-2021 The Wolfpack
 * This file is part of wolves.finance - https://github.com/wolvesofwallstreet/wolves.finance
 *
 * This file is derived from Uniswap, available under the GNU General Public
 * License 3.0. https://uniswap.org/
 *
 * SPDX-License-Identifier: Apache-2.0 AND GPL-3.0-or-later
 * See the file LICENSES/README.md for more information.
 */

pragma solidity >=0.6.0;

interface IUniswapV2Pair {
  event Approval(address indexed owner, address indexed spender, uint256 value);
  event Transfer(address indexed from, address indexed to, uint256 value);

  function name() external pure returns (string memory);

  function symbol() external pure returns (string memory);

  function decimals() external pure returns (uint8);

  function totalSupply() external view returns (uint256);

  function balanceOf(address owner) external view returns (uint256);

  function allowance(address owner, address spender)
    external
    view
    returns (uint256);

  function approve(address spender, uint256 value) external returns (bool);

  function transfer(address to, uint256 value) external returns (bool);

  function transferFrom(
    address from,
    address to,
    uint256 value
  ) external returns (bool);

  // solhint-disable-next-line func-name-mixedcase
  function DOMAIN_SEPARATOR() external view returns (bytes32);

  // solhint-disable-next-line func-name-mixedcase
  function PERMIT_TYPEHASH() external pure returns (bytes32);

  function nonces(address owner) external view returns (uint256);

  function permit(
    address owner,
    address spender,
    uint256 value,
    uint256 deadline,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) external;

  event Mint(address indexed sender, uint256 amount0, uint256 amount1);
  event Burn(
    address indexed sender,
    uint256 amount0,
    uint256 amount1,
    address indexed to
  );
  event Swap(
    address indexed sender,
    uint256 amount0In,
    uint256 amount1In,
    uint256 amount0Out,
    uint256 amount1Out,
    address indexed to
  );
  event Sync(uint112 reserve0, uint112 reserve1);

  // solhint-disable-next-line func-name-mixedcase
  function MINIMUM_LIQUIDITY() external pure returns (uint256);

  function factory() external view returns (address);

  function token0() external view returns (address);

  function token1() external view returns (address);

  function getReserves()
    external
    view
    returns (
      uint112 reserve0,
      uint112 reserve1,
      uint32 blockTimestampLast
    );

  function price0CumulativeLast() external view returns (uint256);

  function price1CumulativeLast() external view returns (uint256);

  function kLast() external view returns (uint256);

  function mint(address to) external returns (uint256 liquidity);

  function burn(address to) external returns (uint256 amount0, uint256 amount1);

  function swap(
    uint256 amount0Out,
    uint256 amount1Out,
    address to,
    bytes calldata data
  ) external;

  function skim(address to) external;

  function sync() external;

  function initialize(address, address) external;
}

File 10 of 12 : IController.sol
/*
 * Copyright (C) 2020-2021 The Wolfpack
 * This file is part of wolves.finance - https://github.com/wolvesofwallstreet/wolves.finance
 *
 * SPDX-License-Identifier: Apache-2.0
 * See the file LICENSES/README.md for more information.
 */

pragma solidity >=0.6.0 <0.8.0;

interface IController {
  /**
   * @dev Revert on failure, return deposit fee in 1e-18/fee notation on success
   */
  function onDeposit(uint256 amount) external view returns (uint256 fee);

  /**
   * @dev Revert on failure, return withdrawal fee in 1e-18/fee notation on success
   */
  function onWithdraw(uint256 amount) external view returns (uint256 fee);

  /**
   * @dev Distribute rewards to sender and fee to internal contracts
   */
  function payOutRewards(address recipient, uint256 amount) external;
}

File 11 of 12 : IFarm.sol
/*
 * Copyright (C) 2020-2021 The Wolfpack
 * This file is part of wolves.finance - https://github.com/wolvesofwallstreet/wolves.finance
 *
 * SPDX-License-Identifier: Apache-2.0
 * See the file LICENSES/README.md for more information.
 */

pragma solidity >=0.6.0 <0.8.0;

interface IFarm {
  /**
   * @dev Return a unique farm name
   */
  function farmName() external view returns (string memory);

  /**
   * @dev Return when reward period is finished (UTC timestamp)
   */
  function periodFinish() external view returns (uint256);

  /**
   * @dev Sets a new controller, can only called by current controller
   */
  function setController(address newController) external;

  /**
   * @dev This function must be called initially and close at the time the
   * reward period ends
   */
  function notifyRewardAmount(uint256 reward) external;

  /**
   * @dev Set the duration of farm rewards, to continue rewards,
   * notifyRewardAmount() has to called for the next period
   */
  function setRewardsDuration(uint256 _rewardsDuration) external;

  /**
   * @dev Rebalance strategies (if implemented)
   */
  function rebalance() external;
}

File 12 of 12 : IStakeFarm.sol
/*
 * Copyright (C) 2020-2021 The Wolfpack
 * This file is part of wolves.finance - https://github.com/wolvesofwallstreet/wolves.finance
 *
 * SPDX-License-Identifier: Apache-2.0
 * See the file LICENSES/README.md for more information.
 */

pragma solidity >=0.6.0 <0.8.0;

/**
 * @title IStakeFarm
 *
 * @dev IStakeFarm is the business logic interface to staking farms.
 */

interface IStakeFarm {
  /**
   * @dev Stake amount of ERC20 tokens and earn rewards
   */
  function stake(uint256 amount) external;

  /**
   * @dev Unstake amount of previous staked tokens, rewards will not be claimed
   */
  function unstake(uint256 amount) external;

  /**
   * @dev Claim rewards harvested during stake time
   */
  function getReward() external;

  /**
   * @dev Unstake and getRewards in a single step
   */
  function exit() external;

  /**
   * @dev Transfer amount of stake from msg.sender to recipient.
   */
  function transfer(address recipient, uint256 amount) external;
}

Settings
{
  "evmVersion": "berlin",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 1000000
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"address","name":"_controller","type":"address"},{"internalType":"address","name":"_route","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newController","type":"address"}],"name":"ControllerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"RewardsDurationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Unstaked","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"controller","outputs":[{"internalType":"contract IController","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"farmName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getUIData","outputs":[{"internalType":"uint256[9]","name":"","type":"uint256[9]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pairDirection","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"route","outputs":[{"internalType":"contract IUniswapV2Pair","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newController","type":"address"}],"name":"setController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"}],"name":"setRewardsDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IUniswapV2Pair","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60a06040526000600355600060045562093a806005553480156200002257600080fd5b5060405162002f6e38038062002f6e833981810160405260c08110156200004857600080fd5b8151602083018051604051929492938301929190846401000000008211156200007057600080fd5b9083019060208201858111156200008657600080fd5b8251640100000000811182820188101715620000a157600080fd5b82525081516020918201929091019080838360005b83811015620000d0578181015183820152602001620000b6565b50505050905090810190601f168015620000fe5780820380516001836020036101000a031916815260200191505b506040908152602082015190820151606083015160809093015191945092506000620001296200041d565b600080546001600160a01b0319166001600160a01b03831690811782556040519293509160008051602062002f4e833981519152908290a3506001805584516200017b90600e9060208801906200053a565b50600280546001600160a01b038087166001600160a01b03199283161792839055600f80548683169316929092179091556001600160601b0319606084901b1660805260408051630dfe168160e01b81529051600093878416931691630dfe1681916004808301926020929190829003018186803b158015620001fd57600080fd5b505afa15801562000212573d6000803e3d6000fd5b505050506040513d60208110156200022957600080fd5b50516001600160a01b03161415620002ca57600f805460ff60a01b1916600160a01b1790556002546040805163d21220a760e01b815290516001600160a01b039092169163d21220a791600480820192602092909190829003018186803b1580156200029457600080fd5b505afa158015620002a9573d6000803e3d6000fd5b505050506040513d6020811015620002c057600080fd5b505190506200034a565b600260009054906101000a90046001600160a01b03166001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156200031957600080fd5b505afa1580156200032e573d6000803e3d6000fd5b505050506040513d60208110156200034557600080fd5b505190505b6001600160a01b03821615801590620003db5750806001600160a01b0316826001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b158015620003a257600080fd5b505afa158015620003b7573d6000803e3d6000fd5b505050506040513d6020811015620003ce57600080fd5b50516001600160a01b0316145b156200040557600f805460ff600160a01b80830482166002179091160260ff60a01b199091161790555b620004108762000421565b50505050505050620005e6565b3390565b6200042b6200041d565b6001600160a01b03166200043e6200052b565b6001600160a01b0316146200049a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116620004e15760405162461bcd60e51b815260040180806020018281038252602681526020018062002f286026913960400191505060405180910390fd5b600080546040516001600160a01b038085169392169160008051602062002f4e83398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620005725760008555620005bd565b82601f106200058d57805160ff1916838001178555620005bd565b82800160010185558215620005bd579182015b82811115620005bd578251825591602001919060010190620005a0565b50620005cb929150620005cf565b5090565b5b80821115620005cb5760008155600101620005d0565b60805160601c61291a6200060e60003980611c7d528061211c5280612161525061291a6000f3fe608060405234801561001057600080fd5b50600436106101ef5760003560e01c806380faa57d1161010f578063cc1a378f116100a2578063e9fad8ee11610071578063e9fad8ee1461058d578063ebe2b12b14610595578063f2fde38b1461059d578063f77c4791146105d0576101ef565b8063cc1a378f14610558578063cd3daf9d14610575578063d96661ef1461057d578063df136d6514610585576101ef565b806392eefe9b116100de57806392eefe9b146104c7578063a694fc3a146104fa578063a9059cbb14610517578063c8f33c9114610550576101ef565b806380faa57d1461044b5780638980f11f146104535780638b8763471461048c5780638da5cb5b146104bf576101ef565b8063386a952511610187578063715018a611610156578063715018a61461040257806372f702f31461040a5780637b0a47ee1461043b5780637d7c2a1c14610443576101ef565b8063386a9525146103a25780633c6b16ab146103aa5780633d18b912146103c757806370a08231146103cf576101ef565b806318160ddd116101c357806318160ddd146103555780631c1f78eb1461035d5780632e17de7814610365578063372fd7ec14610384576101ef565b80628cc262146101f457806303e78103146102395780630700037d146102b6578063096e2815146102e9575b600080fd5b6102276004803603602081101561020a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166105d8565b60408051918252519081900360200190f35b610241610670565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561027b578181015183820152602001610263565b50505050905090810190601f1680156102a85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610227600480360360208110156102cc57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610725565b61031c600480360360208110156102ff57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610737565b604051808261012080838360005b8381101561034257818101518382015260200161032a565b5050505090500191505060405180910390f35b610227610891565b610227610897565b6103826004803603602081101561037b57600080fd5b50356108b5565b005b61038c610bba565b6040805160ff9092168252519081900360200190f35b610227610bdb565b610382600480360360208110156103c057600080fd5b5035610be1565b610382610e38565b610227600480360360208110156103e557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661102a565b610382611052565b610412611169565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b610227611185565b61038261118b565b610227611230565b6103826004803603604081101561046957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611248565b610227600480360360208110156104a257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166113f8565b61041261140a565b610382600480360360208110156104dd57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611426565b6103826004803603602081101561051057600080fd5b5035611542565b6103826004803603604081101561052d57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611833565b610227611ac9565b6103826004803603602081101561056e57600080fd5b5035611acf565b610227611c2d565b610412611c7b565b610227611c9f565b610382611ca5565b610227611cc6565b610382600480360360208110156105b357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611ccc565b610412611e6d565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600a6020908152604080832054600990925282205461066a919061066490670de0b6b3a76400009061065e906106329061062c611c2d565b90611e89565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600d602052604090205490611f00565b90611f7a565b90611ffb565b92915050565b600e8054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561071a5780601f106106ef5761010080835404028352916020019161071a565b820191906000526020600020905b8154815290600101906020018083116106fd57829003601f168201915b505050505090505b90565b600a6020526000908152604090205481565b61073f612854565b600080600061074c61206f565b92509250925061075a612854565b604051806101200160405280600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156107ce57600080fd5b505afa1580156107e2573d6000803e3d6000fd5b505050506040513d60208110156107f857600080fd5b505181526dffffffffffffffffffffffffffff80871660208381019190915290861660408084019190915260608301869052600c54608084015273ffffffffffffffffffffffffffffffffffffffff8a166000908152600d90925290205460a082015260055460c0820181905260045460e09092019161087791611f00565b8152602001610885886105d8565b90529695505050505050565b600c5490565b60006108b0600554600454611f0090919063ffffffff16565b905090565b6002600154141561092757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015533610935611c2d565b600755610940611230565b60065573ffffffffffffffffffffffffffffffffffffffff8116156109a157610968816105d8565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600a60209081526040808320939093556007546009909152919020555b60008211610a1057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f43616e6e6f742077697468647261772030000000000000000000000000000000604482015290519081900360640190fd5b600f54604080517f4b6d39f500000000000000000000000000000000000000000000000000000000815260048101859052905173ffffffffffffffffffffffffffffffffffffffff90921691634b6d39f591602480820192602092909190829003018186803b158015610a8257600080fd5b505afa158015610a96573d6000803e3d6000fd5b505050506040513d6020811015610aac57600080fd5b5050600c54610abb9083611e89565b600c55336000908152600d6020526040902054610ad89083611e89565b336000818152600d6020526040902091909155600254610b119173ffffffffffffffffffffffffffffffffffffffff9091169084612296565b336000908152600b602052604090205415801590610b665750336000908152600d60205260409020541580610b665750336000908152600d60205260409020546702c68af0bb14000090610b6490612328565b105b15610b7c57336000908152600b60205260408120555b60408051838152905133917f0f5bb82176feb1b5e747e28471aa92156a04d9f3ab9f45f28e2d704232b93f75919081900360200190a2505060018055565b600f5474010000000000000000000000000000000000000000900460ff1681565b60055481565b600f5473ffffffffffffffffffffffffffffffffffffffff16610c026124ae565b73ffffffffffffffffffffffffffffffffffffffff1614610c8457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f6e6f7420636f6e74726f6c6c6572000000000000000000000000000000000000604482015290519081900360640190fd5b6000610c8e611c2d565b600755610c99611230565b60065573ffffffffffffffffffffffffffffffffffffffff811615610cfa57610cc1816105d8565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600a60209081526040808320939093556007546009909152919020555b6003544210610d1957600554610d11908390611f7a565b600455610d5c565b600354600090610d299042611e89565b90506000610d4260045483611f0090919063ffffffff16565b600554909150610d569061065e8684611ffb565b60045550505b600854610d699083611ffb565b6008819055600554610d7b9190611f7a565b6004541115610deb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f50726f76696465642072657761726420746f6f20686967680000000000000000604482015290519081900360640190fd5b426006819055600554610dfe9190611ffb565b6003556040805183815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15050565b60026001541415610eaa57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015533610eb8611c2d565b600755610ec3611230565b60065573ffffffffffffffffffffffffffffffffffffffff811615610f2457610eeb816105d8565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600a60209081526040808320939093556007546009909152919020555b336000908152600a6020526040902054801561102257336000908152600a6020526040812055600854610f579082611e89565b600855600f54604080517f1b09e22400000000000000000000000000000000000000000000000000000000815233600482015260248101849052905173ffffffffffffffffffffffffffffffffffffffff90921691631b09e2249160448082019260009290919082900301818387803b158015610fd357600080fd5b505af1158015610fe7573d6000803e3d6000fd5b50506040805184815290513393507fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048692509081900360200190a25b505060018055565b73ffffffffffffffffffffffffffffffffffffffff166000908152600d602052604090205490565b61105a6124ae565b73ffffffffffffffffffffffffffffffffffffffff1661107861140a565b73ffffffffffffffffffffffffffffffffffffffff16146110fa57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b60045481565b600f5473ffffffffffffffffffffffffffffffffffffffff166111ac6124ae565b73ffffffffffffffffffffffffffffffffffffffff161461122e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f6e6f7420636f6e74726f6c6c6572000000000000000000000000000000000000604482015290519081900360640190fd5b565b60006003544210611243576003546108b0565b504290565b6112506124ae565b73ffffffffffffffffffffffffffffffffffffffff1661126e61140a565b73ffffffffffffffffffffffffffffffffffffffff16146112f057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60025473ffffffffffffffffffffffffffffffffffffffff8381169116141561137a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f706f6f6c20746f6b656e73206e6f74207265636f76657261626c650000000000604482015290519081900360640190fd5b6113a361138561140a565b73ffffffffffffffffffffffffffffffffffffffff84169083612296565b6040805173ffffffffffffffffffffffffffffffffffffffff841681526020810183905281517f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28929181900390910190a15050565b60096020526000908152604090205481565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b600f5473ffffffffffffffffffffffffffffffffffffffff166114476124ae565b73ffffffffffffffffffffffffffffffffffffffff16146114c957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f6e6f7420636f6e74726f6c6c6572000000000000000000000000000000000000604482015290519081900360640190fd5b600f805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116811790915560408051918252517f027c3e080ed9215f564a9455a666f7e459b3edc0bb6e02a1bf842fde4d0ccfc19181900360200190a150565b600260015414156115b457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600155336115c2611c2d565b6007556115cd611230565b60065573ffffffffffffffffffffffffffffffffffffffff81161561162e576115f5816105d8565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600a60209081526040808320939093556007546009909152919020555b6000821161169d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f43616e6e6f74207374616b652030000000000000000000000000000000000000604482015290519081900360640190fd5b600f54604080517f8287ccb400000000000000000000000000000000000000000000000000000000815260048101859052905173ffffffffffffffffffffffffffffffffffffffff90921691638287ccb491602480820192602092909190829003018186803b15801561170f57600080fd5b505afa158015611723573d6000803e3d6000fd5b505050506040513d602081101561173957600080fd5b5050600c546117489083611ffb565b600c55336000908152600d60205260409020546117659083611ffb565b336000818152600d602052604090209190915560025461179f9173ffffffffffffffffffffffffffffffffffffffff9091169030856124b2565b336000908152600b60205260409020541580156117dd5750336000908152600d60205260409020546702c68af0bb140000906117da90612328565b10155b156117f557336000908152600b602052604090204290555b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a2505060018055565b3361183c611c2d565b600755611847611230565b60065573ffffffffffffffffffffffffffffffffffffffff8116156118a85761186f816105d8565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600a60209081526040808320939093556007546009909152919020555b826118b1611c2d565b6007556118bc611230565b60065573ffffffffffffffffffffffffffffffffffffffff81161561191d576118e4816105d8565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600a60209081526040808320939093556007546009909152919020555b73ffffffffffffffffffffffffffffffffffffffff841661199f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f696e76616c696420616464726573730000000000000000000000000000000000604482015290519081900360640190fd5b60008311611a0e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f7a65726f20616d6f756e74000000000000000000000000000000000000000000604482015290519081900360640190fd5b336000908152600d6020526040902054611a289084611e89565b336000908152600d60205260408082209290925573ffffffffffffffffffffffffffffffffffffffff861681522054611a619084611ffb565b73ffffffffffffffffffffffffffffffffffffffff85166000818152600d60209081526040918290209390935580518681529051919233927f8930ac7bcb101f94c05b13845098ae74383bfb9e348e73061b730040945cbb829281900390910190a350505050565b60065481565b611ad76124ae565b73ffffffffffffffffffffffffffffffffffffffff16611af561140a565b73ffffffffffffffffffffffffffffffffffffffff1614611b7757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6003541580611b87575060035442115b611bf257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f72657761726420706572696f64206e6f742066696e6973686564000000000000604482015290519081900360640190fd5b60058190556040805182815290517ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d39181900360200190a150565b6000600c5460001415611c435750600754610722565b6108b0611c72600c5461065e670de0b6b3a7640000611c6c600454611c6c60065461062c611230565b90611f00565b60075490611ffb565b7f000000000000000000000000000000000000000000000000000000000000000081565b60075481565b336000908152600d6020526040902054611cbe906108b5565b61122e610e38565b60035481565b611cd46124ae565b73ffffffffffffffffffffffffffffffffffffffff16611cf261140a565b73ffffffffffffffffffffffffffffffffffffffff1614611d7457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116611de0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806128746026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600f5473ffffffffffffffffffffffffffffffffffffffff1681565b600082821115611efa57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082611f0f5750600061066a565b82820282848281611f1c57fe5b0414611f73576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061289a6021913960400191505060405180910390fd5b9392505050565b6000808211611fea57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381611ff357fe5b049392505050565b600082820183811015611f7357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000806000806000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156120df57600080fd5b505afa1580156120f3573d6000803e3d6000fd5b505050506040513d606081101561210957600080fd5b50805160209091015190925090506000807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661215f576001806000612201565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156121c557600080fd5b505afa1580156121d9573d6000803e3d6000fd5b505050506040513d60608110156121ef57600080fd5b50805160208201516040909201519091905b50600f549193509150600090740100000000000000000000000000000000000000009004600116156122335750919291825b600f547401000000000000000000000000000000000000000090046002161561225a575090805b84846122866dffffffffffffffffffffffffffff8086169061065e908816670de0b6b3a7640000611f00565b9750975097505050505050909192565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261232390849061254d565b505050565b6000806000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561239557600080fd5b505afa1580156123a9573d6000803e3d6000fd5b505050506040513d60608110156123bf57600080fd5b508051602090910151600f549193509150740100000000000000000000000000000000000000009004600116156123f4578091505b600254604080517f18160ddd00000000000000000000000000000000000000000000000000000000815290516124a69273ffffffffffffffffffffffffffffffffffffffff16916318160ddd916004808301926020929190829003018186803b15801561246057600080fd5b505afa158015612474573d6000803e3d6000fd5b505050506040513d602081101561248a57600080fd5b505161065e6dffffffffffffffffffffffffffff851687611f00565b949350505050565b3390565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905261254790859061254d565b50505050565b60606125af826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166126259092919063ffffffff16565b805190915015612323578080602001905160208110156125ce57600080fd5b5051612323576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806128bb602a913960400191505060405180910390fd5b60606124a684846000858561263985612790565b6126a457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b6020831061270e57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016126d1565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612770576040519150601f19603f3d011682016040523d82523d6000602084013e612775565b606091505b5091509150612785828286612796565b979650505050505050565b3b151590565b606083156127a5575081611f73565b8251156127b55782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612819578181015183820152602001612801565b50505050905090810190601f1680156128465780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b604051806101200160405280600990602082028036833750919291505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220c192b9b46c8b298abcf69ca303eeb36fff3bc16a58c3f379d608f787c625deba64736f6c634300070400334f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573738be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0000000000000000000000000c65e799100a42d97e5ad26ecb949fa880d8bc99d00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000df21bb85a5bfb606bfca4562aa8cea2017622415000000000000000000000000672ef7e4fe230b5ca1466c5fdd40588d30fdf90a00000000000000000000000091756429a3c7b74326e7c2dde3c8356e5508652200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011574554482f574f5753204c50204661726d000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101ef5760003560e01c806380faa57d1161010f578063cc1a378f116100a2578063e9fad8ee11610071578063e9fad8ee1461058d578063ebe2b12b14610595578063f2fde38b1461059d578063f77c4791146105d0576101ef565b8063cc1a378f14610558578063cd3daf9d14610575578063d96661ef1461057d578063df136d6514610585576101ef565b806392eefe9b116100de57806392eefe9b146104c7578063a694fc3a146104fa578063a9059cbb14610517578063c8f33c9114610550576101ef565b806380faa57d1461044b5780638980f11f146104535780638b8763471461048c5780638da5cb5b146104bf576101ef565b8063386a952511610187578063715018a611610156578063715018a61461040257806372f702f31461040a5780637b0a47ee1461043b5780637d7c2a1c14610443576101ef565b8063386a9525146103a25780633c6b16ab146103aa5780633d18b912146103c757806370a08231146103cf576101ef565b806318160ddd116101c357806318160ddd146103555780631c1f78eb1461035d5780632e17de7814610365578063372fd7ec14610384576101ef565b80628cc262146101f457806303e78103146102395780630700037d146102b6578063096e2815146102e9575b600080fd5b6102276004803603602081101561020a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166105d8565b60408051918252519081900360200190f35b610241610670565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561027b578181015183820152602001610263565b50505050905090810190601f1680156102a85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610227600480360360208110156102cc57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610725565b61031c600480360360208110156102ff57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610737565b604051808261012080838360005b8381101561034257818101518382015260200161032a565b5050505090500191505060405180910390f35b610227610891565b610227610897565b6103826004803603602081101561037b57600080fd5b50356108b5565b005b61038c610bba565b6040805160ff9092168252519081900360200190f35b610227610bdb565b610382600480360360208110156103c057600080fd5b5035610be1565b610382610e38565b610227600480360360208110156103e557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661102a565b610382611052565b610412611169565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b610227611185565b61038261118b565b610227611230565b6103826004803603604081101561046957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611248565b610227600480360360208110156104a257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166113f8565b61041261140a565b610382600480360360208110156104dd57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611426565b6103826004803603602081101561051057600080fd5b5035611542565b6103826004803603604081101561052d57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611833565b610227611ac9565b6103826004803603602081101561056e57600080fd5b5035611acf565b610227611c2d565b610412611c7b565b610227611c9f565b610382611ca5565b610227611cc6565b610382600480360360208110156105b357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611ccc565b610412611e6d565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600a6020908152604080832054600990925282205461066a919061066490670de0b6b3a76400009061065e906106329061062c611c2d565b90611e89565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600d602052604090205490611f00565b90611f7a565b90611ffb565b92915050565b600e8054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561071a5780601f106106ef5761010080835404028352916020019161071a565b820191906000526020600020905b8154815290600101906020018083116106fd57829003601f168201915b505050505090505b90565b600a6020526000908152604090205481565b61073f612854565b600080600061074c61206f565b92509250925061075a612854565b604051806101200160405280600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156107ce57600080fd5b505afa1580156107e2573d6000803e3d6000fd5b505050506040513d60208110156107f857600080fd5b505181526dffffffffffffffffffffffffffff80871660208381019190915290861660408084019190915260608301869052600c54608084015273ffffffffffffffffffffffffffffffffffffffff8a166000908152600d90925290205460a082015260055460c0820181905260045460e09092019161087791611f00565b8152602001610885886105d8565b90529695505050505050565b600c5490565b60006108b0600554600454611f0090919063ffffffff16565b905090565b6002600154141561092757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015533610935611c2d565b600755610940611230565b60065573ffffffffffffffffffffffffffffffffffffffff8116156109a157610968816105d8565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600a60209081526040808320939093556007546009909152919020555b60008211610a1057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f43616e6e6f742077697468647261772030000000000000000000000000000000604482015290519081900360640190fd5b600f54604080517f4b6d39f500000000000000000000000000000000000000000000000000000000815260048101859052905173ffffffffffffffffffffffffffffffffffffffff90921691634b6d39f591602480820192602092909190829003018186803b158015610a8257600080fd5b505afa158015610a96573d6000803e3d6000fd5b505050506040513d6020811015610aac57600080fd5b5050600c54610abb9083611e89565b600c55336000908152600d6020526040902054610ad89083611e89565b336000818152600d6020526040902091909155600254610b119173ffffffffffffffffffffffffffffffffffffffff9091169084612296565b336000908152600b602052604090205415801590610b665750336000908152600d60205260409020541580610b665750336000908152600d60205260409020546702c68af0bb14000090610b6490612328565b105b15610b7c57336000908152600b60205260408120555b60408051838152905133917f0f5bb82176feb1b5e747e28471aa92156a04d9f3ab9f45f28e2d704232b93f75919081900360200190a2505060018055565b600f5474010000000000000000000000000000000000000000900460ff1681565b60055481565b600f5473ffffffffffffffffffffffffffffffffffffffff16610c026124ae565b73ffffffffffffffffffffffffffffffffffffffff1614610c8457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f6e6f7420636f6e74726f6c6c6572000000000000000000000000000000000000604482015290519081900360640190fd5b6000610c8e611c2d565b600755610c99611230565b60065573ffffffffffffffffffffffffffffffffffffffff811615610cfa57610cc1816105d8565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600a60209081526040808320939093556007546009909152919020555b6003544210610d1957600554610d11908390611f7a565b600455610d5c565b600354600090610d299042611e89565b90506000610d4260045483611f0090919063ffffffff16565b600554909150610d569061065e8684611ffb565b60045550505b600854610d699083611ffb565b6008819055600554610d7b9190611f7a565b6004541115610deb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f50726f76696465642072657761726420746f6f20686967680000000000000000604482015290519081900360640190fd5b426006819055600554610dfe9190611ffb565b6003556040805183815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15050565b60026001541415610eaa57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015533610eb8611c2d565b600755610ec3611230565b60065573ffffffffffffffffffffffffffffffffffffffff811615610f2457610eeb816105d8565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600a60209081526040808320939093556007546009909152919020555b336000908152600a6020526040902054801561102257336000908152600a6020526040812055600854610f579082611e89565b600855600f54604080517f1b09e22400000000000000000000000000000000000000000000000000000000815233600482015260248101849052905173ffffffffffffffffffffffffffffffffffffffff90921691631b09e2249160448082019260009290919082900301818387803b158015610fd357600080fd5b505af1158015610fe7573d6000803e3d6000fd5b50506040805184815290513393507fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048692509081900360200190a25b505060018055565b73ffffffffffffffffffffffffffffffffffffffff166000908152600d602052604090205490565b61105a6124ae565b73ffffffffffffffffffffffffffffffffffffffff1661107861140a565b73ffffffffffffffffffffffffffffffffffffffff16146110fa57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b60045481565b600f5473ffffffffffffffffffffffffffffffffffffffff166111ac6124ae565b73ffffffffffffffffffffffffffffffffffffffff161461122e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f6e6f7420636f6e74726f6c6c6572000000000000000000000000000000000000604482015290519081900360640190fd5b565b60006003544210611243576003546108b0565b504290565b6112506124ae565b73ffffffffffffffffffffffffffffffffffffffff1661126e61140a565b73ffffffffffffffffffffffffffffffffffffffff16146112f057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60025473ffffffffffffffffffffffffffffffffffffffff8381169116141561137a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f706f6f6c20746f6b656e73206e6f74207265636f76657261626c650000000000604482015290519081900360640190fd5b6113a361138561140a565b73ffffffffffffffffffffffffffffffffffffffff84169083612296565b6040805173ffffffffffffffffffffffffffffffffffffffff841681526020810183905281517f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28929181900390910190a15050565b60096020526000908152604090205481565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b600f5473ffffffffffffffffffffffffffffffffffffffff166114476124ae565b73ffffffffffffffffffffffffffffffffffffffff16146114c957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f6e6f7420636f6e74726f6c6c6572000000000000000000000000000000000000604482015290519081900360640190fd5b600f805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116811790915560408051918252517f027c3e080ed9215f564a9455a666f7e459b3edc0bb6e02a1bf842fde4d0ccfc19181900360200190a150565b600260015414156115b457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600155336115c2611c2d565b6007556115cd611230565b60065573ffffffffffffffffffffffffffffffffffffffff81161561162e576115f5816105d8565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600a60209081526040808320939093556007546009909152919020555b6000821161169d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f43616e6e6f74207374616b652030000000000000000000000000000000000000604482015290519081900360640190fd5b600f54604080517f8287ccb400000000000000000000000000000000000000000000000000000000815260048101859052905173ffffffffffffffffffffffffffffffffffffffff90921691638287ccb491602480820192602092909190829003018186803b15801561170f57600080fd5b505afa158015611723573d6000803e3d6000fd5b505050506040513d602081101561173957600080fd5b5050600c546117489083611ffb565b600c55336000908152600d60205260409020546117659083611ffb565b336000818152600d602052604090209190915560025461179f9173ffffffffffffffffffffffffffffffffffffffff9091169030856124b2565b336000908152600b60205260409020541580156117dd5750336000908152600d60205260409020546702c68af0bb140000906117da90612328565b10155b156117f557336000908152600b602052604090204290555b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a2505060018055565b3361183c611c2d565b600755611847611230565b60065573ffffffffffffffffffffffffffffffffffffffff8116156118a85761186f816105d8565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600a60209081526040808320939093556007546009909152919020555b826118b1611c2d565b6007556118bc611230565b60065573ffffffffffffffffffffffffffffffffffffffff81161561191d576118e4816105d8565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600a60209081526040808320939093556007546009909152919020555b73ffffffffffffffffffffffffffffffffffffffff841661199f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f696e76616c696420616464726573730000000000000000000000000000000000604482015290519081900360640190fd5b60008311611a0e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f7a65726f20616d6f756e74000000000000000000000000000000000000000000604482015290519081900360640190fd5b336000908152600d6020526040902054611a289084611e89565b336000908152600d60205260408082209290925573ffffffffffffffffffffffffffffffffffffffff861681522054611a619084611ffb565b73ffffffffffffffffffffffffffffffffffffffff85166000818152600d60209081526040918290209390935580518681529051919233927f8930ac7bcb101f94c05b13845098ae74383bfb9e348e73061b730040945cbb829281900390910190a350505050565b60065481565b611ad76124ae565b73ffffffffffffffffffffffffffffffffffffffff16611af561140a565b73ffffffffffffffffffffffffffffffffffffffff1614611b7757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6003541580611b87575060035442115b611bf257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f72657761726420706572696f64206e6f742066696e6973686564000000000000604482015290519081900360640190fd5b60058190556040805182815290517ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d39181900360200190a150565b6000600c5460001415611c435750600754610722565b6108b0611c72600c5461065e670de0b6b3a7640000611c6c600454611c6c60065461062c611230565b90611f00565b60075490611ffb565b7f000000000000000000000000000000000000000000000000000000000000000081565b60075481565b336000908152600d6020526040902054611cbe906108b5565b61122e610e38565b60035481565b611cd46124ae565b73ffffffffffffffffffffffffffffffffffffffff16611cf261140a565b73ffffffffffffffffffffffffffffffffffffffff1614611d7457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116611de0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806128746026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600f5473ffffffffffffffffffffffffffffffffffffffff1681565b600082821115611efa57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082611f0f5750600061066a565b82820282848281611f1c57fe5b0414611f73576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061289a6021913960400191505060405180910390fd5b9392505050565b6000808211611fea57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381611ff357fe5b049392505050565b600082820183811015611f7357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000806000806000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156120df57600080fd5b505afa1580156120f3573d6000803e3d6000fd5b505050506040513d606081101561210957600080fd5b50805160209091015190925090506000807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661215f576001806000612201565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156121c557600080fd5b505afa1580156121d9573d6000803e3d6000fd5b505050506040513d60608110156121ef57600080fd5b50805160208201516040909201519091905b50600f549193509150600090740100000000000000000000000000000000000000009004600116156122335750919291825b600f547401000000000000000000000000000000000000000090046002161561225a575090805b84846122866dffffffffffffffffffffffffffff8086169061065e908816670de0b6b3a7640000611f00565b9750975097505050505050909192565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261232390849061254d565b505050565b6000806000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561239557600080fd5b505afa1580156123a9573d6000803e3d6000fd5b505050506040513d60608110156123bf57600080fd5b508051602090910151600f549193509150740100000000000000000000000000000000000000009004600116156123f4578091505b600254604080517f18160ddd00000000000000000000000000000000000000000000000000000000815290516124a69273ffffffffffffffffffffffffffffffffffffffff16916318160ddd916004808301926020929190829003018186803b15801561246057600080fd5b505afa158015612474573d6000803e3d6000fd5b505050506040513d602081101561248a57600080fd5b505161065e6dffffffffffffffffffffffffffff851687611f00565b949350505050565b3390565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905261254790859061254d565b50505050565b60606125af826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166126259092919063ffffffff16565b805190915015612323578080602001905160208110156125ce57600080fd5b5051612323576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806128bb602a913960400191505060405180910390fd5b60606124a684846000858561263985612790565b6126a457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b6020831061270e57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016126d1565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612770576040519150601f19603f3d011682016040523d82523d6000602084013e612775565b606091505b5091509150612785828286612796565b979650505050505050565b3b151590565b606083156127a5575081611f73565b8251156127b55782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612819578181015183820152602001612801565b50505050905090810190601f1680156128465780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b604051806101200160405280600990602082028036833750919291505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220c192b9b46c8b298abcf69ca303eeb36fff3bc16a58c3f379d608f787c625deba64736f6c63430007040033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000c65e799100a42d97e5ad26ecb949fa880d8bc99d00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000df21bb85a5bfb606bfca4562aa8cea2017622415000000000000000000000000672ef7e4fe230b5ca1466c5fdd40588d30fdf90a00000000000000000000000091756429a3c7b74326e7c2dde3c8356e5508652200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011574554482f574f5753204c50204661726d000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _owner (address): 0xC65e799100A42D97e5aD26ecB949fA880D8bc99d
Arg [1] : _name (string): WETH/WOWS LP Farm
Arg [2] : _stakingToken (address): 0xDf21bb85a5BFb606bfCa4562aA8CEA2017622415
Arg [3] : _rewardToken (address): 0x672EF7E4Fe230B5cA1466C5fDD40588d30FdF90a
Arg [4] : _controller (address): 0x91756429a3C7b74326e7c2DdE3c8356e55086522
Arg [5] : _route (address): 0x0000000000000000000000000000000000000000

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000c65e799100a42d97e5ad26ecb949fa880d8bc99d
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000df21bb85a5bfb606bfca4562aa8cea2017622415
Arg [3] : 000000000000000000000000672ef7e4fe230b5ca1466c5fdd40588d30fdf90a
Arg [4] : 00000000000000000000000091756429a3c7b74326e7c2dde3c8356e55086522
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [7] : 574554482f574f5753204c50204661726d000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.