Contract 0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c 1

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x39d00ce877e856157e4a7f474e1aff7a9dd4eb027cdb1b58eab22966c6f1ec3eHarvest203172932021-10-17 16:34:1639 secs ago0xdeadc0debd84f58df416c19f675bd8875ff842ff IN  0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c0 MATIC0.00435788826
0xda7f352ef1a8117ab5fa5329d550fb24298f54e605d02b5d83f6ea11bb1e9056Harvest203172332021-10-17 16:31:443 mins ago0xdeadc0debd84f58df416c19f675bd8875ff842ff IN  0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c0 MATIC0.00435788826
0x6f4ccf19b1210360060d7e6ff5b513fdfa0e15e4faf2ae6fe84aac46e28f0982Harvest203171962021-10-17 16:29:165 mins ago0xdeadc0de88538746b5d15132b1da10eae4105d46 IN  0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c0 MATIC0.00435788826
0x0a9f6cfac9f59f61d933eb401946ad666cfb6f973b2a6be7a69431378d56d117Harvest203171362021-10-17 16:26:468 mins ago0xdeadc0de88538746b5d15132b1da10eae4105d46 IN  0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c0 MATIC0.00435788826
0xc636120a91eae85f82aafe980483d9975f73b24a28dc470f5fb66f264f6c601fHarvest203170632021-10-17 16:24:1610 mins ago0xdeadc0de4cbe1851bb037c804597c698e57c9171 IN  0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c0 MATIC0.00435788826
0xf77716e9054db5ab27a48675bfa830e5f34c79f35fda6e3c1cb30d08adcbe121Harvest203169922021-10-17 16:21:5013 mins ago0xdeadc0de5c70abb6bca4f5640f7a7915c2c137d1 IN  0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c0 MATIC0.00435788826
0xeae8c757a371c276a9d3a54a33253470558dd265f04b55835e5a009792dd69bdHarvest203169192021-10-17 16:19:1615 mins ago0xdeadc0debd84f58df416c19f675bd8875ff842ff IN  0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c0 MATIC0.005084202948
0x778f723600bd9627553c29294edcf8f3f10c04a882f27dd80353ff7924ead759Harvest203168452021-10-17 16:16:4418 mins ago0xdeadc0de74645e7a030d5c99e4bbc3321822bcad IN  0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c0 MATIC0.00435788826
0x9010f3182bb2d3a5aea15c4a7ca5b1f7e5e098dbb31c09e7edd9ea3367748d06Harvest203167722021-10-17 16:14:1420 mins ago0xdeadc0de88538746b5d15132b1da10eae4105d46 IN  0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c0 MATIC0.00435788826
0xa65f2b40d92a82581c4683742b44417919f8fa758f7bf23f9cfba9dbc1d92b82Harvest203166952021-10-17 16:11:3623 mins ago0xdeadc0de88538746b5d15132b1da10eae4105d46 IN  0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c0 MATIC0.00435788826
0xeca1ec4170b34dff7bac4ed86894d4160a91bbdd99d5aa5032df675255a32475Harvest203166482021-10-17 16:09:1225 mins ago0xdeadc0debd84f58df416c19f675bd8875ff842ff IN  0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c0 MATIC0.00435788826
0x5b694e152b5c14a390d78a6253762f9d9a519bf82d0233577f5853aeade08f53Harvest203166112021-10-17 16:06:4428 mins ago0xdeadc0de88538746b5d15132b1da10eae4105d46 IN  0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c0 MATIC0.00435788826
0x7cd7954feec8cb112c517b9671fd07a777812d0899325213f48e457a818a8f8cHarvest203165412021-10-17 16:04:0830 mins ago0xdeadc0de88538746b5d15132b1da10eae4105d46 IN  0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c0 MATIC0.00435788826
0x65755f7095e3a0b43fe3b41d7c836a63c6adfe1606f983162ca30c6243d26791Harvest203164672021-10-17 16:01:3633 mins ago0xdeadc0de74645e7a030d5c99e4bbc3321822bcad IN  0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c0 MATIC0.00435788826
0xb9c59e8230c83fa6f6edeb5c5d1abc7ceb2749f675d6453c18982da69f6bb288Harvest203163942021-10-17 15:59:0635 mins ago0xdeadc0debd84f58df416c19f675bd8875ff842ff IN  0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c0 MATIC0.00435788826
0x96addbe1cb16d3091849314473f8001f730bb7a1914ecb9095244af810bb1e96Harvest203163232021-10-17 15:56:4038 mins ago0xdeadc0debd84f58df416c19f675bd8875ff842ff IN  0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c0 MATIC0.003961716612
0xf0a26d6a46410d868eaced848ec4b8e4ab9f4d383a2e43953718f95e19784ba7Harvest203162712021-10-17 15:54:1440 mins ago0xdeadc0de74645e7a030d5c99e4bbc3321822bcad IN  0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c0 MATIC0.003961716612
0xb9362ab41b74ba5b7177323f212c9efdf2403c2c2dcb4d8ec066a07d9c30efe2Harvest203162342021-10-17 15:51:4643 mins ago0xdeadc0de5c70abb6bca4f5640f7a7915c2c137d1 IN  0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c0 MATIC0.00435788826
0xe48f817968246bd45cf0bafbbd2106acb3804f32b5c7af0e8407364fb99db659Harvest203161772021-10-17 15:49:2645 mins ago0xdeadc0de5c70abb6bca4f5640f7a7915c2c137d1 IN  0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c0 MATIC0.00435788826
0xc8db4910801416279953897ce8378d206d6c428bfe5a773d52cbf4185c23c12cHarvest203161012021-10-17 15:46:5048 mins ago0xdeadc0de74645e7a030d5c99e4bbc3321822bcad IN  0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c0 MATIC0.00435788826
0xc089253b0f0190b18c04c91185a7c4b6dc31b53c5297927b4e8af59bb5b92a67Harvest203160312021-10-17 15:44:2250 mins ago0xdeadc0de74645e7a030d5c99e4bbc3321822bcad IN  0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c0 MATIC0.002521926076
0x643e6d682446f8e92c5598cd9bd1c2c57246843a009661409ab95f9cbd566202Harvest203159582021-10-17 15:41:5253 mins ago0xdeadc0debd84f58df416c19f675bd8875ff842ff IN  0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c0 MATIC0.002751192091
0xd00c7ed09187a1a124222eca77e19c5e162602b96be7d75d2c28008f3669a4a1Harvest203158812021-10-17 15:39:1455 mins ago0xdeadc0de4cbe1851bb037c804597c698e57c9171 IN  0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c0 MATIC0.00435788826
0xda5d0362074faa6b7ccc27e9f82ef9038aeb8932be754603eede04db31b7ec83Harvest203158122021-10-17 15:36:5258 mins ago0xdeadc0de88538746b5d15132b1da10eae4105d46 IN  0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c0 MATIC0.00435788826
0x08f7249276c26ef779110cd4b52045fd01fe2e6b2550829cb35ec10fea2a5ea5Harvest203157412021-10-17 15:34:261 hr ago0xdeadc0de88538746b5d15132b1da10eae4105d46 IN  0xe4cd42e17bbc54455c5855ecf4bd46d51da5133c0 MATIC0.00435788826
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StrategyPolygonSushiLP

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

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

// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.6.0;

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

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

// File: node_modules\@openzeppelin\contracts\token\ERC20\IERC20.sol


pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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

// File: node_modules\@openzeppelin\contracts\math\SafeMath.sol


pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin\contracts\token\ERC20\ERC20.sol


pragma solidity ^0.6.0;




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

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

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

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

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

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

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

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

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

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

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

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

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

// File: node_modules\@openzeppelin\contracts\utils\Address.sol


pragma solidity >=0.6.2 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin\contracts\token\ERC20\SafeERC20.sol


pragma solidity ^0.6.0;




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

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

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

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

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

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

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

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

// File: contracts\BIFI\interfaces\sushi\IUniswapV2Router01.sol


pragma solidity ^0.6.0;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

// File: contracts\BIFI\interfaces\sushi\IUniswapV2Router02.sol


pragma solidity ^0.6.0;

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

// File: contracts\BIFI\interfaces\sushi\IUniswapV2Pair.sol


pragma solidity >=0.5.0;

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

// File: contracts\BIFI\interfaces\sushi\IMiniChefV2.sol

pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;

interface IMiniChefV2 {
    struct UserInfo {
        uint256 amount;
        uint256 rewardDebt;
    }

    struct PoolInfo {
        uint128 accSushiPerShare;
        uint64 lastRewardTime;
        uint64 allocPoint;
    }

    function poolLength() external view returns (uint256);
    function updatePool(uint256 pid) external returns (IMiniChefV2.PoolInfo memory);
    function userInfo(uint256 _pid, address _user) external view returns (uint256, uint256);
    function deposit(uint256 pid, uint256 amount, address to) external;
    function withdraw(uint256 pid, uint256 amount, address to) external;
    function harvest(uint256 pid, address to) external;
    function withdrawAndHarvest(uint256 pid, uint256 amount, address to) external;
    function emergencyWithdraw(uint256 pid, address to) external;
}

// File: @openzeppelin\contracts\access\Ownable.sol


pragma solidity ^0.6.0;

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

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

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

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

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

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

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

// File: @openzeppelin\contracts\utils\Pausable.sol


pragma solidity ^0.6.0;


/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor () internal {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

// File: contracts\BIFI\strategies\Common\StratManager.sol


pragma solidity ^0.6.12;


contract StratManager is Ownable, Pausable {
    /**
     * @dev Beefy Contracts:
     * {keeper} - Address to manage a few lower risk features of the strat
     * {strategist} - Address of the strategy author/deployer where strategist fee will go.
     * {vault} - Address of the vault that controls the strategy's funds.
     * {unirouter} - Address of exchange to execute swaps.
     */
    address public keeper;
    address public strategist;
    address public unirouter;
    address public vault;
    address public beefyFeeRecipient;

    /**
     * @dev Initializes the base strategy.
     * @param _keeper address to use as alternative owner.
     * @param _strategist address where strategist fees go.
     * @param _unirouter router to use for swaps
     * @param _vault address of parent vault.
     * @param _beefyFeeRecipient address where to send Beefy's fees.
     */
    constructor(
        address _keeper,
        address _strategist,
        address _unirouter,
        address _vault,
        address _beefyFeeRecipient
    ) public {
        keeper = _keeper;
        strategist = _strategist;
        unirouter = _unirouter;
        vault = _vault;
        beefyFeeRecipient = _beefyFeeRecipient;
    }

    // checks that caller is either owner or keeper.
    modifier onlyManager() {
        require(msg.sender == owner() || msg.sender == keeper, "!manager");
        _;
    }

    // verifies that the caller is not a contract.
    modifier onlyEOA() {
        require(msg.sender == tx.origin, "!EOA");
        _;
    }

    /**
     * @dev Updates address of the strat keeper.
     * @param _keeper new keeper address.
     */
    function setKeeper(address _keeper) external onlyManager {
        keeper = _keeper;
    }

    /**
     * @dev Updates address where strategist fee earnings will go.
     * @param _strategist new strategist address.
     */
    function setStrategist(address _strategist) external {
        require(msg.sender == strategist, "!strategist");
        strategist = _strategist;
    }

    /**
     * @dev Updates router that will be used for swaps.
     * @param _unirouter new unirouter address.
     */
    function setUnirouter(address _unirouter) external onlyOwner {
        unirouter = _unirouter;
    }

    /**
     * @dev Updates parent vault.
     * @param _vault new vault address.
     */
    function setVault(address _vault) external onlyOwner {
        vault = _vault;
    }

    /**
     * @dev Updates beefy fee recipient.
     * @param _beefyFeeRecipient new beefy fee recipient address.
     */
    function setBeefyFeeRecipient(address _beefyFeeRecipient) external onlyOwner {
        beefyFeeRecipient = _beefyFeeRecipient;
    }

    /**
     * @dev Function to synchronize balances before new user deposit.
     * Can be overridden in the strategy.
     */
    function beforeDeposit() external virtual {}
}

// File: contracts\BIFI\strategies\Common\FeeManager.sol


pragma solidity ^0.6.12;

abstract contract FeeManager is StratManager {
    uint constant public STRATEGIST_FEE = 112;
    uint constant public MAX_FEE = 1000;
    uint constant public MAX_CALL_FEE = 111;

    uint constant public WITHDRAWAL_FEE_CAP = 50;
    uint constant public WITHDRAWAL_MAX = 10000;

    uint public withdrawalFee = 10;

    uint public callFee = 111;
    uint public beefyFee = MAX_FEE - STRATEGIST_FEE - callFee;

    function setCallFee(uint256 _fee) external onlyManager {
        require(_fee <= MAX_CALL_FEE, "!cap");
        
        callFee = _fee;
        beefyFee = MAX_FEE - STRATEGIST_FEE - callFee;
    }

    function setWithdrawalFee(uint256 _fee) external onlyManager {
        require(_fee <= WITHDRAWAL_FEE_CAP, "!cap");

        withdrawalFee = _fee;
    }
}

// File: contracts\BIFI\strategies\Sushi\StrategyPolygonSushiLP.sol


pragma solidity ^0.6.0;

contract StrategyPolygonSushiLP is StratManager, FeeManager {
    using SafeERC20 for IERC20;
    using SafeMath for uint256;

    // Tokens used
    address public native;
    address public output;
    address public want;
    address public lpToken0;
    address public lpToken1;

    // Third party contracts
    address public chef;
    uint256 public poolId;

    // Routes
    address[] public outputToNativeRoute;
    address[] public nativeToOutputRoute;
    address[] public outputToLp0Route;
    address[] public outputToLp1Route;

    /**
     * @dev Event that is fired each time someone harvests the strat.
     */
    event StratHarvest(address indexed harvester);

    constructor(
        address _want,
        uint256 _poolId,
        address _chef,
        address _vault,
        address _unirouter,
        address _keeper,
        address _strategist,
        address _beefyFeeRecipient,
        address[] memory _outputToNativeRoute,
        address[] memory _outputToLp0Route,
        address[] memory _outputToLp1Route
    ) StratManager(_keeper, _strategist, _unirouter, _vault, _beefyFeeRecipient) public {
        want = _want;
        poolId = _poolId;
        chef = _chef;

        output = _outputToNativeRoute[0];
        native = _outputToNativeRoute[_outputToNativeRoute.length - 1];
        outputToNativeRoute = _outputToNativeRoute;
        
        // setup lp routing
        lpToken0 = IUniswapV2Pair(want).token0();
        outputToLp0Route = _outputToLp0Route;

        lpToken1 = IUniswapV2Pair(want).token1();
        outputToLp1Route = _outputToLp1Route;

        nativeToOutputRoute = new address[](_outputToNativeRoute.length);
        for (uint i = 0; i < _outputToNativeRoute.length; i++) {
            uint idx = _outputToNativeRoute.length - 1 - i;
            nativeToOutputRoute[i] = outputToNativeRoute[idx];
        }

        _giveAllowances();
    }

    // puts the funds to work
    function deposit() public whenNotPaused {
        uint256 wantBal = IERC20(want).balanceOf(address(this));

        if (wantBal > 0) {
            IMiniChefV2(chef).deposit(poolId, wantBal, address(this));
        }
    }

    function withdraw(uint256 _amount) external {
        require(msg.sender == vault, "!vault");

        uint256 wantBal = IERC20(want).balanceOf(address(this));

        if (wantBal < _amount) {
            IMiniChefV2(chef).withdraw(poolId, _amount.sub(wantBal), address(this));
            wantBal = IERC20(want).balanceOf(address(this));
        }

        if (wantBal > _amount) {
            wantBal = _amount;
        }

        if (tx.origin == owner() || paused()) {
            IERC20(want).safeTransfer(vault, wantBal);
        } else {
            uint256 withdrawalFeeAmount = wantBal.mul(withdrawalFee).div(WITHDRAWAL_MAX);	
            IERC20(want).safeTransfer(vault, wantBal.sub(withdrawalFeeAmount));
        }
    }

    // compounds earnings and charges performance fee
    function harvest() external whenNotPaused onlyEOA {
        IMiniChefV2(chef).harvest(poolId, address(this));
        chargeFees();
        addLiquidity();
        deposit();

        emit StratHarvest(msg.sender);
    }

    // performance fees
    function chargeFees() internal {
        // v2 harvester rewards are in both output and native, convert native to output
        uint256 toOutput = IERC20(native).balanceOf(address(this));
        if (toOutput > 0) {
            IUniswapV2Router02(unirouter).swapExactTokensForTokens(toOutput, 0, nativeToOutputRoute, address(this), now);
        }
        
        uint256 toNative = IERC20(output).balanceOf(address(this)).mul(45).div(1000);
        IUniswapV2Router02(unirouter).swapExactTokensForTokens(toNative, 0, outputToNativeRoute, address(this), now);

        uint256 nativeBal = IERC20(native).balanceOf(address(this));

        uint256 callFeeAmount = nativeBal.mul(callFee).div(MAX_FEE);
        IERC20(native).safeTransfer(msg.sender, callFeeAmount);

        uint256 beefyFeeAmount = nativeBal.mul(beefyFee).div(MAX_FEE);
        IERC20(native).safeTransfer(beefyFeeRecipient, beefyFeeAmount);

        uint256 strategistFee = nativeBal.mul(STRATEGIST_FEE).div(MAX_FEE);
        IERC20(native).safeTransfer(strategist, strategistFee);
    }

    // Adds liquidity to AMM and gets more LP tokens.
    function addLiquidity() internal {
        uint256 outputHalf = IERC20(output).balanceOf(address(this)).div(2);

        if (lpToken0 != output) {
            IUniswapV2Router02(unirouter).swapExactTokensForTokens(outputHalf, 0, outputToLp0Route, address(this), now);
        }

        if (lpToken1 != output) {
            IUniswapV2Router02(unirouter).swapExactTokensForTokens(outputHalf, 0, outputToLp1Route, address(this), now);
        }

        uint256 lp0Bal = IERC20(lpToken0).balanceOf(address(this));
        uint256 lp1Bal = IERC20(lpToken1).balanceOf(address(this));
        IUniswapV2Router02(unirouter).addLiquidity(lpToken0, lpToken1, lp0Bal, lp1Bal, 1, 1, address(this), now);
    }

    // calculate the total underlaying 'want' held by the strat.
    function balanceOf() public view returns (uint256) {
        return balanceOfWant().add(balanceOfPool());
    }

    // it calculates how much 'want' this contract holds.
    function balanceOfWant() public view returns (uint256) {
        return IERC20(want).balanceOf(address(this));
    }

    // it calculates how much 'want' the strategy has working in the farm.
    function balanceOfPool() public view returns (uint256) {
        (uint256 _amount, ) = IMiniChefV2(chef).userInfo(poolId, address(this));	
        return _amount;
    }

    // called as part of strat migration. Sends all the available funds back to the vault.
    function retireStrat() external {
        require(msg.sender == vault, "!vault");

        IMiniChefV2(chef).emergencyWithdraw(poolId, address(this));

        uint256 wantBal = IERC20(want).balanceOf(address(this));
        IERC20(want).transfer(vault, wantBal);
    }

    // pauses deposits and withdraws all funds from third party systems.
    function panic() public onlyManager {
        pause();
        IMiniChefV2(chef).emergencyWithdraw(poolId, address(this));
    }

    function pause() public onlyManager {
        _pause();

        _removeAllowances();
    }

    function unpause() external onlyManager {
        _unpause();

        _giveAllowances();

        deposit();
    }

    function _giveAllowances() internal {
        IERC20(want).safeApprove(chef, uint256(-1));
        IERC20(output).safeApprove(unirouter, uint256(-1));
        // needed for v2 harvester
        IERC20(native).safeApprove(unirouter, uint256(-1));

        IERC20(lpToken0).safeApprove(unirouter, 0);
        IERC20(lpToken0).safeApprove(unirouter, uint256(-1));

        IERC20(lpToken1).safeApprove(unirouter, 0);
        IERC20(lpToken1).safeApprove(unirouter, uint256(-1));
    }

    function _removeAllowances() internal {
        IERC20(want).safeApprove(chef, 0);
        IERC20(output).safeApprove(unirouter, 0);
        IERC20(native).safeApprove(unirouter, 0);
        IERC20(lpToken0).safeApprove(unirouter, 0);
        IERC20(lpToken1).safeApprove(unirouter, 0);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_want","type":"address"},{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"address","name":"_chef","type":"address"},{"internalType":"address","name":"_vault","type":"address"},{"internalType":"address","name":"_unirouter","type":"address"},{"internalType":"address","name":"_keeper","type":"address"},{"internalType":"address","name":"_strategist","type":"address"},{"internalType":"address","name":"_beefyFeeRecipient","type":"address"},{"internalType":"address[]","name":"_outputToNativeRoute","type":"address[]"},{"internalType":"address[]","name":"_outputToLp0Route","type":"address[]"},{"internalType":"address[]","name":"_outputToLp1Route","type":"address[]"}],"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"harvester","type":"address"}],"name":"StratHarvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_CALL_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STRATEGIST_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WITHDRAWAL_FEE_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WITHDRAWAL_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOfPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOfWant","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beefyFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beefyFeeRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beforeDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"callFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"chef","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"keeper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpToken0","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpToken1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"native","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nativeToOutputRoute","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"output","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"outputToLp0Route","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"outputToLp1Route","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"outputToNativeRoute","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"panic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"retireStrat","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_beefyFeeRecipient","type":"address"}],"name":"setBeefyFeeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setCallFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_keeper","type":"address"}],"name":"setKeeper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategist","type":"address"}],"name":"setStrategist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_unirouter","type":"address"}],"name":"setUnirouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"}],"name":"setVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setWithdrawalFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategist","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":"unirouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"want","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

6080604052600a600655606f6007556103096008553480156200002157600080fd5b50604051620033b9380380620033b98339810160408190526200004491620009b7565b8585888a876000620000556200042d565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506000805460ff60a01b19168155600180546001600160a01b03199081166001600160a01b0398891617909155600280548216968816969096179095556003805486169487169490941790935560048054851692861692909217909155600580548416918516919091179055600b805483168f8516179055600f8d9055600e8054909216928c1692909217905583518491906200013757fe5b6020026020010151600a60006101000a8154816001600160a01b0302191690836001600160a01b03160217905550826001845103815181106200017657fe5b602090810291909101810151600980546001600160a01b0319166001600160a01b039092169190911790558351620001b591601091908601906200084e565b50600b60009054906101000a90046001600160a01b03166001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156200020557600080fd5b505afa1580156200021a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000240919062000999565b600c80546001600160a01b0319166001600160a01b03929092169190911790558151620002759060129060208501906200084e565b50600b60009054906101000a90046001600160a01b03166001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b158015620002c557600080fd5b505afa158015620002da573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000300919062000999565b600d80546001600160a01b0319166001600160a01b03929092169190911790558051620003359060139060208401906200084e565b5082516001600160401b03811180156200034e57600080fd5b5060405190808252806020026020018201604052801562000379578160200160208202803683370190505b50805162000390916011916020909101906200084e565b5060005b83518110156200041157600081600186510303905060108181548110620003b757fe5b600091825260209091200154601180546001600160a01b039092169184908110620003de57fe5b600091825260209091200180546001600160a01b0319166001600160a01b03929092169190911790555060010162000394565b506200041c62000431565b505050505050505050505062000d02565b3390565b600e54600b546200045e916001600160a01b0391821691166000196200056c602090811b620012d617901c565b600354600a546200048b916001600160a01b0391821691166000196200056c602090811b620012d617901c565b600354600954620004b8916001600160a01b0391821691166000196200056c602090811b620012d617901c565b600354600c54620004e4916001600160a01b03918216911660006200056c602090811b620012d617901c565b600354600c5462000511916001600160a01b0391821691166000196200056c602090811b620012d617901c565b600354600d546200053d916001600160a01b03918216911660006200056c602090811b620012d617901c565b600354600d546200056a916001600160a01b0391821691166000196200056c602090811b620012d617901c565b565b801580620005fb5750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e90620005a5903090869060040162000b43565b60206040518083038186803b158015620005be57600080fd5b505afa158015620005d3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620005f9919062000b0c565b155b620006235760405162461bcd60e51b81526004016200061a9062000c72565b60405180910390fd5b6200067e8363095ea7b360e01b84846040516024016200064592919062000b5d565b60408051808303601f190181529190526020810180516001600160e01b0319939093166001600160e01b03938416179052906200068316565b505050565b6060620006df826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166200071f60201b620013d0179092919060201c565b8051909150156200067e578080602001905181019062000700919062000aea565b6200067e5760405162461bcd60e51b81526004016200061a9062000c28565b60606200073084846000856200073a565b90505b9392505050565b6060824710156200075f5760405162461bcd60e51b81526004016200061a9062000bab565b6200076a856200080a565b620007895760405162461bcd60e51b81526004016200061a9062000bf1565b60006060866001600160a01b03168587604051620007a8919062000b25565b60006040518083038185875af1925050503d8060008114620007e7576040519150601f19603f3d011682016040523d82523d6000602084013e620007ec565b606091505b509092509050620007ff82828662000810565b979650505050505050565b3b151590565b606083156200082157508162000733565b825115620008325782518084602001fd5b8160405162461bcd60e51b81526004016200061a919062000b76565b828054828255906000526020600020908101928215620008a6579160200282015b82811115620008a657825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200086f565b50620008b4929150620008b8565b5090565b5b80821115620008b45780546001600160a01b0319168155600101620008b9565b80516001600160a01b0381168114620008f157600080fd5b92915050565b600082601f83011262000908578081fd5b81516001600160401b03808211156200091f578283fd5b6020808302604051828282010181811085821117156200093d578687fd5b6040528481529450818501925085820181870183018810156200095f57600080fd5b600091505b848210156200098e57620009798882620008d9565b84529282019260019190910190820162000964565b505050505092915050565b600060208284031215620009ab578081fd5b620007338383620008d9565b60008060008060008060008060008060006101608c8e031215620009d9578687fd5b620009e58d8d620008d9565b9a5060208c01519950620009fd8d60408e01620008d9565b985062000a0e8d60608e01620008d9565b975062000a1f8d60808e01620008d9565b965062000a308d60a08e01620008d9565b955062000a418d60c08e01620008d9565b945062000a528d60e08e01620008d9565b6101008d01519094506001600160401b0381111562000a6f578384fd5b62000a7d8e828f01620008f7565b6101208e015190945090506001600160401b0381111562000a9c578283fd5b62000aaa8e828f01620008f7565b6101408e015190935090506001600160401b0381111562000ac9578182fd5b62000ad78e828f01620008f7565b9150509295989b509295989b9093969950565b60006020828403121562000afc578081fd5b8151801515811462000733578182fd5b60006020828403121562000b1e578081fd5b5051919050565b6000825162000b3981846020870162000ccf565b9190910192915050565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b03929092168252602082015260400190565b600060208252825180602084015262000b9781604085016020870162000ccf565b601f01601f19169190910160400192915050565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606082015260800190565b60005b8381101562000cec57818101518382015260200162000cd2565b8381111562000cfc576000848401525b50505050565b6126a78062000d126000396000f3fe608060405234801561001057600080fd5b506004361061028a5760003560e01c80637d38ca651161015c578063be12a978116100ce578063dfbdc43711610087578063dfbdc4371461047a578063f20eaeb814610482578063f2fde38b1461048a578063fb6177871461049d578063fbfa77cf146104a5578063fd63a887146104ad5761028a565b8063be12a97814610429578063c1a3d44c1461043c578063c7b9d53014610444578063d0e30db014610457578063d31025891461045f578063d92f3d73146104675761028a565b80638e145459116101205780638e145459146103e357806390321e1a146103eb578063a68833e5146103f3578063ac1e502514610406578063aced166114610419578063bc063e1a146104215761028a565b80637d38ca65146103bb5780638456cb59146103c3578063877562b6146103cb5780638bc7e8c4146103d35780638da5cb5b146103db5761028a565b80633e0dc34e116102005780635c975abb116101b95780635c975abb146103685780635ee167c01461037d5780636817031b14610385578063715018a614610398578063722713f7146103a0578063748747e6146103a85761028a565b80633e0dc34e146103385780633f4ba83a146103405780634641257d146103485780634700d3051461035057806354518b1a14610358578063573fef0a146103605761028a565b80631fe4a686116102525780631fe4a686146102e5578063257ae0de146102ed57806326465826146102f55780632ad5a53f1461030a5780632e1a7d4d1461031257806336c6cf21146103255761028a565b806305200c9c1461028f57806311588086146102b857806311b0b42d146102cd5780631f1fcd51146102d55780631fc8bc5d146102dd575b600080fd5b6102a261029d366004612069565b6104c0565b6040516102af9190612105565b60405180910390f35b6102c06104e7565b6040516102af919061254c565b6102a2610575565b6102a2610584565b6102a2610593565b6102a26105a2565b6102a26105b1565b610308610303366004612069565b6105c0565b005b6102c0610645565b610308610320366004612069565b61064a565b6102a2610333366004612069565b6108aa565b6102c06108b7565b6103086108bd565b610308610924565b610308610a12565b6102c0610ace565b610308610922565b610370610ad4565b6040516102af9190612195565b6102a2610ae4565b610308610393366004611f8d565b610af3565b610308610b54565b6102c0610bdd565b6103086103b6366004611f8d565b610bfd565b6102c0610c6c565b610308610c71565b6102a2610cce565b6102c0610cdd565b6102a2610ce3565b6102a2610cf2565b6102c0610d01565b610308610401366004611f8d565b610d07565b610308610414366004612069565b610d68565b6102a2610ddb565b6102c0610dea565b6102a2610437366004612069565b610df0565b6102c0610dfd565b610308610452366004611f8d565b610e7e565b610308610eca565b6102c0610fe3565b610308610475366004611f8d565b610fe9565b6102c061104a565b6102a261104f565b610308610498366004611f8d565b61105e565b61030861111e565b6102a26112ba565b6102a26104bb366004612069565b6112c9565b601181815481106104cd57fe5b6000918252602090912001546001600160a01b0316905081565b600e54600f546040516393f1a40b60e01b815260009283926001600160a01b03909116916393f1a40b9161051f913090600401612555565b604080518083038186803b15801561053657600080fd5b505afa15801561054a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056e9190612099565b5091505090565b6009546001600160a01b031681565b600b546001600160a01b031681565b600e546001600160a01b031681565b6002546001600160a01b031681565b6003546001600160a01b031681565b6105c8610ce3565b6001600160a01b0316336001600160a01b031614806105f157506001546001600160a01b031633145b6106165760405162461bcd60e51b815260040161060d9061246c565b60405180910390fd5b606f8111156106375760405162461bcd60e51b815260040161060d90612381565b600781905561037803600855565b606f81565b6004546001600160a01b031633146106745760405162461bcd60e51b815260040161060d906123e0565b600b546040516370a0823160e01b81526000916001600160a01b0316906370a08231906106a5903090600401612105565b60206040518083038186803b1580156106bd57600080fd5b505afa1580156106d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f59190612081565b9050818110156107f557600e54600f546001600160a01b0390911690630ad58d2f9061072185856113e9565b306040518463ffffffff1660e01b8152600401610740939291906125df565b600060405180830381600087803b15801561075a57600080fd5b505af115801561076e573d6000803e3d6000fd5b5050600b546040516370a0823160e01b81526001600160a01b0390911692506370a0823191506107a2903090600401612105565b60206040518083038186803b1580156107ba57600080fd5b505afa1580156107ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f29190612081565b90505b818111156108005750805b610808610ce3565b6001600160a01b0316326001600160a01b0316148061082a575061082a610ad4565b1561085157600454600b5461084c916001600160a01b03918216911683611416565b6108a6565b600061087461271061086e6006548561143590919063ffffffff16565b9061146f565b6004549091506108a4906001600160a01b031661089184846113e9565b600b546001600160a01b03169190611416565b505b5050565b601281815481106104cd57fe5b600f5481565b6108c5610ce3565b6001600160a01b0316336001600160a01b031614806108ee57506001546001600160a01b031633145b61090a5760405162461bcd60e51b815260040161060d9061246c565b6109126114a1565b61091a611512565b610922610eca565b565b61092c610ad4565b156109495760405162461bcd60e51b815260040161060d90612357565b3332146109685760405162461bcd60e51b815260040161060d906124d8565b600e54600f54604051630c7e663b60e11b81526001600160a01b03909216916318fccc769161099b913090600401612555565b600060405180830381600087803b1580156109b557600080fd5b505af11580156109c9573d6000803e3d6000fd5b505050506109d56115e9565b6109dd61195e565b6109e5610eca565b60405133907f577a37fdb49a88d66684922c6f913df5239b4f214b2b97c53ef8e3bbb2034cb590600090a2565b610a1a610ce3565b6001600160a01b0316336001600160a01b03161480610a4357506001546001600160a01b031633145b610a5f5760405162461bcd60e51b815260040161060d9061246c565b610a67610c71565b600e54600f546040516302f940c760e41b81526001600160a01b0390921691632f940c7091610a9a913090600401612555565b600060405180830381600087803b158015610ab457600080fd5b505af1158015610ac8573d6000803e3d6000fd5b50505050565b61271081565b600054600160a01b900460ff1690565b600c546001600160a01b031681565b610afb611cde565b6001600160a01b0316610b0c610ce3565b6001600160a01b031614610b325760405162461bcd60e51b815260040161060d90612400565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b610b5c611cde565b6001600160a01b0316610b6d610ce3565b6001600160a01b031614610b935760405162461bcd60e51b815260040161060d90612400565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000610bf8610bea6104e7565b610bf2610dfd565b90611ce2565b905090565b610c05610ce3565b6001600160a01b0316336001600160a01b03161480610c2e57506001546001600160a01b031633145b610c4a5760405162461bcd60e51b815260040161060d9061246c565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b607081565b610c79610ce3565b6001600160a01b0316336001600160a01b03161480610ca257506001546001600160a01b031633145b610cbe5760405162461bcd60e51b815260040161060d9061246c565b610cc6611d07565b610922611d68565b600d546001600160a01b031681565b60065481565b6000546001600160a01b031690565b6005546001600160a01b031681565b60075481565b610d0f611cde565b6001600160a01b0316610d20610ce3565b6001600160a01b031614610d465760405162461bcd60e51b815260040161060d90612400565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b610d70610ce3565b6001600160a01b0316336001600160a01b03161480610d9957506001546001600160a01b031633145b610db55760405162461bcd60e51b815260040161060d9061246c565b6032811115610dd65760405162461bcd60e51b815260040161060d90612381565b600655565b6001546001600160a01b031681565b6103e881565b601081815481106104cd57fe5b600b546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610e2e903090600401612105565b60206040518083038186803b158015610e4657600080fd5b505afa158015610e5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf89190612081565b6002546001600160a01b03163314610ea85760405162461bcd60e51b815260040161060d90612201565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b610ed2610ad4565b15610eef5760405162461bcd60e51b815260040161060d90612357565b600b546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610f20903090600401612105565b60206040518083038186803b158015610f3857600080fd5b505afa158015610f4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f709190612081565b90508015610fe057600e54600f54604051638dbdbe6d60e01b81526001600160a01b0390921691638dbdbe6d91610fad91859030906004016125df565b600060405180830381600087803b158015610fc757600080fd5b505af1158015610fdb573d6000803e3d6000fd5b505050505b50565b60085481565b610ff1611cde565b6001600160a01b0316611002610ce3565b6001600160a01b0316146110285760405162461bcd60e51b815260040161060d90612400565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b603281565b600a546001600160a01b031681565b611066611cde565b6001600160a01b0316611077610ce3565b6001600160a01b03161461109d5760405162461bcd60e51b815260040161060d90612400565b6001600160a01b0381166110c35760405162461bcd60e51b815260040161060d90612226565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b031633146111485760405162461bcd60e51b815260040161060d906123e0565b600e54600f546040516302f940c760e41b81526001600160a01b0390921691632f940c709161117b913090600401612555565b600060405180830381600087803b15801561119557600080fd5b505af11580156111a9573d6000803e3d6000fd5b5050600b546040516370a0823160e01b8152600093506001600160a01b0390911691506370a08231906111e0903090600401612105565b60206040518083038186803b1580156111f857600080fd5b505afa15801561120c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112309190612081565b600b546004805460405163a9059cbb60e01b81529394506001600160a01b039283169363a9059cbb936112689392169186910161217c565b602060405180830381600087803b15801561128257600080fd5b505af1158015611296573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a69190612049565b6004546001600160a01b031681565b601381815481106104cd57fe5b80158061135e5750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e9061130c9030908690600401612119565b60206040518083038186803b15801561132457600080fd5b505afa158015611338573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135c9190612081565b155b61137a5760405162461bcd60e51b815260040161060d906124f6565b6108a48363095ea7b360e01b848460405160240161139992919061217c565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611dfe565b60606113df8484600085611e8d565b90505b9392505050565b60008282111561140b5760405162461bcd60e51b815260040161060d906122a3565b508082035b92915050565b6108a48363a9059cbb60e01b848460405160240161139992919061217c565b60008261144457506000611410565b8282028284828161145157fe5b04146113e25760405162461bcd60e51b815260040161060d9061239f565b60008082116114905760405162461bcd60e51b815260040161060d90612320565b81838161149957fe5b049392505050565b6114a9610ad4565b6114c55760405162461bcd60e51b815260040161060d906121d3565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6114fb611cde565b6040516115089190612105565b60405180910390a1565b600e54600b54611531916001600160a01b0391821691166000196112d6565b600354600a54611550916001600160a01b0391821691166000196112d6565b60035460095461156f916001600160a01b0391821691166000196112d6565b600354600c5461158d916001600160a01b03918216911660006112d6565b600354600c546115ac916001600160a01b0391821691166000196112d6565b600354600d546115ca916001600160a01b03918216911660006112d6565b600354600d54610922916001600160a01b0391821691166000196112d6565b6009546040516370a0823160e01b81526000916001600160a01b0316906370a082319061161a903090600401612105565b60206040518083038186803b15801561163257600080fd5b505afa158015611646573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166a9190612081565b90508015611704576003546040516338ed173960e01b81526001600160a01b03909116906338ed1739906116ac9084906000906011903090429060040161256c565b600060405180830381600087803b1580156116c657600080fd5b505af11580156116da573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526117029190810190611fb4565b505b600a546040516370a0823160e01b815260009161179a916103e89161086e91602d916001600160a01b0316906370a0823190611744903090600401612105565b60206040518083038186803b15801561175c57600080fd5b505afa158015611770573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117949190612081565b90611435565b6003546040516338ed173960e01b81529192506001600160a01b0316906338ed1739906117d59084906000906010903090429060040161256c565b600060405180830381600087803b1580156117ef57600080fd5b505af1158015611803573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261182b9190810190611fb4565b506009546040516370a0823160e01b81526000916001600160a01b0316906370a082319061185d903090600401612105565b60206040518083038186803b15801561187557600080fd5b505afa158015611889573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ad9190612081565b905060006118cc6103e861086e6007548561143590919063ffffffff16565b6009549091506118e6906001600160a01b03163383611416565b60006119036103e861086e6008548661143590919063ffffffff16565b600554600954919250611923916001600160a01b03908116911683611416565b60006119366103e861086e866070611435565b600254600954919250611956916001600160a01b03908116911683611416565b505050505050565b600a546040516370a0823160e01b81526000916119e6916002916001600160a01b0316906370a0823190611996903090600401612105565b60206040518083038186803b1580156119ae57600080fd5b505afa1580156119c2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086e9190612081565b600a54600c549192506001600160a01b03918216911614611a93576003546040516338ed173960e01b81526001600160a01b03909116906338ed173990611a3b9084906000906012903090429060040161256c565b600060405180830381600087803b158015611a5557600080fd5b505af1158015611a69573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611a919190810190611fb4565b505b600a54600d546001600160a01b03908116911614611b3d576003546040516338ed173960e01b81526001600160a01b03909116906338ed173990611ae59084906000906013903090429060040161256c565b600060405180830381600087803b158015611aff57600080fd5b505af1158015611b13573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b3b9190810190611fb4565b505b600c546040516370a0823160e01b81526000916001600160a01b0316906370a0823190611b6e903090600401612105565b60206040518083038186803b158015611b8657600080fd5b505afa158015611b9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bbe9190612081565b600d546040516370a0823160e01b81529192506000916001600160a01b03909116906370a0823190611bf4903090600401612105565b60206040518083038186803b158015611c0c57600080fd5b505afa158015611c20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c449190612081565b600354600c54600d5460405162e8e33760e81b81529394506001600160a01b039283169363e8e3370093611c8c93811692169087908790600190819030904290600401612133565b606060405180830381600087803b158015611ca657600080fd5b505af1158015611cba573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061195691906120bc565b3390565b6000828201838110156113e25760405162461bcd60e51b815260040161060d9061226c565b611d0f610ad4565b15611d2c5760405162461bcd60e51b815260040161060d90612357565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114fb611cde565b600e54600b54611d86916001600160a01b03918216911660006112d6565b600354600a54611da4916001600160a01b03918216911660006112d6565b600354600954611dc2916001600160a01b03918216911660006112d6565b600354600c54611de0916001600160a01b03918216911660006112d6565b600354600d54610922916001600160a01b03918216911660006112d6565b6060611e53826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113d09092919063ffffffff16565b8051909150156108a45780806020019051810190611e719190612049565b6108a45760405162461bcd60e51b815260040161060d9061248e565b606082471015611eaf5760405162461bcd60e51b815260040161060d906122da565b611eb885611f4e565b611ed45760405162461bcd60e51b815260040161060d90612435565b60006060866001600160a01b03168587604051611ef191906120e9565b60006040518083038185875af1925050503d8060008114611f2e576040519150601f19603f3d011682016040523d82523d6000602084013e611f33565b606091505b5091509150611f43828286611f54565b979650505050505050565b3b151590565b60608315611f635750816113e2565b825115611f735782518084602001fd5b8160405162461bcd60e51b815260040161060d91906121a0565b600060208284031215611f9e578081fd5b81356001600160a01b03811681146113e2578182fd5b60006020808385031215611fc6578182fd5b825167ffffffffffffffff811115611fdc578283fd5b8301601f81018513611fec578283fd5b8051611fff611ffa82612625565b6125fe565b818152838101908385018584028501860189101561201b578687fd5b8694505b8385101561203d57805183526001949094019391850191850161201f565b50979650505050505050565b60006020828403121561205a578081fd5b815180151581146113e2578182fd5b60006020828403121561207a578081fd5b5035919050565b600060208284031215612092578081fd5b5051919050565b600080604083850312156120ab578081fd5b505080516020909101519092909150565b6000806000606084860312156120d0578081fd5b8351925060208401519150604084015190509250925092565b600082516120fb818460208701612645565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039889168152968816602088015260408701959095526060860193909352608085019190915260a084015290921660c082015260e08101919091526101000190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b60006020825282518060208401526121bf816040850160208701612645565b601f01601f19169190910160400192915050565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b6020808252600b908201526a085cdd1c985d1959da5cdd60aa1b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252601a908201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252600490820152630216361760e41b604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b602080825260069082015265085d985d5b1d60d21b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526008908201526710b6b0b730b3b2b960c11b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526004908201526321454f4160e01b604082015260600190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606082015260800190565b90815260200190565b9182526001600160a01b0316602082015260400190565b600060a082018783526020878185015260a0604085015281875480845260c0860191508885528285209350845b818110156125be5784546001600160a01b031683526001948501949284019201612599565b50506001600160a01b03969096166060850152505050608001529392505050565b92835260208301919091526001600160a01b0316604082015260600190565b60405181810167ffffffffffffffff8111828210171561261d57600080fd5b604052919050565b600067ffffffffffffffff82111561263b578081fd5b5060209081020190565b60005b83811015612660578181015183820152602001612648565b83811115610ac8575050600091015256fea2646970667358221220b08a0430f37d5e635556d86d731c249788e4998de51539ab4928aeca0c2e122e64736f6c634300060c00330000000000000000000000009e20a8d3501bf96eda8e69b96dd84840058a1cb0000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000769fd68dfb93167989c6f7254cd0d766fb2841f0000000000000000000000005b19a2e8e5878cf2b1e9b1ac7cea50346671b2fc0000000000000000000000001b02da8cb0d097eb8d57a175b88c7d8b47997506000000000000000000000000d529b1894491a0a26b18939274ae8ede93e81dba0000000000000000000000002c6bd2d42aaa713642ee7c6e83291ca9f94832c6000000000000000000000000a323f6761c6ef06b6eab06d6138b15486b0e96da000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000b3f868e0be5597d5db7feb59e1cadbb0fdda50a0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf127000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000b3f868e0be5597d5db7feb59e1cadbb0fdda50a0000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f6190000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000104592a158490a9228070e0a8e5343b499e125d000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000b3f868e0be5597d5db7feb59e1cadbb0fdda50a0000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f6190000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174

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

0000000000000000000000009e20a8d3501bf96eda8e69b96dd84840058a1cb0000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000769fd68dfb93167989c6f7254cd0d766fb2841f0000000000000000000000005b19a2e8e5878cf2b1e9b1ac7cea50346671b2fc0000000000000000000000001b02da8cb0d097eb8d57a175b88c7d8b47997506000000000000000000000000d529b1894491a0a26b18939274ae8ede93e81dba0000000000000000000000002c6bd2d42aaa713642ee7c6e83291ca9f94832c6000000000000000000000000a323f6761c6ef06b6eab06d6138b15486b0e96da000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000b3f868e0be5597d5db7feb59e1cadbb0fdda50a0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf127000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000b3f868e0be5597d5db7feb59e1cadbb0fdda50a0000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f6190000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000104592a158490a9228070e0a8e5343b499e125d000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000b3f868e0be5597d5db7feb59e1cadbb0fdda50a0000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f6190000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174

-----Decoded View---------------
Arg [0] : _want (address): 0x9e20a8d3501bf96eda8e69b96dd84840058a1cb0
Arg [1] : _poolId (uint256): 14
Arg [2] : _chef (address): 0x0769fd68dfb93167989c6f7254cd0d766fb2841f
Arg [3] : _vault (address): 0x5b19a2e8e5878cf2b1e9b1ac7cea50346671b2fc
Arg [4] : _unirouter (address): 0x1b02da8cb0d097eb8d57a175b88c7d8b47997506
Arg [5] : _keeper (address): 0xd529b1894491a0a26b18939274ae8ede93e81dba
Arg [6] : _strategist (address): 0x2c6bd2d42aaa713642ee7c6e83291ca9f94832c6
Arg [7] : _beefyFeeRecipient (address): 0xa323f6761c6ef06b6eab06d6138b15486b0e96da
Arg [8] : _outputToNativeRoute (address[]): 0x0b3f868e0be5597d5db7feb59e1cadbb0fdda50a,0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270
Arg [9] : _outputToLp0Route (address[]): 0x0b3f868e0be5597d5db7feb59e1cadbb0fdda50a,0x7ceb23fd6bc0add59e62ac25578270cff1b9f619,0x2791bca1f2de4661ed88a30c99a7a9449aa84174,0x104592a158490a9228070e0a8e5343b499e125d0
Arg [10] : _outputToLp1Route (address[]): 0x0b3f868e0be5597d5db7feb59e1cadbb0fdda50a,0x7ceb23fd6bc0add59e62ac25578270cff1b9f619,0x2791bca1f2de4661ed88a30c99a7a9449aa84174

-----Encoded View---------------
23 Constructor Arguments found :
Arg [0] : 0000000000000000000000009e20a8d3501bf96eda8e69b96dd84840058a1cb0
Arg [1] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [2] : 0000000000000000000000000769fd68dfb93167989c6f7254cd0d766fb2841f
Arg [3] : 0000000000000000000000005b19a2e8e5878cf2b1e9b1ac7cea50346671b2fc
Arg [4] : 0000000000000000000000001b02da8cb0d097eb8d57a175b88c7d8b47997506
Arg [5] : 000000000000000000000000d529b1894491a0a26b18939274ae8ede93e81dba
Arg [6] : 0000000000000000000000002c6bd2d42aaa713642ee7c6e83291ca9f94832c6
Arg [7] : 000000000000000000000000a323f6761c6ef06b6eab06d6138b15486b0e96da
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [9] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000260
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [12] : 0000000000000000000000000b3f868e0be5597d5db7feb59e1cadbb0fdda50a
Arg [13] : 0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [15] : 0000000000000000000000000b3f868e0be5597d5db7feb59e1cadbb0fdda50a
Arg [16] : 0000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f619
Arg [17] : 0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174
Arg [18] : 000000000000000000000000104592a158490a9228070e0a8e5343b499e125d0
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [20] : 0000000000000000000000000b3f868e0be5597d5db7feb59e1cadbb0fdda50a
Arg [21] : 0000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f619
Arg [22] : 0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174


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.