Contract 0x3a293109bcd0B6ea1E784a98Fa040Df7A0fa7518

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x55153e2449b1150adeab0e7fd7562d448f5e362480cc4ed565898173f8177942Harvest384682182022-05-17 21:50:26141 days 18 hrs ago0xb1f1c46ecec6748c1f1e6d6bccff1fc9417318c0 IN  0x3a293109bcd0b6ea1e784a98fa040df7a0fa75180 FTM0.098265618
0xca489ded8e255645fda7e708658bfbc73cc6ee8e977d68ee7047ade1b8a094fbHarvest384257322022-05-17 7:32:59142 days 8 hrs ago0xb1f1a335b0b29e29b24cfe718987dcb100418083 IN  0x3a293109bcd0b6ea1e784a98fa040df7a0fa75180 FTM0.101525188995
0x2965066dbd24c4d354af4faca864a3e26e87be4fc0132f745b55c14a16167876Harvest383869822022-05-16 19:32:19142 days 20 hrs ago0x70ecc7fecaea8d67e820035ed48c53706e7f2079 IN  0x3a293109bcd0b6ea1e784a98fa040df7a0fa75180 FTM0.182392764835
0x6e5dfcad0df603ed7af3c37be65d413bdb4d9cdccb86289a6e10badabe73a41fHarvest383322512022-05-16 1:30:00143 days 14 hrs ago0x5cfb7b1345d0ec23e1f9181c61e5698c9b5020b5 IN  0x3a293109bcd0b6ea1e784a98fa040df7a0fa75180 FTM0.157384819452
0xbef2801d7ba159816dfe6cb7115071c5ae7e3503c175d3d7dedd465b1f450e23Harvest382847532022-05-15 9:16:21144 days 7 hrs ago0xb1f1a335b0b29e29b24cfe718987dcb100418083 IN  0x3a293109bcd0b6ea1e784a98fa040df7a0fa75180 FTM0.089283477991
0x929dacb386936a3500a7648aede3cfcd33662bd94a155bd64e1d2b15f2cd42bbHarvest382445062022-05-14 19:58:05144 days 20 hrs ago0x5cfb7b1345d0ec23e1f9181c61e5698c9b5020b5 IN  0x3a293109bcd0b6ea1e784a98fa040df7a0fa75180 FTM0.132181775
0xcdd89dd366e594acd9662cbd8964dace67e13b364002e031af67531261e89db4Harvest381870592022-05-14 0:34:28145 days 15 hrs ago0xb1f1a335b0b29e29b24cfe718987dcb100418083 IN  0x3a293109bcd0b6ea1e784a98fa040df7a0fa75180 FTM0.094209556
0xc72d275b22399e8349c5d3ef410dd4ba66d79f2e2900ed1c102f73006e88f676Harvest381476612022-05-13 10:56:13146 days 5 hrs ago0x5cfb7b1345d0ec23e1f9181c61e5698c9b5020b5 IN  0x3a293109bcd0b6ea1e784a98fa040df7a0fa75180 FTM0.473496
0x7f2c39073555aec7064f50e92aefffb2fe5e46ca75d9c1e52c0a81f5470c1348Harvest380118852022-05-11 1:12:05148 days 15 hrs ago0x33da80ce59602c2d66da944392cdf95bd4928c5e IN  0x3a293109bcd0b6ea1e784a98fa040df7a0fa75180 FTM0.11115716
0x0a4048c9ed169427cf59b04595c2e4e1bc1214f38866bdec4662caa82f3fd0a9Harvest379889682022-05-10 17:08:08148 days 23 hrs ago0x33da80ce59602c2d66da944392cdf95bd4928c5e IN  0x3a293109bcd0b6ea1e784a98fa040df7a0fa75180 FTM0.107011229861
0xe39f0db3f13969a231bfdb93764a7ca71219f4f81f9deada25f781e55700fa62Harvest379666322022-05-10 9:47:22149 days 6 hrs ago0x70ecc7fecaea8d67e820035ed48c53706e7f2079 IN  0x3a293109bcd0b6ea1e784a98fa040df7a0fa75180 FTM0.1433739
0xe759839e4cd1297b824f067b3adf117f1151b284aa1454300d97a9ae2a3a9632Harvest379373272022-05-09 22:53:16149 days 17 hrs ago0xb1f1a335b0b29e29b24cfe718987dcb100418083 IN  0x3a293109bcd0b6ea1e784a98fa040df7a0fa75180 FTM0.241320167156
0x3437e5876d86507ff761879cbdc4ea91d03ea9af8cbd13a7d69cc133f185050cHarvest378938452022-05-09 7:18:06150 days 9 hrs ago0xb1f1c46ecec6748c1f1e6d6bccff1fc9417318c0 IN  0x3a293109bcd0b6ea1e784a98fa040df7a0fa75180 FTM0.079180344022
0x41a5b1cab345b0c459dfb792e772a7bf65a9f03c5a7e686a1c467d1f25614bb1Harvest378747142022-05-09 1:18:29150 days 15 hrs ago0xb1f1d0d372f168e36119b8ddee785a737d908db2 IN  0x3a293109bcd0b6ea1e784a98fa040df7a0fa75180 FTM0.077089562252
0xfbaccc59bb528d4a882f2463dc21f2289dc7ac67efba9292dd6755a384f16ddfHarvest378564622022-05-08 19:42:10150 days 20 hrs ago0x5cfb7b1345d0ec23e1f9181c61e5698c9b5020b5 IN  0x3a293109bcd0b6ea1e784a98fa040df7a0fa75180 FTM0.094775668746
0x3d54f8aa74eecd0ced11187bdb50fcc7704d155177725029155a9ec11920d57fHarvest378351712022-05-08 12:54:14151 days 3 hrs ago0xb1f1c46ecec6748c1f1e6d6bccff1fc9417318c0 IN  0x3a293109bcd0b6ea1e784a98fa040df7a0fa75180 FTM0.088168272542
0x2105d94eb684523416c7bc1f8ee88b8873696f3b3a458827045b10debcb59459Harvest378156552022-05-08 6:41:34151 days 9 hrs ago0x33da80ce59602c2d66da944392cdf95bd4928c5e IN  0x3a293109bcd0b6ea1e784a98fa040df7a0fa75180 FTM0.070548690335
0xfe23acb989ad70e0aa7e4a6e946587597a764a4cccaa5733d6ce38d95b163050Harvest378001672022-05-08 1:37:56151 days 14 hrs ago0x7a0bb56e6cbc290a301f6beea4eea0f9842ed2e9 IN  0x3a293109bcd0b6ea1e784a98fa040df7a0fa75180 FTM0.099041706852
0x60a938062e647865268d88a7be924d6f85d28dcabc4a4eb3976a5a0abd4eb306Harvest377797752022-05-07 18:49:08151 days 21 hrs ago0x33da80ce59602c2d66da944392cdf95bd4928c5e IN  0x3a293109bcd0b6ea1e784a98fa040df7a0fa75180 FTM0.057462582713
0x4af42e29bbad2cd850374b991fb63ff6e5b65676913c41a7841f2d05319f19e3Harvest377666762022-05-07 14:54:11152 days 1 hr ago0x70ecc7fecaea8d67e820035ed48c53706e7f2079 IN  0x3a293109bcd0b6ea1e784a98fa040df7a0fa75180 FTM0.047665700002
0x609078ed80eab92c8d23334212290c58c409325eb53e03c2f52f73f2702d5a3cHarvest377532542022-05-07 10:50:28152 days 5 hrs ago0x70ecc7fecaea8d67e820035ed48c53706e7f2079 IN  0x3a293109bcd0b6ea1e784a98fa040df7a0fa75180 FTM0.047771300002
0xc549edd3df2c2498b8c54bf4b9bd0d1647faaa78e9eb6ed81866926e005a91f2Harvest377410562022-05-07 6:54:49152 days 9 hrs ago0x70ecc7fecaea8d67e820035ed48c53706e7f2079 IN  0x3a293109bcd0b6ea1e784a98fa040df7a0fa75180 FTM0.047791400002
0x7e716502770428b04b7105ba2a492a3fc902b73d97ef3b1228f61644f78198ebHarvest377286232022-05-07 3:01:09152 days 13 hrs ago0x7a0bb56e6cbc290a301f6beea4eea0f9842ed2e9 IN  0x3a293109bcd0b6ea1e784a98fa040df7a0fa75180 FTM0.057698177474
0xfac6f483d01370a51f44bbe14c65abdfe80fe070006d1736d5d07507a0ac8ba5Harvest377157132022-05-06 23:02:30152 days 17 hrs ago0x5cfb7b1345d0ec23e1f9181c61e5698c9b5020b5 IN  0x3a293109bcd0b6ea1e784a98fa040df7a0fa75180 FTM0.073373128039
0xece40263d43ae354942554ed5d727d4d7f9670b2aa418710cb5a67d1e9e9de7eHarvest377015302022-05-06 18:17:31152 days 22 hrs ago0xb1f1a335b0b29e29b24cfe718987dcb100418083 IN  0x3a293109bcd0b6ea1e784a98fa040df7a0fa75180 FTM0.133398900442
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x080b9c1175d7439d952f2c45ff7470f7e4923b9a3740eca056515e7bb7633fd1225291112021-11-19 17:27:42320 days 22 hrs ago 0x4b6b6a3af8c882b53c2cc99f016c89b231ce441d  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, None license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 8 : MatrixLpAutoCompound.sol
// File: @openzeppelin/contracts/utils/Pausable.sol
import "Ownable.sol";
import "Pausable.sol";
import "SafeERC20.sol";

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

pragma solidity ^0.6.0;

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

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

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

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;

    // Tokens used
    address public wrapped =
        address(0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83);
    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;
    uint256 public treasuryFee = 9000;
    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;

    // Controllers
    bool public wrappedRoute = true;

    /**
     * {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.
     */
    event StratHarvest(address indexed harvester);
    event TotalFeeUpdated(uint256 newFee);
    event CallFeeUpdated(uint256 newCallFee, uint256 newTreasuryFee);

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

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

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

        if (lpToken0 == wrapped) {
            outputToLp0Route = [output, wrapped];
        } else if (lpToken0 != output) {
            outputToLp0Route = [output, wrapped, lpToken0];
        }

        if (lpToken1 == wrapped) {
            outputToLp1Route = [output, wrapped];
        } else if (lpToken1 != output) {
            outputToLp1Route = [output, wrapped, lpToken1];
        }

        _giveAllowances();
    }

    /**
     * @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 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) {
            if (wrappedRoute && lpToken0 != wrapped) {
                outputToLp0Route = [output, wrapped, lpToken0];
            } else {
                outputToLp0Route = [output, lpToken0];
            }

            IUniswapRouterETH(unirouter).swapExactTokensForTokensSupportingFeeOnTransferTokens(
                outputHalf,
                0,
                outputToLp0Route,
                address(this),
                now.add(600)
            );
        }

        if (lpToken1 != output) {
            if (wrappedRoute && lpToken1 != wrapped) {
                outputToLp1Route = [output, wrapped, lpToken1];
            } else {
                outputToLp1Route = [output, lpToken1];
            }

            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);
        emit CallFeeUpdated(callFee, treasuryFee);
        return true;
    }

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

File 2 of 8 : Ownable.sol
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 8 : 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 8 : Pausable.sol
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 8 : SafeERC20.sol
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 8 : SafeMath.sol
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 8 : Address.sol
pragma solidity ^0.6.2;

/**
 * @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 8 : IERC20.sol
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
    );
}

Settings
{
  "evmVersion": "istanbul",
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "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"}],"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":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":"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":"bool","name":"_bool","type":"bool"}],"name":"setWrappedRoute","outputs":[],"stateMutability":"nonpayable","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":"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":"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"}]

6080604052600380546001600160a01b0319167321be370d5312f44cb42ce377bc9b8a0cef1a4c831790556103e8600855612328600955600a80556101c2600b556013805460ff191660011790553480156200005a57600080fd5b50604051620031fb380380620031fb833981810160405260e08110156200008057600080fd5b508051602082015160408301516060840151608085015160a086015160c09096015194959394929391929091906000620000b962000430565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506000805460ff60a01b19169055600d80546001600160a01b03199081166001600160a01b0388811691909117909255600c805482168684161790556005805482168a841617905560018054821685841617905560028054821684841617815560048054909216878416179182905560408051808201909152918316825260035490921660208201526200019a91600f9190620008f9565b50600560009054906101000a90046001600160a01b03166001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b158015620001ea57600080fd5b505afa158015620001ff573d6000803e3d6000fd5b505050506040513d60208110156200021657600080fd5b5051600680546001600160a01b0319166001600160a01b039283161790556005546040805163d21220a760e01b81529051919092169163d21220a7916004808301926020929190829003018186803b1580156200027257600080fd5b505afa15801562000287573d6000803e3d6000fd5b505050506040513d60208110156200029e57600080fd5b5051600780546001600160a01b0319166001600160a01b03928316179055600e879055600354600654908216911614156200030d57604080518082019091526004546001600160a01b03908116825260035416602082015262000306906010906002620008f9565b5062000369565b6004546006546001600160a01b039081169116146200036957604080516060810182526004546001600160a01b039081168252600380548216602084015260065490911692820192909252620003679160109190620008f9565b505b6003546007546001600160a01b0390811691161415620003bd57604080518082019091526004546001600160a01b039081168252600354166020820152620003b6906011906002620008f9565b5062000419565b6004546007546001600160a01b039081169116146200041957604080516060810182526004546001600160a01b039081168252600380548216602084015260075490911692820192909252620004179160119190620008f9565b505b6200042362000434565b5050505050505062000984565b3390565b600d5460055462000461916001600160a01b03918216911660001962000542602090811b620015a717901c565b600c546004546200048e916001600160a01b03918216911660001962000542602090811b620015a717901c565b600c54600654620004ba916001600160a01b039182169116600062000542602090811b620015a717901c565b600c54600654620004e7916001600160a01b03918216911660001962000542602090811b620015a717901c565b600c5460075462000513916001600160a01b039182169116600062000542602090811b620015a717901c565b600c5460075462000540916001600160a01b03918216911660001962000542602090811b620015a717901c565b565b801580620005cc575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156200059c57600080fd5b505afa158015620005b1573d6000803e3d6000fd5b505050506040513d6020811015620005c857600080fd5b5051155b620006095760405162461bcd60e51b8152600401808060200182810382526036815260200180620031c56036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b17909152620006619185916200066616565b505050565b6060620006c2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166200072260201b620016ba179092919060201c565b8051909150156200066157808060200190516020811015620006e357600080fd5b5051620006615760405162461bcd60e51b815260040180806020018281038252602a8152602001806200319b602a913960400191505060405180910390fd5b60606200073384846000856200073b565b949350505050565b60606200074885620008f3565b6200079a576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310620007db5780518252601f199092019160209182019101620007ba565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146200083f576040519150601f19603f3d011682016040523d82523d6000602084013e62000844565b606091505b509150915081156200085a579150620007339050565b8051156200086b5780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015620008b75781810151838201526020016200089d565b50505050905090810190601f168015620008e55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b3b151590565b82805482825590600052602060002090810192821562000951579160200282015b828111156200095157825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200091a565b506200095f92915062000963565b5090565b5b808211156200095f5780546001600160a01b031916815560010162000964565b61280780620009946000396000f3fe608060405234801561001057600080fd5b50600436106102485760003560e01c8063722713f71161013b578063d0e30db0116100b8578063f88fb6891161007c578063f88fb68914610484578063fb1db278146104a1578063fb617787146104a9578063fbfa77cf146104b1578063fd63a887146104b957610248565b8063d0e30db014610429578063d32b960414610431578063d68e13021461044e578063f20eaeb814610456578063f2fde38b1461045e57610248565b806390321e1a116100ff57806390321e1a146103cd578063a97a3296146103d5578063bc063e1a14610411578063c1a3d44c14610419578063cc32d1761461042157610248565b8063722713f7146103875780637f51bb1f1461038f5780638456cb59146103b5578063877562b6146103bd5780638da5cb5b146103c557610248565b80634641257d116101c95780635c975abb1161018d5780635c975abb146103485780635ee167c01461035057806361d027b3146103585780636faf1e1b14610360578063715018a61461037f57610248565b80634641257d146103205780634700d305146103285780634870dd9a1461033057806350e70d4814610338578063573fef0a1461034057610248565b80632e1a7d4d116102105780632e1a7d4d146102b85780633092f88b146102d757806336c6cf21146102f35780633e0dc34e146103105780633f4ba83a1461031857610248565b8063115880861461024d5780631d172127146102675780631df4ccfc146102a05780631f1fcd51146102a8578063257ae0de146102b0575b600080fd5b6102556104d6565b60408051918252519081900360200190f35b6102846004803603602081101561027d57600080fd5b503561055d565b604080516001600160a01b039092168252519081900360200190f35b610255610584565b61028461058a565b610284610599565b6102d5600480360360208110156102ce57600080fd5b50356105a8565b005b6102df6107c5565b604080519115158252519081900360200190f35b6102846004803603602081101561030957600080fd5b50356107ce565b6102556107db565b6102d56107e1565b6102d5610853565b6102d561099f565b610255610a69565b610284610a6f565b6102d5610851565b6102df610a7e565b610284610a8e565b610284610a9d565b6102d56004803603602081101561037657600080fd5b50351515610aac565b6102d5610b17565b610255610bb9565b6102df600480360360208110156103a557600080fd5b50356001600160a01b0316610bd9565b6102d5610c58565b610284610cc0565b610284610ccf565b610255610cde565b6102d5600480360360808110156103eb57600080fd5b506001600160a01b03813581169160208101358216916040820135169060600135610ce4565b610255610f64565b610255610f6a565b610255610fe6565b6102d5610fec565b6102df6004803603602081101561044757600080fd5b503561112a565b61025561120a565b610284611210565b6102d56004803603602081101561047457600080fd5b50356001600160a01b031661121f565b6102df6004803603602081101561049a57600080fd5b5035611317565b6102846113ce565b6102d56113dd565b61028461158b565b610284600480360360208110156104cf57600080fd5b503561159a565b600d54600e54604080516393f1a40b60e01b81526004810192909252306024830152805160009384936001600160a01b03909116926393f1a40b92604480840193829003018186803b15801561052b57600080fd5b505afa15801561053f573d6000803e3d6000fd5b505050506040513d604081101561055557600080fd5b505191505090565b600f818154811061056a57fe5b6000918252602090912001546001600160a01b0316905081565b600b5481565b6005546001600160a01b031681565b600c546001600160a01b031681565b6001546001600160a01b031633146105f0576040805162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b604482015290519081900360640190fd5b600554604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561063b57600080fd5b505afa15801561064f573d6000803e3d6000fd5b505050506040513d602081101561066557600080fd5b505190508181101561076257600d54600e546001600160a01b039091169063441a3e709061069385856116d1565b6040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b1580156106d057600080fd5b505af11580156106e4573d6000803e3d6000fd5b5050600554604080516370a0823160e01b815230600482015290516001600160a01b0390921693506370a082319250602480820192602092909190829003018186803b15801561073357600080fd5b505afa158015610747573d6000803e3d6000fd5b505050506040513d602081101561075d57600080fd5b505190505b8181111561076d5750805b600061079061271061078a600a548561171c90919063ffffffff16565b90611775565b6001549091506107c0906001600160a01b03166107ad84846116d1565b6005546001600160a01b031691906117b7565b505050565b60135460ff1681565b6010818154811061056a57fe5b600e5481565b6107e9611809565b6000546001600160a01b03908116911614610839576040805162461bcd60e51b81526020600482018190526024820152600080516020612752833981519152604482015290519081900360640190fd5b61084161180d565b6108496118b5565b610851610fec565b565b600054600160a01b900460ff16156108a5576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6108ae3361196d565b156108ec576040805162461bcd60e51b81526020600482015260096024820152680858dbdb9d1c9858dd60ba1b604482015290519081900360640190fd5b600d54600e5460408051631c57762b60e31b8152600481019290925260006024830181905290516001600160a01b039093169263e2bbb15892604480820193929182900301818387803b15801561094257600080fd5b505af1158015610956573d6000803e3d6000fd5b50505050610962611973565b61096a611bd0565b610972610fec565b60405133907f577a37fdb49a88d66684922c6f913df5239b4f214b2b97c53ef8e3bbb2034cb590600090a2565b6109a7611809565b6000546001600160a01b039081169116146109f7576040805162461bcd60e51b81526020600482018190526024820152600080516020612752833981519152604482015290519081900360640190fd5b6109ff610c58565b600d54600e5460408051632989754760e11b81526004810192909252516001600160a01b0390921691635312ea8e9160248082019260009290919082900301818387803b158015610a4f57600080fd5b505af1158015610a63573d6000803e3d6000fd5b50505050565b61271081565b6003546001600160a01b031681565b600054600160a01b900460ff1690565b6006546001600160a01b031681565b6002546001600160a01b031681565b610ab4611809565b6000546001600160a01b03908116911614610b04576040805162461bcd60e51b81526020600482018190526024820152600080516020612752833981519152604482015290519081900360640190fd5b6013805460ff1916911515919091179055565b610b1f611809565b6000546001600160a01b03908116911614610b6f576040805162461bcd60e51b81526020600482018190526024820152600080516020612752833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000610bd4610bc66104d6565b610bce610f6a565b9061215e565b905090565b6000610be3611809565b6000546001600160a01b03908116911614610c33576040805162461bcd60e51b81526020600482018190526024820152600080516020612752833981519152604482015290519081900360640190fd5b50600280546001600160a01b0383166001600160a01b03199091161790556001919050565b610c60611809565b6000546001600160a01b03908116911614610cb0576040805162461bcd60e51b81526020600482018190526024820152600080516020612752833981519152604482015290519081900360640190fd5b610cb86121b8565b610851612246565b6007546001600160a01b031681565b6000546001600160a01b031690565b60085481565b610cec611809565b6000546001600160a01b03908116911614610d3c576040805162461bcd60e51b81526020600482018190526024820152600080516020612752833981519152604482015290519081900360640190fd5b6005546001600160a01b0385811691161415610d98576040805162461bcd60e51b815260206004820152601660248201527531b0b73737ba1039bbb0b8103bb0b73a103a37b5b2b760511b604482015290519081900360640190fd5b610da38483836122be565b604080518082019091526001600160a01b03808616825284166020820152610dcf906012906002612686565b506001600160a01b0382166338ed1739826000601230610df14261025861215e565b6040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b031681526020018381526020018281038252858181548152602001915080548015610e7057602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610e52575b50509650505050505050600060405180830381600087803b158015610e9457600080fd5b505af1158015610ea8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610ed157600080fd5b8101908080516040519392919084640100000000821115610ef157600080fd5b908301906020820185811115610f0657600080fd5b8251866020820283011164010000000082111715610f2357600080fd5b82525081516020918201928201910280838360005b83811015610f50578181015183820152602001610f38565b505050509050016040525050505050505050565b6101f481565b600554604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610fb557600080fd5b505afa158015610fc9573d6000803e3d6000fd5b505050506040513d6020811015610fdf57600080fd5b5051905090565b60095481565b600054600160a01b900460ff161561103e576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600554604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561108957600080fd5b505afa15801561109d573d6000803e3d6000fd5b505050506040513d60208110156110b357600080fd5b5051600d54600e5460408051631c57762b60e31b8152600481019290925260248201849052519293506001600160a01b039091169163e2bbb1589160448082019260009290919082900301818387803b15801561110f57600080fd5b505af1158015611123573d6000803e3d6000fd5b5050505050565b6000611134611809565b6000546001600160a01b03908116911614611184576040805162461bcd60e51b81526020600482018190526024820152600080516020612752833981519152604482015290519081900360640190fd5b6101f48211156111ca576040805162461bcd60e51b815260206004820152600c60248201526b08ccaca40a8dede4090d2ced60a31b604482015290519081900360640190fd5b600b8290556040805183815290517f2e59d502792bca3d730c472cd3acfbc16d0f9fe6ce0cddbdf0f80830251dfaca9181900360200190a1506001919050565b600a5481565b6004546001600160a01b031681565b611227611809565b6000546001600160a01b03908116911614611277576040805162461bcd60e51b81526020600482018190526024820152600080516020612752833981519152604482015290519081900360640190fd5b6001600160a01b0381166112bc5760405162461bcd60e51b815260040180806020018281038252602681526020018061270b6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000611321611809565b6000546001600160a01b03908116911614611371576040805162461bcd60e51b81526020600482018190526024820152600080516020612752833981519152604482015290519081900360640190fd5b6008829055611382612710836116d1565b600981905560085460408051918252602082019290925281517f06a730aa61ec47f8cc95582be032daaf0ec4cb816c24b9c07b574ea41821048b929181900390910190a1506001919050565b600d546001600160a01b031681565b6001546001600160a01b03163314611425576040805162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b604482015290519081900360640190fd5b600d54600e5460408051632989754760e11b81526004810192909252516001600160a01b0390921691635312ea8e9160248082019260009290919082900301818387803b15801561147557600080fd5b505af1158015611489573d6000803e3d6000fd5b5050600554604080516370a0823160e01b81523060048201529051600094506001600160a01b0390921692506370a08231916024808301926020929190829003018186803b1580156114da57600080fd5b505afa1580156114ee573d6000803e3d6000fd5b505050506040513d602081101561150457600080fd5b50516005546001546040805163a9059cbb60e01b81526001600160a01b03928316600482015260248101859052905193945091169163a9059cbb916044808201926020929091908290030181600087803b15801561156157600080fd5b505af1158015611575573d6000803e3d6000fd5b505050506040513d60208110156107c057600080fd5b6001546001600160a01b031681565b6011818154811061056a57fe5b80158061162d575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156115ff57600080fd5b505afa158015611613573d6000803e3d6000fd5b505050506040513d602081101561162957600080fd5b5051155b6116685760405162461bcd60e51b815260040180806020018281038252603681526020018061279c6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526107c090849061236b565b60606116c9848460008561241c565b949350505050565b600061171383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506125c7565b90505b92915050565b60008261172b57506000611716565b8282028284828161173857fe5b04146117135760405162461bcd60e51b81526004018080602001828103825260218152602001806127316021913960400191505060405180910390fd5b600061171383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612621565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526107c090849061236b565b3390565b600054600160a01b900460ff16611862576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611898611809565b604080516001600160a01b039092168252519081900360200190a1565b600d546005546118d4916001600160a01b0391821691166000196115a7565b600c546004546118f3916001600160a01b0391821691166000196115a7565b600c54600654611911916001600160a01b03918216911660006115a7565b600c54600654611930916001600160a01b0391821691166000196115a7565b600c5460075461194e916001600160a01b03918216911660006115a7565b600c54600754610851916001600160a01b0391821691166000196115a7565b3b151590565b600b5460048054604080516370a0823160e01b8152309381019390935251600093611a03936127109361078a936001600160a01b03909116916370a08231916024808301926020929190829003018186803b1580156119d157600080fd5b505afa1580156119e5573d6000803e3d6000fd5b505050506040513d60208110156119fb57600080fd5b50519061171c565b600c549091506001600160a01b0316635c11d795826000600f30611a294261025861215e565b6040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b031681526020018381526020018281038252858181548152602001915080548015611aa857602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611a8a575b50509650505050505050600060405180830381600087803b158015611acc57600080fd5b505af1158015611ae0573d6000803e3d6000fd5b5050600354604080516370a0823160e01b81523060048201529051600094506001600160a01b0390921692506370a08231916024808301926020929190829003018186803b158015611b3157600080fd5b505afa158015611b45573d6000803e3d6000fd5b505050506040513d6020811015611b5b57600080fd5b5051600854909150600090611b79906127109061078a90859061171c565b600354909150611b93906001600160a01b031633836117b7565b6000611bb061271061078a6009548661171c90919063ffffffff16565b600254600354919250610a63916001600160a01b039081169116836117b7565b60048054604080516370a0823160e01b8152309381019390935251600092611c58926002926001600160a01b03909116916370a08231916024808301926020929190829003018186803b158015611c2657600080fd5b505afa158015611c3a573d6000803e3d6000fd5b505050506040513d6020811015611c5057600080fd5b505190611775565b6004546006549192506001600160a01b03918216911614611df25760135460ff168015611c9657506003546006546001600160a01b03908116911614155b15611ce057604080516060810182526004546001600160a01b039081168252600380548216602084015260065490911692820192909252611cda9160109190612686565b50611d13565b604080518082019091526004546001600160a01b039081168252600654166020820152611d11906010906002612686565b505b600c546001600160a01b0316635c11d795826000601030611d364261025861215e565b6040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b031681526020018381526020018281038252858181548152602001915080548015611db557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611d97575b50509650505050505050600060405180830381600087803b158015611dd957600080fd5b505af1158015611ded573d6000803e3d6000fd5b505050505b6004546007546001600160a01b03908116911614611f895760135460ff168015611e2d57506003546007546001600160a01b03908116911614155b15611e7757604080516060810182526004546001600160a01b039081168252600380548216602084015260075490911692820192909252611e719160119190612686565b50611eaa565b604080518082019091526004546001600160a01b039081168252600754166020820152611ea8906011906002612686565b505b600c546001600160a01b0316635c11d795826000601130611ecd4261025861215e565b6040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b031681526020018381526020018281038252858181548152602001915080548015611f4c57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611f2e575b50509650505050505050600060405180830381600087803b158015611f7057600080fd5b505af1158015611f84573d6000803e3d6000fd5b505050505b600654604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611fd457600080fd5b505afa158015611fe8573d6000803e3d6000fd5b505050506040513d6020811015611ffe57600080fd5b5051600754604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561205157600080fd5b505afa158015612065573d6000803e3d6000fd5b505050506040513d602081101561207b57600080fd5b5051600c546006546007549293506001600160a01b039182169263e8e337009291821691168585600180306120b24261025861215e565b6040518963ffffffff1660e01b815260040180896001600160a01b03168152602001886001600160a01b03168152602001878152602001868152602001858152602001848152602001836001600160a01b0316815260200182815260200198505050505050505050606060405180830381600087803b15801561213457600080fd5b505af1158015612148573d6000803e3d6000fd5b505050506040513d606081101561112357600080fd5b600082820183811015611713576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600054600160a01b900460ff161561220a576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611898611809565b600d54600554612264916001600160a01b03918216911660006115a7565b600c54600454612282916001600160a01b03918216911660006115a7565b600c546006546122a0916001600160a01b03918216911660006115a7565b600c54600754610851916001600160a01b03918216911660006115a7565b60408051636eb1769f60e11b81523060048201526001600160a01b0384811660248301529151839286169163dd62ed3e916044808301926020929190829003018186803b15801561230e57600080fd5b505afa158015612322573d6000803e3d6000fd5b505050506040513d602081101561233857600080fd5b505110156107c0576123556001600160a01b0384168360006115a7565b6107c06001600160a01b038416836000196115a7565b60606123c0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116ba9092919063ffffffff16565b8051909150156107c0578080602001905160208110156123df57600080fd5b50516107c05760405162461bcd60e51b815260040180806020018281038252602a815260200180612772602a913960400191505060405180910390fd5b60606124278561196d565b612478576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106124b75780518252601f199092019160209182019101612498565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612519576040519150601f19603f3d011682016040523d82523d6000602084013e61251e565b606091505b509150915081156125325791506116c99050565b8051156125425780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561258c578181015183820152602001612574565b50505050905090810190601f1680156125b95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b600081848411156126195760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561258c578181015183820152602001612574565b505050900390565b600081836126705760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561258c578181015183820152602001612574565b50600083858161267c57fe5b0495945050505050565b8280548282559060005260206000209081019282156126db579160200282015b828111156126db57825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906126a6565b506126e79291506126eb565b5090565b5b808211156126e75780546001600160a01b03191681556001016126ec56fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220cc59b185f8ab73e0a1a984a9ff389851b64d465d2ca62513a741d51a10a5a0d464736f6c634300060c00335361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000000002a651563c9d3af67ae0388a5c8f89b867038089e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc0a87f7e7c693042a9cc703661f5060c80acb430000000000000000000000004cdf39285d7ca8eb3f090fda0c069ba5f4145b37000000000000000000000000f491e7b69e4244ad4002bc14e878a34207e38c29000000000000000000000000a40c6c2b91683a57d9c9bace7b3df85e503ff0eb0000000000000000000000008317b428082802c8aa84d670e495a0003d11368a

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

0000000000000000000000002a651563c9d3af67ae0388a5c8f89b867038089e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc0a87f7e7c693042a9cc703661f5060c80acb430000000000000000000000004cdf39285d7ca8eb3f090fda0c069ba5f4145b37000000000000000000000000f491e7b69e4244ad4002bc14e878a34207e38c29000000000000000000000000a40c6c2b91683a57d9c9bace7b3df85e503ff0eb0000000000000000000000008317b428082802c8aa84d670e495a0003d11368a

-----Decoded View---------------
Arg [0] : _want (address): 0x2a651563c9d3af67ae0388a5c8f89b867038089e
Arg [1] : _poolId (uint256): 0
Arg [2] : _masterChef (address): 0xcc0a87f7e7c693042a9cc703661f5060c80acb43
Arg [3] : _output (address): 0x4cdf39285d7ca8eb3f090fda0c069ba5f4145b37
Arg [4] : _uniRouter (address): 0xf491e7b69e4244ad4002bc14e878a34207e38c29
Arg [5] : _vault (address): 0xa40c6c2b91683a57d9c9bace7b3df85e503ff0eb
Arg [6] : _treasury (address): 0x8317b428082802c8aa84d670e495a0003d11368a

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000002a651563c9d3af67ae0388a5c8f89b867038089e
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [2] : 000000000000000000000000cc0a87f7e7c693042a9cc703661f5060c80acb43
Arg [3] : 0000000000000000000000004cdf39285d7ca8eb3f090fda0c069ba5f4145b37
Arg [4] : 000000000000000000000000f491e7b69e4244ad4002bc14e878a34207e38c29
Arg [5] : 000000000000000000000000a40c6c2b91683a57d9c9bace7b3df85e503ff0eb
Arg [6] : 0000000000000000000000008317b428082802c8aa84d670e495a0003d11368a


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.