Contract 0xB02D3AFe88a5ED89d5bA334A18c9044fF2381445 1

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x2645df5e8e871fae382e70f76344f9bf669f459715ca1b84576e9addbe7477eeHarvest200044122021-10-25 0:01:1549 mins ago0x94aeae998b01341897bb7be4f66250b9fbd40a50 IN  0xb02d3afe88a5ed89d5ba334a18c9044ff23814450 FTM0.169739239012
0x43b6eab9a49e64e768f22e4747835bad8edb0386d95124169419eb17a5bde53dHarvest200002252021-10-24 23:01:131 hr 49 mins ago0xcfc7ad72561356aad28309409e92c8e249fa373d IN  0xb02d3afe88a5ed89d5ba334a18c9044ff23814450 FTM0.115988998036
0xf21a3fae77b3d462c463b92ddc12ef618e14a5fe5480a8c59993a8c522aca43dHarvest199958502021-10-24 22:00:352 hrs 49 mins ago0x94aeae998b01341897bb7be4f66250b9fbd40a50 IN  0xb02d3afe88a5ed89d5ba334a18c9044ff23814450 FTM0.13071661329
0x4592d20760b88e43990112fa06ed2555758d587f1f0f06058874249c4912245bHarvest199914192021-10-24 21:01:243 hrs 49 mins ago0xcfc7ad72561356aad28309409e92c8e249fa373d IN  0xb02d3afe88a5ed89d5ba334a18c9044ff23814450 FTM0.164691956105
0xa3b8dbb47d9b924b4c2b0159325a632fe76995708c6362c7ead2d37567d67da4Harvest199871352021-10-24 20:00:534 hrs 49 mins ago0x94aeae998b01341897bb7be4f66250b9fbd40a50 IN  0xb02d3afe88a5ed89d5ba334a18c9044ff23814450 FTM0.1664121868
0xf76a3078c0f435e568a0f97ca35258847735ce89f7398fe9f7d9ab80a3f52f7eHarvest199825632021-10-24 19:01:035 hrs 49 mins ago0xcfc7ad72561356aad28309409e92c8e249fa373d IN  0xb02d3afe88a5ed89d5ba334a18c9044ff23814450 FTM0.230249519701
0xb8caa35f79b8a0d8b8bc881fcbea509c09c0631c7073639e4b5e6ec1f618f9c4Harvest199781712021-10-24 18:00:396 hrs 49 mins ago0x94aeae998b01341897bb7be4f66250b9fbd40a50 IN  0xb02d3afe88a5ed89d5ba334a18c9044ff23814450 FTM0.188560306099
0xa0337ebe6923fa35e8dc4e78d0bc2a4ccd254e51634d13acdfd59bbca52722fdHarvest199739322021-10-24 17:03:067 hrs 47 mins ago0xcfc7ad72561356aad28309409e92c8e249fa373d IN  0xb02d3afe88a5ed89d5ba334a18c9044ff23814450 FTM0.259575156006
0x52fcecf5eca1d486b6111c0cea7085e347fea2fc3dba48a5d5baeaa38b9ea6d0Harvest199697052021-10-24 16:00:488 hrs 49 mins ago0x94aeae998b01341897bb7be4f66250b9fbd40a50 IN  0xb02d3afe88a5ed89d5ba334a18c9044ff23814450 FTM0.255409379345
0xe9d5260811de2add6368d9d8ef1f95622b7346475624d9f2e911a2d558c5ff91Harvest199655692021-10-24 15:00:549 hrs 49 mins ago0xcfc7ad72561356aad28309409e92c8e249fa373d IN  0xb02d3afe88a5ed89d5ba334a18c9044ff23814450 FTM0.149548483286
0x31f845f8f4329074d10c24c9e3025e2bb386d150b6e0a79fa0d281358da0f47aHarvest199612372021-10-24 14:00:3310 hrs 49 mins ago0x94aeae998b01341897bb7be4f66250b9fbd40a50 IN  0xb02d3afe88a5ed89d5ba334a18c9044ff23814450 FTM0.242399094159
0x8715011bf820f4bbe42d6f36306c8c914e0e00fdf0416f88e7f15446c4e3f6c7Harvest199568902021-10-24 13:00:5011 hrs 49 mins ago0xcfc7ad72561356aad28309409e92c8e249fa373d IN  0xb02d3afe88a5ed89d5ba334a18c9044ff23814450 FTM0.279266333948
0x060e5ba3ef649cdd41614ddb0a57b875e1f65546dc1111ec2e33e09938d3ed94Harvest199529872021-10-24 12:00:5312 hrs 49 mins ago0x94aeae998b01341897bb7be4f66250b9fbd40a50 IN  0xb02d3afe88a5ed89d5ba334a18c9044ff23814450 FTM0.142955560001
0x6f3da9d85c380684ad40421a25513a3211269ee4752f9ecf22b01e591f925292Harvest199488412021-10-24 11:01:1213 hrs 49 mins ago0xcfc7ad72561356aad28309409e92c8e249fa373d IN  0xb02d3afe88a5ed89d5ba334a18c9044ff23814450 FTM0.196537852298
0xdc22277bac218d066ab56874040b1ebd6f76d50a76f4c791105634707fcc37b8Harvest199445202021-10-24 10:00:5214 hrs 49 mins ago0x94aeae998b01341897bb7be4f66250b9fbd40a50 IN  0xb02d3afe88a5ed89d5ba334a18c9044ff23814450 FTM0.344730701203
0x15b35baf6a1573b6a65433529dbf642a5cfc934cf01e5f412f90d15fc634af39Harvest199403042021-10-24 9:01:2715 hrs 49 mins ago0xcfc7ad72561356aad28309409e92c8e249fa373d IN  0xb02d3afe88a5ed89d5ba334a18c9044ff23814450 FTM0.291493324761
0x41f7b5fc3c400a5d036efb9f10cb489f42b8cd2770d011652e6ad0ca0667eb10Harvest199366742021-10-24 8:01:0916 hrs 49 mins ago0x94aeae998b01341897bb7be4f66250b9fbd40a50 IN  0xb02d3afe88a5ed89d5ba334a18c9044ff23814450 FTM0.143332615467
0x1d8e27fdb9b94fef75579a92d3ce24b2b1dae3e1743ce7d653ae5ee04b7f5df9Harvest199325262021-10-24 7:02:0917 hrs 48 mins ago0xcfc7ad72561356aad28309409e92c8e249fa373d IN  0xb02d3afe88a5ed89d5ba334a18c9044ff23814450 FTM0.198887391968
0xa5a9ddc67f15a4a8bbbfec0732ea1d15b7ce4b6f798d303117c4f81d239a728bHarvest199281762021-10-24 6:00:2918 hrs 50 mins ago0x94aeae998b01341897bb7be4f66250b9fbd40a50 IN  0xb02d3afe88a5ed89d5ba334a18c9044ff23814450 FTM0.112869469444
0x81eabcd7d5754e1a2efd27030129ef4f8e748654d44e0c04efb71bb0f54c1627Harvest199241402021-10-24 5:02:0219 hrs 48 mins ago0xcfc7ad72561356aad28309409e92c8e249fa373d IN  0xb02d3afe88a5ed89d5ba334a18c9044ff23814450 FTM0.108276030195
0x5b7efe774c07fc02d730e6bd6721345322dcc1687b7045488347c2c60cf0a57cHarvest199198442021-10-24 4:01:3920 hrs 48 mins ago0x94aeae998b01341897bb7be4f66250b9fbd40a50 IN  0xb02d3afe88a5ed89d5ba334a18c9044ff23814450 FTM0.131098822477
0xd18fe3fdafd92d1093f725b87b686f68bdaf7bfcb54ec99a5d6f9945bdab41d2Harvest199155662021-10-24 3:01:0321 hrs 49 mins ago0xcfc7ad72561356aad28309409e92c8e249fa373d IN  0xb02d3afe88a5ed89d5ba334a18c9044ff23814450 FTM0.130533053132
0x6ec4f5e20b1647ddf3c415ea94041a07aa64cc8e70fe8eb4689df5a584e8ffa9Harvest199112742021-10-24 2:00:3122 hrs 49 mins ago0x94aeae998b01341897bb7be4f66250b9fbd40a50 IN  0xb02d3afe88a5ed89d5ba334a18c9044ff23814450 FTM0.187473470048
0xab1c98ce07fc9643b0dff8b64d4962040e65b5eed0f356718af11acbd8c1859cHarvest199073532021-10-24 1:00:3523 hrs 49 mins ago0xcfc7ad72561356aad28309409e92c8e249fa373d IN  0xb02d3afe88a5ed89d5ba334a18c9044ff23814450 FTM0.140425247732
0xb8f69e632b3569b8fcc19fcf05c42a16a850fb42333131be8f569915ef51623aHarvest199032262021-10-24 0:01:011 day 49 mins ago0x94aeae998b01341897bb7be4f66250b9fbd40a50 IN  0xb02d3afe88a5ed89d5ba334a18c9044ff23814450 FTM0.173869284116
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x9138969ca9d6f618312e81116fcae9cab889326272d079579453c1c7c6f8fa0e191013272021-10-14 20:00:2810 days 4 hrs ago 0x85cf0915c8d3695b03da739e3eaefd5388eb5eef  Contract Creation0 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StrategyTwoAssets

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 13 : IJar.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.6.12;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

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

    function getRatio() external view returns (uint256);

    function balance() external view returns (uint256);

    function depositAll() external;

    function deposit(uint256) external;

    function withdrawAll() external;

    function withdraw(uint256) external;

    function strategy() external view returns (address);

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

File 2 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

File 3 of 13 : strategyBase.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "./interfaces/IJar.sol";
import "./interfaces/IUniswap.sol";



abstract contract BaseStrategy is Ownable, ReentrancyGuard {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    // Tokens
    address public immutable want; //The LP token, Harvest calls this "rewardToken"
    address public immutable harvestedToken; //The token we harvest

    // User accounts
    address public strategist; //The address the performance fee is sent to
    address public jar;

    // Events
    event SetStrategist(address indexed _newStrategist);

    constructor(
        address _want,
        address _strategist,
        address _harvestedToken
    ) public {
        require(_want != address(0));
        require(_strategist != address(0));

        want = _want;
        strategist = _strategist;
        harvestedToken = _harvestedToken;
    }

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

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

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

    function getHarvestable() external virtual view returns (uint256);

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

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

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

    function setJar(address _jar) external onlyOwner {
        require(jar == address(0), "jar already set");
        jar = _jar;
        emit SetJar(_jar);
    }

    function setStrategist(address _strategist) external onlyOwner {
        require(_strategist != address(0));
        strategist = _strategist;
        emit SetStrategist(_strategist);
    }

    // **** State mutations **** //
    function deposit(uint256 _amount) internal virtual;

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

        IERC20(want).safeTransfer(jar, _amount);
    }

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

    function harvest() public virtual;

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

        // Swap with uniswap
        IERC20(path[0]).safeApprove(dexRouter, 0);
        IERC20(path[0]).safeApprove(dexRouter, _amount);

        IUniswapRouterV2(dexRouter).swapExactTokensForTokens(
            _amount,
            0,
            path,
            address(this),
            now
        );
    }

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

        // Swap with uniswap
        IERC20(path[0]).safeApprove(dexRouter, 0);
        IERC20(path[0]).safeApprove(dexRouter, _amount);

        IUniswapRouterV2(dexRouter).swapExactTokensForTokensSupportingFeeOnTransferTokens(
            _amount,
            0,
            path,
            address(this),
            now
        );
    }

    function _addLiquidityToDex(
        address token1,
        address token2,
        address dexRouter
    ) internal {
        uint256 _token1 = IERC20(token1).balanceOf(address(this));
        uint256 _token2 = IERC20(token2).balanceOf(address(this));
        if (_token1 > 0 && _token2 > 0) {
            IERC20(token1).safeApprove(dexRouter, 0);
            IERC20(token1).safeApprove(dexRouter, _token1);
            IERC20(token2).safeApprove(dexRouter, 0);
            IERC20(token2).safeApprove(dexRouter, _token2);

            IUniswapRouterV2(dexRouter).addLiquidity(
                token1,
                token2,
                _token1,
                _token2,
                0,
                0,
                address(this),
                now
            );

            // Donates DUST
            uint256 _dust1 = IERC20(token1).balanceOf(address(this));
            if (_dust1 > 0) {
                IERC20(token1).safeTransfer(
                    strategist,
                    _dust1
                );
            }
            uint256 _dust2 = IERC20(token2).balanceOf(address(this));
            if (_dust2 > 0) {
                IERC20(token2).safeTransfer(
                    strategist,
                    _dust2
                );
            }
        }
    }

    // **** Events **** //
    event SetJar(address indexed jar);
}

// Masterchef interface - some function names may be different depending on the underlying farm
interface IMasterChef {
    function deposit(uint256 _pid, uint256 _amount, address _to) external;
    function withdrawAndHarvest(uint256 _pid, uint256 _amount, address _to) external;
    function emergencyWithdraw(uint256 _pid, address _to) external;
    function harvest(uint256 _pid, address _to) external;

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

// Balancer interface
interface IBalancer {

  enum SwapKind { GIVEN_IN, GIVEN_OUT }

  function swap(
      SingleSwap calldata singleSwap,
      FundManagement calldata funds,
      uint256 limit,
      uint256 deadline
  ) external payable returns (uint256);

  struct FundManagement {
      address sender;
      bool fromInternalBalance;
      address payable recipient;
      bool toInternalBalance;
  }

  struct SingleSwap {
      bytes32 poolId;
      SwapKind kind;
      IAsset assetIn;
      IAsset assetOut;
      uint256 amount;
      bytes userData;
  }

  function batchSwap(
      SwapKind kind,
      BatchSwapStep[] calldata swaps,
      IAsset[] calldata assets,
      FundManagement calldata funds,
      int256[] calldata limits,
      uint256 deadline
  ) external payable returns (int256[] memory);

  struct BatchSwapStep {
      bytes32 poolId;
      uint256 assetInIndex;
      uint256 assetOutIndex;
      uint256 amount;
      bytes userData;
  }

  function getPoolTokens(bytes32 poolId)
      external
      view
      returns (
          IERC20[] memory tokens,
          uint256[] memory balances,
          uint256 lastChangeBlock
      );

  function joinPool(
      bytes32 poolId,
      address sender,
      address recipient,
      JoinPoolRequest calldata request
  ) external payable;

  enum JoinKind { INIT, EXACT_TOKENS_IN_FOR_BPT_OUT, TOKEN_IN_FOR_EXACT_BPT_OUT }
  enum ExitKind { EXACT_BPT_IN_FOR_ONE_TOKEN_OUT, EXACT_BPT_IN_FOR_TOKENS_OUT, BPT_IN_FOR_EXACT_TOKENS_OUT }

  struct JoinPoolRequest {
    IAsset[] assets;
    uint256[] maxAmountsIn;
    bytes userData;
    bool fromInternalBalance;
  }
}
interface IAsset {
    // solhint-disable-previous-line no-empty-blocks
}


// Base contract for MasterChef/SakeMaster/etc rewards contract interfaces

abstract contract BaseStrategyMasterChef is BaseStrategy {

    address public immutable rewards;
    uint256 public immutable poolId;
    bool public emergencyStatus = false;

    // Events
    event SetFee(uint256 value);
    event SetMultiHarvest(address indexed _to);
    event SetHarvestCutoff(uint256 value);
    event Harvested(address indexed _from);
    event Salvage(address indexed token);
    event EmergencyWithdraw();

    constructor(
        address _rewards,
        address _want,
        address _strategist,
        uint256 _poolId,
        address _harvestedToken
    )
        public
        BaseStrategy(_want, _strategist, _harvestedToken)
    {
        poolId = _poolId;
        rewards = _rewards;
    }

    // **** Getters ****
    function balanceOfPool() public override view returns (uint256) {
        (uint256 amount, ) = IMasterChef(rewards).userInfo(poolId, address(this));
        return amount;
        //return IMasterChef(rewards).balanceOf(poolId, address(this));
    }

    function getHarvestable() external override view returns (uint256) {
        return IMasterChef(rewards).pendingBeets(poolId, address(this));
    }

    // **** Setters ****

    function deposit(uint256 _amount) internal override {
        require(emergencyStatus == false, "emergency withdrawal in process");
        if (_amount > 0) {
            IERC20(want).safeApprove(rewards, 0);
            IERC20(want).safeApprove(rewards, _amount);
            IMasterChef(rewards).deposit(poolId, _amount, address(this));
        }
    }

    function jarDeposit(uint256 _amount) external nonReentrant {
        require(msg.sender == jar, "!jar");
        deposit(_amount);
    }

    function _withdrawSome(uint256 _amount)
        internal
        override
        returns (uint256)
    {
        uint256 _before = IERC20(want).balanceOf(address(this));
        IMasterChef(rewards).withdrawAndHarvest(poolId, _amount, address(this));
        return IERC20(want).balanceOf(address(this)).sub(_before);
    }

    /* **** Other Mutative functions **** */

    function _getReward() internal {
        IMasterChef(rewards).harvest(poolId, address(this));
        //Usually different for other pools based on IMasterChef
        //IMasterChef(rewards).claim(poolId);
    }

    // **** Admin functions ****

    function salvage(address token) external onlyOwner nonReentrant {
        require(token != want && token != harvestedToken, "cannot salvage");

        uint256 _token = IERC20(token).balanceOf(address(this));
        if (_token > 0) {
            IERC20(token).safeTransfer(msg.sender, _token);
        }

        emit Salvage(token);
    }

    function emergencyWithdraw() external onlyOwner nonReentrant {
        emergencyStatus = true;

        IMasterChef(rewards).emergencyWithdraw(poolId, address(this));

        uint256 _want = IERC20(want).balanceOf(address(this));
        if (_want > 0) {
            IERC20(want).safeTransfer(jar, _want);
        }

        emit EmergencyWithdraw();
    }
}


abstract contract StrategyFarmTwoAssets is BaseStrategyMasterChef {

    // Reward token address
    address public constant rewardTokenAddr = 0xF24Bcf4d1e507740041C9cFd2DddB29585aDCe1e;
    // Configs for pool
    address public constant beethovenVault = 0x20dd72Ed959b6147912C2e529F0a0C651c33c9ce;
    // Pool to swap from reward to deposit
    bytes32 public constant swapPool = 0xcde5a11a4acb4ee4c805352cec57e236bdbc3837000200000000000000000019; // Beets-FTM pool
    address public constant depositTokenAddr = 0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83;
    // Pool to deposit
    bytes32 public constant depositpool = 0xcdf68a4d525ba2e90fe959c74330430a5a6b8226000200000000000000000008;
    uint256 public constant depositIndex = 1;
    uint256 public constant nTokens = 2;
    // Deposit pool assets
    IAsset[] public assets = new IAsset[](nTokens);
    // Fee token
    address public constant feeTokenAddr = 0xF24Bcf4d1e507740041C9cFd2DddB29585aDCe1e;

    address public multiHarvest = 0x0000000000000000000000000000000000000000;

    // Other constants
    uint256 public constant underlyingPoolId = 8;

    // The total fee in bps that KogeFarm will take from the reward token balance
    uint256 public kogefarmFeeAmountBps = 100;
    // The minimum amount (in bps) KogeFarm will harvest from the reward token
    uint256 public harvestCutoffBps = 10**18;
    // The reward --> fee token path
    address[] public rewardToFeeTokenPath;

    constructor(
        address _rewards,
        address _want,
        address _strategist
    )
        public
        BaseStrategyMasterChef(
            _rewards,
            _want,
            _strategist,
            underlyingPoolId,
            rewardTokenAddr
        )
    {
        require(_want != feeTokenAddr, "Want token address should not be set to fee token address");

        (IERC20[] memory tokens,, ) = IBalancer(beethovenVault).getPoolTokens(depositpool);
        for(uint256 i = 0; i < tokens.length; i++) {
            assets[i] = IAsset(address(tokens[i]));
        }
    }

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

    function set_fee(uint256 NewFee) external onlyOwner() {
        require(NewFee <= 1000, "New fee must be less than 1000 bps");
        kogefarmFeeAmountBps = NewFee;
        emit SetFee(NewFee);
    }
    function set_multiHarvest(address newHarvest) external onlyOwner() {
        multiHarvest = newHarvest;
        emit SetMultiHarvest(newHarvest);
    }

    function set_harvestCutoff(uint256 newCutoff) external onlyOwner() {
        harvestCutoffBps = newCutoff;
        emit SetHarvestCutoff(harvestCutoffBps);
    }

    function calculateSwapAmount(address _tokenToSwap, uint256 _bps) internal view returns (uint256) {
        uint256 _tokenAmount = IERC20(_tokenToSwap).balanceOf(address(this));
        return _tokenAmount.mul(_bps).div(10000);
    }

    function collectFee(uint256 _rewardBalance) internal {
        // Figure out how much fee is owed
        uint256 _feeAmount = _rewardBalance.mul(kogefarmFeeAmountBps).div(10000);
        // Swap reward token for fee token using the fee token router
        // if(rewardTokenAddr != feeTokenAddr) {
        //    _swapUniswapWithPathForFeeOnTransferTokens(rewardToFeeTokenPath, _feeAmount, feeTokenRouterAddr);
            // Figure out how much we now have as a fee token
        //    _feeAmount = IERC20(feeTokenAddr).balanceOf(address(this));
        // }
        // Send fee to strategist
        IERC20(feeTokenAddr).safeTransfer(strategist,_feeAmount);
    }

    function swapRewardToDeposit() internal {
        uint256 rewardBalance = IERC20(rewardTokenAddr).balanceOf(address(this));

        IBalancer.SingleSwap memory singleSwap;
        IBalancer.SwapKind swapKind = IBalancer.SwapKind.GIVEN_IN;

        singleSwap.poolId = swapPool;
        singleSwap.kind = swapKind;
        singleSwap.assetIn = IAsset(rewardTokenAddr);
        singleSwap.assetOut = IAsset(depositTokenAddr);
        singleSwap.amount = rewardBalance;
        singleSwap.userData = abi.encode(0);

        IBalancer.FundManagement memory funds;
        funds.sender = address(this);
        funds.fromInternalBalance = false;
        funds.recipient = payable(address(this));
        funds.toInternalBalance = false;

        IERC20(rewardTokenAddr).safeApprove(beethovenVault, 0);
        IERC20(rewardTokenAddr).safeApprove(beethovenVault, rewardBalance);

        IBalancer(beethovenVault).swap(singleSwap, funds, 1, (block.timestamp + 600));
    }

    function addLiquidity() internal {
      // Balance
      uint256 toDepositBalance = IERC20(depositTokenAddr).balanceOf(address(this));
      // Approvals
      IERC20(depositTokenAddr).safeApprove(beethovenVault, 0);
      IERC20(depositTokenAddr).safeApprove(beethovenVault, toDepositBalance);
      // Join kind
      IBalancer.JoinKind joinKind = IBalancer.JoinKind.EXACT_TOKENS_IN_FOR_BPT_OUT;
      uint256[] memory amountsIn = new uint256[](nTokens);
      amountsIn[depositIndex] = toDepositBalance;
      uint256 minAmountOut = 1;

      bytes memory userData = abi.encode(joinKind, amountsIn, minAmountOut);

      IBalancer.JoinPoolRequest memory request;
      request.assets = assets;
      request.maxAmountsIn = amountsIn;
      request.userData = userData;
      request.fromInternalBalance = false;

      IBalancer(beethovenVault).joinPool(
          depositpool,
          address(this),
          address(this),
          request
      );
    }

    //Harvest rewards and re-deposit into farm
    function harvest() public override nonReentrant {
        // prevent unauthorized smart contracts from calling harvest()
        require(msg.sender == tx.origin || msg.sender == owner() || msg.sender == strategist || msg.sender == multiHarvest || msg.sender == jar, "not authorized");
        // prevent harvesting during emergency withdraw
        require(emergencyStatus == false, "emergency withdrawal in process");

        // Collects reward tokens
        _getReward();

        // Figure out how much reward we collected
        uint256 _rewardBalance = IERC20(rewardTokenAddr).balanceOf(address(this));
        if (_rewardBalance > harvestCutoffBps){
            // Collect fee if not at 0
            if (kogefarmFeeAmountBps > 0) {
                collectFee(_rewardBalance);
            }
            // Swap reward to deposit token
            swapRewardToDeposit();
            // Add liquidity
            addLiquidity();
            // Stake the LP tokens
            uint256 _want = IERC20(want).balanceOf(address(this));
            deposit(_want);
        }

        // Emit event
        emit Harvested(msg.sender);
    }

}

contract StrategyTwoAssets is StrategyFarmTwoAssets {
    // Token addresses
    address public FARM_MASTER_CHEF = 0x8166994d9ebBe5829EC86Bd81258149B87faCfd3;
    address public LP_TOKEN = 0xcdF68a4d525Ba2E90Fe959c74330430A5a6b8226;
    constructor()
        public
        StrategyFarmTwoAssets(
            FARM_MASTER_CHEF,
            LP_TOKEN,
            msg.sender
        )
    {}
    // **** Views ****
    function getName() external override pure returns (string memory) {
        return "StrategyTwoAssets";
    }
    function pairName() external pure returns (string memory) {
        return "FtmUSDCBeets";
    }
}

File 4 of 13 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

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

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

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

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

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

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

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

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

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

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

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

File 5 of 13 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

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

File 6 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

File 7 of 13 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 8 of 13 : IUniswap.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.6.12;

interface IUniswapRouterV2 {
    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;

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

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

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

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

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

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

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

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

File 9 of 13 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

File 10 of 13 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

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

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

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

pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 12 of 13 : vaultBase.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.6.12;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "./interfaces/IStrategy.sol";


/**
// OpenZeppelin pausable: https://github.com/ConsenSysMesh/openzeppelin-solidity/blob/master/contracts/lifecycle/Pausable.sol
 * @title Pausable
 * @dev Base contract which allows children to implement an emergency stop mechanism.
 */
contract Pausable is Ownable {
  event Pause();
  event Unpause();

  bool public paused = false;


  /**
   * @dev Modifier to make a function callable only when the contract is not paused.
   */
  modifier whenNotPaused() {
    require(!paused);
    _;
  }

  /**
   * @dev Modifier to make a function callable only when the contract is paused.
   */
  modifier whenPaused() {
    require(paused);
    _;
  }

  /**
   * @dev called by the owner to pause, triggers stopped state
   */
  function pause() onlyOwner whenNotPaused public {
    paused = true;
    emit Pause();
  }

  /**
   * @dev called by the owner to unpause, returns to normal state
   */
  function unpause() onlyOwner whenPaused public {
    paused = false;
    emit Unpause();
  }
}


/* JarBase contract */

abstract contract JarBase is ERC20, Ownable, Pausable, ReentrancyGuard {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    IERC20 public immutable token;
    address public immutable strategy;

    struct UserInfo {
        uint256 lastTimeStaked;     // How many LP tokens the user has provided.
        uint256 lastAmountStaked; // Reward debt. See explanation below.
    }

    mapping (address => UserInfo) public userInfo;

    uint256 public constant keepMax = 10000;
    uint256 public constant maxDepositFeeMC = 1000;

    event Deposit(address indexed _from, uint256 _value);
    event Withdraw(address indexed _from, uint256 _value);

    constructor(IStrategy _strategy, string memory name, string memory symbol)
        public
        ERC20(name, symbol)
    {
        require(address(_strategy) != address(0));
        _setupDecimals(ERC20(_strategy.want()).decimals());
        token = IERC20(_strategy.want());
        strategy = address(_strategy);
    }

    modifier onlyEOA() {
        require(msg.sender == tx.origin && !address(msg.sender).isContract(), "no contracts");
        _;
    }

    function transfer(address recipient, uint256 amount) public override returns (bool)
    {
        require(recipient != address(this));
        return super.transfer(recipient, amount);
    }

    function balance() public view returns (uint256) {
        return
            token.balanceOf(address(this)).add(
                IStrategy(strategy).balanceOf()
            );
    }

    function depositAll() external {
        deposit(token.balanceOf(msg.sender));
    }

    function deposit(uint256 _amount) public nonReentrant whenNotPaused onlyEOA {

        IStrategy(strategy).harvest();

        // Calculate initial pool balance
        uint256 _pool = balance();

        // Transfer token to strategy and calculate amount to stake
        uint256 _before = token.balanceOf(strategy);
        token.safeTransferFrom(msg.sender, strategy, _amount);
        uint256 _after = token.balanceOf(strategy);
        uint256 _toDeposit = _after.sub(_before); // Additional check for deflationary tokens or deposit fees

        // Stake and calculate pool balance after
        IStrategy(strategy).jarDeposit(_toDeposit);
        uint256 _afterPool = balance();
        uint256 _newStaked = _afterPool.sub(_pool);

        // Require deposit fee to be within reasonable bounds
        uint256 maxDepositFee = _amount.mul(maxDepositFeeMC).div(keepMax);
        require(_newStaked.add(maxDepositFee) >= _amount, "!MC DEPOSIT FEE");

        // Compute share
        uint256 shares = 0;
        if (totalSupply() == 0) {
            shares = _newStaked;
        } else {
            shares = (_newStaked.mul(totalSupply())).div(_pool);
        }

        // Send share of pool
        _mint(msg.sender, shares);

        // Save last time/amount staked
        UserInfo storage user = userInfo[msg.sender];
        user.lastAmountStaked = balanceOf(msg.sender).mul(_afterPool).div(totalSupply());
        user.lastTimeStaked = now;

        // Emit event
        emit Deposit(msg.sender, _amount);
    }

    // Withdraw all balanaces
    function withdrawAll() external {
        withdraw(balanceOf(msg.sender));
    }

    // Withdraw some balances
    function withdraw(uint256 _shares) public nonReentrant {
        uint256 r = (balance().mul(_shares)).div(totalSupply());
        _burn(msg.sender, _shares);

        // Check balance
        uint256 b = token.balanceOf(address(this));
        if (b < r) {
            uint256 _withdraw = r.sub(b);
            IStrategy(strategy).withdraw(_withdraw);
            uint256 _after = token.balanceOf(address(this));
            uint256 _diff = _after.sub(b);
            if (_diff < _withdraw) {
                r = _after;
            }
        }

        token.safeTransfer(msg.sender, r);

        // Emit event
        emit Withdraw(msg.sender, r);
    }

    // A view function that makes it easier for the UI to display LPs of users
    function getRatio() external view returns (uint256) {
        if (totalSupply() == 0) {
            return 1e18;
        }
        return balance().mul(1e18).div(totalSupply());
    }


}


contract vaultBase is JarBase {

    constructor(IStrategy _strategy)
        public
        JarBase(_strategy,
            string(abi.encodePacked(_strategy.pairName(), " ","vault")),
            string(abi.encodePacked("v", _strategy.pairName()))
        )
    {

    }
}

File 13 of 13 : IStrategy.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.6.12;

interface IStrategy {
    function harvestedToken() external view returns (address);

    function rewards() external view returns (address);

    function emergencyStatus() external view returns (bool);

    function want() external view returns (address);

    function jarDeposit(uint256) external;

    function withdraw(uint256) external;

    function withdrawAll() external returns (uint256);

    function balanceOf() external view returns (uint256);

    function balanceOfPool() external view returns (uint256);

    function getHarvestable() external view returns (uint256);

    function pairName() external view returns (string memory);

    function harvest() external;

    function setJar(address _jar) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"}],"name":"Harvested","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":true,"internalType":"address","name":"token","type":"address"}],"name":"Salvage","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"SetFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"SetHarvestCutoff","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"jar","type":"address"}],"name":"SetJar","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_to","type":"address"}],"name":"SetMultiHarvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_newStrategist","type":"address"}],"name":"SetStrategist","type":"event"},{"inputs":[],"name":"FARM_MASTER_CHEF","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LP_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"assets","outputs":[{"internalType":"contract IAsset","name":"","type":"address"}],"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":"beethovenVault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"depositIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"depositTokenAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"depositpool","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeTokenAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHarvestable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvestCutoffBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvestedToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"jar","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"jarDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"kogefarmFeeAmountBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"multiHarvest","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pairName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"poolId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardToFeeTokenPath","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardTokenAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewards","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"salvage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_jar","type":"address"}],"name":"setJar","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategist","type":"address"}],"name":"setStrategist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"NewFee","type":"uint256"}],"name":"set_fee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newCutoff","type":"uint256"}],"name":"set_harvestCutoff","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newHarvest","type":"address"}],"name":"set_multiHarvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapPool","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"underlyingPoolId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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"}]

6003805460ff60a01b19169055600261010081815261016060405290816020016020820280368337505081516200003e92600492506020019062000316565b50600580546001600160a01b03199081169091556064600655670de0b6b3a7640000600755600980548216738166994d9ebbe5829ec86bd81258149b87facfd3179055600a805490911673cdf68a4d525ba2e90fe959c74330430a5a6b8226179055348015620000ad57600080fd5b50600954600a546001600160a01b03918216911633828282600873f24bcf4d1e507740041c9cfd2dddb29585adce1e8383826000620000eb62000312565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180556001600160a01b0383166200014d57600080fd5b6001600160a01b0382166200016157600080fd5b6001600160601b0319606093841b8116608052600280546001600160a01b039485166001600160a01b031990911617905590831b811660a05260e09490945295901b90911660c052505050821673f24bcf4d1e507740041c9cfd2dddb29585adce1e1415620001ed5760405162461bcd60e51b8152600401620001e490620004f9565b60405180910390fd5b604051631f29a8cd60e31b81526060907320dd72ed959b6147912c2e529f0a0c651c33c9ce9063f94d46689062000249907fcdf68a4d525ba2e90fe959c74330430a5a6b822600020000000000000000000890600401620004f0565b60006040518083038186803b1580156200026257600080fd5b505afa15801562000277573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620002a1919081019062000417565b5050905060005b81518110156200030757818181518110620002bf57fe5b602002602001015160048281548110620002d557fe5b600091825260209091200180546001600160a01b0319166001600160a01b0392909216919091179055600101620002a8565b5050505050620005b6565b3390565b8280548282559060005260206000209081019282156200036e579160200282015b828111156200036e57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000337565b506200037c92915062000380565b5090565b5b808211156200037c5780546001600160a01b031916815560010162000381565b600082601f830112620003b2578081fd5b8151620003c9620003c3826200057d565b62000556565b818152915060208083019084810181840286018201871015620003eb57600080fd5b60005b848110156200040c57815184529282019290820190600101620003ee565b505050505092915050565b6000806000606084860312156200042c578283fd5b83516001600160401b038082111562000443578485fd5b818601915086601f83011262000457578485fd5b815162000468620003c3826200057d565b80828252602080830192508086018b8283870289010111156200048957898afd5b8996505b84871015620004b8578051620004a3816200059d565b8452600196909601959281019281016200048d565b508901519097509350505080821115620004d0578384fd5b50620004df86828701620003a1565b925050604084015190509250925092565b90815260200190565b60208082526039908201527f57616e7420746f6b656e20616464726573732073686f756c64206e6f7420626560408201527f2073657420746f2066656520746f6b656e206164647265737300000000000000606082015260800190565b6040518181016001600160401b03811182821017156200057557600080fd5b604052919050565b60006001600160401b0382111562000593578081fd5b5060209081020190565b6001600160a01b0381168114620005b357600080fd5b50565b60805160601c60a05160601c60c05160601c60e0516129fc62000677600039806104a9528061056252806108715280611199528061160352806117d25280611e5e52508061047c52806105335280610f12528061116c52806115d652806117a55280611da05280611df55280611e31525080610d5e5280610f3b5250806106e0528061077d528061083e5280610a655280610d215280610ff7528061120e52806112ad528061152252806116675280611d7e5280611dd352506129fc6000f3fe608060405234801561001057600080fd5b506004361061025e5760003560e01c80638ac14a1111610146578063be38a4fe116100c3578063cf35bdd011610087578063cf35bdd01461040f578063db2e21bc14610422578063e89dec6d14610399578063e8f028071461042a578063f2fde38b1461043d578063f6f482aa146104505761025e565b8063be38a4fe146103dc578063bfd9041b146103e4578063c1a3d44c146103ec578063c2592869146103f4578063c7b9d530146103fc5761025e565b80639a2ae1f61161010a5780639a2ae1f6146103a95780639ec5a894146103b1578063a9505ab2146103b9578063ad678c79146103c1578063b4bdc3d9146103c95761025e565b80638ac14a11146103815780638c33cf60146103895780638da5cb5b14610391578063945cbbd014610399578063982697dd146103a15761025e565b80633e0dc34e116101df578063715018a6116101a3578063715018a61461033b578063722713f71461034357806379e5a3b21461034b5780637b898939146103535780637c6175a11461035b578063863a03e01461036e5761025e565b80633e0dc34e1461030857806340794c3b146103105780634641257d146103185780634713405a14610320578063506508f1146103335761025e565b80631b43987f116102265780631b43987f146102bb5780631b6a8759146102d05780631f1fcd51146102d85780631fe4a686146102ed5780632e1a7d4d146102f55761025e565b80630547104d146102635780630e23a07814610281578063115880861461028957806317d7de7c146102915780631aa02d59146102a6575b600080fd5b61026b610463565b60405161027891906123e0565b60405180910390f35b61026b610528565b61026b61052e565b6102996105f5565b60405161027891906124fa565b6102b96102b4366004612271565b610620565b005b6102c36106c9565b60405161027891906123d5565b61026b6106d9565b6102e06106de565b604051610278919061238e565b6102e0610702565b6102b9610303366004612271565b610711565b61026b61086f565b610299610893565b6102b96108b9565b6102b961032e36600461222a565b610b29565b6102e0610bb2565b6102b9610bc1565b61026b610c4a565b61026b610c65565b61026b610c89565b6102e0610369366004612271565b610c8e565b6102b961037c36600461222a565b610cb5565b6102e0610e86565b6102e0610e9e565b6102e0610ead565b6102e0610ebc565b61026b610ed4565b6102e0610ef8565b6102e0610f10565b61026b610f34565b6102e0610f39565b6102b96103d7366004612271565b610f5d565b6102e0610fbf565b6102e0610fce565b61026b610fdd565b61026b61102c565b6102b961040a36600461222a565b611032565b6102e061041d366004612271565b6110ce565b6102b96110db565b6102b9610438366004612271565b611306565b6102b961044b36600461222a565b61137a565b6102b961045e36600461222a565b61143a565b60405162269db960e81b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063269db900906104d3907f0000000000000000000000000000000000000000000000000000000000000000903090600401612964565b60206040518083038186803b1580156104eb57600080fd5b505afa1580156104ff573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105239190612289565b905090565b60065481565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166393f1a40b7f0000000000000000000000000000000000000000000000000000000000000000306040518363ffffffff1660e01b815260040161059f929190612964565b604080518083038186803b1580156105b657600080fd5b505afa1580156105ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ee91906122a1565b5091505090565b604080518082019091526011815270537472617465677954776f41737365747360781b602082015290565b6106286114ec565b6001600160a01b0316610639610ead565b6001600160a01b0316146106685760405162461bcd60e51b815260040161065f9061273a565b60405180910390fd5b6103e881111561068a5760405162461bcd60e51b815260040161065f9061268f565b60068190556040517e172ddfc5ae88d08b3de01a5a187667c37a5a53989e8c175055cb6c993792a7906106be9083906123e0565b60405180910390a150565b600354600160a01b900460ff1681565b600281565b7f000000000000000000000000000000000000000000000000000000000000000081565b6002546001600160a01b031681565b600260015414156107345760405162461bcd60e51b815260040161065f9061280e565b60026001556003546001600160a01b031633146107635760405162461bcd60e51b815260040161065f9061276f565b6040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a08231906107b290309060040161238e565b60206040518083038186803b1580156107ca57600080fd5b505afa1580156107de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108029190612289565b90508181101561082d5761081e61081983836114f0565b61151d565b915061082a828261170e565b91505b600354610867906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116911684611733565b505060018055565b7f000000000000000000000000000000000000000000000000000000000000000081565b60408051808201909152600c81526b46746d55534443426565747360a01b602082015290565b600260015414156108dc5760405162461bcd60e51b815260040161065f9061280e565b60026001553332148061090757506108f2610ead565b6001600160a01b0316336001600160a01b0316145b8061091c57506002546001600160a01b031633145b8061093157506005546001600160a01b031633145b8061094657506003546001600160a01b031633145b6109625760405162461bcd60e51b815260040161065f906126d1565b600354600160a01b900460ff161561098c5760405162461bcd60e51b815260040161065f9061289b565b61099461178e565b6040516370a0823160e01b815260009073f24bcf4d1e507740041c9cfd2dddb29585adce1e906370a08231906109ce90309060040161238e565b60206040518083038186803b1580156109e657600080fd5b505afa1580156109fa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1e9190612289565b9050600754811115610af75760065415610a3b57610a3b81611830565b610a43611886565b610a4b611acf565b6040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190610a9a90309060040161238e565b60206040518083038186803b158015610ab257600080fd5b505afa158015610ac6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aea9190612289565b9050610af581611d41565b505b60405133907f46ecfb67a7034c83b14c8dd95864ceb8222973c84f4c6c00f7e80d12dddbb7fd90600090a25060018055565b610b316114ec565b6001600160a01b0316610b42610ead565b6001600160a01b031614610b685760405162461bcd60e51b815260040161065f9061273a565b600580546001600160a01b0319166001600160a01b0383169081179091556040517fdb0549dc5d0b39a2d6064255280c9ac9887af0aa25a5e363f931030c23b9452c90600090a250565b6005546001600160a01b031681565b610bc96114ec565b6001600160a01b0316610bda610ead565b6001600160a01b031614610c005760405162461bcd60e51b815260040161065f9061273a565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000610523610c5761052e565b610c5f610fdd565b9061170e565b7fcdf68a4d525ba2e90fe959c74330430a5a6b822600020000000000000000000881565b600181565b60088181548110610c9b57fe5b6000918252602090912001546001600160a01b0316905081565b610cbd6114ec565b6001600160a01b0316610cce610ead565b6001600160a01b031614610cf45760405162461bcd60e51b815260040161065f9061273a565b60026001541415610d175760405162461bcd60e51b815260040161065f9061280e565b60026001819055507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b031614158015610d9357507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b031614155b610daf5760405162461bcd60e51b815260040161065f9061258a565b6040516370a0823160e01b81526000906001600160a01b038316906370a0823190610dde90309060040161238e565b60206040518083038186803b158015610df657600080fd5b505afa158015610e0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2e9190612289565b90508015610e4a57610e4a6001600160a01b0383163383611733565b6040516001600160a01b038316907fdb1912e9c8a65fdd55fa61e5a86bdd426afc1f0fd47676fda4ff81d6727e1a6090600090a2505060018055565b7320dd72ed959b6147912c2e529f0a0c651c33c9ce81565b6009546001600160a01b031681565b6000546001600160a01b031690565b73f24bcf4d1e507740041c9cfd2dddb29585adce1e81565b7fcde5a11a4acb4ee4c805352cec57e236bdbc383700020000000000000000001981565b7321be370d5312f44cb42ce377bc9b8a0cef1a4c8381565b7f000000000000000000000000000000000000000000000000000000000000000081565b600881565b7f000000000000000000000000000000000000000000000000000000000000000081565b60026001541415610f805760405162461bcd60e51b815260040161065f9061280e565b60026001556003546001600160a01b03163314610faf5760405162461bcd60e51b815260040161065f9061276f565b610fb881611d41565b5060018055565b6003546001600160a01b031681565b600a546001600160a01b031681565b6040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a08231906104d390309060040161238e565b60075481565b61103a6114ec565b6001600160a01b031661104b610ead565b6001600160a01b0316146110715760405162461bcd60e51b815260040161065f9061273a565b6001600160a01b03811661108457600080fd5b600280546001600160a01b0319166001600160a01b0383169081179091556040517f46d58e3fa07bf19b1d27240f0e286b27e9f7c1b0d88933333fe833b60eec541290600090a250565b60048181548110610c9b57fe5b6110e36114ec565b6001600160a01b03166110f4610ead565b6001600160a01b03161461111a5760405162461bcd60e51b815260040161065f9061273a565b6002600154141561113d5760405162461bcd60e51b815260040161065f9061280e565b60026001556003805460ff60a01b1916600160a01b1790556040516302f940c760e41b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690632f940c70906111c3907f0000000000000000000000000000000000000000000000000000000000000000903090600401612964565b600060405180830381600087803b1580156111dd57600080fd5b505af11580156111f1573d6000803e3d6000fd5b50506040516370a0823160e01b8152600092506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691506370a082319061124490309060040161238e565b60206040518083038186803b15801561125c57600080fd5b505afa158015611270573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112949190612289565b905080156112d6576003546112d6906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116911683611733565b6040517fcc6a1a065ab514031862e10458cbf117148ff1f8a168cfacab350e6644c174f090600090a15060018055565b61130e6114ec565b6001600160a01b031661131f610ead565b6001600160a01b0316146113455760405162461bcd60e51b815260040161065f9061273a565b60078190556040517fbde6763223293f0f1af445054f2b3c4fd137c5a29632fa4076ddf3e577bd062d906106be9083906123e0565b6113826114ec565b6001600160a01b0316611393610ead565b6001600160a01b0316146113b95760405162461bcd60e51b815260040161065f9061273a565b6001600160a01b0381166113df5760405162461bcd60e51b815260040161065f9061250d565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6114426114ec565b6001600160a01b0316611453610ead565b6001600160a01b0316146114795760405162461bcd60e51b815260040161065f9061273a565b6003546001600160a01b0316156114a25760405162461bcd60e51b815260040161065f906125e9565b600380546001600160a01b0319166001600160a01b0383169081179091556040517f55c9c1522358ac20ccd3c4887fe1886c26bd0f045ab7fd11acd78680bb77956990600090a250565b3390565b6000828211156115125760405162461bcd60e51b815260040161065f906125b2565b508082035b92915050565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040161156c919061238e565b60206040518083038186803b15801561158457600080fd5b505afa158015611598573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115bc9190612289565b60405163d1abb90760e01b81529091506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d1abb9079061162f907f0000000000000000000000000000000000000000000000000000000000000000908790309060040161297b565b600060405180830381600087803b15801561164957600080fd5b505af115801561165d573d6000803e3d6000fd5b50505050611707817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016116b1919061238e565b60206040518083038186803b1580156116c957600080fd5b505afa1580156116dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117019190612289565b906114f0565b9392505050565b6000828201838110156117075760405162461bcd60e51b815260040161065f90612553565b6117898363a9059cbb60e01b84846040516024016117529291906123bc565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611ebb565b505050565b604051630c7e663b60e11b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906318fccc76906117fc907f0000000000000000000000000000000000000000000000000000000000000000903090600401612964565b600060405180830381600087803b15801561181657600080fd5b505af115801561182a573d6000803e3d6000fd5b50505050565b600061185361271061184d60065485611f4a90919063ffffffff16565b90611f84565b6002549091506118829073f24bcf4d1e507740041c9cfd2dddb29585adce1e906001600160a01b031683611733565b5050565b6040516370a0823160e01b815260009073f24bcf4d1e507740041c9cfd2dddb29585adce1e906370a08231906118c090309060040161238e565b60206040518083038186803b1580156118d857600080fd5b505afa1580156118ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119109190612289565b905061191a612190565b7fcde5a11a4acb4ee4c805352cec57e236bdbc383700020000000000000000001981526000602080830182905273f24bcf4d1e507740041c9cfd2dddb29585adce1e6040808501919091527321be370d5312f44cb42ce377bc9b8a0cef1a4c8360608501526080840185905251611993918391016124ec565b60408051601f1981840301815291905260a08301526119b06121d9565b30808252600060208301819052604083019190915260608201819052611a019073f24bcf4d1e507740041c9cfd2dddb29585adce1e907320dd72ed959b6147912c2e529f0a0c651c33c9ce90611fb6565b611a3473f24bcf4d1e507740041c9cfd2dddb29585adce1e7320dd72ed959b6147912c2e529f0a0c651c33c9ce86611fb6565b6040516352bbbe2960e01b81527320dd72ed959b6147912c2e529f0a0c651c33c9ce906352bbbe2990611a7690869085906001906102584201906004016128d2565b602060405180830381600087803b158015611a9057600080fd5b505af1158015611aa4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac89190612289565b5050505050565b6040516370a0823160e01b81526000907321be370d5312f44cb42ce377bc9b8a0cef1a4c83906370a0823190611b0990309060040161238e565b60206040518083038186803b158015611b2157600080fd5b505afa158015611b35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b599190612289565b9050611b8f7321be370d5312f44cb42ce377bc9b8a0cef1a4c837320dd72ed959b6147912c2e529f0a0c651c33c9ce6000611fb6565b611bc27321be370d5312f44cb42ce377bc9b8a0cef1a4c837320dd72ed959b6147912c2e529f0a0c651c33c9ce83611fb6565b60408051600280825260608083018452600193909291906020830190803683370190505090508281600181518110611bf657fe5b6020026020010181815250506000600190506060838383604051602001611c1f939291906124b9565b6040516020818303038152906040529050611c38612200565b6004805480602002602001604051908101604052809291908181526020018280548015611c8e57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611c70575b5050509183525050602081018490526040808201839052600060608301525163172b958560e31b81527320dd72ed959b6147912c2e529f0a0c651c33c9ce9063b95cac2890611d07907fcdf68a4d525ba2e90fe959c74330430a5a6b8226000200000000000000000008903090819087906004016123e9565b600060405180830381600087803b158015611d2157600080fd5b505af1158015611d35573d6000803e3d6000fd5b50505050505050505050565b600354600160a01b900460ff1615611d6b5760405162461bcd60e51b815260040161065f9061289b565b8015611eb857611dc66001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000006000611fb6565b611e1a6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083611fb6565b604051638dbdbe6d60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690638dbdbe6d90611e8a907f0000000000000000000000000000000000000000000000000000000000000000908590309060040161297b565b600060405180830381600087803b158015611ea457600080fd5b505af1158015611ac8573d6000803e3d6000fd5b50565b6060611f10826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166120799092919063ffffffff16565b8051909150156117895780806020019051810190611f2e9190612251565b6117895760405162461bcd60e51b815260040161065f906127c4565b600082611f5957506000611517565b82820282848281611f6657fe5b04146117075760405162461bcd60e51b815260040161065f906126f9565b6000808211611fa55760405162461bcd60e51b815260040161065f90612658565b818381611fae57fe5b049392505050565b80158061203e5750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e90611fec90309086906004016123a2565b60206040518083038186803b15801561200457600080fd5b505afa158015612018573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061203c9190612289565b155b61205a5760405162461bcd60e51b815260040161065f90612845565b6117898363095ea7b360e01b84846040516024016117529291906123bc565b60606120888484600085612090565b949350505050565b6060824710156120b25760405162461bcd60e51b815260040161065f90612612565b6120bb85612151565b6120d75760405162461bcd60e51b815260040161065f9061278d565b60006060866001600160a01b031685876040516120f49190612372565b60006040518083038185875af1925050503d8060008114612131576040519150601f19603f3d011682016040523d82523d6000602084013e612136565b606091505b5091509150612146828286612157565b979650505050505050565b3b151590565b60608315612166575081611707565b8251156121765782518084602001fd5b8160405162461bcd60e51b815260040161065f91906124fa565b6040805160c0810190915260008082526020820190815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160008152602001606081525090565b60408051608081018252600080825260208201819052918101829052606081019190915290565b60405180608001604052806060815260200160608152602001606081526020016000151581525090565b60006020828403121561223b578081fd5b81356001600160a01b0381168114611707578182fd5b600060208284031215612262578081fd5b81518015158114611707578182fd5b600060208284031215612282578081fd5b5035919050565b60006020828403121561229a578081fd5b5051919050565b600080604083850312156122b3578081fd5b505080516020909101519092909150565b6000815180845260208085019450808401835b838110156122f3578151875295820195908201906001016122d7565b509495945050505050565b15159052565b6000815180845261231c81602086016020860161299a565b601f01601f19169290920160200192915050565b6001600160a01b03169052565b80516001600160a01b039081168352602080830151151590840152604080830151909116908301526060908101511515910152565b6000825161238481846020870161299a565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b90815260200190565b8481526001600160a01b038481166020808401919091529084166040830152608060608301819052835181840191909152805161010084018190526000929182019083906101208601905b8083101561245b57612447828551612330565b928401926001929092019190840190612434565b50838701519350607f199250828682030160a087015261247b81856122c4565b935050506040850151818584030160c08601526124988382612304565b9250505060608401516124ae60e08501826122fe565b509695505050505050565b6000600385106124c557fe5b848252606060208301526124dc60608301856122c4565b9050826040830152949350505050565b60ff91909116815260200190565b6000602082526117076020830184612304565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252600e908201526d63616e6e6f742073616c7661676560901b604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b6020808252600f908201526e1a985c88185b1c9958591e481cd95d608a1b604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252601a908201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604082015260600190565b60208082526022908201527f4e657720666565206d757374206265206c657373207468616e20313030302062604082015261707360f01b606082015260800190565b6020808252600e908201526d1b9bdd08185d5d1a1bdc9a5e995960921b604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526004908201526310b530b960e11b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606082015260800190565b6020808252601f908201527f656d657267656e6379207769746864726177616c20696e2070726f6365737300604082015260600190565b600060e08252855160e08301526020860151600281106128ee57fe5b6101008301526040860151612907610120840182612330565b50606086015161291b610140840182612330565b50608086015161016083015260a086015160c06101808401526129426101a0840182612304565b915050612952602083018661233d565b60a082019390935260c0015292915050565b9182526001600160a01b0316602082015260400190565b92835260208301919091526001600160a01b0316604082015260600190565b60005b838110156129b557818101518382015260200161299d565b8381111561182a575050600091015256fea2646970667358221220ecbe27031f82fd77fb6a47fdabc07cd8aa0a7a53033e58d291bbc98fe1dd278a64736f6c634300060c0033

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.