Contract 0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f60 2

Txn Hash
Block
From
To
Value [Txn Fee]
0x0c440e577c42a75c6d5d88113bb41920e6d327bf60a9cc3756287c4e9d9e30c1131992862021-07-29 0:12:091 min ago0x3c7b7cb7516a594de3a29c3553c296feadb725f2 IN  0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f600 FTM0.0427844
0xaac196bdb729b2a80d7473e979ef3c0aad21adae2d2c2d1beb2ef085404fd6c6131989192021-07-29 0:06:157 mins ago0x7aabf7a753ddd012ce1c461c9e93cad2e3120131 IN  0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f600 FTM0.0468703
0x84cb587798089760073104769c328cc4b087451dbe20f9d079231cc8b3ab2133131984982021-07-28 23:59:4013 mins ago0x7aabf7a753ddd012ce1c461c9e93cad2e3120131 IN  0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f600 FTM0.0477553
0x6a8faab031412fa11ac37226b432fccb8f04a8ad8ffc90710b8aa0992d7ea3fa131980952021-07-28 23:53:0120 mins ago0x7aabf7a753ddd012ce1c461c9e93cad2e3120131 IN  0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f600 FTM0.0453703
0x1678cad8477d586920aa22332c4d3f1d8a74b8b956971d7118e613367f38162c131977092021-07-28 23:46:1327 mins ago0x7aabf7a753ddd012ce1c461c9e93cad2e3120131 IN  0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f600 FTM0.0127431
0xebdfa2a924be4eb8d7cdfe99b46e9aa158c82300e10c2bece57252613366f33a131977082021-07-28 23:46:1327 mins ago0x3c7b7cb7516a594de3a29c3553c296feadb725f2 IN  0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f600 FTM0.04256345
0xfa1629a9279f6a01b028192646e42f5cf594433a5c7c5c8c085aaac9844f22f1131973112021-07-28 23:39:3233 mins ago0x1e5f5d0beb7d9dcddbb1682409eef39bd7ea98b9 IN  0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f600 FTM0.04256345
0xa9e8376905de0079d4d634272914c749902416d630d5c6671e91f45234c10efd131969522021-07-28 23:33:3439 mins ago0x7aabf7a753ddd012ce1c461c9e93cad2e3120131 IN  0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f600 FTM0.0477553
0x217d239400324a2485a28e906cc6950c24d7c1239b400728a6629680a33265d5131965272021-07-28 23:26:5446 mins ago0x0000000000409627331280d77901f7d3f6eba0d1 IN  0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f600 FTM0.0433353
0xe1fd3d797159f3b84d906af08b2d7461d793da9898a0faec74707df5567a99d4131960142021-07-28 23:19:1554 mins ago0x7aabf7a753ddd012ce1c461c9e93cad2e3120131 IN  0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f600 FTM0.0453703
0x48087958423977a505a13b5d350bfed62513c17abef373a0f28a21d1d309aecc131955582021-07-28 23:12:281 hr ago0x7aabf7a753ddd012ce1c461c9e93cad2e3120131 IN  0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f600 FTM0.0477553
0x911ebcbd061ab9fec917872838c1f97f81634ccd5f4eeaead05a06fdc94702d8131950722021-07-28 23:05:491 hr 7 mins ago0x7aabf7a753ddd012ce1c461c9e93cad2e3120131 IN  0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f600 FTM0.0458353
0x6fd1877986989f9fb524678f1e2a26c280b66117b88a1da2c221040fa925730a131945882021-07-28 22:59:141 hr 14 mins ago0x3c7b7cb7516a594de3a29c3553c296feadb725f2 IN  0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f600 FTM0.0409622
0x48cf942aed4fe6d4eecdd09f12456fd1d5f346cc44265d9da771539950d960d9131941482021-07-28 22:53:081 hr 20 mins ago0x7aabf7a753ddd012ce1c461c9e93cad2e3120131 IN  0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f600 FTM0.0468703
0xdb5bae909b7cc99faed39b352404d66f1a852b61dbaa691a76fcba6de89ec154131936672021-07-28 22:46:321 hr 26 mins ago0x7aabf7a753ddd012ce1c461c9e93cad2e3120131 IN  0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f600 FTM0.0468703
0x5284be30e49eec8c447041a93c7eb9d8e2dd88dc64a8f5a2550f2cb81b281ef6131931652021-07-28 22:39:501 hr 33 mins ago0x3c7b7cb7516a594de3a29c3553c296feadb725f2 IN  0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f600 FTM0.0425997
0x7575b48939f31d02e2aadb4fe5de5b830c9e4d932a369f23483be771f70acc75131927302021-07-28 22:34:011 hr 39 mins ago0x7aabf7a753ddd012ce1c461c9e93cad2e3120131 IN  0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f600 FTM0.0477553
0xe8fe9c81da7f422bd18be680e0cdc1fa5dc5b0463d35546476df9256b7469c95131922352021-07-28 22:27:191 hr 46 mins ago0x7aabf7a753ddd012ce1c461c9e93cad2e3120131 IN  0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f600 FTM0.0458353
0x8fd1bc87f1a525e70c8b7654bac9581225a681e503c91d6bbbb88c5a2ad3837d131917682021-07-28 22:20:431 hr 52 mins ago0x7aabf7a753ddd012ce1c461c9e93cad2e3120131 IN  0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f600 FTM0.0458353
0x316b081edb0a9eb5644afa9fd3ac564071f4b1309d6549684762cd8f2179e5f7131913162021-07-28 22:14:061 hr 59 mins ago0x7aabf7a753ddd012ce1c461c9e93cad2e3120131 IN  0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f600 FTM0.0458353
0x19b899ed70f3b535b78e19fcdb2eba771f1a21a577e3cbdfcc9eb42a33836beb131908462021-07-28 22:07:292 hrs 5 mins ago0x7aabf7a753ddd012ce1c461c9e93cad2e3120131 IN  0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f600 FTM0.0453703
0x18440a210a778e9798c2a0964540cbd4354fac3d3d00cffd6979171e59895eb2131903572021-07-28 22:00:412 hrs 12 mins ago0x7aabf7a753ddd012ce1c461c9e93cad2e3120131 IN  0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f600 FTM0.0477553
0x14d7561c2662082f5de077fd626bb7ff701bdb32254e2aa589519d7c4ac82c8c131898832021-07-28 21:54:052 hrs 19 mins ago0x7aabf7a753ddd012ce1c461c9e93cad2e3120131 IN  0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f600 FTM0.0458353
0x8c5c77df2f17326ebd4a97859c97665b479ce188eab6dc86221fe045eac72b60131893872021-07-28 21:47:242 hrs 26 mins ago0x72af970456dca189e86c20801477eabbf6962747 IN  0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f600 FTM0.04071605
0x17dcceb0b85e9b0646b5ea8c76e0d78b103770e68d33ad224838f90ddd074178131889532021-07-28 21:41:562 hrs 31 mins ago0x7aabf7a753ddd012ce1c461c9e93cad2e3120131 IN  0x1433c4a55449c8b96cf5ac0cf395cbd8dc8e5f600 FTM0.0460453
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x65fc4f70a71c7ec2cc03aa910c74c370e0aaaf6b4ecdcc2b1e5c9b816070740657036072021-05-08 19:08:3881 days 5 hrs ago 0x010da5ff62b6e45f89fa7b2d8ced5a8b5754ec1b  Contract Creation0 FTM
[ Download CSV Export 
Loading

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

Contract Name:
StrategyMasterChefLP

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 FtmScan.com on 2021-05-08
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;

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

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

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


pragma solidity ^0.6.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
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 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/token/ERC20/IERC20.sol


pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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

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


pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, 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) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * 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);
        uint256 c = a - b;

        return c;
    }

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

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts 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) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

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


pragma solidity ^0.6.2;

/**
 * @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 in 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");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        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/ERC20.sol


pragma solidity ^0.6.0;





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

    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 returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view 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 returns (uint8) {
        return _decimals;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view 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 {
        _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/token/ERC20/SafeERC20.sol


pragma solidity ^0.6.0;




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

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

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

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

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

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

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

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

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


pragma solidity ^0.6.0;


/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
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 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/interfaces/common/IUniswapRouterETH.sol


pragma solidity ^0.6.0;

interface IUniswapRouterETH {
    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);

    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);

    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);

    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);

    function swapExactTokensForTokens(
        uint amountIn, 
        uint amountOutMin, 
        address[] calldata path, 
        address to, 
        uint deadline
    ) external returns (uint[] memory amounts);

    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
}

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


pragma solidity ^0.6.0;

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

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


pragma solidity ^0.6.0;

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

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



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




pragma solidity ^0.6.0;




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

    // Tokens used
    address constant public wrapped = address(0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83);
    address constant public output = address(0x841FAD6EAe12c286d1Fd18d1d525DFfA75C7EFFE);
    address public want;
    address public lpToken0;
    address public lpToken1;

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

    // Routes
    address[] public outputToWrappedRoute = [output, wrapped];
    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 == wrapped) {
            outputToLp0Route = [output, wrapped];
        } else if (lpToken0 != output) {
            outputToLp0Route = [output, wrapped, lpToken0];
        }

        if (lpToken1 == wrapped) {
            outputToLp1Route = [output, wrapped];
        } else if (lpToken1 != output) {
            outputToLp1Route = [output, wrapped, 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 toWrapped = IERC20(output).balanceOf(address(this)).mul(45).div(1000);
        IUniswapRouterETH(unirouter).swapExactTokensForTokens(toWrapped, 0, outputToWrappedRoute, address(this), now);

        uint256 wrappedBal = IERC20(wrapped).balanceOf(address(this));

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

        uint256 beefyFeeAmount = wrappedBal.mul(beefyFee).div(MAX_FEE);
        IERC20(wrapped).safeTransfer(beefyFeeRecipient, beefyFeeAmount);

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

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

        uint256 lp0Bal = IERC20(lpToken0).balanceOf(address(this));
        uint256 lp1Bal = IERC20(lpToken1).balanceOf(address(this));
        IUniswapRouterETH(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 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":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"keeper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpToken0","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpToken1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"outputToWrappedRoute","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":"wrapped","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

600a600655606f60075561030960085560c06040526000805160206200331983398151915260809081526000805160206200329983398151915260a0526200004c90600d90600262000947565b503480156200005a57600080fd5b506040516200333938038062003339833981810160405260e08110156200008057600080fd5b508051602082015160408301516060840151608085015160a086015160c090960151949593949293919290919082828587846000620000be62000466565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506000805460ff60a01b19169055600180546001600160a01b03199081166001600160a01b0397881617909155600280548216958716959095179094556003805485169386169390931790925560048054841691851691909117815560058054841692851692909217909155600980549092168a8416179182905560408051630dfe168160e01b815290519290931692630dfe16819281830192602092829003018186803b158015620001b957600080fd5b505afa158015620001ce573d6000803e3d6000fd5b505050506040513d6020811015620001e557600080fd5b5051600a80546001600160a01b0319166001600160a01b039283161790556009546040805163d21220a760e01b81529051919092169163d21220a7916004808301926020929190829003018186803b1580156200024157600080fd5b505afa15801562000256573d6000803e3d6000fd5b505050506040513d60208110156200026d57600080fd5b5051600b80546001600160a01b0319166001600160a01b03928316179055600c879055600a546000805160206200329983398151915291161415620002f45760408051808201909152600080516020620033198339815191528152600080516020620032998339815191526020820152620002ed90600e90600262000947565b506200036c565b600a546001600160a01b031660008051602062003319833981519152146200036c5760408051606081018252600080516020620033198339815191528152600080516020620032998339815191526020820152600a546001600160a01b0316918101919091526200036a90600e90600362000947565b505b600b546001600160a01b0316600080516020620032998339815191521415620003d75760408051808201909152600080516020620033198339815191528152600080516020620032998339815191526020820152620003d090600f90600262000947565b506200044f565b600b546001600160a01b031660008051602062003319833981519152146200044f5760408051606081018252600080516020620033198339815191528152600080516020620032998339815191526020820152600b546001600160a01b0316918101919091526200044d90600f90600362000947565b505b620004596200046a565b50505050505050620009d2565b3390565b600954620004a5906001600160a01b0316732b2929e785374c651a81a63878ab22742656dcdd60001962000590602090811b6200161617901c565b600354620004dc9060008051602062003319833981519152906001600160a01b031660001962000590602090811b6200161617901c565b600354600a5462000508916001600160a01b039182169116600062000590602090811b6200161617901c565b600354600a5462000535916001600160a01b03918216911660001962000590602090811b6200161617901c565b600354600b5462000561916001600160a01b039182169116600062000590602090811b6200161617901c565b600354600b546200058e916001600160a01b03918216911660001962000590602090811b6200161617901c565b565b8015806200061a575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015620005ea57600080fd5b505afa158015620005ff573d6000803e3d6000fd5b505050506040513d60208110156200061657600080fd5b5051155b620006575760405162461bcd60e51b8152600401808060200182810382526036815260200180620032e36036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b17909152620006af918591620006b416565b505050565b606062000710826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166200077060201b62001729179092919060201c565b805190915015620006af578080602001905160208110156200073157600080fd5b5051620006af5760405162461bcd60e51b815260040180806020018281038252602a815260200180620032b9602a913960400191505060405180910390fd5b606062000781848460008562000789565b949350505050565b6060620007968562000941565b620007e8576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310620008295780518252601f19909201916020918201910162000808565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146200088d576040519150601f19603f3d011682016040523d82523d6000602084013e62000892565b606091505b50915091508115620008a8579150620007819050565b805115620008b95780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101562000905578181015183820152602001620008eb565b50505050905090810190601f168015620009335780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b3b151590565b8280548282559060005260206000209081019282156200099f579160200282015b828111156200099f57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000968565b50620009ad929150620009b1565b5090565b5b80821115620009ad5780546001600160a01b0319168155600101620009b2565b6128b780620009e26000396000f3fe608060405234801561001057600080fd5b506004361061027f5760003560e01c80637d38ca651161015c578063c1a3d44c116100ce578063f20eaeb811610087578063f20eaeb8146104ff578063f2fde38b14610507578063fb1db2781461052d578063fb61778714610535578063fbfa77cf1461053d578063fd63a887146105455761027f565b8063c1a3d44c14610493578063c7b9d5301461049b578063d0e30db0146104c1578063d3102589146104c9578063d92f3d73146104d1578063dfbdc437146104f75761027f565b80638e145459116101205780638e1454591461043057806390321e1a14610438578063a68833e514610440578063ac1e502514610466578063aced166114610483578063bc063e1a1461048b5761027f565b80637d38ca65146104085780638456cb5914610410578063877562b6146104185780638bc7e8c4146104205780638da5cb5b146104285761027f565b80634641257d116101f55780635c975abb116101b95780635c975abb146103885780635ee167c0146103a45780636817031b146103ac578063715018a6146103d2578063722713f7146103da578063748747e6146103e25761027f565b80634641257d146103605780634700d3051461036857806350e70d481461037057806354518b1a14610378578063573fef0a146103805761027f565b8063264658261161024757806326465826146102ef5780632ad5a53f1461030e5780632e1a7d4d1461031657806336c6cf21146103335780633e0dc34e146103505780633f4ba83a146103585761027f565b806311588086146102845780631d1721271461029e5780631f1fcd51146102d75780631fe4a686146102df578063257ae0de146102e7575b600080fd5b61028c610562565b60408051918252519081900360200190f35b6102bb600480360360208110156102b457600080fd5b50356105f2565b604080516001600160a01b039092168252519081900360200190f35b6102bb610619565b6102bb610628565b6102bb610637565b61030c6004803603602081101561030557600080fd5b5035610646565b005b61028c610700565b61030c6004803603602081101561032c57600080fd5b5035610705565b6102bb6004803603602081101561034957600080fd5b503561097b565b61028c610988565b61030c61098e565b61030c610a15565b61030c610b66565b6102bb610c51565b61028c610c69565b61030c610a13565b610390610c6f565b604080519115158252519081900360200190f35b6102bb610c7f565b61030c600480360360208110156103c257600080fd5b50356001600160a01b0316610c8e565b61030c610d08565b61028c610daa565b61030c600480360360208110156103f857600080fd5b50356001600160a01b0316610dca565b61028c610e59565b61030c610e5e565b6102bb610edb565b61028c610eea565b6102bb610ef0565b6102bb610eff565b61028c610f0e565b61030c6004803603602081101561045657600080fd5b50356001600160a01b0316610f14565b61030c6004803603602081101561047c57600080fd5b5035610f8e565b6102bb61103f565b61028c61104e565b61028c611054565b61030c600480360360208110156104b157600080fd5b50356001600160a01b03166110d0565b61030c61113f565b61028c611290565b61030c600480360360208110156104e757600080fd5b50356001600160a01b0316611296565b61028c611310565b6102bb611315565b61030c6004803603602081101561051d57600080fd5b50356001600160a01b031661132d565b6102bb611425565b61030c61143d565b6102bb6115fa565b6102bb6004803603602081101561055b57600080fd5b5035611609565b600c54604080516393f1a40b60e01b8152600481019290925230602483015280516000928392732b2929e785374c651a81a63878ab22742656dcdd926393f1a40b926044808201939291829003018186803b1580156105c057600080fd5b505afa1580156105d4573d6000803e3d6000fd5b505050506040513d60408110156105ea57600080fd5b505191505090565b600d81815481106105ff57fe5b6000918252602090912001546001600160a01b0316905081565b6009546001600160a01b031681565b6002546001600160a01b031681565b6003546001600160a01b031681565b61064e610ef0565b6001600160a01b0316336001600160a01b0316148061067757506001546001600160a01b031633145b6106b3576040805162461bcd60e51b815260206004820152600860248201526710b6b0b730b3b2b960c11b604482015290519081900360640190fd5b606f8111156106f2576040805162461bcd60e51b815260206004808301919091526024820152630216361760e41b604482015290519081900360640190fd5b600781905561037803600855565b606f81565b6004546001600160a01b0316331461074d576040805162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b604482015290519081900360640190fd5b600954604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561079857600080fd5b505afa1580156107ac573d6000803e3d6000fd5b505050506040513d60208110156107c257600080fd5b50519050818110156108c657600c54732b2929e785374c651a81a63878ab22742656dcdd9063441a3e70906107f78585611740565b6040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b15801561083457600080fd5b505af1158015610848573d6000803e3d6000fd5b5050600954604080516370a0823160e01b815230600482015290516001600160a01b0390921693506370a082319250602480820192602092909190829003018186803b15801561089757600080fd5b505afa1580156108ab573d6000803e3d6000fd5b505050506040513d60208110156108c157600080fd5b505190505b818111156108d15750805b6108d9610ef0565b6001600160a01b0316326001600160a01b031614806108fb57506108fb610c6f565b156109225760045460095461091d916001600160a01b0391821691168361178b565b610977565b600061094561271061093f600654856117dd90919063ffffffff16565b90611836565b600454909150610975906001600160a01b03166109628484611740565b6009546001600160a01b0316919061178b565b505b5050565b600e81815481106105ff57fe5b600c5481565b610996610ef0565b6001600160a01b0316336001600160a01b031614806109bf57506001546001600160a01b031633145b6109fb576040805162461bcd60e51b815260206004820152600860248201526710b6b0b730b3b2b960c11b604482015290519081900360640190fd5b610a03611878565b610a0b611920565b610a1361113f565b565b600054600160a01b900460ff1615610a67576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b333214610aa4576040805162461bcd60e51b8152602060048083019190915260248201526321454f4160e01b604482015290519081900360640190fd5b732b2929e785374c651a81a63878ab22742656dcdd6001600160a01b031663e2bbb158600c5460006040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b158015610b0957600080fd5b505af1158015610b1d573d6000803e3d6000fd5b50505050610b296119f5565b610b31611d79565b610b3961113f565b60405133907f577a37fdb49a88d66684922c6f913df5239b4f214b2b97c53ef8e3bbb2034cb590600090a2565b610b6e610ef0565b6001600160a01b0316336001600160a01b03161480610b9757506001546001600160a01b031633145b610bd3576040805162461bcd60e51b815260206004820152600860248201526710b6b0b730b3b2b960c11b604482015290519081900360640190fd5b610bdb610e5e565b732b2929e785374c651a81a63878ab22742656dcdd6001600160a01b0316635312ea8e600c546040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610c3757600080fd5b505af1158015610c4b573d6000803e3d6000fd5b50505050565b7321be370d5312f44cb42ce377bc9b8a0cef1a4c8381565b61271081565b600054600160a01b900460ff1690565b600a546001600160a01b031681565b610c96612318565b6000546001600160a01b03908116911614610ce6576040805162461bcd60e51b81526020600482018190526024820152600080516020612802833981519152604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b610d10612318565b6000546001600160a01b03908116911614610d60576040805162461bcd60e51b81526020600482018190526024820152600080516020612802833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000610dc5610db7610562565b610dbf611054565b9061231c565b905090565b610dd2610ef0565b6001600160a01b0316336001600160a01b03161480610dfb57506001546001600160a01b031633145b610e37576040805162461bcd60e51b815260206004820152600860248201526710b6b0b730b3b2b960c11b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b607081565b610e66610ef0565b6001600160a01b0316336001600160a01b03161480610e8f57506001546001600160a01b031633145b610ecb576040805162461bcd60e51b815260206004820152600860248201526710b6b0b730b3b2b960c11b604482015290519081900360640190fd5b610ed3612376565b610a13612404565b600b546001600160a01b031681565b60065481565b6000546001600160a01b031690565b6005546001600160a01b031681565b60075481565b610f1c612318565b6000546001600160a01b03908116911614610f6c576040805162461bcd60e51b81526020600482018190526024820152600080516020612802833981519152604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b610f96610ef0565b6001600160a01b0316336001600160a01b03161480610fbf57506001546001600160a01b031633145b610ffb576040805162461bcd60e51b815260206004820152600860248201526710b6b0b730b3b2b960c11b604482015290519081900360640190fd5b603281111561103a576040805162461bcd60e51b815260206004808301919091526024820152630216361760e41b604482015290519081900360640190fd5b600655565b6001546001600160a01b031681565b6103e881565b600954604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561109f57600080fd5b505afa1580156110b3573d6000803e3d6000fd5b505050506040513d60208110156110c957600080fd5b5051905090565b6002546001600160a01b0316331461111d576040805162461bcd60e51b815260206004820152600b60248201526a085cdd1c985d1959da5cdd60aa1b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b600054600160a01b900460ff1615611191576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600954604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156111dc57600080fd5b505afa1580156111f0573d6000803e3d6000fd5b505050506040513d602081101561120657600080fd5b50519050801561128d57732b2929e785374c651a81a63878ab22742656dcdd6001600160a01b031663e2bbb158600c54836040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b15801561127457600080fd5b505af1158015611288573d6000803e3d6000fd5b505050505b50565b60085481565b61129e612318565b6000546001600160a01b039081169116146112ee576040805162461bcd60e51b81526020600482018190526024820152600080516020612802833981519152604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b603281565b73841fad6eae12c286d1fd18d1d525dffa75c7effe81565b611335612318565b6000546001600160a01b03908116911614611385576040805162461bcd60e51b81526020600482018190526024820152600080516020612802833981519152604482015290519081900360640190fd5b6001600160a01b0381166113ca5760405162461bcd60e51b81526004018080602001828103825260268152602001806127bb6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b732b2929e785374c651a81a63878ab22742656dcdd81565b6004546001600160a01b03163314611485576040805162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b604482015290519081900360640190fd5b732b2929e785374c651a81a63878ab22742656dcdd6001600160a01b0316635312ea8e600c546040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156114e157600080fd5b505af11580156114f5573d6000803e3d6000fd5b5050600954604080516370a0823160e01b81523060048201529051600094506001600160a01b0390921692506370a08231916024808301926020929190829003018186803b15801561154657600080fd5b505afa15801561155a573d6000803e3d6000fd5b505050506040513d602081101561157057600080fd5b5051600954600480546040805163a9059cbb60e01b81526001600160a01b039283169381019390935260248301859052519394509091169163a9059cbb916044808201926020929091908290030181600087803b1580156115d057600080fd5b505af11580156115e4573d6000803e3d6000fd5b505050506040513d602081101561097557600080fd5b6004546001600160a01b031681565b600f81815481106105ff57fe5b80158061169c575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561166e57600080fd5b505afa158015611682573d6000803e3d6000fd5b505050506040513d602081101561169857600080fd5b5051155b6116d75760405162461bcd60e51b815260040180806020018281038252603681526020018061284c6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610975908490612499565b6060611738848460008561254a565b949350505050565b600061178283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506126f5565b90505b92915050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610975908490612499565b6000826117ec57506000611785565b828202828482816117f957fe5b04146117825760405162461bcd60e51b81526004018080602001828103825260218152602001806127e16021913960400191505060405180910390fd5b600061178283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061274f565b600054600160a01b900460ff166118cd576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611903612318565b604080516001600160a01b039092168252519081900360200190a1565b60095461194d906001600160a01b0316732b2929e785374c651a81a63878ab22742656dcdd600019611616565b60035461197b9073841fad6eae12c286d1fd18d1d525dffa75c7effe906001600160a01b0316600019611616565b600354600a54611999916001600160a01b0391821691166000611616565b600354600a546119b8916001600160a01b039182169116600019611616565b600354600b546119d6916001600160a01b0391821691166000611616565b600354600b54610a13916001600160a01b039182169116600019611616565b6000611a956103e861093f602d73841fad6eae12c286d1fd18d1d525dffa75c7effe6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611a6357600080fd5b505afa158015611a77573d6000803e3d6000fd5b505050506040513d6020811015611a8d57600080fd5b5051906117dd565b9050600360009054906101000a90046001600160a01b03166001600160a01b03166338ed1739826000600d30426040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b031681526020018381526020018281038252858181548152602001915080548015611b4157602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611b23575b50509650505050505050600060405180830381600087803b158015611b6557600080fd5b505af1158015611b79573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015611ba257600080fd5b8101908080516040519392919084640100000000821115611bc257600080fd5b908301906020820185811115611bd757600080fd5b8251866020820283011164010000000082111715611bf457600080fd5b82525081516020918201928201910280838360005b83811015611c21578181015183820152602001611c09565b505050509190910160408181526370a0823160e01b825230600483015251600096507321be370d5312f44cb42ce377bc9b8a0cef1a4c8395506370a08231945060248083019450602093509091829003018186803b158015611c8257600080fd5b505afa158015611c96573d6000803e3d6000fd5b505050506040513d6020811015611cac57600080fd5b5051600754909150600090611cca906103e89061093f9085906117dd565b9050611ceb7321be370d5312f44cb42ce377bc9b8a0cef1a4c83338361178b565b6000611d086103e861093f600854866117dd90919063ffffffff16565b600554909150611d37907321be370d5312f44cb42ce377bc9b8a0cef1a4c83906001600160a01b03168361178b565b6000611d4a6103e861093f8660706117dd565b600254909150611288907321be370d5312f44cb42ce377bc9b8a0cef1a4c83906001600160a01b03168361178b565b6000611e13600273841fad6eae12c286d1fd18d1d525dffa75c7effe6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611de157600080fd5b505afa158015611df5573d6000803e3d6000fd5b505050506040513d6020811015611e0b57600080fd5b505190611836565b600a549091506001600160a01b031673841fad6eae12c286d1fd18d1d525dffa75c7effe14611fc5576003546040516338ed173960e01b8152600481018381526000602483018190523060648401819052426084850181905260a060448601908152600e805460a488018190526001600160a01b03909816976338ed1739978a97929594939160c49091019086908015611ed657602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611eb8575b50509650505050505050600060405180830381600087803b158015611efa57600080fd5b505af1158015611f0e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015611f3757600080fd5b8101908080516040519392919084640100000000821115611f5757600080fd5b908301906020820185811115611f6c57600080fd5b8251866020820283011164010000000082111715611f8957600080fd5b82525081516020918201928201910280838360005b83811015611fb6578181015183820152602001611f9e565b50505050905001604052505050505b600b546001600160a01b031673841fad6eae12c286d1fd18d1d525dffa75c7effe14612174576003546040516338ed173960e01b8152600481018381526000602483018190523060648401819052426084850181905260a060448601908152600f805460a488018190526001600160a01b03909816976338ed1739978a97929594939160c4909101908690801561208557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612067575b50509650505050505050600060405180830381600087803b1580156120a957600080fd5b505af11580156120bd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260208110156120e657600080fd5b810190808051604051939291908464010000000082111561210657600080fd5b90830190602082018581111561211b57600080fd5b825186602082028301116401000000008211171561213857600080fd5b82525081516020918201928201910280838360005b8381101561216557818101518382015260200161214d565b50505050905001604052505050505b600a54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156121bf57600080fd5b505afa1580156121d3573d6000803e3d6000fd5b505050506040513d60208110156121e957600080fd5b5051600b54604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561223c57600080fd5b505afa158015612250573d6000803e3d6000fd5b505050506040513d602081101561226657600080fd5b5051600354600a54600b546040805162e8e33760e81b81526001600160a01b0393841660048201529183166024830152604482018790526064820185905260016084830181905260a48301523060c48301524260e48301525193945091169163e8e3370091610104808201926060929091908290030181600087803b1580156122ee57600080fd5b505af1158015612302573d6000803e3d6000fd5b505050506040513d606081101561128857600080fd5b3390565b600082820183811015611782576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600054600160a01b900460ff16156123c8576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611903612318565b600954612430906001600160a01b0316732b2929e785374c651a81a63878ab22742656dcdd6000611616565b60035461245d9073841fad6eae12c286d1fd18d1d525dffa75c7effe906001600160a01b03166000611616565b600354600a5461247b916001600160a01b0391821691166000611616565b600354600b54610a13916001600160a01b0391821691166000611616565b60606124ee826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166117299092919063ffffffff16565b8051909150156109755780806020019051602081101561250d57600080fd5b50516109755760405162461bcd60e51b815260040180806020018281038252602a815260200180612822602a913960400191505060405180910390fd5b6060612555856127b4565b6125a6576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106125e55780518252601f1990920191602091820191016125c6565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612647576040519150601f19603f3d011682016040523d82523d6000602084013e61264c565b606091505b509150915081156126605791506117389050565b8051156126705780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156126ba5781810151838201526020016126a2565b50505050905090810190601f1680156126e75780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b600081848411156127475760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156126ba5781810151838201526020016126a2565b505050900390565b6000818361279e5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156126ba5781810151838201526020016126a2565b5060008385816127aa57fe5b0495945050505050565b3b15159056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220e5f323062e000fd8f3f4471d0df6a4d51a59021a92766af99054ff02d5ec7e5164736f6c634300060c003300000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c835361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000000000841fad6eae12c286d1fd18d1d525dffa75c7effe00000000000000000000000089d9bc2f2d091cfbfc31e333d6dc555ddbc2fd290000000000000000000000000000000000000000000000000000000000000006000000000000000000000000711969a90c9edd815a5c2b441fc80d067ec5e969000000000000000000000000f491e7b69e4244ad4002bc14e878a34207e38c29000000000000000000000000d529b1894491a0a26b18939274ae8ede93e81dba000000000000000000000000010da5ff62b6e45f89fa7b2d8ced5a8b5754ec1b000000000000000000000000e6cce165aa3e52b2cc55f17b1dbc6a8fe5d66610

Deployed ByteCode Sourcemap

40999:6738:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46085:176;;;:::i;:::-;;;;;;;;;;;;;;;;41593:57;;;;;;;;;;;;;;;;-1:-1:-1;41593:57:0;;:::i;:::-;;;;-1:-1:-1;;;;;41593:57:0;;;;;;;;;;;;;;41335:19;;;:::i;37561:25::-;;;:::i;37593:24::-;;;:::i;40583:202::-;;;;;;;;;;;;;;;;-1:-1:-1;40583:202:0;;:::i;:::-;;40291:39;;;:::i;43041:742::-;;;;;;;;;;;;;;;;-1:-1:-1;43041:742:0;;:::i;41657:33::-;;;;;;;;;;;;;;;;-1:-1:-1;41657:33:0;;:::i;41548:21::-;;;:::i;46943:121::-;;;:::i;43846:221::-;;;:::i;46710:122::-;;;:::i;41152:85::-;;;:::i;40390:43::-;;;:::i;40066:44::-;;;:::i;33276:78::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;41361:23;;;:::i;39571:86::-;;;;;;;;;;;;;;;;-1:-1:-1;39571:86:0;-1:-1:-1;;;;;39571:86:0;;:::i;2691:148::-;;;:::i;45703:113::-;;;:::i;38843:92::-;;;;;;;;;;;;;;;;-1:-1:-1;38843:92:0;-1:-1:-1;;;;;38843:92:0;;:::i;40201:41::-;;;:::i;46840:95::-;;;:::i;41391:23::-;;;:::i;40446:30::-;;;:::i;2049:79::-;;;:::i;37651:32::-;;;:::i;40485:25::-;;;:::i;39792:134::-;;;;;;;;;;;;;;;;-1:-1:-1;39792:134:0;-1:-1:-1;;;;;39792:134:0;;:::i;40797:156::-;;;;;;;;;;;;;;;;-1:-1:-1;40797:156:0;;:::i;37533:21::-;;;:::i;40249:35::-;;;:::i;45883:118::-;;;:::i;39080:155::-;;;;;;;;;;;;;;;;-1:-1:-1;39080:155:0;-1:-1:-1;;;;;39080:155:0;;:::i;42815:218::-;;;:::i;40517:57::-;;;:::i;39367:102::-;;;;;;;;;;;;;;;;-1:-1:-1;39367:102:0;-1:-1:-1;;;;;39367:102:0;;:::i;40339:44::-;;;:::i;41244:84::-;;;:::i;2994:244::-;;;;;;;;;;;;;;;;-1:-1:-1;2994:244:0;-1:-1:-1;;;;;2994:244:0;;:::i;41453:88::-;;;:::i;46361:267::-;;;:::i;37624:20::-;;;:::i;41697:33::-;;;;;;;;;;;;;;;;-1:-1:-1;41697:33:0;;:::i;46085:176::-;46206:6;;46173:55;;;-1:-1:-1;;;46173:55:0;;;;;;;;;46222:4;46173:55;;;;;;46131:7;;;;41498:42;;46173:32;;:55;;;;;;;;;;;;41498:42;46173:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46173:55:0;;-1:-1:-1;;46085:176:0;:::o;41593:57::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;41593:57:0;;-1:-1:-1;41593:57:0;:::o;41335:19::-;;;-1:-1:-1;;;;;41335:19:0;;:::o;37561:25::-;;;-1:-1:-1;;;;;37561:25:0;;:::o;37593:24::-;;;-1:-1:-1;;;;;37593:24:0;;:::o;40583:202::-;38510:7;:5;:7::i;:::-;-1:-1:-1;;;;;38496:21:0;:10;-1:-1:-1;;;;;38496:21:0;;:45;;;-1:-1:-1;38535:6:0;;-1:-1:-1;;;;;38535:6:0;38521:10;:20;38496:45;38488:66;;;;;-1:-1:-1;;;38488:66:0;;;;;;;;;;;;-1:-1:-1;;;38488:66:0;;;;;;;;;;;;;;;40327:3:::1;40657:4;:20;;40649:37;;;::::0;;-1:-1:-1;;;40649:37:0;;::::1;;::::0;;::::1;::::0;;;;;;;;-1:-1:-1;;;40649:37:0;;;;;;;;;;;;;::::1;;40707:7;:14:::0;;;40743:24;:34:::1;40732:8;:45:::0;40583:202::o;40291:39::-;40327:3;40291:39;:::o;43041:742::-;43118:5;;-1:-1:-1;;;;;43118:5:0;43104:10;:19;43096:38;;;;;-1:-1:-1;;;43096:38:0;;;;;;;;;;;;-1:-1:-1;;;43096:38:0;;;;;;;;;;;;;;;43172:4;;43165:37;;;-1:-1:-1;;;43165:37:0;;43196:4;43165:37;;;;;;43147:15;;-1:-1:-1;;;;;43172:4:0;;43165:22;;:37;;;;;;;;;;;;;;43172:4;43165:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43165:37:0;;-1:-1:-1;43219:17:0;;;43215:174;;;43286:6;;41498:42;;43253:32;;43294:20;:7;43306;43294:11;:20::i;:::-;43253:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;43347:4:0;;43340:37;;;-1:-1:-1;;;43340:37:0;;43371:4;43340:37;;;;;;-1:-1:-1;;;;;43347:4:0;;;;-1:-1:-1;43340:22:0;;-1:-1:-1;43340:37:0;;;;;;;;;;;;;;;43347:4;43340:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43340:37:0;;-1:-1:-1;43215:174:0;43415:7;43405;:17;43401:67;;;-1:-1:-1;43449:7:0;43401:67;43497:7;:5;:7::i;:::-;-1:-1:-1;;;;;43484:20:0;:9;-1:-1:-1;;;;;43484:20:0;;:32;;;;43508:8;:6;:8::i;:::-;43480:296;;;43559:5;;43540:4;;43533:41;;-1:-1:-1;;;;;43540:4:0;;;;43559:5;43566:7;43533:25;:41::i;:::-;43480:296;;;43607:27;43637:46;40428:5;43637:26;43649:13;;43637:7;:11;;:26;;;;:::i;:::-;:30;;:46::i;:::-;43724:5;;43607:76;;-1:-1:-1;43698:66:0;;-1:-1:-1;;;;;43724:5:0;43731:32;:7;43607:76;43731:11;:32::i;:::-;43705:4;;-1:-1:-1;;;;;43705:4:0;;43698:66;:25;:66::i;:::-;43480:296;;43041:742;;:::o;41657:33::-;;;;;;;;;;41548:21;;;;:::o;46943:121::-;38510:7;:5;:7::i;:::-;-1:-1:-1;;;;;38496:21:0;:10;-1:-1:-1;;;;;38496:21:0;;:45;;;-1:-1:-1;38535:6:0;;-1:-1:-1;;;;;38535:6:0;38521:10;:20;38496:45;38488:66;;;;;-1:-1:-1;;;38488:66:0;;;;;;;;;;;;-1:-1:-1;;;38488:66:0;;;;;;;;;;;;;;;46994:10:::1;:8;:10::i;:::-;47017:17;:15;:17::i;:::-;47047:9;:7;:9::i;:::-;46943:121::o:0;43846:221::-;33594:7;;-1:-1:-1;;;33594:7:0;;;;33593:8;33585:37;;;;;-1:-1:-1;;;33585:37:0;;;;;;;;;;;;-1:-1:-1;;;33585:37:0;;;;;;;;;;;;;;;38672:10:::1;38686:9;38672:23;38664:40;;;::::0;;-1:-1:-1;;;38664:40:0;;::::1;;::::0;;::::1;::::0;;;;;;;;-1:-1:-1;;;38664:40:0;;;;;;;;;;;;;::::1;;41498:42:::2;-1:-1:-1::0;;;;;43907:31:0::2;;43939:6;;43947:1;43907:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;43960:12;:10;:12::i;:::-;43983:14;:12;:14::i;:::-;44008:9;:7;:9::i;:::-;44035:24;::::0;44048:10:::2;::::0;44035:24:::2;::::0;;;::::2;43846:221::o:0;46710:122::-;38510:7;:5;:7::i;:::-;-1:-1:-1;;;;;38496:21:0;:10;-1:-1:-1;;;;;38496:21:0;;:45;;;-1:-1:-1;38535:6:0;;-1:-1:-1;;;;;38535:6:0;38521:10;:20;38496:45;38488:66;;;;;-1:-1:-1;;;38488:66:0;;;;;;;;;;;;-1:-1:-1;;;38488:66:0;;;;;;;;;;;;;;;46757:7:::1;:5;:7::i;:::-;41498:42;-1:-1:-1::0;;;;;46775:41:0::1;;46817:6;;46775:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;46710:122::o:0;41152:85::-;41194:42;41152:85;:::o;40390:43::-;40428:5;40390:43;:::o;33276:78::-;33315:4;33339:7;-1:-1:-1;;;33339:7:0;;;;;33276:78::o;41361:23::-;;;-1:-1:-1;;;;;41361:23:0;;:::o;39571:86::-;2271:12;:10;:12::i;:::-;2261:6;;-1:-1:-1;;;;;2261:6:0;;;:22;;;2253:67;;;;;-1:-1:-1;;;2253:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2253:67:0;;;;;;;;;;;;;;;39635:5:::1;:14:::0;;-1:-1:-1;;;;;;39635:14:0::1;-1:-1:-1::0;;;;;39635:14:0;;;::::1;::::0;;;::::1;::::0;;39571:86::o;2691:148::-;2271:12;:10;:12::i;:::-;2261:6;;-1:-1:-1;;;;;2261:6:0;;;:22;;;2253:67;;;;;-1:-1:-1;;;2253:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2253:67:0;;;;;;;;;;;;;;;2798:1:::1;2782:6:::0;;2761:40:::1;::::0;-1:-1:-1;;;;;2782:6:0;;::::1;::::0;2761:40:::1;::::0;2798:1;;2761:40:::1;2829:1;2812:19:::0;;-1:-1:-1;;;;;;2812:19:0::1;::::0;;2691:148::o;45703:113::-;45745:7;45772:36;45792:15;:13;:15::i;:::-;45772;:13;:15::i;:::-;:19;;:36::i;:::-;45765:43;;45703:113;:::o;38843:92::-;38510:7;:5;:7::i;:::-;-1:-1:-1;;;;;38496:21:0;:10;-1:-1:-1;;;;;38496:21:0;;:45;;;-1:-1:-1;38535:6:0;;-1:-1:-1;;;;;38535:6:0;38521:10;:20;38496:45;38488:66;;;;;-1:-1:-1;;;38488:66:0;;;;;;;;;;;;-1:-1:-1;;;38488:66:0;;;;;;;;;;;;;;;38911:6:::1;:16:::0;;-1:-1:-1;;;;;;38911:16:0::1;-1:-1:-1::0;;;;;38911:16:0;;;::::1;::::0;;;::::1;::::0;;38843:92::o;40201:41::-;40239:3;40201:41;:::o;46840:95::-;38510:7;:5;:7::i;:::-;-1:-1:-1;;;;;38496:21:0;:10;-1:-1:-1;;;;;38496:21:0;;:45;;;-1:-1:-1;38535:6:0;;-1:-1:-1;;;;;38535:6:0;38521:10;:20;38496:45;38488:66;;;;;-1:-1:-1;;;38488:66:0;;;;;;;;;;;;-1:-1:-1;;;38488:66:0;;;;;;;;;;;;;;;46887:8:::1;:6;:8::i;:::-;46908:19;:17;:19::i;41391:23::-:0;;;-1:-1:-1;;;;;41391:23:0;;:::o;40446:30::-;;;;:::o;2049:79::-;2087:7;2114:6;-1:-1:-1;;;;;2114:6:0;2049:79;:::o;37651:32::-;;;-1:-1:-1;;;;;37651:32:0;;:::o;40485:25::-;;;;:::o;39792:134::-;2271:12;:10;:12::i;:::-;2261:6;;-1:-1:-1;;;;;2261:6:0;;;:22;;;2253:67;;;;;-1:-1:-1;;;2253:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2253:67:0;;;;;;;;;;;;;;;39880:17:::1;:38:::0;;-1:-1:-1;;;;;;39880:38:0::1;-1:-1:-1::0;;;;;39880:38:0;;;::::1;::::0;;;::::1;::::0;;39792:134::o;40797:156::-;38510:7;:5;:7::i;:::-;-1:-1:-1;;;;;38496:21:0;:10;-1:-1:-1;;;;;38496:21:0;;:45;;;-1:-1:-1;38535:6:0;;-1:-1:-1;;;;;38535:6:0;38521:10;:20;38496:45;38488:66;;;;;-1:-1:-1;;;38488:66:0;;;;;;;;;;;;-1:-1:-1;;;38488:66:0;;;;;;;;;;;;;;;40381:2:::1;40877:4;:26;;40869:43;;;::::0;;-1:-1:-1;;;40869:43:0;;::::1;;::::0;;::::1;::::0;;;;;;;;-1:-1:-1;;;40869:43:0;;;;;;;;;;;;;::::1;;40925:13;:20:::0;40797:156::o;37533:21::-;;;-1:-1:-1;;;;;37533:21:0;;:::o;40249:35::-;40280:4;40249:35;:::o;45883:118::-;45963:4;;45956:37;;;-1:-1:-1;;;45956:37:0;;45987:4;45956:37;;;;;;45929:7;;-1:-1:-1;;;;;45963:4:0;;45956:22;;:37;;;;;;;;;;;;;;45963:4;45956:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45956:37:0;;-1:-1:-1;45883:118:0;:::o;39080:155::-;39166:10;;-1:-1:-1;;;;;39166:10:0;39152;:24;39144:48;;;;;-1:-1:-1;;;39144:48:0;;;;;;;;;;;;-1:-1:-1;;;39144:48:0;;;;;;;;;;;;;;;39203:10;:24;;-1:-1:-1;;;;;;39203:24:0;-1:-1:-1;;;;;39203:24:0;;;;;;;;;;39080:155::o;42815:218::-;33594:7;;-1:-1:-1;;;33594:7:0;;;;33593:8;33585:37;;;;;-1:-1:-1;;;33585:37:0;;;;;;;;;;;;-1:-1:-1;;;33585:37:0;;;;;;;;;;;;;;;42891:4:::1;::::0;42884:37:::1;::::0;;-1:-1:-1;;;42884:37:0;;42915:4:::1;42884:37;::::0;::::1;::::0;;;42866:15:::1;::::0;-1:-1:-1;;;;;42891:4:0::1;::::0;42884:22:::1;::::0;:37;;;;;::::1;::::0;;;;;;;;42891:4;42884:37;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;42884:37:0;;-1:-1:-1;42938:11:0;;42934:92:::1;;41498:42;-1:-1:-1::0;;;;;42966:31:0::1;;42998:6;;43006:7;42966:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;42934:92;33633:1;42815:218::o:0;40517:57::-;;;;:::o;39367:102::-;2271:12;:10;:12::i;:::-;2261:6;;-1:-1:-1;;;;;2261:6:0;;;:22;;;2253:67;;;;;-1:-1:-1;;;2253:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2253:67:0;;;;;;;;;;;;;;;39439:9:::1;:22:::0;;-1:-1:-1;;;;;;39439:22:0::1;-1:-1:-1::0;;;;;39439:22:0;;;::::1;::::0;;;::::1;::::0;;39367:102::o;40339:44::-;40381:2;40339:44;:::o;41244:84::-;41285:42;41244:84;:::o;2994:244::-;2271:12;:10;:12::i;:::-;2261:6;;-1:-1:-1;;;;;2261:6:0;;;:22;;;2253:67;;;;;-1:-1:-1;;;2253:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2253:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;3083:22:0;::::1;3075:73;;;;-1:-1:-1::0;;;3075:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3185:6;::::0;;3164:38:::1;::::0;-1:-1:-1;;;;;3164:38:0;;::::1;::::0;3185:6;::::1;::::0;3164:38:::1;::::0;::::1;3213:6;:17:::0;;-1:-1:-1;;;;;;3213:17:0::1;-1:-1:-1::0;;;;;3213:17:0;;;::::1;::::0;;;::::1;::::0;;2994:244::o;41453:88::-;41498:42;41453:88;:::o;46361:267::-;46426:5;;-1:-1:-1;;;;;46426:5:0;46412:10;:19;46404:38;;;;;-1:-1:-1;;;46404:38:0;;;;;;;;;;;;-1:-1:-1;;;46404:38:0;;;;;;;;;;;;;;;41498:42;-1:-1:-1;;;;;46455:41:0;;46497:6;;46455:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;46542:4:0;;46535:37;;;-1:-1:-1;;;46535:37:0;;46566:4;46535:37;;;;;;46517:15;;-1:-1:-1;;;;;;46542:4:0;;;;-1:-1:-1;46535:22:0;;:37;;;;;;;;;;;;;;46542:4;46535:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46535:37:0;46590:4;;46605:5;;;46583:37;;;-1:-1:-1;;;46583:37:0;;-1:-1:-1;;;;;46605:5:0;;;46583:37;;;;;;;;;;;;;;46535;;-1:-1:-1;46590:4:0;;;;46583:21;;:37;;;;;46535;;46583;;;;;;;;46590:4;;46583:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37624:20;;;-1:-1:-1;;;;;37624:20:0;;:::o;41697:33::-;;;;;;;;;;29792:622;30162:10;;;30161:62;;-1:-1:-1;30178:39:0;;;-1:-1:-1;;;30178:39:0;;30202:4;30178:39;;;;-1:-1:-1;;;;;30178:39:0;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;:15;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30178:39:0;:44;30161:62;30153:152;;;;-1:-1:-1;;;30153:152:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30343:62;;;-1:-1:-1;;;;;30343:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;30343:62:0;-1:-1:-1;;;30343:62:0;;;30316:90;;30336:5;;30316:19;:90::i;15111:196::-;15214:12;15246:53;15269:6;15277:4;15283:1;15286:12;15246:22;:53::i;:::-;15239:60;15111:196;-1:-1:-1;;;;15111:196:0:o;7433:136::-;7491:7;7518:43;7522:1;7525;7518:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;7511:50;;7433:136;;;;;:::o;29133:177::-;29243:58;;;-1:-1:-1;;;;;29243:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;29243:58:0;-1:-1:-1;;;29243:58:0;;;29216:86;;29236:5;;29216:19;:86::i;8323:471::-;8381:7;8626:6;8622:47;;-1:-1:-1;8656:1:0;8649:8;;8622:47;8693:5;;;8697:1;8693;:5;:1;8717:5;;;;;:10;8709:56;;;;-1:-1:-1;;;8709:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9270:132;9328:7;9355:39;9359:1;9362;9355:39;;;;;;;;;;;;;;;;;:3;:39::i;34325:120::-;33870:7;;-1:-1:-1;;;33870:7:0;;;;33862:40;;;;;-1:-1:-1;;;33862:40:0;;;;;;;;;;;;-1:-1:-1;;;33862:40:0;;;;;;;;;;;;;;;34394:5:::1;34384:15:::0;;-1:-1:-1;;;;34384:15:0::1;::::0;;34415:22:::1;34424:12;:10;:12::i;:::-;34415:22;::::0;;-1:-1:-1;;;;;34415:22:0;;::::1;::::0;;;;;;;::::1;::::0;;::::1;34325:120::o:0;47072:401::-;47126:4;;47119:49;;-1:-1:-1;;;;;47126:4:0;41498:42;-1:-1:-1;;47119:24:0;:49::i;:::-;47206:9;;47179:50;;41285:42;;-1:-1:-1;;;;;47206:9:0;-1:-1:-1;;47179:26:0;:50::i;:::-;47271:9;;47249:8;;47242:42;;-1:-1:-1;;;;;47249:8:0;;;;47271:9;;47242:28;:42::i;:::-;47324:9;;47302:8;;47295:52;;-1:-1:-1;;;;;47302:8:0;;;;47324:9;-1:-1:-1;;47295:28:0;:52::i;:::-;47389:9;;47367:8;;47360:42;;-1:-1:-1;;;;;47367:8:0;;;;47389:9;;47360:28;:42::i;:::-;47442:9;;47420:8;;47413:52;;-1:-1:-1;;;;;47420:8:0;;;;47442:9;-1:-1:-1;;47413:28:0;:52::i;44100:755::-;44142:17;44162:57;44214:4;44162:47;44206:2;41285:42;-1:-1:-1;;;;;44162:24:0;;44195:4;44162:39;;;;;;;;;;;;;-1:-1:-1;;;;;44162:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44162:39:0;;:43;:47::i;:57::-;44142:77;;44248:9;;;;;;;;;-1:-1:-1;;;;;44248:9:0;-1:-1:-1;;;;;44230:53:0;;44284:9;44295:1;44298:20;44328:4;44335:3;44230:109;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;44230:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;44230:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;44230:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44230:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;44230:109:0;;;;;;;;-1:-1:-1;;;44373:40:0;;44407:4;44373:40;;;;;44352:18;;-1:-1:-1;41194:42:0;;-1:-1:-1;44373:25:0;;-1:-1:-1;44373:40:0;;;;;-1:-1:-1;44373:40:0;;-1:-1:-1;44373:40:0;;;;;;;41194:42;44373:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44373:40:0;44465:7;;44373:40;;-1:-1:-1;44426:21:0;;44450:36;;40280:4;;44450:23;;44373:40;;44450:14;:23::i;:36::-;44426:60;-1:-1:-1;44497:55:0;41194:42;44526:10;44426:60;44497:28;:55::i;:::-;44565:22;44590:37;40280:4;44590:24;44605:8;;44590:10;:14;;:24;;;;:::i;:37::-;44667:17;;44565:62;;-1:-1:-1;44638:63:0;;41194:42;;-1:-1:-1;;;;;44667:17:0;44565:62;44638:28;:63::i;:::-;44714:21;44738:43;40280:4;44738:30;:10;40239:3;44738:14;:30::i;:43::-;44821:10;;44714:67;;-1:-1:-1;44792:55:0;;41194:42;;-1:-1:-1;;;;;44821:10:0;44714:67;44792:28;:55::i;44918:711::-;44962:18;44983:46;45027:1;41285:42;-1:-1:-1;;;;;44983:24:0;;45016:4;44983:39;;;;;;;;;;;;;-1:-1:-1;;;;;44983:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44983:39:0;;:43;:46::i;:::-;45046:8;;44962:67;;-1:-1:-1;;;;;;45046:8:0;41285:42;45046:18;45042:157;;45099:9;;45081:106;;-1:-1:-1;;;45081:106:0;;;;;;;;45099:9;45081:106;;;;;;45176:4;45081:106;;;;;;45183:3;45081:106;;;;;;;;;;;;;45150:16;45081:106;;;;;;;;-1:-1:-1;;;;;45099:9:0;;;;45081:53;;45135:10;;45150:16;;45176:4;45183:3;45081:106;;;;;;45150:16;;45081:106;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;45081:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;45081:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45081:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45042:157;45215:8;;-1:-1:-1;;;;;45215:8:0;41285:42;45215:18;45211:157;;45268:9;;45250:106;;-1:-1:-1;;;45250:106:0;;;;;;;;45268:9;45250:106;;;;;;45345:4;45250:106;;;;;;45352:3;45250:106;;;;;;;;;;;;;45319:16;45250:106;;;;;;;;-1:-1:-1;;;;;45268:9:0;;;;45250:53;;45304:10;;45319:16;;45345:4;45352:3;45250:106;;;;;;45319:16;;45250:106;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;45250:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;45250:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45250:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45211:157;45404:8;;45397:41;;;-1:-1:-1;;;45397:41:0;;45432:4;45397:41;;;;;;45380:14;;-1:-1:-1;;;;;45404:8:0;;45397:26;;:41;;;;;;;;;;;;;;45404:8;45397:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45397:41:0;45473:8;;45466:41;;;-1:-1:-1;;;45466:41:0;;45501:4;45466:41;;;;;;45397;;-1:-1:-1;45449:14:0;;-1:-1:-1;;;;;45473:8:0;;;;45466:26;;:41;;;;;45397;;45466;;;;;;;;45473:8;45466:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45466:41:0;45536:9;;45560:8;;45570;;45518:103;;;-1:-1:-1;;;45518:103:0;;-1:-1:-1;;;;;45560:8:0;;;45518:103;;;;45570:8;;;45518:103;;;;;;;;;;;;;;;;45536:9;45518:103;;;;;;;;;;45610:4;45518:103;;;;45617:3;45518:103;;;;;45466:41;;-1:-1:-1;45536:9:0;;;45518:41;;:103;;;;;;;;;;;;;;;45536:9;;45518:103;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;603:106;691:10;603:106;:::o;6969:181::-;7027:7;7059:5;;;7083:6;;;;7075:46;;;;;-1:-1:-1;;;7075:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;34066:118;33594:7;;-1:-1:-1;;;33594:7:0;;;;33593:8;33585:37;;;;;-1:-1:-1;;;33585:37:0;;;;;;;;;;;;-1:-1:-1;;;33585:37:0;;;;;;;;;;;;;;;34126:7:::1;:14:::0;;-1:-1:-1;;;;34126:14:0::1;-1:-1:-1::0;;;34126:14:0::1;::::0;;34156:20:::1;34163:12;:10;:12::i;47481:253::-:0;47537:4;;47530:39;;-1:-1:-1;;;;;47537:4:0;41498:42;47567:1;47530:24;:39::i;:::-;47607:9;;47580:40;;41285:42;;-1:-1:-1;;;;;47607:9:0;;47580:26;:40::i;:::-;47660:9;;47638:8;;47631:42;;-1:-1:-1;;;;;47638:8:0;;;;47660:9;;47631:28;:42::i;:::-;47713:9;;47691:8;;47684:42;;-1:-1:-1;;;;;47691:8:0;;;;47713:9;;47684:28;:42::i;31438:761::-;31862:23;31888:69;31916:4;31888:69;;;;;;;;;;;;;;;;;31896:5;-1:-1:-1;;;;;31888:27:0;;;:69;;;;;:::i;:::-;31972:17;;31862:95;;-1:-1:-1;31972:21:0;31968:224;;32114:10;32103:30;;;;;;;;;;;;;;;-1:-1:-1;32103:30:0;32095:85;;;;-1:-1:-1;;;32095:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16488:979;16618:12;16651:18;16662:6;16651:10;:18::i;:::-;16643:60;;;;;-1:-1:-1;;;16643:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;16777:12;16791:23;16818:6;-1:-1:-1;;;;;16818:11:0;16838:8;16849:4;16818:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;16818:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16776:78;;;;16869:7;16865:595;;;16900:10;-1:-1:-1;16893:17:0;;-1:-1:-1;16893:17:0;16865:595;17014:17;;:21;17010:439;;17277:10;17271:17;17338:15;17325:10;17321:2;17317:19;17310:44;17225:148;17420:12;17413:20;;-1:-1:-1;;;17413:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7872:192;7958:7;7994:12;7986:6;;;;7978:29;;;;-1:-1:-1;;;7978:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;8030:5:0;;;7872:192::o;9898:278::-;9984:7;10019:12;10012:5;10004:28;;;;-1:-1:-1;;;10004:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10043:9;10059:1;10055;:5;;;;;;;9898:278;-1:-1:-1;;;;;9898:278:0:o;12193:422::-;12560:20;12599:8;;;12193:422::o

Swarm Source

ipfs://e5f323062e000fd8f3f4471d0df6a4d51a59021a92766af99054ff02d5ec7e51
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.