MATIC Price: $1.01 (-2.55%)
Gas: 238 GWei
 

Multichain Info

1 address found via
Transaction Hash
Method
Block
From
To
Value
Harvest163564902021-07-01 7:29:581001 days ago1625124598IN
0x83c6e9C6...278140D45
0 MATIC0.0002600511
Before Deposit163564862021-07-01 7:29:501001 days ago1625124590IN
0x83c6e9C6...278140D45
0 MATIC0.00236407111
Harvest162209802021-06-27 19:53:261004 days ago1624823606IN
0x83c6e9C6...278140D45
0 MATIC0.000047282
Harvest162205862021-06-27 19:37:461004 days ago1624822666IN
0x83c6e9C6...278140D45
0 MATIC0.000027021.14330102
Harvest161900892021-06-27 1:24:411005 days ago1624757081IN
0x83c6e9C6...278140D45
0 MATIC0.000032381.3700007
Harvest161895902021-06-27 1:05:231005 days ago1624755923IN
0x83c6e9C6...278140D45
0 MATIC0.000029221.2360007
Harvest161773532021-06-26 17:17:481005 days ago1624727868IN
0x83c6e9C6...278140D45
0 MATIC0.000032381.3700007
Harvest161752962021-06-26 15:58:341005 days ago1624723114IN
0x83c6e9C6...278140D45
0 MATIC0.000102834.34965
Harvest161646332021-06-26 9:14:001006 days ago1624698840IN
0x83c6e9C6...278140D45
0 MATIC0.0002364110
Harvest161637312021-06-26 8:40:001006 days ago1624696800IN
0x83c6e9C6...278140D45
0 MATIC0.000104024.4
Harvest161561372021-06-26 3:46:171006 days ago1624679177IN
0x83c6e9C6...278140D45
0 MATIC0.000028841.22
Harvest161482272021-06-25 21:59:301006 days ago1624658370IN
0x83c6e9C6...278140D45
0 MATIC0.000072453.065
Harvest161381182021-06-25 15:40:171006 days ago1624635617IN
0x83c6e9C6...278140D45
0 MATIC0.00002711.14663103
Harvest161379882021-06-25 15:35:491006 days ago1624635349IN
0x83c6e9C6...278140D45
0 MATIC0.000049612.0985003
Harvest161365082021-06-25 14:37:391006 days ago1624631859IN
0x83c6e9C6...278140D45
0 MATIC0.000032451.37299999
Harvest161276962021-06-25 9:17:131007 days ago1624612633IN
0x83c6e9C6...278140D45
0 MATIC0.000068552.9
Harvest161214892021-06-25 5:29:391007 days ago1624598979IN
0x83c6e9C6...278140D45
0 MATIC0.00008513.6
Harvest161141392021-06-25 0:59:371007 days ago1624582777IN
0x83c6e9C6...278140D45
0 MATIC0.000038571.6316658
Harvest161120232021-06-24 23:42:241007 days ago1624578144IN
0x83c6e9C6...278140D45
0 MATIC0.000064022.7084
Harvest161086792021-06-24 21:32:321007 days ago1624570352IN
0x83c6e9C6...278140D45
0 MATIC0.000100564.254
Harvest161051982021-06-24 19:25:141007 days ago1624562714IN
0x83c6e9C6...278140D45
0 MATIC0.000026371.1158
Harvest161039992021-06-24 18:43:561007 days ago1624560236IN
0x83c6e9C6...278140D45
0 MATIC0.00004221.78528
Harvest161031462021-06-24 18:14:361007 days ago1624558476IN
0x83c6e9C6...278140D45
0 MATIC0.000085813.63
Harvest161024612021-06-24 17:44:381007 days ago1624556678IN
0x83c6e9C6...278140D45
0 MATIC0.000078013.3
Harvest160997162021-06-24 16:06:451007 days ago1624550805IN
0x83c6e9C6...278140D45
0 MATIC0.000078393.31604299
View all transactions

Parent Txn Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x402ee2A5...fDFfF41eC
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
StrategyIronPolygonLP

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

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

// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/Context.sol


pragma solidity >=0.6.0 <0.8.0;

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

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

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


pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

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


pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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


pragma solidity >=0.6.0 <0.8.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: @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 <0.8.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/common/IUniswapRouter.sol


pragma solidity ^0.6.0;

interface IUniswapRouter {
    function factory() external pure returns (address);
    function WBNB() 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 addLiquidityBNB(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountBNBMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountBNB, 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 removeLiquidityBNB(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountBNBMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountBNB);
    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 removeLiquidityBNBWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountBNBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountBNB);
    function removeLiquidityBNBSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountBNBMin,
        address to,
        uint deadline
    ) external returns (uint amountBNB);
    function removeLiquidityBNBWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountBNBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountBNB);
    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 swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactBNBForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForBNBSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactBNBForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactBNB(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForBNB(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapBNBForExactTokens(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/common/IUniswapV2Pair.sol


pragma solidity ^0.6.0;

interface IUniswapV2Pair {
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
}

// File: contracts/BIFI/interfaces/common/IMasterChef.sol


pragma solidity ^0.6.0;

interface IMasterChef {
    function deposit(uint256 _pid, uint256 _amount) external;
    function withdraw(uint256 _pid, uint256 _amount) external;
    function userInfo(uint256 _pid, address _user) external view returns (uint256, uint256);
    function emergencyWithdraw(uint256 _pid) external;
}

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


pragma solidity >=0.6.0 <0.8.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 <0.8.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/degens/StrategyIronPolygonLP.sol


pragma solidity ^0.6.0;









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

    // Tokens used
    address constant public wmatic = address(0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270);
    address constant public eth = address(0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619);
    address constant public iron = address(0xD86b5923F3AD7b585eD81B448170ae026c65ae9a);
    address constant public output = address(0xaAa5B9e6c589642f98a1cDA99B9D024B8407285A);
    address public want;
    address public lpToken0;
    address public lpToken1;

    // Third party contracts
    address constant public masterchef = address(0x65430393358e55A658BcdE6FF69AB28cF1CbB77a);
    uint256 public poolId;

    // Routes
    address[] public outputToWmaticRoute = [output, wmatic];
    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 _vault,
        address _unirouter,
        address _keeper,
        address _strategist,
        address _beefyFeeRecipient
    ) StratManager(_keeper, _strategist, _unirouter, _vault, _beefyFeeRecipient) public {
        want = _want;
        lpToken0 = IUniswapV2Pair(want).token0();
        lpToken1 = IUniswapV2Pair(want).token1();
        poolId = _poolId;

        if (lpToken0 == wmatic || lpToken0 == iron) {
            outputToLp0Route = [output, lpToken0];
        } else if (lpToken0 != output) {
            outputToLp0Route = [output, wmatic, eth, lpToken0];
        }

        if (lpToken1 == wmatic || lpToken1 == iron) {
            outputToLp1Route = [output, lpToken1];
        } else if (lpToken1 != output) {
            outputToLp1Route = [output, wmatic, eth, lpToken1];
        }

        _giveAllowances();
    }

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

        if (wantBal > 0) {
            IMasterChef(masterchef).deposit(poolId, wantBal);
        }
    }

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

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

        if (wantBal < _amount) {
            IMasterChef(masterchef).withdraw(poolId, _amount.sub(wantBal));
            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 {
        IMasterChef(masterchef).deposit(poolId, 0);
        chargeFees();
        addLiquidity();
        deposit();

        emit StratHarvest(msg.sender);
    }

    // performance fees
    function chargeFees() internal {
        uint256 toWmatic = IERC20(output).balanceOf(address(this)).mul(45).div(1000);
        IUniswapRouter(unirouter).swapExactTokensForTokens(toWmatic, 0, outputToWmaticRoute, address(this), now);

        uint256 wmaticBal = IERC20(wmatic).balanceOf(address(this));

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

        uint256 beefyFeeAmount = wmaticBal.mul(beefyFee).div(MAX_FEE);
        IERC20(wmatic).safeTransfer(beefyFeeRecipient, beefyFeeAmount);

        uint256 strategistFee = wmaticBal.mul(STRATEGIST_FEE).div(MAX_FEE);
        IERC20(wmatic).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) {
            IUniswapRouter(unirouter).swapExactTokensForTokens(outputHalf, 0, outputToLp0Route, address(this), now);
        }

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

        uint256 lp0Bal = IERC20(lpToken0).balanceOf(address(this));
        uint256 lp1Bal = IERC20(lpToken1).balanceOf(address(this));
        IUniswapRouter(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, ) = IMasterChef(masterchef).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");

        IMasterChef(masterchef).emergencyWithdraw(poolId);

        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();
        IMasterChef(masterchef).emergencyWithdraw(poolId);
    }

    function pause() public onlyManager {
        _pause();

        _removeAllowances();
    }

    function unpause() external onlyManager {
        _unpause();

        _giveAllowances();

        deposit();
    }

    function _giveAllowances() internal {
        IERC20(want).safeApprove(masterchef, uint256(-1));
        IERC20(output).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(masterchef, 0);
        IERC20(output).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":"_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"}],"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":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"eth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"iron","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"masterchef","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":"outputToWmaticRoute","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"},{"inputs":[],"name":"wmatic","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102955760003560e01c80638456cb5911610167578063c7b9d530116100ce578063f2fde38b11610087578063f2fde38b14610525578063fb1db2781461054b578063fb41be1614610553578063fb6177871461055b578063fbfa77cf14610563578063fd63a8871461056b57610295565b8063c7b9d530146104b9578063d0e30db0146104df578063d3102589146104e7578063d92f3d73146104ef578063dfbdc43714610515578063f20eaeb81461051d57610295565b806390321e1a1161012057806390321e1a14610456578063a68833e51461045e578063ac1e502514610484578063aced1661146104a1578063bc063e1a146104a9578063c1a3d44c146104b157610295565b80638456cb5914610426578063877562b61461042e5780638bc7e8c4146104365780638c7c9e0c1461043e5780638da5cb5b146104465780638e1454591461044e57610295565b80634700d3051161020b578063604b83b4116101c4578063604b83b4146103ba5780636817031b146103c2578063715018a6146103e8578063722713f7146103f0578063748747e6146103f85780637d38ca651461041e57610295565b80634700d3051461036157806354518b1a14610369578063573fef0a146103715780635abb2cd5146103795780635c975abb146103965780635ee167c0146103b257610295565b80632ad5a53f1161025d5780632ad5a53f146103075780632e1a7d4d1461030f57806336c6cf211461032c5780633e0dc34e146103495780633f4ba83a146103515780634641257d1461035957610295565b8063115880861461029a5780631f1fcd51146102b45780631fe4a686146102d8578063257ae0de146102e057806326465826146102e8575b600080fd5b6102a2610588565b60408051918252519081900360200190f35b6102bc610618565b604080516001600160a01b039092168252519081900360200190f35b6102bc610627565b6102bc610636565b610305600480360360208110156102fe57600080fd5b5035610645565b005b6102a26106ff565b6103056004803603602081101561032557600080fd5b5035610704565b6102bc6004803603602081101561034257600080fd5b503561097a565b6102a26109a1565b6103056109a7565b610305610a2e565b610305610b7a565b6102a2610c65565b610305610a2c565b6102bc6004803603602081101561038f57600080fd5b5035610c6b565b61039e610c78565b604080519115158252519081900360200190f35b6102bc610c88565b6102bc610c97565b610305600480360360208110156103d857600080fd5b50356001600160a01b0316610caf565b610305610d33565b6102a2610ddf565b6103056004803603602081101561040e57600080fd5b50356001600160a01b0316610dff565b6102a2610e8e565b610305610e93565b6102bc610f10565b6102a2610f1f565b6102bc610f25565b6102bc610f3d565b6102bc610f4c565b6102a2610f5b565b6103056004803603602081101561047457600080fd5b50356001600160a01b0316610f61565b6103056004803603602081101561049a57600080fd5b5035610fe5565b6102bc611096565b6102a26110a5565b6102a26110ab565b610305600480360360208110156104cf57600080fd5b50356001600160a01b0316611127565b610305611196565b6102a26112e2565b6103056004803603602081101561050557600080fd5b50356001600160a01b03166112e8565b6102a261136c565b6102bc611371565b6103056004803603602081101561053b57600080fd5b50356001600160a01b0316611389565b6102bc61148b565b6102bc6114a3565b6103056114bb565b6102bc611678565b6102bc6004803603602081101561058157600080fd5b5035611687565b600c54604080516393f1a40b60e01b81526004810192909252306024830152805160009283927365430393358e55a658bcde6ff69ab28cf1cbb77a926393f1a40b926044808201939291829003018186803b1580156105e657600080fd5b505afa1580156105fa573d6000803e3d6000fd5b505050506040513d604081101561061057600080fd5b505191505090565b6009546001600160a01b031681565b6002546001600160a01b031681565b6003546001600160a01b031681565b61064d610f3d565b6001600160a01b0316336001600160a01b0316148061067657506001546001600160a01b031633145b6106b2576040805162461bcd60e51b815260206004820152600860248201526710b6b0b730b3b2b960c11b604482015290519081900360640190fd5b606f8111156106f1576040805162461bcd60e51b815260206004808301919091526024820152630216361760e41b604482015290519081900360640190fd5b600781905561037803600855565b606f81565b6004546001600160a01b0316331461074c576040805162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b604482015290519081900360640190fd5b600954604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561079757600080fd5b505afa1580156107ab573d6000803e3d6000fd5b505050506040513d60208110156107c157600080fd5b50519050818110156108c557600c547365430393358e55a658bcde6ff69ab28cf1cbb77a9063441a3e70906107f685856117c0565b6040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b15801561083357600080fd5b505af1158015610847573d6000803e3d6000fd5b5050600954604080516370a0823160e01b815230600482015290516001600160a01b0390921693506370a082319250602480820192602092909190829003018186803b15801561089657600080fd5b505afa1580156108aa573d6000803e3d6000fd5b505050506040513d60208110156108c057600080fd5b505190505b818111156108d05750805b6108d8610f3d565b6001600160a01b0316326001600160a01b031614806108fa57506108fa610c78565b156109215760045460095461091c916001600160a01b03918216911683611822565b610976565b600061094461271061093e6006548561187490919063ffffffff16565b906118cd565b600454909150610974906001600160a01b031661096184846117c0565b6009546001600160a01b03169190611822565b505b5050565b600e818154811061098757fe5b6000918252602090912001546001600160a01b0316905081565b600c5481565b6109af610f3d565b6001600160a01b0316336001600160a01b031614806109d857506001546001600160a01b031633145b610a14576040805162461bcd60e51b815260206004820152600860248201526710b6b0b730b3b2b960c11b604482015290519081900360640190fd5b610a1c611934565b610a246119d7565b610a2c611196565b565b610a36610c78565b15610a7b576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b333214610ab8576040805162461bcd60e51b8152602060048083019190915260248201526321454f4160e01b604482015290519081900360640190fd5b7365430393358e55a658bcde6ff69ab28cf1cbb77a6001600160a01b031663e2bbb158600c5460006040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b158015610b1d57600080fd5b505af1158015610b31573d6000803e3d6000fd5b50505050610b3d611aac565b610b45611e30565b610b4d611196565b60405133907f577a37fdb49a88d66684922c6f913df5239b4f214b2b97c53ef8e3bbb2034cb590600090a2565b610b82610f3d565b6001600160a01b0316336001600160a01b03161480610bab57506001546001600160a01b031633145b610be7576040805162461bcd60e51b815260206004820152600860248201526710b6b0b730b3b2b960c11b604482015290519081900360640190fd5b610bef610e93565b7365430393358e55a658bcde6ff69ab28cf1cbb77a6001600160a01b0316635312ea8e600c546040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610c4b57600080fd5b505af1158015610c5f573d6000803e3d6000fd5b50505050565b61271081565b600d818154811061098757fe5b600054600160a01b900460ff1690565b600a546001600160a01b031681565b73d86b5923f3ad7b585ed81b448170ae026c65ae9a81565b610cb76123cf565b6001600160a01b0316610cc8610f3d565b6001600160a01b031614610d11576040805162461bcd60e51b81526020600482018190526024820152600080516020612870833981519152604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b610d3b6123cf565b6001600160a01b0316610d4c610f3d565b6001600160a01b031614610d95576040805162461bcd60e51b81526020600482018190526024820152600080516020612870833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000610dfa610dec610588565b610df46110ab565b906123d3565b905090565b610e07610f3d565b6001600160a01b0316336001600160a01b03161480610e3057506001546001600160a01b031633145b610e6c576040805162461bcd60e51b815260206004820152600860248201526710b6b0b730b3b2b960c11b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b607081565b610e9b610f3d565b6001600160a01b0316336001600160a01b03161480610ec457506001546001600160a01b031633145b610f00576040805162461bcd60e51b815260206004820152600860248201526710b6b0b730b3b2b960c11b604482015290519081900360640190fd5b610f0861242d565b610a2c6124b6565b600b546001600160a01b031681565b60065481565b737ceb23fd6bc0add59e62ac25578270cff1b9f61981565b6000546001600160a01b031690565b6005546001600160a01b031681565b60075481565b610f696123cf565b6001600160a01b0316610f7a610f3d565b6001600160a01b031614610fc3576040805162461bcd60e51b81526020600482018190526024820152600080516020612870833981519152604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b610fed610f3d565b6001600160a01b0316336001600160a01b0316148061101657506001546001600160a01b031633145b611052576040805162461bcd60e51b815260206004820152600860248201526710b6b0b730b3b2b960c11b604482015290519081900360640190fd5b6032811115611091576040805162461bcd60e51b815260206004808301919091526024820152630216361760e41b604482015290519081900360640190fd5b600655565b6001546001600160a01b031681565b6103e881565b600954604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156110f657600080fd5b505afa15801561110a573d6000803e3d6000fd5b505050506040513d602081101561112057600080fd5b5051905090565b6002546001600160a01b03163314611174576040805162461bcd60e51b815260206004820152600b60248201526a085cdd1c985d1959da5cdd60aa1b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b61119e610c78565b156111e3576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600954604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561122e57600080fd5b505afa158015611242573d6000803e3d6000fd5b505050506040513d602081101561125857600080fd5b5051905080156112df577365430393358e55a658bcde6ff69ab28cf1cbb77a6001600160a01b031663e2bbb158600c54836040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b1580156112c657600080fd5b505af11580156112da573d6000803e3d6000fd5b505050505b50565b60085481565b6112f06123cf565b6001600160a01b0316611301610f3d565b6001600160a01b03161461134a576040805162461bcd60e51b81526020600482018190526024820152600080516020612870833981519152604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b603281565b73aaa5b9e6c589642f98a1cda99b9d024b8407285a81565b6113916123cf565b6001600160a01b03166113a2610f3d565b6001600160a01b0316146113eb576040805162461bcd60e51b81526020600482018190526024820152600080516020612870833981519152604482015290519081900360640190fd5b6001600160a01b0381166114305760405162461bcd60e51b81526004018080602001828103825260268152602001806128036026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b7365430393358e55a658bcde6ff69ab28cf1cbb77a81565b730d500b1d8e8ef31e21c99d1db9a6444d3adf127081565b6004546001600160a01b03163314611503576040805162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b604482015290519081900360640190fd5b7365430393358e55a658bcde6ff69ab28cf1cbb77a6001600160a01b0316635312ea8e600c546040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561155f57600080fd5b505af1158015611573573d6000803e3d6000fd5b5050600954604080516370a0823160e01b81523060048201529051600094506001600160a01b0390921692506370a08231916024808301926020929190829003018186803b1580156115c457600080fd5b505afa1580156115d8573d6000803e3d6000fd5b505050506040513d60208110156115ee57600080fd5b5051600954600480546040805163a9059cbb60e01b81526001600160a01b039283169381019390935260248301859052519394509091169163a9059cbb916044808201926020929091908290030181600087803b15801561164e57600080fd5b505af1158015611662573d6000803e3d6000fd5b505050506040513d602081101561097457600080fd5b6004546001600160a01b031681565b600f818154811061098757fe5b80158061171a575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156116ec57600080fd5b505afa158015611700573d6000803e3d6000fd5b505050506040513d602081101561171657600080fd5b5051155b6117555760405162461bcd60e51b81526004018080602001828103825260368152602001806128ba6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261097490849061254b565b60606117b684846000856125fc565b90505b9392505050565b600082821115611817576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261097490849061254b565b6000826118835750600061181c565b8282028284828161189057fe5b04146117b95760405162461bcd60e51b815260040180806020018281038252602181526020018061284f6021913960400191505060405180910390fd5b6000808211611923576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161192c57fe5b049392505050565b61193c610c78565b611984576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6119ba6123cf565b604080516001600160a01b039092168252519081900360200190a1565b600954611a04906001600160a01b03167365430393358e55a658bcde6ff69ab28cf1cbb77a600019611694565b600354611a329073aaa5b9e6c589642f98a1cda99b9d024b8407285a906001600160a01b0316600019611694565b600354600a54611a50916001600160a01b0391821691166000611694565b600354600a54611a6f916001600160a01b039182169116600019611694565b600354600b54611a8d916001600160a01b0391821691166000611694565b600354600b54610a2c916001600160a01b039182169116600019611694565b6000611b4c6103e861093e602d73aaa5b9e6c589642f98a1cda99b9d024b8407285a6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611b1a57600080fd5b505afa158015611b2e573d6000803e3d6000fd5b505050506040513d6020811015611b4457600080fd5b505190611874565b9050600360009054906101000a90046001600160a01b03166001600160a01b03166338ed1739826000600d30426040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b031681526020018381526020018281038252858181548152602001915080548015611bf857602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611bda575b50509650505050505050600060405180830381600087803b158015611c1c57600080fd5b505af1158015611c30573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015611c5957600080fd5b8101908080516040519392919084640100000000821115611c7957600080fd5b908301906020820185811115611c8e57600080fd5b8251866020820283011164010000000082111715611cab57600080fd5b82525081516020918201928201910280838360005b83811015611cd8578181015183820152602001611cc0565b505050509190910160408181526370a0823160e01b82523060048301525160009650730d500b1d8e8ef31e21c99d1db9a6444d3adf127095506370a08231945060248083019450602093509091829003018186803b158015611d3957600080fd5b505afa158015611d4d573d6000803e3d6000fd5b505050506040513d6020811015611d6357600080fd5b5051600754909150600090611d81906103e89061093e908590611874565b9050611da2730d500b1d8e8ef31e21c99d1db9a6444d3adf12703383611822565b6000611dbf6103e861093e6008548661187490919063ffffffff16565b600554909150611dee90730d500b1d8e8ef31e21c99d1db9a6444d3adf1270906001600160a01b031683611822565b6000611e016103e861093e866070611874565b6002549091506112da90730d500b1d8e8ef31e21c99d1db9a6444d3adf1270906001600160a01b031683611822565b6000611eca600273aaa5b9e6c589642f98a1cda99b9d024b8407285a6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611e9857600080fd5b505afa158015611eac573d6000803e3d6000fd5b505050506040513d6020811015611ec257600080fd5b5051906118cd565b600a549091506001600160a01b031673aaa5b9e6c589642f98a1cda99b9d024b8407285a1461207c576003546040516338ed173960e01b8152600481018381526000602483018190523060648401819052426084850181905260a060448601908152600e805460a488018190526001600160a01b03909816976338ed1739978a97929594939160c49091019086908015611f8d57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611f6f575b50509650505050505050600060405180830381600087803b158015611fb157600080fd5b505af1158015611fc5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015611fee57600080fd5b810190808051604051939291908464010000000082111561200e57600080fd5b90830190602082018581111561202357600080fd5b825186602082028301116401000000008211171561204057600080fd5b82525081516020918201928201910280838360005b8381101561206d578181015183820152602001612055565b50505050905001604052505050505b600b546001600160a01b031673aaa5b9e6c589642f98a1cda99b9d024b8407285a1461222b576003546040516338ed173960e01b8152600481018381526000602483018190523060648401819052426084850181905260a060448601908152600f805460a488018190526001600160a01b03909816976338ed1739978a97929594939160c4909101908690801561213c57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161211e575b50509650505050505050600060405180830381600087803b15801561216057600080fd5b505af1158015612174573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561219d57600080fd5b81019080805160405193929190846401000000008211156121bd57600080fd5b9083019060208201858111156121d257600080fd5b82518660208202830111640100000000821117156121ef57600080fd5b82525081516020918201928201910280838360005b8381101561221c578181015183820152602001612204565b50505050905001604052505050505b600a54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561227657600080fd5b505afa15801561228a573d6000803e3d6000fd5b505050506040513d60208110156122a057600080fd5b5051600b54604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156122f357600080fd5b505afa158015612307573d6000803e3d6000fd5b505050506040513d602081101561231d57600080fd5b5051600354600a54600b546040805162e8e33760e81b81526001600160a01b0393841660048201529183166024830152604482018790526064820185905260016084830181905260a48301523060c48301524260e48301525193945091169163e8e3370091610104808201926060929091908290030181600087803b1580156123a557600080fd5b505af11580156123b9573d6000803e3d6000fd5b505050506040513d60608110156112da57600080fd5b3390565b6000828201838110156117b9576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b612435610c78565b1561247a576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586119ba6123cf565b6009546124e2906001600160a01b03167365430393358e55a658bcde6ff69ab28cf1cbb77a6000611694565b60035461250f9073aaa5b9e6c589642f98a1cda99b9d024b8407285a906001600160a01b03166000611694565b600354600a5461252d916001600160a01b0391821691166000611694565b600354600b54610a2c916001600160a01b0391821691166000611694565b60606125a0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166117a79092919063ffffffff16565b805190915015610974578080602001905160208110156125bf57600080fd5b50516109745760405162461bcd60e51b815260040180806020018281038252602a815260200180612890602a913960400191505060405180910390fd5b60608247101561263d5760405162461bcd60e51b81526004018080602001828103825260268152602001806128296026913960400191505060405180910390fd5b61264685612758565b612697576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106126d65780518252601f1990920191602091820191016126b7565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612738576040519150601f19603f3d011682016040523d82523d6000602084013e61273d565b606091505b509150915061274d82828661275e565b979650505050505050565b3b151590565b6060831561276d5750816117b9565b82511561277d5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156127c75781810151838201526020016127af565b50505050905090810190601f1680156127f45780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a26469706673582212202d585c1c6954066e0add78851933f3dfd6281088d3b68e291efc0027e6f51ba164736f6c634300060c0033

Deployed Bytecode Sourcemap

48360:6938:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53646:176;;;:::i;:::-;;;;;;;;;;;;;;;;48873:19;;;:::i;:::-;;;;-1:-1:-1;;;;;48873:19:0;;;;;;;;;;;;;;44793:25;;;:::i;44825:24::-;;;:::i;47871:202::-;;;;;;;;;;;;;;;;-1:-1:-1;47871:202:0;;:::i;:::-;;47583:39;;;:::i;50625:742::-;;;;;;;;;;;;;;;;-1:-1:-1;50625:742:0;;:::i;49193:33::-;;;;;;;;;;;;;;;;-1:-1:-1;49193:33:0;;:::i;49086:21::-;;;:::i;54504:121::-;;;:::i;51430:221::-;;;:::i;54271:122::-;;;:::i;47682:43::-;;;:::i;47298:44::-;;;:::i;49131:55::-;;;;;;;;;;;;;;;;-1:-1:-1;49131:55:0;;:::i;43081:86::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;48899:23;;;:::i;48693:82::-;;;:::i;46803:86::-;;;;;;;;;;;;;;;;-1:-1:-1;46803:86:0;-1:-1:-1;;;;;46803:86:0;;:::i;41440:148::-;;;:::i;53264:113::-;;;:::i;46075:92::-;;;;;;;;;;;;;;;;-1:-1:-1;46075:92:0;-1:-1:-1;;;;;46075:92:0;;:::i;47493:41::-;;;:::i;54401:95::-;;;:::i;48929:23::-;;;:::i;47734:30::-;;;:::i;48605:81::-;;;:::i;40789:87::-;;;:::i;44883:32::-;;;:::i;47773:25::-;;;:::i;47024:134::-;;;;;;;;;;;;;;;;-1:-1:-1;47024:134:0;-1:-1:-1;;;;;47024:134:0;;:::i;48081:156::-;;;;;;;;;;;;;;;;-1:-1:-1;48081:156:0;;:::i;44765:21::-;;;:::i;47541:35::-;;;:::i;53444:118::-;;;:::i;46312:155::-;;;;;;;;;;;;;;;;-1:-1:-1;46312:155:0;-1:-1:-1;;;;;46312:155:0;;:::i;50399:218::-;;;:::i;47805:57::-;;;:::i;46599:102::-;;;;;;;;;;;;;;;;-1:-1:-1;46599:102:0;-1:-1:-1;;;;;46599:102:0;;:::i;47631:44::-;;;:::i;48782:84::-;;;:::i;41743:244::-;;;;;;;;;;;;;;;;-1:-1:-1;41743:244:0;-1:-1:-1;;;;;41743:244:0;;:::i;48991:88::-;;;:::i;48514:84::-;;;:::i;53922:267::-;;;:::i;44856:20::-;;;:::i;49233:33::-;;;;;;;;;;;;;;;;-1:-1:-1;49233:33:0;;:::i;53646:176::-;53767:6;;53734:55;;;-1:-1:-1;;;53734:55:0;;;;;;;;;53783:4;53734:55;;;;;;53692:7;;;;49036:42;;53734:32;;:55;;;;;;;;;;;;49036:42;53734:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53734:55:0;;-1:-1:-1;;53646:176:0;:::o;48873:19::-;;;-1:-1:-1;;;;;48873:19:0;;:::o;44793:25::-;;;-1:-1:-1;;;;;44793:25:0;;:::o;44825:24::-;;;-1:-1:-1;;;;;44825:24:0;;:::o;47871:202::-;45742:7;:5;:7::i;:::-;-1:-1:-1;;;;;45728:21:0;:10;-1:-1:-1;;;;;45728:21:0;;:45;;;-1:-1:-1;45767:6:0;;-1:-1:-1;;;;;45767:6:0;45753:10;:20;45728:45;45720:66;;;;;-1:-1:-1;;;45720:66:0;;;;;;;;;;;;-1:-1:-1;;;45720:66:0;;;;;;;;;;;;;;;47619:3:::1;47945:4;:20;;47937:37;;;::::0;;-1:-1:-1;;;47937:37:0;;::::1;;::::0;;::::1;::::0;;;;;;;;-1:-1:-1;;;47937:37:0;;;;;;;;;;;;;::::1;;47995:7;:14:::0;;;48031:24;:34:::1;48020:8;:45:::0;47871:202::o;47583:39::-;47619:3;47583:39;:::o;50625:742::-;50702:5;;-1:-1:-1;;;;;50702:5:0;50688:10;:19;50680:38;;;;;-1:-1:-1;;;50680:38:0;;;;;;;;;;;;-1:-1:-1;;;50680:38:0;;;;;;;;;;;;;;;50756:4;;50749:37;;;-1:-1:-1;;;50749:37:0;;50780:4;50749:37;;;;;;50731:15;;-1:-1:-1;;;;;50756:4:0;;50749:22;;:37;;;;;;;;;;;;;;50756:4;50749:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50749:37:0;;-1:-1:-1;50803:17:0;;;50799:174;;;50870:6;;49036:42;;50837:32;;50878:20;:7;50890;50878:11;:20::i;:::-;50837:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;50931:4:0;;50924:37;;;-1:-1:-1;;;50924:37:0;;50955:4;50924:37;;;;;;-1:-1:-1;;;;;50931:4:0;;;;-1:-1:-1;50924:22:0;;-1:-1:-1;50924:37:0;;;;;;;;;;;;;;;50931:4;50924:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50924:37:0;;-1:-1:-1;50799:174:0;50999:7;50989;:17;50985:67;;;-1:-1:-1;51033:7:0;50985:67;51081:7;:5;:7::i;:::-;-1:-1:-1;;;;;51068:20:0;:9;-1:-1:-1;;;;;51068:20:0;;:32;;;;51092:8;:6;:8::i;:::-;51064:296;;;51143:5;;51124:4;;51117:41;;-1:-1:-1;;;;;51124:4:0;;;;51143:5;51150:7;51117:25;:41::i;:::-;51064:296;;;51191:27;51221:46;47720:5;51221:26;51233:13;;51221:7;:11;;:26;;;;:::i;:::-;:30;;:46::i;:::-;51308:5;;51191:76;;-1:-1:-1;51282:66:0;;-1:-1:-1;;;;;51308:5:0;51315:32;:7;51191:76;51315:11;:32::i;:::-;51289:4;;-1:-1:-1;;;;;51289:4:0;;51282:66;:25;:66::i;:::-;51064:296;;50625:742;;:::o;49193:33::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;49193:33:0;;-1:-1:-1;49193:33:0;:::o;49086:21::-;;;;:::o;54504:121::-;45742:7;:5;:7::i;:::-;-1:-1:-1;;;;;45728:21:0;:10;-1:-1:-1;;;;;45728:21:0;;:45;;;-1:-1:-1;45767:6:0;;-1:-1:-1;;;;;45767:6:0;45753:10;:20;45728:45;45720:66;;;;;-1:-1:-1;;;45720:66:0;;;;;;;;;;;;-1:-1:-1;;;45720:66:0;;;;;;;;;;;;;;;54555:10:::1;:8;:10::i;:::-;54578:17;:15;:17::i;:::-;54608:9;:7;:9::i;:::-;54504:121::o:0;51430:221::-;43407:8;:6;:8::i;:::-;43406:9;43398:38;;;;;-1:-1:-1;;;43398:38:0;;;;;;;;;;;;-1:-1:-1;;;43398:38:0;;;;;;;;;;;;;;;45904:10:::1;45918:9;45904:23;45896:40;;;::::0;;-1:-1:-1;;;45896:40:0;;::::1;;::::0;;::::1;::::0;;;;;;;;-1:-1:-1;;;45896:40:0;;;;;;;;;;;;;::::1;;49036:42:::2;-1:-1:-1::0;;;;;51491:31:0::2;;51523:6;;51531:1;51491:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;51544:12;:10;:12::i;:::-;51567:14;:12;:14::i;:::-;51592:9;:7;:9::i;:::-;51619:24;::::0;51632:10:::2;::::0;51619:24:::2;::::0;;;::::2;51430:221::o:0;54271:122::-;45742:7;:5;:7::i;:::-;-1:-1:-1;;;;;45728:21:0;:10;-1:-1:-1;;;;;45728:21:0;;:45;;;-1:-1:-1;45767:6:0;;-1:-1:-1;;;;;45767:6:0;45753:10;:20;45728:45;45720:66;;;;;-1:-1:-1;;;45720:66:0;;;;;;;;;;;;-1:-1:-1;;;45720:66:0;;;;;;;;;;;;;;;54318:7:::1;:5;:7::i;:::-;49036:42;-1:-1:-1::0;;;;;54336:41:0::1;;54378:6;;54336:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;54271:122::o:0;47682:43::-;47720:5;47682:43;:::o;49131:55::-;;;;;;;;;;43081:86;43128:4;43152:7;-1:-1:-1;;;43152:7:0;;;;;43081:86::o;48899:23::-;;;-1:-1:-1;;;;;48899:23:0;;:::o;48693:82::-;48732:42;48693:82;:::o;46803:86::-;41020:12;:10;:12::i;:::-;-1:-1:-1;;;;;41009:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;41009:23:0;;41001:68;;;;;-1:-1:-1;;;41001:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;41001:68:0;;;;;;;;;;;;;;;46867:5:::1;:14:::0;;-1:-1:-1;;;;;;46867:14:0::1;-1:-1:-1::0;;;;;46867:14:0;;;::::1;::::0;;;::::1;::::0;;46803:86::o;41440:148::-;41020:12;:10;:12::i;:::-;-1:-1:-1;;;;;41009:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;41009:23:0;;41001:68;;;;;-1:-1:-1;;;41001:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;41001:68:0;;;;;;;;;;;;;;;41547:1:::1;41531:6:::0;;41510:40:::1;::::0;-1:-1:-1;;;;;41531:6:0;;::::1;::::0;41510:40:::1;::::0;41547:1;;41510:40:::1;41578:1;41561:19:::0;;-1:-1:-1;;;;;;41561:19:0::1;::::0;;41440:148::o;53264:113::-;53306:7;53333:36;53353:15;:13;:15::i;:::-;53333;:13;:15::i;:::-;:19;;:36::i;:::-;53326:43;;53264:113;:::o;46075:92::-;45742:7;:5;:7::i;:::-;-1:-1:-1;;;;;45728:21:0;:10;-1:-1:-1;;;;;45728:21:0;;:45;;;-1:-1:-1;45767:6:0;;-1:-1:-1;;;;;45767:6:0;45753:10;:20;45728:45;45720:66;;;;;-1:-1:-1;;;45720:66:0;;;;;;;;;;;;-1:-1:-1;;;45720:66:0;;;;;;;;;;;;;;;46143:6:::1;:16:::0;;-1:-1:-1;;;;;;46143:16:0::1;-1:-1:-1::0;;;;;46143:16:0;;;::::1;::::0;;;::::1;::::0;;46075:92::o;47493:41::-;47531:3;47493:41;:::o;54401:95::-;45742:7;:5;:7::i;:::-;-1:-1:-1;;;;;45728:21:0;:10;-1:-1:-1;;;;;45728:21:0;;:45;;;-1:-1:-1;45767:6:0;;-1:-1:-1;;;;;45767:6:0;45753:10;:20;45728:45;45720:66;;;;;-1:-1:-1;;;45720:66:0;;;;;;;;;;;;-1:-1:-1;;;45720:66:0;;;;;;;;;;;;;;;54448:8:::1;:6;:8::i;:::-;54469:19;:17;:19::i;48929:23::-:0;;;-1:-1:-1;;;;;48929:23:0;;:::o;47734:30::-;;;;:::o;48605:81::-;48643:42;48605:81;:::o;40789:87::-;40835:7;40862:6;-1:-1:-1;;;;;40862:6:0;40789:87;:::o;44883:32::-;;;-1:-1:-1;;;;;44883:32:0;;:::o;47773:25::-;;;;:::o;47024:134::-;41020:12;:10;:12::i;:::-;-1:-1:-1;;;;;41009:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;41009:23:0;;41001:68;;;;;-1:-1:-1;;;41001:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;41001:68:0;;;;;;;;;;;;;;;47112:17:::1;:38:::0;;-1:-1:-1;;;;;;47112:38:0::1;-1:-1:-1::0;;;;;47112:38:0;;;::::1;::::0;;;::::1;::::0;;47024:134::o;48081:156::-;45742:7;:5;:7::i;:::-;-1:-1:-1;;;;;45728:21:0;:10;-1:-1:-1;;;;;45728:21:0;;:45;;;-1:-1:-1;45767:6:0;;-1:-1:-1;;;;;45767:6:0;45753:10;:20;45728:45;45720:66;;;;;-1:-1:-1;;;45720:66:0;;;;;;;;;;;;-1:-1:-1;;;45720:66:0;;;;;;;;;;;;;;;47673:2:::1;48161:4;:26;;48153:43;;;::::0;;-1:-1:-1;;;48153:43:0;;::::1;;::::0;;::::1;::::0;;;;;;;;-1:-1:-1;;;48153:43:0;;;;;;;;;;;;;::::1;;48209:13;:20:::0;48081:156::o;44765:21::-;;;-1:-1:-1;;;;;44765:21:0;;:::o;47541:35::-;47572:4;47541:35;:::o;53444:118::-;53524:4;;53517:37;;;-1:-1:-1;;;53517:37:0;;53548:4;53517:37;;;;;;53490:7;;-1:-1:-1;;;;;53524:4:0;;53517:22;;:37;;;;;;;;;;;;;;53524:4;53517:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53517:37:0;;-1:-1:-1;53444:118:0;:::o;46312:155::-;46398:10;;-1:-1:-1;;;;;46398:10:0;46384;:24;46376:48;;;;;-1:-1:-1;;;46376:48:0;;;;;;;;;;;;-1:-1:-1;;;46376:48:0;;;;;;;;;;;;;;;46435:10;:24;;-1:-1:-1;;;;;;46435:24:0;-1:-1:-1;;;;;46435:24:0;;;;;;;;;;46312:155::o;50399:218::-;43407:8;:6;:8::i;:::-;43406:9;43398:38;;;;;-1:-1:-1;;;43398:38:0;;;;;;;;;;;;-1:-1:-1;;;43398:38:0;;;;;;;;;;;;;;;50475:4:::1;::::0;50468:37:::1;::::0;;-1:-1:-1;;;50468:37:0;;50499:4:::1;50468:37;::::0;::::1;::::0;;;50450:15:::1;::::0;-1:-1:-1;;;;;50475:4:0::1;::::0;50468:22:::1;::::0;:37;;;;;::::1;::::0;;;;;;;;50475:4;50468:37;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;50468:37:0;;-1:-1:-1;50522:11:0;;50518:92:::1;;49036:42;-1:-1:-1::0;;;;;50550:31:0::1;;50582:6;;50590:7;50550:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;50518:92;43447:1;50399:218::o:0;47805:57::-;;;;:::o;46599:102::-;41020:12;:10;:12::i;:::-;-1:-1:-1;;;;;41009:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;41009:23:0;;41001:68;;;;;-1:-1:-1;;;41001:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;41001:68:0;;;;;;;;;;;;;;;46671:9:::1;:22:::0;;-1:-1:-1;;;;;;46671:22:0::1;-1:-1:-1::0;;;;;46671:22:0;;;::::1;::::0;;;::::1;::::0;;46599:102::o;47631:44::-;47673:2;47631:44;:::o;48782:84::-;48823:42;48782:84;:::o;41743:244::-;41020:12;:10;:12::i;:::-;-1:-1:-1;;;;;41009:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;41009:23:0;;41001:68;;;;;-1:-1:-1;;;41001:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;41001:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;41832:22:0;::::1;41824:73;;;;-1:-1:-1::0;;;41824:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41934:6;::::0;;41913:38:::1;::::0;-1:-1:-1;;;;;41913:38:0;;::::1;::::0;41934:6;::::1;::::0;41913:38:::1;::::0;::::1;41962:6;:17:::0;;-1:-1:-1;;;;;;41962:17:0::1;-1:-1:-1::0;;;;;41962:17:0;;;::::1;::::0;;;::::1;::::0;;41743:244::o;48991:88::-;49036:42;48991:88;:::o;48514:84::-;48555:42;48514:84;:::o;53922:267::-;53987:5;;-1:-1:-1;;;;;53987:5:0;53973:10;:19;53965:38;;;;;-1:-1:-1;;;53965:38:0;;;;;;;;;;;;-1:-1:-1;;;53965:38:0;;;;;;;;;;;;;;;49036:42;-1:-1:-1;;;;;54016:41:0;;54058:6;;54016:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;54103:4:0;;54096:37;;;-1:-1:-1;;;54096:37:0;;54127:4;54096:37;;;;;;54078:15;;-1:-1:-1;;;;;;54103:4:0;;;;-1:-1:-1;54096:22:0;;:37;;;;;;;;;;;;;;54103:4;54096:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54096:37:0;54151:4;;54166:5;;;54144:37;;;-1:-1:-1;;;54144:37:0;;-1:-1:-1;;;;;54166:5:0;;;54144:37;;;;;;;;;;;;;;54096;;-1:-1:-1;54151:4:0;;;;54144:21;;:37;;;;;54096;;54144;;;;;;;;54151:4;;54144:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44856:20;;;-1:-1:-1;;;;;44856:20:0;;:::o;49233:33::-;;;;;;;;;;31685:622;32055:10;;;32054:62;;-1:-1:-1;32071:39:0;;;-1:-1:-1;;;32071:39:0;;32095:4;32071:39;;;;-1:-1:-1;;;;;32071:39:0;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;:15;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32071:39:0;:44;32054:62;32046:152;;;;-1:-1:-1;;;32046:152:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32236:62;;;-1:-1:-1;;;;;32236:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;32236:62:0;-1:-1:-1;;;32236:62:0;;;32209:90;;32229:5;;32209:19;:90::i;26021:195::-;26124:12;26156:52;26178:6;26186:4;26192:1;26195:12;26156:21;:52::i;:::-;26149:59;;26021:195;;;;;;:::o;7087:158::-;7145:7;7178:1;7173;:6;;7165:49;;;;;-1:-1:-1;;;7165:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7232:5:0;;;7087:158;;;;;:::o;31026:177::-;31136:58;;;-1:-1:-1;;;;;31136:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;31136:58:0;-1:-1:-1;;;31136:58:0;;;31109:86;;31129:5;;31109:19;:86::i;7504:220::-;7562:7;7586:6;7582:20;;-1:-1:-1;7601:1:0;7594:8;;7582:20;7625:5;;;7629:1;7625;:5;:1;7649:5;;;;;:10;7641:56;;;;-1:-1:-1;;;7641:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8202:153;8260:7;8292:1;8288;:5;8280:44;;;;;-1:-1:-1;;;8280:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;8346:1;8342;:5;;;;;;;8202:153;-1:-1:-1;;;8202:153:0:o;44140:120::-;43684:8;:6;:8::i;:::-;43676:41;;;;;-1:-1:-1;;;43676:41:0;;;;;;;;;;;;-1:-1:-1;;;43676:41:0;;;;;;;;;;;;;;;44209:5:::1;44199:15:::0;;-1:-1:-1;;;;44199:15:0::1;::::0;;44230:22:::1;44239:12;:10;:12::i;:::-;44230:22;::::0;;-1:-1:-1;;;;;44230:22:0;;::::1;::::0;;;;;;;::::1;::::0;;::::1;44140:120::o:0;54633:401::-;54687:4;;54680:49;;-1:-1:-1;;;;;54687:4:0;49036:42;-1:-1:-1;;54680:24:0;:49::i;:::-;54767:9;;54740:50;;48823:42;;-1:-1:-1;;;;;54767:9:0;-1:-1:-1;;54740:26:0;:50::i;:::-;54832:9;;54810:8;;54803:42;;-1:-1:-1;;;;;54810:8:0;;;;54832:9;;54803:28;:42::i;:::-;54885:9;;54863:8;;54856:52;;-1:-1:-1;;;;;54863:8:0;;;;54885:9;-1:-1:-1;;54856:28:0;:52::i;:::-;54950:9;;54928:8;;54921:42;;-1:-1:-1;;;;;54928:8:0;;;;54950:9;;54921:28;:42::i;:::-;55003:9;;54981:8;;54974:52;;-1:-1:-1;;;;;54981:8:0;;;;55003:9;-1:-1:-1;;54974:28:0;:52::i;51684:741::-;51726:16;51745:57;51797:4;51745:47;51789:2;48823:42;-1:-1:-1;;;;;51745:24:0;;51778:4;51745:39;;;;;;;;;;;;;-1:-1:-1;;;;;51745:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51745:39:0;;:43;:47::i;:57::-;51726:76;;51828:9;;;;;;;;;-1:-1:-1;;;;;51828:9:0;-1:-1:-1;;;;;51813:50:0;;51864:8;51874:1;51877:19;51906:4;51913:3;51813:104;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;51813:104:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;51813:104:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;51813:104:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51813:104:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;51813:104:0;;;;;;;;-1:-1:-1;;;51950:39:0;;51983:4;51950:39;;;;;51930:17;;-1:-1:-1;48555:42:0;;-1:-1:-1;51950:24:0;;-1:-1:-1;51950:39:0;;;;;-1:-1:-1;51950:39:0;;-1:-1:-1;51950:39:0;;;;;;;48555:42;51950:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51950:39:0;52040:7;;51950:39;;-1:-1:-1;52002:21:0;;52026:35;;47572:4;;52026:22;;51950:39;;52026:13;:22::i;:35::-;52002:59;-1:-1:-1;52072:54:0;48555:42;52100:10;52002:59;52072:27;:54::i;:::-;52139:22;52164:36;47572:4;52164:23;52178:8;;52164:9;:13;;:23;;;;:::i;:36::-;52239:17;;52139:61;;-1:-1:-1;52211:62:0;;48555:42;;-1:-1:-1;;;;;52239:17:0;52139:61;52211:27;:62::i;:::-;52286:21;52310:42;47572:4;52310:29;:9;47531:3;52310:13;:29::i;:42::-;52391:10;;52286:66;;-1:-1:-1;52363:54:0;;48555:42;;-1:-1:-1;;;;;52391:10:0;52286:66;52363:27;:54::i;52488:702::-;52532:18;52553:46;52597:1;48823:42;-1:-1:-1;;;;;52553:24:0;;52586:4;52553:39;;;;;;;;;;;;;-1:-1:-1;;;;;52553:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52553:39:0;;:43;:46::i;:::-;52616:8;;52532:67;;-1:-1:-1;;;;;;52616:8:0;48823:42;52616:18;52612:154;;52666:9;;52651:103;;-1:-1:-1;;;52651:103:0;;;;;;;;52666:9;52651:103;;;;;;52743:4;52651:103;;;;;;52750:3;52651:103;;;;;;;;;;;;;52717:16;52651:103;;;;;;;;-1:-1:-1;;;;;52666:9:0;;;;52651:50;;52702:10;;52717:16;;52743:4;52750:3;52651:103;;;;;;52717:16;;52651:103;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;52651:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;52651:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52651:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52612:154;52782:8;;-1:-1:-1;;;;;52782:8:0;48823:42;52782:18;52778:154;;52832:9;;52817:103;;-1:-1:-1;;;52817:103:0;;;;;;;;52832:9;52817:103;;;;;;52909:4;52817:103;;;;;;52916:3;52817:103;;;;;;;;;;;;;52883:16;52817:103;;;;;;;;-1:-1:-1;;;;;52832:9:0;;;;52817:50;;52868:10;;52883:16;;52909:4;52916:3;52817:103;;;;;;52883:16;;52817:103;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;52817:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;52817:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52817:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52778:154;52968:8;;52961:41;;;-1:-1:-1;;;52961:41:0;;52996:4;52961:41;;;;;;52944:14;;-1:-1:-1;;;;;52968:8:0;;52961:26;;:41;;;;;;;;;;;;;;52968:8;52961:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52961:41:0;53037:8;;53030:41;;;-1:-1:-1;;;53030:41:0;;53065:4;53030:41;;;;;;52961;;-1:-1:-1;53013:14:0;;-1:-1:-1;;;;;53037:8:0;;;;53030:26;;:41;;;;;52961;;53030;;;;;;;;53037:8;53030:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53030:41:0;53097:9;;53121:8;;53131;;53082:100;;;-1:-1:-1;;;53082:100:0;;-1:-1:-1;;;;;53121:8:0;;;53082:100;;;;53131:8;;;53082:100;;;;;;;;;;;;;;;;53097:9;53082:100;;;;;;;;;;53171:4;53082:100;;;;53178:3;53082:100;;;;;53030:41;;-1:-1:-1;53097:9:0;;;53082:38;;:100;;;;;;;;;;;;;;;53097:9;;53082:100;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;667:106;755:10;667:106;:::o;6625:179::-;6683:7;6715:5;;;6739:6;;;;6731:46;;;;;-1:-1:-1;;;6731:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;43881:118;43407:8;:6;:8::i;:::-;43406:9;43398:38;;;;;-1:-1:-1;;;43398:38:0;;;;;;;;;;;;-1:-1:-1;;;43398:38:0;;;;;;;;;;;;;;;43941:7:::1;:14:::0;;-1:-1:-1;;;;43941:14:0::1;-1:-1:-1::0;;;43941:14:0::1;::::0;;43971:20:::1;43978:12;:10;:12::i;55042:253::-:0;55098:4;;55091:39;;-1:-1:-1;;;;;55098:4:0;49036:42;55128:1;55091:24;:39::i;:::-;55168:9;;55141:40;;48823:42;;-1:-1:-1;;;;;55168:9:0;;55141:26;:40::i;:::-;55221:9;;55199:8;;55192:42;;-1:-1:-1;;;;;55199:8:0;;;;55221:9;;55192:28;:42::i;:::-;55274:9;;55252:8;;55245:42;;-1:-1:-1;;;;;55252:8:0;;;;55274:9;;55245:28;:42::i;33331:761::-;33755:23;33781:69;33809:4;33781:69;;;;;;;;;;;;;;;;;33789:5;-1:-1:-1;;;;;33781:27:0;;;:69;;;;;:::i;:::-;33865:17;;33755:95;;-1:-1:-1;33865:21:0;33861:224;;34007:10;33996:30;;;;;;;;;;;;;;;-1:-1:-1;33996:30:0;33988:85;;;;-1:-1:-1;;;33988:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27073:530;27200:12;27258:5;27233:21;:30;;27225:81;;;;-1:-1:-1;;;27225:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27325:18;27336:6;27325:10;:18::i;:::-;27317:60;;;;;-1:-1:-1;;;27317:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;27451:12;27465:23;27492:6;-1:-1:-1;;;;;27492:11:0;27512:5;27520:4;27492:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;27492:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27450:75;;;;27543:52;27561:7;27570:10;27582:12;27543:17;:52::i;:::-;27536:59;27073:530;-1:-1:-1;;;;;;;27073:530:0:o;23103:422::-;23470:20;23509:8;;;23103:422::o;29613:742::-;29728:12;29757:7;29753:595;;;-1:-1:-1;29788:10:0;29781:17;;29753:595;29902:17;;:21;29898:439;;30165:10;30159:17;30226:15;30213:10;30209:2;30205:19;30198:44;30113:148;30308:12;30301:20;;-1:-1:-1;;;30301:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://2d585c1c6954066e0add78851933f3dfd6281088d3b68e291efc0027e6f51ba1

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.