Contract 0x8f3d73b9e07b495ea99db134359a93e7cffdee04

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xa3765f068dd60bf20ff92752b8b550866e92d19ac7f4122142a42f9a28291f57Harvest176137572021-08-04 13:32:0346 days 22 hrs ago0x1c8915f70850873a03df2d6cdba71b226bcdfeb3 IN  0x8f3d73b9e07b495ea99db134359a93e7cffdee040 MATIC0.001270522
0x37f4f4f6ca2b3a7a1a6c1c30f6bf0e6b33bd7b418b8620fbd53a3b31785df038Harvest176035042021-08-04 7:19:5247 days 4 hrs ago0x1c8915f70850873a03df2d6cdba71b226bcdfeb3 IN  0x8f3d73b9e07b495ea99db134359a93e7cffdee040 MATIC0.001270542
0xa3f2a8c3f16a3bdbae4d1d3eb315e5fc3dc5b1d978af4d6ff03c0e7bed9d7f6fHarvest175462582021-08-02 20:20:1048 days 15 hrs ago0x3831d812f87814b2203615d1bf1a647d1c1816c5 IN  0x8f3d73b9e07b495ea99db134359a93e7cffdee040 MATIC0.001582722
0x3942dc8acd1d8eb3965f2b4b23c5b7fcec03c606accb64ca2cb5df22b27016baHarvest175116212021-08-01 21:40:4349 days 14 hrs ago0x3831d812f87814b2203615d1bf1a647d1c1816c5 IN  0x8f3d73b9e07b495ea99db134359a93e7cffdee040 MATIC0.001228282
0x8ac845f7288801d9e4772c8d8f1fe4cd699fa8d0b82360f9ca6319fcd6e80ee2Harvest174959422021-08-01 12:20:1049 days 23 hrs ago0x3831d812f87814b2203615d1bf1a647d1c1816c5 IN  0x8f3d73b9e07b495ea99db134359a93e7cffdee040 MATIC0.001246122
0xd9bb98acfcf08632241f43c5784c37f16cf30161250745975a3d45c412eed633Harvest174452412021-07-31 2:55:2351 days 9 hrs ago0x3831d812f87814b2203615d1bf1a647d1c1816c5 IN  0x8f3d73b9e07b495ea99db134359a93e7cffdee040 MATIC0.00159516
0x10f51edcfc9b8f9364487942b432e014c8b6991f11ca02df7272d00b459c5cd0Harvest174449352021-07-31 2:44:5551 days 9 hrs ago0x3831d812f87814b2203615d1bf1a647d1c1816c5 IN  0x8f3d73b9e07b495ea99db134359a93e7cffdee040 MATIC0.001270522
0xd56355c33033732e83f2dfdb8c78f73c655ce75f0f1c8ebfb7b512817ea13e82Harvest174435832021-07-31 1:45:3451 days 10 hrs ago0x3831d812f87814b2203615d1bf1a647d1c1816c5 IN  0x8f3d73b9e07b495ea99db134359a93e7cffdee040 MATIC0.001270522
0xf81d4e056b852f9d26450c7ba064b00a75efdcb0068d1bb4eba4eee80ae811e0Harvest173838602021-07-29 7:24:2953 days 4 hrs ago0x83ea1d4e86da9a511115ed3aa35b7a7dcefa7701 IN  0x8f3d73b9e07b495ea99db134359a93e7cffdee040 MATIC0.001905813
0xea194e5e4f0f11a4a85b2882de59165ef66ff6c45beffb5f4802c1b2d4897798Harvest173332072021-07-27 19:00:0654 days 17 hrs ago0xe37d4ea5c27017c227b6bf5a9ceda2e02c58637f IN  0x8f3d73b9e07b495ea99db134359a93e7cffdee040 MATIC0.000624701
0x2a652d8ceecb5de0230350d0c3f39775257036dbe617a507f9c05039f711142dHarvest173229252021-07-27 12:32:3854 days 23 hrs ago0xe37d4ea5c27017c227b6bf5a9ceda2e02c58637f IN  0x8f3d73b9e07b495ea99db134359a93e7cffdee040 MATIC0.000624701
0xc2ce740f213556f1e361776404d8551168dd427faf7b348a95003587fa8a3166Harvest173176502021-07-27 9:09:2855 days 2 hrs ago0xe37d4ea5c27017c227b6bf5a9ceda2e02c58637f IN  0x8f3d73b9e07b495ea99db134359a93e7cffdee040 MATIC0.000635271
0x19ceb491b8f3261c4b14477b818452d573feca3b2d615c44917ea23bb8267874Harvest173074002021-07-27 1:36:1855 days 10 hrs ago0xe37d4ea5c27017c227b6bf5a9ceda2e02c58637f IN  0x8f3d73b9e07b495ea99db134359a93e7cffdee040 MATIC0.000635271
0xb8a5daaf70eccc242daebb062d47b670422eb0bcd3e2feddedefceeb1745ade6Harvest173053492021-07-27 0:02:0755 days 12 hrs ago0x3831d812f87814b2203615d1bf1a647d1c1816c5 IN  0x8f3d73b9e07b495ea99db134359a93e7cffdee040 MATIC0.00159518
0x0a3a77abe8659e90d5f55419b36d5002136e7bdafeb2485195a842faca308b1bHarvest173031572021-07-26 22:12:0355 days 13 hrs ago0xe37d4ea5c27017c227b6bf5a9ceda2e02c58637f IN  0x8f3d73b9e07b495ea99db134359a93e7cffdee040 MATIC0.000635261
0x892a36788f29b6ca956660796dba6e46fc1f22401fb176a6e2cf73a381f7bd2cHarvest173029332021-07-26 22:00:2555 days 14 hrs ago0x3831d812f87814b2203615d1bf1a647d1c1816c5 IN  0x8f3d73b9e07b495ea99db134359a93e7cffdee040 MATIC0.001228282
0x7f53647822b070578c0055657653f2d1623abd3dfb96d9f15ba9ffdb627dba75Harvest172894682021-07-26 12:36:4655 days 23 hrs ago0xe37d4ea5c27017c227b6bf5a9ceda2e02c58637f IN  0x8f3d73b9e07b495ea99db134359a93e7cffdee040 MATIC0.000635261
0x613a73aa1bc3975da4ebd80c1b9fe1b207a74c95dea0f4c59f6b6c5b303c52ddHarvest172894662021-07-26 12:36:4255 days 23 hrs ago0xe37d4ea5c27017c227b6bf5a9ceda2e02c58637f IN  0x8f3d73b9e07b495ea99db134359a93e7cffdee040 MATIC0.000612501
0x46bc8d8840b6d296fb5d445177388423a793387434420bcfe1a5cf5f0034b558Harvest172871732021-07-26 11:02:5656 days 1 hr ago0x3831d812f87814b2203615d1bf1a647d1c1816c5 IN  0x8f3d73b9e07b495ea99db134359a93e7cffdee040 MATIC0.001246122
0x9f62eea4ea165c3435b9c5adf63158b79540719590bc45daf49b152cffe15980Harvest172718592021-07-26 0:20:5056 days 11 hrs ago0x3831d812f87814b2203615d1bf1a647d1c1816c5 IN  0x8f3d73b9e07b495ea99db134359a93e7cffdee040 MATIC0.001249402
0x7771803bbcccd8a8adf2110377ac11508e5fd1e9e2831666e1dcf59de3fc7c2cHarvest172695712021-07-25 22:49:2256 days 13 hrs ago0xe37d4ea5c27017c227b6bf5a9ceda2e02c58637f IN  0x8f3d73b9e07b495ea99db134359a93e7cffdee040 MATIC0.000635261
0x395625cfe4574627b2e8324c8e6b2be28e487184a982a2104b24d7f64651872dHarvest172506822021-07-25 10:03:4357 days 2 hrs ago0xe37d4ea5c27017c227b6bf5a9ceda2e02c58637f IN  0x8f3d73b9e07b495ea99db134359a93e7cffdee040 MATIC0.000635261
0xeda32d71a25ff91021887d876493fc474a7ce611f170888dbf29b5b0d5f8e72aHarvest172381422021-07-25 1:58:4757 days 10 hrs ago0xe37d4ea5c27017c227b6bf5a9ceda2e02c58637f IN  0x8f3d73b9e07b495ea99db134359a93e7cffdee040 MATIC0.000635261
0x9c531dcae79d5aeb84c0f44d3ac447159eb2556bc6c9de5db26eb966aabdefaaHarvest172359672021-07-25 0:35:2857 days 11 hrs ago0x2f142a3d0fd2cd85b4e9f4d59a7e07e8e96b07dd IN  0x8f3d73b9e07b495ea99db134359a93e7cffdee040 MATIC0.001905783
0xbec6a37b2ec687318ef471e93f11c32ac5a1e503b346e0ff7c781094357b8bf4Harvest172326892021-07-24 22:30:3157 days 13 hrs ago0xe37d4ea5c27017c227b6bf5a9ceda2e02c58637f IN  0x8f3d73b9e07b495ea99db134359a93e7cffdee040 MATIC0.000623061
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0xfb9d03546d68d9e917b6f49837bee74da0997e8731f167265f3ff80d5c88b127150198122021-05-28 5:14:30115 days 6 hrs ago 0x7b751e8a2fc2c6f2c844ec548a41108f9fbbcd12  Contract Creation0 MATIC
[ Download CSV Export 
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0xc5ea6c905d91ceb42a0b24da9b5c9c46d2950202

Contract Name:
StrategySushi

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-06-20
*/

/**
 *Submitted for verification at polygonscan.com on 2021-06-11
*/

pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
// SPDX-License-Identifier: UNLICENSED


/*
 * @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;
    }
}


/**
 * @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;
    }
}


/**
 * @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);
}


/**
 * @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;
    }
}



/**
 * @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 { }
}


/**
 * @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);
            }
        }
    }
}



/**
 * @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");
        }
    }
}

//A Jar is a contract that users deposit funds into.
//Jar contracts are paired with a strategy contract that interacts with the pool being farmed.
interface IJar {
    function token() external view returns (address);

    function getRatio() external view returns (uint256);

    function balance() external view returns (uint256);

    function balanceOf(address _user) external view returns (uint256);

    function depositAll() external;

    function deposit(uint256) external;

    //function depositFor(address user, uint256 amount) external;

    function withdrawAll() external;

    //function withdraw(uint256) external;

    function earn() external;

    function strategy() external view returns (address);

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

    //function getLastTimeRestaked(address _address) external view returns (uint256);

    //function notifyReward(address _reward, uint256 _amount) external;

    //function getPendingReward(address _user) external view returns (uint256);
}
interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}
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);
}


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

    uint256 public lastHarvestTime = 0;

    // Tokens
    address public want; //The LP token, Harvest calls this "rewardToken"
    address public constant weth = 0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619; //weth for Matic
    address internal harvestedToken; //The token we harvest. If the reward pool emits multiple tokens, they should be converted to a single token.

    // Contracts
    address public strategist; //The address the performance fee is sent to
    address public multiHarvest; //The multi harvest contract
    address public jar; //The vault/jar contract

    // Dex
    address public currentRouter = 0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff; //Quickswap router

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

        want = _want;
        strategist = _strategist;
        harvestedToken = _harvestedToken;
        currentRouter = _currentRouter;
    }
    
    // **** Modifiers **** //
    
    //prevent unauthorized smart contracts from calling harvest()
    modifier onlyHumanOrWhitelisted { 
        require(msg.sender == tx.origin || msg.sender == owner() || msg.sender == multiHarvest, "not authorized");
        _;
    }

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

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

    //Returns the token sent to the fee dist contract, which is used to calculate the amount of ADDY to mint when claiming rewards
    function getFeeDistToken() public virtual view returns (address);

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

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

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

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

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

    function setMultiHarvest(address _address) external onlyOwner {
        multiHarvest = _address;
    }

    // **** State mutations **** //
    function deposit() public virtual;

    // Withdraw partial funds, normally used with a jar withdrawal
    function withdraw(uint256 _amount) external {
        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);
    }

    // Withdraw funds, used to swap between strategies
    function withdrawForSwap(uint256 _amount)
        external
        returns (uint256 balance)
    {
        require(msg.sender == jar, "!jar");
        _withdrawSome(_amount);

        balance = IERC20(want).balanceOf(address(this));

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

    function _withdrawAll() internal {
        _withdrawSome(balanceOfPool());
    }

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

    function harvest() public virtual;

    // **** Internal functions ****
    function _swapUniswap(
        address _from,
        address _to,
        uint256 _amount
    ) internal {
        require(_to != address(0));

        // Swap with uniswap
        IERC20(_from).safeApprove(currentRouter, 0);
        IERC20(_from).safeApprove(currentRouter, _amount);

        address[] memory path;

        if (_from == weth || _to == weth) {
            path = new address[](2);
            path[0] = _from;
            path[1] = _to;
        } else {
            path = new address[](3);
            path[0] = _from;
            path[1] = weth;
            path[2] = _to;
        }

        IUniswapRouterV2(currentRouter).swapExactTokensForTokens(
            _amount,
            0,
            path,
            address(this),
            now.add(60)
        );
    }

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

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

        IUniswapRouterV2(currentRouter).swapExactTokensForTokens(
            _amount,
            0,
            path,
            address(this),
            now.add(60)
        );
    }

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

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

        IUniswapRouterV2(currentRouter).swapExactTokensForTokensSupportingFeeOnTransferTokens(
            _amount,
            0,
            path,
            address(this),
            now.add(60)
        );
    }

    function _distributePerformanceFeesAndDeposit() internal {
        uint256 _want = IERC20(want).balanceOf(address(this));

        if (_want > 0) {
            deposit();
        }
        lastHarvestTime = now;
    }

    // **** Events **** //
    event SetJar(address indexed jar);
}
interface IMiniChef {
    function harvest(uint256 _pid, address to) external;
    function deposit(uint256 _pid, uint256 _amount, address to) external;
    function withdraw(uint256 _pid, uint256 _amount, address to) external;
    function emergencyWithdraw(uint256 _pid, address to) external;
    function withdrawAndHarvest(uint256 pid, uint256 amount, address to) external;

    function userInfo(uint256 _pid, address _user) external view returns(uint256, int256);
    function poolInfo(uint256 _pid) external view returns(uint128, uint64, uint64);
    function pendingSushi(uint256 _pid, address _user) external view returns (uint256);

    function totalAllocPoint() external view returns (uint256);
    function sushiPerSecond() external view returns (uint256);
}


// Base contract for the new version of MasterChef that Sushi uses on Matic
abstract contract BaseStrategyMiniChef is BaseStrategy {

    address public rewards;
    uint256 public poolId;

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

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

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

    // **** Setters ****

    function deposit() public override {
        uint256 _want = IERC20(want).balanceOf(address(this));
        if (_want > 0) {
            IERC20(want).safeApprove(rewards, 0);
            IERC20(want).safeApprove(rewards, _want);
            IMiniChef(rewards).deposit(poolId, _want, address(this));
        }
    }

    function _withdrawSome(uint256 _amount)
        internal
        override
        returns (uint256)
    {
        IMiniChef(rewards).withdraw(poolId, _amount, address(this));
        return _amount;
    }
    
    /* **** Other Mutative functions **** */

    function _getReward() internal {
        IMiniChef(rewards).harvest(poolId, address(this));
    }

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

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

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

    function emergencyWithdraw() public onlyOwner {
        IMiniChef(rewards).emergencyWithdraw(poolId, address(this));

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

interface IERCFund {
    function feeShareEnabled() external view returns (bool);

    function depositToFeeDistributor(address token, uint256 amount) external;

    function notifyFeeDistribution(address token) external;

    function getFee() external view returns (uint256);

    function recover(address token) external;
}

//Vaults are jars that emit ADDY rewards.
interface IVault is IJar {

    function getPendingReward(address _user) external view returns (uint256);

    function getLastDepositTime(address _user) external view returns (uint256);

    function getTokensStaked(address _user) external view returns (uint256);

    function totalShares() external view returns (uint256);

    function getRewardMultiplier() external view returns (uint256);   

    function rewardAllocation() external view returns (uint256);   

    function totalPendingReward() external view returns (uint256);   

    function withdrawPenaltyTime() external view returns (uint256);   
    
    function increaseRewardAllocation(uint256 _newReward) external;

    function setWithdrawPenaltyTime(uint256 _withdrawPenaltyTime) external;
}

//A normal vault is a vault where the strategy contract notifies the vault contract about the profit it generated when harvesting. 
interface IGenericVault is IVault {
    
    //Strategy calls notifyReward to let the vault know that it earned a certain amount of profit (the performance fee) for gov token stakers
    function notifyReward(address _reward, uint256 _amount) external;
}

//For A/B token pairs, where I have to convert the harvested token to A (ETH/MATIC/USDC/etc) and then sell 1/2 of A for B
abstract contract BaseStrategySushi is BaseStrategyMiniChef {

    address public wMatic = 0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270;
    address public sushi = 0x0b3F868E0BE5597D5DB7fEB59E1CADBb0fdDa50a;
    address public tokenA;
    address public tokenB;
    address public sushiRouter = 0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506;
    address public miniChef = 0x0769fd68dFb93167989C6f7254cd0D766Fb2841F;
    
    uint256 public constant keepMax = 10000;

    // Uniswap swap paths
    address[] public sushi_matic_path;
    address[] public reward_a_path;
    address[] public a_b_path;

    constructor(
        address _want,
        address _tokenA,
        address _tokenB,
        uint256 _poolId,
        address _strategist
    )
        public
        BaseStrategyMiniChef(
            miniChef,
            _want,
            _strategist,
            _poolId,
            wMatic,
            sushiRouter
        )
    {
        sushi_matic_path = new address[](2);
        sushi_matic_path[0] = sushi;
        sushi_matic_path[1] = wMatic;

        tokenA = _tokenA;
        tokenB = _tokenB;

        reward_a_path = new address[](2);
        reward_a_path[0] = wMatic;
        reward_a_path[1] = _tokenA;

        a_b_path = new address[](2);
        a_b_path[0] = _tokenA;
        a_b_path[1] = _tokenB;
    }
    
    function getFeeDistToken() public override view returns (address) {
        return harvestedToken;
    }

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

    function harvest() public override onlyHumanOrWhitelisted {
        //Transfer any harvestedToken (wmatic) that may already be in the contract to the fee dist fund
        IERC20(harvestedToken).safeTransfer(strategist, IERC20(harvestedToken).balanceOf(address(this)));
        //Transfer any sushi that may already be in the contract to the fee dist fund
        IERC20(sushi).safeTransfer(strategist, IERC20(sushi).balanceOf(address(this)));

        //Claims Sushi and some wmatic
        _getReward();

        //Swap Sushi for wMATIC, because wMATIC is used to calculate profit
        uint256 _sushi_balance = IERC20(sushi).balanceOf(address(this));
        if (_sushi_balance > 0) {
            _swapUniswapWithPath(sushi_matic_path, _sushi_balance);
        }

        //Distribute fee and swap wMatic for tokenA (make sure it has a high liquidity pair with wmatic, like WETH and USDC)
        uint256 _harvested_balance = IERC20(harvestedToken).balanceOf(address(this));
        if (_harvested_balance > 0) {
            uint256 feeAmount = _harvested_balance.mul(IERCFund(strategist).getFee()).div(keepMax);
            uint256 afterFeeAmount = _harvested_balance.sub(feeAmount);
            _notifyJar(feeAmount);

            IERC20(harvestedToken).safeTransfer(strategist, feeAmount);
            _swapUniswapWithPath(reward_a_path, afterFeeAmount);
        }

        //Swap 1/2 of tokenA for tokenB
        uint256 _balanceA = IERC20(tokenA).balanceOf(address(this));
        if (_balanceA > 0) {
            _swapUniswapWithPath(a_b_path, _balanceA.div(2));
        }

        //Add liquidity
        uint256 aBalance = IERC20(tokenA).balanceOf(address(this));
        uint256 bBalance = IERC20(tokenB).balanceOf(address(this));
        if (aBalance > 0 && bBalance > 0) {
            IERC20(tokenA).safeApprove(currentRouter, 0);
            IERC20(tokenA).safeApprove(currentRouter, aBalance);
            IERC20(tokenB).safeApprove(currentRouter, 0);
            IERC20(tokenB).safeApprove(currentRouter, bBalance);

            IUniswapRouterV2(currentRouter).addLiquidity(
                tokenA, tokenB,
                aBalance, bBalance,
                0, 0,
                address(this),
                now + 60
            );
        }

        // Stake the LP tokens
        _distributePerformanceFeesAndDeposit();
    }

    function _notifyJar(uint256 _amount) internal {
        IGenericVault(jar).notifyReward(harvestedToken, _amount);
    }
}


contract StrategySushi is BaseStrategySushi {

    string private pair_name;

    constructor(address lp, address tokenA, address tokenB, uint256 _poolId, address strategist, string memory _pair_name)
        public
        BaseStrategySushi(
            lp,
            tokenA,
            tokenB,
            _poolId,
            strategist
        )
    {
        pair_name = _pair_name;
    }

    // **** Views ****

    function pairName() external view returns (string memory) {
        return pair_name;
    }
}

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

    function lastHarvestTime() external returns (uint256);

    function rewards() external view returns (address);

    function gauge() external view returns (address);

    function want() external view returns (address);

    function treasury() external view returns (address);

    function deposit() external;

    function depositLocked(uint256 _secs) external;

    function withdrawForSwap(uint256) external returns (uint256);

    function withdraw(address) external;

    function withdraw(uint256) external;

    function withdrawLocked(bytes32 kek_id) external returns (uint256 balance);

    function skim() external;

    function migrate() external;

    function withdrawAll() external returns (uint256);

    function balanceOf() 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;

    function migrate(address newStakingContract) external;

    function getLastTimeMigrated() external view returns (uint256);

    function execute(address _target, bytes calldata _data)
        external
        payable
        returns (bytes memory response);

    function execute(bytes calldata _data)
        external
        payable
        returns (bytes memory response);
}
interface IMinter {
    function isMinter(address) view external returns(bool);
    function amountAddyToMint(uint256 ethProfit) view external returns(uint256);
    function mintFor(address user, address asset, uint256 amount) external;

    function addyPerProfitEth() view external returns(uint256);

    function setMinter(address minter, bool canMint) external;
}// Based on https://github.com/iearn-finance/vaults/blob/master/contracts/vaults/yVault.sol


abstract contract VaultBase is Ownable {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    // Info of each user
    struct UserInfo {
        uint256 shares; // User shares
        uint256 rewardDebt; // Reward debt (in terms of QUICK)
        uint256 lastDepositTime;
        uint256 tokensStaked; // Number of tokens staked, only used to calculate profit on the frontend (different than shares)
    }

    uint256 public constant keepMax = 10000;

    /* ========== STATE VARIABLES ========== */

    // Info of each user
    mapping (address => UserInfo) public userInfo;

    // The total amount of pending rewards available for stakers to claim
    uint256 public totalPendingReward;
    // Accumulated rewards per share, times 1e12.
    uint256 public accRewardPerShare;
    // The total # of shares issued
    uint256 public totalShares;
    // Withdrawing before this much time has passed will have a withdrawal penalty
    uint256 public withdrawPenaltyTime = 3 days;
    // Withdrawal penalty, 100 = 1%
    uint256 public withdrawPenalty = 50;
    // For vaults that are farming pools with a deposit fee
    uint256 public depositFee = 0;
    //Allowed amount of the token sent to the fee dist each vault can mint ADDY rewards for, default 5 (5 QUICK = roughly 1.7 ETH = 807 ADDY)
    uint256 public rewardAllocation = 1e18 * 5;

    // Certain vaults will give up to 10x ADDY rewards
    // Additional usecase for ADDY: lock it to boost the yield of a certain vault
    uint256 private rewardMultiplier = 1000;
    uint256 private constant MULTIPLIER_BASE = 1000;
    uint256 private constant MULTIPLIER_MAX = 10000;

    IERC20 public token;
    address public strategy;
    IMinter internal minter;
    address public ercFund;

    constructor(IStrategy _strategy, address _minter, address _ercFund)
        public
    {
        require(address(_strategy) != address(0));
        token = IERC20(_strategy.want());
        strategy = address(_strategy);
        minter = IMinter(_minter);
        ercFund = _ercFund;
    }

    /* ========== VIEW FUNCTIONS ========== */

    // 1000 = 1x multiplier
    function getRewardMultiplier() public view returns (uint256) {
        return rewardMultiplier;
    }

    function applyRewardMultiplier(uint256 _amount) internal view returns (uint256) {
        return _amount.mul(rewardMultiplier).div(MULTIPLIER_BASE);
    }

    function getRatio() public view returns (uint256) {
        return balance().mul(1e18).div(totalShares);
    }

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

    function balanceOf(address _user) public view returns (uint256) {
        return userInfo[_user].shares;
    }

    function getPendingReward(address _user) public view returns (uint256) {
        return userInfo[_user].shares.mul(accRewardPerShare).div(1e12).sub(userInfo[_user].rewardDebt);
    }

    function getLastDepositTime(address _user) public view returns (uint256) {
        return userInfo[_user].lastDepositTime;
    }

    function getTokensStaked(address _user) public view returns (uint256) {
        return userInfo[_user].tokensStaked;
    }

    /* ========== MUTATIVE FUNCTIONS ========== */

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

    function deposit(uint256 _amount) public {
        require(msg.sender == tx.origin, "no contracts");
        _claimReward(msg.sender);

        uint256 _pool = balance();
        uint256 _before = token.balanceOf(address(this));
        token.safeTransferFrom(msg.sender, address(this), _amount);
        uint256 _after = token.balanceOf(address(this));
        _amount = _after.sub(_before); // Additional check for deflationary tokens
        uint256 shares = 0;
        if (totalShares == 0) {
            shares = _amount;
        } else {
            shares = (_amount.mul(totalShares)).div(_pool);
        }

        //when farming pools with a deposit fee
        if(depositFee > 0) {
            uint256 fee = shares.mul(depositFee).div(keepMax);
            shares = shares.sub(fee);
        }

        totalShares = totalShares.add(shares);

        UserInfo storage user = userInfo[msg.sender];
        user.shares = user.shares.add(shares);
        user.rewardDebt = user.shares.mul(accRewardPerShare).div(1e12);
        user.lastDepositTime = now;
        user.tokensStaked = user.tokensStaked.add(_amount);

        earn(); 
        emit Deposited(msg.sender, _amount);
    }
 
    function earn() internal {
        uint256 _bal = token.balanceOf(address(this));
        token.safeTransfer(strategy, _bal);
        IStrategy(strategy).deposit();
    }

    // Withdraw all tokens and claim rewards.
    function withdrawAll() external {
        UserInfo storage user = userInfo[msg.sender];
        uint256 _shares = user.shares;
        uint256 r = (balance().mul(_shares)).div(totalShares);

        _claimReward(msg.sender);

        // 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 = b.add(_diff);
            }
        }

        totalShares = totalShares.sub(_shares);

        user.shares = user.shares.sub(_shares);
        user.rewardDebt = user.shares.mul(accRewardPerShare).div(1e12);
        user.tokensStaked = 0;
        // Deduct early withdrawal fee if applicable
        if(user.lastDepositTime.add(withdrawPenaltyTime) >= now) {
            uint256 earlyWithdrawalFee = r.mul(withdrawPenalty).div(keepMax);
            r = r.sub(earlyWithdrawalFee);
            token.safeTransfer(ercFund, earlyWithdrawalFee);
        }

        token.safeTransfer(msg.sender, r);
        emit Withdrawn(msg.sender, r);
    }

    // Withdraw all tokens without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw() public {
        UserInfo storage user = userInfo[msg.sender];
        uint256 _shares = user.shares;
        uint256 r = (balance().mul(_shares)).div(totalShares);

        // 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 = b.add(_diff);
            }
        }

        if(_shares <= totalShares) {
            totalShares = totalShares.sub(_shares);
        }
        else {
            totalShares = 0;
        }
        user.shares = 0;
        user.rewardDebt = 0;
        user.tokensStaked = 0;
        // Deduct early withdrawal fee if applicable
        if(user.lastDepositTime.add(withdrawPenaltyTime) >= now) {
            uint256 earlyWithdrawalFee = r.mul(withdrawPenalty).div(keepMax);
            r = r.sub(earlyWithdrawalFee);
            token.safeTransfer(ercFund, earlyWithdrawalFee);
        }

        token.safeTransfer(msg.sender, r);
        emit Withdrawn(msg.sender, r);
    }
    
    function claim() public {
        UserInfo storage user = userInfo[msg.sender];
        require(user.shares > 0, "no stake");

        _claimReward(msg.sender);

        user.rewardDebt = user.shares.mul(accRewardPerShare).div(1e12);
    }

    /* ========== INTERNAL FUNCTIONS ========== */

    // Handles claiming the user's pending rewards
    function _claimReward(address _user) internal virtual;

    /* ========== RESTRICTED FUNCTIONS ========== */

    //Vault deployer also needs to register the vault with the new minter
    function setMinter(IMinter newMinter) public onlyOwner {
        minter = newMinter;
    }

    function setWithdrawPenaltyTime(uint256 _withdrawPenaltyTime) public onlyOwner {
        require(_withdrawPenaltyTime <= 30 days, "delay too high");
        withdrawPenaltyTime = _withdrawPenaltyTime;
    }

    function setWithdrawPenalty(uint256 _withdrawPenalty) public onlyOwner {
        require(_withdrawPenalty <= 500, "penalty too high");
        withdrawPenalty = _withdrawPenalty;
    }

    function setRewardMultiplier(uint256 _rewardMultiplier) public onlyOwner {
        require(_rewardMultiplier <= MULTIPLIER_MAX, "multiplier too high");
        rewardMultiplier = _rewardMultiplier;
    }

    //shouldn't be farming things with a high deposit fee in the first place
    function setPoolDepositFee(uint256 _depositFee) public onlyOwner {
        require(_depositFee <= 1000, "?");
        depositFee = _depositFee;
    }

    //Increase the amount of the token sent to the fee dist the vault is allowed to mint ADDY for
    function increaseRewardAllocation(uint256 _newReward) public onlyOwner {
        rewardAllocation = rewardAllocation.add(_newReward);
        emit RewardAllocated(_newReward, rewardAllocation);
    }

    /* ========== EVENTS ========== */

    event Deposited(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardAdded(address reward, uint256 amount);
    event Claimed(address indexed user, uint256 amount);
    event RewardAllocated(uint256 newReward, uint256 totalAllocation);
}


contract GenericVault is VaultBase {

    constructor(IStrategy _strategy, address _minter, address _ercFund) 
        public
        VaultBase(_strategy, _minter, _ercFund)
    {
        
    }

    // Handles claiming the user's pending rewards
    function _claimReward(address _user) internal override {
        UserInfo storage user = userInfo[_user];
        if (user.shares > 0) {
            uint256 pendingReward = user.shares.mul(accRewardPerShare).div(1e12).sub(user.rewardDebt);
            if (pendingReward > 0) {
                totalPendingReward = totalPendingReward.sub(pendingReward);
                
                //Apply reward multiplier to the pendingReward that the minter will mint for
                pendingReward = applyRewardMultiplier(pendingReward);
                
                //Make sure the amount of QUICK the vault is allowed to mint for is above the amount we're trying to mint for
                //Require statement is there for end users
                require(rewardAllocation >= pendingReward, "Not enough rewards allocated");
                rewardAllocation = rewardAllocation.sub(pendingReward);

                //Minter will mint to MultiFeeDistribution and then stake the minted tokens for the user
                minter.mintFor(_user, IStrategy(strategy).getFeeDistToken(), pendingReward);
                emit Claimed(_user, pendingReward);
            }
        }
    }

    //Strategy calls notifyReward to let the vault know that it earned a certain amount of profit (the performance fee) for gov token stakers
    function notifyReward(address _reward, uint256 _amount) public {
        require(msg.sender == strategy);
        if(_amount == 0) {
            return;
        }

        totalPendingReward = totalPendingReward.add(_amount);
        accRewardPerShare = accRewardPerShare.add(_amount.mul(1e12).div(totalShares)); //shouldn't be adding reward if totalShares == 0 anyway

        emit RewardAdded(_reward, _amount);
    }
}


contract ProxyMinter is Ownable {

    /* ========== STATE VARIABLES ========== */

    mapping(address => bool) private _minters;
    address public deployer;
    address public minter;

    /* ========== CONSTRUCTOR ========== */

    constructor(address _minter)
        public
    {
        minter = _minter;
    }
    
    /* ========== MODIFIERS ========== */

    modifier onlyMinter {
        require(isMinter(msg.sender) == true, "AddyMinter: caller is not the minter");
        _;
    }

    function mintFor(address user, address asset, uint256 amount) external onlyMinter {
        IMinter(minter).mintFor(user, asset, amount);
    }
    
    /* ========== VIEWS ========== */

    function isMinter(address account) public view returns (bool) {
        return _minters[account];
    }

    function amountAddyToMint(uint256 ethProfit) public view returns (uint256) {
        return IMinter(minter).amountAddyToMint(ethProfit);
    }

    /* ========== RESTRICTED FUNCTIONS ========== */

    function setDeployer(address _deployer) public onlyOwner {
        require(deployer == address(0), "already set");
        deployer = _deployer;
    }
    
    function setMinter(address _minter, bool canMint) external {
        require(deployer == msg.sender, "not deployer");

        if (canMint) {
            _minters[_minter] = canMint;
        } else {
            delete _minters[_minter];
        }
    }
    
    function disableMinter(address _minter) external onlyOwner {
        _minters[_minter] = false;
    }
}


interface IMultiHarvestable {
    function setMultiHarvest(address _address) external;
}

//Deploys strategies for TokenA/TokenB pairs
//Make sure that a pair for rewardToken/TokenA exists
contract SushiStrategyDeployer is Ownable {

    address public FUND = 0x43c085B5aba4E83a7dd1A478B7458D1d472FF6b4;
    address MULTI_HARVEST = 0x3355743Db830Ed30FF4089DB8b18DEeb683F8546;
    address public proxy_minter;
    bool public finalized = false;

    struct VaultData {
        address strat;
        address vault;
    }

    VaultData[] public deployedVaults;

    constructor() public {
        proxy_minter = address(new ProxyMinter(0xAAE758A2dB4204E1334236Acd6E6E73035704921));
        ProxyMinter(proxy_minter).setDeployer(address(this));
        Ownable(proxy_minter).transferOwnership(msg.sender);
    }

    function deploy(address lp, address tokenA, address tokenB, uint256 _poolId, string memory _pair_name) public onlyOwner {
        require(finalized == false, "This deployer contract is not allowed to deploy any more vaults");

        address strategy = address(new StrategySushi(lp, tokenA, tokenB, _poolId, FUND, _pair_name));
        address jar = address(new GenericVault(IStrategy(strategy), proxy_minter, FUND));
        StrategySushi(strategy).setJar(jar);
        IMinter(proxy_minter).setMinter(jar, true);
        
        IMultiHarvestable(strategy).setMultiHarvest(MULTI_HARVEST);
        Ownable(strategy).transferOwnership(msg.sender);
        Ownable(jar).transferOwnership(msg.sender);

        deployedVaults.push(VaultData({
            strat: strategy,
            vault: jar
        }));

        emit Deployed(strategy, jar);
    }

    function getDeployedVaults() public view 
        returns (
            VaultData[] memory vaultData
        ) 
    {
        uint256 length = deployedVaults.length;
        vaultData = new VaultData[](length);

        for (uint256 i = 0; i < length; i++) {
            vaultData[i] = deployedVaults[i];
        }
    }

    //Prevent any more vaults from being deployed
    function finalizeDeployment() external onlyOwner() {
        finalized = true;
    }

    event Deployed(address indexed strategy, address indexed jar);
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"lp","type":"address"},{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"address","name":"strategist","type":"address"},{"internalType":"string","name":"_pair_name","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"jar","type":"address"}],"name":"SetJar","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"a_b_path","outputs":[{"internalType":"address","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":"currentRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getFeeDistToken","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":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"jar","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keepMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastHarvestTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"miniChef","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"multiHarvest","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pairName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"reward_a_path","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":"_address","type":"address"}],"name":"setMultiHarvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sushi","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sushiRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"sushi_matic_path","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenA","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenB","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wMatic","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"want","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawForSwap","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]

60806040526000600155600780546001600160a01b031990811673a5e0829caced8ffdd4de3c43696c57f7d7a678ff17909155600a80548216730d500b1d8e8ef31e21c99d1db9a6444d3adf1270179055600b80548216730b3f868e0be5597d5db7feb59e1cadbb0fdda50a179055600e80548216731b02da8cb0d097eb8d57a175b88c7d8b47997506179055600f8054909116730769fd68dfb93167989c6f7254cd0d766fb2841f179055348015620000b857600080fd5b5060405162002a8f38038062002a8f833981016040819052620000db91620005ba565b600f54600a54600e54889288928892889288926001600160a01b039182169288928592879290821691168484838360006200011562000475565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b0384166200017357600080fd5b6001600160a01b0383166200018757600080fd5b600280546001600160a01b03199081166001600160a01b03968716178255600480548216958716959095179094556003805485169386169390931790925560078054841691851691909117905560099590955560088054909116979091169690961790955550925060009150620001fb9050565b5060405190808252806020026020018201604052801562000226578160200160208202803683370190505b5080516200023d9160109160209091019062000479565b50600b54601080546001600160a01b03909216916000906200025b57fe5b600091825260209091200180546001600160a01b0319166001600160a01b03928316179055600a546010805491909216919060019081106200029957fe5b600091825260209091200180546001600160a01b039283166001600160a01b031991821617909155600c8054878416908316179055600d8054928616929091169190911790556040805160028082526060820190925290816020016020820280368337505081516200031392601192506020019062000479565b50600a54601180546001600160a01b03909216916000906200033157fe5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055508360116001815481106200036f57fe5b600091825260209091200180546001600160a01b03929092166001600160a01b0319909216919091179055604080516002808252606082019092529081602001602082028036833750508151620003ce92601292506020019062000479565b50836012600081548110620003df57fe5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055508260126001815481106200041d57fe5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055505050505050806013908051906020019062000468929190620004e3565b5050505050505062000713565b3390565b828054828255906000526020600020908101928215620004d1579160200282015b82811115620004d157825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200049a565b50620004df92915062000564565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200052657805160ff191683800117855562000556565b8280016001018555821562000556579182015b828111156200055657825182559160200191906001019062000539565b50620004df92915062000585565b5b80821115620004df5780546001600160a01b031916815560010162000565565b5b80821115620004df576000815560010162000586565b80516001600160a01b0381168114620005b457600080fd5b92915050565b60008060008060008060c08789031215620005d3578182fd5b620005df88886200059c565b9550620005f088602089016200059c565b94506200060188604089016200059c565b9350606087015192506200061988608089016200059c565b60a08801519092506001600160401b0381111562000635578182fd5b8701601f8101891362000646578182fd5b80516200065d6200065782620006bc565b62000695565b8181528a602083850101111562000672578384fd5b62000685826020830160208601620006e0565b8093505050509295509295509295565b6040518181016001600160401b0381118282101715620006b457600080fd5b604052919050565b60006001600160401b03821115620006d2578081fd5b50601f01601f191660200190565b60005b83811015620006fd578181015183820152602001620006e3565b838111156200070d576000848401525b50505050565b61236c80620007236000396000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c80635f64b55b11610125578063be38a4fe116100ad578063d0e30db01161007c578063d0e30db01461038d578063db2e21bc14610395578063f2fde38b1461039d578063f6f482aa146103b0578063feffbe83146103c35761021c565b8063be38a4fe14610362578063c1a3d44c1461036a578063c6223e2614610372578063ceb0f626146103855761021c565b8063863a03e0116100f4578063863a03e0146103195780638da5cb5b1461032c5780639d27ab70146103345780639e9b3c7a146103475780639ec5a8941461035a5761021c565b80635f64b55b146102f95780636d13582c14610301578063715018a614610309578063722713f7146103115761021c565b80631fe4a686116101a85780633fc8cef3116101775780633fc8cef3146102c45780634005760a146102cc57806340794c3b146102d45780634641257d146102e9578063506508f1146102f15761021c565b80631fe4a686146102975780632e1a7d4d1461029f5780633c81fdb4146102b45780633e0dc34e146102bc5761021c565b806311588086116101ef5780631158808614610264578063122fea3b1461026c57806315f1a102146102745780631836edca146102875780631f1fcd511461028f5761021c565b80630547104d146102215780630975d8d81461023f5780630a087903146102475780630fc63d101461025c575b600080fd5b6102296103d6565b6040516102369190612214565b60405180910390f35b610229610460565b61024f610466565b6040516102369190611e3c565b61024f610475565b610229610484565b61024f610512565b61024f610282366004611da0565b610521565b61024f610548565b61024f610557565b61024f610566565b6102b26102ad366004611da0565b610575565b005b61024f610675565b610229610684565b61024f61068a565b61024f6106a2565b6102dc6106b1565b6040516102369190611ecc565b6102b2610747565b61024f610ed2565b61024f610ee1565b61024f610ef0565b6102b2610eff565b610229610f88565b6102b2610327366004611cc4565b610fa3565b61024f6110c5565b6102b2610342366004611cc4565b6110d4565b61024f610355366004611da0565b611135565b61024f611142565b61024f611151565b610229611160565b610229610380366004611da0565b611191565b61022961126d565b6102b2611273565b6102b261139d565b6102b26103ab366004611cc4565b6114e9565b6102b26103be366004611cc4565b6115a9565b61024f6103d1366004611da0565b61165b565b60085460095460405163065509bb60e21b81526000926001600160a01b03169163195426ec9161040b9190309060040161221d565b60206040518083038186803b15801561042357600080fd5b505afa158015610437573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061045b9190611db8565b905090565b61271081565b600b546001600160a01b031681565b600c546001600160a01b031681565b6008546009546040516393f1a40b60e01b815260009283926001600160a01b03909116916393f1a40b916104bc91309060040161221d565b604080518083038186803b1580156104d357600080fd5b505afa1580156104e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050b9190611dd0565b5091505090565b6007546001600160a01b031681565b6011818154811061052e57fe5b6000918252602090912001546001600160a01b0316905081565b6003546001600160a01b031690565b6002546001600160a01b031681565b6004546001600160a01b031681565b6006546001600160a01b031633146105a85760405162461bcd60e51b815260040161059f9061211f565b60405180910390fd5b6002546040516370a0823160e01b81526000916001600160a01b0316906370a08231906105d9903090600401611e3c565b60206040518083038186803b1580156105f157600080fd5b505afa158015610605573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106299190611db8565b905081811015610654576106456106408383611668565b611695565b91506106518282611704565b91505b600654600254610671916001600160a01b03918216911684611730565b5050565b600a546001600160a01b031681565b60095481565b737ceb23fd6bc0add59e62ac25578270cff1b9f61981565b600f546001600160a01b031681565b60138054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561073d5780601f106107125761010080835404028352916020019161073d565b820191906000526020600020905b81548152906001019060200180831161072057829003601f168201915b5050505050905090565b3332148061076d57506107586110c5565b6001600160a01b0316336001600160a01b0316145b8061078257506005546001600160a01b031633145b61079e5760405162461bcd60e51b815260040161059f90612081565b600480546003546040516370a0823160e01b815261083b936001600160a01b0393841693909216916370a08231916107d891309101611e3c565b60206040518083038186803b1580156107f057600080fd5b505afa158015610804573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108289190611db8565b6003546001600160a01b03169190611730565b60048054600b546040516370a0823160e01b81526108d8936001600160a01b0393841693909216916370a082319161087591309101611e3c565b60206040518083038186803b15801561088d57600080fd5b505afa1580156108a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c59190611db8565b600b546001600160a01b03169190611730565b6108e061178b565b600b546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610911903090600401611e3c565b60206040518083038186803b15801561092957600080fd5b505afa15801561093d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109619190611db8565b905080156109cd576109cd60108054806020026020016040519081016040528092919081815260200182805480156109c257602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116109a4575b5050505050826117f2565b6003546040516370a0823160e01b81526000916001600160a01b0316906370a08231906109fe903090600401611e3c565b60206040518083038186803b158015610a1657600080fd5b505afa158015610a2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4e9190611db8565b90508015610b8f576000610af4612710610aee600460009054906101000a90046001600160a01b03166001600160a01b031663ced72f876040518163ffffffff1660e01b815260040160206040518083038186803b158015610aaf57600080fd5b505afa158015610ac3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae79190611db8565b859061191d565b90611957565b90506000610b028383611668565b9050610b0d82611989565b600454600354610b2a916001600160a01b03918216911684611730565b610b8c60118054806020026020016040519081016040528092919081815260200182805480156109c2576020028201919060005260206000209081546001600160a01b031681526001909101906020018083116109a4575050505050826117f2565b50505b600c546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610bc0903090600401611e3c565b60206040518083038186803b158015610bd857600080fd5b505afa158015610bec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c109190611db8565b90508015610c8f57610c8f6012805480602002602001604051908101604052809291908181526020018280548015610c7157602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610c53575b5050505050610c8a60028461195790919063ffffffff16565b6117f2565b600c546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610cc0903090600401611e3c565b60206040518083038186803b158015610cd857600080fd5b505afa158015610cec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d109190611db8565b600d546040516370a0823160e01b81529192506000916001600160a01b03909116906370a0823190610d46903090600401611e3c565b60206040518083038186803b158015610d5e57600080fd5b505afa158015610d72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d969190611db8565b9050600082118015610da85750600081115b15610ec357600754600c54610dcb916001600160a01b03918216911660006119bf565b600754600c54610de8916001600160a01b039182169116846119bf565b600754600d54610e06916001600160a01b03918216911660006119bf565b600754600d54610e23916001600160a01b039182169116836119bf565b600754600c54600d5460405162e8e33760e81b81526001600160a01b039384169363e8e3370093610e6d93908216929116908790879060009081903090603c420190600401611e6a565b606060405180830381600087803b158015610e8757600080fd5b505af1158015610e9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ebf9190611df3565b5050505b610ecb611a82565b5050505050565b6005546001600160a01b031681565b600d546001600160a01b031681565b600e546001600160a01b031681565b610f07611b1a565b6001600160a01b0316610f186110c5565b6001600160a01b031614610f3e5760405162461bcd60e51b815260040161059f906120ea565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600061045b610f95610484565b610f9d611160565b90611704565b610fab611b1a565b6001600160a01b0316610fbc6110c5565b6001600160a01b031614610fe25760405162461bcd60e51b815260040161059f906120ea565b6002546001600160a01b0382811691161480159061100e57506003546001600160a01b03828116911614155b61102a5760405162461bcd60e51b815260040161059f90611f7c565b6040516370a0823160e01b81526000906001600160a01b038316906370a0823190611059903090600401611e3c565b60206040518083038186803b15801561107157600080fd5b505afa158015611085573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a99190611db8565b90508015610671576106716001600160a01b0383163383611730565b6000546001600160a01b031690565b6110dc611b1a565b6001600160a01b03166110ed6110c5565b6001600160a01b0316146111135760405162461bcd60e51b815260040161059f906120ea565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6010818154811061052e57fe5b6008546001600160a01b031681565b6006546001600160a01b031681565b6002546040516370a0823160e01b81526000916001600160a01b0316906370a082319061040b903090600401611e3c565b6006546000906001600160a01b031633146111be5760405162461bcd60e51b815260040161059f9061211f565b6111c782611695565b506002546040516370a0823160e01b81526001600160a01b03909116906370a08231906111f8903090600401611e3c565b60206040518083038186803b15801561121057600080fd5b505afa158015611224573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112489190611db8565b600654600254919250611268916001600160a01b03908116911683611730565b919050565b60015481565b6002546040516370a0823160e01b81526000916001600160a01b0316906370a08231906112a4903090600401611e3c565b60206040518083038186803b1580156112bc57600080fd5b505afa1580156112d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f49190611db8565b9050801561139a5760085460025461131a916001600160a01b03918216911660006119bf565b600854600254611337916001600160a01b039182169116836119bf565b600854600954604051638dbdbe6d60e01b81526001600160a01b0390921691638dbdbe6d9161136c91859030906004016122a4565b600060405180830381600087803b15801561138657600080fd5b505af1158015610ecb573d6000803e3d6000fd5b50565b6113a5611b1a565b6001600160a01b03166113b66110c5565b6001600160a01b0316146113dc5760405162461bcd60e51b815260040161059f906120ea565b6008546009546040516302f940c760e41b81526001600160a01b0390921691632f940c709161140f91309060040161221d565b600060405180830381600087803b15801561142957600080fd5b505af115801561143d573d6000803e3d6000fd5b50506002546040516370a0823160e01b8152600093506001600160a01b0390911691506370a0823190611474903090600401611e3c565b60206040518083038186803b15801561148c57600080fd5b505afa1580156114a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114c49190611db8565b9050801561139a5760065460025461139a916001600160a01b03918216911683611730565b6114f1611b1a565b6001600160a01b03166115026110c5565b6001600160a01b0316146115285760405162461bcd60e51b815260040161059f906120ea565b6001600160a01b03811661154e5760405162461bcd60e51b815260040161059f90611eff565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6115b1611b1a565b6001600160a01b03166115c26110c5565b6001600160a01b0316146115e85760405162461bcd60e51b815260040161059f906120ea565b6006546001600160a01b0316156116115760405162461bcd60e51b815260040161059f90611fdb565b600680546001600160a01b0319166001600160a01b0383169081179091556040517f55c9c1522358ac20ccd3c4887fe1886c26bd0f045ab7fd11acd78680bb77956990600090a250565b6012818154811061052e57fe5b60008282111561168a5760405162461bcd60e51b815260040161059f90611fa4565b508082035b92915050565b600854600954604051630ad58d2f60e01b81526000926001600160a01b031691630ad58d2f916116cc9190869030906004016122a4565b600060405180830381600087803b1580156116e657600080fd5b505af11580156116fa573d6000803e3d6000fd5b5093949350505050565b6000828201838110156117295760405162461bcd60e51b815260040161059f90611f45565b9392505050565b6117868363a9059cbb60e01b848460405160240161174f929190611eb3565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611b1e565b505050565b600854600954604051630c7e663b60e11b81526001600160a01b03909216916318fccc76916117be91309060040161221d565b600060405180830381600087803b1580156117d857600080fd5b505af11580156117ec573d6000803e3d6000fd5b50505050565b60006001600160a01b03168260018151811061180a57fe5b60200260200101516001600160a01b0316141561182657600080fd5b6007548251611866916001600160a01b0316906000908590829061184657fe5b60200260200101516001600160a01b03166119bf9092919063ffffffff16565b6007548251611886916001600160a01b0316908390859060009061184657fe5b6007546001600160a01b03166338ed173982600085306118a742603c611704565b6040518663ffffffff1660e01b81526004016118c7959493929190612234565b600060405180830381600087803b1580156118e157600080fd5b505af11580156118f5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526117869190810190611ceb565b60008261192c5750600061168f565b8282028284828161193957fe5b04146117295760405162461bcd60e51b815260040161059f906120a9565b60008082116119785760405162461bcd60e51b815260040161059f9061204a565b81838161198157fe5b049392505050565b6006546003546040516301c648e360e71b81526001600160a01b039283169263e32471809261136c929116908590600401611eb3565b801580611a475750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e906119f59030908690600401611e50565b60206040518083038186803b158015611a0d57600080fd5b505afa158015611a21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a459190611db8565b155b611a635760405162461bcd60e51b815260040161059f906121be565b6117868363095ea7b360e01b848460405160240161174f929190611eb3565b6002546040516370a0823160e01b81526000916001600160a01b0316906370a0823190611ab3903090600401611e3c565b60206040518083038186803b158015611acb57600080fd5b505afa158015611adf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b039190611db8565b90508015611b1357611b13611273565b5042600155565b3390565b6060611b73826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611bad9092919063ffffffff16565b8051909150156117865780806020019051810190611b919190611d80565b6117865760405162461bcd60e51b815260040161059f90612174565b6060611bbc8484600085611bc4565b949350505050565b606082471015611be65760405162461bcd60e51b815260040161059f90612004565b611bef85611c85565b611c0b5760405162461bcd60e51b815260040161059f9061213d565b60006060866001600160a01b03168587604051611c289190611e20565b60006040518083038185875af1925050503d8060008114611c65576040519150601f19603f3d011682016040523d82523d6000602084013e611c6a565b606091505b5091509150611c7a828286611c8b565b979650505050505050565b3b151590565b60608315611c9a575081611729565b825115611caa5782518084602001fd5b8160405162461bcd60e51b815260040161059f9190611ecc565b600060208284031215611cd5578081fd5b81356001600160a01b0381168114611729578182fd5b60006020808385031215611cfd578182fd5b825167ffffffffffffffff811115611d13578283fd5b8301601f81018513611d23578283fd5b8051611d36611d31826122ea565b6122c3565b8181528381019083850185840285018601891015611d52578687fd5b8694505b83851015611d74578051835260019490940193918501918501611d56565b50979650505050505050565b600060208284031215611d91578081fd5b81518015158114611729578182fd5b600060208284031215611db1578081fd5b5035919050565b600060208284031215611dc9578081fd5b5051919050565b60008060408385031215611de2578081fd5b505080516020909101519092909150565b600080600060608486031215611e07578081fd5b8351925060208401519150604084015190509250925092565b60008251611e3281846020870161230a565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039889168152968816602088015260408701959095526060860193909352608085019190915260a084015290921660c082015260e08101919091526101000190565b6001600160a01b03929092168252602082015260400190565b6000602082528251806020840152611eeb81604085016020870161230a565b601f01601f19169190910160400192915050565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252600e908201526d63616e6e6f742073616c7661676560901b604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b6020808252600f908201526e1a985c88185b1c9958591e481cd95d608a1b604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252601a908201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604082015260600190565b6020808252600e908201526d1b9bdd08185d5d1a1bdc9a5e995960921b604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526004908201526310b530b960e11b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606082015260800190565b90815260200190565b9182526001600160a01b0316602082015260400190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b818110156122835784516001600160a01b03168352938301939183019160010161225e565b50506001600160a01b03969096166060850152505050608001529392505050565b92835260208301919091526001600160a01b0316604082015260600190565b60405181810167ffffffffffffffff811182821017156122e257600080fd5b604052919050565b600067ffffffffffffffff821115612300578081fd5b5060209081020190565b60005b8381101561232557818101518382015260200161230d565b838111156117ec575050600091015256fea2646970667358221220a404c6f6f0626cd58378fdde324b93e1b450ed6ca044a9335fc6f72ba99a8cfd64736f6c634300060c0033000000000000000000000000211f8e61113edaf00cf37a804b0ba721875ef560000000000000000000000000d0660cd418a64a1d44e9214ad8e459324d8157f10000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270000000000000000000000000000000000000000000000000000000000000000d00000000000000000000000043c085b5aba4e83a7dd1a478b7458d1d472ff6b400000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000c574f4f46592d574d415449430000000000000000000000000000000000000000

Deployed ByteCode Sourcemap

56305:541:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49019:147;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;52657:39;;;:::i;52370:65::-;;;:::i;:::-;;;;;;;:::i;52442:21::-;;;:::i;48833:178::-;;;:::i;42417:73::-;;;:::i;52772:30::-;;;;;;:::i;:::-;;:::i;53615:106::-;;;:::i;41873:19::-;;;:::i;42213:25::-;;;:::i;44280:369::-;;;;;;:::i;:::-;;:::i;:::-;;52297:66;;;:::i;48416:21::-;;;:::i;41948:73::-;;;:::i;52576:68::-;;;:::i;56750:93::-;;;:::i;:::-;;;;;;;:::i;53765:2402::-;;;:::i;42290:27::-;;;:::i;52470:21::-;;;:::i;52498:71::-;;;:::i;2746:148::-;;;:::i;43699:113::-;;;:::i;49945:302::-;;;;;;:::i;:::-;;:::i;2095:87::-;;;:::i;44021:104::-;;;;;;:::i;:::-;;:::i;52732:33::-;;;;;;:::i;:::-;;:::i;48387:22::-;;;:::i;42353:18::-;;;:::i;43223:118::-;;;:::i;44713:298::-;;;;;;:::i;:::-;;:::i;41815:34::-;;;:::i;49202:321::-;;;:::i;50255:279::-;;;:::i;3049:244::-;;;;;;:::i;:::-;;:::i;43851:162::-;;;;;;:::i;:::-;;:::i;52809:25::-;;;;;;:::i;:::-;;:::i;49019:147::-;49114:7;;49136:6;;49104:54;;-1:-1:-1;;;49104:54:0;;49077:7;;-1:-1:-1;;;;;49114:7:0;;49104:31;;:54;;49136:6;49152:4;;49104:54;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;49097:61;;49019:147;:::o;52657:39::-;52691:5;52657:39;:::o;52370:65::-;;;-1:-1:-1;;;;;52370:65:0;;:::o;52442:21::-;;;-1:-1:-1;;;;;52442:21:0;;:::o;48833:178::-;48939:7;;48957:6;;48929:50;;-1:-1:-1;;;48929:50:0;;48888:7;;;;-1:-1:-1;;;;;48939:7:0;;;;-1:-1:-1;;48929:50:0;;48973:4;;48929:50;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;48908:71:0;-1:-1:-1;;48833:178:0;:::o;42417:73::-;;;-1:-1:-1;;;;;42417:73:0;;:::o;52772:30::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;52772:30:0;;-1:-1:-1;52772:30:0;:::o;53615:106::-;53699:14;;-1:-1:-1;;;;;53699:14:0;;53615:106::o;41873:19::-;;;-1:-1:-1;;;;;41873:19:0;;:::o;42213:25::-;;;-1:-1:-1;;;;;42213:25:0;;:::o;44280:369::-;44357:3;;-1:-1:-1;;;;;44357:3:0;44343:10;:17;44335:34;;;;-1:-1:-1;;;44335:34:0;;;;;;;:::i;:::-;;;;;;;;;44406:4;;44399:37;;-1:-1:-1;;;44399:37:0;;44380:16;;-1:-1:-1;;;;;44406:4:0;;-1:-1:-1;;44399:37:0;;44430:4;;44399:37;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;44380:56;;44462:7;44451:8;:18;44447:143;;;44496:36;44510:21;:7;44522:8;44510:11;:21::i;:::-;44496:13;:36::i;:::-;44486:46;-1:-1:-1;44557:21:0;44486:46;44569:8;44557:11;:21::i;:::-;44547:31;;44447:143;44628:3;;44609:4;;44602:39;;-1:-1:-1;;;;;44609:4:0;;;;44628:3;44633:7;44602:25;:39::i;:::-;44280:369;;:::o;52297:66::-;;;-1:-1:-1;;;;;52297:66:0;;:::o;48416:21::-;;;;:::o;41948:73::-;41979:42;41948:73;:::o;52576:68::-;;;-1:-1:-1;;;;;52576:68:0;;:::o;56750:93::-;56826:9;56819:16;;;;;;;;;;;;;-1:-1:-1;;56819:16:0;;;;;;;;;;;;;;;;;;;;;;;;;;56793:13;;56819:16;;56826:9;;56819:16;;;56826:9;56819:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56750:93;:::o;53765:2402::-;43069:10;43083:9;43069:23;;:48;;;43110:7;:5;:7::i;:::-;-1:-1:-1;;;;;43096:21:0;:10;:21;43069:48;:78;;;-1:-1:-1;43135:12:0;;-1:-1:-1;;;;;43135:12:0;43121:10;:26;43069:78;43061:105;;;;-1:-1:-1;;;43061:105:0;;;;;;;:::i;:::-;53975:10:::1;::::0;;53994:14:::1;::::0;53987:47:::1;::::0;-1:-1:-1;;;53987:47:0;;53939:96:::1;::::0;-1:-1:-1;;;;;53975:10:0;;::::1;::::0;53994:14;;::::1;::::0;-1:-1:-1;;53987:47:0::1;::::0;54028:4:::1;::::0;53987:47:::1;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;53946:14;::::0;-1:-1:-1;;;;;53946:14:0::1;::::0;;53939:35:::1;:96::i;:::-;54160:10;::::0;;54179:5:::1;::::0;54172:38:::1;::::0;-1:-1:-1;;;54172:38:0;;54133:78:::1;::::0;-1:-1:-1;;;;;54160:10:0;;::::1;::::0;54179:5;;::::1;::::0;-1:-1:-1;;54172:38:0::1;::::0;54204:4:::1;::::0;54172:38:::1;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;54140:5;::::0;-1:-1:-1;;;;;54140:5:0::1;::::0;;54133:26:::1;:78::i;:::-;54264:12;:10;:12::i;:::-;54398:5;::::0;54391:38:::1;::::0;-1:-1:-1;;;54391:38:0;;54366:22:::1;::::0;-1:-1:-1;;;;;54398:5:0::1;::::0;-1:-1:-1;;54391:38:0::1;::::0;54423:4:::1;::::0;54391:38:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;54366:63:::0;-1:-1:-1;54444:18:0;;54440:105:::1;;54479:54;54500:16;54479:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;-1:-1:-1;;;;;54479:54:0::1;::::0;;-1:-1:-1;54479:54:0;;::::1;::::0;::::1;;::::0;;::::1;;;;;;;;;54518:14;54479:20;:54::i;:::-;54719:14;::::0;54712:47:::1;::::0;-1:-1:-1;;;54712:47:0;;54683:26:::1;::::0;-1:-1:-1;;;;;54719:14:0::1;::::0;-1:-1:-1;;54712:47:0::1;::::0;54753:4:::1;::::0;54712:47:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;54683:76:::0;-1:-1:-1;54774:22:0;;54770:391:::1;;54865:10;::::0;;54856:29:::1;::::0;;-1:-1:-1;;;54856:29:0;;;;54813:17:::1;::::0;54833:66:::1;::::0;52691:5:::1;::::0;54833:53:::1;::::0;-1:-1:-1;;;;;54865:10:0;;::::1;::::0;54856:27:::1;::::0;:29;;::::1;::::0;::::1;::::0;;;;;;;54865:10;54856:29;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;54833:18:::0;;:22:::1;:53::i;:::-;:57:::0;::::1;:66::i;:::-;54813:86:::0;-1:-1:-1;54914:22:0::1;54939:33;:18:::0;54813:86;54939:22:::1;:33::i;:::-;54914:58;;54987:21;54998:9;54987:10;:21::i;:::-;55061:10;::::0;55032:14:::1;::::0;55025:58:::1;::::0;-1:-1:-1;;;;;55032:14:0;;::::1;::::0;55061:10:::1;55073:9:::0;55025:35:::1;:58::i;:::-;55098:51;55119:13;55098:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;;::::1;::::0;;;;;;-1:-1:-1;;;;;55098:51:0::1;::::0;;;;::::1;::::0;::::1;::::0;-1:-1:-1;55098:51:0;;::::1;::::0;::::1;::::0;;::::1;;;;;;;;55134:14;55098:20;:51::i;:::-;54770:391;;;55241:6;::::0;55234:39:::1;::::0;-1:-1:-1;;;55234:39:0;;55214:17:::1;::::0;-1:-1:-1;;;;;55241:6:0::1;::::0;-1:-1:-1;;55234:39:0::1;::::0;55267:4:::1;::::0;55234:39:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;55214:59:::0;-1:-1:-1;55288:13:0;;55284:94:::1;;55318:48;55339:8;55318:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;-1:-1:-1;;;;;55318:48:0::1;::::0;;-1:-1:-1;55318:48:0;;::::1;::::0;::::1;;::::0;;::::1;;;;;;;;;55349:16;55363:1;55349:9;:13;;:16;;;;:::i;:::-;55318:20;:48::i;:::-;55441:6;::::0;55434:39:::1;::::0;-1:-1:-1;;;55434:39:0;;55415:16:::1;::::0;-1:-1:-1;;;;;55441:6:0::1;::::0;-1:-1:-1;;55434:39:0::1;::::0;55467:4:::1;::::0;55434:39:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;55510:6;::::0;55503:39:::1;::::0;-1:-1:-1;;;55503:39:0;;55415:58;;-1:-1:-1;55484:16:0::1;::::0;-1:-1:-1;;;;;55510:6:0;;::::1;::::0;-1:-1:-1;;55503:39:0::1;::::0;55536:4:::1;::::0;55503:39:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;55484:58;;55568:1;55557:8;:12;:28;;;;;55584:1;55573:8;:12;55557:28;55553:524;;;55629:13;::::0;55609:6:::1;::::0;55602:44:::1;::::0;-1:-1:-1;;;;;55609:6:0;;::::1;::::0;55629:13:::1;;55602:26;:44::i;:::-;55688:13;::::0;55668:6:::1;::::0;55661:51:::1;::::0;-1:-1:-1;;;;;55668:6:0;;::::1;::::0;55688:13:::1;55703:8:::0;55661:26:::1;:51::i;:::-;55754:13;::::0;55734:6:::1;::::0;55727:44:::1;::::0;-1:-1:-1;;;;;55734:6:0;;::::1;::::0;55754:13:::1;;55727:26;:44::i;:::-;55813:13;::::0;55793:6:::1;::::0;55786:51:::1;::::0;-1:-1:-1;;;;;55793:6:0;;::::1;::::0;55813:13:::1;55828:8:::0;55786:26:::1;:51::i;:::-;55871:13;::::0;55917:6:::1;::::0;55925::::1;::::0;55854:211:::1;::::0;-1:-1:-1;;;55854:211:0;;-1:-1:-1;;;;;55871:13:0;;::::1;::::0;55854:44:::1;::::0;:211:::1;::::0;55917:6;;::::1;::::0;55925;::::1;::::0;55950:8;;55960;;55871:13:::1;::::0;;;56018:4:::1;::::0;56042:3:::1;56048:2;56042:8;::::0;55854:211:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;55553:524;56121:38;:36;:38::i;:::-;43177:1;;;;;53765:2402::o:0;42290:27::-;;;-1:-1:-1;;;;;42290:27:0;;:::o;52470:21::-;;;-1:-1:-1;;;;;52470:21:0;;:::o;52498:71::-;;;-1:-1:-1;;;;;52498:71:0;;:::o;2746:148::-;2326:12;:10;:12::i;:::-;-1:-1:-1;;;;;2315:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2315:23:0;;2307:68;;;;-1:-1:-1;;;2307:68:0;;;;;;;:::i;:::-;2853:1:::1;2837:6:::0;;2816:40:::1;::::0;-1:-1:-1;;;;;2837:6:0;;::::1;::::0;2816:40:::1;::::0;2853:1;;2816:40:::1;2884:1;2867:19:::0;;-1:-1:-1;;;;;;2867:19:0::1;::::0;;2746:148::o;43699:113::-;43741:7;43768:36;43788:15;:13;:15::i;:::-;43768;:13;:15::i;:::-;:19;;:36::i;49945:302::-;2326:12;:10;:12::i;:::-;-1:-1:-1;;;;;2315:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2315:23:0;;2307:68;;;;-1:-1:-1;;;2307:68:0;;;;;;;:::i;:::-;50022:4:::1;::::0;-1:-1:-1;;;;;50013:13:0;;::::1;50022:4:::0;::::1;50013:13;::::0;::::1;::::0;:40:::1;;-1:-1:-1::0;50039:14:0::1;::::0;-1:-1:-1;;;;;50030:23:0;;::::1;50039:14:::0;::::1;50030:23;;50013:40;50005:67;;;::::0;-1:-1:-1;;;50005:67:0;;::::1;::::0;::::1;;;:::i;:::-;50102:38;::::0;-1:-1:-1;;;50102:38:0;;50085:14:::1;::::0;-1:-1:-1;;;;;50102:23:0;::::1;::::0;-1:-1:-1;;50102:38:0::1;::::0;50134:4:::1;::::0;50102:38:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;50085:55:::0;-1:-1:-1;50155:10:0;;50151:89:::1;;50182:46;-1:-1:-1::0;;;;;50182:26:0;::::1;50209:10;50221:6:::0;50182:26:::1;:46::i;2095:87::-:0;2141:7;2168:6;-1:-1:-1;;;;;2168:6:0;;2095:87::o;44021:104::-;2326:12;:10;:12::i;:::-;-1:-1:-1;;;;;2315:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2315:23:0;;2307:68;;;;-1:-1:-1;;;2307:68:0;;;;;;;:::i;:::-;44094:12:::1;:23:::0;;-1:-1:-1;;;;;;44094:23:0::1;-1:-1:-1::0;;;;;44094:23:0;;;::::1;::::0;;;::::1;::::0;;44021:104::o;52732:33::-;;;;;;;;;;48387:22;;;-1:-1:-1;;;;;48387:22:0;;:::o;42353:18::-;;;-1:-1:-1;;;;;42353:18:0;;:::o;43223:118::-;43303:4;;43296:37;;-1:-1:-1;;;43296:37:0;;43269:7;;-1:-1:-1;;;;;43303:4:0;;-1:-1:-1;;43296:37:0;;43327:4;;43296:37;;;:::i;44713:298::-;44846:3;;44791:15;;-1:-1:-1;;;;;44846:3:0;44832:10;:17;44824:34;;;;-1:-1:-1;;;44824:34:0;;;;;;;:::i;:::-;44869:22;44883:7;44869:13;:22::i;:::-;-1:-1:-1;44921:4:0;;44914:37;;-1:-1:-1;;;44914:37:0;;-1:-1:-1;;;;;44921:4:0;;;;-1:-1:-1;;44914:37:0;;44945:4;;44914:37;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;44990:3;;44971:4;;44904:47;;-1:-1:-1;44964:39:0;;-1:-1:-1;;;;;44971:4:0;;;;44990:3;44904:47;44964:25;:39::i;:::-;44713:298;;;:::o;41815:34::-;;;;:::o;49202:321::-;49271:4;;49264:37;;-1:-1:-1;;;49264:37:0;;49248:13;;-1:-1:-1;;;;;49271:4:0;;-1:-1:-1;;49264:37:0;;49295:4;;49264:37;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;49248:53;-1:-1:-1;49316:9:0;;49312:204;;49367:7;;49349:4;;49342:36;;-1:-1:-1;;;;;49349:4:0;;;;49367:7;;49342:24;:36::i;:::-;49418:7;;49400:4;;49393:40;;-1:-1:-1;;;;;49400:4:0;;;;49418:7;49427:5;49393:24;:40::i;:::-;49458:7;;49475:6;;49448:56;;-1:-1:-1;;;49448:56:0;;-1:-1:-1;;;;;49458:7:0;;;;-1:-1:-1;;49448:56:0;;49483:5;;49498:4;;49448:56;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49312:204;49202:321;:::o;50255:279::-;2326:12;:10;:12::i;:::-;-1:-1:-1;;;;;2315:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2315:23:0;;2307:68;;;;-1:-1:-1;;;2307:68:0;;;;;;;:::i;:::-;50322:7:::1;::::0;50349:6:::1;::::0;50312:59:::1;::::0;-1:-1:-1;;;50312:59:0;;-1:-1:-1;;;;;50322:7:0;;::::1;::::0;50312:36:::1;::::0;:59:::1;::::0;50365:4:::1;::::0;50312:59:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;50407:4:0::1;::::0;50400:37:::1;::::0;-1:-1:-1;;;50400:37:0;;50384:13:::1;::::0;-1:-1:-1;;;;;;50407:4:0;;::::1;::::0;-1:-1:-1;;;50400:37:0::1;::::0;50431:4:::1;::::0;50400:37:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;50384:53:::0;-1:-1:-1;50452:9:0;;50448:79:::1;;50504:3;::::0;50485:4:::1;::::0;50478:37:::1;::::0;-1:-1:-1;;;;;50485:4:0;;::::1;::::0;50504:3:::1;50509:5:::0;50478:25:::1;:37::i;3049:244::-:0;2326:12;:10;:12::i;:::-;-1:-1:-1;;;;;2315:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2315:23:0;;2307:68;;;;-1:-1:-1;;;2307:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;3138:22:0;::::1;3130:73;;;::::0;-1:-1:-1;;;3130:73:0;;::::1;::::0;::::1;;;:::i;:::-;3240:6;::::0;;3219:38:::1;::::0;-1:-1:-1;;;;;3219:38:0;;::::1;::::0;3240:6;::::1;::::0;3219:38:::1;::::0;::::1;3268:6;:17:::0;;-1:-1:-1;;;;;;3268:17:0::1;-1:-1:-1::0;;;;;3268:17:0;;;::::1;::::0;;;::::1;::::0;;3049:244::o;43851:162::-;2326:12;:10;:12::i;:::-;-1:-1:-1;;;;;2315:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2315:23:0;;2307:68;;;;-1:-1:-1;;;2307:68:0;;;;;;;:::i;:::-;43919:3:::1;::::0;-1:-1:-1;;;;;43919:3:0::1;:17:::0;43911:45:::1;;;::::0;-1:-1:-1;;;43911:45:0;;::::1;::::0;::::1;;;:::i;:::-;43967:3;:10:::0;;-1:-1:-1;;;;;;43967:10:0::1;-1:-1:-1::0;;;;;43967:10:0;::::1;::::0;;::::1;::::0;;;43993:12:::1;::::0;::::1;::::0;-1:-1:-1;;43993:12:0::1;43851:162:::0;:::o;52809:25::-;;;;;;;;;;9183:158;9241:7;9274:1;9269;:6;;9261:49;;;;-1:-1:-1;;;9261:49:0;;;;;;;:::i;:::-;-1:-1:-1;9328:5:0;;;9183:158;;;;;:::o;49531:211::-;49660:7;;49678:6;;49650:59;;-1:-1:-1;;;49650:59:0;;49625:7;;-1:-1:-1;;;;;49660:7:0;;-1:-1:-1;;49650:59:0;;49678:6;49686:7;;49703:4;;49650:59;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;49727:7:0;;49531:211;-1:-1:-1;;;;49531:211:0:o;8721:179::-;8779:7;8811:5;;;8835:6;;;;8827:46;;;;-1:-1:-1;;;8827:46:0;;;;;;;:::i;:::-;8891:1;8721:179;-1:-1:-1;;;8721:179:0:o;32835:177::-;32918:86;32938:5;32968:23;;;32993:2;32997:5;32945:58;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;32945:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;32945:58:0;-1:-1:-1;;;;;;32945:58:0;;;;;;;;;;;32918:19;:86::i;:::-;32835:177;;;:::o;49802:99::-;49854:7;;49871:6;;49844:49;;-1:-1:-1;;;49844:49:0;;-1:-1:-1;;;;;49854:7:0;;;;49844:26;;:49;;49887:4;;49844:49;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49802:99::o;46102:494::-;46225:7;;46244:1;;46225:4;;-1:-1:-1;;46225:7:0;;;;;;;;;;;;-1:-1:-1;;;;;46225:21:0;;;46217:30;;;;;;46318:13;;46297:7;;46290:45;;-1:-1:-1;;;;;46318:13:0;;;;46297:7;;46318:13;;46297:7;;;;;;;;;;;;;;-1:-1:-1;;;;;46290:27:0;;:45;:27;:45::i;:::-;46374:13;;46353:7;;46346:51;;-1:-1:-1;;;;;46374:13:0;;46389:7;;46353;;46374:13;;46353:7;;;46346:51;46427:13;;-1:-1:-1;;;;;46427:13:0;46410:56;46481:7;46427:13;46519:4;46546;46566:11;:3;46574:2;46566:7;:11::i;:::-;46410:178;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;46410:178:0;;;;;;;;;;;;:::i;9600:220::-;9658:7;9682:6;9678:20;;-1:-1:-1;9697:1:0;9690:8;;9678:20;9721:5;;;9725:1;9721;:5;:1;9745:5;;;;;:10;9737:56;;;;-1:-1:-1;;;9737:56:0;;;;;;;:::i;10298:153::-;10356:7;10388:1;10384;:5;10376:44;;;;-1:-1:-1;;;10376:44:0;;;;;;;:::i;:::-;10442:1;10438;:5;;;;;;;10298:153;-1:-1:-1;;;10298:153:0:o;56175:121::-;56246:3;;56264:14;;56232:56;;-1:-1:-1;;;56232:56:0;;-1:-1:-1;;;;;56246:3:0;;;;56232:31;;:56;;56264:14;;;56280:7;;56232:56;;;:::i;33494:622::-;33864:10;;;33863:62;;-1:-1:-1;33880:39:0;;-1:-1:-1;;;33880:39:0;;-1:-1:-1;;;;;33880:15:0;;;;;:39;;33904:4;;33911:7;;33880:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;33863:62;33855:152;;;;-1:-1:-1;;;33855:152:0;;;;;;;:::i;:::-;34018:90;34038:5;34068:22;;;34092:7;34101:5;34045:62;;;;;;;;;:::i;47157:224::-;47248:4;;47241:37;;-1:-1:-1;;;47241:37:0;;47225:13;;-1:-1:-1;;;;;47248:4:0;;-1:-1:-1;;47241:37:0;;47272:4;;47241:37;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;47225:53;-1:-1:-1;47295:9:0;;47291:51;;47321:9;:7;:9::i;:::-;-1:-1:-1;47370:3:0;47352:15;:21;47157:224::o;722:106::-;810:10;722:106;:::o;35140:761::-;35590:69;;;;;;;;;;;;;;;;;;35564:23;;35590:69;;-1:-1:-1;;;;;35590:27:0;;;35618:4;;35590:27;:69::i;:::-;35674:17;;35564:95;;-1:-1:-1;35674:21:0;35670:224;;35816:10;35805:30;;;;;;;;;;;;:::i;:::-;35797:85;;;;-1:-1:-1;;;35797:85:0;;;;;;;:::i;27931:195::-;28034:12;28066:52;28088:6;28096:4;28102:1;28105:12;28066:21;:52::i;:::-;28059:59;27931:195;-1:-1:-1;;;;27931:195:0:o;28983:530::-;29110:12;29168:5;29143:21;:30;;29135:81;;;;-1:-1:-1;;;29135:81:0;;;;;;;:::i;:::-;29235:18;29246:6;29235:10;:18::i;:::-;29227:60;;;;-1:-1:-1;;;29227:60:0;;;;;;;:::i;:::-;29361:12;29375:23;29402:6;-1:-1:-1;;;;;29402:11:0;29422:5;29430:4;29402:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29360:75;;;;29453:52;29471:7;29480:10;29492:12;29453:17;:52::i;:::-;29446:59;28983:530;-1:-1:-1;;;;;;;28983:530:0:o;25013:422::-;25380:20;25419:8;;;25013:422::o;31523:742::-;31638:12;31667:7;31663:595;;;-1:-1:-1;31698:10:0;31691:17;;31663:595;31812:17;;:21;31808:439;;32075:10;32069:17;32136:15;32123:10;32119:2;32115:19;32108:44;32023:148;32211:20;;-1:-1:-1;;;32211:20:0;;;;32218:12;;32211:20;;;:::i;1442:241:-1:-;;1546:2;1534:9;1525:7;1521:23;1517:32;1514:2;;;-1:-1;;1552:12;1514:2;72:20;;-1:-1;;;;;23268:54;;23977:35;;23967:2;;-1:-1;;24016:12;1690:392;;1830:2;;1818:9;1809:7;1805:23;1801:32;1798:2;;;-1:-1;;1836:12;1798:2;1887:17;1881:24;1925:18;1917:6;1914:30;1911:2;;;-1:-1;;1947:12;1911:2;2034:22;;281:4;269:17;;265:27;-1:-1;255:2;;-1:-1;;296:12;255:2;336:6;330:13;358:80;373:64;430:6;373:64;:::i;:::-;358:80;:::i;:::-;466:21;;;523:14;;;;498:17;;;612;;;603:27;;;;600:36;-1:-1;597:2;;;-1:-1;;639:12;597:2;-1:-1;665:10;;659:217;684:6;681:1;678:13;659:217;;;1379:13;;752:61;;706:1;699:9;;;;;827:14;;;;855;;659:217;;;-1:-1;1967:99;1792:290;-1:-1;;;;;;;1792:290::o;2089:257::-;;2201:2;2189:9;2180:7;2176:23;2172:32;2169:2;;;-1:-1;;2207:12;2169:2;971:6;965:13;24123:5;23102:13;23095:21;24101:5;24098:32;24088:2;;-1:-1;;24134:12;2353:241;;2457:2;2445:9;2436:7;2432:23;2428:32;2425:2;;;-1:-1;;2463:12;2425:2;-1:-1;1231:20;;2419:175;-1:-1;2419:175::o;2601:263::-;;2716:2;2704:9;2695:7;2691:23;2687:32;2684:2;;;-1:-1;;2722:12;2684:2;-1:-1;1379:13;;2678:186;-1:-1;2678:186::o;2871:397::-;;;3002:2;2990:9;2981:7;2977:23;2973:32;2970:2;;;-1:-1;;3008:12;2970:2;-1:-1;;1379:13;;3171:2;3220:22;;;1102:13;1379;;1102;;-1:-1;2964:304::o;3275:535::-;;;;3424:2;3412:9;3403:7;3399:23;3395:32;3392:2;;;-1:-1;;3430:12;3392:2;1385:6;1379:13;3482:74;;3593:2;3647:9;3643:22;1379:13;3601:74;;3712:2;3766:9;3762:22;1379:13;3720:74;;3386:424;;;;;:::o;10850:271::-;;5118:5;22013:12;5229:52;5274:6;5269:3;5262:4;5255:5;5251:16;5229:52;:::i;:::-;5293:16;;;;;10984:137;-1:-1;;10984:137::o;11128:222::-;-1:-1;;;;;23268:54;;;;4060:37;;11255:2;11240:18;;11226:124::o;11357:333::-;-1:-1;;;;;23268:54;;;4060:37;;23268:54;;11676:2;11661:18;;4060:37;11512:2;11497:18;;11483:207::o;11697:1036::-;-1:-1;;;;;23268:54;;;4060:37;;23268:54;;;12201:2;12186:18;;4060:37;12284:2;12269:18;;10801:37;;;;12367:2;12352:18;;10801:37;;;;12458:3;12443:19;;5400:58;;;;-1:-1;12535:19;;5400:58;23268:54;;;12634:3;12619:19;;4060:37;12718:3;12703:19;;10801:37;;;;12036:3;12021:19;;12007:726::o;12740:333::-;-1:-1;;;;;23268:54;;;;4060:37;;13059:2;13044:18;;10801:37;12895:2;12880:18;;12866:207::o;13080:310::-;;13227:2;13248:17;13241:47;5615:5;22013:12;22557:6;13227:2;13216:9;13212:18;22545:19;5709:52;5754:6;22585:14;13216:9;22585:14;13227:2;5735:5;5731:16;5709:52;:::i;:::-;23897:7;23881:14;-1:-1;;23877:28;5773:39;;;;22585:14;5773:39;;13198:192;-1:-1;;13198:192::o;13397:416::-;13597:2;13611:47;;;6049:2;13582:18;;;22545:19;6085:34;22585:14;;;6065:55;-1:-1;;;6140:12;;;6133:30;6182:12;;;13568:245::o;13820:416::-;14020:2;14034:47;;;6433:2;14005:18;;;22545:19;6469:29;22585:14;;;6449:50;6518:12;;;13991:245::o;14243:416::-;14443:2;14457:47;;;6769:2;14428:18;;;22545:19;-1:-1;;;22585:14;;;6785:37;6841:12;;;14414:245::o;14666:416::-;14866:2;14880:47;;;7092:2;14851:18;;;22545:19;7128:32;22585:14;;;7108:53;7180:12;;;14837:245::o;15089:416::-;15289:2;15303:47;;;7431:2;15274:18;;;22545:19;-1:-1;;;22585:14;;;7447:38;7504:12;;;15260:245::o;15512:416::-;15712:2;15726:47;;;7755:2;15697:18;;;22545:19;7791:34;22585:14;;;7771:55;-1:-1;;;7846:12;;;7839:30;7888:12;;;15683:245::o;15935:416::-;16135:2;16149:47;;;8139:2;16120:18;;;22545:19;8175:28;22585:14;;;8155:49;8223:12;;;16106:245::o;16358:416::-;16558:2;16572:47;;;8474:2;16543:18;;;22545:19;-1:-1;;;22585:14;;;8490:37;8546:12;;;16529:245::o;16781:416::-;16981:2;16995:47;;;8797:2;16966:18;;;22545:19;8833:34;22585:14;;;8813:55;-1:-1;;;8888:12;;;8881:25;8925:12;;;16952:245::o;17204:416::-;17404:2;17418:47;;;17389:18;;;22545:19;9212:34;22585:14;;;9192:55;9266:12;;;17375:245::o;17627:416::-;17827:2;17841:47;;;9517:1;17812:18;;;22545:19;-1:-1;;;22585:14;;;9532:27;9578:12;;;17798:245::o;18050:416::-;18250:2;18264:47;;;9829:2;18235:18;;;22545:19;9865:31;22585:14;;;9845:52;9916:12;;;18221:245::o;18473:416::-;18673:2;18687:47;;;10167:2;18658:18;;;22545:19;10203:34;22585:14;;;10183:55;-1:-1;;;10258:12;;;10251:34;10304:12;;;18644:245::o;18896:416::-;19096:2;19110:47;;;10555:2;19081:18;;;22545:19;10591:34;22585:14;;;10571:55;-1:-1;;;10646:12;;;10639:46;10704:12;;;19067:245::o;19319:222::-;10801:37;;;19446:2;19431:18;;19417:124::o;19548:333::-;10801:37;;;-1:-1;;;;;23268:54;19867:2;19852:18;;4060:37;19703:2;19688:18;;19674:207::o;19888:832::-;;20185:3;20174:9;20170:19;10831:5;10808:3;10801:37;20358:2;23500:24;20358:2;20347:9;20343:18;5400:58;20185:3;20395:2;20384:9;20380:18;20373:48;20435:108;4453:5;22013:12;22557:6;22552:3;22545:19;22585:14;20174:9;22585:14;4465:93;;20358:2;4629:5;21867:14;4641:21;;-1:-1;4668:260;4693:6;4690:1;4687:13;4668:260;;;4754:13;;-1:-1;;;;;23268:54;4060:37;;22400:14;;;;3971;;;;-1:-1;4708:9;4668:260;;;-1:-1;;;;;;;23268:54;;;;20622:2;20607:18;;4060:37;-1:-1;;;20705:3;20690:19;10801:37;23268:54;20427:116;-1:-1;;;20156:564::o;20727:444::-;10801:37;;;21074:2;21059:18;;10801:37;;;;-1:-1;;;;;23268:54;21157:2;21142:18;;4060:37;20910:2;20895:18;;20881:290::o;21178:256::-;21240:2;21234:9;21266:17;;;21341:18;21326:34;;21362:22;;;21323:62;21320:2;;;21398:1;;21388:12;21320:2;21240;21407:22;21218:216;;-1:-1;21218:216::o;21441:304::-;;21600:18;21592:6;21589:30;21586:2;;;-1:-1;;21622:12;21586:2;-1:-1;21667:4;21655:17;;;21720:15;;21523:222::o;23537:268::-;23602:1;23609:101;23623:6;23620:1;23617:13;23609:101;;;23690:11;;;23684:18;23671:11;;;23664:39;23645:2;23638:10;23609:101;;;23725:6;23722:1;23719:13;23716:2;;;-1:-1;;23602:1;23772:16;;23765:27;23586:219::o

Swarm Source

ipfs://a404c6f6f0626cd58378fdde324b93e1b450ed6ca044a9335fc6f72ba99a8cfd
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
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.