{
  "address": "0x3470Ee495460ab39440D961f157992D11E7a0127",
  "abi": [
    {
      "inputs": [
        {
          "internalType": "contract IERC20",
          "name": "_rewardToken",
          "type": "address"
        },
        {
          "internalType": "contract IERC20",
          "name": "_lpToken",
          "type": "address"
        },
        {
          "internalType": "uint256",
          "name": "_tokenPerBlock",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_allocPoint",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "_MCV1_pid",
          "type": "uint256"
        },
        {
          "internalType": "contract IMasterChef",
          "name": "_MCV1",
          "type": "address"
        },
        {
          "internalType": "contract IMasterChefJoeV2",
          "name": "_MCV2",
          "type": "address"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "constructor"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "oldAllocPoint",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "newAllocPoint",
          "type": "uint256"
        }
      ],
      "name": "AllocPointUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "address",
          "name": "user",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "amount",
          "type": "uint256"
        }
      ],
      "name": "OnReward",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "address",
          "name": "previousOwner",
          "type": "address"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "newOwner",
          "type": "address"
        }
      ],
      "name": "OwnershipTransferred",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "oldRate",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "newRate",
          "type": "uint256"
        }
      ],
      "name": "RewardRateUpdated",
      "type": "event"
    },
    {
      "inputs": [],
      "name": "MCV1",
      "outputs": [
        {
          "internalType": "contract IMasterChef",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "MCV1_pid",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "MCV2",
      "outputs": [
        {
          "internalType": "contract IMasterChefJoeV2",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "harvestFromMasterChefV1",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "contract IERC20",
          "name": "dummyToken",
          "type": "address"
        }
      ],
      "name": "init",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "lpToken",
      "outputs": [
        {
          "internalType": "contract IERC20",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_user",
          "type": "address"
        },
        {
          "internalType": "uint256",
          "name": "_lpAmount",
          "type": "uint256"
        }
      ],
      "name": "onJoeReward",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "owner",
      "outputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_user",
          "type": "address"
        }
      ],
      "name": "pendingTokens",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "pending",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "poolInfo",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "accTokenPerShare",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "lastRewardBlock",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "allocPoint",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "renounceOwnership",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "rewardToken",
      "outputs": [
        {
          "internalType": "contract IERC20",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_allocPoint",
          "type": "uint256"
        }
      ],
      "name": "setAllocPoint",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "_tokenPerBlock",
          "type": "uint256"
        }
      ],
      "name": "setRewardRate",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "tokenPerBlock",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "newOwner",
          "type": "address"
        }
      ],
      "name": "transferOwnership",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "updatePool",
      "outputs": [
        {
          "components": [
            {
              "internalType": "uint256",
              "name": "accTokenPerShare",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "lastRewardBlock",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "allocPoint",
              "type": "uint256"
            }
          ],
          "internalType": "struct MasterChefRewarderPerBlock.PoolInfo",
          "name": "pool",
          "type": "tuple"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "name": "userInfo",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "amount",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "rewardDebt",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    }
  ],
  "transactionHash": "0x7615cc1e79fd96ae5d8567dfa9a6b652580f5e805c72ef8baf47a42e3a43cc90",
  "receipt": {
    "to": null,
    "from": "0x5D3e4C0FE11e0aE4c32F0FF74B4544C49538AC61",
    "contractAddress": "0x3470Ee495460ab39440D961f157992D11E7a0127",
    "transactionIndex": 1,
    "gasUsed": "1369958",
    "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000800000020004000000000000000800000000004000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000004000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000",
    "blockHash": "0xb8a3fe84957d8353cae70ad75c4415434c34efbaaf6b641e63c52bd7638c9c29",
    "transactionHash": "0x7615cc1e79fd96ae5d8567dfa9a6b652580f5e805c72ef8baf47a42e3a43cc90",
    "logs": [
      {
        "transactionIndex": 1,
        "blockNumber": 8769097,
        "transactionHash": "0x7615cc1e79fd96ae5d8567dfa9a6b652580f5e805c72ef8baf47a42e3a43cc90",
        "address": "0x3470Ee495460ab39440D961f157992D11E7a0127",
        "topics": [
          "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
          "0x0000000000000000000000000000000000000000000000000000000000000000",
          "0x0000000000000000000000005d3e4c0fe11e0ae4c32f0ff74b4544c49538ac61"
        ],
        "data": "0x",
        "logIndex": 0,
        "blockHash": "0xb8a3fe84957d8353cae70ad75c4415434c34efbaaf6b641e63c52bd7638c9c29"
      }
    ],
    "blockNumber": 8769097,
    "cumulativeGasUsed": "1615558",
    "status": 1,
    "byzantium": true
  },
  "args": [
    "0x59c16DA7fD0C84F907Bccfc9f464407B7AFc2d02",
    "0x6d551ad3570888d49da4d6c8b8a626c8cbfd5ac2",
    "100000000000000000000",
    "100",
    0,
    "0xA4Fe4B15E0A0497aDd236985Ab73Cd10eeD8aaB5",
    "0x30e112880b60Cc8046653B246b147EB681BC2D79"
  ],
  "solcInputHash": "d8e6b5ed1356916151fab472a3ed0a01",
  "metadata": "{\"compiler\":{\"version\":\"0.6.12+commit.27d51765\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"_rewardToken\",\"type\":\"address\"},{\"internalType\":\"contract IERC20\",\"name\":\"_lpToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_tokenPerBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_allocPoint\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_MCV1_pid\",\"type\":\"uint256\"},{\"internalType\":\"contract IMasterChef\",\"name\":\"_MCV1\",\"type\":\"address\"},{\"internalType\":\"contract IMasterChefJoeV2\",\"name\":\"_MCV2\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldAllocPoint\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newAllocPoint\",\"type\":\"uint256\"}],\"name\":\"AllocPointUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"OnReward\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldRate\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newRate\",\"type\":\"uint256\"}],\"name\":\"RewardRateUpdated\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MCV1\",\"outputs\":[{\"internalType\":\"contract IMasterChef\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MCV1_pid\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MCV2\",\"outputs\":[{\"internalType\":\"contract IMasterChefJoeV2\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"harvestFromMasterChefV1\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"dummyToken\",\"type\":\"address\"}],\"name\":\"init\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lpToken\",\"outputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_lpAmount\",\"type\":\"uint256\"}],\"name\":\"onJoeReward\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"}],\"name\":\"pendingTokens\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"pending\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"accTokenPerShare\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastRewardBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"allocPoint\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardToken\",\"outputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_allocPoint\",\"type\":\"uint256\"}],\"name\":\"setAllocPoint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_tokenPerBlock\",\"type\":\"uint256\"}],\"name\":\"setRewardRate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenPerBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"updatePool\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"accTokenPerShare\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lastRewardBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"allocPoint\",\"type\":\"uint256\"}],\"internalType\":\"struct MasterChefRewarderPerBlock.PoolInfo\",\"name\":\"pool\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"userInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardDebt\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"init(address)\":{\"params\":{\"dummyToken\":\"The address of the dummy ERC20 token to deposit into MCV1.\"}},\"onJoeReward(address,uint256)\":{\"params\":{\"_lpAmount\":\"Number of LP tokens the user has\",\"_user\":\"Address of user\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"pendingTokens(address)\":{\"params\":{\"_user\":\"Address of user.\"},\"returns\":{\"pending\":\"reward for a given user.\"}},\"renounceOwnership()\":{\"details\":\"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.\"},\"setAllocPoint(uint256)\":{\"params\":{\"_allocPoint\":\"The new allocation point of the pool\"}},\"setRewardRate(uint256)\":{\"params\":{\"_tokenPerBlock\":\"The number of tokens to distribute per block\"}},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"},\"updatePool()\":{\"returns\":{\"pool\":\"Returns the pool that was updated.\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"harvestFromMasterChefV1()\":{\"notice\":\"Claims reward tokens from MCV1 farm.\"},\"init(address)\":{\"notice\":\"Deposits a dummy token to a MaterChefV1 farm so that this contract can claim reward tokens.\"},\"onJoeReward(address,uint256)\":{\"notice\":\"Function called by MasterChefJoeV2 whenever staker claims JOE harvest. Allows staker to also receive a 2nd reward token.\"},\"pendingTokens(address)\":{\"notice\":\"View function to see pending tokens\"},\"poolInfo()\":{\"notice\":\"Info of the poolInfo.\"},\"setAllocPoint(uint256)\":{\"notice\":\"Sets the allocation point. THis will also update the poolInfo.\"},\"setRewardRate(uint256)\":{\"notice\":\"Sets the distribution reward rate. This will also update the poolInfo.\"},\"updatePool()\":{\"notice\":\"Update reward variables of the given poolInfo.\"},\"userInfo(address)\":{\"notice\":\"Info of each user that stakes LP tokens.\"}},\"notice\":\"This is a sample contract to be used in the MasterChefJoeV2 contract for partners to reward stakers with their native token alongside JOE. It assumes the project already has an existing MasterChef-style farm contract. In which case, the init() function is called to deposit a dummy token into one of the MasterChef farms so this contract can accrue rewards from that farm. The contract then transfers the reward token to the user on each call to onJoeReward().\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/rewarders/MasterChefRewarderPerBlock.sol\":\"MasterChefRewarderPerBlock\"},\"evmVersion\":\"istanbul\",\"libraries\":{\"__CACHE_BREAKER__\":\"0x00000000d41867734bbee4c6863d9255b2b06ac1\"},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n    address private _owner;\\n\\n    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n    /**\\n     * @dev Initializes the contract setting the deployer as the initial owner.\\n     */\\n    constructor () internal {\\n        address msgSender = _msgSender();\\n        _owner = msgSender;\\n        emit OwnershipTransferred(address(0), msgSender);\\n    }\\n\\n    /**\\n     * @dev Returns the address of the current owner.\\n     */\\n    function owner() public view virtual returns (address) {\\n        return _owner;\\n    }\\n\\n    /**\\n     * @dev Throws if called by any account other than the owner.\\n     */\\n    modifier onlyOwner() {\\n        require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n        _;\\n    }\\n\\n    /**\\n     * @dev Leaves the contract without owner. It will not be possible to call\\n     * `onlyOwner` functions anymore. Can only be called by the current owner.\\n     *\\n     * NOTE: Renouncing ownership will leave the contract without an owner,\\n     * thereby removing any functionality that is only available to the owner.\\n     */\\n    function renounceOwnership() public virtual onlyOwner {\\n        emit OwnershipTransferred(_owner, address(0));\\n        _owner = address(0);\\n    }\\n\\n    /**\\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n     * Can only be called by the current owner.\\n     */\\n    function transferOwnership(address newOwner) public virtual onlyOwner {\\n        require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n        emit OwnershipTransferred(_owner, newOwner);\\n        _owner = newOwner;\\n    }\\n}\\n\",\"keccak256\":\"0x15e2d5bd4c28a88548074c54d220e8086f638a71ed07e6b3ba5a70066fcf458d\",\"license\":\"MIT\"},\"@openzeppelin/contracts/math/SafeMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\n/**\\n * @dev Wrappers over Solidity's arithmetic operations with added overflow\\n * checks.\\n *\\n * Arithmetic operations in Solidity wrap on overflow. This can easily result\\n * in bugs, because programmers usually assume that an overflow raises an\\n * error, which is the standard behavior in high level programming languages.\\n * `SafeMath` restores this intuition by reverting the transaction when an\\n * operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n */\\nlibrary SafeMath {\\n    /**\\n     * @dev Returns the addition of two unsigned integers, with an overflow flag.\\n     *\\n     * _Available since v3.4._\\n     */\\n    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n        uint256 c = a + b;\\n        if (c < a) return (false, 0);\\n        return (true, c);\\n    }\\n\\n    /**\\n     * @dev Returns the substraction of two unsigned integers, with an overflow flag.\\n     *\\n     * _Available since v3.4._\\n     */\\n    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n        if (b > a) return (false, 0);\\n        return (true, a - b);\\n    }\\n\\n    /**\\n     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\\n     *\\n     * _Available since v3.4._\\n     */\\n    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n        // benefit is lost if 'b' is also tested.\\n        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\\n        if (a == 0) return (true, 0);\\n        uint256 c = a * b;\\n        if (c / a != b) return (false, 0);\\n        return (true, c);\\n    }\\n\\n    /**\\n     * @dev Returns the division of two unsigned integers, with a division by zero flag.\\n     *\\n     * _Available since v3.4._\\n     */\\n    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n        if (b == 0) return (false, 0);\\n        return (true, a / b);\\n    }\\n\\n    /**\\n     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\\n     *\\n     * _Available since v3.4._\\n     */\\n    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n        if (b == 0) return (false, 0);\\n        return (true, a % b);\\n    }\\n\\n    /**\\n     * @dev Returns the addition of two unsigned integers, reverting on\\n     * overflow.\\n     *\\n     * Counterpart to Solidity's `+` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - Addition cannot overflow.\\n     */\\n    function add(uint256 a, uint256 b) internal pure returns (uint256) {\\n        uint256 c = a + b;\\n        require(c >= a, \\\"SafeMath: addition overflow\\\");\\n        return c;\\n    }\\n\\n    /**\\n     * @dev Returns the subtraction of two unsigned integers, reverting on\\n     * overflow (when the result is negative).\\n     *\\n     * Counterpart to Solidity's `-` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - Subtraction cannot overflow.\\n     */\\n    function sub(uint256 a, uint256 b) internal pure returns (uint256) {\\n        require(b <= a, \\\"SafeMath: subtraction overflow\\\");\\n        return a - b;\\n    }\\n\\n    /**\\n     * @dev Returns the multiplication of two unsigned integers, reverting on\\n     * overflow.\\n     *\\n     * Counterpart to Solidity's `*` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - Multiplication cannot overflow.\\n     */\\n    function mul(uint256 a, uint256 b) internal pure returns (uint256) {\\n        if (a == 0) return 0;\\n        uint256 c = a * b;\\n        require(c / a == b, \\\"SafeMath: multiplication overflow\\\");\\n        return c;\\n    }\\n\\n    /**\\n     * @dev Returns the integer division of two unsigned integers, reverting on\\n     * division by zero. The result is rounded towards zero.\\n     *\\n     * Counterpart to Solidity's `/` operator. Note: this function uses a\\n     * `revert` opcode (which leaves remaining gas untouched) while Solidity\\n     * uses an invalid opcode to revert (consuming all remaining gas).\\n     *\\n     * Requirements:\\n     *\\n     * - The divisor cannot be zero.\\n     */\\n    function div(uint256 a, uint256 b) internal pure returns (uint256) {\\n        require(b > 0, \\\"SafeMath: division by zero\\\");\\n        return a / b;\\n    }\\n\\n    /**\\n     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n     * reverting when dividing by zero.\\n     *\\n     * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n     * opcode (which leaves remaining gas untouched) while Solidity uses an\\n     * invalid opcode to revert (consuming all remaining gas).\\n     *\\n     * Requirements:\\n     *\\n     * - The divisor cannot be zero.\\n     */\\n    function mod(uint256 a, uint256 b) internal pure returns (uint256) {\\n        require(b > 0, \\\"SafeMath: modulo by zero\\\");\\n        return a % b;\\n    }\\n\\n    /**\\n     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\\n     * overflow (when the result is negative).\\n     *\\n     * CAUTION: This function is deprecated because it requires allocating memory for the error\\n     * message unnecessarily. For custom revert reasons use {trySub}.\\n     *\\n     * Counterpart to Solidity's `-` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - Subtraction cannot overflow.\\n     */\\n    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n        require(b <= a, errorMessage);\\n        return a - b;\\n    }\\n\\n    /**\\n     * @dev Returns the integer division of two unsigned integers, reverting with custom message on\\n     * division by zero. The result is rounded towards zero.\\n     *\\n     * CAUTION: This function is deprecated because it requires allocating memory for the error\\n     * message unnecessarily. For custom revert reasons use {tryDiv}.\\n     *\\n     * Counterpart to Solidity's `/` operator. Note: this function uses a\\n     * `revert` opcode (which leaves remaining gas untouched) while Solidity\\n     * uses an invalid opcode to revert (consuming all remaining gas).\\n     *\\n     * Requirements:\\n     *\\n     * - The divisor cannot be zero.\\n     */\\n    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n        require(b > 0, errorMessage);\\n        return a / b;\\n    }\\n\\n    /**\\n     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n     * reverting with custom message when dividing by zero.\\n     *\\n     * CAUTION: This function is deprecated because it requires allocating memory for the error\\n     * message unnecessarily. For custom revert reasons use {tryMod}.\\n     *\\n     * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n     * opcode (which leaves remaining gas untouched) while Solidity uses an\\n     * invalid opcode to revert (consuming all remaining gas).\\n     *\\n     * Requirements:\\n     *\\n     * - The divisor cannot be zero.\\n     */\\n    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n        require(b > 0, errorMessage);\\n        return a % b;\\n    }\\n}\\n\",\"keccak256\":\"0xcc78a17dd88fa5a2edc60c8489e2f405c0913b377216a5b26b35656b2d0dab52\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.2 <0.8.0;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n    /**\\n     * @dev Returns true if `account` is a contract.\\n     *\\n     * [IMPORTANT]\\n     * ====\\n     * It is unsafe to assume that an address for which this function returns\\n     * false is an externally-owned account (EOA) and not a contract.\\n     *\\n     * Among others, `isContract` will return false for the following\\n     * types of addresses:\\n     *\\n     *  - an externally-owned account\\n     *  - a contract in construction\\n     *  - an address where a contract will be created\\n     *  - an address where a contract lived, but was destroyed\\n     * ====\\n     */\\n    function isContract(address account) internal view returns (bool) {\\n        // This method relies on extcodesize, which returns 0 for contracts in\\n        // construction, since the code is only stored at the end of the\\n        // constructor execution.\\n\\n        uint256 size;\\n        // solhint-disable-next-line no-inline-assembly\\n        assembly { size := extcodesize(account) }\\n        return size > 0;\\n    }\\n\\n    /**\\n     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n     * `recipient`, forwarding all available gas and reverting on errors.\\n     *\\n     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n     * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n     * imposed by `transfer`, making them unable to receive funds via\\n     * `transfer`. {sendValue} removes this limitation.\\n     *\\n     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n     *\\n     * IMPORTANT: because control is transferred to `recipient`, care must be\\n     * taken to not create reentrancy vulnerabilities. Consider using\\n     * {ReentrancyGuard} or the\\n     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n     */\\n    function sendValue(address payable recipient, uint256 amount) internal {\\n        require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value\\n        (bool success, ) = recipient.call{ value: amount }(\\\"\\\");\\n        require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n    }\\n\\n    /**\\n     * @dev Performs a Solidity function call using a low level `call`. A\\n     * plain`call` is an unsafe replacement for a function call: use this\\n     * function instead.\\n     *\\n     * If `target` reverts with a revert reason, it is bubbled up by this\\n     * function (like regular Solidity function calls).\\n     *\\n     * Returns the raw returned data. To convert to the expected return value,\\n     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n     *\\n     * Requirements:\\n     *\\n     * - `target` must be a contract.\\n     * - calling `target` with `data` must not revert.\\n     *\\n     * _Available since v3.1._\\n     */\\n    function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n      return functionCall(target, data, \\\"Address: low-level call failed\\\");\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n     * `errorMessage` as a fallback revert reason when `target` reverts.\\n     *\\n     * _Available since v3.1._\\n     */\\n    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\\n        return functionCallWithValue(target, data, 0, errorMessage);\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n     * but also transferring `value` wei to `target`.\\n     *\\n     * Requirements:\\n     *\\n     * - the calling contract must have an ETH balance of at least `value`.\\n     * - the called Solidity function must be `payable`.\\n     *\\n     * _Available since v3.1._\\n     */\\n    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n        return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n     * with `errorMessage` as a fallback revert reason when `target` reverts.\\n     *\\n     * _Available since v3.1._\\n     */\\n    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {\\n        require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n        require(isContract(target), \\\"Address: call to non-contract\\\");\\n\\n        // solhint-disable-next-line avoid-low-level-calls\\n        (bool success, bytes memory returndata) = target.call{ value: value }(data);\\n        return _verifyCallResult(success, returndata, errorMessage);\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n     * but performing a static call.\\n     *\\n     * _Available since v3.3._\\n     */\\n    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n        return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n     * but performing a static call.\\n     *\\n     * _Available since v3.3._\\n     */\\n    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {\\n        require(isContract(target), \\\"Address: static call to non-contract\\\");\\n\\n        // solhint-disable-next-line avoid-low-level-calls\\n        (bool success, bytes memory returndata) = target.staticcall(data);\\n        return _verifyCallResult(success, returndata, errorMessage);\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n     * but performing a delegate call.\\n     *\\n     * _Available since v3.4._\\n     */\\n    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n        return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n     * but performing a delegate call.\\n     *\\n     * _Available since v3.4._\\n     */\\n    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\\n        require(isContract(target), \\\"Address: delegate call to non-contract\\\");\\n\\n        // solhint-disable-next-line avoid-low-level-calls\\n        (bool success, bytes memory returndata) = target.delegatecall(data);\\n        return _verifyCallResult(success, returndata, errorMessage);\\n    }\\n\\n    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {\\n        if (success) {\\n            return returndata;\\n        } else {\\n            // Look for revert reason and bubble it up if present\\n            if (returndata.length > 0) {\\n                // The easiest way to bubble the revert reason is using memory via assembly\\n\\n                // solhint-disable-next-line no-inline-assembly\\n                assembly {\\n                    let returndata_size := mload(returndata)\\n                    revert(add(32, returndata), returndata_size)\\n                }\\n            } else {\\n                revert(errorMessage);\\n            }\\n        }\\n    }\\n}\\n\",\"keccak256\":\"0x28911e614500ae7c607a432a709d35da25f3bc5ddc8bd12b278b66358070c0ea\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\n/*\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with GSN meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n    function _msgSender() internal view virtual returns (address payable) {\\n        return msg.sender;\\n    }\\n\\n    function _msgData() internal view virtual returns (bytes memory) {\\n        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\\n        return msg.data;\\n    }\\n}\\n\",\"keccak256\":\"0x8d3cb350f04ff49cfb10aef08d87f19dcbaecc8027b0bed12f3275cd12f38cf0\",\"license\":\"MIT\"},\"contracts/interfaces/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.6.12;\\n\\ninterface IERC20 {\\n    function totalSupply() external view returns (uint256);\\n\\n    function balanceOf(address account) external view returns (uint256);\\n\\n    function allowance(address owner, address spender)\\n        external\\n        view\\n        returns (uint256);\\n\\n    function approve(address spender, uint256 amount) external returns (bool);\\n\\n    event Transfer(address indexed from, address indexed to, uint256 value);\\n    event Approval(\\n        address indexed owner,\\n        address indexed spender,\\n        uint256 value\\n    );\\n\\n    // EIP 2612\\n    function permit(\\n        address owner,\\n        address spender,\\n        uint256 value,\\n        uint256 deadline,\\n        uint8 v,\\n        bytes32 r,\\n        bytes32 s\\n    ) external;\\n}\\n\",\"keccak256\":\"0x69d98987b34e1c4489410f3f5ffebfec3db42ace81cc5dcc338110f9b91deebe\",\"license\":\"MIT\"},\"contracts/interfaces/IRewarder.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity 0.6.12;\\nimport \\\"../libraries/SafeERC20.sol\\\";\\n\\ninterface IRewarder {\\n    using SafeERC20 for IERC20;\\n\\n    function onJoeReward(address user, uint256 newLpAmount) external;\\n\\n    function pendingTokens(address user)\\n        external\\n        view\\n        returns (uint256 pending);\\n\\n    function rewardToken() external view returns (IERC20);\\n}\\n\",\"keccak256\":\"0x7a58a68347f441b22952fb5a95692dc450e87a1e4bb6990cde15f3fb3590450a\",\"license\":\"MIT\"},\"contracts/libraries/SafeERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.6.12;\\n\\nimport \\\"../interfaces/IERC20.sol\\\";\\n\\nlibrary SafeERC20 {\\n    function safeSymbol(IERC20 token) internal view returns (string memory) {\\n        (bool success, bytes memory data) = address(token).staticcall(\\n            abi.encodeWithSelector(0x95d89b41)\\n        );\\n        return success && data.length > 0 ? abi.decode(data, (string)) : \\\"???\\\";\\n    }\\n\\n    function safeName(IERC20 token) internal view returns (string memory) {\\n        (bool success, bytes memory data) = address(token).staticcall(\\n            abi.encodeWithSelector(0x06fdde03)\\n        );\\n        return success && data.length > 0 ? abi.decode(data, (string)) : \\\"???\\\";\\n    }\\n\\n    function safeDecimals(IERC20 token) public view returns (uint8) {\\n        (bool success, bytes memory data) = address(token).staticcall(\\n            abi.encodeWithSelector(0x313ce567)\\n        );\\n        return success && data.length == 32 ? abi.decode(data, (uint8)) : 18;\\n    }\\n\\n    function safeTransfer(\\n        IERC20 token,\\n        address to,\\n        uint256 amount\\n    ) internal {\\n        (bool success, bytes memory data) = address(token).call(\\n            abi.encodeWithSelector(0xa9059cbb, to, amount)\\n        );\\n        require(\\n            success && (data.length == 0 || abi.decode(data, (bool))),\\n            \\\"SafeERC20: Transfer failed\\\"\\n        );\\n    }\\n\\n    function safeTransferFrom(\\n        IERC20 token,\\n        address from,\\n        uint256 amount\\n    ) internal {\\n        (bool success, bytes memory data) = address(token).call(\\n            abi.encodeWithSelector(0x23b872dd, from, address(this), amount)\\n        );\\n        require(\\n            success && (data.length == 0 || abi.decode(data, (bool))),\\n            \\\"SafeERC20: TransferFrom failed\\\"\\n        );\\n    }\\n}\\n\",\"keccak256\":\"0x2de3695a537aaeb3d66d54f5cc3ccfdd8da59de8df0c67069218f376a4aea3ff\",\"license\":\"MIT\"},\"contracts/rewarders/MasterChefRewarderPerBlock.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0\\npragma solidity ^0.6.12;\\npragma experimental ABIEncoderV2;\\n\\nimport \\\"@openzeppelin/contracts/math/SafeMath.sol\\\";\\nimport \\\"@openzeppelin/contracts/utils/Address.sol\\\";\\nimport \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\nimport \\\"../libraries/SafeERC20.sol\\\";\\nimport \\\"../interfaces/IRewarder.sol\\\";\\n\\n\\ninterface IMasterChef {\\n    struct PoolInfo {\\n        uint256 allocPoint; // How many allocation points assigned to this pool. JOE to distribute per block.\\n    }\\n\\n    function deposit(uint256 _pid, uint256 _amount) external;\\n\\n    function poolInfo(uint256 pid)\\n        external\\n        view\\n        returns (IMasterChef.PoolInfo memory);\\n\\n    function totalAllocPoint() external view returns (uint256);\\n}\\n\\ninterface IMasterChefJoeV2 {\\n    using SafeERC20 for IERC20;\\n\\n    struct UserInfo {\\n        uint256 amount; // How many LP tokens the user has provided.\\n        uint256 rewardDebt; // Reward debt. See explanation below.\\n    }\\n\\n    struct PoolInfo {\\n        IERC20 lpToken; // Address of LP token contract.\\n        uint256 allocPoint; // How many allocation points assigned to this poolInfo. SUSHI to distribute per block.\\n        uint256 lastRewardTimestamp; // Last block number that SUSHI distribution occurs.\\n        uint256 accJoePerShare; // Accumulated SUSHI per share, times 1e12. See below.\\n    }\\n\\n    function poolInfo(uint256 pid) external view returns (PoolInfo memory);\\n\\n    function totalAllocPoint() external view returns (uint256);\\n\\n    function deposit(uint256 _pid, uint256 _amount) external;\\n}\\n\\n/**\\n * This is a sample contract to be used in the MasterChefJoeV2 contract for partners to reward\\n * stakers with their native token alongside JOE.\\n *\\n * It assumes the project already has an existing MasterChef-style farm contract.\\n * In which case, the init() function is called to deposit a dummy token into one\\n * of the MasterChef farms so this contract can accrue rewards from that farm.\\n * The contract then transfers the reward token to the user on each call to\\n * onJoeReward().\\n *\\n */\\ncontract MasterChefRewarderPerBlock is IRewarder, Ownable {\\n    using SafeMath for uint256;\\n    using SafeERC20 for IERC20;\\n\\n    IERC20 public immutable override rewardToken;\\n    IERC20 public immutable lpToken;\\n    uint256 public immutable MCV1_pid;\\n    IMasterChef public immutable MCV1;\\n    IMasterChefJoeV2 public immutable MCV2;\\n\\n    /// @notice Info of each MCV2 user.\\n    /// `amount` LP token amount the user has provided.\\n    /// `rewardDebt` The amount of JOE entitled to the user.\\n    struct UserInfo {\\n        uint256 amount;\\n        uint256 rewardDebt;\\n    }\\n\\n    /// @notice Info of each MCV2 poolInfo.\\n    /// `accTokenPerShare` Amount of JOE each LP token is worth.\\n    /// `lastRewardBlock` The last block JOE was rewarded to the poolInfo.\\n    struct PoolInfo {\\n        uint256 accTokenPerShare;\\n        uint256 lastRewardBlock;\\n        uint256 allocPoint;\\n    }\\n\\n    /// @notice Info of the poolInfo.\\n    PoolInfo public poolInfo;\\n    /// @notice Info of each user that stakes LP tokens.\\n    mapping(address => UserInfo) public userInfo;\\n\\n    uint256 public tokenPerBlock;\\n    uint256 private constant ACC_TOKEN_PRECISION = 1e12;\\n\\n    event OnReward(address indexed user, uint256 amount);\\n    event RewardRateUpdated(uint256 oldRate, uint256 newRate);\\n    event AllocPointUpdated(uint256 oldAllocPoint, uint256 newAllocPoint);\\n\\n    modifier onlyMCV2 {\\n        require(\\n            msg.sender == address(MCV2),\\n            \\\"onlyMCV2: only MasterChef V2 can call this function\\\"\\n        );\\n        _;\\n    }\\n\\n    constructor(\\n        IERC20 _rewardToken,\\n        IERC20 _lpToken,\\n        uint256 _tokenPerBlock,\\n        uint256 _allocPoint,\\n        uint256 _MCV1_pid,\\n        IMasterChef _MCV1,\\n        IMasterChefJoeV2 _MCV2\\n    ) public {\\n        require(\\n            Address.isContract(address(_rewardToken)),\\n            \\\"constructor: reward token must be a valid contract\\\"\\n        );\\n        require(\\n            Address.isContract(address(_lpToken)),\\n            \\\"constructor: LP token must be a valid contract\\\"\\n        );\\n        require(\\n            Address.isContract(address(_MCV1)),\\n            \\\"constructor: MasterChef must be a valid contract\\\"\\n        );\\n        require(\\n            Address.isContract(address(_MCV2)),\\n            \\\"constructor: MasterChefJoeV2 must be a valid contract\\\"\\n        );\\n\\n        rewardToken = _rewardToken;\\n        lpToken = _lpToken;\\n        tokenPerBlock = _tokenPerBlock;\\n        MCV1_pid = _MCV1_pid;\\n        MCV1 = _MCV1;\\n        MCV2 = _MCV2;\\n        poolInfo = PoolInfo({\\n            lastRewardBlock: block.number,\\n            accTokenPerShare: 0,\\n            allocPoint: _allocPoint\\n        });\\n    }\\n\\n    /// @notice Deposits a dummy token to a MaterChefV1 farm so that this contract can claim reward tokens.\\n    /// @param dummyToken The address of the dummy ERC20 token to deposit into MCV1.\\n    function init(IERC20 dummyToken) external {\\n        uint256 balance = dummyToken.balanceOf(msg.sender);\\n        require(balance > 0, \\\"init: Balance must exceed 0\\\");\\n        dummyToken.safeTransferFrom(msg.sender, balance);\\n        dummyToken.approve(address(MCV1), balance);\\n        MCV1.deposit(MCV1_pid, balance);\\n    }\\n\\n    /// @notice Update reward variables of the given poolInfo.\\n    /// @return pool Returns the pool that was updated.\\n    function updatePool() public returns (PoolInfo memory pool) {\\n        pool = poolInfo;\\n\\n        if (block.number > pool.lastRewardBlock) {\\n            uint256 lpSupply = lpToken.balanceOf(address(MCV2));\\n\\n            if (lpSupply > 0) {\\n                uint256 blocks = block.number.sub(pool.lastRewardBlock);\\n                uint256 tokenReward = blocks\\n                .mul(tokenPerBlock)\\n                .mul(pool.allocPoint)\\n                .div(MCV1.totalAllocPoint());\\n                pool.accTokenPerShare = pool.accTokenPerShare.add(\\n                    (tokenReward.mul(ACC_TOKEN_PRECISION) / lpSupply)\\n                );\\n            }\\n\\n            pool.lastRewardBlock = block.number;\\n            poolInfo = pool;\\n        }\\n    }\\n\\n    /// @notice Sets the distribution reward rate. This will also update the poolInfo.\\n    /// @param _tokenPerBlock The number of tokens to distribute per block\\n    function setRewardRate(uint256 _tokenPerBlock) external onlyOwner {\\n        updatePool();\\n\\n        uint256 oldRate = tokenPerBlock;\\n        tokenPerBlock = _tokenPerBlock;\\n\\n        emit RewardRateUpdated(oldRate, _tokenPerBlock);\\n    }\\n\\n    /// @notice Sets the allocation point. THis will also update the poolInfo.\\n    /// @param _allocPoint The new allocation point of the pool\\n    function setAllocPoint(uint256 _allocPoint) external onlyOwner {\\n        updatePool();\\n\\n        uint256 oldAllocPoint = poolInfo.allocPoint;\\n        poolInfo.allocPoint = _allocPoint;\\n\\n        emit AllocPointUpdated(oldAllocPoint, _allocPoint);\\n    }\\n\\n    /// @notice Claims reward tokens from MCV1 farm.\\n    function harvestFromMasterChefV1() public {\\n        MCV1.deposit(MCV1_pid, 0);\\n    }\\n\\n    /// @notice Function called by MasterChefJoeV2 whenever staker claims JOE harvest. Allows staker to also receive a 2nd reward token.\\n    /// @param _user Address of user\\n    /// @param _lpAmount Number of LP tokens the user has\\n    function onJoeReward(address _user, uint256 _lpAmount)\\n        external\\n        override\\n        onlyMCV2\\n    {\\n        updatePool();\\n        PoolInfo memory pool = poolInfo;\\n        UserInfo storage user = userInfo[_user];\\n        uint256 pendingBal;\\n        // if user had deposited\\n        if (user.amount > 0) {\\n            harvestFromMasterChefV1();\\n            pendingBal = (user.amount.mul(pool.accTokenPerShare) /\\n                ACC_TOKEN_PRECISION)\\n            .sub(user.rewardDebt);\\n            uint256 rewardBal = rewardToken.balanceOf(address(this));\\n            if (pendingBal > rewardBal) {\\n                rewardToken.safeTransfer(_user, rewardBal);\\n            } else {\\n                rewardToken.safeTransfer(_user, pendingBal);\\n            }\\n        }\\n\\n        user.amount = _lpAmount;\\n        user.rewardDebt =\\n            user.amount.mul(pool.accTokenPerShare) /\\n            ACC_TOKEN_PRECISION;\\n\\n        emit OnReward(_user, pendingBal);\\n    }\\n\\n    /// @notice View function to see pending tokens\\n    /// @param _user Address of user.\\n    /// @return pending reward for a given user.\\n    function pendingTokens(address _user)\\n        external\\n        view\\n        override\\n        returns (uint256 pending)\\n    {\\n        PoolInfo memory pool = poolInfo;\\n        UserInfo storage user = userInfo[_user];\\n\\n        uint256 accTokenPerShare = pool.accTokenPerShare;\\n        uint256 lpSupply = lpToken.balanceOf(address(MCV2));\\n\\n        if (block.number > pool.lastRewardBlock && lpSupply != 0) {\\n            uint256 blocks = block.number.sub(pool.lastRewardBlock);\\n            uint256 tokenReward = blocks\\n            .mul(tokenPerBlock)\\n            .mul(pool.allocPoint)\\n            .div(MCV1.totalAllocPoint());\\n            accTokenPerShare = accTokenPerShare.add(\\n                tokenReward.mul(ACC_TOKEN_PRECISION) / lpSupply\\n            );\\n        }\\n\\n        pending = (user.amount.mul(accTokenPerShare) / ACC_TOKEN_PRECISION).sub(\\n            user.rewardDebt\\n        );\\n    }\\n}\\n\",\"keccak256\":\"0xda5b897a328deaee23978fb65fb3e22001505a2392d45713ea3732d2489a5dac\",\"license\":\"GPL-3.0\"}},\"version\":1}",
  "bytecode": "0x6101206040523480156200001257600080fd5b5060405162001a1a38038062001a1a8339810160408190526200003591620001d9565b600062000041620001cf565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620000a187620001d360201b62000ee31760201c565b620000c95760405162461bcd60e51b8152600401620000c0906200030d565b60405180910390fd5b620000df86620001d360201b62000ee31760201c565b620000fe5760405162461bcd60e51b8152600401620000c0906200035f565b6200011482620001d360201b62000ee31760201c565b620001335760405162461bcd60e51b8152600401620000c09062000260565b6200014981620001d360201b62000ee31760201c565b620001685760405162461bcd60e51b8152600401620000c090620002b0565b6001600160601b0319606097881b811660805295871b861660a05260059490945560c091909152841b831660e05290831b909116610100526040805192830181526000808452436020850181905293909101829052600155600291909155600355620003c6565b3390565b3b151590565b600080600080600080600060e0888a031215620001f4578283fd5b87516200020181620003ad565b60208901519097506200021481620003ad565b8096505060408801519450606088015193506080880151925060a08801516200023d81620003ad565b60c08901519092506200025081620003ad565b8091505092959891949750929550565b60208082526030908201527f636f6e7374727563746f723a204d617374657243686566206d7573742062652060408201526f18481d985b1a590818dbdb9d1c9858dd60821b606082015260800190565b60208082526035908201527f636f6e7374727563746f723a204d6173746572436865664a6f655632206d757360408201527f7420626520612076616c696420636f6e74726163740000000000000000000000606082015260800190565b60208082526032908201527f636f6e7374727563746f723a2072657761726420746f6b656e206d7573742062604082015271194818481d985b1a590818dbdb9d1c9858dd60721b606082015260800190565b6020808252602e908201527f636f6e7374727563746f723a204c5020746f6b656e206d75737420626520612060408201526d1d985b1a590818dbdb9d1c9858dd60921b606082015260800190565b6001600160a01b0381168114620003c357600080fd5b50565b60805160601c60a05160601c60c05160e05160601c6101005160601c6115bd6200045d6000398061046e528061098f5280610c465280610e9d52508061034252806103d652806106d352806108e25280610a405280610ce85250806104035280610700528061082052508061077352806109625280610c1952508061053b52806105ec52806106255280610ec152506115bd6000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80638da5cb5b116100a2578063e0747c9611610071578063e0747c96146101fc578063e3161ddd1461020f578063f2fde38b14610224578063f499b78e14610237578063f7c618c11461023f57610116565b80638da5cb5b146101c65780639e447fc6146101ce578063a04886c5146101e1578063c031a66f146101e957610116565b80634198709a116100e95780634198709a146101755780635a2f3d091461018a5780635fcbd285146101a1578063715018a6146101b6578063752808ea146101be57610116565b80631959a0021461011b57806319ab453c146101455780631a7af8b01461015a57806320b798841461016d575b600080fd5b61012e6101293660046111a7565b610247565b60405161013c92919061154b565b60405180910390f35b6101586101533660046111a7565b610260565b005b6101586101683660046111c3565b610463565b6101586106bc565b61017d61075f565b60405161013c9190611542565b610192610765565b60405161013c93929190611559565b6101a9610771565b60405161013c9190611277565b610158610795565b61017d61081e565b6101a9610842565b6101586101dc36600461120e565b610852565b6101a96108e0565b61017d6101f73660046111a7565b610904565b61015861020a36600461120e565b610b49565b610217610bcb565b60405161013c9190611521565b6101586102323660046111a7565b610ddb565b6101a9610e9b565b6101a9610ebf565b6004602052600090815260409020805460019091015482565b6040516370a0823160e01b81526000906001600160a01b038316906370a082319061028f903390600401611277565b60206040518083038186803b1580156102a757600080fd5b505afa1580156102bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102df9190611226565b90506000811161030a5760405162461bcd60e51b8152600401610301906114ea565b60405180910390fd5b61031e6001600160a01b0383163383610ee9565b60405163095ea7b360e01b81526001600160a01b0383169063095ea7b39061036c907f00000000000000000000000000000000000000000000000000000000000000009085906004016112af565b602060405180830381600087803b15801561038657600080fd5b505af115801561039a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103be91906111ee565b50604051631c57762b60e31b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063e2bbb1589061042d907f000000000000000000000000000000000000000000000000000000000000000090859060040161154b565b600060405180830381600087803b15801561044757600080fd5b505af115801561045b573d6000803e3d6000fd5b505050505050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146104ab5760405162461bcd60e51b81526004016103019061130e565b6104b3610bcb565b506104bc611186565b50604080516060810182526001548152600254602080830191909152600354828401526001600160a01b038516600090815260049091529182208054919290911561064e576105096106bc565b600182015483518354610535929164e8d4a510009161052791610fd9565b8161052e57fe5b049061101c565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016105859190611277565b60206040518083038186803b15801561059d57600080fd5b505afa1580156105b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d59190611226565b905080821115610618576106136001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168783611044565b61064c565b61064c6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168784611044565b505b838255825164e8d4a5100090610665908690610fd9565b8161066c57fe5b0460018301556040516001600160a01b038616907fd1072bb52c3131d0c96197b73fb8a45637e30f8b6664fc142310cc9b242859b4906106ad908490611542565b60405180910390a25050505050565b604051631c57762b60e31b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063e2bbb1589061072b907f00000000000000000000000000000000000000000000000000000000000000009060009060040161154b565b600060405180830381600087803b15801561074557600080fd5b505af1158015610759573d6000803e3d6000fd5b50505050565b60055481565b60015460025460035483565b7f000000000000000000000000000000000000000000000000000000000000000081565b61079d61112b565b6001600160a01b03166107ae610842565b6001600160a01b0316146107d45760405162461bcd60e51b81526004016103019061147e565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b03165b90565b61085a61112b565b6001600160a01b031661086b610842565b6001600160a01b0316146108915760405162461bcd60e51b81526004016103019061147e565b610899610bcb565b5060058054908290556040517fc390a98ace15a7bb6bab611eedfdbb2685043b241a869420043cdfb23ccfee50906108d4908390859061154b565b60405180910390a15050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600061090e611186565b50604080516060810182526001548152600254602080830191909152600354828401526001600160a01b038086166000908152600492839052848120845195516370a0823160e01b815294959094909391927f000000000000000000000000000000000000000000000000000000000000000016916370a08231916109b5917f00000000000000000000000000000000000000000000000000000000000000009101611277565b60206040518083038186803b1580156109cd57600080fd5b505afa1580156109e1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a059190611226565b9050836020015143118015610a1957508015155b15610b22576000610a3785602001514361101c90919063ffffffff16565b90506000610af87f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166317caf6f16040518163ffffffff1660e01b815260040160206040518083038186803b158015610a9757600080fd5b505afa158015610aab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acf9190611226565b610af28860400151610aec60055487610fd990919063ffffffff16565b90610fd9565b9061112f565b9050610b1d83610b0d8364e8d4a51000610fd9565b81610b1457fe5b86919004611161565b935050505b60018301548354610b3f919064e8d4a51000906105279086610fd9565b9695505050505050565b610b5161112b565b6001600160a01b0316610b62610842565b6001600160a01b031614610b885760405162461bcd60e51b81526004016103019061147e565b610b90610bcb565b5060038054908290556040517f3adb12b11b33d949ac66dd255b1c9b9ef6afba0b8aa8b5d0158aee49c6fac964906108d4908390859061154b565b610bd3611186565b5060408051606081018252600154815260025460208201819052600354928201929092529043111561084f576040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190610c6e907f000000000000000000000000000000000000000000000000000000000000000090600401611277565b60206040518083038186803b158015610c8657600080fd5b505afa158015610c9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cbe9190611226565b90508015610dbf576000610cdf83602001514361101c90919063ffffffff16565b90506000610d947f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166317caf6f16040518163ffffffff1660e01b815260040160206040518083038186803b158015610d3f57600080fd5b505afa158015610d53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d779190611226565b610af28660400151610aec60055487610fd990919063ffffffff16565b9050610dba83610da98364e8d4a51000610fd9565b81610db057fe5b8651919004611161565b845250505b5043602082018190528151600155600255604081015160035590565b610de361112b565b6001600160a01b0316610df4610842565b6001600160a01b031614610e1a5760405162461bcd60e51b81526004016103019061147e565b6001600160a01b038116610e405760405162461bcd60e51b8152600401610301906112c8565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b3b151590565b60006060846001600160a01b03166323b872dd853086604051602401610f119392919061128b565b6040516020818303038152906040529060e01b6020820180516001600160e01b038381831617835250505050604051610f4a919061123e565b6000604051808303816000865af19150503d8060008114610f87576040519150601f19603f3d011682016040523d82523d6000602084013e610f8c565b606091505b5091509150818015610fb6575080511580610fb6575080806020019051810190610fb691906111ee565b610fd25760405162461bcd60e51b815260040161030190611406565b5050505050565b600082610fe857506000611016565b82820282848281610ff557fe5b04146110135760405162461bcd60e51b81526004016103019061143d565b90505b92915050565b60008282111561103e5760405162461bcd60e51b815260040161030190611398565b50900390565b60006060846001600160a01b031663a9059cbb858560405160240161106a9291906112af565b6040516020818303038152906040529060e01b6020820180516001600160e01b0383818316178352505050506040516110a3919061123e565b6000604051808303816000865af19150503d80600081146110e0576040519150601f19603f3d011682016040523d82523d6000602084013e6110e5565b606091505b509150915081801561110f57508051158061110f57508080602001905181019061110f91906111ee565b610fd25760405162461bcd60e51b8152600401610301906114b3565b3390565b60008082116111505760405162461bcd60e51b8152600401610301906113cf565b81838161115957fe5b049392505050565b6000828201838110156110135760405162461bcd60e51b815260040161030190611361565b60405180606001604052806000815260200160008152602001600081525090565b6000602082840312156111b8578081fd5b81356110138161156f565b600080604083850312156111d5578081fd5b82356111e08161156f565b946020939093013593505050565b6000602082840312156111ff578081fd5b81518015158114611013578182fd5b60006020828403121561121f578081fd5b5035919050565b600060208284031215611237578081fd5b5051919050565b60008251815b8181101561125e5760208186018101518583015201611244565b8181111561126c5782828501525b509190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526033908201527f6f6e6c794d4356323a206f6e6c79204d6173746572436865662056322063616e6040820152721031b0b636103a3434b990333ab731ba34b7b760691b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b6020808252601a908201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604082015260600190565b6020808252601e908201527f5361666545524332303a205472616e7366657246726f6d206661696c65640000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601a908201527f5361666545524332303a205472616e73666572206661696c6564000000000000604082015260600190565b6020808252601b908201527f696e69743a2042616c616e6365206d7573742065786365656420300000000000604082015260600190565b81518152602080830151908201526040918201519181019190915260600190565b90815260200190565b918252602082015260400190565b9283526020830191909152604082015260600190565b6001600160a01b038116811461158457600080fd5b5056fea26469706673582212202b79480377a175572194c1db6f0bfb8354a675f72bc74dbd21ec5811aeac82a764736f6c634300060c0033",
  "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101165760003560e01c80638da5cb5b116100a2578063e0747c9611610071578063e0747c96146101fc578063e3161ddd1461020f578063f2fde38b14610224578063f499b78e14610237578063f7c618c11461023f57610116565b80638da5cb5b146101c65780639e447fc6146101ce578063a04886c5146101e1578063c031a66f146101e957610116565b80634198709a116100e95780634198709a146101755780635a2f3d091461018a5780635fcbd285146101a1578063715018a6146101b6578063752808ea146101be57610116565b80631959a0021461011b57806319ab453c146101455780631a7af8b01461015a57806320b798841461016d575b600080fd5b61012e6101293660046111a7565b610247565b60405161013c92919061154b565b60405180910390f35b6101586101533660046111a7565b610260565b005b6101586101683660046111c3565b610463565b6101586106bc565b61017d61075f565b60405161013c9190611542565b610192610765565b60405161013c93929190611559565b6101a9610771565b60405161013c9190611277565b610158610795565b61017d61081e565b6101a9610842565b6101586101dc36600461120e565b610852565b6101a96108e0565b61017d6101f73660046111a7565b610904565b61015861020a36600461120e565b610b49565b610217610bcb565b60405161013c9190611521565b6101586102323660046111a7565b610ddb565b6101a9610e9b565b6101a9610ebf565b6004602052600090815260409020805460019091015482565b6040516370a0823160e01b81526000906001600160a01b038316906370a082319061028f903390600401611277565b60206040518083038186803b1580156102a757600080fd5b505afa1580156102bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102df9190611226565b90506000811161030a5760405162461bcd60e51b8152600401610301906114ea565b60405180910390fd5b61031e6001600160a01b0383163383610ee9565b60405163095ea7b360e01b81526001600160a01b0383169063095ea7b39061036c907f00000000000000000000000000000000000000000000000000000000000000009085906004016112af565b602060405180830381600087803b15801561038657600080fd5b505af115801561039a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103be91906111ee565b50604051631c57762b60e31b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063e2bbb1589061042d907f000000000000000000000000000000000000000000000000000000000000000090859060040161154b565b600060405180830381600087803b15801561044757600080fd5b505af115801561045b573d6000803e3d6000fd5b505050505050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146104ab5760405162461bcd60e51b81526004016103019061130e565b6104b3610bcb565b506104bc611186565b50604080516060810182526001548152600254602080830191909152600354828401526001600160a01b038516600090815260049091529182208054919290911561064e576105096106bc565b600182015483518354610535929164e8d4a510009161052791610fd9565b8161052e57fe5b049061101c565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016105859190611277565b60206040518083038186803b15801561059d57600080fd5b505afa1580156105b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d59190611226565b905080821115610618576106136001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168783611044565b61064c565b61064c6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168784611044565b505b838255825164e8d4a5100090610665908690610fd9565b8161066c57fe5b0460018301556040516001600160a01b038616907fd1072bb52c3131d0c96197b73fb8a45637e30f8b6664fc142310cc9b242859b4906106ad908490611542565b60405180910390a25050505050565b604051631c57762b60e31b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063e2bbb1589061072b907f00000000000000000000000000000000000000000000000000000000000000009060009060040161154b565b600060405180830381600087803b15801561074557600080fd5b505af1158015610759573d6000803e3d6000fd5b50505050565b60055481565b60015460025460035483565b7f000000000000000000000000000000000000000000000000000000000000000081565b61079d61112b565b6001600160a01b03166107ae610842565b6001600160a01b0316146107d45760405162461bcd60e51b81526004016103019061147e565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b03165b90565b61085a61112b565b6001600160a01b031661086b610842565b6001600160a01b0316146108915760405162461bcd60e51b81526004016103019061147e565b610899610bcb565b5060058054908290556040517fc390a98ace15a7bb6bab611eedfdbb2685043b241a869420043cdfb23ccfee50906108d4908390859061154b565b60405180910390a15050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600061090e611186565b50604080516060810182526001548152600254602080830191909152600354828401526001600160a01b038086166000908152600492839052848120845195516370a0823160e01b815294959094909391927f000000000000000000000000000000000000000000000000000000000000000016916370a08231916109b5917f00000000000000000000000000000000000000000000000000000000000000009101611277565b60206040518083038186803b1580156109cd57600080fd5b505afa1580156109e1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a059190611226565b9050836020015143118015610a1957508015155b15610b22576000610a3785602001514361101c90919063ffffffff16565b90506000610af87f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166317caf6f16040518163ffffffff1660e01b815260040160206040518083038186803b158015610a9757600080fd5b505afa158015610aab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acf9190611226565b610af28860400151610aec60055487610fd990919063ffffffff16565b90610fd9565b9061112f565b9050610b1d83610b0d8364e8d4a51000610fd9565b81610b1457fe5b86919004611161565b935050505b60018301548354610b3f919064e8d4a51000906105279086610fd9565b9695505050505050565b610b5161112b565b6001600160a01b0316610b62610842565b6001600160a01b031614610b885760405162461bcd60e51b81526004016103019061147e565b610b90610bcb565b5060038054908290556040517f3adb12b11b33d949ac66dd255b1c9b9ef6afba0b8aa8b5d0158aee49c6fac964906108d4908390859061154b565b610bd3611186565b5060408051606081018252600154815260025460208201819052600354928201929092529043111561084f576040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190610c6e907f000000000000000000000000000000000000000000000000000000000000000090600401611277565b60206040518083038186803b158015610c8657600080fd5b505afa158015610c9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cbe9190611226565b90508015610dbf576000610cdf83602001514361101c90919063ffffffff16565b90506000610d947f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166317caf6f16040518163ffffffff1660e01b815260040160206040518083038186803b158015610d3f57600080fd5b505afa158015610d53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d779190611226565b610af28660400151610aec60055487610fd990919063ffffffff16565b9050610dba83610da98364e8d4a51000610fd9565b81610db057fe5b8651919004611161565b845250505b5043602082018190528151600155600255604081015160035590565b610de361112b565b6001600160a01b0316610df4610842565b6001600160a01b031614610e1a5760405162461bcd60e51b81526004016103019061147e565b6001600160a01b038116610e405760405162461bcd60e51b8152600401610301906112c8565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b3b151590565b60006060846001600160a01b03166323b872dd853086604051602401610f119392919061128b565b6040516020818303038152906040529060e01b6020820180516001600160e01b038381831617835250505050604051610f4a919061123e565b6000604051808303816000865af19150503d8060008114610f87576040519150601f19603f3d011682016040523d82523d6000602084013e610f8c565b606091505b5091509150818015610fb6575080511580610fb6575080806020019051810190610fb691906111ee565b610fd25760405162461bcd60e51b815260040161030190611406565b5050505050565b600082610fe857506000611016565b82820282848281610ff557fe5b04146110135760405162461bcd60e51b81526004016103019061143d565b90505b92915050565b60008282111561103e5760405162461bcd60e51b815260040161030190611398565b50900390565b60006060846001600160a01b031663a9059cbb858560405160240161106a9291906112af565b6040516020818303038152906040529060e01b6020820180516001600160e01b0383818316178352505050506040516110a3919061123e565b6000604051808303816000865af19150503d80600081146110e0576040519150601f19603f3d011682016040523d82523d6000602084013e6110e5565b606091505b509150915081801561110f57508051158061110f57508080602001905181019061110f91906111ee565b610fd25760405162461bcd60e51b8152600401610301906114b3565b3390565b60008082116111505760405162461bcd60e51b8152600401610301906113cf565b81838161115957fe5b049392505050565b6000828201838110156110135760405162461bcd60e51b815260040161030190611361565b60405180606001604052806000815260200160008152602001600081525090565b6000602082840312156111b8578081fd5b81356110138161156f565b600080604083850312156111d5578081fd5b82356111e08161156f565b946020939093013593505050565b6000602082840312156111ff578081fd5b81518015158114611013578182fd5b60006020828403121561121f578081fd5b5035919050565b600060208284031215611237578081fd5b5051919050565b60008251815b8181101561125e5760208186018101518583015201611244565b8181111561126c5782828501525b509190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526033908201527f6f6e6c794d4356323a206f6e6c79204d6173746572436865662056322063616e6040820152721031b0b636103a3434b990333ab731ba34b7b760691b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b6020808252601a908201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604082015260600190565b6020808252601e908201527f5361666545524332303a205472616e7366657246726f6d206661696c65640000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601a908201527f5361666545524332303a205472616e73666572206661696c6564000000000000604082015260600190565b6020808252601b908201527f696e69743a2042616c616e6365206d7573742065786365656420300000000000604082015260600190565b81518152602080830151908201526040918201519181019190915260600190565b90815260200190565b918252602082015260400190565b9283526020830191909152604082015260600190565b6001600160a01b038116811461158457600080fd5b5056fea26469706673582212202b79480377a175572194c1db6f0bfb8354a675f72bc74dbd21ec5811aeac82a764736f6c634300060c0033",
  "devdoc": {
    "kind": "dev",
    "methods": {
      "init(address)": {
        "params": {
          "dummyToken": "The address of the dummy ERC20 token to deposit into MCV1."
        }
      },
      "onJoeReward(address,uint256)": {
        "params": {
          "_lpAmount": "Number of LP tokens the user has",
          "_user": "Address of user"
        }
      },
      "owner()": {
        "details": "Returns the address of the current owner."
      },
      "pendingTokens(address)": {
        "params": {
          "_user": "Address of user."
        },
        "returns": {
          "pending": "reward for a given user."
        }
      },
      "renounceOwnership()": {
        "details": "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."
      },
      "setAllocPoint(uint256)": {
        "params": {
          "_allocPoint": "The new allocation point of the pool"
        }
      },
      "setRewardRate(uint256)": {
        "params": {
          "_tokenPerBlock": "The number of tokens to distribute per block"
        }
      },
      "transferOwnership(address)": {
        "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
      },
      "updatePool()": {
        "returns": {
          "pool": "Returns the pool that was updated."
        }
      }
    },
    "version": 1
  },
  "userdoc": {
    "kind": "user",
    "methods": {
      "harvestFromMasterChefV1()": {
        "notice": "Claims reward tokens from MCV1 farm."
      },
      "init(address)": {
        "notice": "Deposits a dummy token to a MaterChefV1 farm so that this contract can claim reward tokens."
      },
      "onJoeReward(address,uint256)": {
        "notice": "Function called by MasterChefJoeV2 whenever staker claims JOE harvest. Allows staker to also receive a 2nd reward token."
      },
      "pendingTokens(address)": {
        "notice": "View function to see pending tokens"
      },
      "poolInfo()": {
        "notice": "Info of the poolInfo."
      },
      "setAllocPoint(uint256)": {
        "notice": "Sets the allocation point. THis will also update the poolInfo."
      },
      "setRewardRate(uint256)": {
        "notice": "Sets the distribution reward rate. This will also update the poolInfo."
      },
      "updatePool()": {
        "notice": "Update reward variables of the given poolInfo."
      },
      "userInfo(address)": {
        "notice": "Info of each user that stakes LP tokens."
      }
    },
    "notice": "This is a sample contract to be used in the MasterChefJoeV2 contract for partners to reward stakers with their native token alongside JOE. It assumes the project already has an existing MasterChef-style farm contract. In which case, the init() function is called to deposit a dummy token into one of the MasterChef farms so this contract can accrue rewards from that farm. The contract then transfers the reward token to the user on each call to onJoeReward().",
    "version": 1
  },
  "storageLayout": {
    "storage": [
      {
        "astId": 253,
        "contract": "contracts/rewarders/MasterChefRewarderPerBlock.sol:MasterChefRewarderPerBlock",
        "label": "_owner",
        "offset": 0,
        "slot": "0",
        "type": "t_address"
      },
      {
        "astId": 14931,
        "contract": "contracts/rewarders/MasterChefRewarderPerBlock.sol:MasterChefRewarderPerBlock",
        "label": "poolInfo",
        "offset": 0,
        "slot": "1",
        "type": "t_struct(PoolInfo)14928_storage"
      },
      {
        "astId": 14936,
        "contract": "contracts/rewarders/MasterChefRewarderPerBlock.sol:MasterChefRewarderPerBlock",
        "label": "userInfo",
        "offset": 0,
        "slot": "4",
        "type": "t_mapping(t_address,t_struct(UserInfo)14921_storage)"
      },
      {
        "astId": 14938,
        "contract": "contracts/rewarders/MasterChefRewarderPerBlock.sol:MasterChefRewarderPerBlock",
        "label": "tokenPerBlock",
        "offset": 0,
        "slot": "5",
        "type": "t_uint256"
      }
    ],
    "types": {
      "t_address": {
        "encoding": "inplace",
        "label": "address",
        "numberOfBytes": "20"
      },
      "t_mapping(t_address,t_struct(UserInfo)14921_storage)": {
        "encoding": "mapping",
        "key": "t_address",
        "label": "mapping(address => struct MasterChefRewarderPerBlock.UserInfo)",
        "numberOfBytes": "32",
        "value": "t_struct(UserInfo)14921_storage"
      },
      "t_struct(PoolInfo)14928_storage": {
        "encoding": "inplace",
        "label": "struct MasterChefRewarderPerBlock.PoolInfo",
        "members": [
          {
            "astId": 14923,
            "contract": "contracts/rewarders/MasterChefRewarderPerBlock.sol:MasterChefRewarderPerBlock",
            "label": "accTokenPerShare",
            "offset": 0,
            "slot": "0",
            "type": "t_uint256"
          },
          {
            "astId": 14925,
            "contract": "contracts/rewarders/MasterChefRewarderPerBlock.sol:MasterChefRewarderPerBlock",
            "label": "lastRewardBlock",
            "offset": 0,
            "slot": "1",
            "type": "t_uint256"
          },
          {
            "astId": 14927,
            "contract": "contracts/rewarders/MasterChefRewarderPerBlock.sol:MasterChefRewarderPerBlock",
            "label": "allocPoint",
            "offset": 0,
            "slot": "2",
            "type": "t_uint256"
          }
        ],
        "numberOfBytes": "96"
      },
      "t_struct(UserInfo)14921_storage": {
        "encoding": "inplace",
        "label": "struct MasterChefRewarderPerBlock.UserInfo",
        "members": [
          {
            "astId": 14918,
            "contract": "contracts/rewarders/MasterChefRewarderPerBlock.sol:MasterChefRewarderPerBlock",
            "label": "amount",
            "offset": 0,
            "slot": "0",
            "type": "t_uint256"
          },
          {
            "astId": 14920,
            "contract": "contracts/rewarders/MasterChefRewarderPerBlock.sol:MasterChefRewarderPerBlock",
            "label": "rewardDebt",
            "offset": 0,
            "slot": "1",
            "type": "t_uint256"
          }
        ],
        "numberOfBytes": "64"
      },
      "t_uint256": {
        "encoding": "inplace",
        "label": "uint256",
        "numberOfBytes": "32"
      }
    }
  }
}