Contract 0xa473af97a94ef005ca722416724e6cd5dbd2fc97

Contract Overview

Balance:
0.001954012163047101 AVAX

AVAX Value:
$0.03 (@ $12.86/AVAX)

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x935b0fd6cebe3bb637c6ca85fe94cb8b59013594af63cc32f6d99dac9e1d81d8Set Collateral T...200215112022-09-19 4:23:2368 days 22 hrs ago0x7601630ec802952ba1ed2b6e4db16f699a0a5a87 IN 0xa473af97a94ef005ca722416724e6cd5dbd2fc970 AVAX0.001079546 26
0x9c593ec7ac573cb8cfb46b52fb8b3f9f74657a0e1f289a811b6a9fdf412da0e5Set Collateral T...200214932022-09-19 4:22:4468 days 22 hrs ago0x7601630ec802952ba1ed2b6e4db16f699a0a5a87 IN 0xa473af97a94ef005ca722416724e6cd5dbd2fc970 AVAX0.001079546 26
0x00a1e365b1918d159122834e690791fccda4adf097ca1ffe4bbb6755cbe1a104Harvest200207702022-09-19 3:50:5168 days 23 hrs ago0x7601630ec802952ba1ed2b6e4db16f699a0a5a87 IN 0xa473af97a94ef005ca722416724e6cd5dbd2fc970 AVAX0.114181366 26
0x9dc362c0c53c56e125fc50fec8ed854e0f86ab9a19b3cb7d3378d7c5c09fd934Set Keeper200205762022-09-19 3:43:0368 days 23 hrs ago0x7601630ec802952ba1ed2b6e4db16f699a0a5a87 IN 0xa473af97a94ef005ca722416724e6cd5dbd2fc970 AVAX0.000784862 26
0xaa6554f93e281722b4ebdb45710131d362311e765df379ed772e3092b8490766Set Strategist200205452022-09-19 3:41:4968 days 23 hrs ago0x26e03e44ba4f2eed46c8284c377c37bd46eb5e22 IN 0xa473af97a94ef005ca722416724e6cd5dbd2fc970 AVAX0.000706325
0x0d402a99a17f1b544aef9138a755e535de4cc30ba80d7193ec7d5890cce4869eSet Debt Thresho...197917942022-09-12 9:12:2375 days 17 hrs ago0x26e03e44ba4f2eed46c8284c377c37bd46eb5e22 IN 0xa473af97a94ef005ca722416724e6cd5dbd2fc970 AVAX0.00090857525
0x5cb24b7c434e9ccf97aa92a7d6d7e7fdc042acbf0387d938b851884dd000ec4aSet Collateral T...197917732022-09-12 9:11:3975 days 17 hrs ago0x26e03e44ba4f2eed46c8284c377c37bd46eb5e22 IN 0xa473af97a94ef005ca722416724e6cd5dbd2fc970 AVAX0.00110802525
0xcc78d130132187337e295a87a35a27e81bcc654974ad9e572bfeff450abe8814Set Debt Thresho...197917692022-09-12 9:11:3175 days 17 hrs ago0x26e03e44ba4f2eed46c8284c377c37bd46eb5e22 IN 0xa473af97a94ef005ca722416724e6cd5dbd2fc970 AVAX0.00097857525
0x5d357af60485781e0406327a26aee67c8f6678604a98ea9d3f2dd57bc61d02f1Set Max Report D...197917212022-09-12 9:09:3175 days 17 hrs ago0x26e03e44ba4f2eed46c8284c377c37bd46eb5e22 IN 0xa473af97a94ef005ca722416724e6cd5dbd2fc970 AVAX0.00074522525
0xd43d90efa447aba9e78b9f0ef0a8f2f48643425e455380b62307291c273a6581Set Min Report D...197917172022-09-12 9:09:2075 days 17 hrs ago0x26e03e44ba4f2eed46c8284c377c37bd46eb5e22 IN 0xa473af97a94ef005ca722416724e6cd5dbd2fc970 AVAX0.000745825
0x263093ca4b42915071fb11805be30633742ed2dd64df595345a2b7a3239bdf13Set Health Check197917132022-09-12 9:09:1275 days 17 hrs ago0x26e03e44ba4f2eed46c8284c377c37bd46eb5e22 IN 0xa473af97a94ef005ca722416724e6cd5dbd2fc970 AVAX0.00144397525
0x9a2420c8da47af4474f3a72a126c04a2c75b858461e6cdf3f59cc722cb85daaaSet Insurance197917112022-09-12 9:09:0175 days 17 hrs ago0x26e03e44ba4f2eed46c8284c377c37bd46eb5e22 IN 0xa473af97a94ef005ca722416724e6cd5dbd2fc970 AVAX0.001156625
0xb5b24b2d290770304634c868dd3fa02dc6950e360a693e8bbf1a4d6e3b71f8e80x60806040197904982022-09-12 8:17:1675 days 18 hrs ago0x26e03e44ba4f2eed46c8284c377c37bd46eb5e22 IN  Create: BTCbAVAXBQIVTX0 AVAX0.17162307525
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x3c7e4b827b0e73ce953a46a37c0ef096086037ae413ed89f10f6194bc001061b228623962022-11-26 10:46:2716 hrs 17 mins ago Benqi Finance: Comptroller0xa473af97a94ef005ca722416724e6cd5dbd2fc970.000377994147665129 AVAX
0x3c7e4b827b0e73ce953a46a37c0ef096086037ae413ed89f10f6194bc001061b228623962022-11-26 10:46:2716 hrs 17 mins ago Benqi Finance: Comptroller0xa473af97a94ef005ca722416724e6cd5dbd2fc970.000054503221900459 AVAX
0x8b1022bb43da3195cbac404b28900fa821ee3c5795eb6e6ab251b85892a1755d228385212022-11-25 20:47:561 day 6 hrs ago Benqi Finance: Comptroller0xa473af97a94ef005ca722416724e6cd5dbd2fc970.000217845205586748 AVAX
0x8b1022bb43da3195cbac404b28900fa821ee3c5795eb6e6ab251b85892a1755d228385212022-11-25 20:47:561 day 6 hrs ago Benqi Finance: Comptroller0xa473af97a94ef005ca722416724e6cd5dbd2fc970.000031257328552484 AVAX
0xafba31ea5c2fffb1cc9644175f7c2e226f393534ef9c8a68f5f2824a8f216edd228245092022-11-25 12:47:481 day 14 hrs ago Benqi Finance: Comptroller0xa473af97a94ef005ca722416724e6cd5dbd2fc970.000221789831314151 AVAX
0xafba31ea5c2fffb1cc9644175f7c2e226f393534ef9c8a68f5f2824a8f216edd228245092022-11-25 12:47:481 day 14 hrs ago Benqi Finance: Comptroller0xa473af97a94ef005ca722416724e6cd5dbd2fc970.000031207383809435 AVAX
0x33aef1e66b4c56d4ab498616ceb9e3f0e55fa3500c981e15bae542f32e222536228105242022-11-25 4:47:351 day 22 hrs ago Benqi Finance: Comptroller0xa473af97a94ef005ca722416724e6cd5dbd2fc970.00022200907337784 AVAX
0x33aef1e66b4c56d4ab498616ceb9e3f0e55fa3500c981e15bae542f32e222536228105242022-11-25 4:47:351 day 22 hrs ago Benqi Finance: Comptroller0xa473af97a94ef005ca722416724e6cd5dbd2fc970.000031157862865889 AVAX
0x025ef8ab728985e4be5e321533b8d40844caac3ab1aaab9bf3a1ea1cbbd6798a227967772022-11-24 20:47:162 days 6 hrs ago Benqi Finance: Comptroller0xa473af97a94ef005ca722416724e6cd5dbd2fc970.000222307315813286 AVAX
0x025ef8ab728985e4be5e321533b8d40844caac3ab1aaab9bf3a1ea1cbbd6798a227967772022-11-24 20:47:162 days 6 hrs ago Benqi Finance: Comptroller0xa473af97a94ef005ca722416724e6cd5dbd2fc970.000031213143245337 AVAX
0x0c09c9396c3ca0ec1a31aed70603ff2a333f2f6b18fb7aa753ba9bb4b24ce890227826702022-11-24 12:47:062 days 14 hrs ago Benqi Finance: Comptroller0xa473af97a94ef005ca722416724e6cd5dbd2fc970.000223656162520489 AVAX
0x0c09c9396c3ca0ec1a31aed70603ff2a333f2f6b18fb7aa753ba9bb4b24ce890227826702022-11-24 12:47:062 days 14 hrs ago Benqi Finance: Comptroller0xa473af97a94ef005ca722416724e6cd5dbd2fc970.000031050773456976 AVAX
0xcac8fe3dcd363d7d45d49305ba5efb4af4b7c24ac59687a9609fb472f509cf1e227687752022-11-24 4:46:402 days 22 hrs ago Benqi Finance: Comptroller0xa473af97a94ef005ca722416724e6cd5dbd2fc970.000131407632153821 AVAX
0xcac8fe3dcd363d7d45d49305ba5efb4af4b7c24ac59687a9609fb472f509cf1e227687752022-11-24 4:46:402 days 22 hrs ago Benqi Finance: Comptroller0xa473af97a94ef005ca722416724e6cd5dbd2fc970.000126613080785057 AVAX
0xa1a79f58ac6433330166cb59743d37bcbcf3ee0bce5f11a9318d5568e0eed14c227606452022-11-24 0:07:553 days 2 hrs ago 0xa473af97a94ef005ca722416724e6cd5dbd2fc97 Wrapped AVAX3.560241675944174863 AVAX
0xa1a79f58ac6433330166cb59743d37bcbcf3ee0bce5f11a9318d5568e0eed14c227606452022-11-24 0:07:553 days 2 hrs ago Benqi Finance: qiAVAX Token0xa473af97a94ef005ca722416724e6cd5dbd2fc973.55972594978509171 AVAX
0xa1a79f58ac6433330166cb59743d37bcbcf3ee0bce5f11a9318d5568e0eed14c227606452022-11-24 0:07:553 days 2 hrs ago 0xa473af97a94ef005ca722416724e6cd5dbd2fc97 Benqi Finance: qiAVAX Token0.036439658358918543 AVAX
0xa1a79f58ac6433330166cb59743d37bcbcf3ee0bce5f11a9318d5568e0eed14c227606452022-11-24 0:07:553 days 2 hrs ago Wrapped AVAX0xa473af97a94ef005ca722416724e6cd5dbd2fc970.036439658358918543 AVAX
0xa1a79f58ac6433330166cb59743d37bcbcf3ee0bce5f11a9318d5568e0eed14c227606452022-11-24 0:07:553 days 2 hrs ago 0xa473af97a94ef005ca722416724e6cd5dbd2fc97 Benqi Finance: qiAVAX Token3.603687958614708759 AVAX
0xa1a79f58ac6433330166cb59743d37bcbcf3ee0bce5f11a9318d5568e0eed14c227606452022-11-24 0:07:553 days 2 hrs ago Wrapped AVAX0xa473af97a94ef005ca722416724e6cd5dbd2fc973.603687958614708759 AVAX
0xb00b0d04fc335223fd3c0509b2a507d97a072ad95897ad83005258d4ab94ce01227547562022-11-23 20:46:313 days 6 hrs ago Benqi Finance: Comptroller0xa473af97a94ef005ca722416724e6cd5dbd2fc970.000226200653263069 AVAX
0xb00b0d04fc335223fd3c0509b2a507d97a072ad95897ad83005258d4ab94ce01227547562022-11-23 20:46:313 days 6 hrs ago Benqi Finance: Comptroller0xa473af97a94ef005ca722416724e6cd5dbd2fc970.000032137342630716 AVAX
0xeefa5574694741be15f2540819c41f022e777d9ff3f27c609b1220242df36f26227405852022-11-23 12:46:083 days 14 hrs ago Benqi Finance: Comptroller0xa473af97a94ef005ca722416724e6cd5dbd2fc970.000257388163189368 AVAX
0xeefa5574694741be15f2540819c41f022e777d9ff3f27c609b1220242df36f26227405852022-11-23 12:46:083 days 14 hrs ago 0xa473af97a94ef005ca722416724e6cd5dbd2fc97 Wrapped AVAX3.650752415841045065 AVAX
0xeefa5574694741be15f2540819c41f022e777d9ff3f27c609b1220242df36f26227405852022-11-23 12:46:083 days 14 hrs ago Benqi Finance: qiAVAX Token0xa473af97a94ef005ca722416724e6cd5dbd2fc973.650238629318619687 AVAX
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BTCbAVAXBQIVTX

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 snowtrace.io on 2022-09-12
*/

pragma experimental ABIEncoderV2;

// File: Address.sol

/**
 * @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) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @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: IERC20.sol

/**
 * @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: IWavax.sol

interface IWavax {
    function deposit() external payable;

    function withdraw(uint256 wad) external;

    function approve(address guy, uint256 wad) external returns (bool);
}

// File: Math.sol

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

// File: QIComptroller.sol

/// @notice Got the methods from https://github.com/Benqi-fi/BENQI-Smart-Contracts/blob/master/Comptroller.sol
interface QIComptroller {
    function claimReward(uint8 rewardType, address payable holder) external;

    function enterMarkets(address[] memory qiTokens)
        external
        returns (uint256[] memory);
}

// File: SafeMath.sol

/**
 * @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: comppriceoracle.sol

interface ICompPriceOracle {
    function isPriceOracle() external view returns (bool);

    /**
     * @notice Get the underlying price of a cToken asset
     * @param cToken The cToken to get the underlying price of
     * @return The underlying asset price mantissa (scaled by 1e18).
     *  Zero means the price is unavailable.
     */
    function getUnderlyingPrice(address cToken) external view returns (uint256);
}

// File: comptroller.sol

interface IComptroller {
    /*** Assets You Are In ***/

    function enterMarkets(address[] calldata cTokens)
        external
        returns (uint256[] memory);

    function exitMarket(address cToken) external returns (uint256);

    /*** Policy Hooks ***/

    function mintAllowed(
        address cToken,
        address minter,
        uint256 mintAmount
    ) external returns (uint256);

    function mintVerify(
        address cToken,
        address minter,
        uint256 mintAmount,
        uint256 mintTokens
    ) external;

    function redeemAllowed(
        address cToken,
        address redeemer,
        uint256 redeemTokens
    ) external returns (uint256);

    function redeemVerify(
        address cToken,
        address redeemer,
        uint256 redeemAmount,
        uint256 redeemTokens
    ) external;

    function borrowAllowed(
        address cToken,
        address borrower,
        uint256 borrowAmount
    ) external returns (uint256);

    function borrowVerify(
        address cToken,
        address borrower,
        uint256 borrowAmount
    ) external;

    function repayBorrowAllowed(
        address cToken,
        address payer,
        address borrower,
        uint256 repayAmount
    ) external returns (uint256);

    function repayBorrowVerify(
        address cToken,
        address payer,
        address borrower,
        uint256 repayAmount,
        uint256 borrowerIndex
    ) external;

    function liquidateBorrowAllowed(
        address cTokenBorrowed,
        address cTokenCollateral,
        address liquidator,
        address borrower,
        uint256 repayAmount
    ) external returns (uint256);

    function liquidateBorrowVerify(
        address cTokenBorrowed,
        address cTokenCollateral,
        address liquidator,
        address borrower,
        uint256 repayAmount,
        uint256 seizeTokens
    ) external;

    function seizeAllowed(
        address cTokenCollateral,
        address cTokenBorrowed,
        address liquidator,
        address borrower,
        uint256 seizeTokens
    ) external returns (uint256);

    function seizeVerify(
        address cTokenCollateral,
        address cTokenBorrowed,
        address liquidator,
        address borrower,
        uint256 seizeTokens
    ) external;

    function transferAllowed(
        address cToken,
        address src,
        address dst,
        uint256 transferTokens
    ) external returns (uint256);

    function transferVerify(
        address cToken,
        address src,
        address dst,
        uint256 transferTokens
    ) external;

    function claimComp(address holder) external;

    /*** Liquidity/Liquidation Calculations ***/

    function liquidateCalculateSeizeTokens(
        address cTokenBorrowed,
        address cTokenCollateral,
        uint256 repayAmount
    ) external view returns (uint256, uint256);
}

interface UnitrollerAdminStorage {
    /**
     * @notice Administrator for this contract
     */
    // address external admin;
    function admin() external view returns (address);

    /**
     * @notice Pending administrator for this contract
     */
    // address external pendingAdmin;
    function pendingAdmin() external view returns (address);

    /**
     * @notice Active brains of Unitroller
     */
    // address external comptrollerImplementation;
    function comptrollerImplementation() external view returns (address);

    /**
     * @notice Pending brains of Unitroller
     */
    // address external pendingComptrollerImplementation;
    function pendingComptrollerImplementation() external view returns (address);
}

interface ComptrollerV1Storage is UnitrollerAdminStorage {
    /**
     * @notice Oracle which gives the price of any given asset
     */
    // PriceOracle external oracle;
    function oracle() external view returns (address);

    /**
     * @notice Multiplier used to calculate the maximum repayAmount when liquidating a borrow
     */
    // uint external closeFactorMantissa;
    function closeFactorMantissa() external view returns (uint256);

    /**
     * @notice Multiplier representing the discount on collateral that a liquidator receives
     */
    // uint external liquidationIncentiveMantissa;
    function liquidationIncentiveMantissa() external view returns (uint256);

    /**
     * @notice Max number of assets a single account can participate in (borrow or use as collateral)
     */
    // uint external maxAssets;
    function maxAssets() external view returns (uint256);

    /**
     * @notice Per-account mapping of "assets you are in", capped by maxAssets
     */
    // mapping(address => CToken[]) external accountAssets;
    // function accountAssets(address) external view returns (CToken[]);
}

interface ComptrollerV2Storage is ComptrollerV1Storage {
    enum Version {VANILLA, COLLATERALCAP, WRAPPEDNATIVE}

    struct Market {
        bool isListed;
        uint256 collateralFactorMantissa;
        mapping(address => bool) accountMembership;
        bool isComped;
        Version version;
    }

    /**
     * @notice Official mapping of cTokens -> Market metadata
     * @dev Used e.g. to determine if a market is supported
     */
    // mapping(address => Market) external markets;
    // function markets(address) external view returns (Market);

    /**
     * @notice The Pause Guardian can pause certain actions as a safety mechanism.
     *  Actions which allow users to remove their own assets cannot be paused.
     *  Liquidation / seizing / transfer can only be paused globally, not by market.
     */
    // address external pauseGuardian;
    // bool external _mintGuardianPaused;
    // bool external _borrowGuardianPaused;
    // bool external transferGuardianPaused;
    // bool external seizeGuardianPaused;
    // mapping(address => bool) external mintGuardianPaused;
    // mapping(address => bool) external borrowGuardianPaused;
}

interface ComptrollerV3Storage is ComptrollerV2Storage {
    // struct CompMarketState {
    //     /// @notice The market's last updated compBorrowIndex or compSupplyIndex
    //     uint224 index;
    //     /// @notice The block number the index was last updated at
    //     uint32 block;
    // }
    // /// @notice A list of all markets
    // CToken[] external allMarkets;
    // /// @notice The rate at which the flywheel distributes COMP, per block
    // uint external compRate;
    // /// @notice The portion of compRate that each market currently receives
    // mapping(address => uint) external compSpeeds;
    // /// @notice The COMP market supply state for each market
    // mapping(address => CompMarketState) external compSupplyState;
    // /// @notice The COMP market borrow state for each market
    // mapping(address => CompMarketState) external compBorrowState;
    // /// @notice The COMP borrow index for each market for each supplier as of the last time they accrued COMP
    // mapping(address => mapping(address => uint)) external compSupplierIndex;
    // /// @notice The COMP borrow index for each market for each borrower as of the last time they accrued COMP
    // mapping(address => mapping(address => uint)) external compBorrowerIndex;
    // /// @notice The COMP accrued but not yet transferred to each user
    // mapping(address => uint) external compAccrued;
}

interface ComptrollerV4Storage is ComptrollerV3Storage {
    // @notice The borrowCapGuardian can set borrowCaps to any number for any market. Lowering the borrow cap could disable borrowing on the given market.
    // address external borrowCapGuardian;
    function borrowCapGuardian() external view returns (address);

    // @notice Borrow caps enforced by borrowAllowed for each cToken address. Defaults to zero which corresponds to unlimited borrowing.
    // mapping(address => uint) external borrowCaps;
    function borrowCaps(address) external view returns (uint256);
}

interface ComptrollerV5Storage is ComptrollerV4Storage {
    // @notice The supplyCapGuardian can set supplyCaps to any number for any market. Lowering the supply cap could disable supplying to the given market.
    // address external supplyCapGuardian;
    function supplyCapGuardian() external view returns (address);

    // @notice Supply caps enforced by mintAllowed for each cToken address. Defaults to zero which corresponds to unlimited supplying.
    // mapping(address => uint) external supplyCaps;
    function supplyCaps(address) external view returns (uint256);

    function _setPriceOracle(address newOracle) external returns (uint);
    function getAllMarkets() external view returns (address[] calldata cTokens);
}

// File: farm.sol

struct UserInfo {
    uint256 amount; // How many LP tokens the user has provided.
    uint256 rewardDebt; // Reward debt.
}

interface IFarmMasterChef {
    function deposit(uint256 _pid, uint256 _amount) external;

    function withdraw(uint256 _pid, uint256 _amount) external;

    function harvestFromMasterChef() external;

    function userInfo(uint256 _pid, address user)
        external
        view
        returns (UserInfo calldata);
}

// File: ipriceoracle.sol

interface IPriceOracle {
    function getPrice() external view returns (uint256);
}

// File: uniswap.sol

// Feel free to change the license, but this is what we use

// Feel free to change this version of Solidity. We support >=0.6.0 <0.7.0;

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

    function WETH() external pure returns (address);

    /// added in to support with JOE integrations
    function WAVAX() external pure returns (address);

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

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

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

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

    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETHWithPermit(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountToken, uint256 amountETH);

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

    function swapTokensForExactTokens(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactETHForTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function swapTokensForExactETH(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

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

    function swapETHForExactTokens(
        uint256 amountOut,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function quote(
        uint256 amountA,
        uint256 reserveA,
        uint256 reserveB
    ) external pure returns (uint256 amountB);

    function getAmountOut(
        uint256 amountIn,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountOut);

    function getAmountIn(
        uint256 amountOut,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountIn);

    function getAmountsOut(uint256 amountIn, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);

    function getAmountsIn(uint256 amountOut, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);
}

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountETH);

    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable;

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;
}

interface IUniswapV2Pair {
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );
    event Transfer(address indexed from, address indexed to, uint256 value);

    function name() external pure returns (string memory);

    function symbol() external pure returns (string memory);

    function decimals() external pure returns (uint8);

    function totalSupply() external view returns (uint256);

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

    function allowance(address owner, address spender)
        external
        view
        returns (uint256);

    function approve(address spender, uint256 value) external returns (bool);

    function transfer(address to, uint256 value) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);

    function PERMIT_TYPEHASH() external pure returns (bytes32);

    function nonces(address owner) external view returns (uint256);

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

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

    function MINIMUM_LIQUIDITY() external pure returns (uint256);

    function factory() external view returns (address);

    function token0() external view returns (address);

    function token1() external view returns (address);

    function getReserves()
        external
        view
        returns (
            uint112 reserve0,
            uint112 reserve1,
            uint32 blockTimestampLast
        );

    function price0CumulativeLast() external view returns (uint256);

    function price1CumulativeLast() external view returns (uint256);

    function kLast() external view returns (uint256);

    function mint(address to) external returns (uint256 liquidity);

    function burn(address to)
        external
        returns (uint256 amount0, uint256 amount1);

    function swap(
        uint256 amount0Out,
        uint256 amount1Out,
        address to,
        bytes calldata data
    ) external;

    function skim(address to) external;

    function sync() external;

    function initialize(address, address) external;
}

// File: vector.sol

// Feel free to change the license, but this is what we use

// Feel free to change this version of Solidity. We support >=0.6.0 <0.7.0;

interface IVectorChef {
    function deposit(uint256 amount) external;

    function withdraw(uint256 amount) external;

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

    function getReward() external;
}

interface IBaseRewardPool {
    function earned(address _account, address _token)
        external
        view
        returns (uint256);
}

// File: SafeERC20.sol

/**
 * @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: ctoken.sol

/**
 * @title Compound's InterestRateModel Interface
 * @author Compound
 */
interface InterestRateModel {
    /**
     * @dev Calculates the current borrow interest rate per block
     * @param cash The total amount of cash the market has
     * @param borrows The total amount of borrows the market has outstanding
     * @param reserves The total amnount of reserves the market has
     * @return The borrow rate per block (as a percentage, and scaled by 1e18)
     */
    function getBorrowRate(
        uint256 cash,
        uint256 borrows,
        uint256 reserves
    ) external view returns (uint256);

    /**
     * @dev Calculates the current supply interest rate per block
     * @param cash The total amount of cash the market has
     * @param borrows The total amount of borrows the market has outstanding
     * @param reserves The total amnount of reserves the market has
     * @param reserveFactorMantissa The current reserve factor the market has
     * @return The supply rate per block (as a percentage, and scaled by 1e18)
     */
    function getSupplyRate(
        uint256 cash,
        uint256 borrows,
        uint256 reserves,
        uint256 reserveFactorMantissa
    ) external view returns (uint256);
}

interface ICTokenStorage {
    /**
     * @dev Container for borrow balance information
     * @member principal Total balance (with accrued interest), after applying the most recent balance-changing action
     * @member interestIndex Global borrowIndex as of the most recent balance-changing action
     */
    struct BorrowSnapshot {
        uint256 principal;
        uint256 interestIndex;
    }
}

interface ICToken is ICTokenStorage {
    /*** Market Events ***/

    /**
     * @dev Event emitted when interest is accrued
     */
    event AccrueInterest(
        uint256 cashPrior,
        uint256 interestAccumulated,
        uint256 borrowIndex,
        uint256 totalBorrows
    );

    /**
     * @dev Event emitted when tokens are minted
     */
    event Mint(address minter, uint256 mintAmount, uint256 mintTokens);

    /**
     * @dev Event emitted when tokens are redeemed
     */
    event Redeem(address redeemer, uint256 redeemAmount, uint256 redeemTokens);

    /**
     * @dev Event emitted when underlying is borrowed
     */
    event Borrow(
        address borrower,
        uint256 borrowAmount,
        uint256 accountBorrows,
        uint256 totalBorrows
    );

    /**
     * @dev Event emitted when a borrow is repaid
     */
    event RepayBorrow(
        address payer,
        address borrower,
        uint256 repayAmount,
        uint256 accountBorrows,
        uint256 totalBorrows
    );

    /**
     * @dev Event emitted when a borrow is liquidated
     */
    event LiquidateBorrow(
        address liquidator,
        address borrower,
        uint256 repayAmount,
        address cTokenCollateral,
        uint256 seizeTokens
    );

    /*** Admin Events ***/

    /**
     * @dev Event emitted when pendingAdmin is changed
     */
    event NewPendingAdmin(address oldPendingAdmin, address newPendingAdmin);

    /**
     * @dev Event emitted when pendingAdmin is accepted, which means admin is updated
     */
    event NewAdmin(address oldAdmin, address newAdmin);

    /**
     * @dev Event emitted when comptroller is changed
     */
    event NewComptroller(
        IComptroller oldComptroller,
        IComptroller newComptroller
    );

    /**
     * @dev Event emitted when interestRateModel is changed
     */
    event NewMarketInterestRateModel(
        InterestRateModel oldInterestRateModel,
        InterestRateModel newInterestRateModel
    );

    /**
     * @dev Event emitted when the reserve factor is changed
     */
    event NewReserveFactor(
        uint256 oldReserveFactorMantissa,
        uint256 newReserveFactorMantissa
    );

    /**
     * @dev Event emitted when the reserves are added
     */
    event ReservesAdded(
        address benefactor,
        uint256 addAmount,
        uint256 newTotalReserves
    );

    /**
     * @dev Event emitted when the reserves are reduced
     */
    event ReservesReduced(
        address admin,
        uint256 reduceAmount,
        uint256 newTotalReserves
    );

    /**
     * @dev EIP20 Transfer event
     */
    event Transfer(address indexed from, address indexed to, uint256 amount);

    /**
     * @dev EIP20 Approval event
     */
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 amount
    );

    /**
     * @dev Failure event
     */
    event Failure(uint256 error, uint256 info, uint256 detail);

    /*** User Interface ***/
    function totalBorrows() external view returns (uint256);

    function totalReserves() external view returns (uint256);

    function totalSupply() external view returns (uint256);

    function transfer(address dst, uint256 amount) external returns (bool);

    function transferFrom(
        address src,
        address dst,
        uint256 amount
    ) external returns (bool);

    function approve(address spender, uint256 amount) external returns (bool);

    function allowance(address owner, address spender)
        external
        view
        returns (uint256);

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

    function balanceOfUnderlying(address owner) external returns (uint256);

    function getAccountSnapshot(address account)
        external
        view
        returns (
            uint256,
            uint256,
            uint256,
            uint256
        );

    function borrowRatePerBlock() external view returns (uint256);

    function supplyRatePerBlock() external view returns (uint256);

    function totalBorrowsCurrent() external returns (uint256);

    function borrowBalanceCurrent(address account) external returns (uint256);

    function borrowBalanceStored(address account)
        external
        view
        returns (uint256);

    function exchangeRateCurrent() external returns (uint256);

    function exchangeRateStored() external view returns (uint256);

    function getCash() external view returns (uint256);

    function accrueInterest() external returns (uint256);

    function seize(
        address liquidator,
        address borrower,
        uint256 seizeTokens
    ) external returns (uint256);

    /*** CCap Interface ***/

    function totalCollateralTokens() external view returns (uint256);

    function accountCollateralTokens(address account)
        external
        view
        returns (uint256);

    function isCollateralTokenInit(address account)
        external
        view
        returns (bool);

    function collateralCap() external view returns (uint256);

    /*** Admin Functions ***/

    function _setPendingAdmin(address payable newPendingAdmin)
        external
        returns (uint256);

    function _acceptAdmin() external returns (uint256);

    function _setComptroller(IComptroller newComptroller)
        external
        returns (uint256);

    function _setReserveFactor(uint256 newReserveFactorMantissa)
        external
        returns (uint256);

    function _reduceReserves(uint256 reduceAmount) external returns (uint256);

    function _setInterestRateModel(InterestRateModel newInterestRateModel)
        external
        returns (uint256);
}

interface ICTokenErc20 is ICToken {
    /*** User Interface ***/

    function mint(uint256 mintAmount) external returns (uint256);

    function redeem(uint256 redeemTokens) external returns (uint256);

    function redeemUnderlying(uint256 redeemAmount) external returns (uint256);

    function borrow(uint256 borrowAmount) external returns (uint256);

    function repayBorrow(uint256 repayAmount) external returns (uint256);

    function liquidateBorrow(
        address borrower,
        uint256 repayAmount,
        ICToken cTokenCollateral
    ) external returns (uint256);

    /*** Admin Functions ***/

    function _addReserves(uint256 addAmount) external returns (uint256);
}

interface ICCapableErc20 {
    /*** User Interface ***/

    function mint(uint256 mintAmount) external returns (uint256);

    function redeem(uint256 redeemTokens) external returns (uint256);

    function redeemUnderlying(uint256 redeemAmount) external returns (uint256);

    function borrow(uint256 borrowAmount) external returns (uint256);

    function repayBorrow(uint256 repayAmount) external returns (uint256);

    function liquidateBorrow(
        address borrower,
        uint256 repayAmount,
        ICToken cTokenCollateral
    ) external returns (uint256);

    function gulp() external;

    /*** Admin Functions ***/

    function _addReserves(uint256 addAmount) external returns (uint256);
}

interface CCollateralCapStorage {
    /**
     * @notice Total number of tokens used as collateral in circulation.
     */
    // uint256 public totalCollateralTokens;
    function totalCollateralTokens() external view returns (uint256);

    /**
     * @notice Record of token balances which could be treated as collateral for each account.
     *         If collateral cap is not set, the value should be equal to accountTokens.
     */
    // mapping(address => uint256) public accountCollateralTokens;
    function accountCollateralTokens(address account)
        external
        view
        returns (uint256);

    /**
     * @notice Check if accountCollateralTokens have been initialized.
     */
    // mapping(address => bool) public isCollateralTokenInit;
    function isCollateralTokenInit(address account)
        external
        view
        returns (bool);

    /**
     * @notice Collateral cap for this CToken, zero for no cap.
     */
    // uint256 public collateralCap;
    function collateralCap() external view returns (uint256);
}

interface ICAvax is ICToken {
    function mint() external payable;

    function redeem(uint256 redeemTokens) external returns (uint256);

    function redeemUnderlying(uint256 redeemAmount) external returns (uint256);

    function borrow(uint256 borrowAmount) external returns (uint256);

    function repayBorrow() external payable;

    function repayBorrowBehalf(address borrower) external payable;
}

// File: screampriceoracle.sol

contract ScreamPriceOracle is IPriceOracle {
    using SafeMath for uint256;

    address cTokenQuote;
    address cTokenBase;
    ComptrollerV5Storage comptroller;

    constructor(
        address _comptroller,
        address _cTokenQuote,
        address _cTokenBase
    ) public {
        cTokenQuote = _cTokenQuote;
        cTokenBase = _cTokenBase;
        comptroller = ComptrollerV5Storage(_comptroller);
    }

    function getPrice() external view override returns (uint256) {
        ICompPriceOracle oracle = ICompPriceOracle(comptroller.oracle());

        // If price returns 0, the price is not available
        uint256 quotePrice = oracle.getUnderlyingPrice(cTokenQuote);
        require(quotePrice != 0);

        uint256 basePrice = oracle.getUnderlyingPrice(cTokenBase);
        require(basePrice != 0);

        return basePrice.mul(1e18).div(quotePrice);
    }
}


// File: BaseStrategyRedux.sol

struct StrategyParams {
    uint256 performanceFee;
    uint256 activation;
    uint256 debtRatio;
    uint256 minDebtPerHarvest;
    uint256 maxDebtPerHarvest;
    uint256 lastReport;
    uint256 totalDebt;
    uint256 totalGain;
    uint256 totalLoss;
}

interface VaultAPI is IERC20 {
    function name() external view returns (string calldata);

    function symbol() external view returns (string calldata);

    function decimals() external view returns (uint256);

    function apiVersion() external pure returns (string memory);

    function permit(
        address owner,
        address spender,
        uint256 amount,
        uint256 expiry,
        bytes calldata signature
    ) external returns (bool);

    function deposit() external returns (uint256);

    function deposit(uint256 amount) external returns (uint256);

    function deposit(uint256 amount, address recipient)
        external
        returns (uint256);

    function withdraw() external returns (uint256);

    function withdraw(uint256 maxShares) external returns (uint256);

    function withdraw(uint256 maxShares, address recipient)
        external
        returns (uint256);

    function token() external view returns (address);

    function strategies(address _strategy)
        external
        view
        returns (StrategyParams memory);

    function pricePerShare() external view returns (uint256);

    function totalAssets() external view returns (uint256);

    function depositLimit() external view returns (uint256);

    function maxAvailableShares() external view returns (uint256);

    function creditAvailable() external view returns (uint256);

    function debtOutstanding() external view returns (uint256);

    function expectedReturn() external view returns (uint256);

    function report(
        uint256 _gain,
        uint256 _loss,
        uint256 _debtPayment
    ) external returns (uint256);

    function revokeStrategy() external;

    function governance() external view returns (address);

    function management() external view returns (address);

    function guardian() external view returns (address);
}

interface StrategyAPI {
    function name() external view returns (string memory);

    function vault() external view returns (address);

    function want() external view returns (address);

    function apiVersion() external pure returns (string memory);

    function keeper() external view returns (address);

    function isActive() external view returns (bool);

    function delegatedAssets() external view returns (uint256);

    function estimatedTotalAssets() external view returns (uint256);

    function tendTrigger(uint256 callCost) external view returns (bool);

    function tend() external;

    function harvestTrigger(uint256 callCost) external view returns (bool);

    function harvest() external;

    event Harvested(
        uint256 profit,
        uint256 loss,
        uint256 debtPayment,
        uint256 debtOutstanding
    );
}

interface HealthCheck {
    function check(
        uint256 profit,
        uint256 loss,
        uint256 debtPayment,
        uint256 debtOutstanding,
        uint256 totalDebt
    ) external view returns (bool);
}

/**
 * @title BaseStrategyRedux
 * @author HeroBorg
 * @notice
 * This is an exact copy of BaseStrategy 0.4.3 from yearn, but i removed `ethToWant()` because we always override it and make it return 0
 * Also, I've removed some require error messages
 * This is a solution until we completely revamp the corestrat
 */

abstract contract BaseStrategyRedux {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;
    string public metadataURI;

    bool public doHealthCheck;
    address public healthCheck;

    function apiVersion() public pure returns (string memory) {
        return "0.4.3";
    }

    function name() external view virtual returns (string memory);

    function delegatedAssets() external view virtual returns (uint256) {
        return 0;
    }

    VaultAPI public vault;
    address public strategist;
    address public rewards;
    address public keeper;

    IERC20 public want;

    event Harvested(
        uint256 profit,
        uint256 loss,
        uint256 debtPayment,
        uint256 debtOutstanding
    );

    event UpdatedStrategist(address newStrategist);

    event UpdatedKeeper(address newKeeper);

    event UpdatedRewards(address rewards);

    event UpdatedMinReportDelay(uint256 delay);

    event UpdatedMaxReportDelay(uint256 delay);

    event UpdatedProfitFactor(uint256 profitFactor);

    event UpdatedDebtThreshold(uint256 debtThreshold);

    event EmergencyExitEnabled();

    event UpdatedMetadataURI(string metadataURI);

    uint256 public minReportDelay;

    uint256 public maxReportDelay;

    uint256 public profitFactor;

    uint256 public debtThreshold;

    bool public emergencyExit;

    modifier onlyAuthorized() {
        require(msg.sender == strategist || msg.sender == governance());
        _;
    }

    modifier onlyEmergencyAuthorized() {
        require(
            msg.sender == strategist ||
                msg.sender == governance() ||
                msg.sender == vault.guardian() ||
                msg.sender == vault.management()
        );
        _;
    }

    modifier onlyStrategist() {
        require(msg.sender == strategist);
        _;
    }

    modifier onlyGovernance() {
        require(msg.sender == governance());
        _;
    }

    modifier onlyKeepers() {
        require(
            msg.sender == keeper ||
                msg.sender == strategist ||
                msg.sender == governance() ||
                msg.sender == vault.guardian() ||
                msg.sender == vault.management()
        );
        _;
    }

    modifier onlyVaultManagers() {
        require(msg.sender == vault.management() || msg.sender == governance());
        _;
    }

    constructor(address _vault) public {
        _initialize(_vault, msg.sender, msg.sender, msg.sender);
    }

    function _initialize(
        address _vault,
        address _strategist,
        address _rewards,
        address _keeper
    ) internal {
        //Already initialized
        require(address(want) == address(0));

        vault = VaultAPI(_vault);
        want = IERC20(vault.token());
        want.safeApprove(_vault, uint256(-1));
        strategist = _strategist;
        rewards = _rewards;
        keeper = _keeper;

        minReportDelay = 0;
        maxReportDelay = 86400;
        profitFactor = 100;
        debtThreshold = 0;

        vault.approve(rewards, uint256(-1));
    }

    function setHealthCheck(address _healthCheck) external onlyVaultManagers {
        healthCheck = _healthCheck;
    }

    function setDoHealthCheck(bool _doHealthCheck) external onlyVaultManagers {
        doHealthCheck = _doHealthCheck;
    }

    function setStrategist(address _strategist) external onlyAuthorized {
        require(_strategist != address(0));
        strategist = _strategist;
        emit UpdatedStrategist(_strategist);
    }

    function setKeeper(address _keeper) external onlyAuthorized {
        require(_keeper != address(0));
        keeper = _keeper;
        emit UpdatedKeeper(_keeper);
    }

    function setRewards(address _rewards) external onlyStrategist {
        require(_rewards != address(0));
        vault.approve(rewards, 0);
        rewards = _rewards;
        vault.approve(rewards, uint256(-1));
        emit UpdatedRewards(_rewards);
    }

    function setMinReportDelay(uint256 _delay) external onlyAuthorized {
        minReportDelay = _delay;
        emit UpdatedMinReportDelay(_delay);
    }

    function setMaxReportDelay(uint256 _delay) external onlyAuthorized {
        maxReportDelay = _delay;
        emit UpdatedMaxReportDelay(_delay);
    }

    function setProfitFactor(uint256 _profitFactor) external onlyAuthorized {
        profitFactor = _profitFactor;
        emit UpdatedProfitFactor(_profitFactor);
    }

    function setDebtThreshold(uint256 _debtThreshold) external onlyAuthorized {
        debtThreshold = _debtThreshold;
        emit UpdatedDebtThreshold(_debtThreshold);
    }

    function setMetadataURI(string calldata _metadataURI)
        external
        onlyAuthorized
    {
        metadataURI = _metadataURI;
        emit UpdatedMetadataURI(_metadataURI);
    }

    function governance() internal view returns (address) {
        return vault.governance();
    }

    // Removing ethToWant() because we always override it and put it to 0
    //function ethToWant(uint256 _amtInWei) public view virtual returns (uint256);

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

    function isActive() public view returns (bool) {
        return
            vault.strategies(address(this)).debtRatio > 0 ||
            estimatedTotalAssets() > 0;
    }

    function prepareReturn(uint256 _debtOutstanding)
        internal
        virtual
        returns (
            uint256 _profit,
            uint256 _loss,
            uint256 _debtPayment
        );

    function adjustPosition(uint256 _debtOutstanding) internal virtual;

    function liquidatePosition(uint256 _amountNeeded)
        internal
        virtual
        returns (uint256 _liquidatedAmount, uint256 _loss);

    function liquidateAllPositions()
        internal
        virtual
        returns (uint256 _amountFreed);

    function tendTrigger(uint256 callCostInWei)
        public
        view
        virtual
        returns (bool)
    {
        return false;
    }

    function tend() external onlyKeepers {
        adjustPosition(vault.debtOutstanding());
    }

    /// @notice the only change is that we set callCost to 0. The behaviour is exactly the same as before, since ethToWant always returned 0
    function harvestTrigger(uint256 callCostInWei)
        public
        view
        virtual
        returns (bool)
    {
        //OLD VERSION
        //uint256 callCost = ethToWant(callCostInWei);
        //NEW VERSION
        uint256 callCost = 0;
        StrategyParams memory params = vault.strategies(address(this));

        if (params.activation == 0) return false;

        if (block.timestamp.sub(params.lastReport) < minReportDelay)
            return false;

        if (block.timestamp.sub(params.lastReport) >= maxReportDelay)
            return true;

        uint256 outstanding = vault.debtOutstanding();
        if (outstanding > debtThreshold) return true;

        uint256 total = estimatedTotalAssets();

        if (total.add(debtThreshold) < params.totalDebt) return true;

        uint256 profit = 0;
        if (total > params.totalDebt) profit = total.sub(params.totalDebt);

        uint256 credit = vault.creditAvailable();
        return (profitFactor.mul(callCost) < credit.add(profit));
    }

    function harvest() external onlyKeepers {
        uint256 profit = 0;
        uint256 loss = 0;
        uint256 debtOutstanding = vault.debtOutstanding();
        uint256 debtPayment = 0;
        if (emergencyExit) {
            uint256 amountFreed = liquidateAllPositions();
            if (amountFreed < debtOutstanding) {
                loss = debtOutstanding.sub(amountFreed);
            } else if (amountFreed > debtOutstanding) {
                profit = amountFreed.sub(debtOutstanding);
            }
            debtPayment = debtOutstanding.sub(loss);
        } else {
            (profit, loss, debtPayment) = prepareReturn(debtOutstanding);
        }

        uint256 totalDebt = vault.strategies(address(this)).totalDebt;
        debtOutstanding = vault.report(profit, loss, debtPayment);

        adjustPosition(debtOutstanding);

        if (doHealthCheck && healthCheck != address(0)) {
            require(
                HealthCheck(healthCheck).check(
                    profit,
                    loss,
                    debtPayment,
                    debtOutstanding,
                    totalDebt
                ),
                "!h"
            );
        } else {
            doHealthCheck = true;
        }

        emit Harvested(profit, loss, debtPayment, debtOutstanding);
    }

    function withdraw(uint256 _amountNeeded) external returns (uint256 _loss) {
        require(msg.sender == address(vault));
        uint256 amountFreed;
        (amountFreed, _loss) = liquidatePosition(_amountNeeded);
        want.safeTransfer(msg.sender, amountFreed);
    }

    function prepareMigration(address _newStrategy) internal virtual;

    function migrate(address _newStrategy) external {
        require(msg.sender == address(vault));
        require(BaseStrategyRedux(_newStrategy).vault() == vault);
        prepareMigration(_newStrategy);
        want.safeTransfer(_newStrategy, want.balanceOf(address(this)));
    }

    function setEmergencyExit() external onlyEmergencyAuthorized {
        emergencyExit = true;
        vault.revokeStrategy();

        emit EmergencyExitEnabled();
    }

    function protectedTokens() internal view virtual returns (address[] memory);

    function sweep(address _token) external onlyGovernance {
        require(_token != address(want));
        require(_token != address(vault));

        address[] memory _protectedTokens = protectedTokens();
        for (uint256 i; i < _protectedTokens.length; i++)
            require(_token != _protectedTokens[i]);

        IERC20(_token).safeTransfer(
            governance(),
            IERC20(_token).balanceOf(address(this))
        );
    }
}

// NOTE: we do not use it, if you need it, just use the one from yearn
// abstract contract BaseStrategyInitializable is BaseStrategy {
//     bool public isOriginal = true;
//     event Cloned(address indexed clone);

//     constructor(address _vault) public BaseStrategy(_vault) {}

//     function initialize(
//         address _vault,
//         address _strategist,
//         address _rewards,
//         address _keeper
//     ) external virtual {
//         _initialize(_vault, _strategist, _rewards, _keeper);
//     }

//     function clone(address _vault) external returns (address) {
//         require(isOriginal, "!clone");
//         return this.clone(_vault, msg.sender, msg.sender, msg.sender);
//     }

//     function clone(
//         address _vault,
//         address _strategist,
//         address _rewards,
//         address _keeper
//     ) external returns (address newStrategy) {
//         bytes20 addressBytes = bytes20(address(this));

//         assembly {
//             let clone_code := mload(0x40)
//             mstore(clone_code, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
//             mstore(add(clone_code, 0x14), addressBytes)
//             mstore(add(clone_code, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
//             newStrategy := create(0, clone_code, 0x37)
//         }

//         BaseStrategyInitializable(newStrategy).initialize(_vault, _strategist, _rewards, _keeper);

//         emit Cloned(newStrategy);
//     }
// }

// File: StrategyInsurance.sol

// Feel free to change the license, but this is what we use


interface StrategyAPIExt is StrategyAPI {
    function strategist() external view returns (address);

    function insurance() external view returns (address);
}

interface IStrategyInsurance {
    function reportProfit(uint256 _totalDebt, uint256 _profit)
        external
        returns (uint256 _payment, uint256 _compensation);

    function reportLoss(uint256 _totalDebt, uint256 _loss)
        external
        returns (uint256 _compensation);

    function migrateInsurance(address newInsurance) external;
}

/**
 * @title Strategy Generic Insurrance
 * @author Robovault
 * @notice
 *  StrategyInsurance provides an issurrance fund for strategy losses
 *  A portion of all profits are sent to the insurrance fund untill
 *  it reaches its target insurrance percentage. When a loss is realised
 *  by the strategy the inssurance fund will return the funds to the
 *  strategy to fully compensate or soften the loss.
 */
contract StrategyInsurance {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    StrategyAPIExt public strategy;
    IERC20 want;
    uint256 constant BPS_MAX = 10000;
    uint256 public lossSum = 0;

    event InsurancePayment(
        uint256 indexed strategyDebt,
        uint256 indexed harvestProfit,
        uint256 indexed wantPayment
    );
    event InsurancePayout(uint256 indexed wantPayout);

    // Bips - Proportion of totalDebt the inssurance fund is targeting to grow
    uint256 public targetFundSize = 50; // 0.5% default

    // Rate of the profits that go to insurrance while it's below target
    uint256 public profitTakeRate = 1000; // 10% default

    // The maximum compensation rate the insurrance fund will return funds to the strategy
    // proportional to the TotalDebt of the strategy
    uint256 public maximumCompenstionRate = 5; // 5 bips per harvest default

    function _onlyAuthorized() internal {
        require(
            msg.sender == strategy.strategist() || msg.sender == governance()
        );
    }

    function _onlyGovernance() internal {
        require(msg.sender == governance());
    }

    function _onlyStrategy() internal {
        require(msg.sender == address(strategy));
    }

    constructor(address _strategy) public {
        strategy = StrategyAPIExt(_strategy);
        want = IERC20(strategy.want());
    }

    function setTargetFundSize(uint256 _targetFundSize) external {
        _onlyAuthorized();
        require(_targetFundSize < 500); // Must be less than 5%
        targetFundSize = _targetFundSize;
    }

    function setProfitTakeRate(uint256 _profitTakeRate) external {
        _onlyAuthorized();
        require(_profitTakeRate < 4000); // Must be less than 40%
        profitTakeRate = _profitTakeRate;
    }

    function setmaximumCompenstionRate(uint256 _maximumCompenstionRate)
        external
    {
        _onlyAuthorized();
        require(_maximumCompenstionRate < 50); // Must be less than 0.5%
        maximumCompenstionRate = _maximumCompenstionRate;
    }

    /**
     * @notice
     *  Strategy reports profits to the insurrance find and informs the strategy
     *  of how much want is requested for insurrance.
     * @param _totalDebt Debt the strategy has with the vault.
     * @param _profit The profit the strategy is reporting this harvest
     * @return _payment amount requested for insurrance
     * @return _compensation amount paid out in latent insurance
     */
    function reportProfit(uint256 _totalDebt, uint256 _profit)
        external
        returns (uint256 _payment, uint256 _compensation)
    {
        _onlyStrategy();

        // if there has been a loss that is yet to be paid fully compensated, continue
        // to compensate
        if (lossSum > _profit) {
            lossSum = lossSum.sub(_profit);
            _compensation = compensate(_totalDebt);
            return (0, _compensation);
        }

        // no pending losses to pay out
        lossSum = 0;

        // Has the insurrance hit the insurrance target
        uint256 balance = want.balanceOf(address(this));
        uint256 targetBalance = _totalDebt.mul(targetFundSize).div(BPS_MAX);
        if (balance >= targetBalance) {
            return (0, 0);
        }

        _payment = _profit.mul(profitTakeRate).div(BPS_MAX);
        emit InsurancePayment(_totalDebt, _profit, _payment);
    }

    /**
     * @notice
     *  Strategy reports loss. The insurrance fund will decide weather or not to
     *  send want back to the strategy to soften the loss
     * @param _totalDebt Debt the strategy has with the vault.
     * @param _loss The loss realised by the this harvest
     * @return _compensation amount sent back to the strategy.
     */
    function reportLoss(uint256 _totalDebt, uint256 _loss)
        external
        returns (uint256 _compensation)
    {
        _onlyStrategy();

        lossSum = lossSum.add(_loss);
        _compensation = compensate(_totalDebt);
    }

    /**
     * @notice
     *  Processes insurance payouot
     * @param _totalDebt Debt the strategy has with the vault.
     * @return _compensation amount sent back to the strategy.
     */
    function compensate(uint256 _totalDebt)
        internal
        returns (uint256 _compensation)
    {
        uint256 balance = want.balanceOf(address(this));

        // Reserves are empties, we cannot compensate
        if (balance == 0) {
            lossSum = 0;
            return 0;
        }

        // Calculat what the payout will be
        uint256 maxComp = maximumCompenstionRate.mul(_totalDebt).div(BPS_MAX);
        _compensation = Math.min(Math.min(balance, lossSum), maxComp);

        if (_compensation > 0) {
            SafeERC20.safeTransfer(want, address(strategy), _compensation);
            emit InsurancePayout(_compensation);
        }
        lossSum = lossSum.sub(_compensation);
    }

    function governance() public view returns (address) {
        return VaultAPI(strategy.vault()).governance();
    }

    /**
     * @notice
     *  Sends balance to gov for the purpose of migrating to a new strategy at the
     *  disgression of governance.
     */
    function withdraw() external {
        _onlyGovernance();
        SafeERC20.safeTransfer(
            want,
            governance(),
            want.balanceOf(address(this))
        );
    }

    /**
     * @notice
     *  Sets the lossSum. Adds some flexibility with payouts to cover edge-case
     *  scenarios
     */
    function setLossSum(uint256 newLossSum) external {
        _onlyGovernance();
        lossSum = newLossSum;
    }

    /**
     * @notice
     *  called by the strategy when updating the insurance contract
     */
    function migrateInsurance(address newInsurance) external {
        _onlyStrategy();
        SafeERC20.safeTransfer(
            want,
            newInsurance,
            want.balanceOf(address(this))
        );
    }

    /**
     * @notice
     * Called by goverannace when updating the strategy
     */
    function migrateStrategy(address newStrategy) external {
        _onlyGovernance();
        SafeERC20.safeTransfer(
            want,
            StrategyAPIExt(newStrategy).insurance(),
            want.balanceOf(address(this))
        );
    }
}

// File: CoreStrategyBenqi.sol

// Feel free to change the license, but this is what we use

// Feel free to change this version of Solidity. We support >=0.6.0 <0.7.0;

// These are the core Yearn libraries

struct CoreStrategyBenqiConfig {
    // A portion of want token is depoisited into a lending platform to be used as
    // collateral. Short token is borrowed and compined with the remaining want token
    // and deposited into LP and farmed.
    address want;
    address short;
    /*****************************/
    /*             Farm           */
    /*****************************/
    // Liquidity pool address for base <-> short tokens
    address wantShortLP;
    // Address for farming reward token - eg Spirit/BOO
    address farmToken;
    // Liquidity pool address for farmToken <-> wFTM
    address farmTokenLP;
    // Farm address for reward farming
    address farmMasterChef;
    /*****************************/
    /*        Money Market       */
    /*****************************/
    // Base token cToken @ MM
    address cTokenLend;
    // Short token cToken @ MM
    address cTokenBorrow;
    // Lend/Borrow rewards
    address compToken;
    address compTokenLP;
    // address compLpAddress;
    address comptroller;
    /*****************************/
    /*            AMM            */
    /*****************************/
    // Liquidity pool address for base <-> short tokens @ the AMM.
    // @note: the AMM router address does not need to be the same
    // AMM as the farm, in fact the most liquid AMM is prefered to
    // minimise slippage.
    address router;
    address compRouter;
    uint256 minDeploy;
}

interface IERC20Extended is IERC20 {
    function decimals() external view returns (uint8);
}

abstract contract CoreStrategyBenqi is BaseStrategyRedux {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    event DebtRebalance(
        uint256 indexed debtRatio,
        uint256 indexed swapAmount,
        uint256 indexed slippage
    );
    event CollatRebalance(
        uint256 indexed collatRatio,
        uint256 indexed adjAmount
    );

    uint256 public collatUpper = 6700;
    uint256 public collatTarget = 6000;
    uint256 public collatLower = 5300;
    uint256 public debtUpper = 10190;
    uint256 public debtLower = 9810;
    uint256 public rebalancePercent = 10000; // 100% (how far does rebalance of debt move towards 100% from threshold)

    // protocal limits & upper, target and lower thresholds for ratio of debt to collateral
    uint256 public collatLimit = 7500;

    bool public doPriceCheck = true;

    // ERC20 Tokens;
    IERC20 public short;
    IUniswapV2Pair wantShortLP; // This is public because it helps with unit testing
    IERC20 farmTokenLP;
    IERC20 farmToken;
    IERC20 compToken;

    // Contract Interfaces
    ICTokenErc20 cTokenLend;
    ICAvax cTokenBorrow;
    address farm;
    IUniswapV2Router01 router;
    IUniswapV2Router01 compRouter;
    QIComptroller comptroller;
    IPriceOracle public oracle;
    IStrategyInsurance public insurance;

    uint256 public slippageAdj = 9900; // 99%

    uint256 constant BASIS_PRECISION = 10000;
    uint256 public priceSourceDiffKeeper = 500; // 5% Default
    uint256 public priceSourceDiffUser = 200; // 2% Default

    uint256 constant STD_PRECISION = 1e18;
    address wavax;
    uint256 public minDeploy;
    uint256 SHORT_DUST = 1e14;

    constructor(address _vault, CoreStrategyBenqiConfig memory _config)
        public
        BaseStrategyRedux(_vault)
    {
        // config = _config;

        // initialise token interfaces
        short = IERC20(_config.short);
        wantShortLP = IUniswapV2Pair(_config.wantShortLP);
        farmTokenLP = IERC20(_config.farmTokenLP);
        farmToken = IERC20(_config.farmToken);
        compToken = IERC20(_config.compToken);

        // initialise other interfaces
        cTokenLend = ICTokenErc20(_config.cTokenLend);
        cTokenBorrow = ICAvax(_config.cTokenBorrow);
        farm = (_config.farmMasterChef);
        router = IUniswapV2Router01(_config.router);
        compRouter = IUniswapV2Router01(_config.compRouter);
        comptroller = QIComptroller(_config.comptroller);
        wavax = router.WAVAX();

        enterMarket();
        approveContracts();

        maxReportDelay = 21600;
        minReportDelay = 14400;
        profitFactor = 1500;
        minDeploy = _config.minDeploy;
    }

    function name() external view override returns (string memory) {
        return "StrategyHedgedFarmingBQI";
    }

    function prepareReturn(uint256 _debtOutstanding)
        internal
        override
        returns (
            uint256 _profit,
            uint256 _loss,
            uint256 _debtPayment
        )
    {
        uint256 totalAssets = estimatedTotalAssets();
        uint256 totalDebt = _getTotalDebt();
        if (totalAssets > totalDebt) {
            _profit = totalAssets.sub(totalDebt);
            (uint256 amountFreed, ) = _withdraw(_debtOutstanding.add(_profit));
            if (_debtOutstanding > amountFreed) {
                _debtPayment = amountFreed;
                _profit = 0;
            } else {
                _debtPayment = _debtOutstanding;
                _profit = amountFreed.sub(_debtOutstanding);
            }
        } else {
            _withdraw(_debtOutstanding);
            _debtPayment = balanceOfWant();
            _loss = totalDebt.sub(totalAssets);
        }

        _profit += _harvestInternal();

        // Check if we're net loss or net profit
        if (_loss >= _profit) {
            _profit = 0;
            _loss = _loss.sub(_profit);
            _loss = _loss.sub(insurance.reportLoss(totalDebt, _loss));
        } else {
            _profit = _profit.sub(_loss);
            _loss = 0;
            (uint256 insurancePayment, uint256 compensation) =
                insurance.reportProfit(totalDebt, _profit);
            _profit = _profit.sub(insurancePayment).add(compensation);

            // double check insurance isn't asking for too much or zero
            if (insurancePayment > 0 && insurancePayment < _profit) {
                SafeERC20.safeTransfer(
                    want,
                    address(insurance),
                    insurancePayment
                );
            }
        }
    }

    function adjustPosition(uint256 _debtOutstanding) internal override {
        uint256 _wantAvailable = balanceOfWant();
        if (_debtOutstanding >= _wantAvailable) {
            return;
        }
        uint256 toInvest = _wantAvailable.sub(_debtOutstanding);
        if (toInvest > 0) {
            _deploy(toInvest);
        }
    }

    function prepareMigration(address _newStrategy) internal override {
        liquidateAllPositionsInternal();
    }

    function getTokenOutPath(address _token_in, address _token_out)
        internal
        view
        returns (address[] memory _path)
    {
        bool is_weth = _token_in == wavax || _token_out == wavax;
        _path = new address[](is_weth ? 2 : 3);
        _path[0] = _token_in;
        if (is_weth) {
            _path[1] = _token_out;
        } else {
            _path[1] = wavax;
            _path[2] = _token_out;
        }
    }

    function approveContracts() internal {
        want.safeApprove(address(cTokenLend), uint256(-1));
        short.safeApprove(address(cTokenBorrow), uint256(-1));
        want.safeApprove(address(router), uint256(-1));
        short.safeApprove(address(router), uint256(-1));
        farmToken.safeApprove(address(router), uint256(-1));
        compToken.safeApprove(address(compRouter), uint256(-1));
        IWavax(wavax).approve(address(router), uint256(-1));
        IERC20(address(wantShortLP)).safeApprove(address(router), uint256(-1));
        IERC20(address(wantShortLP)).safeApprove(address(farm), uint256(-1));
    }

    function setSlippageConfig(
        uint256 _slippageAdj,
        uint256 _priceSourceDiffUser,
        uint256 _priceSourceDiffKeeper,
        bool _doPriceCheck
    ) external onlyAuthorized {
        slippageAdj = _slippageAdj;
        priceSourceDiffKeeper = _priceSourceDiffKeeper;
        priceSourceDiffUser = _priceSourceDiffUser;
        doPriceCheck = _doPriceCheck;
    }

    function setInsurance(address _insurance) external onlyAuthorized {
        require(address(insurance) == address(0));
        insurance = IStrategyInsurance(_insurance);
    }

    function migrateInsurance(address _newInsurance) external onlyGovernance {
        require(address(_newInsurance) == address(0));
        insurance.migrateInsurance(_newInsurance);
        insurance = IStrategyInsurance(_newInsurance);
    }

    function setDebtThresholds(
        uint256 _lower,
        uint256 _upper,
        uint256 _rebalancePercent
    ) external onlyAuthorized {
        require(_lower <= BASIS_PRECISION);
        require(_rebalancePercent <= BASIS_PRECISION);
        require(_upper >= BASIS_PRECISION);
        rebalancePercent = _rebalancePercent;
        debtUpper = _upper;
        debtLower = _lower;
    }

    function setCollateralThresholds(
        uint256 _lower,
        uint256 _target,
        uint256 _upper,
        uint256 _limit
    ) external onlyAuthorized {
        require(_limit <= BASIS_PRECISION);
        collatLimit = _limit;
        require(collatLimit > _upper);
        require(_upper >= _target);
        require(_target >= _lower);
        collatUpper = _upper;
        collatTarget = _target;
        collatLower = _lower;
    }

    function liquidatePositionAuth(uint256 _amount) external onlyAuthorized {
        liquidatePosition(_amount);
    }

    function liquidateAllToLend() internal {
        _withdrawAllPooled();
        _removeAllLp();
        _repayDebt();
        _lendWant(balanceOfWant());
    }

    function liquidateAllPositions()
        internal
        override
        returns (uint256 _amountFreed)
    {
        (_amountFreed, ) = liquidateAllPositionsInternal();
    }

    function liquidateAllPositionsInternal()
        internal
        returns (uint256 _amountFreed, uint256 _loss)
    {
        _withdrawAllPooled();
        _removeAllLp();

        uint256 debtInShort = balanceDebtInShortCurrent();
        uint256 balShort = balanceShort();
        if (balShort >= debtInShort) {
            _repayDebt();
            if (balanceShortWantEq() > 0) {
                (, _loss) = _swapExactShortWant(short.balanceOf(address(this)));
            }
        } else {
            uint256 debtDifference = debtInShort.sub(balShort);
            if (convertShortToWantLP(debtDifference) > 0) {
                (_loss) = _swapWantShortExact(debtDifference);
            } else {
                _swapExactWantShort(uint256(1));
            }
            _repayDebt();
        }

        _redeemWant(balanceLend());
        _amountFreed = balanceOfWant();
    }

    /// rebalances RoboVault strat position to within target collateral range
    function rebalanceCollateral() external onlyKeepers {
        // ratio of amount borrowed to collateral
        uint256 collatRatio = calcCollateral();
        require(collatRatio <= collatLower || collatRatio >= collatUpper);
        _rebalanceCollateralInternal();
    }

    /// rebalances RoboVault holding of short token vs LP to within target collateral range
    function rebalanceDebt() external onlyKeepers {
        uint256 debtRatio = calcDebtRatio();
        require(debtRatio < debtLower || debtRatio > debtUpper);
        require(_testPriceSource(priceSourceDiffKeeper));
        _rebalanceDebtInternal();
    }

    function claimHarvest() internal virtual;

    /// called by keeper to harvest rewards and either repay debt
    function _harvestInternal() internal returns (uint256 _wantHarvested) {
        uint256 wantBefore = balanceOfWant();
        /// harvest from farm & wantd on amt borrowed vs LP value either -> repay some debt or add to collateral
        claimHarvest();
        comptroller.claimReward(0, payable(address(this))); //claim QI

        comptroller.claimReward(1, payable(address(this))); //claim WAVAX

        _sellToToken(address(router), address(farmToken), address(wavax));
        _sellToToken(address(compRouter), address(compToken), address(wavax));
        if (IERC20(wavax).balanceOf(address(this)) > SHORT_DUST)
            _sellToToken(address(router), address(wavax), address(want));
        _wantHarvested = balanceOfWant().sub(wantBefore);
    }

    function _rebalanceCollateralInternal() internal {
        uint256 collatRatio = calcCollateral();
        uint256 shortPos = balanceDebt();
        uint256 lendPos = balanceLend();
        uint256 adjAmount;
        if (collatRatio > collatTarget) {
            adjAmount = (
                shortPos.sub(lendPos.mul(collatTarget).div(BASIS_PRECISION))
            )
                .mul(BASIS_PRECISION)
                .div(BASIS_PRECISION.add(collatTarget));
            /// remove some LP use 50% of withdrawn LP to repay debt and half to add to collateral
            _withdrawLpRebalanceCollateral(adjAmount.mul(2));
        } else if (collatRatio < collatTarget) {
            adjAmount = (
                (lendPos.mul(collatTarget).div(BASIS_PRECISION)).sub(shortPos)
            )
                .mul(BASIS_PRECISION)
                .div(BASIS_PRECISION.add(collatTarget));
            uint256 borrowAmt = _borrowWantEq(adjAmount);
            _redeemWant(adjAmount);
            _addToLP(borrowAmt);
            _depositLp();
        }
        emit CollatRebalance(collatRatio, adjAmount);
    }

    // deploy assets according to vault strategy
    function _deploy(uint256 _amount) internal {
        if (_amount < minDeploy) {
            return;
        }

        uint256 oPrice = oracle.getPrice();
        uint256 lpPrice = getLpPrice();
        uint256 borrow =
            collatTarget.mul(_amount).mul(1e18).div(
                BASIS_PRECISION.mul(
                    (collatTarget.mul(lpPrice).div(BASIS_PRECISION).add(oPrice))
                )
            );

        uint256 debtAllocation = borrow.mul(lpPrice).div(1e18);

        uint256 lendNeeded = _amount.sub(debtAllocation);

        _lendWant(lendNeeded);
        _borrow(borrow);
        _addToLP(borrow);
        _depositLp();
    }

    function getLpPrice() internal view returns (uint256) {
        (uint256 wantInLp, uint256 shortInLp) = getLpReserves();
        return wantInLp.mul(1e18).div(shortInLp);
    }

    /**
     * @notice
     *  Reverts if the difference in the price sources are >  priceSourceDiff
     */
    function _testPriceSource(uint256 priceDiff) internal returns (bool) {
        if (doPriceCheck) {
            uint256 oPrice = oracle.getPrice();
            uint256 lpPrice = getLpPrice();
            uint256 priceSourceRatio = oPrice.mul(BASIS_PRECISION).div(lpPrice);
            return (priceSourceRatio > BASIS_PRECISION.sub(priceDiff) &&
                priceSourceRatio < BASIS_PRECISION.add(priceDiff));
        }
        return true;
    }

    /**
     * @notice
     *  Assumes all balance is in Lend outside of a small amount of debt and short. Deploys
     *  capital maintaining the collatRatioTarget
     *
     * @dev
     *  Some crafty maths here:
     *  B: borrow amount in short (Not total debt!)
     *  L: Lend in want
     *  Cr: Collateral Target
     *  Po: Oracle price (short * Po = want)
     *  Plp: LP Price
     *  Di: Initial Debt in short
     *  Si: Initial short balance
     *
     *  We want:
     *  Cr = BPo / L
     *  T = L + Plp(B + 2Si - Di)
     *
     *  Solving this for L finds:
     *  B = (TCr - Cr*Plp(2Si-Di)) / (Po + Cr*Plp)
     */
    function _calcDeployment(uint256 _amount)
        internal
        returns (uint256 _lendNeeded, uint256 _borrow)
    {
        uint256 oPrice = oracle.getPrice();
        uint256 lpPrice = getLpPrice();
        uint256 Si2 = balanceShort().mul(2);
        uint256 Di = balanceDebtInShort();
        uint256 CrPlp = collatTarget.mul(lpPrice);
        uint256 numerator;

        // NOTE: may throw if _amount * CrPlp > 1e70
        if (Di > Si2) {
            numerator = (
                collatTarget.mul(_amount).mul(1e18).add(CrPlp.mul(Di.sub(Si2)))
            )
                .sub(oPrice.mul(BASIS_PRECISION).mul(Di));
        } else {
            numerator = (
                collatTarget.mul(_amount).mul(1e18).sub(CrPlp.mul(Si2.sub(Di)))
            )
                .sub(oPrice.mul(BASIS_PRECISION).mul(Di));
        }

        _borrow = numerator.div(
            BASIS_PRECISION.mul(oPrice.add(CrPlp.div(BASIS_PRECISION)))
        );
        _lendNeeded = _amount.sub(
            (_borrow.add(Si2).sub(Di)).mul(lpPrice).div(1e18)
        );
    }

    function _deployFromLend(uint256 _amount) internal {
        (uint256 _lendNeeded, uint256 _borrowAmt) = _calcDeployment(_amount);
        _redeemWant(balanceLend().sub(_lendNeeded));
        _borrow(_borrowAmt);
        _addToLP(balanceShort());
        _depositLp();
    }

    function _rebalanceDebtInternal() internal {
        uint256 swapAmountWant;
        uint256 slippage;
        uint256 debtRatio = calcDebtRatio();

        // Liquidate all the lend, leaving some in debt or as short
        liquidateAllToLend();

        uint256 debtInShort = balanceDebtInShort();
        uint256 balShort = balanceShort();

        if (debtInShort > balShort) {
            uint256 debt = convertShortToWantLP(debtInShort);
            // If there's excess debt, we swap some want to repay a portion of the debt
            swapAmountWant = debt.mul(rebalancePercent).div(BASIS_PRECISION);
            _redeemWant(swapAmountWant);
            slippage = _swapExactWantShort(swapAmountWant);
            _repayDebt();
        } else {
            // If there's excess short, we swap some to want which will be used
            // to create lp in _deployFromLend()
            (swapAmountWant, slippage) = _swapExactShortWant(
                balanceShort().mul(rebalancePercent).div(BASIS_PRECISION)
            );
        }

        _deployFromLend(estimatedTotalAssets());
        emit DebtRebalance(debtRatio, swapAmountWant, slippage);
    }

    /**
     * Withdraws and removes `_deployedPercent` percentage if LP from farming and pool respectively
     *
     * @param _deployedPercent percentage multiplied by BASIS_PRECISION of LP to remove.
     */
    function _removeLpPercent(uint256 _deployedPercent) internal {
        uint256 lpPooled = countLpPooled();
        uint256 lpUnpooled = wantShortLP.balanceOf(address(this));
        uint256 lpCount = lpUnpooled.add(lpPooled);
        uint256 lpReq = lpCount.mul(_deployedPercent).div(BASIS_PRECISION);
        uint256 lpWithdraw;
        if (lpReq - lpUnpooled < lpPooled) {
            lpWithdraw = lpReq.sub(lpUnpooled);
        } else {
            lpWithdraw = lpPooled;
        }

        // Finnally withdraw the LP from farms and remove from pool
        _withdrawSomeLp(lpWithdraw);
        _removeAllLp();
    }

    function _getTotalDebt() internal view returns (uint256) {
        return vault.strategies(address(this)).totalDebt;
    }

    function liquidatePosition(uint256 _amountNeeded)
        internal
        override
        returns (uint256 _liquidatedAmount, uint256 _loss)
    {
        uint256 balanceWant = balanceOfWant();
        uint256 totalAssets = estimatedTotalAssets();

        // if estimatedTotalAssets is less than params.debtRatio it means there's
        // been a loss (ignores pending harvests). This type of loss is calculated
        // proportionally
        // This stops a run-on-the-bank if there's IL between harvests.
        uint256 newAmount = _amountNeeded;
        uint256 totalDebt = _getTotalDebt();
        if (totalDebt > totalAssets) {
            uint256 ratio = totalAssets.mul(STD_PRECISION).div(totalDebt);
            newAmount = _amountNeeded.mul(ratio).div(STD_PRECISION);
            _loss = _amountNeeded.sub(newAmount);
        }

        // Liquidate the amount needed
        (, uint256 _slippage) = _withdraw(newAmount);
        _loss = _loss.add(_slippage);

        // NOTE: Maintain invariant `want.balanceOf(this) >= _liquidatedAmount`
        // NOTE: Maintain invariant `_liquidatedAmount + _loss <= _amountNeeded`
        _liquidatedAmount = balanceOfWant();
        if (_liquidatedAmount.add(_loss) > _amountNeeded) {
            _liquidatedAmount = _amountNeeded.sub(_loss);
        } else {
            _loss = _amountNeeded.sub(_liquidatedAmount);
        }
    }

    /**
     * function to remove funds from strategy when users withdraws funds in excess of reserves
     *
     * withdraw takes the following steps:
     * 1. Removes _amountNeeded worth of LP from the farms and pool
     * 2. Uses the short removed to repay debt (Swaps short or base for large withdrawals)
     * 3. Redeems the
     * @param _amountNeeded `want` amount to liquidate
     */
    function _withdraw(uint256 _amountNeeded)
        internal
        returns (uint256 _liquidatedAmount, uint256 _loss)
    {
        uint256 balanceWant = balanceOfWant();
        require(_testPriceSource(priceSourceDiffUser));
        if (_amountNeeded <= balanceWant) {
            return (_amountNeeded, 0);
        }

        uint256 balanceDeployed = balanceDeployed();

        // stratPercent: Percentage of the deployed capital we want to liquidate.
        uint256 stratPercent =
            _amountNeeded.sub(balanceWant).mul(BASIS_PRECISION).div(
                balanceDeployed
            );

        if (stratPercent > 9500) {
            // If this happened, we just undeploy the lot
            // and it'll be redeployed during the next harvest.
            (, _loss) = liquidateAllPositionsInternal();
            _liquidatedAmount = balanceOfWant().sub(balanceWant);
        } else {
            // liquidate all to lend
            liquidateAllToLend();

            // Only rebalance if more than 5% is being liquidated
            // to save on gas
            uint256 slippage = 0;
            if (stratPercent > 500) {
                // swap to ensure the debt ratio isn't negatively affected
                uint256 shortInShort = balanceShort();
                uint256 debtInShort = balanceDebtInShort();
                if (debtInShort > shortInShort) {
                    uint256 debt = convertShortToWantLP(debtInShort);
                    uint256 swapAmountWant =
                        debt.mul(stratPercent).div(BASIS_PRECISION);
                    _redeemWant(swapAmountWant);
                    slippage = _swapExactWantShort(swapAmountWant);
                    _repayDebt();
                } else {
                    (, slippage) = _swapExactShortWant(
                        balanceShort().mul(stratPercent).div(BASIS_PRECISION)
                    );
                }
            }

            // Redeploy the strat
            _deployFromLend(balanceDeployed.sub(_amountNeeded).add(slippage));
            _liquidatedAmount = balanceOfWant().sub(balanceWant);
            _loss = slippage;
        }
    }

    function enterMarket() internal {
        address[] memory cTokens = new address[](2);
        cTokens[0] = address(cTokenLend);
        cTokens[1] = address(cTokenBorrow);
        comptroller.enterMarkets(cTokens);
    }

    /**
     * This method is often farm specific so it needs to be declared elsewhere.
     */
    function _farmPendingRewards(address _user)
        internal
        view
        virtual
        returns (uint256);

    // calculate total value of vault assets
    function estimatedTotalAssets() public view override returns (uint256) {
        return balanceOfWant().add(balanceDeployed());
    }

    // calculate total value of vault assets
    function balanceDeployed() public view returns (uint256) {
        return
            balanceLend().add(balanceLp()).add(balanceShortWantEq()).sub(
                balanceDebt()
            );
    }

    // debt ratio - used to trigger rebalancing of debt
    function calcDebtRatio() public view returns (uint256) {
        return (balanceDebt().mul(BASIS_PRECISION).mul(2).div(balanceLp()));
    }

    // calculate debt / collateral - used to trigger rebalancing of debt & collateral
    function calcCollateral() public view returns (uint256) {
        return balanceDebtOracle().mul(BASIS_PRECISION).div(balanceLend());
    }

    function getLpReserves()
        public
        view
        returns (uint256 _wantInLp, uint256 _shortInLp)
    {
        (uint112 reserves0, uint112 reserves1, ) = wantShortLP.getReserves();
        if (wantShortLP.token0() == address(want)) {
            _wantInLp = uint256(reserves0);
            _shortInLp = uint256(reserves1);
        } else {
            _wantInLp = uint256(reserves1);
            _shortInLp = uint256(reserves0);
        }
    }

    function convertShortToWantLP(uint256 _amountShort)
        internal
        view
        returns (uint256)
    {
        (uint256 wantInLp, uint256 shortInLp) = getLpReserves();
        return (_amountShort.mul(wantInLp).div(shortInLp));
    }

    function convertShortToWantOracle(uint256 _amountShort)
        internal
        view
        returns (uint256)
    {
        return _amountShort.mul(oracle.getPrice()).div(1e18);
    }

    function convertWantToShortLP(uint256 _amountWant)
        internal
        view
        returns (uint256)
    {
        (uint256 wantInLp, uint256 shortInLp) = getLpReserves();
        return _amountWant.mul(shortInLp).div(wantInLp);
    }

    function balanceLpInShort() public view returns (uint256) {
        return countLpPooled().add(wantShortLP.balanceOf(address(this)));
    }

    /// get value of all LP in want currency
    function balanceLp() public view returns (uint256) {
        (uint256 wantInLp, ) = getLpReserves();
        return
            balanceLpInShort().mul(wantInLp).mul(2).div(
                wantShortLP.totalSupply()
            );
    }

    // value of borrowed tokens in value of want tokens
    function balanceDebtInShort() public view returns (uint256) {
        return cTokenBorrow.borrowBalanceStored(address(this));
    }

    // value of borrowed tokens in value of want tokens
    // Uses current exchange price, not stored
    function balanceDebtInShortCurrent() internal returns (uint256) {
        return cTokenBorrow.borrowBalanceCurrent(address(this));
    }

    // value of borrowed tokens in value of want tokens
    function balanceDebt() public view returns (uint256) {
        return convertShortToWantLP(balanceDebtInShort());
    }

    /**
     * Debt balance using price oracle
     */
    function balanceDebtOracle() public view returns (uint256) {
        return convertShortToWantOracle(balanceDebtInShort());
    }

    function balancePendingHarvest() public view virtual returns (uint256) {
        uint256 rewardsPending =
            _farmPendingRewards(address(this)).add(
                farmToken.balanceOf(address(this))
            );
        uint256 harvestLP_A = farmToken.balanceOf(address(farmTokenLP));
        uint256 shortLP_A = short.balanceOf(address(farmTokenLP));
        (uint256 wantLP_B, uint256 shortLP_B) = getLpReserves();

        uint256 balShort = rewardsPending.mul(shortLP_A).div(harvestLP_A);
        uint256 balRewards = balShort.mul(wantLP_B).div(shortLP_B);
        return (balRewards);
    }

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

    function balanceShort() public view returns (uint256) {
        return (short.balanceOf(address(this)));
    }

    function balanceShortWantEq() public view returns (uint256) {
        return (convertShortToWantLP(short.balanceOf(address(this))));
    }

    function balanceLend() public view returns (uint256) {
        return (
            cTokenLend
                .balanceOf(address(this))
                .mul(cTokenLend.exchangeRateStored())
                .div(1e18)
        );
    }

    function countLpPooled() internal view virtual returns (uint256);

    // lend want tokens to lending platform
    function _lendWant(uint256 amount) internal {
        cTokenLend.mint(amount);
    }

    // borrow tokens woth _amount of want tokens
    function _borrowWantEq(uint256 _amount)
        internal
        returns (uint256 _borrowamount)
    {
        _borrowamount = convertWantToShortLP(_amount);
        _borrow(_borrowamount);
    }

    function _borrow(uint256 borrowAmount) internal {
        cTokenBorrow.borrow(borrowAmount);
        IWavax(payable(wavax)).deposit{value: address(this).balance}();
    }

    // automatically repays debt using any short tokens held in wallet up to total debt value
    function _repayDebt() internal {
        uint256 _bal = short.balanceOf(address(this));
        if (_bal == 0) return;

        uint256 _debt = balanceDebtInShort();
        if (_bal < _debt) {
            _debt = _bal;
        }
        IWavax(wavax).withdraw(_debt);
        cTokenBorrow.repayBorrow{value: _debt}();
    }

    function _redeemWant(uint256 _redeem_amount) internal {
        cTokenLend.redeemUnderlying(_redeem_amount);
    }

    // withdraws some LP worth _amount, converts all withdrawn LP to short token to repay debt
    function _withdrawLpRebalance(uint256 _amount)
        internal
        returns (uint256 swapAmountWant, uint256 slippageWant)
    {
        uint256 lpUnpooled = wantShortLP.balanceOf(address(this));
        uint256 lpPooled = countLpPooled();
        uint256 lpCount = lpUnpooled.add(lpPooled);
        uint256 lpReq = _amount.mul(lpCount).div(balanceLp());
        uint256 lpWithdraw;
        if (lpReq - lpUnpooled < lpPooled) {
            lpWithdraw = lpReq - lpUnpooled;
        } else {
            lpWithdraw = lpPooled;
        }
        _withdrawSomeLp(lpWithdraw);
        _removeAllLp();
        swapAmountWant = Math.min(
            _amount.div(2),
            want.balanceOf(address(this))
        );
        slippageWant = _swapExactWantShort(swapAmountWant);

        _repayDebt();
    }

    //  withdraws some LP worth _amount, uses withdrawn LP to add to collateral & repay debt
    function _withdrawLpRebalanceCollateral(uint256 _amount) internal {
        uint256 lpUnpooled = wantShortLP.balanceOf(address(this));
        uint256 lpPooled = countLpPooled();
        uint256 lpCount = lpUnpooled.add(lpPooled);
        uint256 lpReq = _amount.mul(lpCount).div(balanceLp());
        uint256 lpWithdraw;
        if (lpReq - lpUnpooled < lpPooled) {
            lpWithdraw = lpReq - lpUnpooled;
        } else {
            lpWithdraw = lpPooled;
        }
        _withdrawSomeLp(lpWithdraw);
        _removeAllLp();
        uint256 wantBal = balanceOfWant();
        if (_amount.div(2) <= wantBal) {
            _lendWant(_amount.div(2));
        } else {
            _lendWant(wantBal);
        }
        _repayDebt();
    }

    function _addToLP(uint256 _amountShort) internal {
        uint256 _amountWant = convertShortToWantLP(_amountShort);

        uint256 balWant = want.balanceOf(address(this));
        if (balWant < _amountWant) {
            _amountWant = balWant;
        }
        router.addLiquidity(
            address(short),
            address(want),
            _amountShort,
            _amountWant,
            _amountShort.mul(slippageAdj).div(BASIS_PRECISION),
            _amountWant.mul(slippageAdj).div(BASIS_PRECISION),
            address(this),
            now
        );
    }

    function _depositLp() internal virtual;

    function _withdrawFarm(uint256 _amount) internal virtual;

    function _withdrawSomeLp(uint256 _amount) internal {
        require(_amount <= countLpPooled());
        _withdrawFarm(_amount);
    }

    function _withdrawAllPooled() internal {
        uint256 lpPooled = countLpPooled();
        _withdrawFarm(lpPooled);
    }

    // all LP currently not in Farm is removed.
    function _removeAllLp() internal {
        uint256 _amount = wantShortLP.balanceOf(address(this));
        if (_amount > 0) {
            (uint256 wantLP, uint256 shortLP) = getLpReserves();
            uint256 lpIssued = wantShortLP.totalSupply();

            uint256 amountAMin =
                _amount.mul(shortLP).mul(slippageAdj).div(BASIS_PRECISION).div(
                    lpIssued
                );
            uint256 amountBMin =
                _amount.mul(wantLP).mul(slippageAdj).div(BASIS_PRECISION).div(
                    lpIssued
                );
            router.removeLiquidity(
                address(short),
                address(want),
                _amount,
                amountAMin,
                amountBMin,
                address(this),
                now
            );
        }
    }

    /**
     * @notice
     *  Swaps token to want using router
     *
     * @param router univ2 router address
     * @param from token to sell
     * @param to token to swap to
     */
    function _sellToToken(
        address router,
        address from,
        address to
    ) internal {
        uint256 balance = IERC20(from).balanceOf(address(this));
        if (balance == 0) return;
        IUniswapV2Router01(router).swapExactTokensForTokens(
            balance,
            0,
            getTokenOutPath(from, to),
            address(this),
            now
        );
    }

    /**
     * @notice
     *  Swaps _amount of want for short
     *
     * @param _amount The amount of want to swap
     *
     * @return slippageWant Returns the cost of fees + slippage in want
     */
    function _swapExactWantShort(uint256 _amount)
        internal
        returns (uint256 slippageWant)
    {
        uint256 amountOutMin = convertWantToShortLP(_amount);
        uint256[] memory amounts =
            router.swapExactTokensForTokens(
                _amount,
                amountOutMin.mul(slippageAdj).div(BASIS_PRECISION),
                getTokenOutPath(address(want), address(short)),
                address(this),
                now
            );
        slippageWant = convertShortToWantLP(
            amountOutMin.sub(amounts[amounts.length - 1])
        );
    }

    /**
     * @notice
     *  Swaps _amount of short for want
     *
     * @param _amountShort The amount of short to swap
     *
     * @return _amountWant Returns the want amount minus fees
     * @return _slippageWant Returns the cost of fees + slippage in want
     */
    function _swapExactShortWant(uint256 _amountShort)
        internal
        returns (uint256 _amountWant, uint256 _slippageWant)
    {
        _amountWant = convertShortToWantLP(_amountShort);
        uint256[] memory amounts =
            router.swapExactTokensForTokens(
                _amountShort,
                _amountWant.mul(slippageAdj).div(BASIS_PRECISION),
                getTokenOutPath(address(short), address(want)),
                address(this),
                now
            );
        _slippageWant = _amountWant.sub(amounts[amounts.length - 1]);
    }

    function _swapWantShortExact(uint256 _amountOut)
        internal
        returns (uint256 _slippageWant)
    {
        uint256 amountInWant = convertShortToWantLP(_amountOut);
        uint256 amountInMax =
            (amountInWant.mul(BASIS_PRECISION).div(slippageAdj)).add(10); // add 1 to make up for rounding down
        uint256[] memory amounts =
            router.swapTokensForExactTokens(
                _amountOut,
                amountInMax,
                getTokenOutPath(address(want), address(short)),
                address(this),
                now
            );
        _slippageWant = amounts[0].sub(amountInWant);
    }

    // Required for BenQi interface
    receive() external payable {}

    /**
     * @notice
     *  Intentionally not implmenting this. The justification being:
     *   1. It doesn't actually add any additional security because gov
     *      has the powers to do the same thing with addStrategy already
     *   2. Being able to sweep tokens from a strategy could be helpful
     *      incase of an unexpected catastropic failure.
     */
    function protectedTokens()
        internal
        view
        override
        returns (address[] memory)
    {}
}

// File: BTCbAVAXBQIVTX.sol

contract BTCbAVAXBQIVTX is CoreStrategyBenqi {
    // Find rewarder farmMasterChef -> masterVtx.addressToPoolInfo(farmMasterChef.stakingToken).rewarder
    address constant rewarder = 0xcc8442f2741353089f584197b7b1997111219Cc9;

    constructor(address _vault)
        public
        CoreStrategyBenqi(
            _vault,
            CoreStrategyBenqiConfig(
                0x152b9d0FdC40C096757F570A51E494bd4b943E50, // want
                0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7, // short
                0x2fD81391E30805Cc7F2Ec827013ce86dc591B806, // wantShortLP
                0x6e84a6216eA6dACC71eE8E6b0a5B7322EEbC0fDd, // farmToken -> JOE
                0x454E67025631C065d3cFAD6d71E6892f74487a15, // farmTokenLp -> JOE/WAVAX
                0x473bD859797F781d1626B9c6f9B3065FF741E14C, // farmMasterChef
                0x89a415b3D20098E6A6C8f7a59001C67BD3129821, // cTokenLend
                0x5C0401e81Bc07Ca70fAD469b451682c0d747Ef1c, // cTokenBorrow
                0x8729438EB15e2C8B576fCc6AeCdA6A148776C0F5, // compToken
                0xE530dC2095Ef5653205CF5ea79F8979a7028065c, // compTokenLP
                0x486Af39519B4Dc9a7fCcd318217352830E8AD9b4, // comptroller
                0x60aE616a2155Ee3d9A68541Ba4544862310933d4, // router
                0xE54Ca86531e17Ef3616d22Ca28b0D458b6C89106, // compRouter
                1e4 //mindeploy
            )
        )
    {
        oracle = new ScreamPriceOracle(
            address(comptroller),
            address(cTokenLend),
            address(cTokenBorrow)
        );
    }

    function _farmPendingRewards(address _user)
        internal
        view
        override
        returns (uint256)
    {
        return
            IBaseRewardPool(rewarder)
                .earned(address(this), address(farmToken))
                .add(farmToken.balanceOf(address(this)));
    }

    function _depositLp() internal override {
        uint256 lpBalance = wantShortLP.balanceOf(address(this));
        IVectorChef(farm).deposit(lpBalance);
    }

    function _withdrawFarm(uint256 _amount) internal override {
        if (_amount > 0) IVectorChef(farm).withdraw(_amount);
    }

    function claimHarvest() internal override {
        IVectorChef(farm).getReward();
    }

    function countLpPooled() internal view override returns (uint256) {
        return IVectorChef(farm).balanceOf(address(this));
    }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_vault","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"collatRatio","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"adjAmount","type":"uint256"}],"name":"CollatRebalance","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"debtRatio","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"swapAmount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"slippage","type":"uint256"}],"name":"DebtRebalance","type":"event"},{"anonymous":false,"inputs":[],"name":"EmergencyExitEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"profit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"loss","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"debtPayment","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"debtOutstanding","type":"uint256"}],"name":"Harvested","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"debtThreshold","type":"uint256"}],"name":"UpdatedDebtThreshold","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newKeeper","type":"address"}],"name":"UpdatedKeeper","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"delay","type":"uint256"}],"name":"UpdatedMaxReportDelay","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"metadataURI","type":"string"}],"name":"UpdatedMetadataURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"delay","type":"uint256"}],"name":"UpdatedMinReportDelay","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"profitFactor","type":"uint256"}],"name":"UpdatedProfitFactor","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"rewards","type":"address"}],"name":"UpdatedRewards","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newStrategist","type":"address"}],"name":"UpdatedStrategist","type":"event"},{"inputs":[],"name":"apiVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"balanceDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceDebtInShort","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceDebtOracle","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceDeployed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceLend","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceLp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceLpInShort","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":"balancePendingHarvest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceShort","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceShortWantEq","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"calcCollateral","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"calcDebtRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collatLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collatLower","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collatTarget","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collatUpper","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"debtLower","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"debtThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"debtUpper","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"delegatedAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"doHealthCheck","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"doPriceCheck","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyExit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"estimatedTotalAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLpReserves","outputs":[{"internalType":"uint256","name":"_wantInLp","type":"uint256"},{"internalType":"uint256","name":"_shortInLp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"callCostInWei","type":"uint256"}],"name":"harvestTrigger","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"healthCheck","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"insurance","outputs":[{"internalType":"contract IStrategyInsurance","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keeper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"liquidatePositionAuth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxReportDelay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newStrategy","type":"address"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newInsurance","type":"address"}],"name":"migrateInsurance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minDeploy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minReportDelay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oracle","outputs":[{"internalType":"contract IPriceOracle","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceSourceDiffKeeper","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceSourceDiffUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"profitFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebalanceCollateral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rebalanceDebt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rebalancePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewards","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lower","type":"uint256"},{"internalType":"uint256","name":"_target","type":"uint256"},{"internalType":"uint256","name":"_upper","type":"uint256"},{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setCollateralThresholds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_debtThreshold","type":"uint256"}],"name":"setDebtThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lower","type":"uint256"},{"internalType":"uint256","name":"_upper","type":"uint256"},{"internalType":"uint256","name":"_rebalancePercent","type":"uint256"}],"name":"setDebtThresholds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_doHealthCheck","type":"bool"}],"name":"setDoHealthCheck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setEmergencyExit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_healthCheck","type":"address"}],"name":"setHealthCheck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_insurance","type":"address"}],"name":"setInsurance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_keeper","type":"address"}],"name":"setKeeper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_delay","type":"uint256"}],"name":"setMaxReportDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_metadataURI","type":"string"}],"name":"setMetadataURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_delay","type":"uint256"}],"name":"setMinReportDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_profitFactor","type":"uint256"}],"name":"setProfitFactor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewards","type":"address"}],"name":"setRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_slippageAdj","type":"uint256"},{"internalType":"uint256","name":"_priceSourceDiffUser","type":"uint256"},{"internalType":"uint256","name":"_priceSourceDiffKeeper","type":"uint256"},{"internalType":"bool","name":"_doPriceCheck","type":"bool"}],"name":"setSlippageConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategist","type":"address"}],"name":"setStrategist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"short","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"slippageAdj","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"strategist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"callCostInWei","type":"uint256"}],"name":"tendTrigger","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"contract VaultAPI","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"want","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountNeeded","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"_loss","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052611a2c600c55611770600d556114b4600e556127ce600f55612652601055612710601155611d4c6012556013805460ff191660011790556126ac6020556101f460215560c8602255655af3107a40006025553480156200006357600080fd5b506040516200736f3803806200736f833981016040819052620000869162000bf6565b604080516101c08101825273152b9d0fdc40c096757f570a51e494bd4b943e50815273b31f66aa3c1e785363f0875a1b74e27b85fd66c76020820152732fd81391e30805cc7f2ec827013ce86dc591b80691810191909152736e84a6216ea6dacc71ee8e6b0a5b7322eebc0fdd606082015273454e67025631c065d3cfad6d71e6892f74487a15608082015273473bd859797f781d1626b9c6f9b3065ff741e14c60a08201527389a415b3d20098e6a6c8f7a59001c67bd312982160c0820152735c0401e81bc07ca70fad469b451682c0d747ef1c60e0820152738729438eb15e2c8b576fcc6aecda6a148776c0f561010082015273e530dc2095ef5653205cf5ea79f8979a7028065c61012082015273486af39519b4dc9a7fccd318217352830e8ad9b46101408201527360ae616a2155ee3d9a68541ba4544862310933d461016082015273e54ca86531e17ef3616d22ca28b0d458b6c891066101808201526127106101a0820152819081620002018133808062000441565b5060208181015160138054610100600160a81b0319166101006001600160a01b03938416810291909117909155604080850151601480546001600160a01b0319908116928616929092179055608086015160158054831691861691909117905560608601516016805483169186169190911790559185015160178054841691851691909117905560c085015160188054841691851691909117905560e085015160198054841691851691909117905560a0850151601a80548416918516919091179055610160850151601b805484169185169190911790819055610180860151601c80548516918616919091179055610140860151601d80549094169085161790925580516339d94ae160e11b8152905191909216926373b295c29260048082019391829003018186803b1580156200033957600080fd5b505afa1580156200034e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000374919062000bf6565b602380546001600160a01b0319166001600160a01b03929092169190911790556200039e62000607565b620003a86200070b565b6154606008556138406007556105dc6009556101a0015160245550601d546018546019546040516001600160a01b03938416939283169290911690620003ee9062000be8565b620003fc9392919062000d37565b604051809103906000f08015801562000419573d6000803e3d6000fd5b50601e80546001600160a01b0319166001600160a01b03929092169190911790555062000f4f565b6006546001600160a01b0316156200045857600080fd5b600280546001600160a01b0319166001600160a01b03868116919091179182905560408051637e062a3560e11b81529051929091169163fc0c546a91600480820192602092909190829003018186803b158015620004b557600080fd5b505afa158015620004ca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620004f0919062000bf6565b600680546001600160a01b0319166001600160a01b0392831617908190556200052a91168560001962000910602090811b6200313617901c565b600380546001600160a01b038086166001600160a01b03199283161790925560048054858416908316178082556005805486861694169390931790925560006007819055620151806008556064600955600a5560025460405163095ea7b360e01b81529084169363095ea7b393620005aa93911691600019910162000d5a565b602060405180830381600087803b158015620005c557600080fd5b505af1158015620005da573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000600919062000cc4565b5050505050565b6040805160028082526060808301845292602083019080368337505060185482519293506001600160a01b0316918391506000906200064257fe5b6001600160a01b0392831660209182029290920101526019548251911690829060019081106200066e57fe5b6001600160a01b039283166020918202929092010152601d54604051631853304760e31b815291169063c299823890620006ad90849060040162000d73565b600060405180830381600087803b158015620006c857600080fd5b505af1158015620006dd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262000707919081019062000c26565b5050565b60185460065462000738916001600160a01b03918216911660001962000910602090811b6200313617901c565b6019546013546200076a916001600160a01b036101009092048216911660001962000910602090811b6200313617901c565b601b5460065462000797916001600160a01b03918216911660001962000910602090811b6200313617901c565b601b54601354620007c9916001600160a01b036101009092048216911660001962000910602090811b6200313617901c565b601b54601654620007f6916001600160a01b03918216911660001962000910602090811b6200313617901c565b601c5460175462000823916001600160a01b03918216911660001962000910602090811b6200313617901c565b602354601b5460405163095ea7b360e01b81526001600160a01b039283169263095ea7b3926200085d929116906000199060040162000d5a565b602060405180830381600087803b1580156200087857600080fd5b505af11580156200088d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620008b3919062000cc4565b50601b54601454620008e1916001600160a01b03918216911660001962000910602090811b6200313617901c565b601a546014546200090e916001600160a01b03918216911660001962000910602090811b6200313617901c565b565b8015806200099f5750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e9062000949903090869060040162000d1d565b60206040518083038186803b1580156200096257600080fd5b505afa15801562000977573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200099d919062000ce6565b155b620009c75760405162461bcd60e51b8152600401620009be9062000e78565b60405180910390fd5b62000a228363095ea7b360e01b8484604051602401620009e992919062000d5a565b60408051808303601f190181529190526020810180516001600160e01b0319939093166001600160e01b039384161790529062000a2716565b505050565b606062000a83826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031662000ac360201b62003230179092919060201c565b80519091501562000a22578080602001905181019062000aa4919062000cc4565b62000a225760405162461bcd60e51b8152600401620009be9062000e2e565b606062000ad4848460008562000adc565b949350505050565b606062000ae98562000bae565b62000b085760405162461bcd60e51b8152600401620009be9062000df7565b60006060866001600160a01b0316858760405162000b27919062000cff565b60006040518083038185875af1925050503d806000811462000b66576040519150601f19603f3d011682016040523d82523d6000602084013e62000b6b565b606091505b5091509150811562000b8157915062000ad49050565b80511562000b925780518082602001fd5b8360405162461bcd60e51b8152600401620009be919062000dc2565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159062000ad4575050151592915050565b6104eb8062006e8483390190565b60006020828403121562000c08578081fd5b81516001600160a01b038116811462000c1f578182fd5b9392505050565b6000602080838503121562000c39578182fd5b82516001600160401b0381111562000c4f578283fd5b8301601f8101851362000c60578283fd5b805162000c7762000c718262000efc565b62000ed5565b818152838101908385018584028501860189101562000c94578687fd5b8694505b8385101562000cb857805183526001949094019391850191850162000c98565b50979650505050505050565b60006020828403121562000cd6578081fd5b8151801515811462000c1f578182fd5b60006020828403121562000cf8578081fd5b5051919050565b6000825162000d1381846020870162000f1c565b9190910192915050565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b0393841681529183166020830152909116604082015260600190565b6001600160a01b03929092168252602082015260400190565b6020808252825182820181905260009190848201906040850190845b8181101562000db65783516001600160a01b03168352928401929184019160010162000d8f565b50909695505050505050565b600060208252825180602084015262000de381604085016020870162000f1c565b601f01601f19169190910160400192915050565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606082015260800190565b6040518181016001600160401b038111828210171562000ef457600080fd5b604052919050565b60006001600160401b0382111562000f12578081fd5b5060209081020190565b60005b8381101562000f3957818101518382015260200162000f1f565b8381111562000f49576000848401525b50505050565b615f258062000f5f6000396000f3fe60806040526004361061042a5760003560e01c806389cf320411610229578063cad20a291161012e578063edf9d152116100b6578063f8c1e75e1161007a578063f8c1e75e14610afe578063f91d7b2e14610b13578063fbfa77cf14610b28578063fcf2d0ad14610b3d578063feb6848a14610b5257610431565b8063edf9d15214610a8a578063efbb5cb014610a9f578063f017c92f14610ab4578063f38c5ccc14610ad4578063f40feaed14610ae957610431565b8063e6e7114b116100fd578063e6e7114b14610a0b578063ec079f3814610a20578063ec38a86214610a35578063ecda3cd614610a55578063ed882c2b14610a6a57610431565b8063cad20a29146109ac578063ce5494bb146109c1578063cf15e73c146109e1578063d2b49a92146109f657610431565b8063ac00ff26116101b1578063b252720b11610180578063b252720b1461092a578063b282e0f91461093f578063be48a8f114610962578063c1a3d44c14610977578063c7b9d5301461098c57610431565b8063ac00ff26146108c0578063aced1661146108e0578063ad46355f146108f5578063ae7c96191461091557610431565b806391397ab4116101f857806391397ab41461084c57806395e80c501461086c5780639ec5a89414610881578063a9b0ca3814610896578063a9c19c66146108ab57610431565b806389cf3204146107ed5780638cdfe166146108025780638e6350e2146108175780639011ccdc1461082c57610431565b80633e44de511161032f5780636cd7751f116102b75780637b4747dd116102865780637b4747dd146107795780637dc0d1d01461079957806381117ff2146107ae5780638555e2e5146107c357806385889c54146107d857610431565b80636cd7751f14610704578063748747e614610724578063750521f5146107445780637acd79221461076457610431565b80635641ec03116102fe5780635641ec0314610685578063572f1e781461069a5780635fc7a201146106af578063650d1880146106cf5780636718835f146106ef57610431565b80633e44de51146106315780633e4db04714610646578063440368a31461065b5780634641257d1461067057610431565b806322f3e2d4116103b25780632e1a7d4d116103815780632e1a7d4d146105a7578063315c41f2146105c757806338bea4cb146105e757806339a172a8146105fc57806339bb9c241461061c57610431565b806322f3e2d414610546578063258294101461056857806328b7ccf71461057d57806329b909ea1461059257610431565b806311bc8245116103f957806311bc8245146104b85780631d12f28b146104d85780631e0cd0a7146104fa5780631f1fcd511461050f5780631fe4a6861461053157610431565b806301681a621461043657806303ee438c1461045857806306fdde03146104835780630f969b871461049857610431565b3661043157005b600080fd5b34801561044257600080fd5b5061045661045136600461571a565b610b67565b005b34801561046457600080fd5b5061046d610cb1565b60405161047a9190615bff565b60405180910390f35b34801561048f57600080fd5b5061046d610d3f565b3480156104a457600080fd5b506104566104b336600461595e565b610d76565b3480156104c457600080fd5b506104566104d336600461571a565b610df0565b3480156104e457600080fd5b506104ed610ede565b60405161047a9190615d9d565b34801561050657600080fd5b506104ed610ee4565b34801561051b57600080fd5b50610524610eea565b60405161047a9190615ad9565b34801561053d57600080fd5b50610524610ef9565b34801561055257600080fd5b5061055b610f08565b60405161047a9190615ba9565b34801561057457600080fd5b5061046d610faa565b34801561058957600080fd5b506104ed610fc9565b34801561059e57600080fd5b506104ed610fcf565b3480156105b357600080fd5b506104ed6105c236600461595e565b611064565b3480156105d357600080fd5b506104566105e2366004615a49565b6110ac565b3480156105f357600080fd5b5061052461112c565b34801561060857600080fd5b5061045661061736600461595e565b611140565b34801561062857600080fd5b506104ed6111af565b34801561063d57600080fd5b506104ed6111b5565b34801561065257600080fd5b506104ed6111bb565b34801561066757600080fd5b506104566113aa565b34801561067c57600080fd5b506104566115c0565b34801561069157600080fd5b5061055b611a8f565b3480156106a657600080fd5b506104ed611a98565b3480156106bb57600080fd5b506104566106ca3660046159b1565b611b28565b3480156106db57600080fd5b5061055b6106ea36600461595e565b611b9a565b3480156106fb57600080fd5b5061055b611ba2565b34801561071057600080fd5b5061045661071f36600461571a565b611bab565b34801561073057600080fd5b5061045661073f36600461571a565b611c1d565b34801561075057600080fd5b5061045661075f36600461581f565b611cb5565b34801561077057600080fd5b506104ed611d39565b34801561078557600080fd5b50610456610794366004615a09565b611d3f565b3480156107a557600080fd5b50610524611d98565b3480156107ba57600080fd5b50610456611da7565b3480156107cf57600080fd5b506104ed611f6b565b3480156107e457600080fd5b506104ed611f91565b3480156107f957600080fd5b50610524611f97565b34801561080e57600080fd5b506104ed611fa6565b34801561082357600080fd5b506104ed611fac565b34801561083857600080fd5b5061045661084736600461571a565b611fb1565b34801561085857600080fd5b5061045661086736600461595e565b61206f565b34801561087857600080fd5b506104ed6120de565b34801561088d57600080fd5b506105246120e4565b3480156108a257600080fd5b506104ed6120f3565b3480156108b757600080fd5b506104ed6120f9565b3480156108cc57600080fd5b506104566108db3660046157e7565b612210565b3480156108ec57600080fd5b506105246122e9565b34801561090157600080fd5b5061045661091036600461595e565b6122f8565b34801561092157600080fd5b506104ed612340565b34801561093657600080fd5b50610524612346565b34801561094b57600080fd5b5061095461235a565b60405161047a929190615de2565b34801561096e57600080fd5b506104ed6124ba565b34801561098357600080fd5b506104ed6124c0565b34801561099857600080fd5b506104566109a736600461571a565b612541565b3480156109b857600080fd5b506104ed6125d9565b3480156109cd57600080fd5b506104566109dc36600461571a565b6125e6565b3480156109ed57600080fd5b506104ed612731565b348015610a0257600080fd5b50610456612737565b348015610a1757600080fd5b506104ed61290a565b348015610a2c57600080fd5b506104ed612925565b348015610a4157600080fd5b50610456610a5036600461571a565b6129d3565b348015610a6157600080fd5b506104ed612b53565b348015610a7657600080fd5b5061055b610a8536600461595e565b612b84565b348015610a9657600080fd5b506104ed612e03565b348015610aab57600080fd5b506104ed612e34565b348015610ac057600080fd5b50610456610acf36600461595e565b612e49565b348015610ae057600080fd5b506104ed612eb8565b348015610af557600080fd5b506104ed612ebe565b348015610b0a57600080fd5b506104ed612ed0565b348015610b1f57600080fd5b5061055b612ed6565b348015610b3457600080fd5b50610524612edf565b348015610b4957600080fd5b50610456612eee565b348015610b5e57600080fd5b506104ed613100565b610b6f613247565b6001600160a01b0316336001600160a01b031614610b8c57600080fd5b6006546001600160a01b0382811691161415610ba757600080fd5b6002546001600160a01b0382811691161415610bc257600080fd5b6060610bcc6132c4565b905060005b8151811015610c1457818181518110610be657fe5b60200260200101516001600160a01b0316836001600160a01b03161415610c0c57600080fd5b600101610bd1565b50610cad610c20613247565b6040516370a0823160e01b81526001600160a01b038516906370a0823190610c4c903090600401615ad9565b60206040518083038186803b158015610c6457600080fd5b505afa158015610c78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9c9190615976565b6001600160a01b03851691906132c9565b5050565b6000805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610d375780601f10610d0c57610100808354040283529160200191610d37565b820191906000526020600020905b815481529060010190602001808311610d1a57829003601f168201915b505050505081565b60408051808201909152601881527f53747261746567794865646765644661726d696e674251490000000000000000602082015290565b6003546001600160a01b0316331480610da75750610d92613247565b6001600160a01b0316336001600160a01b0316145b610db057600080fd5b600a8190556040517fa68ba126373d04c004c5748c300c9fca12bd444b3d4332e261f3bd2bac4a860090610de5908390615d9d565b60405180910390a150565b600260009054906101000a90046001600160a01b03166001600160a01b03166388a8d6026040518163ffffffff1660e01b815260040160206040518083038186803b158015610e3e57600080fd5b505afa158015610e52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e769190615736565b6001600160a01b0316336001600160a01b03161480610ead5750610e98613247565b6001600160a01b0316336001600160a01b0316145b610eb657600080fd5b600180546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600a5481565b60245481565b6006546001600160a01b031681565b6003546001600160a01b031681565b6002546040516339ebf82360e01b815260009182916001600160a01b03909116906339ebf82390610f3d903090600401615ad9565b6101206040518083038186803b158015610f5657600080fd5b505afa158015610f6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f8e919061588c565b604001511180610fa557506000610fa3612e34565b115b905090565b604080518082019091526005815264302e342e3360d81b602082015290565b60085481565b6014546040516370a0823160e01b8152600091610fa5916001600160a01b03909116906370a0823190611006903090600401615ad9565b60206040518083038186803b15801561101e57600080fd5b505afa158015611032573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110569190615976565b61105e6132e8565b90613319565b6002546000906001600160a01b0316331461107e57600080fd5b600061108983613347565b6006549093509091506110a6906001600160a01b031633836132c9565b50919050565b6003546001600160a01b03163314806110dd57506110c8613247565b6001600160a01b0316336001600160a01b0316145b6110e657600080fd5b6127108111156110f557600080fd5b601281905581811161110657600080fd5b8282101561111357600080fd5b8383101561112057600080fd5b50600c55600d55600e55565b60135461010090046001600160a01b031681565b6003546001600160a01b0316331480611171575061115c613247565b6001600160a01b0316336001600160a01b0316145b61117a57600080fd5b60078190556040517fbb2c369a0355a34b02ab5fce0643150c87e1c8dfe7c918d465591879f57948b190610de5908390615d9d565b60205481565b60105481565b6016546040516370a0823160e01b8152600091829161124b916001600160a01b0316906370a08231906111f2903090600401615ad9565b60206040518083038186803b15801561120a57600080fd5b505afa15801561121e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112429190615976565b61105e30613415565b6016546015546040516370a0823160e01b81529293506000926001600160a01b03928316926370a082319261128592911690600401615ad9565b60206040518083038186803b15801561129d57600080fd5b505afa1580156112b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112d59190615976565b6013546015546040516370a0823160e01b81529293506000926001600160a01b036101009093048316926370a082319261131492911690600401615ad9565b60206040518083038186803b15801561132c57600080fd5b505afa158015611340573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113649190615976565b905060008061137161235a565b9092509050600061138c856113868887613532565b9061356c565b9050600061139e836113868487613532565b97505050505050505090565b6005546001600160a01b03163314806113cd57506003546001600160a01b031633145b806113f057506113db613247565b6001600160a01b0316336001600160a01b0316145b806114915750600260009054906101000a90046001600160a01b03166001600160a01b031663452a93206040518163ffffffff1660e01b815260040160206040518083038186803b15801561144457600080fd5b505afa158015611458573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061147c9190615736565b6001600160a01b0316336001600160a01b0316145b806115325750600260009054906101000a90046001600160a01b03166001600160a01b03166388a8d6026040518163ffffffff1660e01b815260040160206040518083038186803b1580156114e557600080fd5b505afa1580156114f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061151d9190615736565b6001600160a01b0316336001600160a01b0316145b61153b57600080fd5b6002546040805163bf3759b560e01b815290516115be926001600160a01b03169163bf3759b5916004808301926020929190829003018186803b15801561158157600080fd5b505afa158015611595573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b99190615976565b6135ae565b565b6005546001600160a01b03163314806115e357506003546001600160a01b031633145b8061160657506115f1613247565b6001600160a01b0316336001600160a01b0316145b806116a75750600260009054906101000a90046001600160a01b03166001600160a01b031663452a93206040518163ffffffff1660e01b815260040160206040518083038186803b15801561165a57600080fd5b505afa15801561166e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116929190615736565b6001600160a01b0316336001600160a01b0316145b806117485750600260009054906101000a90046001600160a01b03166001600160a01b03166388a8d6026040518163ffffffff1660e01b815260040160206040518083038186803b1580156116fb57600080fd5b505afa15801561170f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117339190615736565b6001600160a01b0316336001600160a01b0316145b61175157600080fd5b6000806000600260009054906101000a90046001600160a01b03166001600160a01b031663bf3759b56040518163ffffffff1660e01b815260040160206040518083038186803b1580156117a457600080fd5b505afa1580156117b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117dc9190615976565b600b5490915060009060ff16156118395760006117f76135e4565b9050828110156118125761180b83826135ee565b9350611827565b828111156118275761182481846135ee565b94505b61183183856135ee565b91505061184a565b61184282613630565b919550935090505b6002546040516339ebf82360e01b81526000916001600160a01b0316906339ebf8239061187b903090600401615ad9565b6101206040518083038186803b15801561189457600080fd5b505afa1580156118a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118cc919061588c565b60c001516002546040516328766ebf60e21b81529192506001600160a01b03169063a1d9bafc9061190590889088908790600401615df0565b602060405180830381600087803b15801561191f57600080fd5b505af1158015611933573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119579190615976565b9250611962836135ae565b60015460ff168015611983575060015461010090046001600160a01b031615155b15611a3e5760015460405163c70fa00b60e01b81526101009091046001600160a01b03169063c70fa00b906119c49088908890879089908890600401615e21565b60206040518083038186803b1580156119dc57600080fd5b505afa1580156119f0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a149190615803565b611a395760405162461bcd60e51b8152600401611a3090615c69565b60405180910390fd5b611a4b565b6001805460ff1916811790555b7f4c0f499ffe6befa0ca7c826b0916cf87bea98de658013e76938489368d60d50985858486604051611a809493929190615e06565b60405180910390a15050505050565b600b5460ff1681565b6013546040516370a0823160e01b8152600091610fa5916101009091046001600160a01b0316906370a0823190611ad3903090600401615ad9565b60206040518083038186803b158015611aeb57600080fd5b505afa158015611aff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b239190615976565b613865565b6003546001600160a01b0316331480611b595750611b44613247565b6001600160a01b0316336001600160a01b0316145b611b6257600080fd5b612710831115611b7157600080fd5b612710811115611b8057600080fd5b612710821015611b8f57600080fd5b601155600f55601055565b60005b919050565b60015460ff1681565b6003546001600160a01b0316331480611bdc5750611bc7613247565b6001600160a01b0316336001600160a01b0316145b611be557600080fd5b601f546001600160a01b031615611bfb57600080fd5b601f80546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b0316331480611c4e5750611c39613247565b6001600160a01b0316336001600160a01b0316145b611c5757600080fd5b6001600160a01b038116611c6a57600080fd5b600580546001600160a01b0319166001600160a01b0383161790556040517f2f202ddb4a2e345f6323ed90f8fc8559d770a7abbbeee84dde8aca3351fe715490610de5908390615ad9565b6003546001600160a01b0316331480611ce65750611cd1613247565b6001600160a01b0316336001600160a01b0316145b611cef57600080fd5b611cfb6000838361563b565b507f300e67d5a415b6d015a471d9c7b95dd58f3e8290af965e84e0f845de2996dda68282604051611d2d929190615bd0565b60405180910390a15050565b600d5481565b6003546001600160a01b0316331480611d705750611d5b613247565b6001600160a01b0316336001600160a01b0316145b611d7957600080fd5b6020939093556021556022556013805460ff1916911515919091179055565b601e546001600160a01b031681565b6005546001600160a01b0316331480611dca57506003546001600160a01b031633145b80611ded5750611dd8613247565b6001600160a01b0316336001600160a01b0316145b80611e8e5750600260009054906101000a90046001600160a01b03166001600160a01b031663452a93206040518163ffffffff1660e01b815260040160206040518083038186803b158015611e4157600080fd5b505afa158015611e55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e799190615736565b6001600160a01b0316336001600160a01b0316145b80611f2f5750600260009054906101000a90046001600160a01b03166001600160a01b03166388a8d6026040518163ffffffff1660e01b815260040160206040518083038186803b158015611ee257600080fd5b505afa158015611ef6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f1a9190615736565b6001600160a01b0316336001600160a01b0316145b611f3857600080fd5b6000611f4261290a565b9050600e5481111580611f575750600c548110155b611f6057600080fd5b611f68613885565b50565b6000610fa5611f78612925565b6113866002611f8b612710611f8b6125d9565b90613532565b60125481565b601f546001600160a01b031681565b60095481565b600090565b611fb9613247565b6001600160a01b0316336001600160a01b031614611fd657600080fd5b6001600160a01b03811615611fea57600080fd5b601f54604051632404733760e21b81526001600160a01b0390911690639011ccdc9061201a908490600401615ad9565b600060405180830381600087803b15801561203457600080fd5b505af1158015612048573d6000803e3d6000fd5b5050601f80546001600160a01b0319166001600160a01b0394909416939093179092555050565b6003546001600160a01b03163314806120a0575061208b613247565b6001600160a01b0316336001600160a01b0316145b6120a957600080fd5b60098190556040517fd94596337df4c2f0f44d30a7fc5db1c7bb60d9aca4185ed77c6fd96eb45ec29890610de5908390615d9d565b60075481565b6004546001600160a01b031681565b600e5481565b6000610fa5670de0b6b3a7640000611386601860009054906101000a90046001600160a01b03166001600160a01b031663182df0f56040518163ffffffff1660e01b815260040160206040518083038186803b15801561215857600080fd5b505afa15801561216c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121909190615976565b6018546040516370a0823160e01b81526001600160a01b03909116906370a08231906121c0903090600401615ad9565b60206040518083038186803b1580156121d857600080fd5b505afa1580156121ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f8b9190615976565b600260009054906101000a90046001600160a01b03166001600160a01b03166388a8d6026040518163ffffffff1660e01b815260040160206040518083038186803b15801561225e57600080fd5b505afa158015612272573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122969190615736565b6001600160a01b0316336001600160a01b031614806122cd57506122b8613247565b6001600160a01b0316336001600160a01b0316145b6122d657600080fd5b6001805460ff1916911515919091179055565b6005546001600160a01b031681565b6003546001600160a01b03163314806123295750612314613247565b6001600160a01b0316336001600160a01b0316145b61233257600080fd5b61233b81613347565b505050565b60215481565b60015461010090046001600160a01b031681565b600080600080601460009054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156123ae57600080fd5b505afa1580156123c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123e6919061590a565b5060065460145460408051630dfe168160e01b815290519496509294506001600160a01b0391821693911691630dfe1681916004808301926020929190829003018186803b15801561243757600080fd5b505afa15801561244b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061246f9190615736565b6001600160a01b0316141561249b57816001600160701b03169350806001600160701b031692506124b4565b806001600160701b03169350816001600160701b031692505b50509091565b600f5481565b6006546040516370a0823160e01b81526000916001600160a01b0316906370a08231906124f1903090600401615ad9565b60206040518083038186803b15801561250957600080fd5b505afa15801561251d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa59190615976565b6003546001600160a01b0316331480612572575061255d613247565b6001600160a01b0316336001600160a01b0316145b61257b57600080fd5b6001600160a01b03811661258e57600080fd5b600380546001600160a01b0319166001600160a01b0383161790556040517f352ececae6d7d1e6d26bcf2c549dfd55be1637e9b22dc0cf3b71ddb36097a6b490610de5908390615ad9565b6000610fa5611b23612b53565b6002546001600160a01b031633146125fd57600080fd5b6002546040805163fbfa77cf60e01b815290516001600160a01b039283169284169163fbfa77cf916004808301926020929190829003018186803b15801561264457600080fd5b505afa158015612658573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061267c9190615736565b6001600160a01b03161461268f57600080fd5b612698816139bb565b6006546040516370a0823160e01b8152611f689183916001600160a01b03909116906370a08231906126ce903090600401615ad9565b60206040518083038186803b1580156126e657600080fd5b505afa1580156126fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061271e9190615976565b6006546001600160a01b031691906132c9565b60225481565b6005546001600160a01b031633148061275a57506003546001600160a01b031633145b8061277d5750612768613247565b6001600160a01b0316336001600160a01b0316145b8061281e5750600260009054906101000a90046001600160a01b03166001600160a01b031663452a93206040518163ffffffff1660e01b815260040160206040518083038186803b1580156127d157600080fd5b505afa1580156127e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128099190615736565b6001600160a01b0316336001600160a01b0316145b806128bf5750600260009054906101000a90046001600160a01b03166001600160a01b03166388a8d6026040518163ffffffff1660e01b815260040160206040518083038186803b15801561287257600080fd5b505afa158015612886573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128aa9190615736565b6001600160a01b0316336001600160a01b0316145b6128c857600080fd5b60006128d2611f6b565b90506010548110806128e55750600f5481115b6128ee57600080fd5b6128f96021546139c3565b61290257600080fd5b611f68613aa6565b6000610fa56129176120f9565b611386612710611f8b612ebe565b60008061293061235a565b5090506129cd601460009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561298457600080fd5b505afa158015612998573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129bc9190615976565b6113866002611f8b85611f8b610fcf565b91505090565b6003546001600160a01b031633146129ea57600080fd5b6001600160a01b0381166129fd57600080fd5b6002546004805460405163095ea7b360e01b81526001600160a01b039384169363095ea7b393612a34939091169160009101615b90565b602060405180830381600087803b158015612a4e57600080fd5b505af1158015612a62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a869190615803565b50600480546001600160a01b0319166001600160a01b038381169190911780835560025460405163095ea7b360e01b81529083169363095ea7b393612ad19316916000199101615b90565b602060405180830381600087803b158015612aeb57600080fd5b505af1158015612aff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b239190615803565b507fafbb66abf8f3b719799940473a4052a3717cdd8e40fb6c8a3faadab316b1a06981604051610de59190615ad9565b6019546040516395dd919360e01b81526000916001600160a01b0316906395dd9193906124f1903090600401615ad9565b600080612b8f6156b9565b6002546040516339ebf82360e01b81526001600160a01b03909116906339ebf82390612bbf903090600401615ad9565b6101206040518083038186803b158015612bd857600080fd5b505afa158015612bec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c10919061588c565b9050806020015160001415612c2a57600092505050611b9d565b60075460a0820151612c3d9042906135ee565b1015612c4e57600092505050611b9d565b60085460a0820151612c619042906135ee565b10612c7157600192505050611b9d565b6002546040805163bf3759b560e01b815290516000926001600160a01b03169163bf3759b5916004808301926020929190829003018186803b158015612cb657600080fd5b505afa158015612cca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cee9190615976565b9050600a54811115612d065760019350505050611b9d565b6000612d10612e34565b90508260c00151612d2c600a548361331990919063ffffffff16565b1015612d3f576001945050505050611b9d565b60008360c00151821115612d605760c0840151612d5d9083906135ee565b90505b6002546040805163112c1f9b60e01b815290516000926001600160a01b03169163112c1f9b916004808301926020929190829003018186803b158015612da557600080fd5b505afa158015612db9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ddd9190615976565b9050612de98183613319565b600954612df69088613532565b1098975050505050505050565b6000610fa5612e106125d9565b612e2e612e1b611a98565b61105e612e26612925565b61105e6120f9565b906135ee565b6000610fa5612e41612e03565b61105e6124c0565b6003546001600160a01b0316331480612e7a5750612e65613247565b6001600160a01b0316336001600160a01b0316145b612e8357600080fd5b60088190556040517f5430e11864ad7aa9775b07d12657fe52df9aa2ba734355bd8ef8747be2c800c590610de5908390615d9d565b60115481565b6000610fa5612ecb612b53565b613b91565b600c5481565b60135460ff1681565b6002546001600160a01b031681565b6003546001600160a01b0316331480612f1f5750612f0a613247565b6001600160a01b0316336001600160a01b0316145b80612fc05750600260009054906101000a90046001600160a01b03166001600160a01b031663452a93206040518163ffffffff1660e01b815260040160206040518083038186803b158015612f7357600080fd5b505afa158015612f87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fab9190615736565b6001600160a01b0316336001600160a01b0316145b806130615750600260009054906101000a90046001600160a01b03166001600160a01b03166388a8d6026040518163ffffffff1660e01b815260040160206040518083038186803b15801561301457600080fd5b505afa158015613028573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061304c9190615736565b6001600160a01b0316336001600160a01b0316145b61306a57600080fd5b600b805460ff191660011790556002546040805163507257cd60e11b815290516001600160a01b039092169163a0e4af9a9160048082019260009290919082900301818387803b1580156130bd57600080fd5b505af11580156130d1573d6000803e3d6000fd5b50506040517f97e963041e952738788b9d4871d854d282065b8f90a464928d6528f2e9a4fd0b925060009150a1565b6013546040516370a0823160e01b815260009161010090046001600160a01b0316906370a08231906124f1903090600401615ad9565b8015806131be5750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e9061316c9030908690600401615aed565b60206040518083038186803b15801561318457600080fd5b505afa158015613198573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131bc9190615976565b155b6131da5760405162461bcd60e51b8152600401611a3090615d47565b61233b8363095ea7b360e01b84846040516024016131f9929190615b90565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613c2f565b606061323f8484600085613cbe565b949350505050565b60025460408051635aa6e67560e01b815290516000926001600160a01b031691635aa6e675916004808301926020929190829003018186803b15801561328c57600080fd5b505afa1580156132a0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa59190615736565b606090565b61233b8363a9059cbb60e01b84846040516024016131f9929190615b90565b601a546040516370a0823160e01b81526000916001600160a01b0316906370a08231906124f1903090600401615ad9565b60008282018381101561333e5760405162461bcd60e51b8152600401611a3090615c32565b90505b92915050565b60008060006133546124c0565b90506000613360612e34565b905084600061336d613d82565b9050828111156133b757600061338f8261138686670de0b6b3a7640000613532565b90506133a7670de0b6b3a76400006113868a84613532565b92506133b388846135ee565b9550505b60006133c283613e0d565b91506133d090508682613319565b95506133da6124c0565b9650876133e78888613319565b11156133fe576133f788876135ee565b965061340b565b61340888886135ee565b95505b5050505050915091565b6016546040516370a0823160e01b8152600091613341916001600160a01b03909116906370a082319061344c903090600401615ad9565b60206040518083038186803b15801561346457600080fd5b505afa158015613478573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061349c9190615976565b60165460405163211dc32d60e01b815273cc8442f2741353089f584197b7b1997111219cc99163211dc32d916134e29130916001600160a01b0390911690600401615aed565b60206040518083038186803b1580156134fa57600080fd5b505afa15801561350e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105e9190615976565b60008261354157506000613341565b8282028284828161354e57fe5b041461333e5760405162461bcd60e51b8152600401611a3090615c85565b600061333e83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613f50565b60006135b86124c0565b90508082106135c75750611f68565b60006135d382846135ee565b9050801561233b5761233b81613f87565b60006110a66140c7565b600061333e83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250614206565b60008060008061363e612e34565b9050600061364a613d82565b9050808211156136a15761365e82826135ee565b9450600061367461366f8888613319565b613e0d565b5090508087111561368b578093506000955061369b565b86935061369881856135ee565b95505b506136c3565b6136aa86613e0d565b50506136b46124c0565b92506136c081836135ee565b93505b6136cb614232565b8501945084841061377d57600094506136e484866135ee565b601f5460405163746c8fd560e01b8152919550613776916001600160a01b039091169063746c8fd59061371d9085908990600401615de2565b602060405180830381600087803b15801561373757600080fd5b505af115801561374b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061376f9190615976565b85906135ee565b935061385c565b61378785856135ee565b601f5460405163351fc74560e21b815291965060009550859182916001600160a01b03169063d47f1d14906137c29086908b90600401615de2565b6040805180830381600087803b1580156137db57600080fd5b505af11580156137ef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613813919061598e565b90925090506138268161105e89856135ee565b965060008211801561383757508682105b1561385957600654601f54613859916001600160a01b039081169116846132c9565b50505b50509193909250565b600080600061387261235a565b909250905061323f816113868685613532565b600061388f61290a565b9050600061389b6125d9565b905060006138a76120f9565b90506000600d54841115613914576138fa6138cf600d5461271061331990919063ffffffff16565b611386612710611f8b6138f3612710611386600d548a61353290919063ffffffff16565b88906135ee565b905061390f61390a826002613532565b61440d565b613988565b600d548410156139885761395d613938600d5461271061331990919063ffffffff16565b611386612710611f8b87612e2e612710611386600d548b61353290919063ffffffff16565b9050600061396a8261453b565b905061397582614551565b61397e816145d3565b613986614743565b505b604051819085907f111845ab410c0730b6955bdc402995329bc8177eda2924040e731bce85d1736d90600090a350505050565b61233b6140c7565b60135460009060ff1615613a9e57601e5460408051634c6afee560e11b815290516000926001600160a01b0316916398d5fdca916004808301926020929190829003018186803b158015613a1657600080fd5b505afa158015613a2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a4e9190615976565b90506000613a5a61482a565b90506000613a6e8261138685612710613532565b9050613a7c612710866135ee565b81118015613a945750613a9161271086613319565b81105b9350505050611b9d565b506001919050565b6000806000613ab3611f6b565b9050613abd614859565b6000613ac7612b53565b90506000613ad3613100565b905080821115613b29576000613ae883613865565b9050613b056127106113866011548461353290919063ffffffff16565b9550613b1086614551565b613b198661487c565b9450613b23614983565b50613b4b565b613b45613b40612710611386601154611f8b613100565b614af3565b90955093505b613b5b613b56612e34565b614be8565b8385847ff13e8bcc24e66386a72a550acb7de1120ca0305ed25e72054d804f23355b449360405160405180910390a45050505050565b6000613341670de0b6b3a7640000611386601e60009054906101000a90046001600160a01b03166001600160a01b03166398d5fdca6040518163ffffffff1660e01b815260040160206040518083038186803b158015613bf057600080fd5b505afa158015613c04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c289190615976565b8590613532565b6060613c84826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166132309092919063ffffffff16565b80519091501561233b5780806020019051810190613ca29190615803565b61233b5760405162461bcd60e51b8152600401611a3090615cfd565b6060613cc985614c28565b613ce55760405162461bcd60e51b8152600401611a3090615cc6565b60006060866001600160a01b03168587604051613d029190615abd565b60006040518083038185875af1925050503d8060008114613d3f576040519150601f19603f3d011682016040523d82523d6000602084013e613d44565b606091505b50915091508115613d5857915061323f9050565b805115613d685780518082602001fd5b8360405162461bcd60e51b8152600401611a309190615bff565b6002546040516339ebf82360e01b81526000916001600160a01b0316906339ebf82390613db3903090600401615ad9565b6101206040518083038186803b158015613dcc57600080fd5b505afa158015613de0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e04919061588c565b60c00151905090565b6000806000613e1a6124c0565b9050613e276022546139c3565b613e3057600080fd5b808411613e44578360009250925050613f4b565b6000613e4e612e03565b90506000613e6682611386612710611f8b8a886135ee565b905061251c811115613e9157613e7a6140c7565b9450613e8a905083612e2e6124c0565b9450613f47565b613e99614859565b60006101f4821115613f25576000613eaf613100565b90506000613ebb612b53565b905081811115613f09576000613ed082613865565b90506000613ee46127106113868489613532565b9050613eef81614551565b613ef88161487c565b9450613f02614983565b5050613f22565b613f1e613b4061271061138687611f8b613100565b9350505b50505b613f36613b568261105e868b6135ee565b613f4284612e2e6124c0565b955093505b5050505b915091565b60008183613f715760405162461bcd60e51b8152600401611a309190615bff565b506000838581613f7d57fe5b0495945050505050565b602454811015613f9657611f68565b601e5460408051634c6afee560e11b815290516000926001600160a01b0316916398d5fdca916004808301926020929190829003018186803b158015613fdb57600080fd5b505afa158015613fef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140139190615976565b9050600061401f61482a565b905060006140726140516140488561105e61271061138688600d5461353290919063ffffffff16565b61271090613532565b611386670de0b6b3a7640000611f8b88600d5461353290919063ffffffff16565b9050600061408c670de0b6b3a76400006113868486613532565b9050600061409a86836135ee565b90506140a581614c61565b6140ae83614c91565b6140b7836145d3565b6140bf614743565b505050505050565b6000806140d2614d78565b6140da614d8d565b60006140e4614fa1565b905060006140f0613100565b90508181106141a157614101614983565b600061410b611a98565b111561419c576013546040516370a0823160e01b81526141989161010090046001600160a01b0316906370a0823190614148903090600401615ad9565b60206040518083038186803b15801561416057600080fd5b505afa158015614174573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b409190615976565b9350505b6141e6565b60006141ad83836135ee565b905060006141ba82613865565b11156141d0576141c981615000565b93506141dc565b6141da600161487c565b505b6141e4614983565b505b6141f66141f16120f9565b614551565b6141fe6124c0565b935050509091565b6000818484111561422a5760405162461bcd60e51b8152600401611a309190615bff565b505050900390565b60008061423d6124c0565b9050614247615111565b601d54604051630952c56360e01b81526001600160a01b0390911690630952c5639061427a906000903090600401615bb4565b600060405180830381600087803b15801561429457600080fd5b505af11580156142a8573d6000803e3d6000fd5b5050601d54604051630952c56360e01b81526001600160a01b039091169250630952c56391506142df906001903090600401615bb4565b600060405180830381600087803b1580156142f957600080fd5b505af115801561430d573d6000803e3d6000fd5b5050601b5460165460235461433494506001600160a01b039283169350908216911661517b565b601c54601754602354614356926001600160a01b03908116928116911661517b565b6025546023546040516370a0823160e01b81526001600160a01b03909116906370a0823190614389903090600401615ad9565b60206040518083038186803b1580156143a157600080fd5b505afa1580156143b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143d99190615976565b111561440157601b54602354600654614401926001600160a01b03908116928116911661517b565b6129cd81612e2e6124c0565b6014546040516370a0823160e01b81526000916001600160a01b0316906370a082319061443e903090600401615ad9565b60206040518083038186803b15801561445657600080fd5b505afa15801561446a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061448e9190615976565b9050600061449a6132e8565b905060006144a88383613319565b905060006144c16144b7612925565b6113868785613532565b905060008385830310156144d857508381036144db565b50825b6144e48161529b565b6144ec614d8d565b60006144f66124c0565b90508061450488600261356c565b116145215761451c61451788600261356c565b614c61565b61452a565b61452a81614c61565b614532614983565b50505050505050565b6000614546826152b8565b9050611b9d81614c91565b60185460405163852a12e360e01b81526001600160a01b039091169063852a12e390614581908490600401615d9d565b602060405180830381600087803b15801561459b57600080fd5b505af11580156145af573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cad9190615976565b60006145de82613865565b6006546040516370a0823160e01b81529192506000916001600160a01b03909116906370a0823190614614903090600401615ad9565b60206040518083038186803b15801561462c57600080fd5b505afa158015614640573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906146649190615976565b905081811015614672578091505b601b546013546006546020546001600160a01b039384169363e8e337009361010090048116921690879087906146b19061271090611386908590613532565b6146cc6127106113866020548c61353290919063ffffffff16565b30426040518963ffffffff1660e01b81526004016146f1989796959493929190615b47565b606060405180830381600087803b15801561470b57600080fd5b505af115801561471f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140bf91906159dc565b6014546040516370a0823160e01b81526000916001600160a01b0316906370a0823190614774903090600401615ad9565b60206040518083038186803b15801561478c57600080fd5b505afa1580156147a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147c49190615976565b601a5460405163b6b55f2560e01b81529192506001600160a01b03169063b6b55f25906147f5908490600401615d9d565b600060405180830381600087803b15801561480f57600080fd5b505af1158015614823573d6000803e3d6000fd5b5050505050565b600080600061483761235a565b90925090506148528161138684670de0b6b3a7640000613532565b9250505090565b614861614d78565b614869614d8d565b614871614983565b6115be6145176124c0565b600080614888836152b8565b601b546020549192506060916001600160a01b03909116906338ed17399086906148bb9061271090611386908890613532565b6006546013546148dc916001600160a01b03908116916101009004166152d8565b30426040518663ffffffff1660e01b81526004016148fe959493929190615da6565b600060405180830381600087803b15801561491857600080fd5b505af115801561492c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526149549190810190615752565b905061323f611b238260018451038151811061496c57fe5b6020026020010151846135ee90919063ffffffff16565b6013546040516370a0823160e01b815260009161010090046001600160a01b0316906370a08231906149b9903090600401615ad9565b60206040518083038186803b1580156149d157600080fd5b505afa1580156149e5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614a099190615976565b905080614a1657506115be565b6000614a20612b53565b905080821015614a2d5750805b602354604051632e1a7d4d60e01b81526001600160a01b0390911690632e1a7d4d90614a5d908490600401615d9d565b600060405180830381600087803b158015614a7757600080fd5b505af1158015614a8b573d6000803e3d6000fd5b50505050601960009054906101000a90046001600160a01b03166001600160a01b0316634e4d9fea826040518263ffffffff1660e01b81526004016000604051808303818588803b158015614adf57600080fd5b505af1158015614532573d6000803e3d6000fd5b600080614aff83613865565b601b546020549193506060916001600160a01b03909116906338ed1739908690614b329061271090611386908990613532565b601354600654614b53916001600160a01b03610100909104811691166152d8565b30426040518663ffffffff1660e01b8152600401614b75959493929190615da6565b600060405180830381600087803b158015614b8f57600080fd5b505af1158015614ba3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052614bcb9190810190615752565b9050614be08160018351038151811061496c57fe5b915050915091565b600080614bf483615439565b91509150614c076141f183612e2e6120f9565b614c1081614c91565b614c20614c1b613100565b6145d3565b61233b614743565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061323f575050151592915050565b60185460405163140e25ad60e31b81526001600160a01b039091169063a0712d6890614581908490600401615d9d565b60195460405163317afabb60e21b81526001600160a01b039091169063c5ebeaec90614cc1908490600401615d9d565b602060405180830381600087803b158015614cdb57600080fd5b505af1158015614cef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614d139190615976565b50602360009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0476040518263ffffffff1660e01b81526004016000604051808303818588803b158015614d6457600080fd5b505af11580156140bf573d6000803e3d6000fd5b6000614d826132e8565b9050611f6881615605565b6014546040516370a0823160e01b81526000916001600160a01b0316906370a0823190614dbe903090600401615ad9565b60206040518083038186803b158015614dd657600080fd5b505afa158015614dea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614e0e9190615976565b90508015611f6857600080614e2161235a565b915091506000601460009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015614e7557600080fd5b505afa158015614e89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614ead9190615976565b90506000614ed482611386612710611386602054611f8b898c61353290919063ffffffff16565b90506000614efb83611386612710611386602054611f8b8b8d61353290919063ffffffff16565b601b54601354600654604051635d5155ef60e11b81529394506001600160a01b039283169363baa2abde93614f4693610100900481169216908b908890889030904290600401615b07565b6040805180830381600087803b158015614f5f57600080fd5b505af1158015614f73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614f97919061598e565b5050505050505050565b6019546040516305eff7ef60e21b81526000916001600160a01b0316906317bfdfbc90614fd2903090600401615ad9565b602060405180830381600087803b158015614fec57600080fd5b505af115801561251d573d6000803e3d6000fd5b60008061500c83613865565b90506000615030600a61105e6020546113866127108761353290919063ffffffff16565b601b546006546013549293506060926001600160a01b0392831692638803dbee9289928792615067928116916101009004166152d8565b30426040518663ffffffff1660e01b8152600401615089959493929190615da6565b600060405180830381600087803b1580156150a357600080fd5b505af11580156150b7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526150df9190810190615752565b905061510883826000815181106150f257fe5b60200260200101516135ee90919063ffffffff16565b95945050505050565b601a60009054906101000a90046001600160a01b03166001600160a01b0316633d18b9126040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561516157600080fd5b505af1158015615175573d6000803e3d6000fd5b50505050565b6040516370a0823160e01b81526000906001600160a01b038416906370a08231906151aa903090600401615ad9565b60206040518083038186803b1580156151c257600080fd5b505afa1580156151d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906151fa9190615976565b905080615207575061233b565b836001600160a01b03166338ed173982600061522387876152d8565b30426040518663ffffffff1660e01b8152600401615245959493929190615da6565b600060405180830381600087803b15801561525f57600080fd5b505af1158015615273573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526148239190810190615752565b6152a36132e8565b8111156152af57600080fd5b611f6881615605565b60008060006152c561235a565b909250905061323f826113868684613532565b6023546060906000906001600160a01b038581169116148061530757506023546001600160a01b038481169116145b905080615315576003615318565b60025b60ff1667ffffffffffffffff8111801561533157600080fd5b5060405190808252806020026020018201604052801561535b578160200160208202803683370190505b509150838260008151811061536c57fe5b60200260200101906001600160a01b031690816001600160a01b03168152505080156153c55782826001815181106153a057fe5b60200260200101906001600160a01b031690816001600160a01b031681525050615432565b60235482516001600160a01b0390911690839060019081106153e357fe5b60200260200101906001600160a01b031690816001600160a01b031681525050828260028151811061541157fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b5092915050565b6000806000601e60009054906101000a90046001600160a01b03166001600160a01b03166398d5fdca6040518163ffffffff1660e01b815260040160206040518083038186803b15801561548c57600080fd5b505afa1580156154a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906154c49190615976565b905060006154d061482a565b905060006154e16002611f8b613100565b905060006154ed612b53565b9050600061550684600d5461353290919063ffffffff16565b90506000838311156155645761555d61552584611f8b89612710613532565b612e2e61553c61553587896135ee565b8690613532565b61105e670de0b6b3a7640000611f8b8f600d5461353290919063ffffffff16565b90506155ab565b6155a861557784611f8b89612710613532565b612e2e61558761553588886135ee565b612e2e670de0b6b3a7640000611f8b8f600d5461353290919063ffffffff16565b90505b6155ce6155c76140486155c08561271061356c565b8990613319565b829061356c565b96506155f86155f1670de0b6b3a764000061138688611f8b88612e2e8e8c613319565b8a906135ee565b9750505050505050915091565b8015611f6857601a54604051632e1a7d4d60e01b81526001600160a01b0390911690632e1a7d4d906147f5908490600401615d9d565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061567c5782800160ff198235161785556156a9565b828001600101855582156156a9579182015b828111156156a957823582559160200191906001019061568e565b506156b5929150615705565b5090565b6040518061012001604052806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b5b808211156156b55760008155600101615706565b60006020828403121561572b578081fd5b813561333e81615eb7565b600060208284031215615747578081fd5b815161333e81615eb7565b60006020808385031215615764578182fd5b825167ffffffffffffffff81111561577a578283fd5b8301601f8101851361578a578283fd5b805161579d61579882615e6b565b615e44565b81815283810190838501858402850186018910156157b9578687fd5b8694505b838510156157db5780518352600194909401939185019185016157bd565b50979650505050505050565b6000602082840312156157f8578081fd5b813561333e81615ecc565b600060208284031215615814578081fd5b815161333e81615ecc565b60008060208385031215615831578081fd5b823567ffffffffffffffff80821115615848578283fd5b818501915085601f83011261585b578283fd5b813581811115615869578384fd5b86602082850101111561587a578384fd5b60209290920196919550909350505050565b600061012080838503121561589f578182fd5b6158a881615e44565b9050825181526020830151602082015260408301516040820152606083015160608201526080830151608082015260a083015160a082015260c083015160c082015260e083015160e08201526101008084015181830152508091505092915050565b60008060006060848603121561591e578081fd5b835161592981615eda565b602085015190935061593a81615eda565b604085015190925063ffffffff81168114615953578182fd5b809150509250925092565b60006020828403121561596f578081fd5b5035919050565b600060208284031215615987578081fd5b5051919050565b600080604083850312156159a0578182fd5b505080516020909101519092909150565b6000806000606084860312156159c5578283fd5b505081359360208301359350604090920135919050565b6000806000606084860312156159f0578081fd5b8351925060208401519150604084015190509250925092565b60008060008060808587031215615a1e578182fd5b8435935060208501359250604085013591506060850135615a3e81615ecc565b939692955090935050565b60008060008060808587031215615a5e578182fd5b5050823594602084013594506040840135936060013592509050565b6000815180845260208085019450808401835b83811015615ab25781516001600160a01b031687529582019590820190600101615a8d565b509495945050505050565b60008251615acf818460208701615e8b565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039788168152958716602087015260408601949094526060850192909252608084015290921660a082015260c081019190915260e00190565b6001600160a01b039889168152968816602088015260408701959095526060860193909352608085019190915260a084015290921660c082015260e08101919091526101000190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b60ff9290921682526001600160a01b0316602082015260400190565b60006020825282602083015282846040840137818301604090810191909152601f909201601f19160101919050565b6000602082528251806020840152615c1e816040850160208701615e8b565b601f01601f19169190910160400192915050565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b602080825260029082015261042d60f31b604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606082015260800190565b90815260200190565b600086825285602083015260a06040830152615dc560a0830186615a7a565b6001600160a01b0394909416606083015250608001529392505050565b918252602082015260400190565b9283526020830191909152604082015260600190565b93845260208401929092526040830152606082015260800190565b948552602085019390935260408401919091526060830152608082015260a00190565b60405181810167ffffffffffffffff81118282101715615e6357600080fd5b604052919050565b600067ffffffffffffffff821115615e81578081fd5b5060209081020190565b60005b83811015615ea6578181015183820152602001615e8e565b838111156151755750506000910152565b6001600160a01b0381168114611f6857600080fd5b8015158114611f6857600080fd5b6001600160701b0381168114611f6857600080fdfea26469706673582212206ae43c32aa43fa79421b106ff8252e9ae8f3f07b47d1e72ae3135d6c9e35e91e64736f6c634300060c0033608060405234801561001057600080fd5b506040516104eb3803806104eb83398101604081905261002f91610074565b600080546001600160a01b039384166001600160a01b0319918216179091556001805492841692821692909217909155600280549390921692169190911790556100d8565b600080600060608486031215610088578283fd5b8351610093816100c0565b60208501519093506100a4816100c0565b60408501519092506100b5816100c0565b809150509250925092565b6001600160a01b03811681146100d557600080fd5b50565b610404806100e76000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c806398d5fdca14610030575b600080fd5b61003861004e565b60405161004591906103c5565b60405180910390f35b600080600260009054906101000a90046001600160a01b03166001600160a01b0316637dc0d1d06040518163ffffffff1660e01b815260040160206040518083038186803b15801561009f57600080fd5b505afa1580156100b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100d791906102de565b6000805460405163fc57d4df60e01b815292935090916001600160a01b038085169263fc57d4df9261010f929091169060040161031d565b60206040518083038186803b15801561012757600080fd5b505afa15801561013b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061015f9190610305565b90508061016b57600080fd5b60015460405163fc57d4df60e01b81526000916001600160a01b038086169263fc57d4df9261019e92169060040161031d565b60206040518083038186803b1580156101b657600080fd5b505afa1580156101ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101ee9190610305565b9050806101fa57600080fd5b6102168261021083670de0b6b3a764000061021e565b9061026a565b935050505090565b60008261022d57506000610264565b8282028284828161023a57fe5b04146102615760405162461bcd60e51b815260040161025890610384565b60405180910390fd5b90505b92915050565b600061026183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250600081836102c85760405162461bcd60e51b81526004016102589190610331565b5060008385816102d457fe5b0495945050505050565b6000602082840312156102ef578081fd5b81516001600160a01b0381168114610261578182fd5b600060208284031215610316578081fd5b5051919050565b6001600160a01b0391909116815260200190565b6000602080835283518082850152825b8181101561035d57858101830151858201604001528201610341565b8181111561036e5783604083870101525b50601f01601f1916929092016040019392505050565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b9081526020019056fea26469706673582212207bdf2be9ec7f2d83a5c5b3bc26d282297ee32227b06609926d142602c79cc52a64736f6c634300060c003300000000000000000000000046fd6d30fd2cfdf75443a7bb2e4eae539c0a1255

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

00000000000000000000000046fd6d30fd2cfdf75443a7bb2e4eae539c0a1255

-----Decoded View---------------
Arg [0] : _vault (address): 0x46fd6d30fd2cfdf75443a7bb2e4eae539c0a1255

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000046fd6d30fd2cfdf75443a7bb2e4eae539c0a1255


Deployed ByteCode Sourcemap

110937:2451:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63844:460;;;;;;;;;;-1:-1:-1;63844:460:0;;;;;:::i;:::-;;:::i;:::-;;54109:25;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;78093:115;;;;;;;;;;;;;:::i;58626:175::-;;;;;;;;;;-1:-1:-1;58626:175:0;;;;;:::i;:::-;;:::i;57205:118::-;;;;;;;;;;-1:-1:-1;57205:118:0;;;;;:::i;:::-;;:::i;55336:28::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;76973:24::-;;;;;;;;;;;;;:::i;54600:18::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;54509:25::-;;;;;;;;;;;;;:::i;59356:174::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;54210:91::-;;;;;;;;;;;;;:::i;55262:29::-;;;;;;;;;;;;;:::i;99851:141::-;;;;;;;;;;;;;:::i;62925:279::-;;;;;;;;;;-1:-1:-1;62925:279:0;;;;;:::i;:::-;;:::i;82880:458::-;;;;;;;;;;-1:-1:-1;82880:458:0;;;;;:::i;:::-;;:::i;76222:19::-;;;;;;;;;;;;;:::i;58125:154::-;;;;;;;;;;-1:-1:-1;58125:154:0;;;;;:::i;:::-;;:::i;76687:33::-;;;;;;;;;;;;;:::i;75865:31::-;;;;;;;;;;;;;:::i;101127:619::-;;;;;;;;;;;;;:::i;60255:95::-;;;;;;;;;;;;;:::i;61561:1356::-;;;;;;;;;;;;;:::i;55373:25::-;;;;;;;;;;;;;:::i;102011:140::-;;;;;;;;;;;;;:::i;82469:403::-;;;;;;;;;;-1:-1:-1;82469:403:0;;;;;:::i;:::-;;:::i;60096:151::-;;;;;;;;;;-1:-1:-1;60096:151:0;;;;;:::i;:::-;;:::i;54143:25::-;;;;;;;;;;;;;:::i;82029:179::-;;;;;;;;;;-1:-1:-1;82029:179:0;;;;;:::i;:::-;;:::i;57672:174::-;;;;;;;;;;-1:-1:-1;57672:174:0;;;;;:::i;:::-;;:::i;58809:194::-;;;;;;;;;;-1:-1:-1;58809:194:0;;;;;:::i;:::-;;:::i;75745:34::-;;;;;;;;;;;;;:::i;81629:392::-;;;;;;;;;;-1:-1:-1;81629:392:0;;;;;:::i;:::-;;:::i;76610:26::-;;;;;;;;;;;;;:::i;84831:277::-;;;;;;;;;;;;;:::i;98276:141::-;;;;;;;;;;;;;:::i;76118:33::-;;;;;;;;;;;;;:::i;76643:35::-;;;;;;;;;;;;;:::i;55300:27::-;;;;;;;;;;;;;:::i;54379:94::-;;;;;;;;;;;;;:::i;82216:245::-;;;;;;;;;;-1:-1:-1;82216:245:0;;;;;:::i;:::-;;:::i;58449:169::-;;;;;;;;;;-1:-1:-1;58449:169:0;;;;;:::i;:::-;;:::i;55224:29::-;;;;;;;;;;;;;:::i;54541:22::-;;;;;;;;;;;;;:::i;75786:33::-;;;;;;;;;;;;;:::i;102159:241::-;;;;;;;;;;;;;:::i;57331:123::-;;;;;;;;;;-1:-1:-1;57331:123:0;;;;;:::i;:::-;;:::i;54570:21::-;;;;;;;;;;;;;:::i;83346:117::-;;;;;;;;;;-1:-1:-1;83346:117:0;;;;;:::i;:::-;;:::i;76783:42::-;;;;;;;;;;;;;:::i;54175:26::-;;;;;;;;;;;;;:::i;98661:469::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::i;75826:32::-;;;;;;;;;;;;;:::i;101771:112::-;;;;;;;;;;;;;:::i;57462:202::-;;;;;;;;;;-1:-1:-1;57462:202:0;;;;;:::i;:::-;;:::i;100801:121::-;;;;;;;;;;;;;:::i;63285:286::-;;;;;;;;;;-1:-1:-1;63285:286:0;;;;;:::i;:::-;;:::i;76846:40::-;;;;;;;;;;;;;:::i;85209:260::-;;;;;;;;;;;;;:::i;98512:141::-;;;;;;;;;;;;;:::i;100046:241::-;;;;;;;;;;;;;:::i;57854:263::-;;;;;;;;;;-1:-1:-1;57854:263:0;;;;;:::i;:::-;;:::i;100352:133::-;;;;;;;;;;;;;:::i;60500:1053::-;;;;;;;;;;-1:-1:-1;60500:1053:0;;;;;:::i;:::-;;:::i;98008:203::-;;;;;;;;;;;;;:::i;97819:135::-;;;;;;;;;;;;;:::i;58287:154::-;;;;;;;;;;-1:-1:-1;58287:154:0;;;;;:::i;:::-;;:::i;75903:39::-;;;;;;;;;;;;;:::i;100988:131::-;;;;;;;;;;;;;:::i;75705:33::-;;;;;;;;;;;;;:::i;76160:31::-;;;;;;;;;;;;;:::i;54481:21::-;;;;;;;;;;;;;:::i;63579:173::-;;;;;;;;;;;;;:::i;101891:112::-;;;;;;;;;;;;;:::i;63844:460::-;55974:12;:10;:12::i;:::-;-1:-1:-1;;;;;55960:26:0;:10;-1:-1:-1;;;;;55960:26:0;;55952:35;;;;;;63936:4:::1;::::0;-1:-1:-1;;;;;63918:23:0;;::::1;63936:4:::0;::::1;63918:23;;63910:32;;;::::0;::::1;;63979:5;::::0;-1:-1:-1;;;;;63961:24:0;;::::1;63979:5:::0;::::1;63961:24;;63953:33;;;::::0;::::1;;63999;64035:17;:15;:17::i;:::-;63999:53;;64068:9;64063:101;64083:16;:23;64079:1;:27;64063:101;;;64144:16;64161:1;64144:19;;;;;;;;;;;;;;-1:-1:-1::0;;;;;64134:29:0::1;:6;-1:-1:-1::0;;;;;64134:29:0::1;;;64126:38;;;::::0;::::1;;64108:3;;64063:101;;;;64177:119;64219:12;:10;:12::i;:::-;64246:39;::::0;-1:-1:-1;;;64246:39:0;;-1:-1:-1;;;;;64246:24:0;::::1;::::0;::::1;::::0;:39:::1;::::0;64279:4:::1;::::0;64246:39:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;64177:27:0;::::1;::::0;:119;:27:::1;:119::i;:::-;55998:1;63844:460:::0;:::o;54109:25::-;;;;;;;;;;;;;;;-1:-1:-1;;54109:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;78093:115::-;78167:33;;;;;;;;;;;;;;;;;78093:115;:::o;58626:175::-;55466:10;;-1:-1:-1;;;;;55466:10:0;55452;:24;;:54;;;55494:12;:10;:12::i;:::-;-1:-1:-1;;;;;55480:26:0;:10;-1:-1:-1;;;;;55480:26:0;;55452:54;55444:63;;;;;;58711:13:::1;:30:::0;;;58757:36:::1;::::0;::::1;::::0;::::1;::::0;58727:14;;58757:36:::1;:::i;:::-;;;;;;;;58626:175:::0;:::o;57205:118::-;56388:5;;;;;;;;;-1:-1:-1;;;;;56388:5:0;-1:-1:-1;;;;;56388:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;56374:32:0;:10;-1:-1:-1;;;;;56374:32:0;;:62;;;;56424:12;:10;:12::i;:::-;-1:-1:-1;;;;;56410:26:0;:10;-1:-1:-1;;;;;56410:26:0;;56374:62;56366:71;;;;;;57289:11:::1;:26:::0;;-1:-1:-1;;;;;57289:26:0;;::::1;;;-1:-1:-1::0;;;;;;57289:26:0;;::::1;::::0;;;::::1;::::0;;57205:118::o;55336:28::-;;;;:::o;76973:24::-;;;;:::o;54600:18::-;;;-1:-1:-1;;;;;54600:18:0;;:::o;54509:25::-;;;-1:-1:-1;;;;;54509:25:0;;:::o;59356:174::-;59434:5;;:31;;-1:-1:-1;;;59434:31:0;;59397:4;;;;-1:-1:-1;;;;;59434:5:0;;;;:16;;:31;;59459:4;;59434:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:41;;;:45;:88;;;;59521:1;59496:22;:20;:22::i;:::-;:26;59434:88;59414:108;;59356:174;:::o;54210:91::-;54279:14;;;;;;;;;;;;-1:-1:-1;;;54279:14:0;;;;54210:91;:::o;55262:29::-;;;;:::o;99851:141::-;99947:11;;:36;;-1:-1:-1;;;99947:36:0;;99900:7;;99927:57;;-1:-1:-1;;;;;99947:11:0;;;;:21;;:36;;99977:4;;99947:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;99927:15;:13;:15::i;:::-;:19;;:57::i;62925:279::-;63040:5;;62984:13;;-1:-1:-1;;;;;63040:5:0;63018:10;:28;63010:37;;;;;;63058:19;63111:32;63129:13;63111:17;:32::i;:::-;63154:4;;63088:55;;-1:-1:-1;63088:55:0;;-1:-1:-1;63154:42:0;;-1:-1:-1;;;;;63154:4:0;63172:10;63088:55;63154:17;:42::i;:::-;62925:279;;;;:::o;82880:458::-;55466:10;;-1:-1:-1;;;;;55466:10:0;55452;:24;;:54;;;55494:12;:10;:12::i;:::-;-1:-1:-1;;;;;55480:26:0;:10;-1:-1:-1;;;;;55480:26:0;;55452:54;55444:63;;;;;;76771:5:::1;83064:6;:25;;83056:34;;;::::0;::::1;;83101:11;:20:::0;;;83140;;::::1;83132:29;;;::::0;::::1;;83190:7;83180:6;:17;;83172:26;;;::::0;::::1;;83228:6;83217:7;:17;;83209:26;;;::::0;::::1;;-1:-1:-1::0;83246:11:0::1;:20:::0;83277:12:::1;:22:::0;83310:11:::1;:20:::0;82880:458::o;76222:19::-;;;;;;-1:-1:-1;;;;;76222:19:0;;:::o;58125:154::-;55466:10;;-1:-1:-1;;;;;55466:10:0;55452;:24;;:54;;;55494:12;:10;:12::i;:::-;-1:-1:-1;;;;;55480:26:0;:10;-1:-1:-1;;;;;55480:26:0;;55452:54;55444:63;;;;;;58203:14:::1;:23:::0;;;58242:29:::1;::::0;::::1;::::0;::::1;::::0;58220:6;;58242:29:::1;:::i;76687:33::-:0;;;;:::o;75865:31::-;;;;:::o;101127:619::-;101304:9;;:34;;-1:-1:-1;;;101304:34:0;;101189:7;;;;101247:106;;-1:-1:-1;;;;;101304:9:0;;:19;;:34;;101332:4;;101304:34;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;101247;101275:4;101247:19;:34::i;:106::-;101386:9;;101414:11;;101386:41;;-1:-1:-1;;;101386:41:0;;101209:144;;-1:-1:-1;101364:19:0;;-1:-1:-1;;;;;101386:9:0;;;;:19;;:41;;101414:11;;;101386:41;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;101458:5;;101482:11;;101458:37;;-1:-1:-1;;;101458:37:0;;101364:63;;-1:-1:-1;101438:17:0;;-1:-1:-1;;;;;101458:5:0;;;;;;;:15;;:37;;101482:11;;;101458:37;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;101438:57;;101507:16;101525:17;101546:15;:13;:15::i;:::-;101506:55;;-1:-1:-1;101506:55:0;-1:-1:-1;101574:16:0;101593:46;101627:11;101593:29;:14;101612:9;101593:18;:29::i;:::-;:33;;:46::i;:::-;101574:65;-1:-1:-1;101650:18:0;101671:37;101698:9;101671:22;101574:65;101684:8;101671:12;:22::i;:37::-;101650:58;-1:-1:-1;;;;;;;;101127:619:0;:::o;60255:95::-;56085:6;;-1:-1:-1;;;;;56085:6:0;56071:10;:20;;:65;;-1:-1:-1;56126:10:0;;-1:-1:-1;;;;;56126:10:0;56112;:24;56071:65;:112;;;;56171:12;:10;:12::i;:::-;-1:-1:-1;;;;;56157:26:0;:10;-1:-1:-1;;;;;56157:26:0;;56071:112;:163;;;;56218:5;;;;;;;;;-1:-1:-1;;;;;56218:5:0;-1:-1:-1;;;;;56218:14:0;;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;56204:30:0;:10;-1:-1:-1;;;;;56204:30:0;;56071:163;:216;;;;56269:5;;;;;;;;;-1:-1:-1;;;;;56269:5:0;-1:-1:-1;;;;;56269:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;56255:32:0;:10;-1:-1:-1;;;;;56255:32:0;;56071:216;56049:249;;;;;;60318:5:::1;::::0;:23:::1;::::0;;-1:-1:-1;;;60318:23:0;;;;60303:39:::1;::::0;-1:-1:-1;;;;;60318:5:0::1;::::0;:21:::1;::::0;:23:::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;:5;:23;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;60303:14;:39::i;:::-;60255:95::o:0;61561:1356::-;56085:6;;-1:-1:-1;;;;;56085:6:0;56071:10;:20;;:65;;-1:-1:-1;56126:10:0;;-1:-1:-1;;;;;56126:10:0;56112;:24;56071:65;:112;;;;56171:12;:10;:12::i;:::-;-1:-1:-1;;;;;56157:26:0;:10;-1:-1:-1;;;;;56157:26:0;;56071:112;:163;;;;56218:5;;;;;;;;;-1:-1:-1;;;;;56218:5:0;-1:-1:-1;;;;;56218:14:0;;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;56204:30:0;:10;-1:-1:-1;;;;;56204:30:0;;56071:163;:216;;;;56269:5;;;;;;;;;-1:-1:-1;;;;;56269:5:0;-1:-1:-1;;;;;56269:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;56255:32:0;:10;-1:-1:-1;;;;;56255:32:0;;56071:216;56049:249;;;;;;61612:14:::1;61641:12:::0;61668:23:::1;61694:5;;;;;;;;;-1:-1:-1::0;;;;;61694:5:0::1;-1:-1:-1::0;;;;;61694:21:0::1;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61766:13;::::0;61668:49;;-1:-1:-1;61728:19:0::1;::::0;61766:13:::1;;61762:478;;;61796:19;61818:23;:21;:23::i;:::-;61796:45;;61874:15;61860:11;:29;61856:226;;;61917:32;:15:::0;61937:11;61917:19:::1;:32::i;:::-;61910:39;;61856:226;;;61989:15;61975:11;:29;61971:111;;;62034:32;:11:::0;62050:15;62034::::1;:32::i;:::-;62025:41;;61971:111;62110:25;:15:::0;62130:4;62110:19:::1;:25::i;:::-;62096:39;;61762:478;;;;62198:30;62212:15;62198:13;:30::i;:::-;62168:60:::0;;-1:-1:-1;62168:60:0;-1:-1:-1;62168:60:0;-1:-1:-1;61762:478:0::1;62272:5;::::0;:31:::1;::::0;-1:-1:-1;;;62272:31:0;;62252:17:::1;::::0;-1:-1:-1;;;;;62272:5:0::1;::::0;:16:::1;::::0;:31:::1;::::0;62297:4:::1;::::0;62272:31:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:41;;::::0;62342:5:::1;::::0;:39:::1;::::0;-1:-1:-1;;;62342:39:0;;62272:41;;-1:-1:-1;;;;;;62342:5:0::1;::::0;:12:::1;::::0;:39:::1;::::0;62355:6;;62363:4;;62369:11;;62342:39:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;62324:57;;62394:31;62409:15;62394:14;:31::i;:::-;62442:13;::::0;::::1;;:42:::0;::::1;;;-1:-1:-1::0;62459:11:0::1;::::0;::::1;::::0;::::1;-1:-1:-1::0;;;;;62459:11:0::1;:25:::0;::::1;62442:42;62438:401;;;62539:11;::::0;62527:209:::1;::::0;-1:-1:-1;;;62527:209:0;;62539:11:::1;::::0;;::::1;-1:-1:-1::0;;;;;62539:11:0::1;::::0;62527:30:::1;::::0;:209:::1;::::0;62580:6;;62609:4;;62636:11;;62670:15;;62708:9;;62527:209:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;62501:273;;;;-1:-1:-1::0;;;62501:273:0::1;;;;;;;:::i;:::-;;;;;;;;;62438:401;;;62823:4;62807:20:::0;;-1:-1:-1;;62807:20:0::1;::::0;::::1;::::0;;62438:401:::1;62856:53;62866:6;62874:4;62880:11;62893:15;62856:53;;;;;;;;;:::i;:::-;;;;;;;;56309:1;;;;;61561:1356::o:0;55373:25::-;;;;;;:::o;102011:140::-;102111:5;;:30;;-1:-1:-1;;;102111:30:0;;102062:7;;102090:52;;102111:5;;;;-1:-1:-1;;;;;102111:5:0;;:15;;:30;;102135:4;;102111:30;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;102090:20;:52::i;82469:403::-;55466:10;;-1:-1:-1;;;;;55466:10:0;55452;:24;;:54;;;55494:12;:10;:12::i;:::-;-1:-1:-1;;;;;55480:26:0;:10;-1:-1:-1;;;;;55480:26:0;;55452:54;55444:63;;;;;;76771:5:::1;82632:6;:25;;82624:34;;;::::0;::::1;;76771:5;82677:17;:36;;82669:45;;;::::0;::::1;;76771:5;82733:6;:25;;82725:34;;;::::0;::::1;;82770:16;:36:::0;82817:9:::1;:18:::0;82846:9:::1;:18:::0;82469:403::o;60096:151::-;60205:4;60096:151;;;;:::o;54143:25::-;;;;;;:::o;82029:179::-;55466:10;;-1:-1:-1;;;;;55466:10:0;55452;:24;;:54;;;55494:12;:10;:12::i;:::-;-1:-1:-1;;;;;55480:26:0;:10;-1:-1:-1;;;;;55480:26:0;;55452:54;55444:63;;;;;;82122:9:::1;::::0;-1:-1:-1;;;;;82122:9:0::1;82114:32:::0;82106:41:::1;;;::::0;::::1;;82158:9;:42:::0;;-1:-1:-1;;;;;;82158:42:0::1;-1:-1:-1::0;;;;;82158:42:0;;;::::1;::::0;;;::::1;::::0;;82029:179::o;57672:174::-;55466:10;;-1:-1:-1;;;;;55466:10:0;55452;:24;;:54;;;55494:12;:10;:12::i;:::-;-1:-1:-1;;;;;55480:26:0;:10;-1:-1:-1;;;;;55480:26:0;;55452:54;55444:63;;;;;;-1:-1:-1;;;;;57751:21:0;::::1;57743:30;;;::::0;::::1;;57784:6;:16:::0;;-1:-1:-1;;;;;;57784:16:0::1;-1:-1:-1::0;;;;;57784:16:0;::::1;;::::0;;57816:22:::1;::::0;::::1;::::0;::::1;::::0;57784:16;;57816:22:::1;:::i;58809:194::-:0;55466:10;;-1:-1:-1;;;;;55466:10:0;55452;:24;;:54;;;55494:12;:10;:12::i;:::-;-1:-1:-1;;;;;55480:26:0;:10;-1:-1:-1;;;;;55480:26:0;;55452:54;55444:63;;;;;;58921:26:::1;:11;58935:12:::0;;58921:26:::1;:::i;:::-;;58963:32;58982:12;;58963:32;;;;;;;:::i;:::-;;;;;;;;58809:194:::0;;:::o;75745:34::-;;;;:::o;81629:392::-;55466:10;;-1:-1:-1;;;;;55466:10:0;55452;:24;;:54;;;55494:12;:10;:12::i;:::-;-1:-1:-1;;;;;55480:26:0;:10;-1:-1:-1;;;;;55480:26:0;;55452:54;55444:63;;;;;;81838:11:::1;:26:::0;;;;81875:21:::1;:46:::0;81932:19:::1;:42:::0;81985:12:::1;:28:::0;;-1:-1:-1;;81985:28:0::1;::::0;::::1;;::::0;;;::::1;::::0;;81629:392::o;76610:26::-;;;-1:-1:-1;;;;;76610:26:0;;:::o;84831:277::-;56085:6;;-1:-1:-1;;;;;56085:6:0;56071:10;:20;;:65;;-1:-1:-1;56126:10:0;;-1:-1:-1;;;;;56126:10:0;56112;:24;56071:65;:112;;;;56171:12;:10;:12::i;:::-;-1:-1:-1;;;;;56157:26:0;:10;-1:-1:-1;;;;;56157:26:0;;56071:112;:163;;;;56218:5;;;;;;;;;-1:-1:-1;;;;;56218:5:0;-1:-1:-1;;;;;56218:14:0;;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;56204:30:0;:10;-1:-1:-1;;;;;56204:30:0;;56071:163;:216;;;;56269:5;;;;;;;;;-1:-1:-1;;;;;56269:5:0;-1:-1:-1;;;;;56269:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;56255:32:0;:10;-1:-1:-1;;;;;56255:32:0;;56071:216;56049:249;;;;;;84945:19:::1;84967:16;:14;:16::i;:::-;84945:38;;85017:11;;85002;:26;;:56;;;;85047:11;;85032;:26;;85002:56;84994:65;;;::::0;::::1;;85070:30;:28;:30::i;:::-;56309:1;84831:277::o:0;98276:141::-;98322:7;98350:58;98396:11;:9;:11::i;:::-;98350:41;98389:1;98350:34;76771:5;98350:13;:11;:13::i;:::-;:17;;:34::i;76118:33::-;;;;:::o;76643:35::-;;;-1:-1:-1;;;;;76643:35:0;;:::o;55300:27::-;;;;:::o;54379:94::-;54437:7;54379:94;:::o;82216:245::-;55974:12;:10;:12::i;:::-;-1:-1:-1;;;;;55960:26:0;:10;-1:-1:-1;;;;;55960:26:0;;55952:35;;;;;;-1:-1:-1;;;;;82308:36:0;::::1;::::0;82300:45:::1;;;::::0;::::1;;82356:9;::::0;:41:::1;::::0;-1:-1:-1;;;82356:41:0;;-1:-1:-1;;;;;82356:9:0;;::::1;::::0;:26:::1;::::0;:41:::1;::::0;82383:13;;82356:41:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;82408:9:0::1;:45:::0;;-1:-1:-1;;;;;;82408:45:0::1;-1:-1:-1::0;;;;;82408:45:0;;;::::1;::::0;;;::::1;::::0;;;-1:-1:-1;;82216:245:0:o;58449:169::-;55466:10;;-1:-1:-1;;;;;55466:10:0;55452;:24;;:54;;;55494:12;:10;:12::i;:::-;-1:-1:-1;;;;;55480:26:0;:10;-1:-1:-1;;;;;55480:26:0;;55452:54;55444:63;;;;;;58532:12:::1;:28:::0;;;58576:34:::1;::::0;::::1;::::0;::::1;::::0;58547:13;;58576:34:::1;:::i;55224:29::-:0;;;;:::o;54541:22::-;;;-1:-1:-1;;;;;54541:22:0;;:::o;75786:33::-;;;;:::o;102159:241::-;102203:7;102245:136;102376:4;102245:108;102321:10;;;;;;;;;-1:-1:-1;;;;;102321:10:0;-1:-1:-1;;;;;102321:29:0;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;102245:10;;:53;;-1:-1:-1;;;102245:53:0;;-1:-1:-1;;;;;102245:10:0;;;;:38;;:53;;102292:4;;102245:53;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;57331:123::-;56388:5;;;;;;;;;-1:-1:-1;;;;;56388:5:0;-1:-1:-1;;;;;56388:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;56374:32:0;:10;-1:-1:-1;;;;;56374:32:0;;:62;;;;56424:12;:10;:12::i;:::-;-1:-1:-1;;;;;56410:26:0;:10;-1:-1:-1;;;;;56410:26:0;;56374:62;56366:71;;;;;;57416:13:::1;:30:::0;;-1:-1:-1;;57416:30:0::1;::::0;::::1;;::::0;;;::::1;::::0;;57331:123::o;54570:21::-;;;-1:-1:-1;;;;;54570:21:0;;:::o;83346:117::-;55466:10;;-1:-1:-1;;;;;55466:10:0;55452;:24;;:54;;;55494:12;:10;:12::i;:::-;-1:-1:-1;;;;;55480:26:0;:10;-1:-1:-1;;;;;55480:26:0;;55452:54;55444:63;;;;;;83429:26:::1;83447:7;83429:17;:26::i;:::-;;;83346:117:::0;:::o;76783:42::-;;;;:::o;54175:26::-;;;;;;-1:-1:-1;;;;;54175:26:0;;:::o;98661:469::-;98734:17;98753:18;98790:17;98809;98832:11;;;;;;;;;-1:-1:-1;;;;;98832:11:0;-1:-1:-1;;;;;98832:23:0;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;98904:4:0;;98872:11;;:20;;;-1:-1:-1;;;98872:20:0;;;;98789:68;;-1:-1:-1;98789:68:0;;-1:-1:-1;;;;;;98904:4:0;;;;98872:11;;;:18;;:20;;;;;;;;;;;;;;:11;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;98872:37:0;;98868:255;;;98946:9;-1:-1:-1;;;;;98938:18:0;98926:30;;98992:9;-1:-1:-1;;;;;98984:18:0;98971:31;;98868:255;;;99055:9;-1:-1:-1;;;;;99047:18:0;99035:30;;99101:9;-1:-1:-1;;;;;99093:18:0;99080:31;;98868:255;98661:469;;;;:::o;75826:32::-;;;;:::o;101771:112::-;101845:4;;:29;;-1:-1:-1;;;101845:29:0;;101817:7;;-1:-1:-1;;;;;101845:4:0;;:14;;:29;;101868:4;;101845:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;57462:202::-;55466:10;;-1:-1:-1;;;;;55466:10:0;55452;:24;;:54;;;55494:12;:10;:12::i;:::-;-1:-1:-1;;;;;55480:26:0;:10;-1:-1:-1;;;;;55480:26:0;;55452:54;55444:63;;;;;;-1:-1:-1;;;;;57549:25:0;::::1;57541:34;;;::::0;::::1;;57586:10;:24:::0;;-1:-1:-1;;;;;;57586:24:0::1;-1:-1:-1::0;;;;;57586:24:0;::::1;;::::0;;57626:30:::1;::::0;::::1;::::0;::::1;::::0;57586:24;;57626:30:::1;:::i;100801:121::-:0;100845:7;100872:42;100893:20;:18;:20::i;63285:286::-;63374:5;;-1:-1:-1;;;;;63374:5:0;63352:10;:28;63344:37;;;;;;63443:5;;63400:39;;;-1:-1:-1;;;63400:39:0;;;;-1:-1:-1;;;;;63443:5:0;;;;63400:37;;;;;:39;;;;;;;;;;;;;;:37;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;63400:48:0;;63392:57;;;;;;63460:30;63477:12;63460:16;:30::i;:::-;63533:4;;:29;;-1:-1:-1;;;63533:29:0;;63501:62;;63519:12;;-1:-1:-1;;;;;63533:4:0;;;;:14;;:29;;63556:4;;63533:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;63501:4;;-1:-1:-1;;;;;63501:4:0;;:62;:17;:62::i;76846:40::-;;;;:::o;85209:260::-;56085:6;;-1:-1:-1;;;;;56085:6:0;56071:10;:20;;:65;;-1:-1:-1;56126:10:0;;-1:-1:-1;;;;;56126:10:0;56112;:24;56071:65;:112;;;;56171:12;:10;:12::i;:::-;-1:-1:-1;;;;;56157:26:0;:10;-1:-1:-1;;;;;56157:26:0;;56071:112;:163;;;;56218:5;;;;;;;;;-1:-1:-1;;;;;56218:5:0;-1:-1:-1;;;;;56218:14:0;;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;56204:30:0;:10;-1:-1:-1;;;;;56204:30:0;;56071:163;:216;;;;56269:5;;;;;;;;;-1:-1:-1;;;;;56269:5:0;-1:-1:-1;;;;;56269:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;56255:32:0;:10;-1:-1:-1;;;;;56255:32:0;;56071:216;56049:249;;;;;;85266:17:::1;85286:15;:13;:15::i;:::-;85266:35;;85332:9;;85320;:21;:46;;;;85357:9;;85345;:21;85320:46;85312:55;;;::::0;::::1;;85386:39;85403:21;;85386:16;:39::i;:::-;85378:48;;;::::0;::::1;;85437:24;:22;:24::i;98512:141::-:0;98559:7;98586:59;98631:13;:11;:13::i;:::-;98586:40;76771:5;98586:19;:17;:19::i;100046:241::-;100088:7;100109:16;100131:15;:13;:15::i;:::-;100108:38;;;100177:102;100239:11;;;;;;;;;-1:-1:-1;;;;;100239:11:0;-1:-1:-1;;;;;100239:23:0;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;100177:39;100214:1;100177:32;100200:8;100177:18;:16;:18::i;:102::-;100157:122;;;100046:241;:::o;57854:263::-;55876:10;;-1:-1:-1;;;;;55876:10:0;55862;:24;55854:33;;;;;;-1:-1:-1;;;;;57935:22:0;::::1;57927:31;;;::::0;::::1;;57969:5;::::0;57983:7:::1;::::0;;57969:25:::1;::::0;-1:-1:-1;;;57969:25:0;;-1:-1:-1;;;;;57969:5:0;;::::1;::::0;:13:::1;::::0;:25:::1;::::0;57983:7;;::::1;::::0;57969:5:::1;::::0;:25:::1;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;58005:7:0::1;:18:::0;;-1:-1:-1;;;;;;58005:18:0::1;-1:-1:-1::0;;;;;58005:18:0;;::::1;::::0;;;::::1;::::0;;;58034:5:::1;::::0;:35:::1;::::0;-1:-1:-1;;;58034:35:0;;:5;;::::1;::::0;:13:::1;::::0;:35:::1;::::0;58048:7:::1;::::0;-1:-1:-1;;58065:2:0;58034:35:::1;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;58085:24;58100:8;58085:24;;;;;;:::i;100352:133::-:0;100430:12;;:47;;-1:-1:-1;;;100430:47:0;;100403:7;;-1:-1:-1;;;;;100430:12:0;;:32;;:47;;100471:4;;100430:47;;;:::i;60500:1053::-;60612:4;;60767:28;;:::i;:::-;60798:5;;:31;;-1:-1:-1;;;60798:31:0;;-1:-1:-1;;;;;60798:5:0;;;;:16;;:31;;60823:4;;60798:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;60767:62;;60846:6;:17;;;60867:1;60846:22;60842:40;;;60877:5;60870:12;;;;;;60842:40;60940:14;;60919:17;;;;60899:38;;:15;;:19;:38::i;:::-;:55;60895:86;;;60976:5;60969:12;;;;;;60895:86;61040:14;;61018:17;;;;60998:38;;:15;;:19;:38::i;:::-;:56;60994:86;;61076:4;61069:11;;;;;;60994:86;61115:5;;:23;;;-1:-1:-1;;;61115:23:0;;;;61093:19;;-1:-1:-1;;;;;61115:5:0;;:21;;:23;;;;;;;;;;;;;;:5;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61093:45;;61167:13;;61153:11;:27;61149:44;;;61189:4;61182:11;;;;;;;61149:44;61206:13;61222:22;:20;:22::i;:::-;61206:38;;61288:6;:16;;;61261:24;61271:13;;61261:5;:9;;:24;;;;:::i;:::-;:43;61257:60;;;61313:4;61306:11;;;;;;;;61257:60;61330:14;61371:6;:16;;;61363:5;:24;61359:66;;;61408:16;;;;61398:27;;:5;;:9;:27::i;:::-;61389:36;;61359:66;61455:5;;:23;;;-1:-1:-1;;;61455:23:0;;;;61438:14;;-1:-1:-1;;;;;61455:5:0;;:21;;:23;;;;;;;;;;;;;;:5;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61438:40;-1:-1:-1;61526:18:0;61438:40;61537:6;61526:10;:18::i;:::-;61497:12;;:26;;61514:8;61497:16;:26::i;:::-;:47;;60500:1053;-1:-1:-1;;;;;;;;60500:1053:0:o;98008:203::-;98056:7;98096:107;98175:13;:11;:13::i;:::-;98096:56;98131:20;:18;:20::i;:::-;98096:30;98114:11;:9;:11::i;:::-;98096:13;:11;:13::i;:56::-;:60;;:107::i;97819:135::-;97881:7;97908:38;97928:17;:15;:17::i;:::-;97908:15;:13;:15::i;58287:154::-;55466:10;;-1:-1:-1;;;;;55466:10:0;55452;:24;;:54;;;55494:12;:10;:12::i;:::-;-1:-1:-1;;;;;55480:26:0;:10;-1:-1:-1;;;;;55480:26:0;;55452:54;55444:63;;;;;;58365:14:::1;:23:::0;;;58404:29:::1;::::0;::::1;::::0;::::1;::::0;58382:6;;58404:29:::1;:::i;75903:39::-:0;;;;:::o;100988:131::-;101038:7;101065:46;101090:20;:18;:20::i;:::-;101065:24;:46::i;75705:33::-;;;;:::o;76160:31::-;;;;;;:::o;54481:21::-;;;-1:-1:-1;;;;;54481:21:0;;:::o;63579:173::-;55617:10;;-1:-1:-1;;;;;55617:10:0;55603;:24;;:71;;;55662:12;:10;:12::i;:::-;-1:-1:-1;;;;;55648:26:0;:10;-1:-1:-1;;;;;55648:26:0;;55603:71;:122;;;;55709:5;;;;;;;;;-1:-1:-1;;;;;55709:5:0;-1:-1:-1;;;;;55709:14:0;;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;55695:30:0;:10;-1:-1:-1;;;;;55695:30:0;;55603:122;:175;;;;55760:5;;;;;;;;;-1:-1:-1;;;;;55760:5:0;-1:-1:-1;;;;;55760:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;55746:32:0;:10;-1:-1:-1;;;;;55746:32:0;;55603:175;55581:208;;;;;;63651:13:::1;:20:::0;;-1:-1:-1;;63651:20:0::1;63667:4;63651:20;::::0;;63682:5:::1;::::0;:22:::1;::::0;;-1:-1:-1;;;63682:22:0;;;;-1:-1:-1;;;;;63682:5:0;;::::1;::::0;:20:::1;::::0;:22:::1;::::0;;::::1;::::0;63651:13:::1;::::0;63682:22;;;;;;;;63651:13;63682:5;:22;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;63722:22:0::1;::::0;::::1;::::0;-1:-1:-1;63722:22:0;;-1:-1:-1;63722:22:0::1;63579:173::o:0;101891:112::-;101964:5;;:30;;-1:-1:-1;;;101964:30:0;;101936:7;;101964:5;;;-1:-1:-1;;;;;101964:5:0;;:15;;:30;;101988:4;;101964:30;;;:::i;36328:622::-;36698:10;;;36697:62;;-1:-1:-1;36714:39:0;;-1:-1:-1;;;36714:39:0;;-1:-1:-1;;;;;36714:15:0;;;;;:39;;36738:4;;36745:7;;36714:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;36697:62;36689:152;;;;-1:-1:-1;;;36689:152:0;;;;;;;:::i;:::-;36852:90;36872:5;36902:22;;;36926:7;36935:5;36879:62;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;36879:62:0;;;;;;;;;;;;;;-1:-1:-1;;;;;36879:62:0;-1:-1:-1;;;;;;36879:62:0;;;;;;;;;;36852:19;:90::i;3857:196::-;3960:12;3992:53;4015:6;4023:4;4029:1;4032:12;3992:22;:53::i;:::-;3985:60;3857:196;-1:-1:-1;;;;3857:196:0:o;59011:98::-;59083:5;;:18;;;-1:-1:-1;;;59083:18:0;;;;59056:7;;-1:-1:-1;;;;;59083:5:0;;:16;;:18;;;;;;;;;;;;;;:5;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;110779:120::-;110874:16;110779:120;:::o;35669:177::-;35752:86;35772:5;35802:23;;;35827:2;35831:5;35779:58;;;;;;;;;:::i;113251:134::-;113347:4;;113335:42;;-1:-1:-1;;;113335:42:0;;113308:7;;-1:-1:-1;;;;;113347:4:0;;113335:27;;:42;;113371:4;;113335:42;;;:::i;11190:181::-;11248:7;11280:5;;;11304:6;;;;11296:46;;;;-1:-1:-1;;;11296:46:0;;;;;;;:::i;:::-;11362:1;-1:-1:-1;11190:181:0;;;;;:::o;93257:1424::-;93361:25;93388:13;93419:19;93441:15;:13;:15::i;:::-;93419:37;;93467:19;93489:22;:20;:22::i;:::-;93467:44;-1:-1:-1;93811:13:0;93791:17;93855:15;:13;:15::i;:::-;93835:35;;93897:11;93885:9;:23;93881:238;;;93925:13;93941:45;93976:9;93941:30;:11;76942:4;93941:15;:30::i;:45::-;93925:61;-1:-1:-1;94013:43:0;76942:4;94013:24;:13;93925:61;94013:17;:24::i;:43::-;94001:55;-1:-1:-1;94079:28:0;:13;94001:55;94079:17;:28::i;:::-;94071:36;;93881:238;;94174:17;94195:20;94205:9;94195;:20::i;:::-;94171:44;-1:-1:-1;94234:20:0;;-1:-1:-1;94234:5:0;94171:44;94234:9;:20::i;:::-;94226:28;;94450:15;:13;:15::i;:::-;94430:35;-1:-1:-1;94511:13:0;94480:28;94430:35;94502:5;94480:21;:28::i;:::-;:44;94476:198;;;94561:24;:13;94579:5;94561:17;:24::i;:::-;94541:44;;94476:198;;;94626:36;:13;94644:17;94626;:36::i;:::-;94618:44;;94476:198;93257:1424;;;;;;;;:::o;112530:308::-;112795:9;;:34;;-1:-1:-1;;;112795:34:0;;112642:7;;112687:143;;-1:-1:-1;;;;;112795:9:0;;;;:19;;:34;;112823:4;;112795:34;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;112761:9;;112687:85;;-1:-1:-1;;;112687:85:0;;111123:42;;112687:50;;:85;;112746:4;;-1:-1:-1;;;;;112761:9:0;;;;112687:85;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;12544:471::-;12602:7;12847:6;12843:47;;-1:-1:-1;12877:1:0;12870:8;;12843:47;12914:5;;;12918:1;12914;:5;:1;12938:5;;;;;:10;12930:56;;;;-1:-1:-1;;;12930:56:0;;;;;;;:::i;13491:132::-;13549:7;13576:39;13580:1;13583;13576:39;;;;;;;;;;;;;;;;;:3;:39::i;80044:348::-;80123:22;80148:15;:13;:15::i;:::-;80123:40;;80198:14;80178:16;:34;80174:73;;80229:7;;;80174:73;80257:16;80276:36;:14;80295:16;80276:18;:36::i;:::-;80257:55;-1:-1:-1;80327:12:0;;80323:62;;80356:17;80364:8;80356:7;:17::i;83642:183::-;83729:20;83786:31;:29;:31::i;11654:136::-;11712:7;11739:43;11743:1;11746;11739:43;;;;;;;;;;;;;;;;;:3;:43::i;78216:1820::-;78333:15;78363:13;78391:20;78439:19;78461:22;:20;:22::i;:::-;78439:44;;78494:17;78514:15;:13;:15::i;:::-;78494:35;;78558:9;78544:11;:23;78540:602;;;78594:26;:11;78610:9;78594:15;:26::i;:::-;78584:36;-1:-1:-1;78636:19:0;78661:40;78671:29;:16;78584:36;78671:20;:29::i;:::-;78661:9;:40::i;:::-;78635:66;;;78739:11;78720:16;:30;78716:261;;;78786:11;78771:26;;78826:1;78816:11;;78716:261;;;78883:16;;-1:-1:-1;78928:33:0;:11;78883:16;78928:15;:33::i;:::-;78918:43;;78716:261;78540:602;;;;79009:27;79019:16;79009:9;:27::i;:::-;;;79066:15;:13;:15::i;:::-;79051:30;-1:-1:-1;79104:26:0;:9;79118:11;79104:13;:26::i;:::-;79096:34;;78540:602;79165:18;:16;:18::i;:::-;79154:29;;;;79259:7;79250:5;:16;79246:783;;79293:1;;-1:-1:-1;79317:18:0;:5;79293:1;79317:9;:18::i;:::-;79368:9;;:38;;-1:-1:-1;;;79368:38:0;;79309:26;;-1:-1:-1;79358:49:0;;-1:-1:-1;;;;;79368:9:0;;;;:20;;:38;;79389:9;;79309:26;;79368:38;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;79358:5;;:9;:49::i;:::-;79350:57;;79246:783;;;79450:18;:7;79462:5;79450:11;:18::i;:::-;79575:9;;:42;;-1:-1:-1;;;79575:42:0;;79440:28;;-1:-1:-1;79491:1:0;;-1:-1:-1;79491:1:0;;;;-1:-1:-1;;;;;79575:9:0;;:22;;:42;;79598:9;;79440:28;;79575:42;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;79507:110;;-1:-1:-1;79507:110:0;-1:-1:-1;79642:47:0;79507:110;79642:29;:7;79507:110;79642:11;:29::i;:47::-;79632:57;;79802:1;79783:16;:20;:50;;;;;79826:7;79807:16;:26;79783:50;79779:239;;;79899:4;;79934:9;;79854:148;;-1:-1:-1;;;;;79899:4:0;;;;79934:9;79967:16;79854:22;:148::i;:::-;79246:783;;;78216:1820;;;;;;;:::o;99138:251::-;99240:7;99266:16;99284:17;99305:15;:13;:15::i;:::-;99265:55;;-1:-1:-1;99265:55:0;-1:-1:-1;99339:41:0;99265:55;99339:26;:12;99265:55;99339:16;:26::i;86372:1134::-;86432:19;86454:16;:14;:16::i;:::-;86432:38;;86481:16;86500:13;:11;:13::i;:::-;86481:32;;86524:15;86542:13;:11;:13::i;:::-;86524:31;;86566:17;86612:12;;86598:11;:26;86594:850;;;86653:190;86809:33;86829:12;;76771:5;86809:19;;:33;;;;:::i;:::-;86653:133;76771:5;86672:60;86685:46;76771:5;86685:25;86697:12;;86685:7;:11;;:25;;;;:::i;:46::-;86672:8;;:12;:60::i;86653:190::-;86641:202;-1:-1:-1;86958:48:0;86989:16;86641:202;87003:1;86989:13;:16::i;:::-;86958:30;:48::i;:::-;86594:850;;;87042:12;;87028:11;:26;87024:420;;;87083:192;87241:33;87261:12;;76771:5;87241:19;;:33;;;;:::i;:::-;87083:135;76771:5;87102:62;87155:8;87103:46;76771:5;87103:25;87115:12;;87103:7;:11;;:25;;;;:::i;87083:192::-;87071:204;;87290:17;87310:24;87324:9;87310:13;:24::i;:::-;87290:44;;87349:22;87361:9;87349:11;:22::i;:::-;87386:19;87395:9;87386:8;:19::i;:::-;87420:12;:10;:12::i;:::-;87024:420;;87459:39;;87488:9;;87475:11;;87459:39;;;;;86372:1134;;;;:::o;80400:116::-;80477:31;:29;:31::i;88552:458::-;88636:12;;88615:4;;88636:12;;88632:349;;;88682:6;;:17;;;-1:-1:-1;;;88682:17:0;;;;88665:14;;-1:-1:-1;;;;;88682:6:0;;:15;;:17;;;;;;;;;;;;;;:6;:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;88665:34;;88714:15;88732:12;:10;:12::i;:::-;88714:30;-1:-1:-1;88759:24:0;88786:40;88714:30;88786:27;:6;76771:5;88786:10;:27::i;:40::-;88759:67;-1:-1:-1;88868:30:0;76771:5;88888:9;88868:19;:30::i;:::-;88849:16;:49;:119;;;;-1:-1:-1;88938:30:0;76771:5;88958:9;88938:19;:30::i;:::-;88919:16;:49;88849:119;88841:128;;;;;;;88632:349;-1:-1:-1;88998:4:0;88552:458;;;:::o;91065:1192::-;91119:22;91152:16;91179:17;91199:15;:13;:15::i;:::-;91179:35;;91296:20;:18;:20::i;:::-;91329:19;91351:20;:18;:20::i;:::-;91329:42;;91382:16;91401:14;:12;:14::i;:::-;91382:33;;91446:8;91432:11;:22;91428:704;;;91471:12;91486:33;91507:11;91486:20;:33::i;:::-;91471:48;;91640:47;76771:5;91640:26;91649:16;;91640:4;:8;;:26;;;;:::i;:47::-;91623:64;;91702:27;91714:14;91702:11;:27::i;:::-;91755:35;91775:14;91755:19;:35::i;:::-;91744:46;;91805:12;:10;:12::i;:::-;91428:704;;;;92010:110;92048:57;76771:5;92048:36;92067:16;;92048:14;:12;:14::i;:57::-;92010:19;:110::i;:::-;91981:139;;-1:-1:-1;91981:139:0;-1:-1:-1;91428:704:0;92144:39;92160:22;:20;:22::i;:::-;92144:15;:39::i;:::-;92240:8;92224:14;92213:9;92199:50;;;;;;;;;;91065:1192;;;;;:::o;99397:191::-;99503:7;99535:45;99575:4;99535:35;99552:6;;;;;;;;;-1:-1:-1;;;;;99552:6:0;-1:-1:-1;;;;;99552:15:0;;:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;99535:12;;:16;:35::i;37974:761::-;38398:23;38424:69;38452:4;38424:69;;;;;;;;;;;;;;;;;38432:5;-1:-1:-1;;;;;38424:27:0;;;:69;;;;;:::i;:::-;38508:17;;38398:95;;-1:-1:-1;38508:21:0;38504:224;;38650:10;38639:30;;;;;;;;;;;;:::i;:::-;38631:85;;;;-1:-1:-1;;;38631:85:0;;;;;;;:::i;5234:979::-;5364:12;5397:18;5408:6;5397:10;:18::i;:::-;5389:60;;;;-1:-1:-1;;;5389:60:0;;;;;;;:::i;:::-;5523:12;5537:23;5564:6;-1:-1:-1;;;;;5564:11:0;5584:8;5595:4;5564:36;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5522:78;;;;5615:7;5611:595;;;5646:10;-1:-1:-1;5639:17:0;;-1:-1:-1;5639:17:0;5611:595;5760:17;;:21;5756:439;;6023:10;6017:17;6084:15;6071:10;6067:2;6063:19;6056:44;5971:148;6166:12;6159:20;;-1:-1:-1;;;6159:20:0;;;;;;;;:::i;93125:124::-;93200:5;;:31;;-1:-1:-1;;;93200:31:0;;93173:7;;-1:-1:-1;;;;;93200:5:0;;:16;;:31;;93225:4;;93200:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:41;;;93193:48;;93125:124;:::o;95095:2209::-;95173:25;95200:13;95231:19;95253:15;:13;:15::i;:::-;95231:37;;95287;95304:19;;95287:16;:37::i;:::-;95279:46;;;;;;95357:11;95340:13;:28;95336:86;;95393:13;95408:1;95385:25;;;;;;;95336:86;95434:23;95460:17;:15;:17::i;:::-;95434:43;-1:-1:-1;95573:20:0;95609:104;95434:43;95609:51;76771:5;95609:30;:13;95627:11;95609:17;:30::i;:104::-;95573:140;;95745:4;95730:12;:19;95726:1571;;;95902:31;:29;:31::i;:::-;95890:43;-1:-1:-1;95968:32:0;;-1:-1:-1;95988:11:0;95968:15;:13;:15::i;:32::-;95948:52;;95726:1571;;;96071:20;:18;:20::i;:::-;96206:16;96260:3;96245:12;:18;96241:830;;;96360:20;96383:14;:12;:14::i;:::-;96360:37;;96416:19;96438:20;:18;:20::i;:::-;96416:42;;96495:12;96481:11;:26;96477:579;;;96532:12;96547:33;96568:11;96547:20;:33::i;:::-;96532:48;-1:-1:-1;96603:22:0;96653:43;76771:5;96653:22;96532:48;96662:12;96653:8;:22::i;:43::-;96603:93;;96719:27;96731:14;96719:11;:27::i;:::-;96780:35;96800:14;96780:19;:35::i;:::-;96769:46;;96838:12;:10;:12::i;:::-;96477:579;;;;;96914:122;96960:53;76771:5;96960:32;96979:12;96960:14;:12;:14::i;96914:122::-;96899:137;-1:-1:-1;;96477:579:0;96241:830;;;97122:65;97138:48;97177:8;97138:34;:15;97158:13;97138:19;:34::i;97122:65::-;97222:32;97242:11;97222:15;:13;:15::i;:32::-;97202:52;-1:-1:-1;97277:8:0;-1:-1:-1;95726:1571:0;95095:2209;;;;;;;:::o;14119:278::-;14205:7;14240:12;14233:5;14225:28;;;;-1:-1:-1;;;14225:28:0;;;;;;;;:::i;:::-;;14264:9;14280:1;14276;:5;;;;;;;14119:278;-1:-1:-1;;;;;14119:278:0:o;87564:680::-;87632:9;;87622:7;:19;87618:58;;;87658:7;;87618:58;87705:6;;:17;;;-1:-1:-1;;;87705:17:0;;;;87688:14;;-1:-1:-1;;;;;87705:6:0;;:15;;:17;;;;;;;;;;;;;;:6;:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;87688:34;;87733:15;87751:12;:10;:12::i;:::-;87733:30;;87774:14;87804:194;87862:121;87905:58;87956:6;87905:46;76771:5;87905:25;87922:7;87905:12;;:16;;:25;;;;:::i;:58::-;76771:5;;87862:19;:121::i;:::-;87804:35;87834:4;87804:25;87821:7;87804:12;;:16;;:25;;;;:::i;:194::-;87774:224;-1:-1:-1;88011:22:0;88036:29;88060:4;88036:19;87774:224;88047:7;88036:10;:19::i;:29::-;88011:54;-1:-1:-1;88078:18:0;88099:27;:7;88011:54;88099:11;:27::i;:::-;88078:48;;88139:21;88149:10;88139:9;:21::i;:::-;88171:15;88179:6;88171:7;:15::i;:::-;88197:16;88206:6;88197:8;:16::i;:::-;88224:12;:10;:12::i;:::-;87564:680;;;;;;:::o;83833:911::-;83910:20;83932:13;83963:20;:18;:20::i;:::-;83994:14;:12;:14::i;:::-;84021:19;84043:27;:25;:27::i;:::-;84021:49;;84081:16;84100:14;:12;:14::i;:::-;84081:33;;84141:11;84129:8;:23;84125:532;;84169:12;:10;:12::i;:::-;84223:1;84200:20;:18;:20::i;:::-;:24;84196:128;;;84277:5;;:30;;-1:-1:-1;;;84277:30:0;;84257:51;;84277:5;;;-1:-1:-1;;;;;84277:5:0;;:15;;:30;;84301:4;;84277:30;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;84257:51::-;84245:63;-1:-1:-1;;84196:128:0;84125:532;;;84356:22;84381:25;:11;84397:8;84381:15;:25::i;:::-;84356:50;;84464:1;84425:36;84446:14;84425:20;:36::i;:::-;:40;84421:198;;;84496:35;84516:14;84496:19;:35::i;:::-;84486:45;;84421:198;;;84572:31;84600:1;84572:19;:31::i;:::-;;84421:198;84633:12;:10;:12::i;:::-;84125:532;;84669:26;84681:13;:11;:13::i;:::-;84669:11;:26::i;:::-;84721:15;:13;:15::i;:::-;84706:30;;83833:911;;;;:::o;12093:192::-;12179:7;12215:12;12207:6;;;;12199:29;;;;-1:-1:-1;;;12199:29:0;;;;;;;;:::i;:::-;-1:-1:-1;;;12251:5:0;;;12093:192::o;85593:771::-;85639:22;85674:18;85695:15;:13;:15::i;:::-;85674:36;;85835:14;:12;:14::i;:::-;85860:11;;:50;;-1:-1:-1;;;85860:50:0;;-1:-1:-1;;;;;85860:11:0;;;;:23;;:50;;:11;;85903:4;;85860:50;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;85934:11:0;;:50;;-1:-1:-1;;;85934:50:0;;-1:-1:-1;;;;;85934:11:0;;;;-1:-1:-1;85934:23:0;;-1:-1:-1;85934:50:0;;:11;;85977:4;;85934:50;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;86032:6:0;;86049:9;;86069:5;;86011:65;;-1:-1:-1;;;;;;86032:6:0;;;;-1:-1:-1;86049:9:0;;;;86069:5;86011:12;:65::i;:::-;86108:10;;86129:9;;86149:5;;86087:69;;-1:-1:-1;;;;;86108:10:0;;;;86129:9;;;86149:5;86087:12;:69::i;:::-;86212:10;;86178:5;;86171:38;;-1:-1:-1;;;86171:38:0;;-1:-1:-1;;;;;86178:5:0;;;;86171:23;;:38;;86203:4;;86171:38;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:51;86167:130;;;86258:6;;86275:5;;86291:4;;86237:60;;-1:-1:-1;;;;;86258:6:0;;;;86275:5;;;86291:4;86237:12;:60::i;:::-;86325:31;86345:10;86325:15;:13;:15::i;104646:764::-;104744:11;;:36;;-1:-1:-1;;;104744:36:0;;104723:18;;-1:-1:-1;;;;;104744:11:0;;:21;;:36;;104774:4;;104744:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;104723:57;;104791:16;104810:15;:13;:15::i;:::-;104791:34;-1:-1:-1;104836:15:0;104854:24;:10;104791:34;104854:14;:24::i;:::-;104836:42;;104889:13;104905:37;104930:11;:9;:11::i;:::-;104905:20;:7;104917;104905:11;:20::i;:37::-;104889:53;;104953:18;105007:8;104994:10;104986:5;:18;:29;104982:147;;;-1:-1:-1;105045:18:0;;;104982:147;;;-1:-1:-1;105109:8:0;104982:147;105139:27;105155:10;105139:15;:27::i;:::-;105177:14;:12;:14::i;:::-;105202:15;105220;:13;:15::i;:::-;105202:33;-1:-1:-1;105202:33:0;105250:14;:7;105262:1;105250:11;:14::i;:::-;:25;105246:134;;105292:25;105302:14;:7;105314:1;105302:11;:14::i;:::-;105292:9;:25::i;:::-;105246:134;;;105350:18;105360:7;105350:9;:18::i;:::-;105390:12;:10;:12::i;:::-;104646:764;;;;;;;:::o;102670:201::-;102746:21;102801:29;102822:7;102801:20;:29::i;:::-;102785:45;;102841:22;102849:13;102841:7;:22::i;103497:116::-;103562:10;;:43;;-1:-1:-1;;;103562:43:0;;-1:-1:-1;;;;;103562:10:0;;;;:27;;:43;;103590:14;;103562:43;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;105418:595::-;105478:19;105500:34;105521:12;105500:20;:34::i;:::-;105565:4;;:29;;-1:-1:-1;;;105565:29:0;;105478:56;;-1:-1:-1;105547:15:0;;-1:-1:-1;;;;;105565:4:0;;;;:14;;:29;;105588:4;;105565:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;105547:47;;105619:11;105609:7;:21;105605:75;;;105661:7;105647:21;;105605:75;105690:6;;105732:5;;105761:4;;105851:11;;-1:-1:-1;;;;;105690:6:0;;;;:19;;:6;105732:5;;;;;105761:4;;105781:12;;105808:11;;105834:50;;76771:5;;105834:29;;105781:12;;105834:16;:29::i;:50::-;105899:49;76771:5;105899:28;105915:11;;105899;:15;;:28;;;;:::i;:49::-;105971:4;105991:3;105690:315;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;112846:162::-;112917:11;;:36;;-1:-1:-1;;;112917:36:0;;112897:17;;-1:-1:-1;;;;;112917:11:0;;:21;;:36;;112947:4;;112917:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;112976:4;;112964:36;;-1:-1:-1;;;112964:36:0;;112897:56;;-1:-1:-1;;;;;;112976:4:0;;112964:25;;:36;;112897:56;;112964:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;112846:162;:::o;88252:179::-;88297:7;88318:16;88336:17;88357:15;:13;:15::i;:::-;88317:55;;-1:-1:-1;88317:55:0;-1:-1:-1;88390:33:0;88317:55;88390:18;88317:55;88403:4;88390:12;:18::i;:33::-;88383:40;;;;88252:179;:::o;83471:163::-;83521:20;:18;:20::i;:::-;83552:14;:12;:14::i;:::-;83577:12;:10;:12::i;:::-;83600:26;83610:15;:13;:15::i;108157:608::-;108239:20;108277;108300:29;108321:7;108300:20;:29::i;:::-;108380:6;;108473:11;;108277:52;;-1:-1:-1;108340:24:0;;-1:-1:-1;;;;;108380:6:0;;;;:31;;108430:7;;108456:50;;76771:5;;108456:29;;108277:52;;108456:16;:29::i;:50::-;108549:4;;108564:5;;108525:46;;-1:-1:-1;;;;;108549:4:0;;;;;108564:5;;;108525:15;:46::i;:::-;108598:4;108622:3;108380:260;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;108380:260:0;;;;;;;;;;;;:::i;:::-;108340:300;;108666:91;108701:45;108718:7;108743:1;108726:7;:14;:18;108718:27;;;;;;;;;;;;;;108701:12;:16;;:45;;;;:::i;103155:334::-;103212:5;;:30;;-1:-1:-1;;;103212:30:0;;103197:12;;103212:5;;;-1:-1:-1;;;;;103212:5:0;;:15;;:30;;103236:4;;103212:30;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;103197:45;-1:-1:-1;103257:9:0;103253:22;;103268:7;;;103253:22;103287:13;103303:20;:18;:20::i;:::-;103287:36;;103345:5;103338:4;:12;103334:57;;;-1:-1:-1;103375:4:0;103334:57;103408:5;;103401:29;;-1:-1:-1;;;103401:29:0;;-1:-1:-1;;;;;103408:5:0;;;;103401:22;;:29;;103424:5;;103401:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;103441:12;;;;;;;;;-1:-1:-1;;;;;103441:12:0;-1:-1:-1;;;;;103441:24:0;;103473:5;103441:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;109057:589;109144:19;109165:21;109218:34;109239:12;109218:20;:34::i;:::-;109303:6;;109400:11;;109204:48;;-1:-1:-1;109263:24:0;;-1:-1:-1;;;;;109303:6:0;;;;:31;;109353:12;;109384:49;;76771:5;;109384:28;;109204:48;;109384:15;:28::i;:49::-;109476:5;;109492:4;;109452:46;;-1:-1:-1;;;;;109476:5:0;;;;;;;109492:4;109452:15;:46::i;:::-;109525:4;109549:3;109303:264;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;109303:264:0;;;;;;;;;;;;:::i;:::-;109263:304;;109594:44;109610:7;109635:1;109618:7;:14;:18;109610:27;;;;;;;109594:44;109578:60;;109057:589;;;;:::o;90777:280::-;90840:19;90861:18;90883:24;90899:7;90883:15;:24::i;:::-;90839:68;;;;90918:43;90930:30;90948:11;90930:13;:11;:13::i;90918:43::-;90972:19;90980:10;90972:7;:19::i;:::-;91002:24;91011:14;:12;:14::i;:::-;91002:8;:24::i;:::-;91037:12;:10;:12::i;742:619::-;802:4;1270:20;;1113:66;1310:23;;;;;;:42;;-1:-1:-1;;1337:15:0;;;742:619;-1:-1:-1;;742:619:0:o;102526:86::-;102581:10;;:23;;-1:-1:-1;;;102581:23:0;;-1:-1:-1;;;;;102581:10:0;;;;:15;;:23;;102597:6;;102581:23;;;:::i;102879:173::-;102938:12;;:33;;-1:-1:-1;;;102938:33:0;;-1:-1:-1;;;;;102938:12:0;;;;:19;;:33;;102958:12;;102938:33;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;102997:5;;;;;;;;;-1:-1:-1;;;;;102997:5:0;-1:-1:-1;;;;;102982:30:0;;103020:21;102982:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;106279:126;106329:16;106348:15;:13;:15::i;:::-;106329:34;;106374:23;106388:8;106374:13;:23::i;106462:856::-;106524:11;;:36;;-1:-1:-1;;;106524:36:0;;106506:15;;-1:-1:-1;;;;;106524:11:0;;:21;;:36;;106554:4;;106524:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;106506:54;-1:-1:-1;106575:11:0;;106571:740;;106604:14;106620:15;106639;:13;:15::i;:::-;106603:51;;;;106669:16;106688:11;;;;;;;;;-1:-1:-1;;;;;106688:11:0;-1:-1:-1;;;;;106688:23:0;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;106669:44;;106730:18;106768:112;106853:8;106768:58;76771:5;106768:37;106793:11;;106768:20;106780:7;106768;:11;;:20;;;;:::i;:112::-;106730:150;;106895:18;106933:111;107017:8;106933:57;76771:5;106933:36;106957:11;;106933:19;106945:6;106933:7;:11;;:19;;;;:::i;:111::-;107059:6;;107108:5;;107141:4;;107059:240;;-1:-1:-1;;;107059:240:0;;106895:149;;-1:-1:-1;;;;;;107059:6:0;;;;:22;;:240;;:6;107108:5;;;;;107141:4;;107165:7;;107191:10;;106895:149;;107257:4;;107281:3;;107059:240;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;106571:740;;;;;106462:856;:::o;100598:138::-;100680:12;;:48;;-1:-1:-1;;;100680:48:0;;100653:7;;-1:-1:-1;;;;;100680:12:0;;:33;;:48;;100722:4;;100680:48;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;109654:661;109739:21;109778:20;109801:32;109822:10;109801:20;:32::i;:::-;109778:55;;109844:19;109879:60;109936:2;109880:50;109918:11;;109880:33;76771:5;109880:12;:16;;:33;;;;:::i;109879:60::-;110028:6;;110161:4;;110176:5;;109844:95;;-1:-1:-1;109988:24:0;;-1:-1:-1;;;;;110028:6:0;;;;:31;;110078:10;;109844:95;;110137:46;;110161:4;;;110028:6;110176:5;;;110137:15;:46::i;:::-;110210:4;110234:3;110028:224;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;110028:224:0;;;;;;;;;;;;:::i;:::-;109988:264;;110279:28;110294:12;110279:7;110287:1;110279:10;;;;;;;;;;;;;;:14;;:28;;;;:::i;:::-;110263:44;109654:661;-1:-1:-1;;;;;109654:661:0:o;113153:90::-;113218:4;;;;;;;;;-1:-1:-1;;;;;113218:4:0;-1:-1:-1;;;;;113206:27:0;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;113153:90::o;107522:413::-;107658:37;;-1:-1:-1;;;107658:37:0;;107640:15;;-1:-1:-1;;;;;107658:22:0;;;;;:37;;107689:4;;107658:37;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;107640:55;-1:-1:-1;107710:12:0;107706:25;;107724:7;;;107706:25;107760:6;-1:-1:-1;;;;;107741:51:0;;107807:7;107829:1;107845:25;107861:4;107867:2;107845:15;:25::i;:::-;107893:4;107913:3;107741:186;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;107741:186:0;;;;;;;;;;;;:::i;106133:138::-;106214:15;:13;:15::i;:::-;106203:7;:26;;106195:35;;;;;;106241:22;106255:7;106241:13;:22::i;99596:247::-;99697:7;99723:16;99741:17;99762:15;:13;:15::i;:::-;99722:55;;-1:-1:-1;99722:55:0;-1:-1:-1;99795:40:0;99722:55;99795:26;:11;99722:55;99795:15;:26::i;80524:454::-;80706:5;;80638:22;;80678:12;;-1:-1:-1;;;;;80693:18:0;;;80706:5;;80693:18;;:41;;-1:-1:-1;80729:5:0;;-1:-1:-1;;;;;80715:19:0;;;80729:5;;80715:19;80693:41;80678:56;;80767:7;:15;;80781:1;80767:15;;;80777:1;80767:15;80753:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;80753:30:0;;80745:38;;80805:9;80794:5;80800:1;80794:8;;;;;;;;;;;;;:20;-1:-1:-1;;;;;80794:20:0;;;-1:-1:-1;;;;;80794:20:0;;;;;80829:7;80825:146;;;80864:10;80853:5;80859:1;80853:8;;;;;;;;;;;;;:21;-1:-1:-1;;;;;80853:21:0;;;-1:-1:-1;;;;;80853:21:0;;;;;80825:146;;;80918:5;;80907:8;;-1:-1:-1;;;;;80918:5:0;;;;80907;;80918;;80907:8;;;;;;;;;;;:16;-1:-1:-1;;;;;80907:16:0;;;-1:-1:-1;;;;;80907:16:0;;;;;80949:10;80938:5;80944:1;80938:8;;;;;;;;;;;;;:21;-1:-1:-1;;;;;80938:21:0;;;-1:-1:-1;;;;;80938:21:0;;;;;80825:146;80524:454;;;;;:::o;89676:1093::-;89754:19;89775:15;89808:14;89825:6;;;;;;;;;-1:-1:-1;;;;;89825:6:0;-1:-1:-1;;;;;89825:15:0;;:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;89808:34;;89853:15;89871:12;:10;:12::i;:::-;89853:30;;89894:11;89908:21;89927:1;89908:14;:12;:14::i;:21::-;89894:35;;89940:10;89953:20;:18;:20::i;:::-;89940:33;;89984:13;90000:25;90017:7;90000:12;;:16;;:25;;;;:::i;:::-;89984:41;;90036:17;90129:3;90124:2;:8;90120:410;;;90161:156;90281:35;90313:2;90281:27;:6;76771:5;90281:10;:27::i;:35::-;90180:63;90220:22;90230:11;:2;90237:3;90230:6;:11::i;:::-;90220:5;;:9;:22::i;:::-;90180:35;90210:4;90180:25;90197:7;90180:12;;:16;;:25;;;;:::i;90161:156::-;90149:168;;90120:410;;;90362:156;90482:35;90514:2;90482:27;:6;76771:5;90482:10;:27::i;:35::-;90381:63;90421:22;90431:11;:3;90439:2;90431:7;:11::i;90421:22::-;90381:35;90411:4;90381:25;90398:7;90381:12;;:16;;:25;;;;:::i;90362:156::-;90350:168;;90120:410;90552:98;90580:59;90600:38;90611:26;:5;76771;90611:9;:26::i;:::-;90600:6;;:10;:38::i;90580:59::-;90552:9;;:13;:98::i;:::-;90542:108;-1:-1:-1;90675:86:0;90701:49;90745:4;90701:39;90732:7;90702:24;90723:2;90702:16;90542:108;90714:3;90702:11;:16::i;90701:49::-;90675:7;;:11;:86::i;:::-;90661:100;;89676:1093;;;;;;;;;:::o;113016:129::-;113089:11;;113085:52;;113114:4;;113102:35;;-1:-1:-1;;;113102:35:0;;-1:-1:-1;;;;;113114:4:0;;;;113102:26;;:35;;113129:7;;113102:35;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;4096:241;;4200:2;4188:9;4179:7;4175:23;4171:32;4168:2;;;-1:-1;;4206:12;4168:2;85:6;72:20;97:33;124:5;97:33;:::i;4344:263::-;;4459:2;4447:9;4438:7;4434:23;4430:32;4427:2;;;-1:-1;;4465:12;4427:2;226:6;220:13;238:33;265:5;238:33;:::i;4614:392::-;;4754:2;;4742:9;4733:7;4729:23;4725:32;4722:2;;;-1:-1;;4760:12;4722:2;4811:17;4805:24;4849:18;4841:6;4838:30;4835:2;;;-1:-1;;4871:12;4835:2;4958:22;;422:4;410:17;;406:27;-1:-1;396:2;;-1:-1;;437:12;396:2;477:6;471:13;499:80;514:64;571:6;514:64;:::i;:::-;499:80;:::i;:::-;607:21;;;664:14;;;;639:17;;;753;;;744:27;;;;741:36;-1:-1;738:2;;;-1:-1;;780:12;738:2;-1:-1;806:10;;800:217;825:6;822:1;819:13;800:217;;;3894:13;;893:61;;847:1;840:9;;;;;968:14;;;;996;;800:217;;;-1:-1;4891:99;4716:290;-1:-1;;;;;;;4716:290::o;5013:235::-;;5114:2;5102:9;5093:7;5089:23;5085:32;5082:2;;;-1:-1;;5120:12;5082:2;1108:6;1095:20;1120:30;1144:5;1120:30;:::i;5255:257::-;;5367:2;5355:9;5346:7;5342:23;5338:32;5335:2;;;-1:-1;;5373:12;5335:2;1243:6;1237:13;1255:30;1279:5;1255:30;:::i;5823:367::-;;;5947:2;5935:9;5926:7;5922:23;5918:32;5915:2;;;-1:-1;;5953:12;5915:2;6011:17;5998:31;6049:18;;6041:6;6038:30;6035:2;;;-1:-1;;6071:12;6035:2;6157:6;6146:9;6142:22;;;1602:3;1595:4;1587:6;1583:17;1579:27;1569:2;;-1:-1;;1610:12;1569:2;1653:6;1640:20;6049:18;1672:6;1669:30;1666:2;;;-1:-1;;1702:12;1666:2;1797:3;5947:2;1777:17;1738:6;1763:32;;1760:41;1757:2;;;-1:-1;;1804:12;1757:2;5947;1734:17;;;;;6091:83;;-1:-1;5909:281;;-1:-1;;;;5909:281::o;6197:328::-;;6344:3;;6332:9;6323:7;6319:23;6315:33;6312:2;;;-1:-1;;6351:12;6312:2;2030:22;6344:3;2030:22;:::i;:::-;2021:31;;2176:22;3894:13;2126:16;2119:86;2272:2;2341:9;2337:22;3894:13;2272:2;2291:5;2287:16;2280:86;2432:2;2501:9;2497:22;3894:13;2432:2;2451:5;2447:16;2440:86;2600:2;2669:9;2665:22;3894:13;2600:2;2619:5;2615:16;2608:86;2768:3;2838:9;2834:22;3894:13;2768:3;2788:5;2784:16;2777:86;2930:3;3000:9;2996:22;3894:13;2930:3;2950:5;2946:16;2939:86;3091:3;3161:9;3157:22;3894:13;3091:3;3111:5;3107:16;3100:86;3252:3;3322:9;3318:22;3894:13;3252:3;3272:5;3268:16;3261:86;3413:3;;3485:9;3481:22;3894:13;3413:3;3433:5;3429:18;3422:88;;6403:106;;;;6306:219;;;;:::o;6532:533::-;;;;6680:2;6668:9;6659:7;6655:23;6651:32;6648:2;;;-1:-1;;6686:12;6648:2;3622:6;3616:13;3634:33;3661:5;3634:33;:::i;:::-;6849:2;6899:22;;3616:13;6738:74;;-1:-1;3634:33;3616:13;3634:33;:::i;:::-;6968:2;7017:22;;4034:13;6857:74;;-1:-1;32124:10;32113:22;;35423:34;;35413:2;;-1:-1;;35461:12;35413:2;6976:73;;;;6642:423;;;;;:::o;7072:241::-;;7176:2;7164:9;7155:7;7151:23;7147:32;7144:2;;;-1:-1;;7182:12;7144:2;-1:-1;3746:20;;7138:175;-1:-1;7138:175::o;7320:263::-;;7435:2;7423:9;7414:7;7410:23;7406:32;7403:2;;;-1:-1;;7441:12;7403:2;-1:-1;3894:13;;7397:186;-1:-1;7397:186::o;7590:399::-;;;7722:2;7710:9;7701:7;7697:23;7693:32;7690:2;;;-1:-1;;7728:12;7690:2;-1:-1;;3894:13;;7891:2;7941:22;;;3894:13;;;;;-1:-1;7684:305::o;7996:491::-;;;;8134:2;8122:9;8113:7;8109:23;8105:32;8102:2;;;-1:-1;;8140:12;8102:2;-1:-1;;3746:20;;;8292:2;8331:22;;3746:20;;-1:-1;8400:2;8439:22;;;3746:20;;8096:391;-1:-1;8096:391::o;8494:535::-;;;;8643:2;8631:9;8622:7;8618:23;8614:32;8611:2;;;-1:-1;;8649:12;8611:2;3900:6;3894:13;8701:74;;8812:2;8866:9;8862:22;3894:13;8820:74;;8931:2;8985:9;8981:22;3894:13;8939:74;;8605:424;;;;;:::o;9036:611::-;;;;;9188:3;9176:9;9167:7;9163:23;9159:33;9156:2;;;-1:-1;;9195:12;9156:2;3759:6;3746:20;9247:63;;9347:2;9390:9;9386:22;3746:20;9355:63;;9455:2;9498:9;9494:22;3746:20;9463:63;;9563:2;9603:9;9599:22;1095:20;1120:30;1144:5;1120:30;:::i;:::-;9150:497;;;;-1:-1;9150:497;;-1:-1;;9150:497::o;9654:617::-;;;;;9809:3;9797:9;9788:7;9784:23;9780:33;9777:2;;;-1:-1;;9816:12;9777:2;-1:-1;;3746:20;;;9968:2;10007:22;;3746:20;;-1:-1;10076:2;10115:22;;3746:20;;10184:2;10223:22;3746:20;;-1:-1;9771:500;-1:-1;9771:500::o;11014:690::-;;11207:5;30393:12;30937:6;30932:3;30925:19;30974:4;;30969:3;30965:14;11219:93;;30974:4;11383:5;30247:14;-1:-1;11422:260;11447:6;11444:1;11441:13;11422:260;;;11508:13;;-1:-1;;;;;31907:54;10696:45;;10432:14;;;;30780;;;;4849:18;11462:9;11422:260;;;-1:-1;11688:10;;11138:566;-1:-1;;;;;11138:566::o;16271:271::-;;11983:5;30393:12;12094:52;12139:6;12134:3;12127:4;12120:5;12116:16;12094:52;:::i;:::-;12158:16;;;;;16405:137;-1:-1;;16405:137::o;16549:222::-;-1:-1;;;;;31907:54;;;;10696:45;;16676:2;16661:18;;16647:124::o;17023:349::-;-1:-1;;;;;31907:54;;;10539:58;;31907:54;;17358:2;17343:18;;10696:45;17186:2;17171:18;;17157:215::o;17719:908::-;-1:-1;;;;;31907:54;;;10696:45;;31907:54;;;18187:2;18172:18;;10696:45;18270:2;18255:18;;16222:37;;;;18353:2;18338:18;;16222:37;;;;18436:3;18421:19;;16222:37;31907:54;;;31918:42;18513:19;;10539:58;18612:3;18597:19;;16222:37;;;;18022:3;18007:19;;17993:634::o;18634:1020::-;-1:-1;;;;;31907:54;;;10696:45;;31907:54;;;19130:2;19115:18;;10696:45;19213:2;19198:18;;16222:37;;;;19296:2;19281:18;;16222:37;;;;19379:3;19364:19;;16222:37;;;;31918:42;19448:19;;16222:37;31907:54;;;19555:3;19540:19;;10539:58;19639:3;19624:19;;16222:37;;;;18965:3;18950:19;;18936:718::o;19661:349::-;-1:-1;;;;;31907:54;;;;10696:45;;19996:2;19981:18;;12953:58;19824:2;19809:18;;19795:215::o;20357:210::-;31588:13;;31581:21;11777:34;;20478:2;20463:18;;20449:118::o;21646:377::-;32218:4;32207:16;;;;13100:56;;-1:-1;;;;;31907:54;22009:2;21994:18;;10696:45;21823:2;21808:18;;21794:229::o;22414:330::-;;22571:2;22592:17;22585:47;30937:6;22571:2;22560:9;22556:18;30925:19;34263:6;34258:3;30965:14;22560:9;30965:14;34240:30;34301:16;;;30965:14;34301:16;;;34294:27;;;;34696:7;34680:14;;;-1:-1;;34676:28;13593:39;;;22542:202;-1:-1;22542:202::o;22751:310::-;;22898:2;22919:17;22912:47;13791:5;30393:12;30937:6;22898:2;22887:9;22883:18;30925:19;13885:52;13930:6;30965:14;22887:9;30965:14;22898:2;13911:5;13907:16;13885:52;:::i;:::-;34696:7;34680:14;-1:-1;;34676:28;13949:39;;;;30965:14;13949:39;;22869:192;-1:-1;;22869:192::o;23068:416::-;23268:2;23282:47;;;14225:2;23253:18;;;30925:19;14261:29;30965:14;;;14241:50;14310:12;;;23239:245::o;23491:416::-;23691:2;23705:47;;;14561:1;23676:18;;;30925:19;-1:-1;;;30965:14;;;14576:25;14620:12;;;23662:245::o;23914:416::-;24114:2;24128:47;;;14871:2;24099:18;;;30925:19;14907:34;30965:14;;;14887:55;-1:-1;;;14962:12;;;14955:25;14999:12;;;24085:245::o;24337:416::-;24537:2;24551:47;;;15250:2;24522:18;;;30925:19;15286:31;30965:14;;;15266:52;15337:12;;;24508:245::o;24760:416::-;24960:2;24974:47;;;15588:2;24945:18;;;30925:19;15624:34;30965:14;;;15604:55;-1:-1;;;15679:12;;;15672:34;15725:12;;;24931:245::o;25183:416::-;25383:2;25397:47;;;15976:2;25368:18;;;30925:19;16012:34;30965:14;;;15992:55;-1:-1;;;16067:12;;;16060:46;16125:12;;;25354:245::o;25606:222::-;16222:37;;;25733:2;25718:18;;25704:124::o;25835:848::-;;16252:5;16229:3;16222:37;33664:24;26313:2;26302:9;26298:18;12953:58;26140:3;26350:2;26339:9;26335:18;26328:48;26390:108;26140:3;26129:9;26125:19;26484:6;26390:108;:::i;:::-;-1:-1;;;;;31907:54;;;;26585:2;26570:18;;10539:58;-1:-1;26668:3;26653:19;16222:37;26382:116;26111:572;-1:-1;;;26111:572::o;26690:333::-;16222:37;;;27009:2;26994:18;;16222:37;26845:2;26830:18;;26816:207::o;27869:444::-;16222:37;;;28216:2;28201:18;;16222:37;;;;28299:2;28284:18;;16222:37;28052:2;28037:18;;28023:290::o;28320:556::-;16222:37;;;28696:2;28681:18;;16222:37;;;;28779:2;28764:18;;16222:37;28862:2;28847:18;;16222:37;28531:3;28516:19;;28502:374::o;28883:668::-;16222:37;;;29287:2;29272:18;;16222:37;;;;29370:2;29355:18;;16222:37;;;;29453:2;29438:18;;16222:37;29536:3;29521:19;;16222:37;29122:3;29107:19;;29093:458::o;29558:256::-;29620:2;29614:9;29646:17;;;29721:18;29706:34;;29742:22;;;29703:62;29700:2;;;29778:1;;29768:12;29700:2;29620;29787:22;29598:216;;-1:-1;29598:216::o;29821:304::-;;29980:18;29972:6;29969:30;29966:2;;;-1:-1;;30002:12;29966:2;-1:-1;30047:4;30035:17;;;30100:15;;29903:222::o;34336:268::-;34401:1;34408:101;34422:6;34419:1;34416:13;34408:101;;;34489:11;;;34483:18;34470:11;;;34463:39;34444:2;34437:10;34408:101;;;34524:6;34521:1;34518:13;34515:2;;;-1:-1;;34401:1;34571:16;;34564:27;34385:219::o;34717:117::-;-1:-1;;;;;31907:54;;34776:35;;34766:2;;34825:1;;34815:12;34841:111;34922:5;31588:13;31581:21;34900:5;34897:32;34887:2;;34943:1;;34933:12;35117:117;-1:-1;;;;;35204:5;31791:42;35179:5;35176:35;35166:2;;35225:1;;35215:12

Swarm Source

ipfs://7bdf2be9ec7f2d83a5c5b3bc26d282297ee32227b06609926d142602c79cc52a
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.