ETH Price: $2,627.21 (-3.02%)

Contract

0x4d5b5376Cbcc001bb4F8930208828Ab87D121dA8
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Slippage167204162023-02-27 15:27:11715 days ago1677511631IN
0x4d5b5376...87D121dA8
0 ETH0.0011674729.94291875
Set New Pool159168962022-11-07 8:17:11828 days ago1667809031IN
0x4d5b5376...87D121dA8
0 ETH0.0027777812.9796787
Set Debt Thresho...150012372022-06-21 7:55:53967 days ago1655798153IN
0x4d5b5376...87D121dA8
0 ETH0.0007377318.85769129
Set Slippage149171492022-06-06 21:33:13981 days ago1654551193IN
0x4d5b5376...87D121dA8
0 ETH0.003118679.98463803
Set Max Report D...148372522022-05-24 18:32:31994 days ago1653417151IN
0x4d5b5376...87D121dA8
0 ETH0.001288332.96497467
Set Min Report D...148372322022-05-24 18:28:58994 days ago1653416938IN
0x4d5b5376...87D121dA8
0 ETH0.0020618952.7581764
Set Slippage147678802022-05-13 14:19:281005 days ago1652451568IN
0x4d5b5376...87D121dA8
0 ETH0.0036776394.32250053
Set Profit Facto...144970692022-04-01 0:07:011048 days ago1648771621IN
0x4d5b5376...87D121dA8
0 ETH0.0019580250.13115721
Set Max Report D...144970652022-04-01 0:05:521048 days ago1648771552IN
0x4d5b5376...87D121dA8
0 ETH0.0018588247.57794109
Set Max Report D...144287482022-03-21 8:51:551059 days ago1647852715IN
0x4d5b5376...87D121dA8
0 ETH0.0007970520.39493363
Set Min Report D...144287242022-03-21 8:46:451059 days ago1647852405IN
0x4d5b5376...87D121dA8
0 ETH0.0005973416.46381607
Set Min Report D...144287242022-03-21 8:46:451059 days ago1647852405IN
0x4d5b5376...87D121dA8
0 ETH0.0009249716.46381607
Set Profit Facto...144287182022-03-21 8:45:511059 days ago1647852351IN
0x4d5b5376...87D121dA8
0 ETH0.0006626816.96660143
Set New Pool143009242022-03-01 11:48:371079 days ago1646135317IN
0x4d5b5376...87D121dA8
0 ETH0.0092170845
Set Keeper143008902022-03-01 11:39:411079 days ago1646134781IN
0x4d5b5376...87D121dA8
0 ETH0.0013337635.79624035

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

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

Contract Name:
StableConvexXPool

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU AGPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-03-01
*/

// SPDX-License-Identifier: MIT AND GPL-3.0 AND AGPLv3
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol

pragma solidity ^0.8.0;

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using 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) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

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

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

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

// File: contracts/BaseStrategy.sol

pragma solidity 0.8.4;


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

interface VaultAPI {
    function decimals() external view returns (uint256);

    function token() external view returns (address);

    function vaultAdapter() external view returns (address);

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

    /**
     * View how much the Vault would increase this Strategy's borrow limit,
     * based on its present performance (since its last report). Can be used to
     * determine expectedReturn in your Strategy.
     */
    function creditAvailable() external view returns (uint256);

    /**
     * View how much the Vault would like to pull back from the Strategy,
     * based on its present performance (since its last report). Can be used to
     * determine expectedReturn in your Strategy.
     */
    function debtOutstanding() external view returns (uint256);

    /**
     * View how much the Vault expect this Strategy to return at the current
     * block, based on its present performance (since its last report). Can be
     * used to determine expectedReturn in your Strategy.
     */
    function expectedReturn() external view returns (uint256);

    /**
     * This is the main contact point where the Strategy interacts with the
     * Vault. It is critical that this call is handled as intended by the
     * Strategy. Therefore, this function will be called by BaseStrategy to
     * make sure the integration is correct.
     */
    function report(
        uint256 _gain,
        uint256 _loss,
        uint256 _debtPayment
    ) external returns (uint256);

    /**
     * This function should only be used in the scenario where the Strategy is
     * being retired but no migration of the positions are possible, or in the
     * extreme scenario that the Strategy needs to be put into "Emergency Exit"
     * mode in order for it to exit as quickly as possible. The latter scenario
     * could be for any reason that is considered "critical" that the Strategy
     * exits its position as fast as possible, such as a sudden change in
     * market conditions leading to losses, or an imminent failure in an
     * external dependency.
     */
    function revokeStrategy() external;

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

/**
 * This interface is here for the keeper bot to use.
 */
interface StrategyAPI {
    function name() external view returns (string memory);

    function vault() external view returns (address);

    function want() external view returns (address);

    function keeper() external view returns (address);

    function isActive() external view returns (bool);

    function estimatedTotalAssets() external view returns (uint256);

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

/**
 * @title Yearn Base Strategy
 * @author orig. yearn.finance, modified by gro-protocol
 * @notice
 *  BaseStrategy implements all of the required functionality to interoperate
 *  closely with the Vault contract. This contract should be inherited and the
 *  abstract methods implemented to adapt the Strategy to the particular needs
 *  it has to create a return.
 *
 *  Of special interest is the relationship between `harvest()` and
 *  `vault.report()'. `harvest()` may be called simply because enough time has
 *  elapsed since the last report, and not because any funds need to be moved
 *  or positions adjusted. This is critical so that the Vault may maintain an
 *  accurate picture of the Strategy's performance. See  `vault.report()`,
 *  `harvest()`, and `harvestTrigger()` for further details.
 */
abstract contract BaseStrategy {
    using SafeERC20 for IERC20;

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

    IERC20 public want;

    // So indexers can keep track of this
    event Harvested(uint256 profit, uint256 loss, uint256 debtPayment, uint256 debtOutstanding);
    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();

    // The minimum number of seconds between harvest calls. See
    // `setMinReportDelay()` for more details.
    uint256 public minReportDelay;

    // The maximum number of seconds between harvest calls. See
    // `setMaxReportDelay()` for more details.
    uint256 public maxReportDelay;

    // The minimum multiple that `callCost` must be above the credit/profit to
    // be "justifiable". See `setProfitFactor()` for more details.
    uint256 public profitFactor;

    // Use this to adjust the threshold at which running a debt causes a
    // harvest trigger. See `setDebtThreshold()` for more details.
    uint256 public debtThreshold;

    // See note on `setEmergencyExit()`.
    bool public emergencyExit;

    // modifiers
    modifier onlyAuthorized() {
        require(msg.sender == keeper || msg.sender == owner(), "!authorized");
        _;
    }

    modifier onlyOwner() {
        require(msg.sender == owner(), "!authorized");
        _;
    }

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

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

    /**
     * @notice
     *  Initializes the Strategy, this is called only once, when the
     *  contract is deployed.
     * @param _vault The address of the Vault responsible for this Strategy.
     */
    function _initialize(
        address _vault,
        address _rewards,
        address _keeper
    ) internal {
        require(address(want) == address(0), "Strategy already initialized");

        vault = VaultAPI(_vault);
        want = IERC20(vault.token());
        want.safeApprove(_vault, type(uint256).max); // Give Vault unlimited access (might save gas)
        rewards = _rewards;
        keeper = _keeper;

        // initialize variables
        minReportDelay = 0;
        maxReportDelay = 86400;
        profitFactor = 100;
        debtThreshold = 0;
    }

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

    /**
     * @notice
     *  Used to change `minReportDelay`. `minReportDelay` is the minimum number
     *  of blocks that should pass for `harvest()` to be called.
     *
     *  For external keepers (such as the Keep3r network), this is the minimum
     *  time between jobs to wait. (see `harvestTrigger()`
     *  for more details.)
     *
     * @param _delay The minimum number of seconds to wait between harvests.
     */
    function setMinReportDelay(uint256 _delay) external onlyAuthorized {
        minReportDelay = _delay;
        emit UpdatedMinReportDelay(_delay);
    }

    /**
     * @notice
     *  Used to change `maxReportDelay`. `maxReportDelay` is the maximum number
     *  of blocks that should pass for `harvest()` to be called.
     *
     *  For external keepers (such as the Keep3r network), this is the maximum
     *  time between jobs to wait. (see `harvestTrigger()`
     *  for more details.)
     *
     * @param _delay The maximum number of seconds to wait between harvests.
     */
    function setMaxReportDelay(uint256 _delay) external onlyAuthorized {
        maxReportDelay = _delay;
        emit UpdatedMaxReportDelay(_delay);
    }

    /**
     * @notice
     *  Used to change `profitFactor`. `profitFactor` is used to determine
     *  if it's worthwhile to harvest, given gas costs. (See `harvestTrigger()`
     *  for more details.)
     *
     * @param _profitFactor A ratio to multiply anticipated
     * `harvest()` gas cost against.
     */
    function setProfitFactor(uint256 _profitFactor) external onlyAuthorized {
        profitFactor = _profitFactor;
        emit UpdatedProfitFactor(_profitFactor);
    }

    /**
     * @notice
     *  Sets how far the Strategy can go into loss without a harvest and report
     *  being required.
     *
     *  By default this is 0, meaning any losses would cause a harvest which
     *  will subsequently report the loss to the Vault for tracking. (See
     *  `harvestTrigger()` for more details.)
     *
     * @param _debtThreshold How big of a loss this Strategy may carry without
     * being required to report to the Vault.
     */
    function setDebtThreshold(uint256 _debtThreshold) external onlyAuthorized {
        debtThreshold = _debtThreshold;
        emit UpdatedDebtThreshold(_debtThreshold);
    }

    /**
     * Resolve owner address from Vault contract, used to make assertions
     * on protected functions in the Strategy.
     */
    function owner() internal view returns (address) {
        return vault.governance();
    }

    /**
     * @notice
     *  Provide an accurate estimate for the total amount of assets
     *  (principle + return) that this Strategy is currently managing,
     *  denominated in terms of `want` tokens.
     *
     *  This total should be "realizable" e.g. the total value that could
     *  *actually* be obtained from this Strategy if it were to divest its
     *  entire position based on current on-chain conditions.
     * @dev
     *  Care must be taken in using this function, since it relies on external
     *  systems, which could be manipulated by the attacker to give an inflated
     *  (or reduced) value produced by this function, based on current on-chain
     *  conditions (e.g. this function is possible to influence through
     *  flashloan attacks, oracle manipulations, or other DeFi attack
     *  mechanisms).
     *
     *  It is up to owner to use this function to correctly order this
     *  Strategy relative to its peers in the withdrawal queue to minimize
     *  losses for the Vault based on sudden withdrawals. This value should be
     *  higher than the total debt of the Strategy and higher than its expected
     *  value to be "safe".
     * @return The estimated total assets in this Strategy.
     */
    function estimatedTotalAssets() public view virtual returns (uint256);

    /*
     * @notice
     *  Provide an indication of whether this strategy is currently "active"
     *  in that it is managing an active position, or will manage a position in
     *  the future. This should correlate to `harvest()` activity, so that Harvest
     *  events can be tracked externally by indexing agents.
     * @return True if the strategy is actively managing a position.
     */
    function isActive() public view returns (bool) {
        return vault.strategies(address(this)).debtRatio > 0 || estimatedTotalAssets() > 0;
    }

    /**
     * Perform any Strategy unwinding or other calls necessary to capture the
     * "free return" this Strategy has generated since the last time its core
     * position(s) were adjusted. Examples include unwrapping extra rewards.
     * This call is only used during "normal operation" of a Strategy, and
     * should be optimized to minimize losses as much as possible.
     *
     * This method returns any realized profits and/or realized losses
     * incurred, and should return the total amounts of profits/losses/debt
     * payments (in `want` tokens) for the Vault's accounting (e.g.
     * `want.balanceOf(this) >= _debtPayment + _profit - _loss`).
     *
     * `_debtOutstanding` will be 0 if the Strategy is not past the configured
     * debt limit, otherwise its value will be how far past the debt limit
     * the Strategy is. The Strategy's debt limit is configured in the Vault.
     *
     * NOTE: `_debtPayment` should be less than or equal to `_debtOutstanding`.
     *       It is okay for it to be less than `_debtOutstanding`, as that
     *       should only used as a guide for how much is left to pay back.
     *       Payments should be made to minimize loss from slippage, debt,
     *       withdrawal fees, etc.
     *
     * See `vault.debtOutstanding()`.
     */
    function prepareReturn(uint256 _debtOutstanding)
        internal
        virtual
        returns (
            uint256 _profit,
            uint256 _loss,
            uint256 _debtPayment
        );

    /**
     * Perform any adjustments to the core position(s) of this Strategy given
     * what change the Vault made in the "investable capital" available to the
     * Strategy. Note that all "free capital" in the Strategy after the report
     * was made is available for reinvestment. Also note that this number
     * could be 0, and you should handle that scenario accordingly.
     *
     * See comments regarding `_debtOutstanding` on `prepareReturn()`.
     */
    function adjustPosition(uint256 _debtOutstanding) internal virtual;

    /**
     * Liquidate up to `_amountNeeded` of `want` of this strategy's positions,
     * irregardless of slippage. Any excess will be re-invested with `adjustPosition()`.
     * This function should return the amount of `want` tokens made available by the
     * liquidation. If there is a difference between them, `_loss` indicates whether the
     * difference is due to a realized loss, or if there is some other sitution at play
     * (e.g. locked funds) where the amount made available is less than what is needed.
     * This function is used during emergency exit instead of `prepareReturn()` to
     * liquidate all of the Strategy's positions back to the Vault.
     *
     * NOTE: The invariant `_liquidatedAmount + _loss <= _amountNeeded` should always be maintained
     */
    function liquidatePosition(uint256 _amountNeeded)
        internal
        virtual
        returns (uint256 _liquidatedAmount, uint256 _loss);

    /**
     * @notice
     *  Provide a signal to the keeper that `tend()` should be called. The
     *  keeper will provide the estimated gas cost that they would pay to call
     *  `tend()`, and this function should use that estimate to make a
     *  determination if calling it is "worth it" for the keeper. This is not
     *  the only consideration into issuing this trigger, for example if the
     *  position would be negatively affected if `tend()` is not called
     *  shortly, then this can return `true` even if the keeper might be
     *  "at a loss" (keepers are always reimbursed by Yearn).
     * @dev
     *  `callCost` must be priced in terms of `want`.
     *
     *  This call and `harvestTrigger()` should never return `true` at the same
     *  time.
     * @param callCost The keeper's estimated cast cost to call `tend()`.
     * @return `true` if `tend()` should be called, `false` otherwise.
     */
    function tendTrigger(uint256 callCost) public view virtual returns (bool);

    /**
     * @notice
     *  Adjust the Strategy's position. The purpose of tending isn't to
     *  realize gains, but to maximize yield by reinvesting any returns.
     *
     *  See comments on `adjustPosition()`.
     *
     */
    function tend() external onlyAuthorized {
        // Don't take profits with this call, but adjust for better gains
        adjustPosition(vault.debtOutstanding());
    }

    /**
     * @notice
     *  Provide a signal to the keeper that `harvest()` should be called. The
     *  keeper will provide the estimated gas cost that they would pay to call
     *  `harvest()`, and this function should use that estimate to make a
     *  determination if calling it is "worth it" for the keeper. This is not
     *  the only consideration into issuing this trigger, for example if the
     *  position would be negatively affected if `harvest()` is not called
     *  shortly, then this can return `true` even if the keeper might be "at a
     *  loss" (keepers are always reimbursed by Yearn).
     * @dev
     *  `callCost` must be priced in terms of `want`.
     *
     *  This call and `tendTrigger` should never return `true` at the
     *  same time.
     *
     *  See `min/maxReportDelay`, `profitFactor`, `debtThreshold`
     *  -controlled parameters that will influence whether this call
     *  returns `true` or not. These parameters will be used in conjunction
     *  with the parameters reported to the Vault (see `params`) to determine
     *  if calling `harvest()` is merited.
     *
     *  It is expected that an external system will check `harvestTrigger()`.
     *  This could be a script run off a desktop or cloud bot (e.g.
     *  https://github.com/iearn-finance/yearn-vaults/blob/master/scripts/keep.py),
     *  or via an integration with the Keep3r network (e.g.
     *  https://github.com/Macarse/GenericKeep3rV2/blob/master/contracts/keep3r/GenericKeep3rV2.sol).
     * @param callCost The keeper's estimated cast cost to call `harvest()`.
     * @return `true` if `harvest()` should be called, `false` otherwise.
     */
    function harvestTrigger(uint256 callCost) public view virtual returns (bool) {
        StrategyParams memory params = vault.strategies(address(this));

        // Should not trigger if Strategy is not activated
        if (params.activation == 0) return false;

        // Should not trigger if we haven't waited long enough since previous harvest
        if (block.timestamp - params.lastReport < minReportDelay) return false;

        // Should trigger if hasn't been called in a while
        if (block.timestamp - params.lastReport >= maxReportDelay) return true;

        // If some amount is owed, pay it back
        // NOTE: Since debt is based on deposits, it makes sense to guard against large
        //       changes to the value from triggering a harvest directly through user
        //       behavior. This should ensure reasonable resistance to manipulation
        //       from user-initiated withdrawals as the outstanding debt fluctuates.
        uint256 outstanding = vault.debtOutstanding();
        if (outstanding > debtThreshold) return true;

        // Check for profits and losses
        uint256 total = estimatedTotalAssets();
        // Trigger if we have a loss to report
        if (total + debtThreshold < params.totalDebt) return true;

        uint256 profit = 0;
        if (total > params.totalDebt) profit = total - params.totalDebt; // We've earned a profit!

        // Otherwise, only trigger if it "makes sense" economically (gas cost
        // is <N% of value moved)
        uint256 credit = vault.creditAvailable();
        return (profitFactor * callCost < credit + profit);
    }

    /**
     * @notice
     *  Harvests the Strategy, recognizing any profits or losses and adjusting
     *  the Strategy's position.
     *
     *  In the rare case the Strategy is in emergency shutdown, this will exit
     *  the Strategy's position.
     *
     * @dev
     *  When `harvest()` is called, the Strategy reports to the Vault (via
     *  `vault.report()`), so in some cases `harvest()` must be called in order
     *  to take in profits, to borrow newly available funds from the Vault, or
     *  otherwise adjust its position. In other cases `harvest()` must be
     *  called to report to the Vault on the Strategy's position, especially if
     *  any losses have occurred.
     */
    function harvest() external {
        require(msg.sender == vault.vaultAdapter(), "harvest: Call from vault");
        uint256 profit = 0;
        uint256 loss = 0;
        uint256 debtOutstanding = vault.debtOutstanding();
        uint256 debtPayment = 0;
        if (emergencyExit) {
            // Free up as much capital as possible
            uint256 totalAssets = estimatedTotalAssets();
            // NOTE: use the larger of total assets or debt outstanding to book losses properly
            (debtPayment, loss) = liquidatePosition(totalAssets > debtOutstanding ? totalAssets : debtOutstanding);
            // NOTE: take up any remainder here as profit
            if (debtPayment > debtOutstanding) {
                profit = debtPayment - debtOutstanding;
                debtPayment = debtOutstanding;
            }
        } else {
            // Free up returns for Vault to pull
            (profit, loss, debtPayment) = prepareReturn(debtOutstanding);
        }
        // Allow Vault to take up to the "harvested" balance of this contract,
        // which is the amount it has earned since the last time it reported to
        // the Vault.
        debtOutstanding = vault.report(profit, loss, debtPayment);

        // Check if free returns are left, and re-invest them
        adjustPosition(debtOutstanding);

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

    /**
     * @notice
     *  Withdraws `_amountNeeded` to `vault`.
     *
     *  This may only be called by the Vault.
     * @param _amountNeeded How much `want` to withdraw.
     * @return _loss Any realized losses
     */
    function withdraw(uint256 _amountNeeded) external returns (uint256 _loss) {
        require(msg.sender == address(vault), "!vault");
        // Liquidate as much as possible to `want`, up to `_amountNeeded`
        uint256 amountFreed;
        (amountFreed, _loss) = liquidatePosition(_amountNeeded);
        // Send it directly back (NOTE: Using `msg.sender` saves some gas here)
        want.safeTransfer(msg.sender, amountFreed);
        // NOTE: Reinvest anything leftover on next `tend`/`harvest`
    }

    /**
     * Do anything necessary to prepare this Strategy for migration, such as
     * transferring any reserve or LP tokens, CDPs, or other tokens or stores of
     * value.
     */
    function prepareMigration(address _newStrategy) internal virtual;

    /**
     * @notice
     *  Transfers all `want` from this Strategy to `_newStrategy`.
     *
     *  This may only be called by owner or the Vault.
     * @dev
     *  The new Strategy's Vault must be the same as this Strategy's Vault.
     * @param _newStrategy The Strategy to migrate to.
     */
    function migrate(address _newStrategy) external {
        require(msg.sender == address(vault));
        require(BaseStrategy(_newStrategy).vault() == vault);
        prepareMigration(_newStrategy);
        want.safeTransfer(_newStrategy, want.balanceOf(address(this)));
    }

    /**
     * @notice
     *  Activates emergency exit. Once activated, the Strategy will exit its
     *  position upon the next harvest, depositing all funds into the Vault as
     *  quickly as is reasonable given on-chain conditions.
     *
     * @dev
     *  See `vault.setEmergencyShutdown()` and `harvest()` for further details.
     */
    function setEmergencyExit() external onlyAuthorized {
        emergencyExit = true;
        vault.revokeStrategy();

        emit EmergencyExitEnabled();
    }

    /**
     * Override this to add all tokens/tokenized positions this contract
     * manages on a *persistent* basis (e.g. not just for swapping back to
     * want ephemerally).
     *
     * NOTE: Do *not* include `want`, already included in `sweep` below.
     *
     * Example:
     *
     *    function protectedTokens() internal override view returns (address[] memory) {
     *      address[] memory protected = new address[](3);
     *      protected[0] = tokenA;
     *      protected[1] = tokenB;
     *      protected[2] = tokenC;
     *      return protected;
     *    }
     */
    function protectedTokens() internal view virtual returns (address[] memory);

    /**
     * @notice
     *  Removes tokens from this Strategy that are not the type of tokens
     *  managed by this Strategy. This may be used in case of accidentally
     *  sending the wrong kind of token to this Strategy.
     *
     *  Tokens will be sent to `owner()`.
     *
     *  This will fail if an attempt is made to sweep `want`, or any tokens
     *  that are protected by this Strategy.
     *
     *  This may only be called by owner.
     * @dev
     *  Implement `protectedTokens()` to specify any additional tokens that
     *  should be protected from sweeping in addition to `want`.
     * @param _token The token to transfer out of this vault.
     */
    function sweep(address _token) external onlyOwner {
        require(_token != address(want), "!want");
        require(_token != address(vault), "!shares");

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

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

// File: contracts/interfaces/IERC20Detailed.sol

pragma solidity 0.8.4;

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

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

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

// File: contracts/interfaces/ICurve.sol

pragma solidity 0.8.4;

interface ICurve3Pool {
    function coins(uint256 i) external view returns (address);

    function get_virtual_price() external view returns (uint256);

    function get_dy(
        int128 i,
        int128 j,
        uint256 dx
    ) external view returns (uint256);

    function calc_withdraw_one_coin(uint256 _token_amount, int128 i) external view returns (uint256);

    function calc_token_amount(uint256[3] calldata inAmounts, bool deposit) external view returns (uint256);

    function balances(uint256 i) external view returns (uint256);
}

interface ICurve3Deposit {
    function exchange(
        int128 i,
        int128 j,
        uint256 dx,
        uint256 min_dy
    ) external;

    function add_liquidity(uint256[3] calldata uamounts, uint256 min_mint_amount) external;

    function remove_liquidity(uint256 amount, uint256[3] calldata min_uamounts) external;

    function remove_liquidity_imbalance(uint256[3] calldata amounts, uint256 max_burn_amount) external;

    function remove_liquidity_one_coin(
        uint256 _token_amount,
        int128 i,
        uint256 min_uamount
    ) external;

    function get_dy(
        int128 i,
        int128 j,
        uint256 dx
    ) external view returns (uint256);
}

interface ICurveMetaPool {
    function coins(uint256 i) external view returns (address);

    function get_virtual_price() external view returns (uint256);

    function get_dy_underlying(
        int128 i,
        int128 j,
        uint256 dx
    ) external view returns (uint256);

    function calc_withdraw_one_coin(uint256 _token_amount, int128 i) external view returns (uint256);

    function calc_token_amount(uint256[2] calldata inAmounts, bool deposit) external view returns (uint256);

    function exchange(
        int128 i,
        int128 j,
        uint256 dx,
        uint256 min_dy
    ) external;

    function add_liquidity(uint256[2] calldata uamounts, uint256 min_mint_amount) external;

    function remove_liquidity_one_coin(
        uint256 _token_amount,
        int128 i,
        uint256 min_uamount
    ) external;
}

interface ICurveZap {
    function add_liquidity(uint256[4] calldata uamounts, uint256 min_mint_amount) external;

    function remove_liquidity(uint256 amount, uint256[4] calldata min_uamounts) external;

    function remove_liquidity_imbalance(uint256[4] calldata amounts, uint256 max_burn_amount) external;

    function remove_liquidity_one_coin(
        uint256 _token_amount,
        int128 i,
        uint256 min_uamount
    ) external;

    function calc_withdraw_one_coin(uint256 _token_amount, int128 i) external view returns (uint256);

    function calc_token_amount(uint256[4] calldata inAmounts, bool deposit) external view returns (uint256);

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

// File: contracts/interfaces/UniSwap/IUni.sol

pragma solidity 0.8.4;

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

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

// File: @openzeppelin/contracts/utils/math/Math.sol


pragma solidity ^0.8.0;

/**
 * @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.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a / b + (a % b == 0 ? 0 : 1);
    }
}

// File: contracts/strategies/StableConvexXPool.sol

pragma solidity 0.8.4;






/// Convex booster interface
interface Booster {
    struct PoolInfo {
        address lptoken;
        address token;
        address gauge;
        address crvRewards;
        address stash;
        bool shutdown;
    }

    function poolInfo(uint256)
        external
        view
        returns (
            address,
            address,
            address,
            address,
            address,
            bool
        );

    // deposit lp tokens and stake
    function deposit(
        uint256 _pid,
        uint256 _amount,
        bool _stake
    ) external returns (bool);
}

/// Convex rewards interface
interface Rewards {
    function balanceOf(address account) external view returns (uint256);

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

    function withdrawAndUnwrap(uint256 amount, bool claim) external returns (bool);

    function withdrawAllAndUnwrap(bool claim) external;

    function getReward() external returns (bool);
}

/** @title StableConvexXPool
*   @notice Convex strategy based of yearns convex contract that allows usage of one of the 3 pool
*       stables as want, rather than a metapool lp token. This strategy can swap between meta pool
*       and convex strategies to opimize yield/risk, and routes all assets through the following flow:
*           3crv => metaLp => convex.
*/
contract StableConvexXPool is BaseStrategy {
    using SafeERC20 for IERC20;
    /*///////////////////////////////////////////////////////////////
                            CONTRACT VARIABLES
    //////////////////////////////////////////////////////////////*/

    // Contract addresses
    address public constant BOOSTER = address(0xF403C135812408BFbE8713b5A23a04b3D48AAE31);

    address public constant CVX = address(0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B);
    address public constant CRV = address(0xD533a949740bb3306d119CC777fa900bA034cd52);
    address public constant WETH = address(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);
    address public constant DAI = address(0x6B175474E89094C44Da98b954EedeAC495271d0F);
    address public constant USDC = address(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48);
    address public constant USDT = address(0xdAC17F958D2ee523a2206206994597C13D831ec7);

    address public constant CRV_3POOL = address(0xbEbc44782C7dB0a1A60Cb6fe97d0b483032FF1C7);
    IERC20 public constant CRV_3POOL_TOKEN = IERC20(address(0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490));

    // Dexes for selling reward tokens
    address public constant UNISWAP = address(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
    address public constant SUSHISWAP = address(0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F);

    // meta pool token layout: [minor stable, 3Crv]
    int128 public constant CRV3_INDEX = 1;
    uint256 public constant CRV_METAPOOL_LEN = 2;
    // 3pool token layout: [dai, usdc, usdt]
    uint256 public constant CRV_3POOL_LEN = 3;

    uint256 public constant TO_ETH = 0;
    uint256 public constant TO_WANT = 1;

    // Want tokens index in 3 pool
    int128 public immutable WANT_INDEX;

    address public curve; // meta pool
    IERC20 public lpToken; // meta pool lp token
    uint256 public pId; // convex lp token pid
    address public rewardContract; // convex reward contract for lp token

    uint256 public newPId;
    address public newCurve;
    IERC20 public newLPToken;
    address public newRewardContract;

    address[] public dex;
    uint256 constant totalCliffs = 1000;
    uint256 constant maxSupply = 1e8 * 1e18;
    uint256 constant reductionPerCliff = 1e5 * 1e18;

    // when withdrawing we try to withdraw an additional x BP to cover withdrawal fees etc
    uint256 public slippageRecover = 4; 
    uint256 public slippage = 10; // how much slippage to we accept

    /*///////////////////////////////////////////////////////////////
                            EVENTS
    //////////////////////////////////////////////////////////////*/
    event LogSetNewPool(uint256 indexed newPId, address newLPToken, address newRewardContract, address newCurve);
    event LogSwitchDex(uint256 indexed id, address newDex);
    event LogSetNewDex(uint256 indexed id, address newDex);
    event LogChangePool(uint256 indexed newPId, address newLPToken, address newRewardContract, address newCurve);
    event LogSetNewSlippageRecover(uint256 slippage);
    event LogSetNewSlippage(uint256 slippage);

    constructor(address _vault, int128 wantIndex) BaseStrategy(_vault) {
        profitFactor = 1000;
        uint8 decimals = IERC20Detailed(address(want)).decimals();
        debtThreshold = 1_00_000 * (uint256(10)**decimals);
        dex = new address[](2);
        _switchDex(0, UNISWAP);
        _switchDex(1, SUSHISWAP);

        require(
            (address(want) == DAI && wantIndex == 0) ||
                (address(want) == USDC && wantIndex == 1) ||
                (address(want) == USDT && wantIndex == 2),
            "want and wantIndex does not match"
        );
        WANT_INDEX = wantIndex;

        want.safeApprove(CRV_3POOL, type(uint256).max);
    }

    /*///////////////////////////////////////////////////////////////
                            SETTERS
    //////////////////////////////////////////////////////////////*/

    /** @notice Set a new curve meta pool and convex target for the strategy
    *   @dev The migration will take place during the next harvest cycle (see prepareReturn)
    */
    function setNewPool(uint256 _newPId, address _newCurve) external onlyAuthorized {
        require(_newPId != pId, "setMetaPool: same id");
        (address lp, , , address reward, , bool shutdown) = Booster(BOOSTER).poolInfo(_newPId);
        require(!shutdown, "setMetaPool: pool is shutdown");
        IERC20 _newLPToken = IERC20(lp);
        newLPToken = _newLPToken;
        newRewardContract = reward;
        newPId = _newPId;
        newCurve = _newCurve;
        if (CRV_3POOL_TOKEN.allowance(address(this), newCurve) == 0) {
            CRV_3POOL_TOKEN.safeApprove(newCurve, type(uint256).max);
        }
        if (_newLPToken.allowance(address(this), BOOSTER) == 0) {
            _newLPToken.safeApprove(BOOSTER, type(uint256).max);
        }

        emit LogSetNewPool(_newPId, lp, reward, _newCurve);
    }

    /** @notice Set how much to lp tokens to withdraw in excess 
    *   @dev curve estimates for calc token amounts are slightly off, correct them by x BP
    */
    function setSlippageRecover(uint256 _slippage) external onlyAuthorized {
        slippageRecover = _slippage;
        emit LogSetNewSlippageRecover(_slippage);
    }

    /** @notice Amount of slippage we accept
    *   @dev Since slippage isnt usefull when calculated on chain against an amm, we use
    *       a straight forward heuristic - assume stable coin price of 1 usd and apply
    *       slippage against virtual price of lp token
    */
    function setSlippage(uint256 _slippage) external onlyAuthorized {
        slippage = _slippage;
        emit LogSetNewSlippage(_slippage);
    }

    /** @notice Swap which dex is traded against
    */
    function switchDex(uint256 id, address newDex) external onlyAuthorized {
        _switchDex(id, newDex);
        emit LogSetNewDex(id, newDex);
    }

    /** @notice Internal switch dex logic
    */
    function _switchDex(uint256 id, address newDex) private {
        dex[id] = newDex;

        IERC20 token;
        if (id == 0) {
            token = IERC20(CRV);
        } else {
            token = IERC20(CVX);
        }

        if (token.allowance(address(this), newDex) == 0) {
            token.approve(newDex, type(uint256).max);
        }
        emit LogSwitchDex(id, newDex);
    }

    /*///////////////////////////////////////////////////////////////
                            GETTERS
    //////////////////////////////////////////////////////////////*/

    function name() external pure override returns (string memory) {
        return "StrategyConvexXPool";
    }

    function estimatedTotalAssets() public view override returns (uint256 estimated) {
        estimated = _estimatedTotalAssets(true);
    }

    /** @notice Get total estimated assets in strategy
    *   @dev If no curve/convex target is set return balance of strategy
    *   @param includeReward Include convex rewards in total assets
    */
    function _estimatedTotalAssets(bool includeReward) private view returns (uint256 estimated) {
        if (rewardContract != address(0)) {
            uint256 lpAmount = Rewards(rewardContract).balanceOf(address(this));
            if (lpAmount > 0) {
                uint256 crv3Amount = ICurveMetaPool(curve).calc_withdraw_one_coin(lpAmount, CRV3_INDEX);
                estimated = ICurve3Pool(CRV_3POOL).calc_withdraw_one_coin(crv3Amount, WANT_INDEX);
            }
            if (includeReward) {
                estimated += _claimableBasic(TO_WANT);
            }
        }
        estimated += want.balanceOf(address(this));
    }

    /*///////////////////////////////////////////////////////////////
                        EMERGENCY                
    //////////////////////////////////////////////////////////////*/


    /** @notice Forcefully withdraw and sell rewards from convex and curve pools
    *   @dev Should only be used post emergency state being triggered to ensure all assets are withdrawn
    */
    function forceWithdraw() external onlyAuthorized {
        _withdrawAll();
    }

    /*///////////////////////////////////////////////////////////////
                        CURVE/CONVEX
    //////////////////////////////////////////////////////////////*/

    /** @notice Interal change pool Logic
    */
    function _changePool() private {
        uint256 _newPId = newPId;
        address _newCurve = newCurve;
        IERC20 _newLPToken = newLPToken;
        address _newReward = newRewardContract;

        pId = _newPId;
        curve = _newCurve;
        lpToken = _newLPToken;
        rewardContract = _newReward;

        newCurve = address(0);
        newPId = 0;
        newLPToken = IERC20(address(0));
        newRewardContract = address(0);

        emit LogChangePool(_newPId, address(_newLPToken), _newReward, _newCurve);
    }

    /** @notice Remove all assets into want and sell of rewards
    */
    function _withdrawAll() private {
        Rewards(rewardContract).withdrawAllAndUnwrap(true);
        _sellBasic();

        // remove liquidity from metapool
        uint256 lpAmount = lpToken.balanceOf(address(this));
        ICurveMetaPool _meta = ICurveMetaPool(curve);
        uint256 vp = _meta.get_virtual_price();
        _meta.remove_liquidity_one_coin(lpAmount, CRV3_INDEX, 0);

        // calc min amounts
        uint256 minAmount = (lpAmount * vp) / 1E18;
        minAmount =
            (minAmount - (minAmount * slippage) / 10000) /
            (1E18 / 10**IERC20Detailed(address(want)).decimals());

        // remove liquidity from 3pool
        lpAmount = CRV_3POOL_TOKEN.balanceOf(address(this));
        ICurve3Deposit(CRV_3POOL).remove_liquidity_one_coin(lpAmount, WANT_INDEX, minAmount);
    }

    /** @notice Calculate meta pool token value of want
    */
    function wantToLp(uint256 amount) private view returns (uint256 lpAmount) {
        uint256[CRV_3POOL_LEN] memory amountsCRV3;
        amountsCRV3[uint256(int256(WANT_INDEX))] = amount;

        uint256 crv3Amount = ICurve3Pool(CRV_3POOL).calc_token_amount(amountsCRV3, false);

        uint256[CRV_METAPOOL_LEN] memory amountsMP;
        amountsMP[uint256(int256(CRV3_INDEX))] = crv3Amount;

        lpAmount = ICurveMetaPool(curve).calc_token_amount(amountsMP, false);
    }

    /*///////////////////////////////////////////////////////////////
                            DEX
    //////////////////////////////////////////////////////////////*/

    /** @notice Sell reward tokens (crv + cvx)
    */
    function _sellBasic() private {
        uint256 crv = IERC20(CRV).balanceOf(address(this));
        if (crv > 0) {
            IUni(dex[0]).swapExactTokensForTokens(
                crv,
                uint256(0),
                _getPath(CRV, TO_WANT),
                address(this),
                block.timestamp
            );
        }
        uint256 cvx = IERC20(CVX).balanceOf(address(this));
        if (cvx > 0) {
            IUni(dex[1]).swapExactTokensForTokens(
                cvx,
                uint256(0),
                _getPath(CVX, TO_WANT),
                address(this),
                block.timestamp
            );
        }
    }

    /** @notice Calculate values of rewards tokens (crv + cvx)
    */
    function _claimableBasic(uint256 toIndex) private view returns (uint256) {
        uint256 crv = Rewards(rewardContract).earned(address(this));

        // calculations pulled directly from CVX's contract for minting CVX per CRV claimed
        uint256 supply = IERC20(CVX).totalSupply();
        uint256 cvx;

        uint256 cliff = supply / reductionPerCliff;
        // mint if below total cliffs
        if (cliff < totalCliffs) {
            // for reduction% take inverse of current cliff
            uint256 reduction = totalCliffs - cliff;
            // reduce
            cvx = (crv * reduction) / totalCliffs;

            // supply cap check
            uint256 amtTillMax = maxSupply - supply;
            if (cvx > amtTillMax) {
                cvx = amtTillMax;
            }
        }

        uint256 crvValue;
        if (crv > 0) {
            uint256[] memory crvSwap = IUni(dex[0]).getAmountsOut(crv, _getPath(CRV, toIndex));
            crvValue = crvSwap[crvSwap.length - 1];
        }

        uint256 cvxValue;
        if (cvx > 0) {
            uint256[] memory cvxSwap = IUni(dex[1]).getAmountsOut(cvx, _getPath(CVX, toIndex));
            cvxValue = cvxSwap[cvxSwap.length - 1];
        }

        return crvValue + cvxValue;
    }

    /*///////////////////////////////////////////////////////////////
                            CORE
    //////////////////////////////////////////////////////////////*/

    /** @notice Add available assets to the curve/convex pool
    *   @param _debtOutstanding any debt that is owed to the vault,
    *       should be 0 at this point
    */
    function adjustPosition(uint256 _debtOutstanding) internal override {
        if (emergencyExit) return;
        uint256 wantBal = want.balanceOf(address(this));
        if (wantBal > 0) {
            uint256[CRV_3POOL_LEN] memory amountsCRV3;
            amountsCRV3[uint256(int256(WANT_INDEX))] = wantBal;

            ICurve3Deposit(CRV_3POOL).add_liquidity(amountsCRV3, 0);

            uint256 crv3Bal = CRV_3POOL_TOKEN.balanceOf(address(this));
            if (crv3Bal > 0) {
                uint256[CRV_METAPOOL_LEN] memory amountsMP;
                amountsMP[uint256(int256(CRV3_INDEX))] = crv3Bal;
                ICurveMetaPool _meta = ICurveMetaPool(curve);

                uint256 vp = _meta.get_virtual_price();
                uint256 minAmount = (wantBal * (1E36 / 10**IERC20Detailed(address(want)).decimals())) / vp;

                minAmount = minAmount - (minAmount * slippage) / 10000;
                _meta.add_liquidity(amountsMP, minAmount);

                uint256 lpBal = lpToken.balanceOf(address(this));
                if (lpBal > 0) {
                    Booster(BOOSTER).deposit(pId, lpBal, true);
                }
            }
        }
    }

    /** @notice Atempt to remove assets from the curve/convex pool,
    *       reports a loss is we withdraw less than the required amount
    *   @param _amountNeeded Amount to remove
    */
    function liquidatePosition(uint256 _amountNeeded)
        internal
        override
        returns (uint256 _liquidatedAmount, uint256 _loss)
    {
        uint256 _wantBal = want.balanceOf(address(this));
        if (_wantBal < _amountNeeded) {
            _liquidatedAmount = _withdrawSome(_amountNeeded - _wantBal);
            _liquidatedAmount = _liquidatedAmount + _wantBal;
            _liquidatedAmount = Math.min(_liquidatedAmount, _amountNeeded);
            if (_liquidatedAmount < _amountNeeded) {
                _loss = _amountNeeded - _liquidatedAmount;
            }
        } else {
            _liquidatedAmount = _amountNeeded;
        }
    }

    /** @notice Withdraw assets from curve/convex pool
    *   @param _amount Amount to withdraw
    */
    function _withdrawSome(uint256 _amount) private returns (uint256) {
        uint256 lpAmount = wantToLp(_amount);
        lpAmount = lpAmount + (lpAmount * slippageRecover) / 10000;
        uint256 poolBal = Rewards(rewardContract).balanceOf(address(this));

        if (poolBal < lpAmount) {
            lpAmount = poolBal;
        }

        if (poolBal == 0) return 0;

        uint256 before = want.balanceOf(address(this));

        // withdraw from convex
        Rewards(rewardContract).withdrawAndUnwrap(lpAmount, false);

        // remove liquidity from metapool
        lpAmount = lpToken.balanceOf(address(this));
        ICurveMetaPool _meta = ICurveMetaPool(curve);
        uint256 vp = _meta.get_virtual_price();
        _meta.remove_liquidity_one_coin(lpAmount, CRV3_INDEX, 0);

        // calc min amounts using the metaLp token as the basis
        uint256 minAmount = (lpAmount * vp) / 1E18;
        minAmount =
            (minAmount - (minAmount * slippage) / 10000) /
            (1E18 / 10**IERC20Detailed(address(want)).decimals());

        // remove liquidity from 3pool
        lpAmount = CRV_3POOL_TOKEN.balanceOf(address(this));

        ICurve3Deposit(CRV_3POOL).remove_liquidity_one_coin(lpAmount, WANT_INDEX, minAmount);

        return want.balanceOf(address(this)) - before;
    }

    /** @notice Do strategy accounting to determine potential gains/losses and
    *       pay back any outstanding debt to the vault.
    *   @dev If a new curve/convex pair has been set, the the strategy will remove
    *       all assets from the old pair, sell of all rewards and prepare the migration
    *       to the new pair in this function.
    *   @param _debtOutstanding Amount of debt owed to the vault
    */
    function prepareReturn(uint256 _debtOutstanding)
        internal
        override
        returns (
            uint256 _profit,
            uint256 _loss,
            uint256 _debtPayment
        )
    {
        uint256 total;
        uint256 wantBal;
        uint256 beforeTotal;
        uint256 debt = vault.strategies(address(this)).totalDebt;
        if (curve == address(0)) {
            // invest into strategy first time
            _changePool();
            return (0, 0, 0);
        } else if (newCurve != address(0)) {
            // swap the pool
            beforeTotal = _estimatedTotalAssets(true);
            _withdrawAll();
            _changePool();
            wantBal = want.balanceOf(address(this));
            total = wantBal;

            if (beforeTotal < debt) {
                total = Math.max(beforeTotal, total);
            } else if (beforeTotal > debt && total < debt) {
                total = debt;
            }
        } else {
            Rewards(rewardContract).getReward();
            _sellBasic();
            total = _estimatedTotalAssets(false);
            wantBal = want.balanceOf(address(this));
        }
        _debtPayment = _debtOutstanding;
        if (total > debt) {
            _profit = total - debt;
            uint256 amountToFree = _profit + _debtPayment;
            if (amountToFree > 0 && wantBal < amountToFree) {
                _withdrawSome(amountToFree - wantBal);
                total = _estimatedTotalAssets(false);
                wantBal = want.balanceOf(address(this));
                if (total <= debt) {
                    _profit = 0;
                    _loss = debt - total;
                } else {
                    _profit = total - debt;
                }
                amountToFree = _profit + _debtPayment;
                if (wantBal < amountToFree) {
                    if (_profit > wantBal) {
                        _profit = wantBal;
                        _debtPayment = 0;
                    } else {
                        _debtPayment = Math.min(wantBal - _profit, _debtPayment);
                    }
                }
            }
        } else {
            _loss = debt - total;
            uint256 amountToFree = _debtPayment;
            if (amountToFree > 0 && wantBal < amountToFree) {
                _withdrawSome(amountToFree - wantBal);
                wantBal = want.balanceOf(address(this));
                if (wantBal < amountToFree) {
                    _debtPayment = wantBal;
                }
            }
        }
    }

    function tendTrigger(uint256 callCost) public pure override returns (bool) {
        callCost;
        return false;
    }

    /** @notice Check if strategy need to be harvested
    *   @param callCost Estimated cost of calling harvest in ETH
    */
    function harvestTrigger(uint256 callCost) public view override returns (bool) {
        StrategyParams memory params = vault.strategies(address(this));

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

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

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

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

        uint256 total = estimatedTotalAssets();
        if (total + debtThreshold < params.totalDebt) return true;

        uint256 profit;
        if (total > params.totalDebt) {
            profit = total - params.totalDebt;
        }

        return (profitFactor * callCost < _wantToETH(profit));
    }

    /*///////////////////////////////////////////////////////////////
                    UTILITY
    //////////////////////////////////////////////////////////////*/

    /** @notice Get path for uni style pool swap
    */
    function _getPath(address from, uint256 toIndex) private view returns (address[] memory path) {
        if (toIndex == TO_ETH) {
            path = new address[](2);
            path[0] = from;
            path[1] = WETH;
        }

        if (toIndex == TO_WANT) {
            path = new address[](3);
            path[0] = from;
            path[1] = WETH;
            path[2] = address(want);
        }
    }

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

    function protectedTokens() internal pure override returns (address[] memory) {
        address[] memory protected = new address[](2);
        protected[0] = CRV;
        protected[1] = CVX;
        return protected;
    }

    function _wantToETH(uint256 wantAmount) private view returns (uint256) {
        if (wantAmount > 0) {
            address[] memory path = new address[](2);
            path[0] = address(want);
            path[1] = WETH;
            uint256[] memory amounts = IUni(dex[0]).getAmountsOut(wantAmount, path);
            return amounts[1];
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_vault","type":"address"},{"internalType":"int128","name":"wantIndex","type":"int128"}],"stateMutability":"nonpayable","type":"constructor"},{"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":true,"internalType":"uint256","name":"newPId","type":"uint256"},{"indexed":false,"internalType":"address","name":"newLPToken","type":"address"},{"indexed":false,"internalType":"address","name":"newRewardContract","type":"address"},{"indexed":false,"internalType":"address","name":"newCurve","type":"address"}],"name":"LogChangePool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"address","name":"newDex","type":"address"}],"name":"LogSetNewDex","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newPId","type":"uint256"},{"indexed":false,"internalType":"address","name":"newLPToken","type":"address"},{"indexed":false,"internalType":"address","name":"newRewardContract","type":"address"},{"indexed":false,"internalType":"address","name":"newCurve","type":"address"}],"name":"LogSetNewPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"slippage","type":"uint256"}],"name":"LogSetNewSlippage","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"slippage","type":"uint256"}],"name":"LogSetNewSlippageRecover","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"address","name":"newDex","type":"address"}],"name":"LogSwitchDex","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":"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"},{"inputs":[],"name":"BOOSTER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CRV","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CRV3_INDEX","outputs":[{"internalType":"int128","name":"","type":"int128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CRV_3POOL","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CRV_3POOL_LEN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CRV_3POOL_TOKEN","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CRV_METAPOOL_LEN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CVX","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DAI","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SUSHISWAP","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TO_ETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TO_WANT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNISWAP","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDC","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WANT_INDEX","outputs":[{"internalType":"int128","name":"","type":"int128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curve","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"debtThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"dex","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyExit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"estimatedTotalAssets","outputs":[{"internalType":"uint256","name":"estimated","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"forceWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"callCost","type":"uint256"}],"name":"harvestTrigger","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"lpToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxReportDelay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newStrategy","type":"address"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","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":"pure","type":"function"},{"inputs":[],"name":"newCurve","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"newLPToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"newPId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"newRewardContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pId","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":"rewardContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewards","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_debtThreshold","type":"uint256"}],"name":"setDebtThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setEmergencyExit","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":"uint256","name":"_delay","type":"uint256"}],"name":"setMinReportDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPId","type":"uint256"},{"internalType":"address","name":"_newCurve","type":"address"}],"name":"setNewPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_profitFactor","type":"uint256"}],"name":"setProfitFactor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_slippage","type":"uint256"}],"name":"setSlippage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_slippage","type":"uint256"}],"name":"setSlippageRecover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"slippage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"slippageRecover","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"newDex","type":"address"}],"name":"switchDex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"callCost","type":"uint256"}],"name":"tendTrigger","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","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"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061038e5760003560e01c80637be80b39116101de578063c54e44eb1161010f578063ed398a87116100ad578063f0fa55a91161007c578063f0fa55a9146107c4578063f61356be146107d7578063fbfa77cf146107df578063fcf2d0ad146107f257600080fd5b8063ed398a8714610783578063ed882c2b14610796578063efbb5cb0146107a9578063f017c92f146107b157600080fd5b8063cd070798116100e9578063cd07079814610744578063ce5494bb1461074c578063d32b0b851461075f578063e0bab4c41461076857600080fd5b8063c54e44eb146106e7578063c745d9e714610702578063cc581fc81461071d57600080fd5b8063945c91421161017c5780639ec5a894116101565780639ec5a8941461068b578063a21895331461069e578063aced1661146106b9578063ad5c4648146106cc57600080fd5b8063945c91421461064c57806395e80c50146106675780639c708aab1461067057600080fd5b806389a30271116101b857806389a302711461060257806389d16cd81461061d5780638cdfe1661461063057806391397ab41461063957600080fd5b80637be80b39146105d45780637d726cd0146105dc57806381639eda146105ef57600080fd5b80633e032a3b116102c35780635921bf2d116102615780637165485d116102305780637165485d14610573578063748747e61461058b578063759cb53b1461059e57806375b0ffd1146105b957600080fd5b80635921bf2d146105315780635fcbd28514610539578063650d18801461054c5780636ea69d621461056057600080fd5b80634641257d1161029d5780634641257d146104f85780634a0c5d5d146105005780635159c3d21461051b5780635641ec031461052457600080fd5b80633e032a3b146104df5780633e174ea0146104e8578063440368a3146104f057600080fd5b80631d12f28b1161033057806324d16c1a1161030a57806324d16c1a1461049d57806328b7ccf7146104b05780632e1a7d4d146104b957806339a172a8146104cc57600080fd5b80631d12f28b146104695780631f1fcd511461047257806322f3e2d41461048557600080fd5b80630b62c3111161036c5780630b62c311146103f95780630c6b87051461040c5780630f969b87146104235780630fe240d51461043657600080fd5b806301681a621461039357806306fdde03146103a85780630a3bc8af146103e6575b600080fd5b6103a66103a1366004614592565b6107fa565b005b604080518082018252601381527214dd1c985d1959de50dbdb9d995e16141bdbdb606a1b602082015290516103dd9190614931565b60405180910390f35b6103a66103f43660046147cc565b610a01565b6103a661040736600461479c565b610d8b565b610415600a5481565b6040519081526020016103dd565b6103a661043136600461479c565b610e14565b61045173bebc44782c7db0a1a60cb6fe97d0b483032ff1c781565b6040516001600160a01b0390911681526020016103dd565b61041560075481565b600354610451906001600160a01b031681565b61048d610e96565b60405190151581526020016103dd565b6104516104ab36600461479c565b610f2f565b61041560055481565b6104156104c736600461479c565b610f59565b6103a66104da36600461479c565b610fcb565b61041560125481565b610415600381565b6103a661104d565b6103a661111f565b610508600181565b604051600f9190910b81526020016103dd565b610415600c5481565b60085461048d9060ff1681565b610415600081565b600954610451906001600160a01b031681565b61048d61055a36600461479c565b50600090565b600b54610451906001600160a01b031681565b6008546104519061010090046001600160a01b031681565b6103a6610599366004614592565b6113d8565b610451734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b81565b61045173f403c135812408bfbe8713b5a23a04b3d48aae3181565b6103a6611471565b600f54610451906001600160a01b031681565b6103a66105fd3660046147cc565b6114c6565b61045173a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b600d54610451906001600160a01b031681565b61041560065481565b6103a661064736600461479c565b61155f565b61045173d533a949740bb3306d119cc777fa900ba034cd5281565b61041560045481565b61045173d9e1ce17f2641f24ae83637ab66a2cca9c378b9f81565b600154610451906001600160a01b031681565b610451736c3f90f043a72fa612cbac8115ee7e52bde6e49081565b600254610451906001600160a01b031681565b61045173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b61045173dac17f958d2ee523a2206206994597c13d831ec781565b610451737a250d5630b4cf539739df2c5dacb4c659f2488d81565b6105087f000000000000000000000000000000000000000000000000000000000000000081565b610415600181565b6103a661075a366004614592565b6115e1565b61041560115481565b610451736b175474e89094c44da98b954eedeac495271d0f81565b600e54610451906001600160a01b031681565b61048d6107a436600461479c565b611739565b610415611918565b6103a66107bf36600461479c565b611924565b6103a66107d236600461479c565b6119a6565b610415600281565b600054610451906001600160a01b031681565b6103a6611a28565b610802611c7b565b6001600160a01b0316336001600160a01b03161461083b5760405162461bcd60e51b815260040161083290614964565b60405180910390fd5b6003546001600160a01b03828116911614156108815760405162461bcd60e51b8152602060048201526005602482015264085dd85b9d60da1b6044820152606401610832565b6000546001600160a01b03828116911614156108c95760405162461bcd60e51b81526020600482015260076024820152662173686172657360c81b6044820152606401610832565b60006108d3611d02565b905060005b81518110156109695781818151811061090157634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316836001600160a01b031614156109575760405162461bcd60e51b815260206004820152600a602482015269085c1c9bdd1958dd195960b21b6044820152606401610832565b8061096181614b97565b9150506108d8565b506109fd610975611c7b565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b1580156109b457600080fd5b505afa1580156109c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ec91906147b4565b6001600160a01b0385169190611dd0565b5050565b6002546001600160a01b0316331480610a325750610a1d611c7b565b6001600160a01b0316336001600160a01b0316145b610a4e5760405162461bcd60e51b815260040161083290614964565b600a54821415610a975760405162461bcd60e51b81526020600482015260146024820152731cd95d13595d18541bdbdb0e881cd85b59481a5960621b6044820152606401610832565b604051631526fe2760e01b8152600481018390526000908190819073f403c135812408bfbe8713b5a23a04b3d48aae3190631526fe279060240160c06040518083038186803b158015610ae957600080fd5b505afa158015610afd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b2191906145ca565b9550509450505092508015610b785760405162461bcd60e51b815260206004820152601d60248201527f7365744d657461506f6f6c3a20706f6f6c2069732073687574646f776e0000006044820152606401610832565b600e80546001600160a01b038581166001600160a01b031992831617909255600f8054858416908316179055600c879055600d80549287169290911682179055604051636eb1769f60e11b815230600482015260248101919091528390736c3f90f043a72fa612cbac8115ee7e52bde6e4909063dd62ed3e9060440160206040518083038186803b158015610c0c57600080fd5b505afa158015610c20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4491906147b4565b610c7657600d54610c7690736c3f90f043a72fa612cbac8115ee7e52bde6e490906001600160a01b0316600019611b06565b604051636eb1769f60e11b815230600482015273f403c135812408bfbe8713b5a23a04b3d48aae3160248201526001600160a01b0382169063dd62ed3e9060440160206040518083038186803b158015610ccf57600080fd5b505afa158015610ce3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0791906147b4565b610d3557610d356001600160a01b03821673f403c135812408bfbe8713b5a23a04b3d48aae31600019611b06565b604080516001600160a01b0386811682528581166020830152871681830152905187917f211b0976676d22d5f7a1e257617ef77487424d1244413d1ca70b7c6ab08c77c6919081900360600190a2505050505050565b6002546001600160a01b0316331480610dbc5750610da7611c7b565b6001600160a01b0316336001600160a01b0316145b610dd85760405162461bcd60e51b815260040161083290614964565b60118190556040518181527f499070c0e2a2ada1909a7696895f18ea2b35776ebf081d28e359ff5f74477460906020015b60405180910390a150565b6002546001600160a01b0316331480610e455750610e30611c7b565b6001600160a01b0316336001600160a01b0316145b610e615760405162461bcd60e51b815260040161083290614964565b60078190556040518181527fa68ba126373d04c004c5748c300c9fca12bd444b3d4332e261f3bd2bac4a860090602001610e09565b600080546040516339ebf82360e01b815230600482015282916001600160a01b0316906339ebf823906024016101006040518083038186803b158015610edb57600080fd5b505afa158015610eef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f13919061470d565b602001511180610f2a57506000610f28611918565b115b905090565b60108181548110610f3f57600080fd5b6000918252602090912001546001600160a01b0316905081565b600080546001600160a01b03163314610f9d5760405162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b6044820152606401610832565b6000610fa883611e00565b600354909350909150610fc5906001600160a01b03163383611dd0565b50919050565b6002546001600160a01b0316331480610ffc5750610fe7611c7b565b6001600160a01b0316336001600160a01b0316145b6110185760405162461bcd60e51b815260040161083290614964565b60048190556040518181527fbb2c369a0355a34b02ab5fce0643150c87e1c8dfe7c918d465591879f57948b190602001610e09565b6002546001600160a01b031633148061107e5750611069611c7b565b6001600160a01b0316336001600160a01b0316145b61109a5760405162461bcd60e51b815260040161083290614964565b6000546040805163bf3759b560e01b8152905161111d926001600160a01b03169163bf3759b5916004808301926020929190829003018186803b1580156110e057600080fd5b505afa1580156110f4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061111891906147b4565b611eda565b565b60008054906101000a90046001600160a01b03166001600160a01b0316634b43ac496040518163ffffffff1660e01b815260040160206040518083038186803b15801561116b57600080fd5b505afa15801561117f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111a391906145ae565b6001600160a01b0316336001600160a01b0316146112035760405162461bcd60e51b815260206004820152601860248201527f686172766573743a2043616c6c2066726f6d207661756c7400000000000000006044820152606401610832565b60008060008060009054906101000a90046001600160a01b03166001600160a01b031663bf3759b56040518163ffffffff1660e01b815260040160206040518083038186803b15801561125557600080fd5b505afa158015611269573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061128d91906147b4565b60085490915060009060ff16156112e25760006112a8611918565b90506112c08382116112ba5783611e00565b81611e00565b94509150828211156112dc576112d68383614b54565b94508291505b506112f3565b6112eb826123c0565b919550935090505b6000546040516328766ebf60e21b81526004810186905260248101859052604481018390526001600160a01b039091169063a1d9bafc90606401602060405180830381600087803b15801561134757600080fd5b505af115801561135b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061137f91906147b4565b915061138a82611eda565b6040805185815260208101859052908101829052606081018390527f4c0f499ffe6befa0ca7c826b0916cf87bea98de658013e76938489368d60d5099060800160405180910390a150505050565b6113e0611c7b565b6001600160a01b0316336001600160a01b0316146114105760405162461bcd60e51b815260040161083290614964565b6001600160a01b03811661142357600080fd5b600280546001600160a01b0319166001600160a01b0383169081179091556040519081527f2f202ddb4a2e345f6323ed90f8fc8559d770a7abbbeee84dde8aca3351fe715490602001610e09565b6002546001600160a01b03163314806114a2575061148d611c7b565b6001600160a01b0316336001600160a01b0316145b6114be5760405162461bcd60e51b815260040161083290614964565b61111d61287e565b6002546001600160a01b03163314806114f757506114e2611c7b565b6001600160a01b0316336001600160a01b0316145b6115135760405162461bcd60e51b815260040161083290614964565b61151d8282612c72565b6040516001600160a01b038216815282907fb5902a7c58a93b37ba3d4b3f985df20f8f4099490d696c6175cf6d67fef8dec59060200160405180910390a25050565b6002546001600160a01b0316331480611590575061157b611c7b565b6001600160a01b0316336001600160a01b0316145b6115ac5760405162461bcd60e51b815260040161083290614964565b60068190556040518181527fd94596337df4c2f0f44d30a7fc5db1c7bb60d9aca4185ed77c6fd96eb45ec29890602001610e09565b6000546001600160a01b031633146115f857600080fd5b60008054906101000a90046001600160a01b03166001600160a01b0316816001600160a01b031663fbfa77cf6040518163ffffffff1660e01b815260040160206040518083038186803b15801561164e57600080fd5b505afa158015611662573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061168691906145ae565b6001600160a01b03161461169957600080fd5b6116a281612e3f565b6003546040516370a0823160e01b81523060048201526117369183916001600160a01b03909116906370a082319060240160206040518083038186803b1580156116eb57600080fd5b505afa1580156116ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061172391906147b4565b6003546001600160a01b03169190611dd0565b50565b600080546040516339ebf82360e01b815230600482015282916001600160a01b0316906339ebf823906024016101006040518083038186803b15801561177e57600080fd5b505afa158015611792573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b6919061470d565b80519091506117c85750600092915050565b60045460808201516117da9042614b54565b10156117e95750600092915050565b60055460808201516117fb9042614b54565b106118095750600192915050565b60008060009054906101000a90046001600160a01b03166001600160a01b031663bf3759b56040518163ffffffff1660e01b815260040160206040518083038186803b15801561185857600080fd5b505afa15801561186c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189091906147b4565b90506007548111156118a6575060019392505050565b60006118b0611918565b90508260a00151600754826118c59190614a0f565b10156118d657506001949350505050565b60008360a001518211156118f65760a08401516118f39083614b54565b90505b6118ff81612e47565b8660065461190d9190614b35565b109695505050505050565b6000610f2a6001613000565b6002546001600160a01b03163314806119555750611940611c7b565b6001600160a01b0316336001600160a01b0316145b6119715760405162461bcd60e51b815260040161083290614964565b60058190556040518181527f5430e11864ad7aa9775b07d12657fe52df9aa2ba734355bd8ef8747be2c800c590602001610e09565b6002546001600160a01b03163314806119d757506119c2611c7b565b6001600160a01b0316336001600160a01b0316145b6119f35760405162461bcd60e51b815260040161083290614964565b60128190556040518181527fe581531306ae160478600794b876803579bc5d8150cc156fb49670ac4052d3ab90602001610e09565b6002546001600160a01b0316331480611a595750611a44611c7b565b6001600160a01b0316336001600160a01b0316145b611a755760405162461bcd60e51b815260040161083290614964565b6008805460ff19166001179055600080546040805163507257cd60e11b815290516001600160a01b039092169263a0e4af9a9260048084019382900301818387803b158015611ac357600080fd5b505af1158015611ad7573d6000803e3d6000fd5b50506040517f97e963041e952738788b9d4871d854d282065b8f90a464928d6528f2e9a4fd0b925060009150a1565b801580611b8f5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b158015611b5557600080fd5b505afa158015611b69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b8d91906147b4565b155b611bfa5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610832565b6040516001600160a01b038316602482015260448101829052611c5d90849063095ea7b360e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261327e565b505050565b6060611c718484600085613350565b90505b9392505050565b60008060009054906101000a90046001600160a01b03166001600160a01b0316635aa6e6756040518163ffffffff1660e01b815260040160206040518083038186803b158015611cca57600080fd5b505afa158015611cde573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f2a91906145ae565b6040805160028082526060808301845292600092919060208301908036833701905050905073d533a949740bb3306d119cc777fa900ba034cd5281600081518110611d5d57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b031681525050734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b81600181518110611db357634e487b7160e01b600052603260045260246000fd5b6001600160a01b0390921660209283029190910190910152919050565b6040516001600160a01b038316602482015260448101829052611c5d90849063a9059cbb60e01b90606401611c26565b6003546040516370a0823160e01b8152306004820152600091829182916001600160a01b0316906370a082319060240160206040518083038186803b158015611e4857600080fd5b505afa158015611e5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e8091906147b4565b905083811015611ed057611e9c611e978286614b54565b613478565b9250611ea88184614a0f565b9250611eb48385613a66565b925083831015611ecb57611ec88385614b54565b91505b611ed4565b8392505b50915091565b60085460ff1615611ee85750565b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015611f2c57600080fd5b505afa158015611f40573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f6491906147b4565b905080156109fd57611f74614546565b81817f0000000000000000000000000000000000000000000000000000000000000000600f0b60038110611fb857634e487b7160e01b600052603260045260246000fd5b6020020152604051634515cef360e01b815273bebc44782c7db0a1a60cb6fe97d0b483032ff1c790634515cef390611ff7908490600090600401614916565b600060405180830381600087803b15801561201157600080fd5b505af1158015612025573d6000803e3d6000fd5b50506040516370a0823160e01b815230600482015260009250736c3f90f043a72fa612cbac8115ee7e52bde6e49091506370a082319060240160206040518083038186803b15801561207657600080fd5b505afa15801561208a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120ae91906147b4565b905080156123ba576120be614564565b602081810183905260085460408051630176f71760e71b815290516101009092046001600160a01b031692600092849263bb7b8b80926004808301939192829003018186803b15801561211057600080fd5b505afa158015612124573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061214891906147b4565b9050600081600360009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561219b57600080fd5b505afa1580156121af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121d391906147fb565b6121de90600a614a8a565b6121f7906ec097ce7bc90715b34b9f1000000000614a27565b6122019089614b35565b61220b9190614a27565b90506127106012548261221e9190614b35565b6122289190614a27565b6122329082614b54565b604051630b4c7e4d60e01b81529091506001600160a01b03841690630b4c7e4d9061226390879085906004016148de565b600060405180830381600087803b15801561227d57600080fd5b505af1158015612291573d6000803e3d6000fd5b50506009546040516370a0823160e01b8152306004820152600093506001600160a01b0390911691506370a082319060240160206040518083038186803b1580156122db57600080fd5b505afa1580156122ef573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061231391906147b4565b905080156123b457600a546040516321d0683360e11b81526004810191909152602481018290526001604482015273f403c135812408bfbe8713b5a23a04b3d48aae31906343a0d06690606401602060405180830381600087803b15801561237a57600080fd5b505af115801561238e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123b291906146f3565b505b50505050505b50505050565b600080546040516339ebf82360e01b81523060048201528291829182918291829182916001600160a01b03909116906339ebf823906024016101006040518083038186803b15801561241157600080fd5b505afa158015612425573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612449919061470d565b60a0015160085490915061010090046001600160a01b03166124815761246d613a7c565b600080600096509650965050505050612877565b600d546001600160a01b0316156125635761249c6001613000565b91506124a661287e565b6124ae613a7c565b6003546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b1580156124f157600080fd5b505afa158015612505573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061252991906147b4565b925082935080821015612547576125408285613b43565b935061267d565b808211801561255557508084105b1561255e578093505b61267d565b600b60009054906101000a90046001600160a01b03166001600160a01b0316633d18b9126040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156125b357600080fd5b505af11580156125c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125eb91906146f3565b506125f4613b53565b6125fe6000613000565b6003546040516370a0823160e01b81523060048201529195506001600160a01b0316906370a082319060240160206040518083038186803b15801561264257600080fd5b505afa158015612656573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061267a91906147b4565b92505b879450808411156127b9576126928185614b54565b965060006126a08689614a0f565b90506000811180156126b157508084105b156127b3576126c3611e978583614b54565b506126ce6000613000565b6003546040516370a0823160e01b81523060048201529196506001600160a01b0316906370a082319060240160206040518083038186803b15801561271257600080fd5b505afa158015612726573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061274a91906147b4565b935081851161276857600097506127618583614b54565b9650612775565b6127728286614b54565b97505b61277f8689614a0f565b9050808410156127b3578388111561279d57839750600095506127b3565b6127b06127aa8986614b54565b87613a66565b95505b50612872565b6127c38482614b54565b95508480158015906127d457508084105b15612870576127e6611e978583614b54565b506003546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561282a57600080fd5b505afa15801561283e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061286291906147b4565b935080841015612870578395505b505b505050505b9193909250565b600b546040516324f81cd160e11b8152600160048201526001600160a01b03909116906349f039a290602401600060405180830381600087803b1580156128c457600080fd5b505af11580156128d8573d6000803e3d6000fd5b505050506128e4613b53565b6009546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561292857600080fd5b505afa15801561293c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061296091906147b4565b90506000600860019054906101000a90046001600160a01b031690506000816001600160a01b031663bb7b8b806040518163ffffffff1660e01b815260040160206040518083038186803b1580156129b757600080fd5b505afa1580156129cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129ef91906147b4565b604051630d2680e960e11b81526004810185905260016024820152600060448201529091506001600160a01b03831690631a4d01d290606401600060405180830381600087803b158015612a4257600080fd5b505af1158015612a56573d6000803e3d6000fd5b505050506000670de0b6b3a76400008285612a719190614b35565b612a7b9190614a27565b9050600360009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015612acb57600080fd5b505afa158015612adf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b0391906147fb565b612b0e90600a614a8a565b612b2090670de0b6b3a7640000614a27565b61271060125483612b319190614b35565b612b3b9190614a27565b612b459083614b54565b612b4f9190614a27565b6040516370a0823160e01b8152306004820152909150736c3f90f043a72fa612cbac8115ee7e52bde6e490906370a082319060240160206040518083038186803b158015612b9c57600080fd5b505afa158015612bb0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bd491906147b4565b604051630d2680e960e11b8152600481018290527f0000000000000000000000000000000000000000000000000000000000000000600f0b60248201526044810183905290945073bebc44782c7db0a1a60cb6fe97d0b483032ff1c790631a4d01d290606401600060405180830381600087803b158015612c5457600080fd5b505af1158015612c68573d6000803e3d6000fd5b5050505050505050565b8060108381548110612c9457634e487b7160e01b600052603260045260246000fd5b6000918252602082200180546001600160a01b0319166001600160a01b03939093169290921790915582612cdd575073d533a949740bb3306d119cc777fa900ba034cd52612cf4565b50734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b5b604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015282169063dd62ed3e9060440160206040518083038186803b158015612d3b57600080fd5b505afa158015612d4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d7391906147b4565b612dfc5760405163095ea7b360e01b81526001600160a01b038381166004830152600019602483015282169063095ea7b390604401602060405180830381600087803b158015612dc257600080fd5b505af1158015612dd6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dfa91906146f3565b505b6040516001600160a01b038316815283907fd8d1d1459634b27252313a656cc662957656912608ed80062b52f058afc7fd929060200160405180910390a2505050565b61173661287e565b60008115612ffb57604080516002808252606082018352600092602083019080368337505060035482519293506001600160a01b031691839150600090612e9e57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600181518110612ef457634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b03168152505060006010600081548110612f3857634e487b7160e01b600052603260045260246000fd5b60009182526020909120015460405163d06ca61f60e01b81526001600160a01b039091169063d06ca61f90612f739087908690600401614989565b60006040518083038186803b158015612f8b57600080fd5b505afa158015612f9f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612fc7919081019061464b565b905080600181518110612fea57634e487b7160e01b600052603260045260246000fd5b602002602001015192505050919050565b919050565b600b546000906001600160a01b0316156131f357600b546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561305857600080fd5b505afa15801561306c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061309091906147b4565b905080156131d45760085460405163cc2b27d760e01b8152600481018390526001602482015260009161010090046001600160a01b03169063cc2b27d79060440160206040518083038186803b1580156130e957600080fd5b505afa1580156130fd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061312191906147b4565b60405163cc2b27d760e01b8152600481018290527f0000000000000000000000000000000000000000000000000000000000000000600f0b602482015290915073bebc44782c7db0a1a60cb6fe97d0b483032ff1c79063cc2b27d79060440160206040518083038186803b15801561319857600080fd5b505afa1580156131ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131d091906147b4565b9250505b82156131f1576131e46001613e1b565b6131ee9083614a0f565b91505b505b6003546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561323657600080fd5b505afa15801561324a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061326e91906147b4565b6132789082614a0f565b92915050565b60006132d3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c629092919063ffffffff16565b805190915015611c5d57808060200190518101906132f191906146f3565b611c5d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610832565b6060824710156133b15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610832565b843b6133ff5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610832565b600080866001600160a01b0316858760405161341b91906148a5565b60006040518083038185875af1925050503d8060008114613458576040519150601f19603f3d011682016040523d82523d6000602084013e61345d565b606091505b509150915061346d8282866141c4565b979650505050505050565b600080613484836141fd565b9050612710601154826134979190614b35565b6134a19190614a27565b6134ab9082614a0f565b600b546040516370a0823160e01b81523060048201529192506000916001600160a01b03909116906370a082319060240160206040518083038186803b1580156134f457600080fd5b505afa158015613508573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061352c91906147b4565b90508181101561353a578091505b80613549575060009392505050565b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561358d57600080fd5b505afa1580156135a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135c591906147b4565b600b54604051636197390160e11b815260048101869052600060248201529192506001600160a01b03169063c32e720290604401602060405180830381600087803b15801561361357600080fd5b505af1158015613627573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061364b91906146f3565b506009546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561368f57600080fd5b505afa1580156136a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136c791906147b4565b92506000600860019054906101000a90046001600160a01b031690506000816001600160a01b031663bb7b8b806040518163ffffffff1660e01b815260040160206040518083038186803b15801561371e57600080fd5b505afa158015613732573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061375691906147b4565b604051630d2680e960e11b81526004810187905260016024820152600060448201529091506001600160a01b03831690631a4d01d290606401600060405180830381600087803b1580156137a957600080fd5b505af11580156137bd573d6000803e3d6000fd5b505050506000670de0b6b3a764000082876137d89190614b35565b6137e29190614a27565b9050600360009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561383257600080fd5b505afa158015613846573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061386a91906147fb565b61387590600a614a8a565b61388790670de0b6b3a7640000614a27565b612710601254836138989190614b35565b6138a29190614a27565b6138ac9083614b54565b6138b69190614a27565b6040516370a0823160e01b8152306004820152909150736c3f90f043a72fa612cbac8115ee7e52bde6e490906370a082319060240160206040518083038186803b15801561390357600080fd5b505afa158015613917573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061393b91906147b4565b604051630d2680e960e11b8152600481018290527f0000000000000000000000000000000000000000000000000000000000000000600f0b60248201526044810183905290965073bebc44782c7db0a1a60cb6fe97d0b483032ff1c790631a4d01d290606401600060405180830381600087803b1580156139bb57600080fd5b505af11580156139cf573d6000803e3d6000fd5b50506003546040516370a0823160e01b81523060048201528793506001600160a01b0390911691506370a082319060240160206040518083038186803b158015613a1857600080fd5b505afa158015613a2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a5091906147b4565b613a5a9190614b54565b98975050505050505050565b6000818310613a755781611c74565b5090919050565b600c8054600d8054600e8054600f8054600a87905560088054610100600160a81b0319166101006001600160a01b0380891691820292909217909255600980548287166001600160a01b03199182168117909255600b80549386169382168417905597881690985560009099559285169093559290911690915560408051838152602081018690529081018290529293909284907f68b134ffef14336d1d74fbd92b7f87eca1f02112499b0dc03dc8046523a73a899060600160405180910390a250505050565b600081831015613a755781611c74565b6040516370a0823160e01b815230600482015260009073d533a949740bb3306d119cc777fa900ba034cd52906370a082319060240160206040518083038186803b158015613ba057600080fd5b505afa158015613bb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613bd891906147b4565b90508015613cb8576010600081548110613c0257634e487b7160e01b600052603260045260246000fd5b60009182526020822001546001600160a01b0316906338ed1739908390613c3e73d533a949740bb3306d119cc777fa900ba034cd52600161437f565b30426040518663ffffffff1660e01b8152600401613c609594939291906149a2565b600060405180830381600087803b158015613c7a57600080fd5b505af1158015613c8e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613cb6919081019061464b565b505b6040516370a0823160e01b8152306004820152600090734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906370a082319060240160206040518083038186803b158015613d0557600080fd5b505afa158015613d19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d3d91906147b4565b905080156109fd576010600181548110613d6757634e487b7160e01b600052603260045260246000fd5b60009182526020822001546001600160a01b0316906338ed1739908390613da3734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b600161437f565b30426040518663ffffffff1660e01b8152600401613dc59594939291906149a2565b600060405180830381600087803b158015613ddf57600080fd5b505af1158015613df3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611c5d919081019061464b565b600b546040516246613160e11b815230600482015260009182916001600160a01b0390911690628cc2629060240160206040518083038186803b158015613e6157600080fd5b505afa158015613e75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e9991906147b4565b90506000734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b6001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015613eea57600080fd5b505afa158015613efe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f2291906147b4565b9050600080613f3b69152d02c7e14af680000084614a27565b90506103e8811015613f98576000613f55826103e8614b54565b90506103e8613f648287614b35565b613f6e9190614a27565b92506000613f87856a52b7d2dcc80cd2e4000000614b54565b905080841115613f95578093505b50505b600084156140a95760006010600081548110613fc457634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031663d06ca61f87613ffd73d533a949740bb3306d119cc777fa900ba034cd528c61437f565b6040518363ffffffff1660e01b815260040161401a929190614989565b60006040518083038186803b15801561403257600080fd5b505afa158015614046573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261406e919081019061464b565b9050806001825161407f9190614b54565b8151811061409d57634e487b7160e01b600052603260045260246000fd5b60200260200101519150505b600083156141ba57600060106001815481106140d557634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031663d06ca61f8661410e734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b8d61437f565b6040518363ffffffff1660e01b815260040161412b929190614989565b60006040518083038186803b15801561414357600080fd5b505afa158015614157573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261417f919081019061464b565b905080600182516141909190614b54565b815181106141ae57634e487b7160e01b600052603260045260246000fd5b60200260200101519150505b613a5a8183614a0f565b606083156141d3575081611c74565b8251156141e35782518084602001fd5b8160405162461bcd60e51b81526004016108329190614931565b6000614207614546565b82817f0000000000000000000000000000000000000000000000000000000000000000600f0b6003811061424b57634e487b7160e01b600052603260045260246000fd5b6020020152604051633883e11960e01b815260009073bebc44782c7db0a1a60cb6fe97d0b483032ff1c790633883e1199061428c90859085906004016148f9565b60206040518083038186803b1580156142a457600080fd5b505afa1580156142b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142dc91906147b4565b90506142e6614564565b81816001602002015260085460405163ed8e84f360e01b81526101009091046001600160a01b03169063ed8e84f3906143269084906000906004016148c1565b60206040518083038186803b15801561433e57600080fd5b505afa158015614352573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061437691906147b4565b95945050505050565b60608161443f57604080516002808252606082018352909160208301908036833701905050905082816000815181106143c857634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28160018151811061441e57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250505b600182141561327857604080516003808252608082019092529060208201606080368337019050509050828160008151811061448b57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816001815181106144e157634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201015260035482519116908290600290811061452057634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b03168152505092915050565b60405180606001604052806003906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b80518015158114612ffb57600080fd5b6000602082840312156145a3578081fd5b8135611c7481614bde565b6000602082840312156145bf578081fd5b8151611c7481614bde565b60008060008060008060c087890312156145e2578182fd5b86516145ed81614bde565b60208801519096506145fe81614bde565b604088015190955061460f81614bde565b606088015190945061462081614bde565b608088015190935061463181614bde565b915061463f60a08801614582565b90509295509295509295565b6000602080838503121561465d578182fd5b825167ffffffffffffffff80821115614674578384fd5b818501915085601f830112614687578384fd5b81518181111561469957614699614bc8565b8060051b91506146aa8483016149de565b8181528481019084860184860187018a10156146c4578788fd5b8795505b838610156146e65780518352600195909501949186019186016146c8565b5098975050505050505050565b600060208284031215614704578081fd5b611c7482614582565b6000610100808385031215614720578182fd5b6040519081019067ffffffffffffffff8211818310171561474357614743614bc8565b81604052835181526020840151602082015260408401516040820152606084015160608201526080840151608082015260a084015160a082015260c084015160c082015260e084015160e0820152809250505092915050565b6000602082840312156147ad578081fd5b5035919050565b6000602082840312156147c5578081fd5b5051919050565b600080604083850312156147de578182fd5b8235915060208301356147f081614bde565b809150509250929050565b60006020828403121561480c578081fd5b815160ff81168114611c74578182fd5b6000815180845260208085019450808401835b838110156148545781516001600160a01b03168752958201959082019060010161482f565b509495945050505050565b8060005b60028110156123ba578151845260209384019390910190600101614863565b8060005b60038110156123ba578151845260209384019390910190600101614886565b600082516148b7818460208701614b6b565b9190910192915050565b606081016148cf828561485f565b82151560408301529392505050565b606081016148ec828561485f565b8260408301529392505050565b608081016149078285614882565b82151560608301529392505050565b608081016149248285614882565b8260608301529392505050565b6020815260008251806020840152614950816040850160208701614b6b565b601f01601f19169190910160400192915050565b6020808252600b908201526a08585d5d1a1bdc9a5e995960aa1b604082015260600190565b828152604060208201526000611c71604083018461481c565b85815284602082015260a0604082015260006149c160a083018661481c565b6001600160a01b0394909416606083015250608001529392505050565b604051601f8201601f1916810167ffffffffffffffff81118282101715614a0757614a07614bc8565b604052919050565b60008219821115614a2257614a22614bb2565b500190565b600082614a4257634e487b7160e01b81526012600452602481fd5b500490565b600181815b80851115614a82578160001904821115614a6857614a68614bb2565b80851615614a7557918102915b93841c9390800290614a4c565b509250929050565b6000611c7460ff841683600082614aa357506001613278565b81614ab057506000613278565b8160018114614ac65760028114614ad057614aec565b6001915050613278565b60ff841115614ae157614ae1614bb2565b50506001821b613278565b5060208310610133831016604e8410600b8410161715614b0f575081810a613278565b614b198383614a47565b8060001904821115614b2d57614b2d614bb2565b029392505050565b6000816000190483118215151615614b4f57614b4f614bb2565b500290565b600082821015614b6657614b66614bb2565b500390565b60005b83811015614b86578181015183820152602001614b6e565b838111156123ba5750506000910152565b6000600019821415614bab57614bab614bb2565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461173657600080fdfea26469706673582212208ea9fedf13d33b2dbd68cf166bbc14a21a1bfa63fde33af99a910c0c25349b9364736f6c63430008040033

Deployed Bytecode Sourcemap

46855:22288:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39983:434;;;;;;:::i;:::-;;:::i;:::-;;53525:110;53599:28;;;;;;;;;;;-1:-1:-1;;;53599:28:0;;;;53525:110;;;;53599:28;53525:110;:::i;:::-;;;;;;;;51032:838;;;;;;:::i;:::-;;:::i;52044:168::-;;;;;;:::i;:::-;;:::i;48712:18::-;;;;;;;;;14651:25:1;;;14639:2;14624:18;48712::0;14606:76:1;24046:175:0;;;;;;:::i;:::-;;:::i;47783:87::-;;47827:42;47783:87;;;;;-1:-1:-1;;;;;6603:32:1;;;6585:51;;6573:2;6558:18;47783:87:0;6540:102:1;20324:28:0;;;;;;19194:18;;;;;-1:-1:-1;;;;;19194:18:0;;;26230:148;;;:::i;:::-;;;9109:14:1;;9102:22;9084:41;;9072:2;9057:18;26230:148:0;9039:92:1;48967:20:0;;;;;;:::i;:::-;;:::i;19960:29::-;;;;;;36674:515;;;;;;:::i;:::-;;:::i;22293:154::-;;;;;;:::i;:::-;;:::i;49272:28::-;;;;;;48408:41;;48448:1;48408:41;;30719:173;;;:::i;34994:1436::-;;;:::i;48267:37::-;;48303:1;48267:37;;;;;9754:2:1;9743:22;;;;9725:41;;9713:2;9698:18;48267:37:0;9680:92:1;48837:21:0;;;;;;20403:25;;;;;;;;;48458:34;;48491:1;48458:34;;48662:21;;;;;-1:-1:-1;;;;;48662:21:0;;;66678:125;;;;;;:::i;:::-;-1:-1:-1;66747:4:0;;66678:125;48760:29;;;;;-1:-1:-1;;;;;48760:29:0;;;48622:20;;;;;;;;-1:-1:-1;;;;;48622:20:0;;;21673:169;;;;;;:::i;:::-;;:::i;47250:81::-;;47288:42;47250:81;;47156:85;;47198:42;47156:85;;55047:82;;;:::i;48926:32::-;;;;;-1:-1:-1;;;;;48926:32:0;;;52721:152;;;;;;:::i;:::-;;:::i;47603:82::-;;47642:42;47603:82;;48865:23;;;;;-1:-1:-1;;;;;48865:23:0;;;20146:27;;;;;;23386:169;;;;;;:::i;:::-;;:::i;47338:81::-;;47376:42;47338:81;;19809:29;;;;;;48118:87;;48162:42;48118:87;;19135:22;;;;;-1:-1:-1;;;;;19135:22:0;;;47877:100;;47933:42;47877:100;;19164:21;;;;;-1:-1:-1;;;;;19164:21:0;;;47426:82;;47465:42;47426:82;;47692;;47731:42;47692:82;;48026:85;;48068:42;48026:85;;48579:34;;;;;48499:35;;48533:1;48499:35;;37775:281;;;;;;:::i;:::-;;:::i;49230:34::-;;;;;;47515:81;;47553:42;47515:81;;48895:24;;;;;-1:-1:-1;;;;;48895:24:0;;;66941:803;;;;;;:::i;:::-;;:::i;53643:139::-;;;:::i;22898:154::-;;;;;;:::i;:::-;;:::i;52508:147::-;;;;;;:::i;:::-;;:::i;48311:44::-;;48354:1;48311:44;;19107:21;;;;;-1:-1:-1;;;;;19107:21:0;;;38419:164;;;:::i;39983:434::-;20643:7;:5;:7::i;:::-;-1:-1:-1;;;;;20629:21:0;:10;-1:-1:-1;;;;;20629:21:0;;20621:45;;;;-1:-1:-1;;;20621:45:0;;;;;;;:::i;:::-;;;;;;;;;40070:4:::1;::::0;-1:-1:-1;;;;;40052:23:0;;::::1;40070:4:::0;::::1;40052:23;;40044:41;;;::::0;-1:-1:-1;;;40044:41:0;;10367:2:1;40044:41:0::1;::::0;::::1;10349:21:1::0;10406:1;10386:18;;;10379:29;-1:-1:-1;;;10424:18:1;;;10417:35;10469:18;;40044:41:0::1;10339:154:1::0;40044:41:0::1;40122:5;::::0;-1:-1:-1;;;;;40104:24:0;;::::1;40122:5:::0;::::1;40104:24;;40096:44;;;::::0;-1:-1:-1;;;40096:44:0;;11441:2:1;40096:44:0::1;::::0;::::1;11423:21:1::0;11480:1;11460:18;;;11453:29;-1:-1:-1;;;11498:18:1;;;11491:37;11545:18;;40096:44:0::1;11413:156:1::0;40096:44:0::1;40153:33;40189:17;:15;:17::i;:::-;40153:53;;40222:9;40217:102;40237:16;:23;40233:1;:27;40217:102;;;40285:16;40302:1;40285:19;;;;;;-1:-1:-1::0;;;40285:19:0::1;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;40275:29:0::1;:6;-1:-1:-1::0;;;;;40275:29:0::1;;;40267:52;;;::::0;-1:-1:-1;;;40267:52:0;;12885:2:1;40267:52:0::1;::::0;::::1;12867:21:1::0;12924:2;12904:18;;;12897:30;-1:-1:-1;;;12943:18:1;;;12936:40;12993:18;;40267:52:0::1;12857:160:1::0;40267:52:0::1;40262:3:::0;::::1;::::0;::::1;:::i;:::-;;;;40217:102;;;;40332:77;40360:7;:5;:7::i;:::-;40369:39;::::0;-1:-1:-1;;;40369:39:0;;40402:4:::1;40369:39;::::0;::::1;6585:51:1::0;-1:-1:-1;;;;;40369:24:0;::::1;::::0;::::1;::::0;6558:18:1;;40369:39:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;40332:27:0;::::1;::::0;:77;:27:::1;:77::i;:::-;20677:1;39983:434:::0;:::o;51032:838::-;20514:6;;-1:-1:-1;;;;;20514:6:0;20500:10;:20;;:45;;;20538:7;:5;:7::i;:::-;-1:-1:-1;;;;;20524:21:0;:10;-1:-1:-1;;;;;20524:21:0;;20500:45;20492:69;;;;-1:-1:-1;;;20492:69:0;;;;;;;:::i;:::-;51142:3:::1;;51131:7;:14;;51123:47;;;::::0;-1:-1:-1;;;51123:47:0;;13224:2:1;51123:47:0::1;::::0;::::1;13206:21:1::0;13263:2;13243:18;;;13236:30;-1:-1:-1;;;13282:18:1;;;13275:50;13342:18;;51123:47:0::1;13196:170:1::0;51123:47:0::1;51233:34;::::0;-1:-1:-1;;;51233:34:0;;::::1;::::0;::::1;14651:25:1::0;;;51182:10:0::1;::::0;;;;;47198:42:::1;::::0;51233:25:::1;::::0;14624:18:1;;51233:34:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;51181:86;;;;;;;;;51287:8;51286:9;51278:51;;;::::0;-1:-1:-1;;;51278:51:0;;14349:2:1;51278:51:0::1;::::0;::::1;14331:21:1::0;14388:2;14368:18;;;14361:30;14427:31;14407:18;;;14400:59;14476:18;;51278:51:0::1;14321:179:1::0;51278:51:0::1;51382:10;:24:::0;;-1:-1:-1;;;;;51382:24:0;;::::1;-1:-1:-1::0;;;;;;51382:24:0;;::::1;;::::0;;;51417:17:::1;:26:::0;;;;::::1;::::0;;::::1;;::::0;;51454:6:::1;:16:::0;;;51481:8:::1;:20:::0;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;51516:50:::1;::::0;-1:-1:-1;;;51516:50:0;;51550:4:::1;51516:50;::::0;::::1;6859:34:1::0;6909:18;;;6902:43;;;;51382:24:0;;47933:42:::1;::::0;51516:25:::1;::::0;6794:18:1;;51516:50:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;51512:144;;51616:8;::::0;51588:56:::1;::::0;47933:42:::1;::::0;-1:-1:-1;;;;;51616:8:0::1;-1:-1:-1::0;;51588:27:0::1;:56::i;:::-;51670:45;::::0;-1:-1:-1;;;51670:45:0;;51700:4:::1;51670:45;::::0;::::1;6859:34:1::0;47198:42:0::1;6909:18:1::0;;;6902:43;-1:-1:-1;;;;;51670:21:0;::::1;::::0;::::1;::::0;6794:18:1;;51670:45:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;51666:134;;51737:51;-1:-1:-1::0;;;;;51737:23:0;::::1;47198:42;-1:-1:-1::0;;51737:23:0::1;:51::i;:::-;51817:45;::::0;;-1:-1:-1;;;;;7214:15:1;;;7196:34;;7266:15;;;7261:2;7246:18;;7239:43;7318:15;;7298:18;;;7291:43;51817:45:0;;51831:7;;51817:45:::1;::::0;;;;;7146:2:1;51817:45:0;;::::1;20572:1;;;;51032:838:::0;;:::o;52044:168::-;20514:6;;-1:-1:-1;;;;;20514:6:0;20500:10;:20;;:45;;;20538:7;:5;:7::i;:::-;-1:-1:-1;;;;;20524:21:0;:10;-1:-1:-1;;;;;20524:21:0;;20500:45;20492:69;;;;-1:-1:-1;;;20492:69:0;;;;;;;:::i;:::-;52126:15:::1;:27:::0;;;52169:35:::1;::::0;14651:25:1;;;52169:35:0::1;::::0;14639:2:1;14624:18;52169:35:0::1;;;;;;;;52044:168:::0;:::o;24046:175::-;20514:6;;-1:-1:-1;;;;;20514:6:0;20500:10;:20;;:45;;;20538:7;:5;:7::i;:::-;-1:-1:-1;;;;;20524:21:0;:10;-1:-1:-1;;;;;20524:21:0;;20500:45;20492:69;;;;-1:-1:-1;;;20492:69:0;;;;;;;:::i;:::-;24131:13:::1;:30:::0;;;24177:36:::1;::::0;14651:25:1;;;24177:36:0::1;::::0;14639:2:1;14624:18;24177:36:0::1;14606:76:1::0;26230:148:0;26271:4;26295:5;;:31;;-1:-1:-1;;;26295:31:0;;26320:4;26295:31;;;6585:51:1;26271:4:0;;-1:-1:-1;;;;;26295:5:0;;:16;;6558:18:1;;26295:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:41;;;:45;:75;;;;26369:1;26344:22;:20;:22::i;:::-;:26;26295:75;26288:82;;26230:148;:::o;48967:20::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;48967:20:0;;-1:-1:-1;48967:20:0;:::o;36674:515::-;36733:13;36789:5;;-1:-1:-1;;;;;36789:5:0;36767:10;:28;36759:47;;;;-1:-1:-1;;;36759:47:0;;11107:2:1;36759:47:0;;;11089:21:1;11146:1;11126:18;;;11119:29;-1:-1:-1;;;11164:18:1;;;11157:36;11210:18;;36759:47:0;11079:155:1;36759:47:0;36892:19;36945:32;36963:13;36945:17;:32::i;:::-;37069:4;;36922:55;;-1:-1:-1;36922:55:0;;-1:-1:-1;37069:42:0;;-1:-1:-1;;;;;37069:4:0;37087:10;36922:55;37069:17;:42::i;:::-;36674:515;;;;:::o;22293:154::-;20514:6;;-1:-1:-1;;;;;20514:6:0;20500:10;:20;;:45;;;20538:7;:5;:7::i;:::-;-1:-1:-1;;;;;20524:21:0;:10;-1:-1:-1;;;;;20524:21:0;;20500:45;20492:69;;;;-1:-1:-1;;;20492:69:0;;;;;;;:::i;:::-;22371:14:::1;:23:::0;;;22410:29:::1;::::0;14651:25:1;;;22410:29:0::1;::::0;14639:2:1;14624:18;22410:29:0::1;14606:76:1::0;30719:173:0;20514:6;;-1:-1:-1;;;;;20514:6:0;20500:10;:20;;:45;;;20538:7;:5;:7::i;:::-;-1:-1:-1;;;;;20524:21:0;:10;-1:-1:-1;;;;;20524:21:0;;20500:45;20492:69;;;;-1:-1:-1;;;20492:69:0;;;;;;;:::i;:::-;30860:5:::1;::::0;:23:::1;::::0;;-1:-1:-1;;;30860:23:0;;;;30845:39:::1;::::0;-1:-1:-1;;;;;30860:5:0::1;::::0;:21:::1;::::0;:23:::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;:5;:23;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;30845:14;:39::i;:::-;30719:173::o:0;34994:1436::-;35055:5;;;;;;;;-1:-1:-1;;;;;35055:5:0;-1:-1:-1;;;;;35055:18:0;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;35041:34:0;:10;-1:-1:-1;;;;;35041:34:0;;35033:71;;;;-1:-1:-1;;;35033:71:0;;13573:2:1;35033:71:0;;;13555:21:1;13612:2;13592:18;;;13585:30;13651:26;13631:18;;;13624:54;13695:18;;35033:71:0;13545:174:1;35033:71:0;35115:14;35144:12;35171:23;35197:5;;;;;;;;;-1:-1:-1;;;;;35197:5:0;-1:-1:-1;;;;;35197:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;35269:13;;35171:49;;-1:-1:-1;35231:19:0;;35269:13;;35265:728;;;35351:19;35373:22;:20;:22::i;:::-;35351:44;;35529:80;35561:15;35547:11;:29;:61;;35593:15;35529:17;:80::i;35547:61::-;35579:11;35529:17;:80::i;:::-;35507:102;-1:-1:-1;35507:102:0;-1:-1:-1;35687:29:0;;;35683:156;;;35746:29;35760:15;35746:11;:29;:::i;:::-;35737:38;;35808:15;35794:29;;35683:156;35265:728;;;;35951:30;35965:15;35951:13;:30::i;:::-;35921:60;;-1:-1:-1;35921:60:0;-1:-1:-1;35921:60:0;-1:-1:-1;35265:728:0;36205:5;;:39;;-1:-1:-1;;;36205:39:0;;;;;17353:25:1;;;17394:18;;;17387:34;;;17437:18;;;17430:34;;;-1:-1:-1;;;;;36205:5:0;;;;:12;;17326:18:1;;36205:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;36187:57;;36320:31;36335:15;36320:14;:31::i;:::-;36369:53;;;17706:25:1;;;17762:2;17747:18;;17740:34;;;17790:18;;;17783:34;;;17848:2;17833:18;;17826:34;;;36369:53:0;;17693:3:1;17678:19;36369:53:0;;;;;;;34994:1436;;;;:::o;21673:169::-;20643:7;:5;:7::i;:::-;-1:-1:-1;;;;;20629:21:0;:10;-1:-1:-1;;;;;20629:21:0;;20621:45;;;;-1:-1:-1;;;20621:45:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;21747:21:0;::::1;21739:30;;;::::0;::::1;;21780:6;:16:::0;;-1:-1:-1;;;;;;21780:16:0::1;-1:-1:-1::0;;;;;21780:16:0;::::1;::::0;;::::1;::::0;;;21812:22:::1;::::0;6585:51:1;;;21812:22:0::1;::::0;6573:2:1;6558:18;21812:22:0::1;6540:102:1::0;55047:82:0;20514:6;;-1:-1:-1;;;;;20514:6:0;20500:10;:20;;:45;;;20538:7;:5;:7::i;:::-;-1:-1:-1;;;;;20524:21:0;:10;-1:-1:-1;;;;;20524:21:0;;20500:45;20492:69;;;;-1:-1:-1;;;20492:69:0;;;;;;;:::i;:::-;55107:14:::1;:12;:14::i;52721:152::-:0;20514:6;;-1:-1:-1;;;;;20514:6:0;20500:10;:20;;:45;;;20538:7;:5;:7::i;:::-;-1:-1:-1;;;;;20524:21:0;:10;-1:-1:-1;;;;;20524:21:0;;20500:45;20492:69;;;;-1:-1:-1;;;20492:69:0;;;;;;;:::i;:::-;52803:22:::1;52814:2;52818:6;52803:10;:22::i;:::-;52841:24;::::0;-1:-1:-1;;;;;6603:32:1;;6585:51;;52854:2:0;;52841:24:::1;::::0;6573:2:1;6558:18;52841:24:0::1;;;;;;;52721:152:::0;;:::o;23386:169::-;20514:6;;-1:-1:-1;;;;;20514:6:0;20500:10;:20;;:45;;;20538:7;:5;:7::i;:::-;-1:-1:-1;;;;;20524:21:0;:10;-1:-1:-1;;;;;20524:21:0;;20500:45;20492:69;;;;-1:-1:-1;;;20492:69:0;;;;;;;:::i;:::-;23469:12:::1;:28:::0;;;23513:34:::1;::::0;14651:25:1;;;23513:34:0::1;::::0;14639:2:1;14624:18;23513:34:0::1;14606:76:1::0;37775:281:0;37864:5;;-1:-1:-1;;;;;37864:5:0;37842:10;:28;37834:37;;;;;;37928:5;;;;;;;;-1:-1:-1;;;;;37928:5:0;-1:-1:-1;;;;;37890:43:0;37903:12;-1:-1:-1;;;;;37890:32:0;;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;37890:43:0;;37882:52;;;;;;37945:30;37962:12;37945:16;:30::i;:::-;38018:4;;:29;;-1:-1:-1;;;38018:29:0;;38041:4;38018:29;;;6585:51:1;37986:62:0;;38004:12;;-1:-1:-1;;;;;38018:4:0;;;;:14;;6558:18:1;;38018:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;37986:4;;-1:-1:-1;;;;;37986:4:0;;:62;:17;:62::i;:::-;37775:281;:::o;66941:803::-;67013:4;67061:5;;:31;;-1:-1:-1;;;67061:31:0;;67086:4;67061:31;;;6585:51:1;67013:4:0;;-1:-1:-1;;;;;67061:5:0;;:16;;6558:18:1;;67061:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;67109:17;;67030:62;;-1:-1:-1;67105:40:0;;-1:-1:-1;67140:5:0;;66941:803;-1:-1:-1;;66941:803:0:o;67105:40::-;67200:14;;67180:17;;;;67162:35;;:15;:35;:::i;:::-;:52;67158:70;;;-1:-1:-1;67223:5:0;;66941:803;-1:-1:-1;;66941:803:0:o;67158:70::-;67284:14;;67263:17;;;;67245:35;;:15;:35;:::i;:::-;:53;67241:70;;-1:-1:-1;67307:4:0;;66941:803;-1:-1:-1;;66941:803:0:o;67241:70::-;67324:19;67346:5;;;;;;;;;-1:-1:-1;;;;;67346:5:0;-1:-1:-1;;;;;67346:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;67324:45;;67398:13;;67384:11;:27;67380:44;;;-1:-1:-1;67420:4:0;;66941:803;-1:-1:-1;;;66941:803:0:o;67380:44::-;67437:13;67453:22;:20;:22::i;:::-;67437:38;;67514:6;:16;;;67498:13;;67490:5;:21;;;;:::i;:::-;:40;67486:57;;;-1:-1:-1;67539:4:0;;66941:803;-1:-1:-1;;;;66941:803:0:o;67486:57::-;67556:14;67593:6;:16;;;67585:5;:24;67581:90;;;67643:16;;;;67635:24;;:5;:24;:::i;:::-;67626:33;;67581:90;67717:18;67728:6;67717:10;:18::i;:::-;67706:8;67691:12;;:23;;;;:::i;:::-;:44;;66941:803;-1:-1:-1;;;;;;66941:803:0:o;53643:139::-;53705:17;53747:27;53769:4;53747:21;:27::i;22898:154::-;20514:6;;-1:-1:-1;;;;;20514:6:0;20500:10;:20;;:45;;;20538:7;:5;:7::i;:::-;-1:-1:-1;;;;;20524:21:0;:10;-1:-1:-1;;;;;20524:21:0;;20500:45;20492:69;;;;-1:-1:-1;;;20492:69:0;;;;;;;:::i;:::-;22976:14:::1;:23:::0;;;23015:29:::1;::::0;14651:25:1;;;23015:29:0::1;::::0;14639:2:1;14624:18;23015:29:0::1;14606:76:1::0;52508:147:0;20514:6;;-1:-1:-1;;;;;20514:6:0;20500:10;:20;;:45;;;20538:7;:5;:7::i;:::-;-1:-1:-1;;;;;20524:21:0;:10;-1:-1:-1;;;;;20524:21:0;;20500:45;20492:69;;;;-1:-1:-1;;;20492:69:0;;;;;;;:::i;:::-;52583:8:::1;:20:::0;;;52619:28:::1;::::0;14651:25:1;;;52619:28:0::1;::::0;14639:2:1;14624:18;52619:28:0::1;14606:76:1::0;38419:164:0;20514:6;;-1:-1:-1;;;;;20514:6:0;20500:10;:20;;:45;;;20538:7;:5;:7::i;:::-;-1:-1:-1;;;;;20524:21:0;:10;-1:-1:-1;;;;;20524:21:0;;20500:45;20492:69;;;;-1:-1:-1;;;20492:69:0;;;;;;;:::i;:::-;38482:13:::1;:20:::0;;-1:-1:-1;;38482:20:0::1;38498:4;38482:20;::::0;;:13:::1;38513:5:::0;;:22:::1;::::0;;-1:-1:-1;;;38513:22:0;;;;-1:-1:-1;;;;;38513:5:0;;::::1;::::0;:20:::1;::::0;:22:::1;::::0;;::::1;::::0;;;;;;38482:13;38513:5;:22;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;38553:22:0::1;::::0;::::1;::::0;-1:-1:-1;38553:22:0;;-1:-1:-1;38553:22:0::1;38419:164::o:0;12190:622::-;12560:10;;;12559:62;;-1:-1:-1;12576:39:0;;-1:-1:-1;;;12576:39:0;;12600:4;12576:39;;;6859:34:1;-1:-1:-1;;;;;6929:15:1;;;6909:18;;;6902:43;12576:15:0;;;;;6794:18:1;;12576:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;12559:62;12551:152;;;;-1:-1:-1;;;12551:152:0;;13926:2:1;12551:152:0;;;13908:21:1;13965:2;13945:18;;;13938:30;14004:34;13984:18;;;13977:62;-1:-1:-1;;;14055:18:1;;;14048:52;14117:19;;12551:152:0;13898:244:1;12551:152:0;12741:62;;-1:-1:-1;;;;;7537:32:1;;12741:62:0;;;7519:51:1;7586:18;;;7579:34;;;12714:90:0;;12734:5;;-1:-1:-1;;;12764:22:0;7492:18:1;;12741:62:0;;;;-1:-1:-1;;12741:62:0;;;;;;;;;;;;;;-1:-1:-1;;;;;12741:62:0;-1:-1:-1;;;;;;12741:62:0;;;;;;;;;;12714:19;:90::i;:::-;12190:622;;;:::o;6570:195::-;6673:12;6705:52;6727:6;6735:4;6741:1;6744:12;6705:21;:52::i;:::-;6698:59;;6570:195;;;;;;:::o;24370:93::-;24410:7;24437:5;;;;;;;;;-1:-1:-1;;;;;24437:5:0;-1:-1:-1;;;;;24437:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;68545:226::-;68662:16;;;68676:1;68662:16;;;68604;68662;;;;;68604;68633:26;;68662:16;68676:1;68662:16;;;;;;;;;;-1:-1:-1;68662:16:0;68633:45;;47376:42;68689:9;68699:1;68689:12;;;;;;-1:-1:-1;;;68689:12:0;;;;;;;;;;;;;;:18;-1:-1:-1;;;;;68689:18:0;;;-1:-1:-1;;;;;68689:18:0;;;;;47288:42;68718:9;68728:1;68718:12;;;;;;-1:-1:-1;;;68718:12:0;;;;;;;;;-1:-1:-1;;;;;68718:18:0;;;:12;;;;;;;;;;;:18;68754:9;68545:226;-1:-1:-1;68545:226:0:o;11531:177::-;11641:58;;-1:-1:-1;;;;;7537:32:1;;11641:58:0;;;7519:51:1;7586:18;;;7579:34;;;11614:86:0;;11634:5;;-1:-1:-1;;;11664:23:0;7492:18:1;;11641:58:0;7474:145:1;61463:679:0;61644:4;;:29;;-1:-1:-1;;;61644:29:0;;61667:4;61644:29;;;6585:51:1;61567:25:0;;;;;;-1:-1:-1;;;;;61644:4:0;;:14;;6558:18:1;;61644:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61625:48;;61699:13;61688:8;:24;61684:451;;;61749:39;61763:24;61779:8;61763:13;:24;:::i;:::-;61749:13;:39::i;:::-;61729:59;-1:-1:-1;61823:28:0;61843:8;61729:59;61823:28;:::i;:::-;61803:48;;61886:42;61895:17;61914:13;61886:8;:42::i;:::-;61866:62;;61967:13;61947:17;:33;61943:115;;;62009:33;62025:17;62009:13;:33;:::i;:::-;62001:41;;61943:115;61684:451;;;62110:13;62090:33;;61684:451;61463:679;;;;:::o;60053:1205::-;60136:13;;;;60132:26;;;60053:1205;:::o;60132:26::-;60186:4;;:29;;-1:-1:-1;;;60186:29:0;;60209:4;60186:29;;;6585:51:1;60168:15:0;;-1:-1:-1;;;;;60186:4:0;;:14;;6558:18:1;;60186:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;60168:47;-1:-1:-1;60230:11:0;;60226:1025;;60258:41;;:::i;:::-;60357:7;60314:11;60341:10;60334:18;;60314:40;;;;;-1:-1:-1;;;60314:40:0;;;;;;;;;;;;:50;60381:55;;-1:-1:-1;;;60381:55:0;;47827:42;;60381:39;;:55;;60421:11;;60434:1;;60381:55;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;60471:40:0;;-1:-1:-1;;;60471:40:0;;60505:4;60471:40;;;6585:51:1;60453:15:0;;-1:-1:-1;47933:42:0;;-1:-1:-1;60471:25:0;;6558:18:1;;60471:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;60453:58;-1:-1:-1;60530:11:0;;60526:714;;60562:42;;:::i;:::-;60623:38;;;;:48;;;60728:5;;60768:25;;;-1:-1:-1;;;60768:25:0;;;;60728:5;;;;-1:-1:-1;;;;;60728:5:0;;60690:20;;60728:5;;60768:23;;:25;;;;;60623:38;;60768:25;;;;;60728:5;60768:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;60755:38;;60812:17;60900:2;60878:4;;;;;;;;;-1:-1:-1;;;;;60878:4:0;-1:-1:-1;;;;;60855:38:0;;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;60851:44;;:2;:44;:::i;:::-;60844:51;;:4;:51;:::i;:::-;60833:63;;:7;:63;:::i;:::-;60832:70;;;;:::i;:::-;60812:90;;60972:5;60960:8;;60948:9;:20;;;;:::i;:::-;60947:30;;;;:::i;:::-;60935:42;;:9;:42;:::i;:::-;60996:41;;-1:-1:-1;;;60996:41:0;;60923:54;;-1:-1:-1;;;;;;60996:19:0;;;;;:41;;61016:9;;60923:54;;60996:41;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;61074:7:0;;:32;;-1:-1:-1;;;61074:32:0;;61100:4;61074:32;;;6585:51:1;61058:13:0;;-1:-1:-1;;;;;;61074:7:0;;;;-1:-1:-1;61074:17:0;;6558:18:1;;61074:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61058:48;-1:-1:-1;61129:9:0;;61125:100;;61188:3;;61163:42;;-1:-1:-1;;;61163:42:0;;;;;17013:25:1;;;;17054:18;;;17047:34;;;61200:4:0;17097:18:1;;;17090:50;47198:42:0;;61163:24;;16986:18:1;;61163:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;61125:100;60526:714;;;;;;60226:1025;;60053:1205;;:::o;64044:2626::-;64161:15;64362:5;;:31;;-1:-1:-1;;;64362:31:0;;64387:4;64362:31;;;6585:51:1;64161:15:0;;;;;;;;;;;;-1:-1:-1;;;;;64362:5:0;;;;:16;;6558:18:1;;64362:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:41;;;64418:5;;64362:41;;-1:-1:-1;64418:5:0;;;-1:-1:-1;;;;;64418:5:0;64414:821;;64502:13;:11;:13::i;:::-;64538:1;64541;64544;64530:16;;;;;;;;;;;;64414:821;64568:8;;-1:-1:-1;;;;;64568:8:0;:22;64564:671;;64651:27;64673:4;64651:21;:27::i;:::-;64637:41;;64693:14;:12;:14::i;:::-;64722:13;:11;:13::i;:::-;64760:4;;:29;;-1:-1:-1;;;64760:29:0;;64783:4;64760:29;;;6585:51:1;-1:-1:-1;;;;;64760:4:0;;;;:14;;6558:18:1;;64760:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;64750:39;;64812:7;64804:15;;64854:4;64840:11;:18;64836:188;;;64887:28;64896:11;64909:5;64887:8;:28::i;:::-;64879:36;;64564:671;;64836:188;64955:4;64941:11;:18;:34;;;;;64971:4;64963:5;:12;64941:34;64937:87;;;65004:4;64996:12;;64937:87;64564:671;;;65064:14;;;;;;;;;-1:-1:-1;;;;;65064:14:0;-1:-1:-1;;;;;65056:33:0;;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;65106:12;:10;:12::i;:::-;65141:28;65163:5;65141:21;:28::i;:::-;65194:4;;:29;;-1:-1:-1;;;65194:29:0;;65217:4;65194:29;;;6585:51:1;65133:36:0;;-1:-1:-1;;;;;;65194:4:0;;:14;;6558:18:1;;65194:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;65184:39;;64564:671;65260:16;65245:31;;65299:4;65291:5;:12;65287:1376;;;65330:12;65338:4;65330:5;:12;:::i;:::-;65320:22;-1:-1:-1;65357:20:0;65380:22;65390:12;65320:22;65380;:::i;:::-;65357:45;;65436:1;65421:12;:16;:42;;;;;65451:12;65441:7;:22;65421:42;65417:829;;;65484:37;65498:22;65513:7;65498:12;:22;:::i;65484:37::-;;65548:28;65570:5;65548:21;:28::i;:::-;65605:4;;:29;;-1:-1:-1;;;65605:29:0;;65628:4;65605:29;;;6585:51:1;65540:36:0;;-1:-1:-1;;;;;;65605:4:0;;:14;;6558:18:1;;65605:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;65595:39;;65666:4;65657:5;:13;65653:187;;65705:1;;-1:-1:-1;65737:12:0;65744:5;65737:4;:12;:::i;:::-;65729:20;;65653:187;;;65808:12;65816:4;65808:5;:12;:::i;:::-;65798:22;;65653:187;65873:22;65883:12;65873:7;:22;:::i;:::-;65858:37;;65928:12;65918:7;:22;65914:317;;;65979:7;65969;:17;65965:247;;;66025:7;66015:17;;66074:1;66059:16;;65965:247;;;66147:41;66156:17;66166:7;66156;:17;:::i;:::-;66175:12;66147:8;:41::i;:::-;66132:56;;65965:247;65287:1376;;;;66286:12;66293:5;66286:4;:12;:::i;:::-;66278:20;-1:-1:-1;66336:12:0;66367:16;;;;;:42;;;66397:12;66387:7;:22;66367:42;66363:289;;;66430:37;66444:22;66459:7;66444:12;:22;:::i;66430:37::-;-1:-1:-1;66496:4:0;;:29;;-1:-1:-1;;;66496:29:0;;66519:4;66496:29;;;6585:51:1;-1:-1:-1;;;;;66496:4:0;;;;:14;;6558:18:1;;66496:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;66486:39;;66558:12;66548:7;:22;66544:93;;;66610:7;66595:22;;66544:93;65287:1376;;64044:2626;;;;;;;;;;:::o;56001:834::-;56052:14;;56044:50;;-1:-1:-1;;;56044:50:0;;56052:14;56044:50;;;9084:41:1;-1:-1:-1;;;;;56052:14:0;;;;56044:44;;9057:18:1;;56044:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56105:12;:10;:12::i;:::-;56192:7;;:32;;-1:-1:-1;;;56192:32:0;;56218:4;56192:32;;;6585:51:1;56173:16:0;;-1:-1:-1;;;;;56192:7:0;;:17;;6558:18:1;;56192:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56173:51;;56235:20;56273:5;;;;;;;;;-1:-1:-1;;;;;56273:5:0;56235:44;;56290:10;56303:5;-1:-1:-1;;;;;56303:23:0;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56339:56;;-1:-1:-1;;;56339:56:0;;;;;15762:25:1;;;48303:1:0;15803:18:1;;;15796:50;56393:1:0;15862:18:1;;;15855:34;56290:38:0;;-1:-1:-1;;;;;;56339:31:0;;;;;15735:18:1;;56339:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56437:17;56475:4;56469:2;56458:8;:13;;;;:::i;:::-;56457:22;;;;:::i;:::-;56437:42;;56610:4;;;;;;;;;-1:-1:-1;;;;;56610:4:0;-1:-1:-1;;;;;56587:38:0;;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56583:44;;:2;:44;:::i;:::-;56576:51;;:4;:51;:::i;:::-;56553:5;56541:8;;56529:9;:20;;;;:::i;:::-;56528:30;;;;:::i;:::-;56516:42;;:9;:42;:::i;:::-;56515:113;;;;:::i;:::-;56692:40;;-1:-1:-1;;;56692:40:0;;56726:4;56692:40;;;6585:51:1;56490:138:0;;-1:-1:-1;47933:42:0;;56692:25;;6558:18:1;;56692:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56743:84;;-1:-1:-1;;;56743:84:0;;;;;15762:25:1;;;56805:10:0;15834:2:1;15823:22;15803:18;;;15796:50;15862:18;;;15855:34;;;56681:51:0;;-1:-1:-1;47827:42:0;;56743:51;;15735:18:1;;56743:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56001:834;;;;:::o;52932:405::-;53009:6;52999:3;53003:2;52999:7;;;;;;-1:-1:-1;;;52999:7:0;;;;;;;;;;;;;;;;;:16;;-1:-1:-1;;;;;;52999:16:0;-1:-1:-1;;;;;52999:16:0;;;;;;;;;;;53055:7;53051:111;;-1:-1:-1;47376:42:0;53051:111;;;-1:-1:-1;47288:42:0;53051:111;53178:38;;-1:-1:-1;;;53178:38:0;;53202:4;53178:38;;;6859:34:1;-1:-1:-1;;;;;6929:15:1;;;6909:18;;;6902:43;53178:15:0;;;;;6794:18:1;;53178:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;53174:116;;53238:40;;-1:-1:-1;;;53238:40:0;;-1:-1:-1;;;;;7537:32:1;;;53238:40:0;;;7519:51:1;-1:-1:-1;;7586:18:1;;;7579:34;53238:13:0;;;;;7492:18:1;;53238:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;53174:116;53305:24;;-1:-1:-1;;;;;6603:32:1;;6585:51;;53318:2:0;;53305:24;;6573:2:1;6558:18;53305:24:0;;;;;;;52932:405;;;:::o;68415:122::-;68515:14;:12;:14::i;68779:361::-;68841:7;68865:14;;68861:272;;68920:16;;;68934:1;68920:16;;;;;;;;68896:21;;68920:16;;;;;;;;-1:-1:-1;;68969:4:0;;68951:7;;;;-1:-1:-1;;;;;;68969:4:0;;68951:7;;-1:-1:-1;68969:4:0;;68951:7;;-1:-1:-1;;;68951:7:0;;;;;;;;;;;;;;:23;-1:-1:-1;;;;;68951:23:0;;;-1:-1:-1;;;;;68951:23:0;;;;;47465:42;68989:4;68994:1;68989:7;;;;;;-1:-1:-1;;;68989:7:0;;;;;;;;;;;;;;:14;-1:-1:-1;;;;;68989:14:0;;;-1:-1:-1;;;;;68989:14:0;;;;;69018:24;69050:3;69054:1;69050:6;;;;;;-1:-1:-1;;;69050:6:0;;;;;;;;;;;;;;;;;;;69045:44;;-1:-1:-1;;;69045:44:0;;-1:-1:-1;;;;;69050:6:0;;;;69045:26;;:44;;69072:10;;69084:4;;69045:44;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;69045:44:0;;;;;;;;;;;;:::i;:::-;69018:71;;69111:7;69119:1;69111:10;;;;;;-1:-1:-1;;;69111:10:0;;;;;;;;;;;;;;;69104:17;;;;68779:361;;;:::o;68861:272::-;68779:361;;;:::o;53997:650::-;54104:14;;54070:17;;-1:-1:-1;;;;;54104:14:0;:28;54100:487;;54176:14;;54168:48;;-1:-1:-1;;;54168:48:0;;54210:4;54168:48;;;6585:51:1;54149:16:0;;-1:-1:-1;;;;;54176:14:0;;54168:33;;6558:18:1;;54168:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;54149:67;-1:-1:-1;54235:12:0;;54231:240;;54304:5;;54289:66;;-1:-1:-1;;;54289:66:0;;;;;15459:25:1;;;54304:5:0;15500:18:1;;;15493:50;54268:18:0;;54304:5;;;-1:-1:-1;;;;;54304:5:0;;54289:44;;15432:18:1;;54289:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;54386:69;;-1:-1:-1;;;54386:69:0;;;;;15459:25:1;;;54444:10:0;15531:2:1;15520:22;15500:18;;;15493:50;54268:87:0;;-1:-1:-1;47827:42:0;;54386:45;;15432:18:1;;54386:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;54374:81;;54231:240;;54489:13;54485:91;;;54536:24;48533:1;54536:15;:24::i;:::-;54523:37;;;;:::i;:::-;;;54485:91;54100:487;;54610:4;;:29;;-1:-1:-1;;;54610:29:0;;54633:4;54610:29;;;6585:51:1;-1:-1:-1;;;;;54610:4:0;;;;:14;;6558:18:1;;54610:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;54597:42;;;;:::i;:::-;;53997:650;-1:-1:-1;;53997:650:0:o;13965:761::-;14389:23;14415:69;14443:4;14415:69;;;;;;;;;;;;;;;;;14423:5;-1:-1:-1;;;;;14415:27:0;;;:69;;;;;:::i;:::-;14499:17;;14389:95;;-1:-1:-1;14499:21:0;14495:224;;14641:10;14630:30;;;;;;;;;;;;:::i;:::-;14622:85;;;;-1:-1:-1;;;14622:85:0;;12474:2:1;14622:85:0;;;12456:21:1;12513:2;12493:18;;;12486:30;12552:34;12532:18;;;12525:62;-1:-1:-1;;;12603:18:1;;;12596:40;12653:19;;14622:85:0;12446:232:1;7622:530:0;7749:12;7807:5;7782:21;:30;;7774:81;;;;-1:-1:-1;;;7774:81:0;;10700:2:1;7774:81:0;;;10682:21:1;10739:2;10719:18;;;10712:30;10778:34;10758:18;;;10751:62;-1:-1:-1;;;10829:18:1;;;10822:36;10875:19;;7774:81:0;10672:228:1;7774:81:0;4019:20;;7866:60;;;;-1:-1:-1;;;7866:60:0;;11776:2:1;7866:60:0;;;11758:21:1;11815:2;11795:18;;;11788:30;11854:31;11834:18;;;11827:59;11903:18;;7866:60:0;11748:179:1;7866:60:0;8000:12;8014:23;8041:6;-1:-1:-1;;;;;8041:11:0;8061:5;8069:4;8041:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7999:75;;;;8092:52;8110:7;8119:10;8131:12;8092:17;:52::i;:::-;8085:59;7622:530;-1:-1:-1;;;;;;;7622:530:0:o;62257:1348::-;62314:7;62334:16;62353:17;62362:7;62353:8;:17::i;:::-;62334:36;;62434:5;62415:15;;62404:8;:26;;;;:::i;:::-;62403:36;;;;:::i;:::-;62392:47;;:8;:47;:::i;:::-;62476:14;;62468:48;;-1:-1:-1;;;62468:48:0;;62510:4;62468:48;;;6585:51:1;62381:58:0;;-1:-1:-1;62450:15:0;;-1:-1:-1;;;;;62476:14:0;;;;62468:33;;6558:18:1;;62468:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;62450:66;;62543:8;62533:7;:18;62529:69;;;62579:7;62568:18;;62529:69;62614:12;62610:26;;-1:-1:-1;62635:1:0;;62257:1348;-1:-1:-1;;;62257:1348:0:o;62610:26::-;62666:4;;:29;;-1:-1:-1;;;62666:29:0;;62689:4;62666:29;;;6585:51:1;62649:14:0;;-1:-1:-1;;;;;62666:4:0;;:14;;6558:18:1;;62666:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;62749:14;;62741:58;;-1:-1:-1;;;62741:58:0;;;;;15192:25:1;;;62749:14:0;15233:18:1;;;15226:50;62649:46:0;;-1:-1:-1;;;;;;62749:14:0;;62741:41;;15165:18:1;;62741:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;62866:7:0;;:32;;-1:-1:-1;;;62866:32:0;;62892:4;62866:32;;;6585:51:1;-1:-1:-1;;;;;62866:7:0;;;;:17;;6558:18:1;;62866:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;62855:43;;62909:20;62947:5;;;;;;;;;-1:-1:-1;;;;;62947:5:0;62909:44;;62964:10;62977:5;-1:-1:-1;;;;;62977:23:0;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;63013:56;;-1:-1:-1;;;63013:56:0;;;;;15762:25:1;;;48303:1:0;15803:18:1;;;15796:50;63067:1:0;15862:18:1;;;15855:34;62964:38:0;;-1:-1:-1;;;;;;63013:31:0;;;;;15735:18:1;;63013:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63147:17;63185:4;63179:2;63168:8;:13;;;;:::i;:::-;63167:22;;;;:::i;:::-;63147:42;;63320:4;;;;;;;;;-1:-1:-1;;;;;63320:4:0;-1:-1:-1;;;;;63297:38:0;;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;63293:44;;:2;:44;:::i;:::-;63286:51;;:4;:51;:::i;:::-;63263:5;63251:8;;63239:9;:20;;;;:::i;:::-;63238:30;;;;:::i;:::-;63226:42;;:9;:42;:::i;:::-;63225:113;;;;:::i;:::-;63402:40;;-1:-1:-1;;;63402:40:0;;63436:4;63402:40;;;6585:51:1;63200:138:0;;-1:-1:-1;47933:42:0;;63402:25;;6558:18:1;;63402:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;63455:84;;-1:-1:-1;;;63455:84:0;;;;;15762:25:1;;;63517:10:0;15834:2:1;15823:22;15803:18;;;15796:50;15862:18;;;15855:34;;;63391:51:0;;-1:-1:-1;47827:42:0;;63455:51;;15735:18:1;;63455:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;63559:4:0;;:29;;-1:-1:-1;;;63559:29:0;;63582:4;63559:29;;;6585:51:1;63591:6:0;;-1:-1:-1;;;;;;63559:4:0;;;;-1:-1:-1;63559:14:0;;6558:18:1;;63559:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:38;;;;:::i;:::-;63552:45;62257:1348;-1:-1:-1;;;;;;;;62257:1348:0:o;44568:106::-;44626:7;44657:1;44653;:5;:13;;44665:1;44653:13;;;-1:-1:-1;44661:1:0;;44646:20;-1:-1:-1;44568:106:0:o;55369:551::-;55429:6;;;55466:8;;;55506:10;;;55548:17;;;55578:3;:13;;;55602:5;:17;;-1:-1:-1;;;;;;55602:17:0;55466:8;-1:-1:-1;;;;;55466:8:0;;;55602:17;;;;;;;;;;55630:7;:21;;55506:10;;;-1:-1:-1;;;;;;55630:21:0;;;;;;;;55662:14;:27;;55548:17;;;55662:27;;;;;;;55702:21;;;;;;-1:-1:-1;55734:10:0;;;55755:31;;;;;;55797:30;;;;;;;55845:67;;;7196:34:1;;;7261:2;7246:18;;7239:43;;;7298:18;;;7291:43;;;55429:6:0;;55466:8;;55429:6;;55845:67;;7146:2:1;7131:18;55845:67:0;;;;;;;55369:551;;;;:::o;44385:107::-;44443:7;44475:1;44470;:6;;:14;;44483:1;44470:14;;57634:680;57689:36;;-1:-1:-1;;;57689:36:0;;57719:4;57689:36;;;6585:51:1;57675:11:0;;47376:42;;57689:21;;6558:18:1;;57689:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57675:50;-1:-1:-1;57740:7:0;;57736:250;;57769:3;57773:1;57769:6;;;;;;-1:-1:-1;;;57769:6:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;57769:6:0;;57764:37;;57820:3;;57871:22;47376:42;57769:6;57871:8;:22::i;:::-;57920:4;57944:15;57764:210;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;57764:210:0;;;;;;;;;;;;:::i;:::-;;57736:250;58010:36;;-1:-1:-1;;;58010:36:0;;58040:4;58010:36;;;6585:51:1;57996:11:0;;47288:42;;58010:21;;6558:18:1;;58010:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57996:50;-1:-1:-1;58061:7:0;;58057:250;;58090:3;58094:1;58090:6;;;;;;-1:-1:-1;;;58090:6:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;58090:6:0;;58085:37;;58141:3;;58192:22;47288:42;58090:6;58192:8;:22::i;:::-;58241:4;58265:15;58085:210;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;58085:210:0;;;;;;;;;;;;:::i;58394:1295::-;58500:14;;58492:45;;-1:-1:-1;;;58492:45:0;;58531:4;58492:45;;;6585:51:1;58458:7:0;;;;-1:-1:-1;;;;;58500:14:0;;;;58492:30;;6558:18:1;;58492:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;58478:59;;58643:14;47288:42;-1:-1:-1;;;;;58660:23:0;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;58643:42;-1:-1:-1;58696:11:0;;58736:26;49119:10;58643:42;58736:26;:::i;:::-;58720:42;;49025:4;58816:5;:19;58812:403;;;58913:17;58933:19;58947:5;49025:4;58933:19;:::i;:::-;58913:39;-1:-1:-1;49025:4:0;58997:15;58913:39;58997:3;:15;:::i;:::-;58996:31;;;;:::i;:::-;58990:37;-1:-1:-1;59077:18:0;59098;59110:6;49065:10;59098:18;:::i;:::-;59077:39;;59141:10;59135:3;:16;59131:73;;;59178:10;59172:16;;59131:73;58812:403;;;59227:16;59258:7;;59254:175;;59282:24;59314:3;59318:1;59314:6;;;;;;-1:-1:-1;;;59314:6:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;59314:6:0;59309:26;59336:3;59341:22;47376:42;59355:7;59341:8;:22::i;:::-;59309:55;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;59309:55:0;;;;;;;;;;;;:::i;:::-;59282:82;;59390:7;59415:1;59398:7;:14;:18;;;;:::i;:::-;59390:27;;;;;;-1:-1:-1;;;59390:27:0;;;;;;;;;;;;;;;59379:38;;59254:175;;59441:16;59472:7;;59468:175;;59496:24;59528:3;59532:1;59528:6;;;;;;-1:-1:-1;;;59528:6:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;59528:6:0;59523:26;59550:3;59555:22;47288:42;59569:7;59555:8;:22::i;:::-;59523:55;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;59523:55:0;;;;;;;;;;;;:::i;:::-;59496:82;;59604:7;59629:1;59612:7;:14;:18;;;;:::i;:::-;59604:27;;;;;;-1:-1:-1;;;59604:27:0;;;;;;;;;;;;;;;59593:38;;59468:175;;59662:19;59673:8;59662;:19;:::i;10162:742::-;10277:12;10306:7;10302:595;;;-1:-1:-1;10337:10:0;10330:17;;10302:595;10451:17;;:21;10447:439;;10714:10;10708:17;10775:15;10762:10;10758:2;10754:19;10747:44;10662:148;10857:12;10850:20;;-1:-1:-1;;;10850:20:0;;;;;;;;:::i;56908:486::-;56964:16;56993:41;;:::i;:::-;57088:6;57045:11;57072:10;57065:18;;57045:40;;;;;-1:-1:-1;;;57045:40:0;;;;;;;;;;;;:49;57128:60;;-1:-1:-1;;;57128:60:0;;57107:18;;47827:42;;57128:40;;:60;;57169:11;;57107:18;;57128:60;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57107:81;;57201:42;;:::i;:::-;57295:10;57254:9;48303:1;57254:38;;;:51;57344:5;;57329:57;;-1:-1:-1;;;57329:57:0;;57344:5;;;;-1:-1:-1;;;;;57344:5:0;;57329:39;;:57;;57369:9;;57380:5;;57329:57;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57318:68;56908:486;-1:-1:-1;;;;;56908:486:0:o;67982:425::-;68053:21;68091:17;68087:131;;68132:16;;;68146:1;68132:16;;;;;;;;;;;;;;;;;;;;-1:-1:-1;68132:16:0;68125:23;;68173:4;68163;68168:1;68163:7;;;;;;-1:-1:-1;;;68163:7:0;;;;;;;;;;;;;;:14;-1:-1:-1;;;;;68163:14:0;;;-1:-1:-1;;;;;68163:14:0;;;;;47465:42;68192:4;68197:1;68192:7;;;;;;-1:-1:-1;;;68192:7:0;;;;;;;;;;;;;;:14;-1:-1:-1;;;;;68192:14:0;;;-1:-1:-1;;;;;68192:14:0;;;;;68087:131;48533:1;68234:7;:18;68230:170;;;68276:16;;;68290:1;68276:16;;;;;;;;;;;;;;;;;;;;-1:-1:-1;68276:16:0;68269:23;;68317:4;68307;68312:1;68307:7;;;;;;-1:-1:-1;;;68307:7:0;;;;;;;;;;;;;;:14;-1:-1:-1;;;;;68307:14:0;;;-1:-1:-1;;;;;68307:14:0;;;;;47465:42;68336:4;68341:1;68336:7;;;;;;-1:-1:-1;;;68336:7:0;;;;;;;;;-1:-1:-1;;;;;68336:14:0;;;:7;;;;;;;;;:14;68383:4;;68365:7;;68383:4;;;68365;;68370:1;;68365:7;;;;-1:-1:-1;;;68365:7:0;;;;;;;;;;;;;;:23;-1:-1:-1;;;;;68365:23:0;;;-1:-1:-1;;;;;68365:23:0;;;;;67982:425;;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;14:164:1:-;90:13;;139;;132:21;122:32;;112:2;;168:1;165;158:12;183:257;242:6;295:2;283:9;274:7;270:23;266:32;263:2;;;316:6;308;301:22;263:2;360:9;347:23;379:31;404:5;379:31;:::i;445:261::-;515:6;568:2;556:9;547:7;543:23;539:32;536:2;;;589:6;581;574:22;536:2;626:9;620:16;645:31;670:5;645:31;:::i;711:879::-;823:6;831;839;847;855;863;916:3;904:9;895:7;891:23;887:33;884:2;;;938:6;930;923:22;884:2;975:9;969:16;994:31;1019:5;994:31;:::i;:::-;1094:2;1079:18;;1073:25;1044:5;;-1:-1:-1;1107:33:1;1073:25;1107:33;:::i;:::-;1211:2;1196:18;;1190:25;1159:7;;-1:-1:-1;1224:33:1;1190:25;1224:33;:::i;:::-;1328:2;1313:18;;1307:25;1276:7;;-1:-1:-1;1341:33:1;1307:25;1341:33;:::i;:::-;1445:3;1430:19;;1424:26;1393:7;;-1:-1:-1;1459:33:1;1424:26;1459:33;:::i;:::-;1511:7;-1:-1:-1;1537:47:1;1579:3;1564:19;;1537:47;:::i;:::-;1527:57;;874:716;;;;;;;;:::o;1595:992::-;1690:6;1721:2;1764;1752:9;1743:7;1739:23;1735:32;1732:2;;;1785:6;1777;1770:22;1732:2;1823:9;1817:16;1852:18;1893:2;1885:6;1882:14;1879:2;;;1914:6;1906;1899:22;1879:2;1957:6;1946:9;1942:22;1932:32;;2002:7;1995:4;1991:2;1987:13;1983:27;1973:2;;2029:6;2021;2014:22;1973:2;2063;2057:9;2085:2;2081;2078:10;2075:2;;;2091:18;;:::i;:::-;2137:2;2134:1;2130:10;2120:20;;2160:28;2184:2;2180;2176:11;2160:28;:::i;:::-;2222:15;;;2253:12;;;;2285:11;;;2315;;;2311:20;;2308:33;-1:-1:-1;2305:2:1;;;2359:6;2351;2344:22;2305:2;2386:6;2377:15;;2401:156;2415:2;2412:1;2409:9;2401:156;;;2472:10;;2460:23;;2433:1;2426:9;;;;;2503:12;;;;2535;;2401:156;;;-1:-1:-1;2576:5:1;1701:886;-1:-1:-1;;;;;;;;1701:886:1:o;2592:212::-;2659:6;2712:2;2700:9;2691:7;2687:23;2683:32;2680:2;;;2733:6;2725;2718:22;2680:2;2761:37;2788:9;2761:37;:::i;3091:901::-;3192:6;3223:3;3267:2;3255:9;3246:7;3242:23;3238:32;3235:2;;;3288:6;3280;3273:22;3235:2;3326;3320:9;3356:15;;;;3401:18;3386:34;;3422:22;;;3383:62;3380:2;;;3448:18;;:::i;:::-;3488:10;3484:2;3477:22;3529:9;3523:16;3515:6;3508:32;3594:2;3583:9;3579:18;3573:25;3568:2;3560:6;3556:15;3549:50;3653:2;3642:9;3638:18;3632:25;3627:2;3619:6;3615:15;3608:50;3712:2;3701:9;3697:18;3691:25;3686:2;3678:6;3674:15;3667:50;3772:3;3761:9;3757:19;3751:26;3745:3;3737:6;3733:16;3726:52;3833:3;3822:9;3818:19;3812:26;3806:3;3798:6;3794:16;3787:52;3894:3;3883:9;3879:19;3873:26;3867:3;3859:6;3855:16;3848:52;3955:3;3944:9;3940:19;3934:26;3928:3;3920:6;3916:16;3909:52;3980:6;3970:16;;;;3203:789;;;;:::o;3997:190::-;4056:6;4109:2;4097:9;4088:7;4084:23;4080:32;4077:2;;;4130:6;4122;4115:22;4077:2;-1:-1:-1;4158:23:1;;4067:120;-1:-1:-1;4067:120:1:o;4192:194::-;4262:6;4315:2;4303:9;4294:7;4290:23;4286:32;4283:2;;;4336:6;4328;4321:22;4283:2;-1:-1:-1;4364:16:1;;4273:113;-1:-1:-1;4273:113:1:o;4391:325::-;4459:6;4467;4520:2;4508:9;4499:7;4495:23;4491:32;4488:2;;;4541:6;4533;4526:22;4488:2;4582:9;4569:23;4559:33;;4642:2;4631:9;4627:18;4614:32;4655:31;4680:5;4655:31;:::i;:::-;4705:5;4695:15;;;4478:238;;;;;:::o;4721:293::-;4789:6;4842:2;4830:9;4821:7;4817:23;4813:32;4810:2;;;4863:6;4855;4848:22;4810:2;4900:9;4894:16;4950:4;4943:5;4939:16;4932:5;4929:27;4919:2;;4975:6;4967;4960:22;5019:463;5072:3;5110:5;5104:12;5137:6;5132:3;5125:19;5163:4;5192:2;5187:3;5183:12;5176:19;;5229:2;5222:5;5218:14;5250:3;5262:195;5276:6;5273:1;5270:13;5262:195;;;5341:13;;-1:-1:-1;;;;;5337:39:1;5325:52;;5397:12;;;;5432:15;;;;5373:1;5291:9;5262:195;;;-1:-1:-1;5473:3:1;;5080:402;-1:-1:-1;;;;;5080:402:1:o;5487:337::-;5591:5;5614:1;5624:194;5638:4;5635:1;5632:11;5624:194;;;5697:13;;5685:26;;5734:4;5758:12;;;;5793:15;;;;5658:1;5651:9;5624:194;;5829:326;5922:5;5945:1;5955:194;5969:4;5966:1;5963:11;5955:194;;;6028:13;;6016:26;;6065:4;6089:12;;;;6124:15;;;;5989:1;5982:9;5955:194;;6160:274;6289:3;6327:6;6321:13;6343:53;6389:6;6384:3;6377:4;6369:6;6365:17;6343:53;:::i;:::-;6412:16;;;;;6297:137;-1:-1:-1;;6297:137:1:o;7624:333::-;7826:2;7811:18;;7838:54;7815:9;7874:6;7838:54;:::i;:::-;7942:6;7935:14;7928:22;7923:2;7912:9;7908:18;7901:50;7793:164;;;;;:::o;7962:323::-;8170:2;8155:18;;8182:54;8159:9;8218:6;8182:54;:::i;:::-;8272:6;8267:2;8256:9;8252:18;8245:34;8137:148;;;;;:::o;8290:323::-;8492:3;8477:19;;8505:43;8481:9;8530:6;8505:43;:::i;:::-;8598:6;8591:14;8584:22;8579:2;8568:9;8564:18;8557:50;8459:154;;;;;:::o;8618:321::-;8834:3;8819:19;;8847:43;8823:9;8872:6;8847:43;:::i;:::-;8926:6;8921:2;8910:9;8906:18;8899:34;8801:138;;;;;:::o;9777:383::-;9926:2;9915:9;9908:21;9889:4;9958:6;9952:13;10001:6;9996:2;9985:9;9981:18;9974:34;10017:66;10076:6;10071:2;10060:9;10056:18;10051:2;10043:6;10039:15;10017:66;:::i;:::-;10144:2;10123:15;-1:-1:-1;;10119:29:1;10104:45;;;;10151:2;10100:54;;9898:262;-1:-1:-1;;9898:262:1:o;11932:335::-;12134:2;12116:21;;;12173:2;12153:18;;;12146:30;-1:-1:-1;;;12207:2:1;12192:18;;12185:41;12258:2;12243:18;;12106:161::o;14687:332::-;14894:6;14883:9;14876:25;14937:2;14932;14921:9;14917:18;14910:30;14857:4;14957:56;15009:2;14998:9;14994:18;14986:6;14957:56;:::i;16238:574::-;16529:6;16518:9;16511:25;16572:6;16567:2;16556:9;16552:18;16545:34;16615:3;16610:2;16599:9;16595:18;16588:31;16492:4;16636:57;16688:3;16677:9;16673:19;16665:6;16636:57;:::i;:::-;-1:-1:-1;;;;;16729:32:1;;;;16724:2;16709:18;;16702:60;-1:-1:-1;16793:3:1;16778:19;16771:35;16628:65;16501:311;-1:-1:-1;;;16501:311:1:o;17871:275::-;17942:2;17936:9;18007:2;17988:13;;-1:-1:-1;;17984:27:1;17972:40;;18042:18;18027:34;;18063:22;;;18024:62;18021:2;;;18089:18;;:::i;:::-;18125:2;18118:22;17916:230;;-1:-1:-1;17916:230:1:o;18151:128::-;18191:3;18222:1;18218:6;18215:1;18212:13;18209:2;;;18228:18;;:::i;:::-;-1:-1:-1;18264:9:1;;18199:80::o;18284:217::-;18324:1;18350;18340:2;;-1:-1:-1;;;18375:31:1;;18429:4;18426:1;18419:15;18457:4;18382:1;18447:15;18340:2;-1:-1:-1;18486:9:1;;18330:171::o;18506:422::-;18595:1;18638:5;18595:1;18652:270;18673:7;18663:8;18660:21;18652:270;;;18732:4;18728:1;18724:6;18720:17;18714:4;18711:27;18708:2;;;18741:18;;:::i;:::-;18791:7;18781:8;18777:22;18774:2;;;18811:16;;;;18774:2;18890:22;;;;18850:15;;;;18652:270;;;18656:3;18570:358;;;;;:::o;18933:140::-;18991:5;19020:47;19061:4;19051:8;19047:19;19041:4;19127:5;19157:8;19147:2;;-1:-1:-1;19198:1:1;19212:5;;19147:2;19246:4;19236:2;;-1:-1:-1;19283:1:1;19297:5;;19236:2;19328:4;19346:1;19341:59;;;;19414:1;19409:130;;;;19321:218;;19341:59;19371:1;19362:10;;19385:5;;;19409:130;19446:3;19436:8;19433:17;19430:2;;;19453:18;;:::i;:::-;-1:-1:-1;;19509:1:1;19495:16;;19524:5;;19321:218;;19623:2;19613:8;19610:16;19604:3;19598:4;19595:13;19591:36;19585:2;19575:8;19572:16;19567:2;19561:4;19558:12;19554:35;19551:77;19548:2;;;-1:-1:-1;19660:19:1;;;19692:5;;19548:2;19739:34;19764:8;19758:4;19739:34;:::i;:::-;19809:6;19805:1;19801:6;19797:19;19788:7;19785:32;19782:2;;;19820:18;;:::i;:::-;19858:20;;19137:747;-1:-1:-1;;;19137:747:1:o;19889:168::-;19929:7;19995:1;19991;19987:6;19983:14;19980:1;19977:21;19972:1;19965:9;19958:17;19954:45;19951:2;;;20002:18;;:::i;:::-;-1:-1:-1;20042:9:1;;19941:116::o;20062:125::-;20102:4;20130:1;20127;20124:8;20121:2;;;20135:18;;:::i;:::-;-1:-1:-1;20172:9:1;;20111:76::o;20192:258::-;20264:1;20274:113;20288:6;20285:1;20282:13;20274:113;;;20364:11;;;20358:18;20345:11;;;20338:39;20310:2;20303:10;20274:113;;;20405:6;20402:1;20399:13;20396:2;;;-1:-1:-1;;20440:1:1;20422:16;;20415:27;20245:205::o;20455:135::-;20494:3;-1:-1:-1;;20515:17:1;;20512:2;;;20535:18;;:::i;:::-;-1:-1:-1;20582:1:1;20571:13;;20502:88::o;20595:127::-;20656:10;20651:3;20647:20;20644:1;20637:31;20687:4;20684:1;20677:15;20711:4;20708:1;20701:15;20727:127;20788:10;20783:3;20779:20;20776:1;20769:31;20819:4;20816:1;20809:15;20843:4;20840:1;20833:15;20859:131;-1:-1:-1;;;;;20934:31:1;;20924:42;;20914:2;;20980:1;20977;20970:12

Swarm Source

ipfs://8ea9fedf13d33b2dbd68cf166bbc14a21a1bfa63fde33af99a910c0c25349b93

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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