Contract 0x0b33afca01053ea47936f5eebd46318b01ca192d

Contract Overview

Balance:
0 FTM

FTM Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x1e58e99d25b36f71b159ee3c0dfae02fd08208e3e7fefb680effe40e8b71f145Harvest192252872021-10-16 7:00:155 mins ago0xcfc7ad72561356aad28309409e92c8e249fa373d IN  0x0b33afca01053ea47936f5eebd46318b01ca192d0 FTM0.122902098387
0xb877b1770a4736947e1a395e97a1f9b28cdaa037ab14f8a284aa40345addea98Harvest192217432021-10-16 6:00:071 hr 5 mins ago0x94aeae998b01341897bb7be4f66250b9fbd40a50 IN  0x0b33afca01053ea47936f5eebd46318b01ca192d0 FTM0.12711100121
0x186823f7b476db1c6e7c5a00ad4f13e28d8926ac9461c26b2d0112693000a218Harvest192181862021-10-16 5:00:162 hrs 5 mins ago0xcfc7ad72561356aad28309409e92c8e249fa373d IN  0x0b33afca01053ea47936f5eebd46318b01ca192d0 FTM0.135056145927
0x826b6fca85f3dd4f9ac89828118a92848b974ff03f50758c6c2c05ee5eb44f45Harvest192146312021-10-16 4:00:383 hrs 4 mins ago0x94aeae998b01341897bb7be4f66250b9fbd40a50 IN  0x0b33afca01053ea47936f5eebd46318b01ca192d0 FTM0.257642185362
0x7b04a2ddf18c532e30b7a2216096507e2cbb392f0604392068949197ebdd6b95Harvest192113142021-10-16 3:00:174 hrs 5 mins ago0xcfc7ad72561356aad28309409e92c8e249fa373d IN  0x0b33afca01053ea47936f5eebd46318b01ca192d0 FTM0.141489467095
0xb4e6ab28365c09c0426cdc3f48e0e8f0f9241ace57adf44731cafa23e015e324Harvest192079722021-10-16 2:00:045 hrs 5 mins ago0x94aeae998b01341897bb7be4f66250b9fbd40a50 IN  0x0b33afca01053ea47936f5eebd46318b01ca192d0 FTM0.174615267364
0x05febd2d8798476fdc75a3eb54f996b774bbbb443a6f18063fd6f6d9c27e2d24Harvest192041252021-10-16 1:00:376 hrs 4 mins ago0xcfc7ad72561356aad28309409e92c8e249fa373d IN  0x0b33afca01053ea47936f5eebd46318b01ca192d0 FTM0.176238870615
0x11bb14d124c20bb21bc030a740532d0f2c427a4ff46c9a57eee7f1bcd9af69aaHarvest192007702021-10-16 0:00:037 hrs 5 mins ago0x94aeae998b01341897bb7be4f66250b9fbd40a50 IN  0x0b33afca01053ea47936f5eebd46318b01ca192d0 FTM0.163457992206
0xa70d2651156bbd785ef0f930d201ec7ecfe0d8573499a5b9f9cc6ceb13cfc8f3Harvest191971482021-10-15 23:00:138 hrs 5 mins ago0xcfc7ad72561356aad28309409e92c8e249fa373d IN  0x0b33afca01053ea47936f5eebd46318b01ca192d0 FTM0.196245434018
0x316ca59a89b50d6cda52406a989877926ad6494de94924a8ab002a8c2be40ec9Harvest191932282021-10-15 22:00:089 hrs 5 mins ago0x94aeae998b01341897bb7be4f66250b9fbd40a50 IN  0x0b33afca01053ea47936f5eebd46318b01ca192d0 FTM0.147013832986
0x14939bec320e7b7465e3eac479ecc46b898da0d5ec6cd68892d1aa6549388388Harvest191894342021-10-15 21:00:2010 hrs 5 mins ago0xcfc7ad72561356aad28309409e92c8e249fa373d IN  0x0b33afca01053ea47936f5eebd46318b01ca192d0 FTM0.154140227463
0xcf0b0c25684bb8cb6da37f9f676ebffbb4ef5f6559b1e430ae4b18f7d1c3e0b0Harvest191877632021-10-15 20:36:1710 hrs 29 mins ago0xcfc7ad72561356aad28309409e92c8e249fa373d IN  0x0b33afca01053ea47936f5eebd46318b01ca192d0 FTM0.185406906527
0x7e750598f9bf4858708e51f470537ce905cb24c56ecead4da10843ae264ffc8cHarvest191875652021-10-15 20:33:3010 hrs 31 mins ago0x94aeae998b01341897bb7be4f66250b9fbd40a50 IN  0x0b33afca01053ea47936f5eebd46318b01ca192d0 FTM0.212712141522
0xc2cbae5dd392a1f5043f7c4901b9f0231a85cb59844908e55daa40b33eee8b2eHarvest191857262021-10-15 20:00:0311 hrs 5 mins ago0x94aeae998b01341897bb7be4f66250b9fbd40a50 IN  0x0b33afca01053ea47936f5eebd46318b01ca192d0 FTM0.188478611244
0x0782282cf0ed5a8cdb60439480065bccd0d9cab5bf6fc87db443dd157a83b9b1Harvest191815892021-10-15 19:00:1312 hrs 5 mins ago0xcfc7ad72561356aad28309409e92c8e249fa373d IN  0x0b33afca01053ea47936f5eebd46318b01ca192d0 FTM0.213947061642
0x9ae2d496cc4eacd54c8d973112535be5a67e23f6761b516e65fbf703c856b963Harvest191774062021-10-15 18:00:0413 hrs 5 mins ago0x94aeae998b01341897bb7be4f66250b9fbd40a50 IN  0x0b33afca01053ea47936f5eebd46318b01ca192d0 FTM0.249175210291
0x9d398d8e511c4043902b758af9003d604cc5b7bc38f49f1c5ae2c1d16acb5d8aHarvest191734092021-10-15 17:00:1614 hrs 5 mins ago0xcfc7ad72561356aad28309409e92c8e249fa373d IN  0x0b33afca01053ea47936f5eebd46318b01ca192d0 FTM0.327827574987
0x7ed3d14285b6cb96b9665c89b2a51048aa292d9ac09db6a1d42741811d0b7c0bHarvest191693982021-10-15 16:00:0615 hrs 5 mins ago0x94aeae998b01341897bb7be4f66250b9fbd40a50 IN  0x0b33afca01053ea47936f5eebd46318b01ca192d0 FTM0.400731240787
0xc5442e1309222ec4e882191ce790f04ad46462015bc87c1b0fc27a7e2b82b9a9Harvest191661822021-10-15 15:00:3716 hrs 4 mins ago0xcfc7ad72561356aad28309409e92c8e249fa373d IN  0x0b33afca01053ea47936f5eebd46318b01ca192d0 FTM0.419199736212
0xcda3ce2c1fcdf7013c75827b7ac7869b659cdfaa7642df204c5c26f3c602775bHarvest191629522021-10-15 14:00:0817 hrs 5 mins ago0x94aeae998b01341897bb7be4f66250b9fbd40a50 IN  0x0b33afca01053ea47936f5eebd46318b01ca192d0 FTM0.275231426798
0xace419cb8a6cc6090ad33aad5705884f25000f34ebe9cad8db80648a2d76877dHarvest191598992021-10-15 13:00:2418 hrs 5 mins ago0xcfc7ad72561356aad28309409e92c8e249fa373d IN  0x0b33afca01053ea47936f5eebd46318b01ca192d0 FTM0.186826792647
0xe2d170f03f791a9f7b4fbe926d4aa2be11e1f940e7e9c30bd26e1daec3a5a54aHarvest191569512021-10-15 12:00:0419 hrs 5 mins ago0x94aeae998b01341897bb7be4f66250b9fbd40a50 IN  0x0b33afca01053ea47936f5eebd46318b01ca192d0 FTM0.175034695524
0xf1027d82ab51afa80dfcdc619fd8f9082b4245e34ae747916d8d64425774cd55Harvest191543282021-10-15 11:00:4420 hrs 4 mins ago0xcfc7ad72561356aad28309409e92c8e249fa373d IN  0x0b33afca01053ea47936f5eebd46318b01ca192d0 FTM0.20194210849
0x7dc9a4cba0eb612243bfd9f091d40c75a49f2017a7c0d387bf46cae0b8bda228Harvest191514032021-10-15 10:00:0621 hrs 5 mins ago0x94aeae998b01341897bb7be4f66250b9fbd40a50 IN  0x0b33afca01053ea47936f5eebd46318b01ca192d0 FTM0.186094326818
0x4cdde11a4423d5005243dac196246d46618451e3ff233d11f3e38b121030c66dHarvest191477722021-10-15 9:00:1222 hrs 5 mins ago0xcfc7ad72561356aad28309409e92c8e249fa373d IN  0x0b33afca01053ea47936f5eebd46318b01ca192d0 FTM0.318847969003
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x703e0296b1c47fd71260c76f5f98a0fc41e37ee0be5f12d2a9ad9ef3e0405ec4191029542021-10-14 20:23:121 day 10 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
//    bytes32 public constant swapPool = 0x03c6b3f09d2504606936b1a4decefad204687890000200000000000000000015; // Beets-USDC pool
    address public constant depositTokenAddr = 0xF24Bcf4d1e507740041C9cFd2DddB29585aDCe1e; 
    // Pool to deposit
    bytes32 public constant depositpool = 0x03c6b3f09d2504606936b1a4decefad204687890000200000000000000000015;
    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 = 0;

    // 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 = 0x03c6B3f09D2504606936b1A4DeCeFaD204687890;
    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 "BeetsUSDC";
    }
}

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"}]

6003805460ff60a01b19169055600261010081815261016060405290816020016020820280368337505081516200003e92600492506020019062000315565b50600580546001600160a01b03199081169091556064600655670de0b6b3a7640000600755600980548216738166994d9ebbe5829ec86bd81258149b87facfd3179055600a80549091167303c6b3f09d2504606936b1a4decefad204687890179055348015620000ad57600080fd5b50600954600a546001600160a01b03918216911633828282600073f24bcf4d1e507740041c9cfd2dddb29585adce1e83838284620000ea62000311565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180556001600160a01b0383166200014c57600080fd5b6001600160a01b0382166200016057600080fd5b6001600160601b0319606093841b8116608052600280546001600160a01b039485166001600160a01b031990911617905590831b811660a05260e09490945295901b90911660c052505050821673f24bcf4d1e507740041c9cfd2dddb29585adce1e1415620001ec5760405162461bcd60e51b8152600401620001e390620004f8565b60405180910390fd5b604051631f29a8cd60e31b81526060907320dd72ed959b6147912c2e529f0a0c651c33c9ce9063f94d46689062000248907f03c6b3f09d2504606936b1a4decefad20468789000020000000000000000001590600401620004ef565b60006040518083038186803b1580156200026157600080fd5b505afa15801562000276573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620002a0919081019062000416565b5050905060005b81518110156200030657818181518110620002be57fe5b602002602001015160048281548110620002d457fe5b600091825260209091200180546001600160a01b0319166001600160a01b0392909216919091179055600101620002a7565b5050505050620005b5565b3390565b8280548282559060005260206000209081019282156200036d579160200282015b828111156200036d57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000336565b506200037b9291506200037f565b5090565b5b808211156200037b5780546001600160a01b031916815560010162000380565b600082601f830112620003b1578081fd5b8151620003c8620003c2826200057c565b62000555565b818152915060208083019084810181840286018201871015620003ea57600080fd5b60005b848110156200040b57815184529282019290820190600101620003ed565b505050505092915050565b6000806000606084860312156200042b578283fd5b83516001600160401b038082111562000442578485fd5b818601915086601f83011262000456578485fd5b815162000467620003c2826200057c565b80828252602080830192508086018b8283870289010111156200048857898afd5b8996505b84871015620004b7578051620004a2816200059c565b8452600196909601959281019281016200048c565b508901519097509350505080821115620004cf578384fd5b50620004de86828701620003a0565b925050604084015190509250925092565b90815260200190565b60208082526039908201527f57616e7420746f6b656e20616464726573732073686f756c64206e6f7420626560408201527f2073657420746f2066656520746f6b656e206164647265737300000000000000606082015260800190565b6040518181016001600160401b03811182821017156200057457600080fd5b604052919050565b60006001600160401b0382111562000592578081fd5b5060209081020190565b6001600160a01b0381168114620005b257600080fd5b50565b60805160601c60a05160601c60c05160601c60e05161264862000676600039806104a1528061055a5280610869528061116e52806115d852806117a75280611bea525080610474528061052b5280610ee7528061114152806115ab528061177a5280611b2c5280611b815280611bbd525080610d4b5280610f105250806106d8528061077552806108365280610a525280610d0e5280610fcc52806111e3528061128252806114f7528061163c5280611b0a5280611b5f52506126486000f3fe608060405234801561001057600080fd5b506004361061025e5760003560e01c80638ac14a1111610146578063be38a4fe116100c3578063cf35bdd011610087578063cf35bdd014610407578063db2e21bc1461041a578063e89dec6d14610399578063e8f0280714610422578063f2fde38b14610435578063f6f482aa146104485761025e565b8063be38a4fe146103d4578063bfd9041b146103dc578063c1a3d44c146103e4578063c2592869146103ec578063c7b9d530146103f45761025e565b80639a2ae1f61161010a5780639a2ae1f6146103995780639ec5a894146103a9578063a9505ab2146103b1578063ad678c79146103b9578063b4bdc3d9146103c15761025e565b80638ac14a11146103815780638c33cf60146103895780638da5cb5b14610391578063945cbbd014610399578063982697dd146103a15761025e565b80633e0dc34e116101df578063715018a6116101a3578063715018a61461033b578063722713f71461034357806379e5a3b21461034b5780637b898939146103535780637c6175a11461035b578063863a03e01461036e5761025e565b80633e0dc34e1461030857806340794c3b146103105780634641257d146103185780634713405a14610320578063506508f1146103335761025e565b80631b43987f116102265780631b43987f146102bb5780631b6a8759146102d05780631f1fcd51146102d85780631fe4a686146102ed5780632e1a7d4d146102f55761025e565b80630547104d146102635780630e23a07814610281578063115880861461028957806317d7de7c146102915780631aa02d59146102a6575b600080fd5b61026b61045b565b60405161027891906120cc565b60405180910390f35b61026b610520565b61026b610526565b6102996105ed565b60405161027891906121d8565b6102b96102b4366004611f92565b610618565b005b6102c36106c1565b60405161027891906120c1565b61026b6106d1565b6102e06106d6565b604051610278919061207a565b6102e06106fa565b6102b9610303366004611f92565b610709565b61026b610867565b61029961088b565b6102b96108ae565b6102b961032e366004611f4b565b610b16565b6102e0610b9f565b6102b9610bae565b61026b610c37565b61026b610c52565b61026b610c76565b6102e0610369366004611f92565b610c7b565b6102b961037c366004611f4b565b610ca2565b6102e0610e73565b6102e0610e8b565b6102e0610e9a565b6102e0610ea9565b61026b610ec1565b6102e0610ee5565b61026b610f09565b6102e0610f0e565b6102b96103cf366004611f92565b610f32565b6102e0610f94565b6102e0610fa3565b61026b610fb2565b61026b611001565b6102b9610402366004611f4b565b611007565b6102e0610415366004611f92565b6110a3565b6102b96110b0565b6102b9610430366004611f92565b6112db565b6102b9610443366004611f4b565b61134f565b6102b9610456366004611f4b565b61140f565b60405162269db960e81b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063269db900906104cb907f00000000000000000000000000000000000000000000000000000000000000009030906004016125b0565b60206040518083038186803b1580156104e357600080fd5b505afa1580156104f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051b9190611faa565b905090565b60065481565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166393f1a40b7f0000000000000000000000000000000000000000000000000000000000000000306040518363ffffffff1660e01b81526004016105979291906125b0565b604080518083038186803b1580156105ae57600080fd5b505afa1580156105c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e69190611fc2565b5091505090565b604080518082019091526011815270537472617465677954776f41737365747360781b602082015290565b6106206114c1565b6001600160a01b0316610631610e9a565b6001600160a01b0316146106605760405162461bcd60e51b815260040161065790612418565b60405180910390fd5b6103e88111156106825760405162461bcd60e51b81526004016106579061236d565b60068190556040517e172ddfc5ae88d08b3de01a5a187667c37a5a53989e8c175055cb6c993792a7906106b69083906120cc565b60405180910390a150565b600354600160a01b900460ff1681565b600281565b7f000000000000000000000000000000000000000000000000000000000000000081565b6002546001600160a01b031681565b6002600154141561072c5760405162461bcd60e51b8152600401610657906124ec565b60026001556003546001600160a01b0316331461075b5760405162461bcd60e51b81526004016106579061244d565b6040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a08231906107aa90309060040161207a565b60206040518083038186803b1580156107c257600080fd5b505afa1580156107d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107fa9190611faa565b9050818110156108255761081661081183836114c5565b6114f2565b915061082282826116e3565b91505b60035461085f906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116911684611708565b505060018055565b7f000000000000000000000000000000000000000000000000000000000000000081565b60408051808201909152600981526842656574735553444360b81b602082015290565b600260015414156108d15760405162461bcd60e51b8152600401610657906124ec565b6002600155333214806108fc57506108e7610e9a565b6001600160a01b0316336001600160a01b0316145b8061091157506002546001600160a01b031633145b8061092657506005546001600160a01b031633145b8061093b57506003546001600160a01b031633145b6109575760405162461bcd60e51b8152600401610657906123af565b600354600160a01b900460ff16156109815760405162461bcd60e51b815260040161065790612579565b610989611763565b6040516370a0823160e01b815260009073f24bcf4d1e507740041c9cfd2dddb29585adce1e906370a08231906109c390309060040161207a565b60206040518083038186803b1580156109db57600080fd5b505afa1580156109ef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a139190611faa565b9050600754811115610ae45760065415610a3057610a3081611805565b610a3861185b565b6040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190610a8790309060040161207a565b60206040518083038186803b158015610a9f57600080fd5b505afa158015610ab3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad79190611faa565b9050610ae281611acd565b505b60405133907f46ecfb67a7034c83b14c8dd95864ceb8222973c84f4c6c00f7e80d12dddbb7fd90600090a25060018055565b610b1e6114c1565b6001600160a01b0316610b2f610e9a565b6001600160a01b031614610b555760405162461bcd60e51b815260040161065790612418565b600580546001600160a01b0319166001600160a01b0383169081179091556040517fdb0549dc5d0b39a2d6064255280c9ac9887af0aa25a5e363f931030c23b9452c90600090a250565b6005546001600160a01b031681565b610bb66114c1565b6001600160a01b0316610bc7610e9a565b6001600160a01b031614610bed5760405162461bcd60e51b815260040161065790612418565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600061051b610c44610526565b610c4c610fb2565b906116e3565b7f03c6b3f09d2504606936b1a4decefad20468789000020000000000000000001581565b600181565b60088181548110610c8857fe5b6000918252602090912001546001600160a01b0316905081565b610caa6114c1565b6001600160a01b0316610cbb610e9a565b6001600160a01b031614610ce15760405162461bcd60e51b815260040161065790612418565b60026001541415610d045760405162461bcd60e51b8152600401610657906124ec565b60026001819055507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b031614158015610d8057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b031614155b610d9c5760405162461bcd60e51b815260040161065790612268565b6040516370a0823160e01b81526000906001600160a01b038316906370a0823190610dcb90309060040161207a565b60206040518083038186803b158015610de357600080fd5b505afa158015610df7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1b9190611faa565b90508015610e3757610e376001600160a01b0383163383611708565b6040516001600160a01b038316907fdb1912e9c8a65fdd55fa61e5a86bdd426afc1f0fd47676fda4ff81d6727e1a6090600090a2505060018055565b7320dd72ed959b6147912c2e529f0a0c651c33c9ce81565b6009546001600160a01b031681565b6000546001600160a01b031690565b73f24bcf4d1e507740041c9cfd2dddb29585adce1e81565b7fcde5a11a4acb4ee4c805352cec57e236bdbc383700020000000000000000001981565b7f000000000000000000000000000000000000000000000000000000000000000081565b600081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60026001541415610f555760405162461bcd60e51b8152600401610657906124ec565b60026001556003546001600160a01b03163314610f845760405162461bcd60e51b81526004016106579061244d565b610f8d81611acd565b5060018055565b6003546001600160a01b031681565b600a546001600160a01b031681565b6040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a08231906104cb90309060040161207a565b60075481565b61100f6114c1565b6001600160a01b0316611020610e9a565b6001600160a01b0316146110465760405162461bcd60e51b815260040161065790612418565b6001600160a01b03811661105957600080fd5b600280546001600160a01b0319166001600160a01b0383169081179091556040517f46d58e3fa07bf19b1d27240f0e286b27e9f7c1b0d88933333fe833b60eec541290600090a250565b60048181548110610c8857fe5b6110b86114c1565b6001600160a01b03166110c9610e9a565b6001600160a01b0316146110ef5760405162461bcd60e51b815260040161065790612418565b600260015414156111125760405162461bcd60e51b8152600401610657906124ec565b60026001556003805460ff60a01b1916600160a01b1790556040516302f940c760e41b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690632f940c7090611198907f00000000000000000000000000000000000000000000000000000000000000009030906004016125b0565b600060405180830381600087803b1580156111b257600080fd5b505af11580156111c6573d6000803e3d6000fd5b50506040516370a0823160e01b8152600092506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691506370a082319061121990309060040161207a565b60206040518083038186803b15801561123157600080fd5b505afa158015611245573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112699190611faa565b905080156112ab576003546112ab906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116911683611708565b6040517fcc6a1a065ab514031862e10458cbf117148ff1f8a168cfacab350e6644c174f090600090a15060018055565b6112e36114c1565b6001600160a01b03166112f4610e9a565b6001600160a01b03161461131a5760405162461bcd60e51b815260040161065790612418565b60078190556040517fbde6763223293f0f1af445054f2b3c4fd137c5a29632fa4076ddf3e577bd062d906106b69083906120cc565b6113576114c1565b6001600160a01b0316611368610e9a565b6001600160a01b03161461138e5760405162461bcd60e51b815260040161065790612418565b6001600160a01b0381166113b45760405162461bcd60e51b8152600401610657906121eb565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6114176114c1565b6001600160a01b0316611428610e9a565b6001600160a01b03161461144e5760405162461bcd60e51b815260040161065790612418565b6003546001600160a01b0316156114775760405162461bcd60e51b8152600401610657906122c7565b600380546001600160a01b0319166001600160a01b0383169081179091556040517f55c9c1522358ac20ccd3c4887fe1886c26bd0f045ab7fd11acd78680bb77956990600090a250565b3390565b6000828211156114e75760405162461bcd60e51b815260040161065790612290565b508082035b92915050565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401611541919061207a565b60206040518083038186803b15801561155957600080fd5b505afa15801561156d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115919190611faa565b60405163d1abb90760e01b81529091506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d1abb90790611604907f000000000000000000000000000000000000000000000000000000000000000090879030906004016125c7565b600060405180830381600087803b15801561161e57600080fd5b505af1158015611632573d6000803e3d6000fd5b505050506116dc817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401611686919061207a565b60206040518083038186803b15801561169e57600080fd5b505afa1580156116b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116d69190611faa565b906114c5565b9392505050565b6000828201838110156116dc5760405162461bcd60e51b815260040161065790612231565b61175e8363a9059cbb60e01b84846040516024016117279291906120a8565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611c4c565b505050565b604051630c7e663b60e11b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906318fccc76906117d1907f00000000000000000000000000000000000000000000000000000000000000009030906004016125b0565b600060405180830381600087803b1580156117eb57600080fd5b505af11580156117ff573d6000803e3d6000fd5b50505050565b600061182861271061182260065485611cdb90919063ffffffff16565b90611d15565b6002549091506118579073f24bcf4d1e507740041c9cfd2dddb29585adce1e906001600160a01b031683611708565b5050565b6040516370a0823160e01b815260009073f24bcf4d1e507740041c9cfd2dddb29585adce1e906370a082319061189590309060040161207a565b60206040518083038186803b1580156118ad57600080fd5b505afa1580156118c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118e59190611faa565b905061191b73f24bcf4d1e507740041c9cfd2dddb29585adce1e7320dd72ed959b6147912c2e529f0a0c651c33c9ce6000611d47565b61194e73f24bcf4d1e507740041c9cfd2dddb29585adce1e7320dd72ed959b6147912c2e529f0a0c651c33c9ce83611d47565b6040805160028082526060808301845260019390929190602083019080368337019050509050828160018151811061198257fe5b60200260200101818152505060006001905060608383836040516020016119ab939291906121a5565b60405160208183030381529060405290506119c4611f21565b6004805480602002602001604051908101604052809291908181526020018280548015611a1a57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116119fc575b5050509183525050602081018490526040808201839052600060608301525163172b958560e31b81527320dd72ed959b6147912c2e529f0a0c651c33c9ce9063b95cac2890611a93907f03c6b3f09d2504606936b1a4decefad204687890000200000000000000000015903090819087906004016120d5565b600060405180830381600087803b158015611aad57600080fd5b505af1158015611ac1573d6000803e3d6000fd5b50505050505050505050565b600354600160a01b900460ff1615611af75760405162461bcd60e51b815260040161065790612579565b8015611c4957611b526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000006000611d47565b611ba66001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083611d47565b604051638dbdbe6d60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690638dbdbe6d90611c16907f000000000000000000000000000000000000000000000000000000000000000090859030906004016125c7565b600060405180830381600087803b158015611c3057600080fd5b505af1158015611c44573d6000803e3d6000fd5b505050505b50565b6060611ca1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611e0a9092919063ffffffff16565b80519091501561175e5780806020019051810190611cbf9190611f72565b61175e5760405162461bcd60e51b8152600401610657906124a2565b600082611cea575060006114ec565b82820282848281611cf757fe5b04146116dc5760405162461bcd60e51b8152600401610657906123d7565b6000808211611d365760405162461bcd60e51b815260040161065790612336565b818381611d3f57fe5b049392505050565b801580611dcf5750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e90611d7d903090869060040161208e565b60206040518083038186803b158015611d9557600080fd5b505afa158015611da9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dcd9190611faa565b155b611deb5760405162461bcd60e51b815260040161065790612523565b61175e8363095ea7b360e01b84846040516024016117279291906120a8565b6060611e198484600085611e21565b949350505050565b606082471015611e435760405162461bcd60e51b8152600401610657906122f0565b611e4c85611ee2565b611e685760405162461bcd60e51b81526004016106579061246b565b60006060866001600160a01b03168587604051611e85919061205e565b60006040518083038185875af1925050503d8060008114611ec2576040519150601f19603f3d011682016040523d82523d6000602084013e611ec7565b606091505b5091509150611ed7828286611ee8565b979650505050505050565b3b151590565b60608315611ef75750816116dc565b825115611f075782518084602001fd5b8160405162461bcd60e51b815260040161065791906121d8565b60405180608001604052806060815260200160608152602001606081526020016000151581525090565b600060208284031215611f5c578081fd5b81356001600160a01b03811681146116dc578182fd5b600060208284031215611f83578081fd5b815180151581146116dc578182fd5b600060208284031215611fa3578081fd5b5035919050565b600060208284031215611fbb578081fd5b5051919050565b60008060408385031215611fd4578081fd5b505080516020909101519092909150565b6000815180845260208085019450808401835b8381101561201457815187529582019590820190600101611ff8565b509495945050505050565b15159052565b6000815180845261203d8160208601602086016125e6565b601f01601f19169290920160200192915050565b6001600160a01b03169052565b600082516120708184602087016125e6565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b90815260200190565b8481526001600160a01b038481166020808401919091529084166040830152608060608301819052835181840191909152805161010084018190526000929182019083906101208601905b8083101561214757612133828551612051565b928401926001929092019190840190612120565b50838701519350607f199250828682030160a08701526121678185611fe5565b935050506040850151818584030160c08601526121848382612025565b92505050606084015161219a60e085018261201f565b509695505050505050565b6000600385106121b157fe5b848252606060208301526121c86060830185611fe5565b9050826040830152949350505050565b6000602082526116dc6020830184612025565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252600e908201526d63616e6e6f742073616c7661676560901b604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b6020808252600f908201526e1a985c88185b1c9958591e481cd95d608a1b604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252601a908201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604082015260600190565b60208082526022908201527f4e657720666565206d757374206265206c657373207468616e20313030302062604082015261707360f01b606082015260800190565b6020808252600e908201526d1b9bdd08185d5d1a1bdc9a5e995960921b604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526004908201526310b530b960e11b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606082015260800190565b6020808252601f908201527f656d657267656e6379207769746864726177616c20696e2070726f6365737300604082015260600190565b9182526001600160a01b0316602082015260400190565b92835260208301919091526001600160a01b0316604082015260600190565b60005b838110156126015781810151838201526020016125e9565b838111156117ff575050600091015256fea26469706673582212205c5d17982b1f2962dd341fc8e5b194e8996a2d75f89e4b43ea463c339572e06d64736f6c634300060c0033

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.