Contract 0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xb021d553099163348e75c57b4f0144e53a215317eef9eeadf78e1a97229a1344Harvest218780052021-11-27 23:24:1432 mins ago0x0f571d2625b503bb7c1d2b5655b483a2fa696fef IN  0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd0 MATIC0.0197372
0x9aa9643ef4295ddbf19d53eb0e21ad511d88267392189ce65f432abed8b917fdHarvest218750322021-11-27 21:24:442 hrs 31 mins ago0x0f571d2625b503bb7c1d2b5655b483a2fa696fef IN  0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd0 MATIC0.0197372
0x4ef774c404fe6cfbc0e6dad6ce7546b25893509a7f590f1ee912ba2d4e6de627Harvest218727642021-11-27 20:04:293 hrs 52 mins ago0x0f571d2625b503bb7c1d2b5655b483a2fa696fef IN  0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd0 MATIC0.0197372
0xb585a7b2306c19717453aca5fd27f5c4bd64039c9da999ee8b1f0badfaa82e45Harvest218705562021-11-27 18:44:075 hrs 12 mins ago0x0f571d2625b503bb7c1d2b5655b483a2fa696fef IN  0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd0 MATIC0.0197372
0xecf7c316f8cca486819ac73d7f220a64f6f29d47b1611d9dafadce5d55d9d032Harvest218672842021-11-27 16:44:437 hrs 11 mins ago0x0f571d2625b503bb7c1d2b5655b483a2fa696fef IN  0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd0 MATIC0.0197372
0x2f66f8f8d29f4f5e3a60d2d7210eeb11782df0f251f51f44faeeda9c4c3115c9Harvest218640082021-11-27 14:44:429 hrs 11 mins ago0x0f571d2625b503bb7c1d2b5655b483a2fa696fef IN  0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd0 MATIC0.0197372
0x4ad2d91f2d9203ab893fe9bc8909bb8e6213febdb0438f7e423118d68e58c483Harvest218608482021-11-27 12:44:5711 hrs 11 mins ago0x0f571d2625b503bb7c1d2b5655b483a2fa696fef IN  0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd0 MATIC0.0197372
0x7858d425a48e509e794e3c30f4b3c88e1c59fc491da60fd4669fc6ada5d165deHarvest218585052021-11-27 11:24:1812 hrs 32 mins ago0x0f571d2625b503bb7c1d2b5655b483a2fa696fef IN  0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd0 MATIC0.0197372
0xcdd4eacba9064169dbcfe395c8146e979afba04fbea1e806bfd35418156396dcHarvest218552622021-11-27 9:24:2114 hrs 32 mins ago0x0f571d2625b503bb7c1d2b5655b483a2fa696fef IN  0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd0 MATIC0.0193676
0xa0b155780b2671293b633edd6d1797b15f0d24e7ee135c6effab56e3afdd3e74Harvest218519662021-11-27 7:24:2416 hrs 32 mins ago0x0f571d2625b503bb7c1d2b5655b483a2fa696fef IN  0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd0 MATIC0.0197372
0x49a3accc2c09c7c40a387657d6170c9de221bcd94829061214148dbab426f6b8Harvest218486532021-11-27 5:24:1018 hrs 32 mins ago0x0f571d2625b503bb7c1d2b5655b483a2fa696fef IN  0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd0 MATIC0.0197372
0x46d7b13ade56390f933712bb79da010a3bd811c0b4c1f9678191a79d9ee1051cHarvest218454252021-11-27 3:24:3820 hrs 31 mins ago0x0f571d2625b503bb7c1d2b5655b483a2fa696fef IN  0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd0 MATIC0.0197372
0x6234094c9c20aa07b6272f403a789dad8e16c71d862836ae3c3e597ec6669d9aHarvest218420822021-11-27 1:26:1822 hrs 30 mins ago0x0f571d2625b503bb7c1d2b5655b483a2fa696fef IN  0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd0 MATIC0.0197372
0xabf58ef0ef3170c93addb2d25d8a77b0a40b98f052cb5381375d848ee429bc22Harvest218397162021-11-27 0:04:4723 hrs 51 mins ago0x0f571d2625b503bb7c1d2b5655b483a2fa696fef IN  0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd0 MATIC0.0197372
0x6ce302543a3fa80271085642866faaafcdcf97f75572bac91248c865f4812ca4Harvest218374032021-11-26 22:44:421 day 1 hr ago0x0f571d2625b503bb7c1d2b5655b483a2fa696fef IN  0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd0 MATIC0.0197372
0xce8a249583cd1884b4b46c35370ee379e1f687f7bdf2e00ecd82fbb795e29c1fHarvest218342532021-11-26 20:45:291 day 3 hrs ago0x0f571d2625b503bb7c1d2b5655b483a2fa696fef IN  0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd0 MATIC0.0197372
0xa52f7b63c3402723cf0c36e524f216e767e72c0ebf2d3913c7826d1518fcc69eHarvest218313102021-11-26 18:45:061 day 5 hrs ago0x0f571d2625b503bb7c1d2b5655b483a2fa696fef IN  0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd0 MATIC0.0197372
0xf6bd72301eea79d6000d7240696c0288168cbee03ff68ef5ab6218380c4fcf97Harvest218281922021-11-26 16:44:411 day 7 hrs ago0x0f571d2625b503bb7c1d2b5655b483a2fa696fef IN  0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd0 MATIC0.0197372
0x8c0b11378c0d23000b183edc3f95a809a56d5270f4642838f72f00055e857d83Harvest218253512021-11-26 14:44:071 day 9 hrs ago0x0f571d2625b503bb7c1d2b5655b483a2fa696fef IN  0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd0 MATIC0.0197372
0x7eebb9dff72188e7a4f95fad697c8e57355cd2df8b8e8b217ebea17e708c901dHarvest218221542021-11-26 12:44:551 day 11 hrs ago0x0f571d2625b503bb7c1d2b5655b483a2fa696fef IN  0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd0 MATIC0.0197372
0xaebf42bec2d02993f8e13a81e98f60ecf585c0addf348f2d6fc7eb1923a80572Harvest218178802021-11-26 10:05:071 day 13 hrs ago0x0f571d2625b503bb7c1d2b5655b483a2fa696fef IN  0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd0 MATIC0.0197372
0xc7a3f1d6417bb335dbef77e9d4bc87789bcc49c295c3e82f87b640832219b57eHarvest218136102021-11-26 7:24:111 day 16 hrs ago0x0f571d2625b503bb7c1d2b5655b483a2fa696fef IN  0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd0 MATIC0.0197372
0x163a230a6f75583f3a7726e564781ac5a5c24eea8a0db45583defe408f793bf2Harvest218106312021-11-26 5:24:571 day 18 hrs ago0x0f571d2625b503bb7c1d2b5655b483a2fa696fef IN  0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd0 MATIC0.0197372
0x553297bf06a3e68010050a11a7a751646eb2dfd388dd1287f3a9dbff56b62398Harvest218076552021-11-26 3:24:581 day 20 hrs ago0x0f571d2625b503bb7c1d2b5655b483a2fa696fef IN  0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd0 MATIC0.0197372
0xb4d99b4181ad40d682317d9846a7bbb65d4765ff5bb50f763bf56a39d39b0e43Harvest218055832021-11-26 2:05:081 day 21 hrs ago0x0f571d2625b503bb7c1d2b5655b483a2fa696fef IN  0xc24f7e1c15975eb95f9da7c08380c7ba9bbac0dd0 MATIC0.0197372
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StrategyDinoWorkUsdcLp

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : strategy-dino-work-usdc-lp.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.7;

import "../strategy-general-masterchef-base.sol";

contract StrategyDinoWorkUsdcLp is StrategyGeneralMasterChefBase {
    // Token addresses
    address public dino = 0xAa9654BECca45B5BDFA5ac646c939C62b527D394;
    address public masterChef = 0x1948abC5400Aa1d72223882958Da3bec643fb4E5;
    address public sushi_work_usdc_lp = 0xAb0454B98dAf4A02EA29292E6A8882FB2C787DD4;
    address public usdc = 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174;
    address public work = 0x6002410dDA2Fb88b4D0dc3c1D562F7761191eA80;

    constructor(
        address _governance,
        address _strategist,
        address _controller,
        address _timelock
    )
      public
      StrategyGeneralMasterChefBase(
        dino,
        masterChef,
        usdc,
        work,
        20, // pool id
        sushi_work_usdc_lp,
        _governance,
        _strategist,
        _controller,
        _timelock
      )
    {
      uniswapRoutes[usdc] = [dino, usdc];
      uniswapRoutes[work] = [dino, usdc, work];
    }

    // **** Views ****

    function getName() external override pure returns (string memory) {
        return "StrategyDinoWorkUsdcLp";
    }
}

File 2 of 11 : strategy-general-masterchef-base.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.7;

import "./strategy-base.sol";
import "../../interfaces/masterchef.sol";

abstract contract StrategyGeneralMasterChefBase is StrategyBase {
    // Token addresses
    address public masterchef;
    address public rewardToken;

    address public token0;
    address public token1;

    // How much TITAN tokens to keep?
    uint256 public keepReward = 0;
    uint256 public constant keepRewardMax = 10000;

    // pool deposit fee
    uint256 public depositFee = 0;

    uint256 public poolId;
    mapping (address => address[]) public uniswapRoutes;

    constructor(
        address _rewardToken,
        address _masterchef,
        address _token0,
        address _token1,
        uint256 _poolId,
        address _lp,
        address _governance,
        address _strategist,
        address _controller,
        address _timelock
    )
        public
        StrategyBase(
            _lp,
            _governance,
            _strategist,
            _controller,
            _timelock
        )
    {
        poolId = _poolId;
        token0 = _token0;
        token1 = _token1;
        rewardToken = _rewardToken;
        masterchef = _masterchef;
    }
    
    function balanceOfPool() public override view returns (uint256) {
        (uint256 amount, ) = IMasterchef(masterchef).userInfo(poolId, address(this));
        return amount;
    }

    function getHarvestable() external virtual view returns (uint256) {
        uint256 _pendingReward = IMasterchef(masterchef).pendingReward(poolId, address(this));
        return _pendingReward;
    }

    // **** Setters ****

    function deposit() public override {
        uint256 _want = IERC20(want).balanceOf(address(this));
        if (_want > 0) {
            IERC20(want).safeApprove(masterchef, 0);
            IERC20(want).safeApprove(masterchef, _want);
            IMasterchef(masterchef).deposit(poolId, _want);
        }
    }

    function _withdrawSome(uint256 _amount)
        internal
        override
        returns (uint256)
    {
        IMasterchef(masterchef).withdraw(poolId, _amount);
        return _amount;
    }

    // **** Setters ****

    function setKeepReward(uint256 _keepReward) external {
        require(msg.sender == timelock, "!timelock");
        keepReward = _keepReward;
    }

    // **** State Mutations ****

    function harvest() public override onlyBenevolent {
        // Anyone can harvest it at any given time.
        // I understand the possibility of being frontrun
        // But ETH is a dark forest, and I wanna see how this plays out
        // i.e. will be be heavily frontrunned?
        //      if so, a new strategy will be deployed.

        // Collects SUSHI tokens
        IMasterchef(masterchef).withdraw(poolId, 0);
        uint256 _rewardBalance = IERC20(rewardToken).balanceOf(address(this));
        if (_rewardBalance > 0) {
            // 10% is locked up for future gov
            uint256 _keepReward = _rewardBalance.mul(keepReward).div(keepRewardMax);
            IERC20(rewardToken).safeApprove(IController(controller).treasury(), 0);
            IERC20(rewardToken).safeApprove(IController(controller).treasury(), _keepReward);
            IERC20(rewardToken).safeTransfer(
                IController(controller).treasury(),
                _keepReward
            );
        }
        
        uint256 remainingRewardBalance = IERC20(rewardToken).balanceOf(address(this));

        if (remainingRewardBalance == 0) {
          return;
        }
        
        // allow Uniswap to sell our reward
        IERC20(rewardToken).safeApprove(sushiRouter, 0);
        IERC20(rewardToken).safeApprove(sushiRouter, remainingRewardBalance);
        
        uint256 toToken0 = remainingRewardBalance.div(2);
        uint256 toToken1 = remainingRewardBalance.sub(toToken0);

        uint256 token0Amount;
        // we can accept 1 as minimum because this is called only by a trusted role
        uint256 amountOutMin = 1;

        if (uniswapRoutes[token0].length > 1) {
            // if we need to liquidate the token0
            UniswapRouterV2(sushiRouter).swapExactTokensForTokens(
                toToken0,
                amountOutMin,
                uniswapRoutes[token0],
                address(this),
                block.timestamp
            );
            token0Amount = IERC20(token0).balanceOf(address(this));
        } else {
            // otherwise we assume token0 is the reward token itself
            token0Amount = toToken0;
        }

        uint256 token1Amount;

        if (uniswapRoutes[token1].length > 1) {
            // sell reward token to token1
            UniswapRouterV2(sushiRouter).swapExactTokensForTokens(
                toToken1,
                amountOutMin,
                uniswapRoutes[token1],
                address(this),
                block.timestamp
            );
            token1Amount = IERC20(token1).balanceOf(address(this));
        } else {
            token1Amount = toToken1;
        }

        if (token0Amount > 0 && token1Amount > 0) {
            IERC20(token0).safeApprove(sushiRouter, 0);
            IERC20(token0).safeApprove(sushiRouter, token0Amount);
            IERC20(token1).safeApprove(sushiRouter, 0);
            IERC20(token1).safeApprove(sushiRouter, token1Amount);

            UniswapRouterV2(sushiRouter).addLiquidity(
                token0,
                token1,
                token0Amount,
                token1Amount,
                0,
                0,
                address(this),
                now + 60
            );

            // Donates DUST
            IERC20(token0).transfer(
                IController(controller).treasury(),
                IERC20(token0).balanceOf(address(this))
            );
            IERC20(token1).safeTransfer(
                IController(controller).treasury(),
                IERC20(token1).balanceOf(address(this))
            );
        }

        // We want to get back SUSHI LP tokens
        _distributePerformanceFeesAndDeposit();
    }
}

File 3 of 11 : strategy-base.sol
pragma solidity ^0.6.7;

import "../../lib/erc20.sol";
import "../../lib/safe-math.sol";

import "../../interfaces/jar.sol";
import "../../interfaces/staking-rewards.sol";
import "../../interfaces/masterchef.sol";
import "../../interfaces/uniswapv2.sol";
import "../../interfaces/controller.sol";

// Strategy Contract Basics

abstract contract StrategyBase {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    // Perfomance fees - start with 20%
    uint256 public performanceTreasuryFee = 2000;
    uint256 public constant performanceTreasuryMax = 10000;

    uint256 public performanceDevFee = 0;
    uint256 public constant performanceDevMax = 10000;

    // Withdrawal fee 0%
    // - 0% to treasury
    // - 0% to dev fund
    uint256 public withdrawalTreasuryFee = 0;
    uint256 public constant withdrawalTreasuryMax = 100000;

    uint256 public withdrawalDevFundFee = 0;
    uint256 public constant withdrawalDevFundMax = 100000;

    // Tokens
    address public want;
    address public constant weth = 0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619;
    address public constant wmatic = 0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270;

    // User accounts
    address public governance;
    address public controller;
    address public strategist;
    address public timelock;

    // Dex - comethswap
    address public univ2Router2 = 0x93bcDc45f7e62f89a8e901DC4A0E2c6C427D9F25;
    address public sushiRouter = 0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506;

    mapping(address => bool) public harvesters;

    constructor(
        address _want,
        address _governance,
        address _strategist,
        address _controller,
        address _timelock
    ) public {
        require(_want != address(0));
        require(_governance != address(0));
        require(_strategist != address(0));
        require(_controller != address(0));
        require(_timelock != address(0));

        want = _want;
        governance = _governance;
        strategist = _strategist;
        controller = _controller;
        timelock = _timelock;
    }

    // **** Modifiers **** //

    modifier onlyBenevolent {
        require(
            harvesters[msg.sender] ||
                msg.sender == governance ||
                msg.sender == strategist
        );
        _;
    }

    // **** Views **** //

    function balanceOfWant() public view returns (uint256) {
        return IERC20(want).balanceOf(address(this));
    }

    function balanceOfPool() public virtual view returns (uint256);

    function balanceOf() public view returns (uint256) {
        return balanceOfWant().add(balanceOfPool());
    }

    function getName() external virtual pure returns (string memory);

    // **** Setters **** //

    function whitelistHarvesters(address[] calldata _harvesters) external {
        require(msg.sender == governance ||
             msg.sender == strategist || harvesters[msg.sender], "not authorized");
             
        for (uint i = 0; i < _harvesters.length; i ++) {
            harvesters[_harvesters[i]] = true;
        }
    }

    function revokeHarvesters(address[] calldata _harvesters) external {
        require(msg.sender == governance ||
             msg.sender == strategist, "not authorized");

        for (uint i = 0; i < _harvesters.length; i ++) {
            harvesters[_harvesters[i]] = false;
        }
    }

    function setWithdrawalDevFundFee(uint256 _withdrawalDevFundFee) external {
        require(msg.sender == timelock, "!timelock");
        withdrawalDevFundFee = _withdrawalDevFundFee;
    }

    function setWithdrawalTreasuryFee(uint256 _withdrawalTreasuryFee) external {
        require(msg.sender == timelock, "!timelock");
        withdrawalTreasuryFee = _withdrawalTreasuryFee;
    }

    function setPerformanceDevFee(uint256 _performanceDevFee) external {
        require(msg.sender == timelock, "!timelock");
        performanceDevFee = _performanceDevFee;
    }

    function setPerformanceTreasuryFee(uint256 _performanceTreasuryFee)
        external
    {
        require(msg.sender == timelock, "!timelock");
        performanceTreasuryFee = _performanceTreasuryFee;
    }

    function setStrategist(address _strategist) external {
        require(msg.sender == governance, "!governance");
        strategist = _strategist;
    }

    function setGovernance(address _governance) external {
        require(msg.sender == governance, "!governance");
        governance = _governance;
    }

    function setTimelock(address _timelock) external {
        require(msg.sender == timelock, "!timelock");
        timelock = _timelock;
    }

    function setController(address _controller) external {
        require(msg.sender == timelock, "!timelock");
        controller = _controller;
    }

    // **** State mutations **** //
    function deposit() public virtual;

    // Controller only function for creating additional rewards from dust
    function withdraw(IERC20 _asset) external returns (uint256 balance) {
        require(msg.sender == controller, "!controller");
        require(want != address(_asset), "want");
        balance = _asset.balanceOf(address(this));
        _asset.safeTransfer(controller, balance);
    }

    // Withdraw partial funds, normally used with a jar withdrawal
    function withdraw(uint256 _amount) external {
        require(msg.sender == controller, "!controller");
        uint256 _balance = IERC20(want).balanceOf(address(this));
        if (_balance < _amount) {
            _amount = _withdrawSome(_amount.sub(_balance));
            _amount = _amount.add(_balance);
        }

        uint256 _feeDev = _amount.mul(withdrawalDevFundFee).div(
            withdrawalDevFundMax
        );
        IERC20(want).safeTransfer(IController(controller).devfund(), _feeDev);

        uint256 _feeTreasury = _amount.mul(withdrawalTreasuryFee).div(
            withdrawalTreasuryMax
        );
        IERC20(want).safeTransfer(
            IController(controller).treasury(),
            _feeTreasury
        );

        address _jar = IController(controller).jars(address(want));
        require(_jar != address(0), "!jar"); // additional protection so we don't burn the funds

        IERC20(want).safeTransfer(_jar, _amount.sub(_feeDev).sub(_feeTreasury));
    }

    // Withdraw funds, used to swap between strategies
    function withdrawForSwap(uint256 _amount)
        external
        returns (uint256 balance)
    {
        require(msg.sender == controller, "!controller");
        _withdrawSome(_amount);

        balance = IERC20(want).balanceOf(address(this));

        address _jar = IController(controller).jars(address(want));
        require(_jar != address(0), "!jar");
        IERC20(want).safeTransfer(_jar, balance);
    }

    // Withdraw all funds, normally used when migrating strategies
    function withdrawAll() external returns (uint256 balance) {
        require(msg.sender == controller, "!controller");
        _withdrawAll();

        balance = IERC20(want).balanceOf(address(this));

        address _jar = IController(controller).jars(address(want));
        require(_jar != address(0), "!jar"); // additional protection so we don't burn the funds
        IERC20(want).safeTransfer(_jar, balance);
    }

    function _withdrawAll() internal {
        _withdrawSome(balanceOfPool());
    }

    function _withdrawSome(uint256 _amount) internal virtual returns (uint256);

    function harvest() public virtual;

    // **** Emergency functions ****

    function execute(address _target, bytes memory _data)
        public
        payable
        returns (bytes memory response)
    {
        require(msg.sender == timelock, "!timelock");
        require(_target != address(0), "!target");

        // call contract in current context
        assembly {
            let succeeded := delegatecall(
                sub(gas(), 5000),
                _target,
                add(_data, 0x20),
                mload(_data),
                0,
                0
            )
            let size := returndatasize()

            response := mload(0x40)
            mstore(
                0x40,
                add(response, and(add(add(size, 0x20), 0x1f), not(0x1f)))
            )
            mstore(response, size)
            returndatacopy(add(response, 0x20), 0, size)

            switch iszero(succeeded)
                case 1 {
                    // throw if delegatecall failed
                    revert(add(response, 0x20), size)
                }
        }
    }

    // **** Internal functions ****
    function _swapUniswap(
        address _from,
        address _to,
        uint256 _amount
    ) internal {
        require(_to != address(0));

        address[] memory path;

        if (_from == weth || _to == weth) {
            path = new address[](2);
            path[0] = _from;
            path[1] = _to;
        } else {
            path = new address[](3);
            path[0] = _from;
            path[1] = weth;
            path[2] = _to;
        }

        IERC20(_from).safeApprove(univ2Router2, 0);
        IERC20(_from).safeApprove(univ2Router2, _amount);
        UniswapRouterV2(univ2Router2).swapExactTokensForTokens(
            _amount,
            0,
            path,
            address(this),
            now.add(60)
        );
    }

    function _swapUniswapWithPath(
        address[] memory path,
        uint256 _amount
    ) internal {
        require(path[1] != address(0));

        IERC20(path[0]).safeApprove(univ2Router2, 0);
        IERC20(path[0]).safeApprove(univ2Router2, _amount);
        UniswapRouterV2(univ2Router2).swapExactTokensForTokens(
            _amount,
            0,
            path,
            address(this),
            now.add(60)
        );
    }

    function _swapSushiswap(
        address _from,
        address _to,
        uint256 _amount
    ) internal {
        require(_to != address(0));

        address[] memory path;

        if (_from == weth || _to == weth) {
            path = new address[](2);
            path[0] = _from;
            path[1] = _to;
        } else {
            path = new address[](3);
            path[0] = _from;
            path[1] = weth;
            path[2] = _to;
        }
        
        IERC20(_from).safeApprove(sushiRouter, 0);
        IERC20(_from).safeApprove(sushiRouter, _amount);
        UniswapRouterV2(sushiRouter).swapExactTokensForTokens(
            _amount,
            0,
            path,
            address(this),
            now.add(60)
        );
    }

    function _swapSushiswapWithPath(
        address[] memory path,
        uint256 _amount
    ) internal {
        require(path[1] != address(0));

        IERC20(path[0]).safeApprove(sushiRouter, 0);
        IERC20(path[0]).safeApprove(sushiRouter, _amount);
        UniswapRouterV2(sushiRouter).swapExactTokensForTokens(
            _amount,
            0,
            path,
            address(this),
            now.add(60)
        );
    }

    function _distributePerformanceFeesAndDeposit() internal {
        uint256 _want = IERC20(want).balanceOf(address(this));

        if (_want > 0) {
            // Treasury fees
            IERC20(want).safeTransfer(
                IController(controller).treasury(),
                _want.mul(performanceTreasuryFee).div(performanceTreasuryMax)
            );

            // Performance fee
            IERC20(want).safeTransfer(
                IController(controller).devfund(),
                _want.mul(performanceDevFee).div(performanceDevMax)
            );

            deposit();
        }
    }
}

File 4 of 11 : masterchef.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.7;

interface IMasterchef {
    function BONUS_MULTIPLIER() external view returns (uint256);

    function add(
        uint256 _allocPoint,
        address _lpToken,
        bool _withUpdate
    ) external;

    function bonusEndBlock() external view returns (uint256);

    function deposit(uint256 _pid, uint256 _amount) external;

    function dev(address _devaddr) external;

    function devFundDivRate() external view returns (uint256);

    function devaddr() external view returns (address);

    function emergencyWithdraw(uint256 _pid) external;

    function getMultiplier(uint256 _from, uint256 _to)
        external
        view
        returns (uint256);

    function massUpdatePools() external;

    function owner() external view returns (address);

    function pendingPickle(uint256 _pid, address _user)
        external
        view
        returns (uint256);

    function pendingReward(uint256 _pid, address _user)
        external
        view
        returns (uint256);

    function pending(uint256 _pid, address _user)
        external
        view
        returns (uint256);

    function pickle() external view returns (address);

    function picklePerBlock() external view returns (uint256);

    function poolInfo(uint256)
        external
        view
        returns (
            address lpToken,
            uint256 allocPoint,
            uint256 lastRewardBlock,
            uint256 accPicklePerShare
        );

    function poolLength() external view returns (uint256);

    function renounceOwnership() external;

    function set(
        uint256 _pid,
        uint256 _allocPoint,
        bool _withUpdate
    ) external;

    function setBonusEndBlock(uint256 _bonusEndBlock) external;

    function setDevFundDivRate(uint256 _devFundDivRate) external;

    function setPicklePerBlock(uint256 _picklePerBlock) external;

    function startBlock() external view returns (uint256);

    function totalAllocPoint() external view returns (uint256);

    function transferOwnership(address newOwner) external;

    function updatePool(uint256 _pid) external;

    function userInfo(uint256, address)
        external
        view
        returns (uint256 amount, uint256 rewardDebt);

    function withdraw(uint256 _pid, uint256 _amount) external;
}

File 5 of 11 : erc20.sol
// File: contracts/GSN/Context.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "./safe-math.sol";
import "./context.sol";

// File: contracts/token/ERC20/IERC20.sol


/**
 * @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: contracts/utils/Address.sol


/**
 * @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");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        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: contracts/token/ERC20/ERC20.sol

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;
    using Address for address;

    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;
        _decimals = 18;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20};
     *
     * Requirements:
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal {
        _decimals = decimals_;
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}

/**
 * @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 11 : safe-math.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

File 7 of 11 : jar.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.2;

import "../lib/erc20.sol";

interface IJar is IERC20 {
    function token() external view returns (address);
    
    function reward() external view returns (address);

    function claimInsurance() external; // NOTE: Only yDelegatedVault implements this

    function getRatio() external view returns (uint256);

    function depositAll() external;
    
    function balance() external view returns (uint256);

    function deposit(uint256) external;

    function withdrawAll() external;

    function withdraw(uint256) external;

    function earn() external;

    function decimals() external view returns (uint8);
}

File 8 of 11 : staking-rewards.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.2;

interface IStakingRewards {
    function balanceOf(address account) external view returns (uint256);

    function earned(address account) external view returns (uint256);

    function exit() external;

    function getReward() external;

    function getRewardForDuration() external view returns (uint256);

    function lastTimeRewardApplicable() external view returns (uint256);

    function lastUpdateTime() external view returns (uint256);

    function notifyRewardAmount(uint256 reward) external;

    function periodFinish() external view returns (uint256);

    function rewardPerToken() external view returns (uint256);

    function rewardPerTokenStored() external view returns (uint256);

    function rewardRate() external view returns (uint256);

    function rewards(address) external view returns (uint256);

    function rewardsDistribution() external view returns (address);

    function rewardsDuration() external view returns (uint256);

    function rewardsToken() external view returns (address);

    function stake(uint256 amount) external;

    function deposit(uint256 amount) external;

    function stakeWithPermit(
        uint256 amount,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    function stakingToken() external view returns (address);

    function totalSupply() external view returns (uint256);

    function userRewardPerTokenPaid(address) external view returns (uint256);

    function withdraw(uint256 amount) external;
}

interface IStakingRewardsFactory {
    function deploy(address stakingToken, uint256 rewardAmount) external;

    function isOwner() external view returns (bool);

    function notifyRewardAmount(address stakingToken) external;

    function notifyRewardAmounts() external;

    function owner() external view returns (address);

    function renounceOwnership() external;

    function rewardsToken() external view returns (address);

    function stakingRewardsGenesis() external view returns (uint256);

    function stakingRewardsInfoByStakingToken(address)
        external
        view
        returns (address stakingRewards, uint256 rewardAmount);

    function stakingTokens(uint256) external view returns (address);

    function transferOwnership(address newOwner) external;
}

File 9 of 11 : uniswapv2.sol
// SPDX-License-Identifier: MIT

// SPDX-License-Identifier: MIT
pragma solidity ^0.6.2;

interface UniswapRouterV2 {
    function swapExactTokensForTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    )
        external
        returns (
            uint256 amountA,
            uint256 amountB,
            uint256 liquidity
        );

    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        );

    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountA, uint256 amountB);

    function getAmountsOut(uint256 amountIn, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);

    function getAmountsIn(uint256 amountOut, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);

    function swapETHForExactTokens(
        uint256 amountOut,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function swapExactETHForTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);
}

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);

    function DOMAIN_SEPARATOR() external view returns (bytes32);

    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);

    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;
}

interface IUniswapV2Factory {
    event PairCreated(
        address indexed token0,
        address indexed token1,
        address pair,
        uint256
    );

    function getPair(address tokenA, address tokenB)
        external
        view
        returns (address pair);

    function allPairs(uint256) external view returns (address pair);

    function allPairsLength() external view returns (uint256);

    function feeTo() external view returns (address);

    function feeToSetter() external view returns (address);

    function createPair(address tokenA, address tokenB)
        external
        returns (address pair);
}

File 10 of 11 : controller.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

interface IController {
    function jars(address) external view returns (address);

    function rewards() external view returns (address);

    function devfund() external view returns (address);

    function treasury() external view returns (address);

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

    function withdraw(address, uint256) external;

    function withdrawReward(address, uint256) external;

    function earn(address, uint256) external;

    function strategies(address) external view returns (address);
}

File 11 of 11 : context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_governance","type":"address"},{"internalType":"address","name":"_strategist","type":"address"},{"internalType":"address","name":"_controller","type":"address"},{"internalType":"address","name":"_timelock","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOfPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOfWant","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"controller","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dino","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_target","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"execute","outputs":[{"internalType":"bytes","name":"response","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getHarvestable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"harvesters","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keepReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keepRewardMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"masterChef","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"masterchef","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performanceDevFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performanceDevMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performanceTreasuryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performanceTreasuryMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_harvesters","type":"address[]"}],"name":"revokeHarvesters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_controller","type":"address"}],"name":"setController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"setGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_keepReward","type":"uint256"}],"name":"setKeepReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_performanceDevFee","type":"uint256"}],"name":"setPerformanceDevFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_performanceTreasuryFee","type":"uint256"}],"name":"setPerformanceTreasuryFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategist","type":"address"}],"name":"setStrategist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_timelock","type":"address"}],"name":"setTimelock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_withdrawalDevFundFee","type":"uint256"}],"name":"setWithdrawalDevFundFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_withdrawalTreasuryFee","type":"uint256"}],"name":"setWithdrawalTreasuryFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sushiRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sushi_work_usdc_lp","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timelock","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token0","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"uniswapRoutes","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"univ2Router2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"usdc","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"want","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_harvesters","type":"address[]"}],"name":"whitelistHarvesters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_asset","type":"address"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawForSwap","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawalDevFundFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawalDevFundMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawalTreasuryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawalTreasuryMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wmatic","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"work","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040526107d06000908155600181905560028190556003819055600980546001600160a01b03199081167393bcdc45f7e62f89a8e901dc4a0e2c6c427d9f2517909155600a80548216731b02da8cb0d097eb8d57a175b88c7d8b47997506179055601082905560119190915560148054821673aa9654becca45b5bdfa5ac646c939c62b527d394179055601580548216731948abc5400aa1d72223882958da3bec643fb4e517905560168054821673ab0454b98daf4a02ea29292e6a8882fb2c787dd4179055601780548216732791bca1f2de4661ed88a30c99a7a9449aa8417417905560188054909116736002410dda2fb88b4d0dc3c1d562f7761191ea801790553480156200011157600080fd5b50604051620035a4380380620035a4833981810160405260808110156200013757600080fd5b5080516020820151604083015160609093015160148054601554601754601854601654979896976001600160a01b039485169593851694928316939183169216898989898484848484846200018b57600080fd5b6001600160a01b0384166200019f57600080fd5b6001600160a01b038316620001b357600080fd5b6001600160a01b038216620001c757600080fd5b6001600160a01b038116620001db57600080fd5b600480546001600160a01b03199081166001600160a01b03978816179091556005805482169587169590951790945560078054851693861693909317909255600680548416918516919091179055600880548316918416919091179055601297909755600e80548816998216999099179098555050600f80548516958716959095179094555050600d805482169584169590951790945550600c80549093169181169190911790915560408051808201825260145483168152601754909216602080840182905260009182526013905220620002b991600262000314565b50604080516060810182526014546001600160a01b039081168252601754811660208084019190915260185490911682840181905260009081526013909152919091206200030991600362000314565b50505050506200039f565b8280548282559060005260206000209081019282156200036c579160200282015b828111156200036c57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000335565b506200037a9291506200037e565b5090565b5b808211156200037a5780546001600160a01b03191681556001016200037f565b6131f580620003af6000396000f3fe60806040526004361061034f5760003560e01c8063722713f7116101c6578063c39d4334116100f7578063e80028bf11610095578063f7c618c11161006f578063f7c618c114610ae8578063fb1db27814610afd578063fb41be1614610b12578063fe1f8f7a146106b15761034f565b8063e80028bf14610609578063ef51598314610abe578063f77c479114610ad35761034f565b8063c7b9d530116100d1578063c7b9d53014610a4c578063d0e30db014610a7f578063d21220a714610a94578063d33219b414610aa95761034f565b8063c39d4334146109e3578063c6223e26146109f8578063c65e324214610a225761034f565b8063a44e454711610164578063b1f55bd41161013e578063b1f55bd41461090b578063b9e3748914610986578063bdacb3031461099b578063c1a3d44c146109ce5761034f565b8063a44e454714610899578063ab033ea9146108ae578063ab73e433146108e15761034f565b806387976583116101a057806387976583146107f557806388993f221461083c5780638ccdbb701461085157806392eefe9b146108665761034f565b8063722713f7146107a157806382378594146107b6578063853828b6146107e05761034f565b80633e0dc34e116102a057806351cff8d91161023e57806359739ec41161021857806359739ec41461074d5780635aa6e6751461076257806367a52793146107775780636d13582c1461078c5761034f565b806351cff8d9146106f057806351f3d0b814610723578063575a86b2146107385761034f565b80634641257d1161027a5780634641257d1461069c578063479119be146106b15780634c2798ad146106c65780634fe809cc146106095761034f565b80633e0dc34e1461065d5780633e413bee146106725780633fc8cef3146106875761034f565b80631cff79cd1161030d578063249fb9b4116102e7578063249fb9b4146105df57806326e886c6146106095780632e1a7d4d1461061e578063322e9f04146106485761034f565b80631cff79cd146105015780631f1fcd51146105b55780631fe4a686146105ca5761034f565b8062b70eb7146103545780630547104d146103a95780630dfe1681146103d05780630e364fb6146103e5578063115880861461046257806317d7de7c14610477575b600080fd5b34801561036057600080fd5b5061038d6004803603604081101561037757600080fd5b506001600160a01b038135169060200135610b27565b604080516001600160a01b039092168252519081900360200190f35b3480156103b557600080fd5b506103be610b5c565b60408051918252519081900360200190f35b3480156103dc57600080fd5b5061038d610be8565b3480156103f157600080fd5b506104606004803603602081101561040857600080fd5b810190602081018135600160201b81111561042257600080fd5b82018360208201111561043457600080fd5b803590602001918460208302840111600160201b8311171561045557600080fd5b509092509050610bf7565b005b34801561046e57600080fd5b506103be610cd1565b34801561048357600080fd5b5061048c610d50565b6040805160208082528351818301528351919283929083019185019080838360005b838110156104c65781810151838201526020016104ae565b50505050905090810190601f1680156104f35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61048c6004803603604081101561051757600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561054157600080fd5b82018360208201111561055357600080fd5b803590602001918460018302840111600160201b8311171561057457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610d80945050505050565b3480156105c157600080fd5b5061038d610e63565b3480156105d657600080fd5b5061038d610e72565b3480156105eb57600080fd5b506104606004803603602081101561060257600080fd5b5035610e81565b34801561061557600080fd5b506103be610ed1565b34801561062a57600080fd5b506104606004803603602081101561064157600080fd5b5035610ed7565b34801561065457600080fd5b5061038d6111ea565b34801561066957600080fd5b506103be6111f9565b34801561067e57600080fd5b5061038d6111ff565b34801561069357600080fd5b5061038d61120e565b3480156106a857600080fd5b50610460611226565b3480156106bd57600080fd5b506103be611e30565b3480156106d257600080fd5b50610460600480360360208110156106e957600080fd5b5035611e37565b3480156106fc57600080fd5b506103be6004803603602081101561071357600080fd5b50356001600160a01b0316611e87565b34801561072f57600080fd5b506103be611fb7565b34801561074457600080fd5b5061038d611fbd565b34801561075957600080fd5b506103be611fcc565b34801561076e57600080fd5b5061038d611fd2565b34801561078357600080fd5b506103be611fe1565b34801561079857600080fd5b5061038d611fe7565b3480156107ad57600080fd5b506103be611ff6565b3480156107c257600080fd5b50610460600480360360208110156107d957600080fd5b5035612016565b3480156107ec57600080fd5b506103be612066565b34801561080157600080fd5b506108286004803603602081101561081857600080fd5b50356001600160a01b031661221a565b604080519115158252519081900360200190f35b34801561084857600080fd5b506103be61222f565b34801561085d57600080fd5b506103be612235565b34801561087257600080fd5b506104606004803603602081101561088957600080fd5b50356001600160a01b031661223b565b3480156108a557600080fd5b5061038d6122a8565b3480156108ba57600080fd5b50610460600480360360208110156108d157600080fd5b50356001600160a01b03166122b7565b3480156108ed57600080fd5b506104606004803603602081101561090457600080fd5b5035612326565b34801561091757600080fd5b506104606004803603602081101561092e57600080fd5b810190602081018135600160201b81111561094857600080fd5b82018360208201111561095a57600080fd5b803590602001918460208302840111600160201b8311171561097b57600080fd5b509092509050612376565b34801561099257600080fd5b5061038d612431565b3480156109a757600080fd5b50610460600480360360208110156109be57600080fd5b50356001600160a01b0316612440565b3480156109da57600080fd5b506103be6124ad565b3480156109ef57600080fd5b506103be61252d565b348015610a0457600080fd5b506103be60048036036020811015610a1b57600080fd5b5035612533565b348015610a2e57600080fd5b5061046060048036036020811015610a4557600080fd5b50356126eb565b348015610a5857600080fd5b5061046060048036036020811015610a6f57600080fd5b50356001600160a01b031661273b565b348015610a8b57600080fd5b506104606127aa565b348015610aa057600080fd5b5061038d6128d6565b348015610ab557600080fd5b5061038d6128e5565b348015610aca57600080fd5b5061038d6128f4565b348015610adf57600080fd5b5061038d612903565b348015610af457600080fd5b5061038d612912565b348015610b0957600080fd5b5061038d612921565b348015610b1e57600080fd5b5061038d612930565b60136020528160005260406000208181548110610b4057fe5b6000918252602090912001546001600160a01b03169150829050565b600c5460125460408051634c4b4f4160e11b815260048101929092523060248301525160009283926001600160a01b03909116916398969e8291604480820192602092909190829003018186803b158015610bb657600080fd5b505afa158015610bca573d6000803e3d6000fd5b505050506040513d6020811015610be057600080fd5b505191505090565b600e546001600160a01b031681565b6005546001600160a01b0316331480610c1a57506007546001600160a01b031633145b80610c345750336000908152600b602052604090205460ff165b610c76576040805162461bcd60e51b815260206004820152600e60248201526d1b9bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b60005b81811015610ccc576001600b6000858585818110610c9357fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff1916911515919091179055600101610c79565b505050565b600c54601254604080516393f1a40b60e01b81526004810192909252306024830152805160009384936001600160a01b03909116926393f1a40b92604480840193829003018186803b158015610d2657600080fd5b505afa158015610d3a573d6000803e3d6000fd5b505050506040513d6040811015610be057600080fd5b6040805180820190915260168152750537472617465677944696e6f576f726b557364634c760541b602082015290565b6008546060906001600160a01b03163314610dce576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b6001600160a01b038316610e13576040805162461bcd60e51b8152602060048201526007602482015266085d185c99d95d60ca1b604482015290519081900360640190fd5b600080835160208501866113885a03f43d6040519250601f19601f6020830101168301604052808352806000602085013e811560018114610e5357610e5a565b8160208501fd5b50505092915050565b6004546001600160a01b031681565b6007546001600160a01b031681565b6008546001600160a01b03163314610ecc576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600055565b61271081565b6006546001600160a01b03163314610f24576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b158015610f7357600080fd5b505afa158015610f87573d6000803e3d6000fd5b505050506040513d6020811015610f9d57600080fd5b5051905081811015610fca57610fbb610fb68383612948565b612993565b9150610fc78282612a07565b91505b6000610fee620186a0610fe860035486612a6190919063ffffffff16565b90612aba565b9050611080600660009054906101000a90046001600160a01b03166001600160a01b0316638d8f1e676040518163ffffffff1660e01b815260040160206040518083038186803b15801561104157600080fd5b505afa158015611055573d6000803e3d6000fd5b505050506040513d602081101561106b57600080fd5b50516004546001600160a01b03169083612afc565b600061109e620186a0610fe860025487612a6190919063ffffffff16565b90506110f1600660009054906101000a90046001600160a01b03166001600160a01b03166361d027b36040518163ffffffff1660e01b815260040160206040518083038186803b15801561104157600080fd5b6006546004805460408051636535246160e11b81526001600160a01b039283169381019390935251600093919091169163ca6a48c2916024808301926020929190829003018186803b15801561114657600080fd5b505afa15801561115a573d6000803e3d6000fd5b505050506040513d602081101561117057600080fd5b505190506001600160a01b0381166111b8576040805162461bcd60e51b8152602060048083019190915260248201526310b530b960e11b604482015290519081900360640190fd5b6111e3816111d0846111ca8988612948565b90612948565b6004546001600160a01b03169190612afc565b5050505050565b6018546001600160a01b031681565b60125481565b6017546001600160a01b031681565b737ceb23fd6bc0add59e62ac25578270cff1b9f61981565b336000908152600b602052604090205460ff168061124e57506005546001600160a01b031633145b8061126357506007546001600160a01b031633145b61126c57600080fd5b600c5460125460408051630441a3e760e41b8152600481019290925260006024830181905290516001600160a01b039093169263441a3e7092604480820193929182900301818387803b1580156112c257600080fd5b505af11580156112d6573d6000803e3d6000fd5b5050600d54604080516370a0823160e01b81523060048201529051600094506001600160a01b0390921692506370a08231916024808301926020929190829003018186803b15801561132757600080fd5b505afa15801561133b573d6000803e3d6000fd5b505050506040513d602081101561135157600080fd5b505190508015611517576000611378612710610fe860105485612a6190919063ffffffff16565b905061140b600660009054906101000a90046001600160a01b03166001600160a01b03166361d027b36040518163ffffffff1660e01b815260040160206040518083038186803b1580156113cb57600080fd5b505afa1580156113df573d6000803e3d6000fd5b505050506040513d60208110156113f557600080fd5b5051600d546001600160a01b0316906000612b4e565b600654604080516361d027b360e01b81529051611490926001600160a01b0316916361d027b3916004808301926020929190829003018186803b15801561145157600080fd5b505afa158015611465573d6000803e3d6000fd5b505050506040513d602081101561147b57600080fd5b5051600d546001600160a01b03169083612b4e565b600654604080516361d027b360e01b81529051611515926001600160a01b0316916361d027b3916004808301926020929190829003018186803b1580156114d657600080fd5b505afa1580156114ea573d6000803e3d6000fd5b505050506040513d602081101561150057600080fd5b5051600d546001600160a01b03169083612afc565b505b600d54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561156257600080fd5b505afa158015611576573d6000803e3d6000fd5b505050506040513d602081101561158c57600080fd5b505190508061159c575050611e2e565b600a54600d546115ba916001600160a01b0391821691166000612b4e565b600a54600d546115d7916001600160a01b03918216911683612b4e565b60006115e4826002612aba565b905060006115f28383612948565b600e546001600160a01b03166000908152601360205260408120549192509060019081101561183257600a54600e546001600160a01b039081166000908152601360205260409081902090516338ed173960e01b815260048101888152602482018690523060648301819052426084840181905260a060448501908152855460a4860181905296909716966338ed1739968c968a969095929160c490910190869080156116c857602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116116aa575b50509650505050505050600060405180830381600087803b1580156116ec57600080fd5b505af1158015611700573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561172957600080fd5b8101908080516040519392919084600160201b82111561174857600080fd5b90830190602082018581111561175d57600080fd5b82518660208202830111600160201b8211171561177957600080fd5b82525081516020918201928201910280838360005b838110156117a657818101518382015260200161178e565b50505050919091016040818152600e546370a0823160e01b835230600484015290516001600160a01b0390911696506370a082319550602480830195506020945090925090829003018186803b1580156117ff57600080fd5b505afa158015611813573d6000803e3d6000fd5b505050506040513d602081101561182957600080fd5b50519150611836565b8391505b600f546001600160a01b031660009081526013602052604081205460011015611a7057600a54600f546001600160a01b039081166000908152601360205260409081902090516338ed173960e01b815260048101888152602482018790523060648301819052426084840181905260a060448501908152855460a4860181905296909716966338ed1739968c968b969095929160c4909101908690801561190657602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116118e8575b50509650505050505050600060405180830381600087803b15801561192a57600080fd5b505af115801561193e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561196757600080fd5b8101908080516040519392919084600160201b82111561198657600080fd5b90830190602082018581111561199b57600080fd5b82518660208202830111600160201b821117156119b757600080fd5b82525081516020918201928201910280838360005b838110156119e45781810151838201526020016119cc565b50505050919091016040818152600f546370a0823160e01b835230600484015290516001600160a01b0390911696506370a082319550602480830195506020945090925090829003018186803b158015611a3d57600080fd5b505afa158015611a51573d6000803e3d6000fd5b505050506040513d6020811015611a6757600080fd5b50519050611a73565b50825b600083118015611a835750600081115b15611e1e57600a54600e54611aa6916001600160a01b0391821691166000612b4e565b600a54600e54611ac3916001600160a01b03918216911685612b4e565b600a54600f54611ae1916001600160a01b0391821691166000612b4e565b600a54600f54611afe916001600160a01b03918216911683612b4e565b600a54600e54600f546040805162e8e33760e81b81526001600160a01b0393841660048201529183166024830152604482018790526064820185905260006084830181905260a483018190523060c4840152603c420160e48401529051929093169263e8e3370092610104808401936060939083900390910190829087803b158015611b8957600080fd5b505af1158015611b9d573d6000803e3d6000fd5b505050506040513d6060811015611bb357600080fd5b5050600e54600654604080516361d027b360e01b815290516001600160a01b039384169363a9059cbb9316916361d027b3916004808301926020929190829003018186803b158015611c0457600080fd5b505afa158015611c18573d6000803e3d6000fd5b505050506040513d6020811015611c2e57600080fd5b5051600e54604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015611c7b57600080fd5b505afa158015611c8f573d6000803e3d6000fd5b505050506040513d6020811015611ca557600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b158015611cf657600080fd5b505af1158015611d0a573d6000803e3d6000fd5b505050506040513d6020811015611d2057600080fd5b5050600654604080516361d027b360e01b81529051611e1e926001600160a01b0316916361d027b3916004808301926020929190829003018186803b158015611d6857600080fd5b505afa158015611d7c573d6000803e3d6000fd5b505050506040513d6020811015611d9257600080fd5b5051600f54604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015611ddf57600080fd5b505afa158015611df3573d6000803e3d6000fd5b505050506040513d6020811015611e0957600080fd5b5051600f546001600160a01b03169190612afc565b611e26612c61565b505050505050505b565b620186a081565b6008546001600160a01b03163314611e82576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b601055565b6006546000906001600160a01b03163314611ed7576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b6004546001600160a01b0383811691161415611f23576040805162461bcd60e51b815260206004808301919091526024820152631dd85b9d60e21b604482015290519081900360640190fd5b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b158015611f6957600080fd5b505afa158015611f7d573d6000803e3d6000fd5b505050506040513d6020811015611f9357600080fd5b5051600654909150611fb2906001600160a01b03848116911683612afc565b919050565b60035481565b6015546001600160a01b031681565b60005481565b6005546001600160a01b031681565b60115481565b600a546001600160a01b031681565b6000612011612003610cd1565b61200b6124ad565b90612a07565b905090565b6008546001600160a01b03163314612061576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600255565b6006546000906001600160a01b031633146120b6576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b6120be612dfc565b60048054604080516370a0823160e01b81523093810193909352516001600160a01b03909116916370a08231916024808301926020929190829003018186803b15801561210a57600080fd5b505afa15801561211e573d6000803e3d6000fd5b505050506040513d602081101561213457600080fd5b50516006546004805460408051636535246160e11b81526001600160a01b03928316938101939093525193945060009392169163ca6a48c291602480820192602092909190829003018186803b15801561218d57600080fd5b505afa1580156121a1573d6000803e3d6000fd5b505050506040513d60208110156121b757600080fd5b505190506001600160a01b0381166121ff576040805162461bcd60e51b8152602060048083019190915260248201526310b530b960e11b604482015290519081900360640190fd5b600454612216906001600160a01b03168284612afc565b5090565b600b6020526000908152604090205460ff1681565b60015481565b60025481565b6008546001600160a01b03163314612286576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6014546001600160a01b031681565b6005546001600160a01b03163314612304576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b03163314612371576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600355565b6005546001600160a01b031633148061239957506007546001600160a01b031633145b6123db576040805162461bcd60e51b815260206004820152600e60248201526d1b9bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b60005b81811015610ccc576000600b60008585858181106123f857fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff19169115159190911790556001016123de565b6009546001600160a01b031681565b6008546001600160a01b0316331461248b576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b1580156124fc57600080fd5b505afa158015612510573d6000803e3d6000fd5b505050506040513d602081101561252657600080fd5b5051905090565b60105481565b6006546000906001600160a01b03163314612583576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b61258c82612993565b5060048054604080516370a0823160e01b81523093810193909352516001600160a01b03909116916370a08231916024808301926020929190829003018186803b1580156125d957600080fd5b505afa1580156125ed573d6000803e3d6000fd5b505050506040513d602081101561260357600080fd5b50516006546004805460408051636535246160e11b81526001600160a01b03928316938101939093525193945060009392169163ca6a48c291602480820192602092909190829003018186803b15801561265c57600080fd5b505afa158015612670573d6000803e3d6000fd5b505050506040513d602081101561268657600080fd5b505190506001600160a01b0381166126ce576040805162461bcd60e51b8152602060048083019190915260248201526310b530b960e11b604482015290519081900360640190fd5b6004546126e5906001600160a01b03168284612afc565b50919050565b6008546001600160a01b03163314612736576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600155565b6005546001600160a01b03163314612788576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b1580156127f957600080fd5b505afa15801561280d573d6000803e3d6000fd5b505050506040513d602081101561282357600080fd5b5051905080156128d357600c5460045461284b916001600160a01b0391821691166000612b4e565b600c54600454612868916001600160a01b03918216911683612b4e565b600c5460125460408051631c57762b60e31b8152600481019290925260248201849052516001600160a01b039092169163e2bbb1589160448082019260009290919082900301818387803b1580156128bf57600080fd5b505af11580156111e3573d6000803e3d6000fd5b50565b600f546001600160a01b031681565b6008546001600160a01b031681565b6016546001600160a01b031681565b6006546001600160a01b031681565b600d546001600160a01b031681565b600c546001600160a01b031681565b730d500b1d8e8ef31e21c99d1db9a6444d3adf127081565b600061298a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612e07565b90505b92915050565b600c5460125460408051630441a3e760e41b8152600481019290925260248201849052516000926001600160a01b03169163441a3e70916044808301928692919082900301818387803b1580156129e957600080fd5b505af11580156129fd573d6000803e3d6000fd5b5093949350505050565b60008282018381101561298a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082612a705750600061298d565b82820282848281612a7d57fe5b041461298a5760405162461bcd60e51b815260040180806020018281038252602181526020018061313f6021913960400191505060405180910390fd5b600061298a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612e9e565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610ccc908490612f03565b801580612bd4575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015612ba657600080fd5b505afa158015612bba573d6000803e3d6000fd5b505050506040513d6020811015612bd057600080fd5b5051155b612c0f5760405162461bcd60e51b815260040180806020018281038252603681526020018061318a6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610ccc908490612f03565b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b158015612cb057600080fd5b505afa158015612cc4573d6000803e3d6000fd5b505050506040513d6020811015612cda57600080fd5b5051905080156128d357600654604080516361d027b360e01b81529051612d6c926001600160a01b0316916361d027b3916004808301926020929190829003018186803b158015612d2a57600080fd5b505afa158015612d3e573d6000803e3d6000fd5b505050506040513d6020811015612d5457600080fd5b50516000546111d09061271090610fe8908690612a61565b60065460408051638d8f1e6760e01b81529051612df4926001600160a01b031691638d8f1e67916004808301926020929190829003018186803b158015612db257600080fd5b505afa158015612dc6573d6000803e3d6000fd5b505050506040513d6020811015612ddc57600080fd5b50516001546111d09061271090610fe8908690612a61565b6128d36127aa565b6128d3610fb6610cd1565b60008184841115612e965760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612e5b578181015183820152602001612e43565b50505050905090810190601f168015612e885780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183612eed5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612e5b578181015183820152602001612e43565b506000838581612ef957fe5b0495945050505050565b6060612f58826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612fb49092919063ffffffff16565b805190915015610ccc57808060200190516020811015612f7757600080fd5b5051610ccc5760405162461bcd60e51b815260040180806020018281038252602a815260200180613160602a913960400191505060405180910390fd5b6060612fc38484600085612fcb565b949350505050565b6060612fd685613138565b613027576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106130665780518252601f199092019160209182019101613047565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146130c8576040519150601f19603f3d011682016040523d82523d6000602084013e6130cd565b606091505b509150915081156130e1579150612fc39050565b8051156130f15780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315612e5b578181015183820152602001612e43565b3b15159056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a26469706673582212209340c29913d4937a67f1a3750b0d58f9e62180a5078deede5dba7d6b9daf0e0e64736f6c634300060c0033000000000000000000000000eae55893cc8637c16cf93d43b38aa022d689fa62000000000000000000000000acfe4511ce883c14c4ea40563f176c3c09b4c47c00000000000000000000000083074f0ab8edd2c1508d3f657ceb5f27f6092d09000000000000000000000000eae55893cc8637c16cf93d43b38aa022d689fa62

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

000000000000000000000000eae55893cc8637c16cf93d43b38aa022d689fa62000000000000000000000000acfe4511ce883c14c4ea40563f176c3c09b4c47c00000000000000000000000083074f0ab8edd2c1508d3f657ceb5f27f6092d09000000000000000000000000eae55893cc8637c16cf93d43b38aa022d689fa62

-----Decoded View---------------
Arg [0] : _governance (address): 0xeae55893cc8637c16cf93d43b38aa022d689fa62
Arg [1] : _strategist (address): 0xacfe4511ce883c14c4ea40563f176c3c09b4c47c
Arg [2] : _controller (address): 0x83074f0ab8edd2c1508d3f657ceb5f27f6092d09
Arg [3] : _timelock (address): 0xeae55893cc8637c16cf93d43b38aa022d689fa62

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000eae55893cc8637c16cf93d43b38aa022d689fa62
Arg [1] : 000000000000000000000000acfe4511ce883c14c4ea40563f176c3c09b4c47c
Arg [2] : 00000000000000000000000083074f0ab8edd2c1508d3f657ceb5f27f6092d09
Arg [3] : 000000000000000000000000eae55893cc8637c16cf93d43b38aa022d689fa62


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.