Contract 0x86756F470dB457795e36077F83Ac558b1E65f41D

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x55310aaeb4a1a56e1f92fe26ee67219b4c79beb90f7236a51424b20784ca8a4fHarvest425753202022-07-12 5:39:1886 days 10 hrs ago0x22ac70c1df5750e16469f4d2d20ecde43b6c8fe9 IN  0x86756f470db457795e36077f83ac558b1e65f41d0 FTM0.000544680797
0xb99c28d70e430c594d579f7b896be53d4500170dca380e9fec35ccb7fba6df2fHarvest425752832022-07-12 5:38:3286 days 10 hrs ago0x22ac70c1df5750e16469f4d2d20ecde43b6c8fe9 IN  0x86756f470db457795e36077f83ac558b1e65f41d0 FTM0.05027046612
0xec994d7a73e074cbff0823d6d3b8baf83159d3937c147cd3de14f2a052ebd864Harvest420162552022-07-04 18:43:0893 days 21 hrs ago0x27ec0fcf5bf0899104c0dda55d511280a91c1f32 IN  0x86756f470db457795e36077f83ac558b1e65f41d0 FTM0.022713071703
0x993d3a5db6f83b7b56b23a87b01a2904597d90618c7fcb2a8909c5e0bd6b8f32Harvest418968252022-07-03 6:13:4995 days 10 hrs ago0xfd1ab0f336224104e9a66b2e07866241a87c96fc IN  0x86756f470db457795e36077f83ac558b1e65f41d0 FTM0.0322261912
0x5e32de87f18632d8e54e07cbd8af0c5830114cf81dbeca83f9b3425c792ea7d6Harvest414343222022-06-27 4:38:31101 days 11 hrs ago0xfd1ab0f336224104e9a66b2e07866241a87c96fc IN  0x86756f470db457795e36077f83ac558b1e65f41d0 FTM0.00535955533
0x3865ef7878d131f9d0a68f73743bce66cfda3fa73aa7d5c8f6baf59d92c97e68Harvest410650552022-06-22 7:47:38106 days 8 hrs ago0xadb43d4e0f29b25b4423ab0110b28703cc2c4439 IN  0x86756f470db457795e36077f83ac558b1e65f41d0 FTM0.003515452029
0x0637573f435a0ead795e0d7eaa7b8d827d653e324ee0ac4ddd95175af28505f6Harvest410435872022-06-22 0:51:21106 days 15 hrs ago0xfd1ab0f336224104e9a66b2e07866241a87c96fc IN  0x86756f470db457795e36077f83ac558b1e65f41d0 FTM0.009759187658
0x0b17fafff6cede0ee682fcf10001254114844b3d5a69da149226dc4fa477179cHarvest410243872022-06-21 18:26:48106 days 22 hrs ago0xfd1ab0f336224104e9a66b2e07866241a87c96fc IN  0x86756f470db457795e36077f83ac558b1e65f41d0 FTM0.009451468024
0xdf155a6a3bdafaec0bb86880b6542864b0e72fa37c75dd33d64b26dcc487887bHarvest410243382022-06-21 18:25:57106 days 22 hrs ago0xfd1ab0f336224104e9a66b2e07866241a87c96fc IN  0x86756f470db457795e36077f83ac558b1e65f41d0 FTM0.01568523726
0xe5f7397ae7d35118ec36fa0b87c64689599def48922e688c6f4cf6fbe2f9f14aHarvest407911612022-06-18 13:31:49110 days 3 hrs ago0xfd1ab0f336224104e9a66b2e07866241a87c96fc IN  0x86756f470db457795e36077f83ac558b1e65f41d0 FTM0.038254751921
0x169ea4910047e13ae1cf0d44998c90844e03b8447fb93bbd844bc2bbb7fc670eHarvest407484712022-06-17 23:06:12110 days 17 hrs ago0xadb43d4e0f29b25b4423ab0110b28703cc2c4439 IN  0x86756f470db457795e36077f83ac558b1e65f41d0 FTM0.01631987393
0x5687b35947438cf6e7f21f4408bea92d92ac19ec0a99b46b1e7ba9a1e75b0e19Harvest407418212022-06-17 20:57:10110 days 19 hrs ago0xfd1ab0f336224104e9a66b2e07866241a87c96fc IN  0x86756f470db457795e36077f83ac558b1e65f41d0 FTM0.066564656
0x456c90e2b4f241020be5a7c60eeed85ba6bf2518f9334da00b144aad58df8fc9Harvest402204702022-06-10 16:09:56118 days 23 mins ago0x1db12950b956c9acbf083612812ec5a7a1b64b2b IN  0x86756f470db457795e36077f83ac558b1e65f41d0 FTM0.100938557049
0x550be5fd79e5de2b6fbe64003b665b5b8249c2b8bb7329f5c9d5c024b21c36a6Harvest402074222022-06-10 11:36:23118 days 4 hrs ago0x1db12950b956c9acbf083612812ec5a7a1b64b2b IN  0x86756f470db457795e36077f83ac558b1e65f41d0 FTM0.059557872558
0x70101ac297f23e8c0065ac15b68aca197ace208a178e72663758842a694ea176Harvest401993792022-06-10 8:57:37118 days 7 hrs ago0x97424388a67dc0d4dfd51e90e1b507d85da3bd52 IN  0x86756f470db457795e36077f83ac558b1e65f41d0 FTM0.003667996034
0x644e21f7df7971af18fe765546001a465b724f7c0e6f8ad00b110785603fb5dbHarvest400378762022-06-08 4:21:00120 days 12 hrs ago0x1db12950b956c9acbf083612812ec5a7a1b64b2b IN  0x86756f470db457795e36077f83ac558b1e65f41d0 FTM0.018065248243
0xdb88805fd6896b4f32ecd6e35183d67fbf33f286d2a9c7f227f9d638718c020bHarvest399911562022-06-07 13:04:17121 days 3 hrs ago0x7403d2346b93bf27a68e3f4f89d7501194a0b2d5 IN  0x86756f470db457795e36077f83ac558b1e65f41d0 FTM0.010851822816
0xd745d3185867c09dc865fc7cc9b77879dbbbf7cb049d43950595d76bb5e94429Harvest397470102022-06-04 6:40:02124 days 9 hrs ago0x6344a022d033efea17ea537d2c515aa3e4cdfb23 IN  0x86756f470db457795e36077f83ac558b1e65f41d0 FTM0.065492800895
0xb5ce99a53c26ae586aa00e4d1d8c73952451603b75785c7b92c94ae951f75412Harvest395053652022-06-01 1:01:01127 days 15 hrs ago0x016d26e90eca6c56b9411134f752e2a021cd93bf IN  0x86756f470db457795e36077f83ac558b1e65f41d0 FTM0.013401387655
0x00161a077a7bfa15011e7325606e77be3cba2793e661d659b922544e7847a968Harvest393829632022-05-30 8:46:34129 days 7 hrs ago0xdd046ca033c773850073c36cce14d0acab9842f7 IN  0x86756f470db457795e36077f83ac558b1e65f41d0 FTM0.005620962619
0x14589f6bf5861426f3fc4ff2b36d472cec1dc096c470765e142a60563cfbb8b8Harvest390377552022-05-25 16:14:26134 days 18 mins ago0x9afe9523f7d0515a196341ff6be6412bd3069151 IN  0x86756f470db457795e36077f83ac558b1e65f41d0 FTM0.036176577464
0x25079c40d474fdc7f24a03519f25cfd859205c6a354b4e3189f6491b450d3eb0Harvest388776532022-05-23 11:55:19136 days 4 hrs ago0x86aa0f0231a2267bc0ee99be06d5d5609f08205a IN  0x86756f470db457795e36077f83ac558b1e65f41d0 FTM0.062449439629
0xc796e16b1a8aa58f2760cc76a1df657d5dbb747ed0ac134f54820a709adbc709Harvest380068552022-05-10 23:30:33148 days 17 hrs ago0x83e6b98add7438a34a418a53dbd35064f8b66d60 IN  0x86756f470db457795e36077f83ac558b1e65f41d0 FTM0.589527778118
0x0a326b947759c271ad2ad5c4f9c2718df971ba35ac16bff6267de5dc40615feeHarvest365476892022-04-20 16:24:46169 days 8 mins ago0x348e73128b34390a07519b4b01a1bc2b60d26136 IN  0x86756f470db457795e36077f83ac558b1e65f41d0 FTM0.140138433
0x3bf9091de2e04c1cc488dd1fdd6254976f2e0317bfb4a2d7a7a2537fc9330b18Harvest355401162022-04-08 10:58:09181 days 5 hrs ago0xda18d4c75d506f84e420730b07b829bd505cfeef IN  0x86756f470db457795e36077f83ac558b1e65f41d0 FTM0.120898258398
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0xc30833b0502292f5f042d45912c4c58003f5b65b78b643a2a842abba0b362dc2336712962022-03-17 14:34:23203 days 1 hr ago 0x5cb48770c82b9ccd38da7aa9047237c881dd0028  Contract Creation0 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MatrixLpAutoCompound

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Unlicense license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 11 : MatrixLpAutoCompound.sol
// File: @openzeppelin/contracts/utils/Pausable.sol
// SPDX-License-Identifier: UNLICENSED
import "Ownable.sol";
import "Pausable.sol";
import "SafeERC20.sol";
import "IMasterChef.sol";
import "IUniswapRouterETH.sol";
import "IUniswapV2Pair.sol";
import "IMasterChef.sol";

pragma solidity ^0.6.0;

contract MatrixLpAutoCompound is Ownable, Pausable {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    // Matrix contracts
    address public vault;
    address public treasury;
    address public refer;


    // Tokens used
    address public wrapped =
        address(0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83);

    address public usdc = address(0x04068DA6C83AFCFA0e13ba15A6696662335D5B75);
    address public tomb = address(0x6c021Ae822BEa943b2E66552bDe1D2696a53fbB7);
    address public output;
    address public want;
    address public lpToken0;
    address public lpToken1;

    /**
     * @dev Distribution of fees earned. This allocations relative to the % implemented on
     * Current implementation separates 5% for fees. Can be changed through the constructor
     * Inputs in constructor should be ratios between the Fee and Max Fee, divisble into percents by 10000
     *
     * {callFee} - Percent of the totalFee reserved for the harvester (1000 = 10% of total fee: 0.5% by default)
     * {treasuryFee} - Percent of the totalFee taken by maintainers of the software (9000 = 90% of total fee: 4.5% by default)
     * {securityFee} - Fee taxed when a user withdraws funds. Taken to prevent flash deposit/harvest attacks.
     * These funds are redistributed to stakers in the pool.
     *
     * {totalFee} - divided by 10,000 to determine the % fee. Set to 5% by default and
     * lowered as necessary to provide users with the most competitive APY.
     *
     * {MAX_FEE} - Maximum fee allowed by the strategy. Hard-capped at 5%.
     * {PERCENT_DIVISOR} - Constant used to safely calculate the correct percentages.
     */

    uint256 public callFee = 1000;
    uint public referFee = 3000;
    uint256 public treasuryFee = 6000;
    uint256 public securityFee = 10;
    uint256 public totalFee = 450;
    uint256 public constant MAX_FEE = 500;
    uint256 public constant PERCENT_DIVISOR = 10000;

    // Third party contracts
    address public unirouter;
    address public masterchef;
    uint256 public poolId;

    // Routes
    address[] public outputToWrappedRoute;
    address[] public outputToLp0Route;
    address[] public outputToLp1Route;
    address[] customPath;

    mapping (address => address) validTokensForRouting;

    // Controllers
    bool public wrappedRoute = false;

    /**
     * {StratHarvest} Event that is fired each time someone harvests the strat.
     * {TotalFeeUpdated} Event that is fired each time the total fee is updated.
     * {CallFeeUpdated} Event that is fired each time the call fee is updated.
     * {ReferFeeUpdated} Event that is fired each time the refer fee is updated.
     */
    event StratHarvest(address indexed harvester);
    event TotalFeeUpdated(uint256 newFee);
    event CallFeeUpdated(uint256 newCallFee, uint256 newTreasuryFee);
    event ReferFeeUpdated(uint256 newReferFee, uint256 newTreasuryFee);

    constructor(
        address _want,
        uint256 _poolId,
        address _masterChef,
        address _output,
        address _uniRouter,
        address _vault,
        address _treasury,
        address _refer
    ) public {
        masterchef = _masterChef;
        unirouter = _uniRouter;
        want = _want;
        vault = _vault;
        treasury = _treasury;
        refer = _refer;

        output = _output;
        outputToWrappedRoute = [output, wrapped];

        lpToken0 = IUniswapV2Pair(want).token0();
        lpToken1 = IUniswapV2Pair(want).token1();
        poolId = _poolId;

        // lp0 = epic
        // route = legend -> ftm -> tomb -> degen -> epic
        outputToLp0Route = [output, wrapped, tomb, lpToken1, lpToken0];

        // lp1 = degen
        // route = legend -> ftm -> tomb -> degen 
        outputToLp1Route = [output, wrapped, tomb, lpToken1];

        validTokensForRouting[output] = output;
        validTokensForRouting[wrapped] = wrapped;
        validTokensForRouting[usdc] = usdc;
        validTokensForRouting[lpToken0] = lpToken0;
        validTokensForRouting[lpToken1] = lpToken1;
        validTokensForRouting[tomb] = tomb;

        _giveAllowances();
    }

    function setLp0Route(address[] memory route) public onlyOwner {
        uint256 _length = route.length;
        for (uint256 i = 0; i < _length; i++) {
            require(validTokensForRouting[route[i]] != address(0), "invalid-route");    
        }
        outputToLp0Route = route;
    }

    function setLp1Route(address[] memory route) public onlyOwner {
        uint256 _length = route.length;
        for (uint256 i = 0; i < _length; i++) {
            require(validTokensForRouting[route[i]] != address(0), "invalid-route");    
        }
        outputToLp1Route = route;
    }

    /**
     * @dev Function to synchronize balances before new user deposit.
     * Can be overridden in the strategy.
     */
    function beforeDeposit() external virtual {}

    // puts the funds to work
    function deposit() public whenNotPaused {
        uint256 wantBal = IERC20(want).balanceOf(address(this));

        IMasterChef(masterchef).deposit(poolId, wantBal);
    }

    function withdraw(uint256 _amount) external {
        require(msg.sender == vault, "!vault");

        uint256 pairBal = IERC20(want).balanceOf(address(this));

        if (pairBal < _amount) {
            IMasterChef(masterchef).withdraw(poolId, _amount.sub(pairBal));
            pairBal = IERC20(want).balanceOf(address(this));
        }

        if (pairBal > _amount) {
            pairBal = _amount;
        }
        uint256 withdrawFee = pairBal.mul(securityFee).div(PERCENT_DIVISOR);
        IERC20(want).safeTransfer(vault, pairBal.sub(withdrawFee));
    }

    // compounds earnings and charges performance fee
    function harvest() external whenNotPaused {
        require(!Address.isContract(msg.sender), "!contract");

        IMasterChef(masterchef).deposit(poolId, 0);
        chargeFees();
        addLiquidity();
        deposit();

        emit StratHarvest(msg.sender);
    }

    /**
     * @dev Takes out fees from the rewards. Set by constructor
     * callFeeToUser is set as a percentage of the fee,
     * as is treasuryFeeToVault
     */
    function chargeFees() internal {
        uint256 toWftm = IERC20(output)
            .balanceOf(address(this))
            .mul(totalFee)
            .div(PERCENT_DIVISOR);
        IUniswapRouterETH(unirouter)
            .swapExactTokensForTokensSupportingFeeOnTransferTokens(
                toWftm,
                0,
                outputToWrappedRoute,
                address(this),
                now.add(600)
            );

        uint256 wftmBal = IERC20(wrapped).balanceOf(address(this));

        uint256 callFeeToUser = wftmBal.mul(callFee).div(PERCENT_DIVISOR);
        IERC20(wrapped).safeTransfer(msg.sender, callFeeToUser);

        uint256 referFeeToUser = wftmBal.mul(referFee).div(PERCENT_DIVISOR);
        IERC20(wrapped).safeTransfer(refer, referFeeToUser);

        uint256 treasuryFeeToVault = wftmBal.mul(treasuryFee).div(PERCENT_DIVISOR);
        IERC20(wrapped).safeTransfer(treasury, treasuryFeeToVault);
    }

    // Adds liquidity to AMM and gets more LP tokens.
    function addLiquidity() internal {
        uint256 outputHalf = IERC20(output).balanceOf(address(this)).div(2);

        if (lpToken0 != output) {
            IUniswapRouterETH(unirouter).swapExactTokensForTokensSupportingFeeOnTransferTokens(
                outputHalf,
                0,
                outputToLp0Route,
                address(this),
                now.add(600)
            );
        }

        if (lpToken1 != output) {
            IUniswapRouterETH(unirouter).swapExactTokensForTokensSupportingFeeOnTransferTokens(
                outputHalf,
                0,
                outputToLp1Route,
                address(this),
                now.add(600)
            );
        }

        uint256 lp0Bal = IERC20(lpToken0).balanceOf(address(this));
        uint256 lp1Bal = IERC20(lpToken1).balanceOf(address(this));
        IUniswapRouterETH(unirouter).addLiquidity(
            lpToken0,
            lpToken1,
            lp0Bal,
            lp1Bal,
            1,
            1,
            address(this),
            now.add(600)
        );
    }

    // calculate the total underlaying 'want' held by the strat.
    function balanceOf() public view returns (uint256) {
        return balanceOfWant().add(balanceOfPool());
    }

    // it calculates how much 'want' this contract holds.
    function balanceOfWant() public view returns (uint256) {
        return IERC20(want).balanceOf(address(this));
    }

    // it calculates how much 'want' the strategy has working in the farm.
    function balanceOfPool() public view returns (uint256) {
        (uint256 _amount, ) = IMasterChef(masterchef).userInfo(
            poolId,
            address(this)
        );
        return _amount;
    }

    // called as part of strat migration. Sends all the available funds back to the vault.
    function retireStrat() external {
        require(msg.sender == vault, "!vault");

        IMasterChef(masterchef).emergencyWithdraw(poolId);

        uint256 wantBal = IERC20(want).balanceOf(address(this));
        IERC20(want).transfer(vault, wantBal);
    }

    // pauses deposits and withdraws all funds from third party systems.
    function panic() public onlyOwner {
        pause();
        IMasterChef(masterchef).emergencyWithdraw(poolId);
    }

    function pause() public onlyOwner {
        _pause();

        _removeAllowances();
    }

    function unpause() external onlyOwner {
        _unpause();

        _giveAllowances();

        deposit();
    }

    function _giveAllowances() internal {
        IERC20(want).safeApprove(masterchef, uint256(-1));
        IERC20(output).safeApprove(unirouter, uint256(-1));

        IERC20(lpToken0).safeApprove(unirouter, 0);
        IERC20(lpToken0).safeApprove(unirouter, uint256(-1));

        IERC20(lpToken1).safeApprove(unirouter, 0);
        IERC20(lpToken1).safeApprove(unirouter, uint256(-1));
    }

    function _removeAllowances() internal {
        IERC20(want).safeApprove(masterchef, 0);
        IERC20(output).safeApprove(unirouter, 0);
        IERC20(lpToken0).safeApprove(unirouter, 0);
        IERC20(lpToken1).safeApprove(unirouter, 0);
    }

    function setWrappedRoute(bool _bool) external onlyOwner {
        wrappedRoute = _bool;
    }

    // This function exists incase tokens that do not match the want of this strategy accrue.  For example: an amount of
    // tokens sent to this address in the form of an airdrop of a different token type.  This will allow us to convert
    // this token to the want-token of the strategy, allowing the amount to be paid out to stakers in the matching vault.
    function makeCustomTxn(
        address _fromToken,
        address _toToken,
        address _unirouter,
        uint256 _amount
    ) external onlyOwner {
        require(_fromToken != want, "cannot swap want token");
        approveTxnIfNeeded(_fromToken, _unirouter, _amount);

        customPath = [_fromToken, _toToken];

        IUniswapRouterETH(_unirouter).swapExactTokensForTokens(
            _amount,
            0,
            customPath,
            address(this),
            now.add(600)
        );
    }

    function approveTxnIfNeeded(
        address _token,
        address _unirouter,
        uint256 _amount
    ) internal {
        if (IERC20(_token).allowance(address(this), _unirouter) < _amount) {
            IERC20(_token).safeApprove(_unirouter, uint256(0));
            IERC20(_token).safeApprove(_unirouter, uint256(-1));
        }
    }

    /**
     * @dev updates the total fee, capped at 5%
     */
    function updateTotalFee(uint256 _totalFee)
        external
        onlyOwner
        returns (bool)
    {
        require(_totalFee <= MAX_FEE, "Fee Too High");
        totalFee = _totalFee;
        emit TotalFeeUpdated(totalFee);
        return true;
    }

    /**
     * @dev updates the call fee and adjusts the treasury fee to cover the difference
     */
    function updateCallFee(uint256 _callFee) external onlyOwner returns (bool) {
        callFee = _callFee;
        treasuryFee = PERCENT_DIVISOR.sub(callFee).sub(referFee);
        emit CallFeeUpdated(callFee, treasuryFee);
        return true;
    }

    /**
     * @dev updates the call fee and adjusts the treasury fee to cover the difference
     */
    function updateReferFee(uint256 _referFee) external onlyOwner returns (bool) {
        referFee = _referFee;
        treasuryFee = PERCENT_DIVISOR.sub(referFee).sub(callFee);
        emit ReferFeeUpdated(referFee, treasuryFee);
        return true;
    }

    function updateRefer(address newRefer) external onlyOwner returns (bool) {
      refer = newRefer;
      return true;
    }

    function updateTreasury(address newTreasury)
        external
        onlyOwner
        returns (bool)
    {
        treasury = newTreasury;
        return true;
    }
}

File 2 of 11 : Ownable.sol
// SPDX-License-Identifier: UNLICENSED
import "Context.sol";

pragma solidity ^0.6.0;

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

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

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

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

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

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

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

File 3 of 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;
    }
}

File 4 of 11 : Pausable.sol
// SPDX-License-Identifier: UNLICENSED
import "Context.sol";

pragma solidity ^0.6.0;

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */

contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() internal {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!_paused, "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(_paused, "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 5 of 11 : SafeERC20.sol
// SPDX-License-Identifier: UNLICENSED
import "SafeMath.sol";
import "Address.sol";
import "IERC20.sol";

pragma solidity ^0.6.0;

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(token.transfer.selector, to, value)
        );
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(token.transferFrom.selector, from, to, value)
        );
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(token.approve.selector, spender, value)
        );
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(
            value
        );
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(
                token.approve.selector,
                spender,
                newAllowance
            )
        );
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(
            value,
            "SafeERC20: decreased allowance below zero"
        );
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(
                token.approve.selector,
                spender,
                newAllowance
            )
        );
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(
            data,
            "SafeERC20: low-level call failed"
        );
        if (returndata.length > 0) {
            // Return data is optional
            // solhint-disable-next-line max-line-length
            require(
                abi.decode(returndata, (bool)),
                "SafeERC20: ERC20 operation did not succeed"
            );
        }
    }
}

File 6 of 11 : SafeMath.sol
// SPDX-License-Identifier: UNLICENSED
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 : Address.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.6.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in 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 8 of 11 : IERC20.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.6.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount)
        external
        returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender)
        external
        view
        returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );
}

File 9 of 11 : IMasterChef.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.6.0;

interface IMasterChef {
    function pendingShare(uint256 _pid, address _user)
        external
        view
        returns (uint256);

    function deposit(uint256 _pid, uint256 _amount) external;

    function withdraw(uint256 _pid, uint256 _amount) external;

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

    function emergencyWithdraw(uint256 _pid) external;
}

File 10 of 11 : IUniswapRouterETH.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.6.0;

interface IUniswapRouterETH {
    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 removeLiquidityETH(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountToken, uint256 amountETH);

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

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

    function swapExactTokensForETH(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;
}

File 11 of 11 : IUniswapV2Pair.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.6.0;

interface IUniswapV2Pair {
    function token0() external view returns (address);

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

Settings
{
  "evmVersion": "istanbul",
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "libraries": {
    "MatrixLpAutoCompound.sol": {}
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_want","type":"address"},{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"address","name":"_masterChef","type":"address"},{"internalType":"address","name":"_output","type":"address"},{"internalType":"address","name":"_uniRouter","type":"address"},{"internalType":"address","name":"_vault","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address","name":"_refer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newCallFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTreasuryFee","type":"uint256"}],"name":"CallFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newReferFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTreasuryFee","type":"uint256"}],"name":"ReferFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"harvester","type":"address"}],"name":"StratHarvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"TotalFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERCENT_DIVISOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"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":"beforeDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"callFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lpToken0","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpToken1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_fromToken","type":"address"},{"internalType":"address","name":"_toToken","type":"address"},{"internalType":"address","name":"_unirouter","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"makeCustomTxn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"masterchef","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"output","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"outputToLp0Route","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"outputToLp1Route","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"outputToWrappedRoute","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"panic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"referFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"retireStrat","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"securityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"route","type":"address[]"}],"name":"setLp0Route","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"route","type":"address[]"}],"name":"setLp1Route","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_bool","type":"bool"}],"name":"setWrappedRoute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tomb","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unirouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_callFee","type":"uint256"}],"name":"updateCallFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRefer","type":"address"}],"name":"updateRefer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_referFee","type":"uint256"}],"name":"updateReferFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_totalFee","type":"uint256"}],"name":"updateTotalFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newTreasury","type":"address"}],"name":"updateTreasury","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"usdc","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"want","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wrapped","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wrappedRoute","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

6080604052600480546001600160a01b03199081167321be370d5312f44cb42ce377bc9b8a0cef1a4c83179091556005805482167304068da6c83afcfa0e13ba15a6696662335d5b7517905560068054909116736c021ae822bea943b2e66552bde1d2696a53fbb71790556103e8600b55610bb8600c55611770600d55600a600e556101c2600f556018805460ff191690553480156200009e57600080fd5b50604051620036b2380380620036b28339818101604052610100811015620000c557600080fd5b508051602082015160408301516060840151608085015160a086015160c087015160e0909701519596949593949293919290916000620001046200045d565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506000805460ff60a01b19169055601180546001600160a01b03199081166001600160a01b03898116919091179092556010805482168784161790556008805482168b84161790556001805482168684161790556002805482168584161781556003805483168585161790556007805490921688841617918290556040805180820190915291831682526004549092166020820152620001f1916013919062000926565b50600860009054906101000a90046001600160a01b03166001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156200024157600080fd5b505afa15801562000256573d6000803e3d6000fd5b505050506040513d60208110156200026d57600080fd5b5051600980546001600160a01b0319166001600160a01b039283161790556008546040805163d21220a760e01b81529051919092169163d21220a7916004808301926020929190829003018186803b158015620002c957600080fd5b505afa158015620002de573d6000803e3d6000fd5b505050506040513d6020811015620002f557600080fd5b5051600a80546001600160a01b0319166001600160a01b03928316179081905560128990556040805160a0810182526007548416815260045484166020820152600654841691810191909152908216606082015260095490911660808201526200036490601490600562000926565b50604080516080810182526007546001600160a01b0390811682526004805482166020840152600654821693830193909352600a54166060820152620003ae916015919062000926565b506007546001600160a01b0390811660008181526017602052604080822080546001600160a01b03199081169094179055600454841680835281832080548516909117905560055484168083528183208054851690911790556009548416808352818320805485169091179055600a548416808352818320805485169091179055600654909316808252929020805490911690911790556200044f62000461565b5050505050505050620009b1565b3390565b6011546008546200048e916001600160a01b0391821691166000196200056f602090811b62001b3317901c565b601054600754620004bb916001600160a01b0391821691166000196200056f602090811b62001b3317901c565b601054600954620004e7916001600160a01b03918216911660006200056f602090811b62001b3317901c565b60105460095462000514916001600160a01b0391821691166000196200056f602090811b62001b3317901c565b601054600a5462000540916001600160a01b03918216911660006200056f602090811b62001b3317901c565b601054600a546200056d916001600160a01b0391821691166000196200056f602090811b62001b3317901c565b565b801580620005f9575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015620005c957600080fd5b505afa158015620005de573d6000803e3d6000fd5b505050506040513d6020811015620005f557600080fd5b5051155b620006365760405162461bcd60e51b81526004018080602001828103825260368152602001806200367c6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b179091526200068e9185916200069316565b505050565b6060620006ef826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166200074f60201b62001c46179092919060201c565b8051909150156200068e578080602001905160208110156200071057600080fd5b50516200068e5760405162461bcd60e51b815260040180806020018281038252602a81526020018062003652602a913960400191505060405180910390fd5b606062000760848460008562000768565b949350505050565b6060620007758562000920565b620007c7576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310620008085780518252601f199092019160209182019101620007e7565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146200086c576040519150601f19603f3d011682016040523d82523d6000602084013e62000871565b606091505b5091509150811562000887579150620007609050565b805115620008985780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015620008e4578181015183820152602001620008ca565b50505050905090810190601f168015620009125780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b3b151590565b8280548282559060005260206000209081019282156200097e579160200282015b828111156200097e57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000947565b506200098c92915062000990565b5090565b5b808211156200098c5780546001600160a01b031916815560010162000991565b612c9180620009c16000396000f3fe608060405234801561001057600080fd5b50600436106102a05760003560e01c80637f51bb1f11610167578063d0e30db0116100ce578063f2fde38b11610087578063f2fde38b1461065f578063f88fb68914610685578063fb1db278146106a2578063fb617787146106aa578063fbfa77cf146106b2578063fd63a887146106ba576102a0565b8063d0e30db0146104e4578063d32b9604146104ec578063d68e130214610509578063d8719e7d14610511578063eac0e83c146105b4578063f20eaeb814610657576102a0565b8063aacbf88b11610120578063aacbf88b146104b4578063b815e026146104bc578063bc063e1a146104c4578063c040f23a146104cc578063c1a3d44c146104d4578063cc32d176146104dc576102a0565b80637f51bb1f146104325780638456cb5914610458578063877562b6146104605780638da5cb5b1461046857806390321e1a14610470578063a97a329614610478576102a0565b80634619eebb1161020b5780635c975abb116101c45780635c975abb146103eb5780635ee167c0146103f357806361d027b3146103fb5780636faf1e1b14610403578063715018a614610422578063722713f71461042a576102a0565b80634619eebb1461039d5780634641257d146103c35780634700d305146103cb5780634870dd9a146103d357806350e70d48146103db578063573fef0a146103e3576102a0565b80633092f88b1161025d5780633092f88b1461032f57806336c6cf211461034b57806339d5a7c7146103685780633e0dc34e146103855780633e413bee1461038d5780633f4ba83a14610395576102a0565b806311588086146102a55780631d172127146102bf5780631df4ccfc146102f85780631f1fcd5114610300578063257ae0de146103085780632e1a7d4d14610310575b600080fd5b6102ad6106d7565b60408051918252519081900360200190f35b6102dc600480360360208110156102d557600080fd5b503561075e565b604080516001600160a01b039092168252519081900360200190f35b6102ad610785565b6102dc61078b565b6102dc61079a565b61032d6004803603602081101561032657600080fd5b50356107a9565b005b6103376109c6565b604080519115158252519081900360200190f35b6102dc6004803603602081101561036157600080fd5b50356109cf565b6103376004803603602081101561037e57600080fd5b50356109dc565b6102ad610aa0565b6102dc610aa6565b61032d610ab5565b610337600480360360208110156103b357600080fd5b50356001600160a01b0316610b27565b61032d610ba6565b61032d610cf2565b6102ad610dbc565b6102dc610dc2565b61032d610b25565b610337610dd1565b6102dc610de1565b6102dc610df0565b61032d6004803603602081101561041957600080fd5b50351515610dff565b61032d610e6a565b6102ad610f0c565b6103376004803603602081101561044857600080fd5b50356001600160a01b0316610f2c565b61032d610fab565b6102dc611013565b6102dc611022565b6102ad611031565b61032d6004803603608081101561048e57600080fd5b506001600160a01b03813581169160208101358216916040820135169060600135611037565b6102dc6112b7565b6102ad6112c6565b6102ad6112cc565b6102dc6112d2565b6102ad6112e1565b6102ad61135d565b61032d611363565b6103376004803603602081101561050257600080fd5b50356114a1565b6102ad611581565b61032d6004803603602081101561052757600080fd5b81019060208101813564010000000081111561054257600080fd5b82018360208201111561055457600080fd5b8035906020019184602083028401116401000000008311171561057657600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611587945050505050565b61032d600480360360208110156105ca57600080fd5b8101906020810181356401000000008111156105e557600080fd5b8201836020820111156105f757600080fd5b8035906020019184602083028401116401000000008311171561061957600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061168e945050505050565b6102dc611795565b61032d6004803603602081101561067557600080fd5b50356001600160a01b03166117a4565b6103376004803603602081101561069b57600080fd5b503561189c565b6102dc61195a565b61032d611969565b6102dc611b17565b6102dc600480360360208110156106d057600080fd5b5035611b26565b601154601254604080516393f1a40b60e01b81526004810192909252306024830152805160009384936001600160a01b03909116926393f1a40b92604480840193829003018186803b15801561072c57600080fd5b505afa158015610740573d6000803e3d6000fd5b505050506040513d604081101561075657600080fd5b505191505090565b6013818154811061076b57fe5b6000918252602090912001546001600160a01b0316905081565b600f5481565b6008546001600160a01b031681565b6010546001600160a01b031681565b6001546001600160a01b031633146107f1576040805162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b604482015290519081900360640190fd5b600854604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561083c57600080fd5b505afa158015610850573d6000803e3d6000fd5b505050506040513d602081101561086657600080fd5b5051905081811015610963576011546012546001600160a01b039091169063441a3e70906108948585611c5d565b6040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b1580156108d157600080fd5b505af11580156108e5573d6000803e3d6000fd5b5050600854604080516370a0823160e01b815230600482015290516001600160a01b0390921693506370a082319250602480820192602092909190829003018186803b15801561093457600080fd5b505afa158015610948573d6000803e3d6000fd5b505050506040513d602081101561095e57600080fd5b505190505b8181111561096e5750805b600061099161271061098b600e5485611ca890919063ffffffff16565b90611d01565b6001549091506109c1906001600160a01b03166109ae8484611c5d565b6008546001600160a01b03169190611d43565b505050565b60185460ff1681565b6014818154811061076b57fe5b60006109e6611d95565b6000546001600160a01b03908116911614610a36576040805162461bcd60e51b81526020600482018190526024820152600080516020612bdc833981519152604482015290519081900360640190fd5b600c829055600b54610a5490610a4e61271085611c5d565b90611c5d565b600d819055600c5460408051918252602082019290925281517f5e5df485093ad9417af9bce14657aed8036c000ca8718bb752d8707653e0b206929181900390910190a1506001919050565b60125481565b6005546001600160a01b031681565b610abd611d95565b6000546001600160a01b03908116911614610b0d576040805162461bcd60e51b81526020600482018190526024820152600080516020612bdc833981519152604482015290519081900360640190fd5b610b15611d99565b610b1d611e41565b610b25611363565b565b6000610b31611d95565b6000546001600160a01b03908116911614610b81576040805162461bcd60e51b81526020600482018190526024820152600080516020612bdc833981519152604482015290519081900360640190fd5b50600380546001600160a01b0383166001600160a01b03199091161790556001919050565b600054600160a01b900460ff1615610bf8576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b610c0133611ef9565b15610c3f576040805162461bcd60e51b81526020600482015260096024820152680858dbdb9d1c9858dd60ba1b604482015290519081900360640190fd5b60115460125460408051631c57762b60e31b8152600481019290925260006024830181905290516001600160a01b039093169263e2bbb15892604480820193929182900301818387803b158015610c9557600080fd5b505af1158015610ca9573d6000803e3d6000fd5b50505050610cb5611eff565b610cbd61219b565b610cc5611363565b60405133907f577a37fdb49a88d66684922c6f913df5239b4f214b2b97c53ef8e3bbb2034cb590600090a2565b610cfa611d95565b6000546001600160a01b03908116911614610d4a576040805162461bcd60e51b81526020600482018190526024820152600080516020612bdc833981519152604482015290519081900360640190fd5b610d52610fab565b60115460125460408051632989754760e11b81526004810192909252516001600160a01b0390921691635312ea8e9160248082019260009290919082900301818387803b158015610da257600080fd5b505af1158015610db6573d6000803e3d6000fd5b50505050565b61271081565b6004546001600160a01b031681565b600054600160a01b900460ff1690565b6009546001600160a01b031681565b6002546001600160a01b031681565b610e07611d95565b6000546001600160a01b03908116911614610e57576040805162461bcd60e51b81526020600482018190526024820152600080516020612bdc833981519152604482015290519081900360640190fd5b6018805460ff1916911515919091179055565b610e72611d95565b6000546001600160a01b03908116911614610ec2576040805162461bcd60e51b81526020600482018190526024820152600080516020612bdc833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000610f27610f196106d7565b610f216112e1565b906125e8565b905090565b6000610f36611d95565b6000546001600160a01b03908116911614610f86576040805162461bcd60e51b81526020600482018190526024820152600080516020612bdc833981519152604482015290519081900360640190fd5b50600280546001600160a01b0383166001600160a01b03199091161790556001919050565b610fb3611d95565b6000546001600160a01b03908116911614611003576040805162461bcd60e51b81526020600482018190526024820152600080516020612bdc833981519152604482015290519081900360640190fd5b61100b612642565b610b256126d0565b600a546001600160a01b031681565b6000546001600160a01b031690565b600b5481565b61103f611d95565b6000546001600160a01b0390811691161461108f576040805162461bcd60e51b81526020600482018190526024820152600080516020612bdc833981519152604482015290519081900360640190fd5b6008546001600160a01b03858116911614156110eb576040805162461bcd60e51b815260206004820152601660248201527531b0b73737ba1039bbb0b8103bb0b73a103a37b5b2b760511b604482015290519081900360640190fd5b6110f6848383612748565b604080518082019091526001600160a01b03808616825284166020820152611122906016906002612b10565b506001600160a01b0382166338ed1739826000601630611144426102586125e8565b6040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b0316815260200183815260200182810382528581815481526020019150805480156111c357602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116111a5575b50509650505050505050600060405180830381600087803b1580156111e757600080fd5b505af11580156111fb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561122457600080fd5b810190808051604051939291908464010000000082111561124457600080fd5b90830190602082018581111561125957600080fd5b825186602082028301116401000000008211171561127657600080fd5b82525081516020918201928201910280838360005b838110156112a357818101518382015260200161128b565b505050509050016040525050505050505050565b6003546001600160a01b031681565b600c5481565b6101f481565b6006546001600160a01b031681565b600854604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561132c57600080fd5b505afa158015611340573d6000803e3d6000fd5b505050506040513d602081101561135657600080fd5b5051905090565b600d5481565b600054600160a01b900460ff16156113b5576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600854604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561140057600080fd5b505afa158015611414573d6000803e3d6000fd5b505050506040513d602081101561142a57600080fd5b505160115460125460408051631c57762b60e31b8152600481019290925260248201849052519293506001600160a01b039091169163e2bbb1589160448082019260009290919082900301818387803b15801561148657600080fd5b505af115801561149a573d6000803e3d6000fd5b5050505050565b60006114ab611d95565b6000546001600160a01b039081169116146114fb576040805162461bcd60e51b81526020600482018190526024820152600080516020612bdc833981519152604482015290519081900360640190fd5b6101f4821115611541576040805162461bcd60e51b815260206004820152600c60248201526b08ccaca40a8dede4090d2ced60a31b604482015290519081900360640190fd5b600f8290556040805183815290517f2e59d502792bca3d730c472cd3acfbc16d0f9fe6ce0cddbdf0f80830251dfaca9181900360200190a1506001919050565b600e5481565b61158f611d95565b6000546001600160a01b039081169116146115df576040805162461bcd60e51b81526020600482018190526024820152600080516020612bdc833981519152604482015290519081900360640190fd5b805160005b8181101561167a5760006001600160a01b03166017600085848151811061160757fe5b6020908102919091018101516001600160a01b0390811683529082019290925260400160002054161415611672576040805162461bcd60e51b815260206004820152600d60248201526c696e76616c69642d726f75746560981b604482015290519081900360640190fd5b6001016115e4565b5081516109c1906014906020850190612b10565b611696611d95565b6000546001600160a01b039081169116146116e6576040805162461bcd60e51b81526020600482018190526024820152600080516020612bdc833981519152604482015290519081900360640190fd5b805160005b818110156117815760006001600160a01b03166017600085848151811061170e57fe5b6020908102919091018101516001600160a01b0390811683529082019290925260400160002054161415611779576040805162461bcd60e51b815260206004820152600d60248201526c696e76616c69642d726f75746560981b604482015290519081900360640190fd5b6001016116eb565b5081516109c1906015906020850190612b10565b6007546001600160a01b031681565b6117ac611d95565b6000546001600160a01b039081169116146117fc576040805162461bcd60e51b81526020600482018190526024820152600080516020612bdc833981519152604482015290519081900360640190fd5b6001600160a01b0381166118415760405162461bcd60e51b8152600401808060200182810382526026815260200180612b956026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60006118a6611d95565b6000546001600160a01b039081169116146118f6576040805162461bcd60e51b81526020600482018190526024820152600080516020612bdc833981519152604482015290519081900360640190fd5b600b829055600c5461190e90610a4e61271085611c5d565b600d819055600b5460408051918252602082019290925281517f06a730aa61ec47f8cc95582be032daaf0ec4cb816c24b9c07b574ea41821048b929181900390910190a1506001919050565b6011546001600160a01b031681565b6001546001600160a01b031633146119b1576040805162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b604482015290519081900360640190fd5b60115460125460408051632989754760e11b81526004810192909252516001600160a01b0390921691635312ea8e9160248082019260009290919082900301818387803b158015611a0157600080fd5b505af1158015611a15573d6000803e3d6000fd5b5050600854604080516370a0823160e01b81523060048201529051600094506001600160a01b0390921692506370a08231916024808301926020929190829003018186803b158015611a6657600080fd5b505afa158015611a7a573d6000803e3d6000fd5b505050506040513d6020811015611a9057600080fd5b50516008546001546040805163a9059cbb60e01b81526001600160a01b03928316600482015260248101859052905193945091169163a9059cbb916044808201926020929091908290030181600087803b158015611aed57600080fd5b505af1158015611b01573d6000803e3d6000fd5b505050506040513d60208110156109c157600080fd5b6001546001600160a01b031681565b6015818154811061076b57fe5b801580611bb9575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611b8b57600080fd5b505afa158015611b9f573d6000803e3d6000fd5b505050506040513d6020811015611bb557600080fd5b5051155b611bf45760405162461bcd60e51b8152600401808060200182810382526036815260200180612c266036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526109c19084906127f5565b6060611c5584846000856128a6565b949350505050565b6000611c9f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612a51565b90505b92915050565b600082611cb757506000611ca2565b82820282848281611cc457fe5b0414611c9f5760405162461bcd60e51b8152600401808060200182810382526021815260200180612bbb6021913960400191505060405180910390fd5b6000611c9f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612aab565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526109c19084906127f5565b3390565b600054600160a01b900460ff16611dee576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611e24611d95565b604080516001600160a01b039092168252519081900360200190a1565b601154600854611e60916001600160a01b039182169116600019611b33565b601054600754611e7f916001600160a01b039182169116600019611b33565b601054600954611e9d916001600160a01b0391821691166000611b33565b601054600954611ebc916001600160a01b039182169116600019611b33565b601054600a54611eda916001600160a01b0391821691166000611b33565b601054600a54610b25916001600160a01b039182169116600019611b33565b3b151590565b600f54600754604080516370a0823160e01b81523060048201529051600093611f8e936127109361098b936001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015611f5c57600080fd5b505afa158015611f70573d6000803e3d6000fd5b505050506040513d6020811015611f8657600080fd5b505190611ca8565b6010549091506001600160a01b0316635c11d795826000601330611fb4426102586125e8565b6040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03168152602001838152602001828103825285818154815260200191508054801561203357602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612015575b50509650505050505050600060405180830381600087803b15801561205757600080fd5b505af115801561206b573d6000803e3d6000fd5b505060048054604080516370a0823160e01b8152309381019390935251600094506001600160a01b0390911692506370a0823191602480820192602092909190829003018186803b1580156120bf57600080fd5b505afa1580156120d3573d6000803e3d6000fd5b505050506040513d60208110156120e957600080fd5b5051600b54909150600090612107906127109061098b908590611ca8565b600454909150612121906001600160a01b03163383611d43565b600061213e61271061098b600c5486611ca890919063ffffffff16565b60035460045491925061215e916001600160a01b03908116911683611d43565b600061217b61271061098b600d5487611ca890919063ffffffff16565b60025460045491925061149a916001600160a01b03908116911683611d43565b600754604080516370a0823160e01b81523060048201529051600092612222926002926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156121f057600080fd5b505afa158015612204573d6000803e3d6000fd5b505050506040513d602081101561221a57600080fd5b505190611d01565b6007546009549192506001600160a01b0391821691161461231c576010546001600160a01b0316635c11d795826000601430612260426102586125e8565b6040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b0316815260200183815260200182810382528581815481526020019150805480156122df57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116122c1575b50509650505050505050600060405180830381600087803b15801561230357600080fd5b505af1158015612317573d6000803e3d6000fd5b505050505b600754600a546001600160a01b03908116911614612413576010546001600160a01b0316635c11d795826000601530612357426102586125e8565b6040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b0316815260200183815260200182810382528581815481526020019150805480156123d657602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116123b8575b50509650505050505050600060405180830381600087803b1580156123fa57600080fd5b505af115801561240e573d6000803e3d6000fd5b505050505b600954604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561245e57600080fd5b505afa158015612472573d6000803e3d6000fd5b505050506040513d602081101561248857600080fd5b5051600a54604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156124db57600080fd5b505afa1580156124ef573d6000803e3d6000fd5b505050506040513d602081101561250557600080fd5b5051601054600954600a549293506001600160a01b039182169263e8e3370092918216911685856001803061253c426102586125e8565b6040518963ffffffff1660e01b815260040180896001600160a01b03168152602001886001600160a01b03168152602001878152602001868152602001858152602001848152602001836001600160a01b0316815260200182815260200198505050505050505050606060405180830381600087803b1580156125be57600080fd5b505af11580156125d2573d6000803e3d6000fd5b505050506040513d606081101561149a57600080fd5b600082820183811015611c9f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600054600160a01b900460ff1615612694576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611e24611d95565b6011546008546126ee916001600160a01b0391821691166000611b33565b60105460075461270c916001600160a01b0391821691166000611b33565b60105460095461272a916001600160a01b0391821691166000611b33565b601054600a54610b25916001600160a01b0391821691166000611b33565b60408051636eb1769f60e11b81523060048201526001600160a01b0384811660248301529151839286169163dd62ed3e916044808301926020929190829003018186803b15801561279857600080fd5b505afa1580156127ac573d6000803e3d6000fd5b505050506040513d60208110156127c257600080fd5b505110156109c1576127df6001600160a01b038416836000611b33565b6109c16001600160a01b03841683600019611b33565b606061284a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c469092919063ffffffff16565b8051909150156109c15780806020019051602081101561286957600080fd5b50516109c15760405162461bcd60e51b815260040180806020018281038252602a815260200180612bfc602a913960400191505060405180910390fd5b60606128b185611ef9565b612902576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106129415780518252601f199092019160209182019101612922565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146129a3576040519150601f19603f3d011682016040523d82523d6000602084013e6129a8565b606091505b509150915081156129bc579150611c559050565b8051156129cc5780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612a165781810151838201526020016129fe565b50505050905090810190601f168015612a435780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b60008184841115612aa35760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612a165781810151838201526020016129fe565b505050900390565b60008183612afa5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612a165781810151838201526020016129fe565b506000838581612b0657fe5b0495945050505050565b828054828255906000526020600020908101928215612b65579160200282015b82811115612b6557825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190612b30565b50612b71929150612b75565b5090565b5b80821115612b715780546001600160a01b0319168155600101612b7656fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a26469706673582212205291afa94ad86fff5db21f804b9e1d0d85880850559feac1a0d4565c8de593b664736f6c634300060c00335361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000000000ebf251a2bf9598e0401a79dbd2733aeab634f9390000000000000000000000000000000000000000000000000000000000000000000000000000000000000000721d3e50196a182157007b2e2af5ebfc24048e0e000000000000000000000000aeb9c9c376722643b18855e163b09d763bef57c7000000000000000000000000f491e7b69e4244ad4002bc14e878a34207e38c2900000000000000000000000063a7fff17cbb2a45b693c9e5136363a4790a66d00000000000000000000000008317b428082802c8aa84d670e495a0003d11368a0000000000000000000000002d9a7a41918ed5fd84b91168a3df5746bd3ff8da

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

000000000000000000000000ebf251a2bf9598e0401a79dbd2733aeab634f9390000000000000000000000000000000000000000000000000000000000000000000000000000000000000000721d3e50196a182157007b2e2af5ebfc24048e0e000000000000000000000000aeb9c9c376722643b18855e163b09d763bef57c7000000000000000000000000f491e7b69e4244ad4002bc14e878a34207e38c2900000000000000000000000063a7fff17cbb2a45b693c9e5136363a4790a66d00000000000000000000000008317b428082802c8aa84d670e495a0003d11368a0000000000000000000000002d9a7a41918ed5fd84b91168a3df5746bd3ff8da

-----Decoded View---------------
Arg [0] : _want (address): 0xebf251a2bf9598e0401a79dbd2733aeab634f939
Arg [1] : _poolId (uint256): 0
Arg [2] : _masterChef (address): 0x721d3e50196a182157007b2e2af5ebfc24048e0e
Arg [3] : _output (address): 0xaeb9c9c376722643b18855e163b09d763bef57c7
Arg [4] : _uniRouter (address): 0xf491e7b69e4244ad4002bc14e878a34207e38c29
Arg [5] : _vault (address): 0x63a7fff17cbb2a45b693c9e5136363a4790a66d0
Arg [6] : _treasury (address): 0x8317b428082802c8aa84d670e495a0003d11368a
Arg [7] : _refer (address): 0x2d9a7a41918ed5fd84b91168a3df5746bd3ff8da

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000ebf251a2bf9598e0401a79dbd2733aeab634f939
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [2] : 000000000000000000000000721d3e50196a182157007b2e2af5ebfc24048e0e
Arg [3] : 000000000000000000000000aeb9c9c376722643b18855e163b09d763bef57c7
Arg [4] : 000000000000000000000000f491e7b69e4244ad4002bc14e878a34207e38c29
Arg [5] : 00000000000000000000000063a7fff17cbb2a45b693c9e5136363a4790a66d0
Arg [6] : 0000000000000000000000008317b428082802c8aa84d670e495a0003d11368a
Arg [7] : 0000000000000000000000002d9a7a41918ed5fd84b91168a3df5746bd3ff8da


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
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.