ETH Price: $2,591.95 (-2.40%)

Contract

0xBec29b45033fC6e98abF3DD7Ad20B8255978e1F1
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Strategist157399732022-10-13 15:05:11677 days ago1665673511IN
0xBec29b45...55978e1F1
0 ETH0.0011265640
Set Rewards157399732022-10-13 15:05:11677 days ago1665673511IN
0xBec29b45...55978e1F1
0 ETH0.0026661640
Set Keeper157399732022-10-13 15:05:11677 days ago1665673511IN
0xBec29b45...55978e1F1
0 ETH0.0012061640
0x60806040157356322022-10-13 0:32:35678 days ago1665621155IN
 Contract Creation
0 ETH0.1056371724.42475113

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 0xd58fe05E...17Df6965b
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
StrategyConvexcvxCRV

Compiler Version
v0.6.12+commit.27d51765

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-10-04
*/

// SPDX-License-Identifier: AGPL-3.0

pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;

// File: Address.sol

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

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

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

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

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

// File: IERC20.sol

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

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

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

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

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

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

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

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

// File: Math.sol

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

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

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

// File: SafeMath.sol

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

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

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

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

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

        return c;
    }

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

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

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

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

// File: SafeERC20.sol

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

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

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

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

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

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

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

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

// File: BaseStrategy.sol

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

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

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

    function decimals() external view returns (uint256);

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

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

    // NOTE: Vyper produces multiple signatures for a given function with "default" args
    function deposit() external returns (uint256);

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

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

    // NOTE: Vyper produces multiple signatures for a given function with "default" args
    function withdraw() external returns (uint256);

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

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

    function token() external view returns (address);

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

    function pricePerShare() external view returns (uint256);

    function totalAssets() external view returns (uint256);

    function depositLimit() external view returns (uint256);

    function maxAvailableShares() external view returns (uint256);

    /**
     * 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;

    /**
     * View the governance address of the Vault to assert privileged functions
     * can only be called by governance. The Strategy serves the Vault, so it
     * is subject to governance defined by the Vault.
     */
    function governance() external view returns (address);

    /**
     * View the management address of the Vault to assert privileged functions
     * can only be called by management. The Strategy serves the Vault, so it
     * is subject to management defined by the Vault.
     */
    function management() external view returns (address);

    /**
     * View the guardian address of the Vault to assert privileged functions
     * can only be called by guardian. The Strategy serves the Vault, so it
     * is subject to guardian defined by the Vault.
     */
    function guardian() 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 apiVersion() external pure returns (string memory);

    function keeper() external view returns (address);

    function isActive() external view returns (bool);

    function delegatedAssets() external view returns (uint256);

    function estimatedTotalAssets() external view returns (uint256);

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

    function tend() external;

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

    function harvest() external;

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

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

/**
 * @title Yearn Base Strategy
 * @author yearn.finance
 * @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 SafeMath for uint256;
    using SafeERC20 for IERC20;
    string public metadataURI;

    // health checks
    bool public doHealthCheck;
    address public healthCheck;

    /**
     * @notice
     *  Used to track which version of `StrategyAPI` this Strategy
     *  implements.
     * @dev The Strategy's version must match the Vault's `API_VERSION`.
     * @return A string which holds the current API version of this contract.
     */
    function apiVersion() public pure returns (string memory) {
        return "0.4.3";
    }

    /**
     * @notice This Strategy's name.
     * @dev
     *  You can use this field to manage the "version" of this Strategy, e.g.
     *  `StrategySomethingOrOtherV1`. However, "API Version" is managed by
     *  `apiVersion()` function above.
     * @return This Strategy's name.
     */
    function name() external view virtual returns (string memory);

    /**
     * @notice
     *  The amount (priced in want) of the total assets managed by this strategy should not count
     *  towards Yearn's TVL calculations.
     * @dev
     *  You can override this field to set it to a non-zero value if some of the assets of this
     *  Strategy is somehow delegated inside another part of of Yearn's ecosystem e.g. another Vault.
     *  Note that this value must be strictly less than or equal to the amount provided by
     *  `estimatedTotalAssets()` below, as the TVL calc will be total assets minus delegated assets.
     *  Also note that this value is used to determine the total assets under management by this
     *  strategy, for the purposes of computing the management fee in `Vault`
     * @return
     *  The amount of assets this strategy manages that should not be included in Yearn's Total Value
     *  Locked (TVL) calculation across it's ecosystem.
     */
    function delegatedAssets() external view virtual returns (uint256) {
        return 0;
    }

    VaultAPI public vault;
    address public strategist;
    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 UpdatedStrategist(address newStrategist);

    event UpdatedKeeper(address newKeeper);

    event UpdatedRewards(address rewards);

    event UpdatedMinReportDelay(uint256 delay);

    event UpdatedMaxReportDelay(uint256 delay);

    event UpdatedProfitFactor(uint256 profitFactor);

    event UpdatedDebtThreshold(uint256 debtThreshold);

    event EmergencyExitEnabled();

    event UpdatedMetadataURI(string metadataURI);

    event SetHealthCheck(address);
    event SetDoHealthCheck(bool);

    // 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 == strategist || msg.sender == governance(), "!authorized");
        _;
    }

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

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

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

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

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

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

    /**
     * @notice
     *  Initializes the Strategy, this is called only once, when the
     *  contract is deployed.
     * @dev `_vault` should implement `VaultAPI`.
     * @param _vault The address of the Vault responsible for this Strategy.
     * @param _strategist The address to assign as `strategist`.
     * The strategist is able to change the reward address
     * @param _rewards  The address to use for pulling rewards.
     * @param _keeper The adddress of the _keeper. _keeper
     * can harvest and tend a strategy.
     */
    function _initialize(
        address _vault,
        address _strategist,
        address _rewards,
        address _keeper
    ) internal {
        require(address(want) == address(0), "Strategy already initialized");

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

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

        vault.approve(rewards, uint256(-1)); // Allow rewards to be pulled
    }

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

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

    /**
     * @notice
     *  Used to change `strategist`.
     *
     *  This may only be called by governance or the existing strategist.
     * @param _strategist The new address to assign as `strategist`.
     */
    function setStrategist(address _strategist) external onlyAuthorized {
        require(_strategist != address(0));
        strategist = _strategist;
        emit UpdatedStrategist(_strategist);
    }

    /**
     * @notice
     *  Used to change `keeper`.
     *
     *  `keeper` is the only address that may call `tend()` or `harvest()`,
     *  other than `governance()` or `strategist`. However, unlike
     *  `governance()` or `strategist`, `keeper` may *only* call `tend()`
     *  and `harvest()`, and no other authorized functions, following the
     *  principle of least privilege.
     *
     *  This may only be called by governance or the strategist.
     * @param _keeper The new address to assign as `keeper`.
     */
    function setKeeper(address _keeper) external onlyAuthorized {
        require(_keeper != address(0));
        keeper = _keeper;
        emit UpdatedKeeper(_keeper);
    }

    /**
     * @notice
     *  Used to change `rewards`. EOA or smart contract which has the permission
     *  to pull rewards from the vault.
     *
     *  This may only be called by the strategist.
     * @param _rewards The address to use for pulling rewards.
     */
    function setRewards(address _rewards) external onlyStrategist {
        require(_rewards != address(0));
        vault.approve(rewards, 0);
        rewards = _rewards;
        vault.approve(rewards, uint256(-1));
        emit UpdatedRewards(_rewards);
    }

    /**
     * @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.)
     *
     *  This may only be called by governance or the strategist.
     * @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.)
     *
     *  This may only be called by governance or the strategist.
     * @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.)
     *
     *  This may only be called by governance or the strategist.
     * @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.)
     *
     *  This may only be called by governance or the strategist.
     * @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);
    }

    /**
     * @notice
     *  Used to change `metadataURI`. `metadataURI` is used to store the URI
     * of the file describing the strategy.
     *
     *  This may only be called by governance or the strategist.
     * @param _metadataURI The URI that describe the strategy.
     */
    function setMetadataURI(string calldata _metadataURI) external onlyAuthorized {
        metadataURI = _metadataURI;
        emit UpdatedMetadataURI(_metadataURI);
    }

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

    /**
     * @notice
     *  Provide an accurate conversion from `_amtInWei` (denominated in wei)
     *  to `want` (using the native decimal characteristics of `want`).
     * @dev
     *  Care must be taken when working with decimals to assure that the conversion
     *  is compatible. As an example:
     *
     *      given 1e17 wei (0.1 ETH) as input, and want is USDC (6 decimals),
     *      with USDC/ETH = 1800, this should give back 1800000000 (180 USDC)
     *
     * @param _amtInWei The amount (in wei/1e-18 ETH) to convert to `want`
     * @return The amount in `want` of `_amtInEth` converted to `want`
     **/
    function ethToWant(uint256 _amtInWei) public view virtual returns (uint256);

    /**
     * @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 governance 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`).
     *
     * `_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.
     *
     * NOTE: The invariant `_liquidatedAmount + _loss <= _amountNeeded` should always be maintained
     */
    function liquidatePosition(uint256 _amountNeeded) internal virtual returns (uint256 _liquidatedAmount, uint256 _loss);

    /**
     * Liquidate everything and returns the amount that got freed.
     * This function is used during emergency exit instead of `prepareReturn()` to
     * liquidate all of the Strategy's positions back to the Vault.
     */

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

    /**
     * @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
     *  `callCostInWei` must be priced in terms of `wei` (1e-18 ETH).
     *
     *  This call and `harvestTrigger()` should never return `true` at the same
     *  time.
     * @param callCostInWei The keeper's estimated gas cost to call `tend()` (in wei).
     * @return `true` if `tend()` should be called, `false` otherwise.
     */
    function tendTrigger(uint256 callCostInWei) public view virtual returns (bool) {
        // We usually don't need tend, but if there are positions that need
        // active maintainence, overriding this function is how you would
        // signal for that.
        // If your implementation uses the cost of the call in want, you can
        // use uint256 callCost = ethToWant(callCostInWei);

        return false;
    }

    /**
     * @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()`.
     *
     *  This may only be called by governance, the strategist, or the keeper.
     */
    function tend() external onlyKeepers {
        // 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
     *  `callCostInWei` must be priced in terms of `wei` (1e-18 ETH).
     *
     *  This call and `tendTrigger` should never return `true` at the
     *  same time.
     *
     *  See `min/maxReportDelay`, `profitFactor`, `debtThreshold` to adjust the
     *  strategist-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/main/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 callCostInWei The keeper's estimated gas cost to call `harvest()` (in wei).
     * @return `true` if `harvest()` should be called, `false` otherwise.
     */
    function harvestTrigger(uint256 callCostInWei) public view virtual returns (bool) {
        uint256 callCost = ethToWant(callCostInWei);
        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.sub(params.lastReport) < minReportDelay) return false;

        // Should trigger if hasn't been called in a while
        if (block.timestamp.sub(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.add(debtThreshold) < params.totalDebt) return true;

        uint256 profit = 0;
        if (total > params.totalDebt) profit = total.sub(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.mul(callCost) < credit.add(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.
     *
     *  This may only be called by governance, the strategist, or the keeper.
     * @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 onlyKeepers {
        uint256 profit = 0;
        uint256 loss = 0;
        uint256 debtOutstanding = vault.debtOutstanding();
        uint256 debtPayment = 0;
        if (emergencyExit) {
            // Free up as much capital as possible
            uint256 amountFreed = liquidateAllPositions();
            if (amountFreed < debtOutstanding) {
                loss = debtOutstanding.sub(amountFreed);
            } else if (amountFreed > debtOutstanding) {
                profit = amountFreed.sub(debtOutstanding);
            }
            debtPayment = debtOutstanding.sub(loss);
        } 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.
        uint256 totalDebt = vault.strategies(address(this)).totalDebt;
        debtOutstanding = vault.report(profit, loss, debtPayment);

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

        // call healthCheck contract
        if (doHealthCheck && healthCheck != address(0)) {
            require(HealthCheck(healthCheck).check(profit, loss, debtPayment, debtOutstanding, totalDebt), "!healthcheck");
        } else {
            emit SetDoHealthCheck(true);
            doHealthCheck = true;
        }

        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 the Vault.
     * @dev
     * The new Strategy's Vault must be the same as this Strategy's Vault.
     *  The migration process should be carefully performed to make sure all
     * the assets are migrated to the new address, which should have never
     * interacted with the vault before.
     * @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.
     *
     *  This may only be called by governance or the strategist.
     * @dev
     *  See `vault.setEmergencyShutdown()` and `harvest()` for further details.
     */
    function setEmergencyExit() external onlyEmergencyAuthorized {
        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 `governance()`.
     *
     *  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 governance.
     * @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 onlyGovernance {
        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(governance(), IERC20(_token).balanceOf(address(this)));
    }
}

abstract contract BaseStrategyInitializable is BaseStrategy {
    bool public isOriginal = true;
    event Cloned(address indexed clone);

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

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

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

    function clone(
        address _vault,
        address _strategist,
        address _rewards,
        address _keeper
    ) external returns (address newStrategy) {
        // Copied from https://github.com/optionality/clone-factory/blob/master/contracts/CloneFactory.sol
        bytes20 addressBytes = bytes20(address(this));

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

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

        emit Cloned(newStrategy);
    }
}

// File: curve.sol

interface IGauge {
    function deposit(uint256) external;

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

    function claim_rewards() external;

    function claimable_tokens(address) external view returns (uint256);

    function claimable_reward(address _addressToCheck, address _rewardToken)
        external
        view
        returns (uint256);

    function withdraw(uint256) external;
}

interface ICurveFi {
    function get_virtual_price() external view returns (uint256);

    function add_liquidity(
        // EURt
        uint256[2] calldata amounts,
        uint256 min_mint_amount
    ) external payable;

    function add_liquidity(
        // Compound, sAave
        uint256[2] calldata amounts,
        uint256 min_mint_amount,
        bool _use_underlying
    ) external payable returns (uint256);

    function add_liquidity(
        // Iron Bank, Aave
        uint256[3] calldata amounts,
        uint256 min_mint_amount,
        bool _use_underlying
    ) external payable returns (uint256);

    function add_liquidity(
        // 3Crv Metapools
        address pool,
        uint256[4] calldata amounts,
        uint256 min_mint_amount
    ) external;

    function add_liquidity(
        // Y and yBUSD
        uint256[4] calldata amounts,
        uint256 min_mint_amount,
        bool _use_underlying
    ) external payable returns (uint256);

    function add_liquidity(
        // 3pool
        uint256[3] calldata amounts,
        uint256 min_mint_amount
    ) external payable;

    function add_liquidity(
        // sUSD
        uint256[4] calldata amounts,
        uint256 min_mint_amount
    ) external payable;

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

    function remove_liquidity(uint256 _amount, uint256[2] calldata amounts)
        external;

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

    function exchange(
        // CRV-ETH and CVX-ETH
        uint256 from,
        uint256 to,
        uint256 _from_amount,
        uint256 _min_to_amount,
        bool use_eth
    ) external;

    function exchange(
        // sETH
        int128 from,
        int128 to,
        uint256 _from_amount,
        uint256 _min_to_amount
    ) external payable returns (uint256);

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

    function price_oracle() external view returns (uint256);

    function get_dy(
        int128 from,
        int128 to,
        uint256 _from_amount
    ) external view returns (uint256);

    // EURt
    function calc_token_amount(uint256[2] calldata _amounts, bool _is_deposit)
        external
        view
        returns (uint256);

    // 3Crv Metapools
    function calc_token_amount(
        address _pool,
        uint256[4] calldata _amounts,
        bool _is_deposit
    ) external view returns (uint256);

    // sUSD, Y pool, etc
    function calc_token_amount(uint256[4] calldata _amounts, bool _is_deposit)
        external
        view
        returns (uint256);

    // 3pool, Iron Bank, etc
    function calc_token_amount(uint256[3] calldata _amounts, bool _is_deposit)
        external
        view
        returns (uint256);

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

interface ICrvV3 is IERC20 {
    function minter() external view returns (address);
}

interface IMinter {
    function mint(address) external;
}

// File: StrategyConvexcvxCRV.sol

// These are the core Yearn libraries

interface IBaseFee {
    function isCurrentBaseFeeAcceptable() external view returns (bool);
}

interface IOracle {
    function latestAnswer() external view returns (uint256);
}

interface IUniV3 {
    struct ExactInputParams {
        bytes path;
        address recipient;
        uint256 deadline;
        uint256 amountIn;
        uint256 amountOutMinimum;
    }

    function exactInput(ExactInputParams calldata params)
        external
        payable
        returns (uint256 amountOut);
}

interface IConvexRewards {
    // strategy's staked balance in the synthetix staking contract
    function balanceOf(address account) external view returns (uint256);

    // read how much claimable CRV a strategy has
    function earned(address account) external view returns (uint256);

    // stake a convex tokenized deposit
    function stake(uint256 _amount) external returns (bool);

    // withdraw to a convex tokenized deposit, probably never need to use this
    function withdraw(uint256 _amount, bool _claim) external returns (bool);

    // withdraw directly to curve LP token, this is what we primarily use
    function withdrawAndUnwrap(uint256 _amount, bool _claim)
        external
        returns (bool);

    // claim rewards, with an option to claim extra rewards or not
    function getReward(address _account, bool _claimExtras)
        external
        returns (bool);

    // check if we have rewards on a pool
    function extraRewardsLength() external view returns (uint256);

    // if we have rewards, see what the address is
    function extraRewards(uint256 _reward) external view returns (address);

    // read our rewards token
    function rewardToken() external view returns (address);

    // check our reward period finish
    function periodFinish() external view returns (uint256);
}

interface IConvexDeposit {
    // deposit into convex, receive a tokenized deposit.  parameter to stake immediately (we always do this).
    function deposit(
        uint256 _pid,
        uint256 _amount,
        bool _stake
    ) external returns (bool);

    // burn a tokenized deposit (Convex deposit tokens) to receive curve lp tokens back
    function withdraw(uint256 _pid, uint256 _amount) external returns (bool);

    // give us info about a pool based on its pid
    function poolInfo(uint256)
        external
        view
        returns (
            address,
            address,
            address,
            address,
            address,
            bool
        );
}

abstract contract StrategyConvexBase is BaseStrategy {
    using Address for address;

    /* ========== STATE VARIABLES ========== */
    // these should stay the same across different wants.

    // convex stuff
    address internal constant depositContract =
        0xF403C135812408BFbE8713b5A23a04b3D48AAE31; // this is the deposit contract that all pools use, aka booster
    IConvexRewards public rewardsContract; // This is unique to each curve pool
    uint256 public pid; // this is unique to each pool

    // keepCRV stuff
    uint256 public keepCRV; // the percentage of CRV we re-lock for boost (in basis points)
    uint256 public keepCVX; // the percentage of CVX we keep for boosting yield (in basis points)
    address public keepCVXDestination; // where we send the CVX we are keeping
    address internal constant voter =
        0xF147b8125d2ef93FB6965Db97D6746952a133934; // Yearn's veCRV voter, we send some extra CRV here
    uint256 internal constant FEE_DENOMINATOR = 10000; // this means all of our fee values are in basis points

    IERC20 internal constant crv =
        IERC20(0xD533a949740bb3306d119CC777fa900bA034cd52);
    IERC20 internal constant convexToken =
        IERC20(0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B);
    IERC20 internal constant weth =
        IERC20(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);

    // keeper stuff
    uint256 public harvestProfitMin; // minimum size in USD (6 decimals) that we want to harvest
    uint256 public harvestProfitMax; // maximum size in USD (6 decimals) that we want to harvest
    uint256 public creditThreshold; // amount of credit in underlying tokens that will automatically trigger a harvest
    bool internal forceHarvestTriggerOnce; // only set this to true when we want to trigger our keepers to harvest for us

    string internal stratName;

    // convex-specific variables
    bool public claimRewards; // boolean if we should always claim rewards when withdrawing, usually via withdrawAndUnwrap (generally this should be false)

    /* ========== CONSTRUCTOR ========== */

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

    /* ========== VIEWS ========== */

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

    /// @notice How much want we have staked in Convex
    function stakedBalance() public view returns (uint256) {
        return rewardsContract.balanceOf(address(this));
    }

    /// @notice Balance of want sitting in our strategy
    function balanceOfWant() public view returns (uint256) {
        return want.balanceOf(address(this));
    }

    /// @notice How much CRV we can claim from the staking contract
    function claimableBalance() public view returns (uint256) {
        return rewardsContract.earned(address(this));
    }

    function estimatedTotalAssets() public view override returns (uint256) {
        return balanceOfWant().add(stakedBalance());
    }

    /* ========== MUTATIVE FUNCTIONS ========== */

    function adjustPosition(uint256 _debtOutstanding) internal override {
        if (emergencyExit) {
            return;
        }
        // Send all of our Curve pool tokens to be deposited
        uint256 _toInvest = balanceOfWant();
        // deposit into convex and stake immediately (but only if we have something to invest)
        if (_toInvest > 0) {
            IConvexDeposit(depositContract).deposit(pid, _toInvest, true);
        }
    }

    function liquidatePosition(uint256 _amountNeeded)
        internal
        override
        returns (uint256 _liquidatedAmount, uint256 _loss)
    {
        uint256 _wantBal = balanceOfWant();
        if (_amountNeeded > _wantBal) {
            uint256 _stakedBal = stakedBalance();
            if (_stakedBal > 0) {
                rewardsContract.withdrawAndUnwrap(
                    Math.min(_stakedBal, _amountNeeded.sub(_wantBal)),
                    claimRewards
                );
            }
            uint256 _withdrawnBal = balanceOfWant();
            _liquidatedAmount = Math.min(_amountNeeded, _withdrawnBal);
            _loss = _amountNeeded.sub(_liquidatedAmount);
        } else {
            // we have enough balance to cover the liquidation available
            return (_amountNeeded, 0);
        }
    }

    // fire sale, get rid of it all!
    function liquidateAllPositions() internal override returns (uint256) {
        uint256 _stakedBal = stakedBalance();
        if (_stakedBal > 0) {
            // don't bother withdrawing zero
            rewardsContract.withdrawAndUnwrap(_stakedBal, claimRewards);
        }
        return balanceOfWant();
    }

    // in case we need to exit into the convex deposit token, this will allow us to do that
    // make sure to check claimRewards before this step if needed
    // plan to have gov sweep convex deposit tokens from strategy after this
    function withdrawToConvexDepositTokens() external onlyVaultManagers {
        uint256 _stakedBal = stakedBalance();
        if (_stakedBal > 0) {
            rewardsContract.withdraw(_stakedBal, claimRewards);
        }
    }

    // we don't want for these tokens to be swept out. We allow gov to sweep out cvx vault tokens; we would only be holding these if things were really, really rekt.
    function protectedTokens()
        internal
        view
        override
        returns (address[] memory)
    {}

    /* ========== SETTERS ========== */

    // These functions are useful for setting parameters of the strategy that may need to be adjusted.

    // Set the amount of CRV to be locked in Yearn's veCRV voter from each harvest. Default is 10%. Option to keep CVX as well.
    function setKeep(
        uint256 _keepCRV,
        uint256 _keepCVX,
        address _keepCVXDestination
    ) external onlyGovernance {
        require(_keepCRV <= 10_000 && _keepCVX <= 10_000);
        keepCRV = _keepCRV;
        keepCVX = _keepCVX;
        keepCVXDestination = _keepCVXDestination;
    }

    // We usually don't need to claim rewards on withdrawals, but might change our mind for migrations etc
    function setClaimRewards(bool _claimRewards) external onlyVaultManagers {
        claimRewards = _claimRewards;
    }

    // This allows us to manually harvest with our keeper as needed
    function setForceHarvestTriggerOnce(bool _forceHarvestTriggerOnce)
        external
        onlyVaultManagers
    {
        forceHarvestTriggerOnce = _forceHarvestTriggerOnce;
    }
}

contract StrategyConvexcvxCRV is StrategyConvexBase {
    /* ========== STATE VARIABLES ========== */
    // these will likely change across different wants.

    // Curve stuff
    ICurveFi public curve; // Curve Pool, this is our pool specific to this vault

    bool public checkEarmark; // this determines if we should check if we need to earmark rewards before harvesting

    // use Curve to sell our CVX rewards to WETH and then CRV
    ICurveFi internal constant crveth =
        ICurveFi(0x8301AE4fc9c624d1D396cbDAa1ed877821D7C511); // use curve's new CRV-ETH crypto pool to sell our CRV
    ICurveFi internal constant cvxeth =
        ICurveFi(0xB576491F1E6e5E62f1d8F26062Ee822B40B0E0d4); // use curve's new CVX-ETH crypto pool to sell our CVX

    /* ========== CONSTRUCTOR ========== */

    constructor(
        address _vault,
        uint256 _pid,
        address _curvePool,
        string memory _name
    ) public StrategyConvexBase(_vault) {
        // You can set these parameters on deployment to whatever you want
        maxReportDelay = 100 days; // 100 days in seconds, if we hit this then harvestTrigger = True
        healthCheck = 0xDDCea799fF1699e98EDF118e0629A974Df7DF012; // health.ychad.eth
        harvestProfitMin = 10000e6;
        harvestProfitMax = 120000e6;
        creditThreshold = 1e6 * 1e18;
        keepCRV = 1000; // default of 10%
        keepCVXDestination = 0x93A62dA5a14C80f265DAbC077fCEE437B1a0Efde; // default to treasury

        // these are our standard approvals. want = Curve LP token
        want.approve(address(depositContract), type(uint256).max);

        // this is the pool specific to this vault, used for depositing
        curve = ICurveFi(_curvePool);

        // setup our rewards contract
        pid = _pid; // this is the pool ID on convex, we use this to determine what the reweardsContract address is
        (address lptoken, , , address _rewardsContract, , ) =
            IConvexDeposit(depositContract).poolInfo(_pid);

        // set up our rewardsContract
        rewardsContract = IConvexRewards(_rewardsContract);

        // check that our LP token based on our pid matches our want
        require(address(lptoken) == address(want));

        // set our strategy's name
        stratName = _name;

        // these are our approvals and path specific to this contract
        weth.approve(address(crveth), type(uint256).max);
        convexToken.approve(address(cvxeth), type(uint256).max);
        crv.approve(address(curve), type(uint256).max);
    }

    /* ========== VARIABLE FUNCTIONS ========== */
    // these will likely change across different wants.

    function prepareReturn(uint256 _debtOutstanding)
        internal
        override
        returns (
            uint256 _profit,
            uint256 _loss,
            uint256 _debtPayment
        )
    {
        // this claims our CRV, CVX, and any extra tokens like SNX or ANKR. no harm leaving this true even if no extra rewards currently.
        rewardsContract.getReward(address(this), true);

        uint256 crvBalance = crv.balanceOf(address(this));
        uint256 convexBalance = convexToken.balanceOf(address(this));

        uint256 _sendToVoter = crvBalance.mul(keepCRV).div(FEE_DENOMINATOR);
        if (_sendToVoter > 0) {
            crv.safeTransfer(voter, _sendToVoter);
        }

        uint256 _cvxToKeep = convexBalance.mul(keepCVX).div(FEE_DENOMINATOR);
        if (_cvxToKeep > 0) {
            convexToken.safeTransfer(keepCVXDestination, _cvxToKeep);
            convexBalance = convexToken.balanceOf(address(this));
        }

        // sell our claimed CVX, no need to sell CRV since this pool accepts it as deposit
        if (convexBalance > 0) {
            _sellConvex(convexBalance);
        }

        // deposit our CRV to Curve
        crvBalance = crv.balanceOf(address(this));
        if (crvBalance > 0) {
            curve.add_liquidity([crvBalance, 0], 0);
        }

        // debtOustanding will only be > 0 in the event of revoking or if we need to rebalance from a withdrawal or lowering the debtRatio
        if (_debtOutstanding > 0) {
            uint256 _stakedBal = stakedBalance();
            if (_stakedBal > 0) {
                rewardsContract.withdrawAndUnwrap(
                    Math.min(_stakedBal, _debtOutstanding),
                    claimRewards
                );
            }
            uint256 _withdrawnBal = balanceOfWant();
            _debtPayment = Math.min(_debtOutstanding, _withdrawnBal);
        }

        // serious loss should never happen, but if it does (for instance, if Curve is hacked), let's record it accurately
        uint256 assets = estimatedTotalAssets();
        uint256 debt = vault.strategies(address(this)).totalDebt;

        // if assets are greater than debt, things are working great!
        if (assets > debt) {
            _profit = assets.sub(debt);
            uint256 _wantBal = balanceOfWant();
            if (_profit.add(_debtPayment) > _wantBal) {
                // this should only be hit following donations to strategy
                liquidateAllPositions();
            }
        }
        // if assets are less than debt, we are in trouble
        else {
            _loss = debt.sub(assets);
        }

        // we're done harvesting, so reset our trigger if we used it
        forceHarvestTriggerOnce = false;
    }

    // migrate our want token to a new strategy if needed, make sure to check claimRewards first
    // also send over any CRV or CVX that is claimed; for migrations we definitely want to claim
    function prepareMigration(address _newStrategy) internal override {
        uint256 _stakedBal = stakedBalance();
        if (_stakedBal > 0) {
            rewardsContract.withdrawAndUnwrap(_stakedBal, claimRewards);
        }
        crv.safeTransfer(_newStrategy, crv.balanceOf(address(this)));
        convexToken.safeTransfer(
            _newStrategy,
            convexToken.balanceOf(address(this))
        );
    }

    // Sell our CVX for WETH and then to CRV on Curve
    function _sellConvex(uint256 _convexAmount) internal {
        if (_convexAmount > 1e17) {
            // don't want to swap dust or we might revert
            cvxeth.exchange(1, 0, _convexAmount, 0, false);
        }

        uint256 wethBalance = weth.balanceOf(address(this));
        if (wethBalance > 1e15) {
            // don't want to swap dust or we might revert
            crveth.exchange(0, 1, wethBalance, 0, false);
        }
    }

    /* ========== KEEP3RS ========== */
    // use this to determine when to harvest
    function harvestTrigger(uint256 callCostinEth)
        public
        view
        override
        returns (bool)
    {
        // Should not trigger if strategy is not active (no assets and no debtRatio). This means we don't need to adjust keeper job.
        if (!isActive()) {
            return false;
        }

        // only check if we need to earmark on vaults we know are problematic
        if (checkEarmark) {
            // don't harvest if we need to earmark convex rewards
            if (needsEarmarkReward()) {
                return false;
            }
        }

        // harvest if we have a profit to claim at our upper limit without considering gas price
        uint256 claimableProfit = claimableProfitInUsdt();
        if (claimableProfit > harvestProfitMax) {
            return true;
        }

        // check if the base fee gas price is higher than we allow. if it is, block harvests.
        if (!isBaseFeeAcceptable()) {
            return false;
        }

        // trigger if we want to manually harvest, but only if our gas price is acceptable
        if (forceHarvestTriggerOnce) {
            return true;
        }

        // harvest if we have a sufficient profit to claim, but only if our gas price is acceptable
        if (claimableProfit > harvestProfitMin) {
            return true;
        }

        StrategyParams memory params = vault.strategies(address(this));
        // harvest no matter what once we reach our maxDelay
        if (block.timestamp.sub(params.lastReport) > maxReportDelay) {
            return true;
        }

        // harvest our credit if it's above our threshold
        if (vault.creditAvailable() > creditThreshold) {
            return true;
        }

        // otherwise, we don't harvest
        return false;
    }

    /// @notice The value in dollars that our claimable rewards are worth (in USDT, 6 decimals).
    function claimableProfitInUsdt() public view returns (uint256) {
        // calculations pulled directly from CVX's contract for minting CVX per CRV claimed
        uint256 totalCliffs = 1_000;
        uint256 maxSupply = 100 * 1_000_000 * 1e18; // 100mil
        uint256 reductionPerCliff = 100_000 * 1e18; // 100,000
        uint256 supply = convexToken.totalSupply();
        uint256 mintableCvx;

        uint256 cliff = supply.div(reductionPerCliff);
        uint256 _claimableBal = claimableBalance();
        //mint if below total cliffs
        if (cliff < totalCliffs) {
            //for reduction% take inverse of current cliff
            uint256 reduction = totalCliffs.sub(cliff);
            //reduce
            mintableCvx = _claimableBal.mul(reduction).div(totalCliffs);

            //supply cap check
            uint256 amtTillMax = maxSupply.sub(supply);
            if (mintableCvx > amtTillMax) {
                mintableCvx = amtTillMax;
            }
        }

        // our chainlink oracle returns prices normalized to 8 decimals, we convert it to 6
        IOracle ethOracle = IOracle(0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419);
        uint256 ethPrice = ethOracle.latestAnswer().div(1e2); // 1e8 div 1e2 = 1e6
        uint256 crvPrice = crveth.price_oracle().mul(ethPrice).div(1e18); // 1e18 mul 1e6 div 1e18 = 1e6
        uint256 cvxPrice = cvxeth.price_oracle().mul(ethPrice).div(1e18); // 1e18 mul 1e6 div 1e18 = 1e6

        uint256 crvValue = crvPrice.mul(_claimableBal).div(1e18); // 1e6 mul 1e18 div 1e18 = 1e6
        uint256 cvxValue = cvxPrice.mul(mintableCvx).div(1e18); // 1e6 mul 1e18 div 1e18 = 1e6

        return crvValue.add(cvxValue);
    }

    // convert our keeper's eth cost into want, we don't need this anymore since we don't use baseStrategy harvestTrigger
    function ethToWant(uint256 _ethAmount)
        public
        view
        override
        returns (uint256)
    {}

    // check if the current baseFee is below our external target
    function isBaseFeeAcceptable() internal view returns (bool) {
        return
            IBaseFee(0xb5e1CAcB567d98faaDB60a1fD4820720141f064F)
                .isCurrentBaseFeeAcceptable();
    }

    /// @notice True if someone needs to earmark rewards on Convex before keepers harvest again
    function needsEarmarkReward() public view returns (bool needsEarmark) {
        // check if there is any CRV we need to earmark
        uint256 crvExpiry = rewardsContract.periodFinish();
        return crvExpiry < block.timestamp;
    }

    /* ========== SETTERS ========== */

    // These functions are useful for setting parameters of the strategy that may need to be adjusted.

    /**
     * @notice
     * Here we set various parameters to optimize our harvestTrigger.
     * @param _harvestProfitMin The amount of profit (in USDC, 6 decimals)
     * that will trigger a harvest if gas price is acceptable.
     * @param _harvestProfitMax The amount of profit in USDC that
     * will trigger a harvest regardless of gas price.
     * @param _creditThreshold The number of want tokens that will
     * automatically trigger a harvest once gas is cheap enough.
     * @param _checkEarmark Whether or not we should check Convex's
     * booster to see if we need to earmark before harvesting.
     */
    function setHarvestTriggerParams(
        uint256 _harvestProfitMin,
        uint256 _harvestProfitMax,
        uint256 _creditThreshold,
        bool _checkEarmark
    ) external onlyVaultManagers {
        harvestProfitMin = _harvestProfitMin;
        harvestProfitMax = _harvestProfitMax;
        creditThreshold = _creditThreshold;
        checkEarmark = _checkEarmark;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_vault","type":"address"},{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_curvePool","type":"address"},{"internalType":"string","name":"_name","type":"string"}],"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":false,"internalType":"bool","name":"","type":"bool"}],"name":"SetDoHealthCheck","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"}],"name":"SetHealthCheck","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"debtThreshold","type":"uint256"}],"name":"UpdatedDebtThreshold","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newKeeper","type":"address"}],"name":"UpdatedKeeper","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"delay","type":"uint256"}],"name":"UpdatedMaxReportDelay","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"metadataURI","type":"string"}],"name":"UpdatedMetadataURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"delay","type":"uint256"}],"name":"UpdatedMinReportDelay","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"profitFactor","type":"uint256"}],"name":"UpdatedProfitFactor","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"rewards","type":"address"}],"name":"UpdatedRewards","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newStrategist","type":"address"}],"name":"UpdatedStrategist","type":"event"},{"inputs":[],"name":"apiVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"balanceOfWant","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"checkEarmark","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimRewards","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimableBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimableProfitInUsdt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"creditThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curve","outputs":[{"internalType":"contract ICurveFi","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"debtThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"delegatedAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"doHealthCheck","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyExit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"estimatedTotalAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ethAmount","type":"uint256"}],"name":"ethToWant","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvestProfitMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvestProfitMin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"callCostinEth","type":"uint256"}],"name":"harvestTrigger","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"healthCheck","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keepCRV","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keepCVX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keepCVXDestination","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keeper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxReportDelay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newStrategy","type":"address"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minReportDelay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"needsEarmarkReward","outputs":[{"internalType":"bool","name":"needsEarmark","type":"bool"}],"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":"rewards","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsContract","outputs":[{"internalType":"contract IConvexRewards","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_claimRewards","type":"bool"}],"name":"setClaimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_debtThreshold","type":"uint256"}],"name":"setDebtThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_doHealthCheck","type":"bool"}],"name":"setDoHealthCheck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setEmergencyExit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_forceHarvestTriggerOnce","type":"bool"}],"name":"setForceHarvestTriggerOnce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_harvestProfitMin","type":"uint256"},{"internalType":"uint256","name":"_harvestProfitMax","type":"uint256"},{"internalType":"uint256","name":"_creditThreshold","type":"uint256"},{"internalType":"bool","name":"_checkEarmark","type":"bool"}],"name":"setHarvestTriggerParams","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_healthCheck","type":"address"}],"name":"setHealthCheck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_keepCRV","type":"uint256"},{"internalType":"uint256","name":"_keepCVX","type":"uint256"},{"internalType":"address","name":"_keepCVXDestination","type":"address"}],"name":"setKeep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_keeper","type":"address"}],"name":"setKeeper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_delay","type":"uint256"}],"name":"setMaxReportDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_metadataURI","type":"string"}],"name":"setMetadataURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_delay","type":"uint256"}],"name":"setMinReportDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_profitFactor","type":"uint256"}],"name":"setProfitFactor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewards","type":"address"}],"name":"setRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategist","type":"address"}],"name":"setStrategist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"strategist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"callCostInWei","type":"uint256"}],"name":"tendTrigger","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"contract VaultAPI","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"want","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountNeeded","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"_loss","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawToConvexDepositTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061038e5760003560e01c8063748747e6116101de578063b4d48fd41161010f578063ed882c2b116100ad578063f09338df1161007c578063f09338df14610659578063f106845414610661578063fbfa77cf14610669578063fcf2d0ad146106715761038e565b8063ed882c2b14610623578063ef86b23c14610636578063efbb5cb01461063e578063f017c92f146106465761038e565b8063c7b9d530116100e9578063c7b9d530146105e2578063ce5494bb146105f5578063ec2f105014610608578063ec38a862146106105761038e565b8063b4d48fd4146105bf578063c1a3d44c146105d2578063c4f45423146105da5761038e565b806395e80c501161017c578063aa5480cf11610156578063aa5480cf14610594578063ac00ff261461059c578063aced1661146105af578063b252720b146105b75761038e565b806395e80c50146105715780639ec5a89414610579578063a98f9296146105815761038e565b80637fef901a116101b85780637fef901a146105465780638cdfe1661461054e5780638e6350e21461055657806391397ab41461055e5761038e565b8063748747e614610512578063750521f514610525578063780022a0146105385761038e565b806328b7ccf7116102c35780634641257d116102615780635fbeb25f116102305780635fbeb25f146104e7578063650d1880146104ef5780636718835f146105025780637165485d1461050a5761038e565b80634641257d146104c75780634b31217e146104cf5780635641ec03146104d75780635b9f0016146104df5761038e565b8063372500ab1161029d578063372500ab1461049c57806339a172a8146104a45780633b7c6e2f146104b7578063440368a3146104bf5761038e565b806328b7ccf7146104795780632e1a7d4d1461048157806334659dc5146104945761038e565b806311bc8245116103305780631fe4a6861161030a5780631fe4a6861461044c578063220cce971461045457806322f3e2d41461045c57806325829410146104715761038e565b806311bc82451461041c5780631d12f28b1461042f5780631f1fcd51146104375761038e565b806306fdde031161036c57806306fdde03146103db5780630ada4dab146103e35780630f969b87146103f65780631111fe1c146104095761038e565b806301681a621461039357806303ee438c146103a857806306cfb3c0146103c6575b600080fd5b6103a66103a1366004613b1d565b610679565b005b6103b0610818565b6040516103bd9190613e35565b60405180910390f35b6103ce6108a6565b6040516103bd91906140ab565b6103b0610b9d565b6103a66103f1366004613b55565b610c33565b6103a6610404366004613c78565b610d1f565b6103a6610417366004613ca8565b610dac565b6103a661042a366004613b1d565b610e2b565b6103ce610f63565b61043f610f69565b6040516103bd9190613d3c565b61043f610f78565b61043f610f87565b610464610f9b565b6040516103bd9190613dd6565b6103b061103d565b6103ce61105c565b6103ce61048f366004613c78565b611062565b6103a66110bd565b610464611238565b6103a66104b2366004613c78565b611241565b6103ce6112c3565b6103a66112c9565b6103a66114f2565b6103ce611a03565b610464611a09565b6103ce611a12565b6103ce611a98565b6104646104fd366004613c78565b611a9e565b610464611aa6565b61043f611aaf565b6103a6610520366004613b1d565b611ac3565b6103a6610533366004613b8d565b611b6e565b6103ce6104fd366004613c78565b6103ce611c05565b6103ce611c0b565b6103ce611c11565b6103a661056c366004613c78565b611c16565b6103ce611c98565b61043f611c9e565b6103a661058f366004613b55565b611cad565b6103ce611d99565b6103a66105aa366004613b55565b611d9f565b61043f611ec2565b61043f611ed1565b6103a66105cd366004613ce0565b611ee5565b6103ce611feb565b6103ce61201c565b6103a66105f0366004613b1d565b612050565b6103a6610603366004613b1d565b6120fb565b610464612246565b6103a661061e366004613b1d565b612256565b610464610631366004613c78565b6123e9565b61043f6125df565b6103ce6125ee565b6103a6610654366004613c78565b612609565b61046461268b565b6103ce61271c565b61043f612722565b6103a6612731565b610681612a6c565b6001600160a01b0316336001600160a01b0316146106ba5760405162461bcd60e51b81526004016106b190613fc2565b60405180910390fd5b6006546001600160a01b03828116911614156106e85760405162461bcd60e51b81526004016106b190613e8d565b6002546001600160a01b03828116911614156107165760405162461bcd60e51b81526004016106b190613f6a565b6060610720612ae9565b905060005b815181101561077b5781818151811061073a57fe5b60200260200101516001600160a01b0316836001600160a01b031614156107735760405162461bcd60e51b81526004016106b190614031565b600101610725565b50610814610787612a6c565b6040516370a0823160e01b81526001600160a01b038516906370a08231906107b3903090600401613d3c565b60206040518083038186803b1580156107cb57600080fd5b505afa1580156107df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108039190613c90565b6001600160a01b0385169190612aee565b5050565b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561089e5780601f106108735761010080835404028352916020019161089e565b820191906000526020600020905b81548152906001019060200180831161088157829003601f168201915b505050505081565b6000806103e8905060006a52b7d2dcc80cd2e40000009050600069152d02c7e14af680000090506000734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b6001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561091c57600080fd5b505afa158015610930573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109549190613c90565b90506000806109638385612b0d565b9050600061096f61201c565b9050868210156109ba5760006109858884612b58565b905061099b886109958484612b9a565b90612b0d565b935060006109a98887612b58565b9050808511156109b7578094505b50505b6000735f4ec3df9cbd43714fe2740f5e3616155c5b841990506000610a4b6064836001600160a01b03166350d25bcd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610a1357600080fd5b505afa158015610a27573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109959190613c90565b90506000610aea670de0b6b3a764000061099584738301ae4fc9c624d1d396cbdaa1ed877821d7c5116001600160a01b03166386fc88d36040518163ffffffff1660e01b815260040160206040518083038186803b158015610aac57600080fd5b505afa158015610ac0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae49190613c90565b90612b9a565b90506000610b4b670de0b6b3a76400006109958573b576491f1e6e5e62f1d8f26062ee822b40b0e0d46001600160a01b03166386fc88d36040518163ffffffff1660e01b815260040160206040518083038186803b158015610aac57600080fd5b90506000610b65670de0b6b3a76400006109958589612b9a565b90506000610b7f670de0b6b3a7640000610995858c612b9a565b9050610b8b8282612bd4565b9d505050505050505050505050505090565b60148054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610c295780601f10610bfe57610100808354040283529160200191610c29565b820191906000526020600020905b815481529060010190602001808311610c0c57829003601f168201915b5050505050905090565b600260009054906101000a90046001600160a01b03166001600160a01b03166388a8d6026040518163ffffffff1660e01b815260040160206040518083038186803b158015610c8157600080fd5b505afa158015610c95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb99190613b39565b6001600160a01b0316336001600160a01b03161480610cf05750610cdb612a6c565b6001600160a01b0316336001600160a01b0316145b610d0c5760405162461bcd60e51b81526004016106b190613fc2565b6013805460ff1916911515919091179055565b6003546001600160a01b0316331480610d505750610d3b612a6c565b6001600160a01b0316336001600160a01b0316145b610d6c5760405162461bcd60e51b81526004016106b190613fc2565b600a8190556040517fa68ba126373d04c004c5748c300c9fca12bd444b3d4332e261f3bd2bac4a860090610da19083906140ab565b60405180910390a150565b610db4612a6c565b6001600160a01b0316336001600160a01b031614610de45760405162461bcd60e51b81526004016106b190613fc2565b6127108311158015610df857506127108211155b610e0157600080fd5b600d92909255600e55600f80546001600160a01b0319166001600160a01b03909216919091179055565b600260009054906101000a90046001600160a01b03166001600160a01b03166388a8d6026040518163ffffffff1660e01b815260040160206040518083038186803b158015610e7957600080fd5b505afa158015610e8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb19190613b39565b6001600160a01b0316336001600160a01b03161480610ee85750610ed3612a6c565b6001600160a01b0316336001600160a01b0316145b610f045760405162461bcd60e51b81526004016106b190613fc2565b7fc8db9c35f716b87af1fbb83f03c78646061931269301fd7ba6dcf189b4cdc2fc81604051610f339190613d3c565b60405180910390a1600180546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600a5481565b6006546001600160a01b031681565b6003546001600160a01b031681565b600b5461010090046001600160a01b031681565b6002546040516339ebf82360e01b815260009182916001600160a01b03909116906339ebf82390610fd0903090600401613d3c565b6101206040518083038186803b158015610fe957600080fd5b505afa158015610ffd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110219190613bfa565b604001511180611038575060006110366125ee565b115b905090565b604080518082019091526005815264302e342e3360d81b602082015290565b60085481565b6002546000906001600160a01b0316331461108f5760405162461bcd60e51b81526004016106b190613f4a565b600061109a83612bf9565b6006549093509091506110b7906001600160a01b03163383612aee565b50919050565b600260009054906101000a90046001600160a01b03166001600160a01b03166388a8d6026040518163ffffffff1660e01b815260040160206040518083038186803b15801561110b57600080fd5b505afa15801561111f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111439190613b39565b6001600160a01b0316336001600160a01b0316148061117a5750611165612a6c565b6001600160a01b0316336001600160a01b0316145b6111965760405162461bcd60e51b81526004016106b190613fc2565b60006111a0611a12565b9050801561123557600b54601554604051631c683a1b60e11b81526101009092046001600160a01b0316916338d07436916111e391859160ff16906004016140b4565b602060405180830381600087803b1580156111fd57600080fd5b505af1158015611211573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108149190613b71565b50565b60155460ff1681565b6003546001600160a01b0316331480611272575061125d612a6c565b6001600160a01b0316336001600160a01b0316145b61128e5760405162461bcd60e51b81526004016106b190613fc2565b60078190556040517fbb2c369a0355a34b02ab5fce0643150c87e1c8dfe7c918d465591879f57948b190610da19083906140ab565b60115481565b6005546001600160a01b03163314806112ec57506003546001600160a01b031633145b8061130f57506112fa612a6c565b6001600160a01b0316336001600160a01b0316145b806113b05750600260009054906101000a90046001600160a01b03166001600160a01b031663452a93206040518163ffffffff1660e01b815260040160206040518083038186803b15801561136357600080fd5b505afa158015611377573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061139b9190613b39565b6001600160a01b0316336001600160a01b0316145b806114515750600260009054906101000a90046001600160a01b03166001600160a01b03166388a8d6026040518163ffffffff1660e01b815260040160206040518083038186803b15801561140457600080fd5b505afa158015611418573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061143c9190613b39565b6001600160a01b0316336001600160a01b0316145b61146d5760405162461bcd60e51b81526004016106b190613fc2565b6002546040805163bf3759b560e01b815290516114f0926001600160a01b03169163bf3759b5916004808301926020929190829003018186803b1580156114b357600080fd5b505afa1580156114c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114eb9190613c90565b612d06565b565b6005546001600160a01b031633148061151557506003546001600160a01b031633145b806115385750611523612a6c565b6001600160a01b0316336001600160a01b0316145b806115d95750600260009054906101000a90046001600160a01b03166001600160a01b031663452a93206040518163ffffffff1660e01b815260040160206040518083038186803b15801561158c57600080fd5b505afa1580156115a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c49190613b39565b6001600160a01b0316336001600160a01b0316145b8061167a5750600260009054906101000a90046001600160a01b03166001600160a01b03166388a8d6026040518163ffffffff1660e01b815260040160206040518083038186803b15801561162d57600080fd5b505afa158015611641573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116659190613b39565b6001600160a01b0316336001600160a01b0316145b6116965760405162461bcd60e51b81526004016106b190613fc2565b6000806000600260009054906101000a90046001600160a01b03166001600160a01b031663bf3759b56040518163ffffffff1660e01b815260040160206040518083038186803b1580156116e957600080fd5b505afa1580156116fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117219190613c90565b600b5490915060009060ff161561177e57600061173c612db8565b905082811015611757576117508382612b58565b935061176c565b8281111561176c576117698184612b58565b94505b6117768385612b58565b91505061178f565b61178782612e68565b919550935090505b6002546040516339ebf82360e01b81526000916001600160a01b0316906339ebf823906117c0903090600401613d3c565b6101206040518083038186803b1580156117d957600080fd5b505afa1580156117ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118119190613bfa565b60c001516002546040516328766ebf60e21b81529192506001600160a01b03169063a1d9bafc9061184a908890889087906004016140dc565b602060405180830381600087803b15801561186457600080fd5b505af1158015611878573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189c9190613c90565b92506118a783612d06565b60015460ff1680156118c8575060015461010090046001600160a01b031615155b1561197a5760015460405163c70fa00b60e01b81526101009091046001600160a01b03169063c70fa00b90611909908890889087908990889060040161410d565b60206040518083038186803b15801561192157600080fd5b505afa158015611935573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119599190613b71565b6119755760405162461bcd60e51b81526004016106b190613ee3565b6119bf565b7ff769f6bf659bbbdabf212d830720ce893eedc57f25ebb8e44edf5b300618a35b60016040516119aa9190613dd6565b60405180910390a16001805460ff1916811790555b7f4c0f499ffe6befa0ca7c826b0916cf87bea98de658013e76938489368d60d509858584866040516119f494939291906140f2565b60405180910390a15050505050565b600e5481565b600b5460ff1681565b600b546040516370a0823160e01b815260009161010090046001600160a01b0316906370a0823190611a48903090600401613d3c565b60206040518083038186803b158015611a6057600080fd5b505afa158015611a74573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110389190613c90565b60105481565b60005b919050565b60015460ff1681565b60155461010090046001600160a01b031681565b6003546001600160a01b0316331480611af45750611adf612a6c565b6001600160a01b0316336001600160a01b0316145b611b105760405162461bcd60e51b81526004016106b190613fc2565b6001600160a01b038116611b2357600080fd5b600580546001600160a01b0319166001600160a01b0383161790556040517f2f202ddb4a2e345f6323ed90f8fc8559d770a7abbbeee84dde8aca3351fe715490610da1908390613d3c565b6003546001600160a01b0316331480611b9f5750611b8a612a6c565b6001600160a01b0316336001600160a01b0316145b611bbb5760405162461bcd60e51b81526004016106b190613fc2565b611bc760008383613a3e565b507f300e67d5a415b6d015a471d9c7b95dd58f3e8290af965e84e0f845de2996dda68282604051611bf9929190613e06565b60405180910390a15050565b600d5481565b60095481565b600090565b6003546001600160a01b0316331480611c475750611c32612a6c565b6001600160a01b0316336001600160a01b0316145b611c635760405162461bcd60e51b81526004016106b190613fc2565b60098190556040517fd94596337df4c2f0f44d30a7fc5db1c7bb60d9aca4185ed77c6fd96eb45ec29890610da19083906140ab565b60075481565b6004546001600160a01b031681565b600260009054906101000a90046001600160a01b03166001600160a01b03166388a8d6026040518163ffffffff1660e01b815260040160206040518083038186803b158015611cfb57600080fd5b505afa158015611d0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d339190613b39565b6001600160a01b0316336001600160a01b03161480611d6a5750611d55612a6c565b6001600160a01b0316336001600160a01b0316145b611d865760405162461bcd60e51b81526004016106b190613fc2565b6015805460ff1916911515919091179055565b60125481565b600260009054906101000a90046001600160a01b03166001600160a01b03166388a8d6026040518163ffffffff1660e01b815260040160206040518083038186803b158015611ded57600080fd5b505afa158015611e01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e259190613b39565b6001600160a01b0316336001600160a01b03161480611e5c5750611e47612a6c565b6001600160a01b0316336001600160a01b0316145b611e785760405162461bcd60e51b81526004016106b190613fc2565b7ff769f6bf659bbbdabf212d830720ce893eedc57f25ebb8e44edf5b300618a35b81604051611ea79190613dd6565b60405180910390a16001805460ff1916911515919091179055565b6005546001600160a01b031681565b60015461010090046001600160a01b031681565b600260009054906101000a90046001600160a01b03166001600160a01b03166388a8d6026040518163ffffffff1660e01b815260040160206040518083038186803b158015611f3357600080fd5b505afa158015611f47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f6b9190613b39565b6001600160a01b0316336001600160a01b03161480611fa25750611f8d612a6c565b6001600160a01b0316336001600160a01b0316145b611fbe5760405162461bcd60e51b81526004016106b190613fc2565b60109390935560119190915560125560158054911515600160a81b0260ff60a81b19909216919091179055565b6006546040516370a0823160e01b81526000916001600160a01b0316906370a0823190611a48903090600401613d3c565b600b546040516246613160e11b815260009161010090046001600160a01b031690628cc26290611a48903090600401613d3c565b6003546001600160a01b0316331480612081575061206c612a6c565b6001600160a01b0316336001600160a01b0316145b61209d5760405162461bcd60e51b81526004016106b190613fc2565b6001600160a01b0381166120b057600080fd5b600380546001600160a01b0319166001600160a01b0383161790556040517f352ececae6d7d1e6d26bcf2c549dfd55be1637e9b22dc0cf3b71ddb36097a6b490610da1908390613d3c565b6002546001600160a01b0316331461211257600080fd5b6002546040805163fbfa77cf60e01b815290516001600160a01b039283169284169163fbfa77cf916004808301926020929190829003018186803b15801561215957600080fd5b505afa15801561216d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121919190613b39565b6001600160a01b0316146121a457600080fd5b6121ad81613429565b6006546040516370a0823160e01b81526112359183916001600160a01b03909116906370a08231906121e3903090600401613d3c565b60206040518083038186803b1580156121fb57600080fd5b505afa15801561220f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122339190613c90565b6006546001600160a01b03169190612aee565b601554600160a81b900460ff1681565b6003546001600160a01b031633146122805760405162461bcd60e51b81526004016106b190613e68565b6001600160a01b03811661229357600080fd5b6002546004805460405163095ea7b360e01b81526001600160a01b039384169363095ea7b3936122ca939091169160009101613d85565b602060405180830381600087803b1580156122e457600080fd5b505af11580156122f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061231c9190613b71565b50600480546001600160a01b0319166001600160a01b038381169190911780835560025460405163095ea7b360e01b81529083169363095ea7b3936123679316916000199101613d85565b602060405180830381600087803b15801561238157600080fd5b505af1158015612395573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123b99190613b71565b507fafbb66abf8f3b719799940473a4052a3717cdd8e40fb6c8a3faadab316b1a06981604051610da19190613d3c565b60006123f3610f9b565b6123ff57506000611aa1565b601554600160a81b900460ff16156124265761241961268b565b1561242657506000611aa1565b60006124306108a6565b9050601154811115612446576001915050611aa1565b61244e61361c565b61245c576000915050611aa1565b60135460ff1615612471576001915050611aa1565b601054811115612485576001915050611aa1565b61248d613abc565b6002546040516339ebf82360e01b81526001600160a01b03909116906339ebf823906124bd903090600401613d3c565b6101206040518083038186803b1580156124d657600080fd5b505afa1580156124ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061250e9190613bfa565b905060085461252a8260a0015142612b5890919063ffffffff16565b111561253b57600192505050611aa1565b601254600260009054906101000a90046001600160a01b03166001600160a01b031663112c1f9b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561258c57600080fd5b505afa1580156125a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125c49190613c90565b11156125d557600192505050611aa1565b5060009392505050565b600f546001600160a01b031681565b60006110386125fb611a12565b612603611feb565b90612bd4565b6003546001600160a01b031633148061263a5750612625612a6c565b6001600160a01b0316336001600160a01b0316145b6126565760405162461bcd60e51b81526004016106b190613fc2565b60088190556040517f5430e11864ad7aa9775b07d12657fe52df9aa2ba734355bd8ef8747be2c800c590610da19083906140ab565b600080600b60019054906101000a90046001600160a01b03166001600160a01b031663ebe2b12b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156126dc57600080fd5b505afa1580156126f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127149190613c90565b421191505090565b600c5481565b6002546001600160a01b031681565b6003546001600160a01b0316331480612762575061274d612a6c565b6001600160a01b0316336001600160a01b0316145b806128035750600260009054906101000a90046001600160a01b03166001600160a01b031663452a93206040518163ffffffff1660e01b815260040160206040518083038186803b1580156127b657600080fd5b505afa1580156127ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127ee9190613b39565b6001600160a01b0316336001600160a01b0316145b806128a45750600260009054906101000a90046001600160a01b03166001600160a01b03166388a8d6026040518163ffffffff1660e01b815260040160206040518083038186803b15801561285757600080fd5b505afa15801561286b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061288f9190613b39565b6001600160a01b0316336001600160a01b0316145b6128c05760405162461bcd60e51b81526004016106b190613fc2565b600b805460ff191660011790556002546040805163507257cd60e11b815290516001600160a01b039092169163a0e4af9a9160048082019260009290919082900301818387803b15801561291357600080fd5b505af1158015612927573d6000803e3d6000fd5b50506040517f97e963041e952738788b9d4871d854d282065b8f90a464928d6528f2e9a4fd0b925060009150a1565b8015806129de5750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e9061298c9030908690600401613d50565b60206040518083038186803b1580156129a457600080fd5b505afa1580156129b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129dc9190613c90565b155b6129fa5760405162461bcd60e51b81526004016106b190614055565b612a508363095ea7b360e01b8484604051602401612a19929190613d85565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526136a3565b505050565b6060612a648484600085613732565b949350505050565b60025460408051635aa6e67560e01b815290516000926001600160a01b031691635aa6e675916004808301926020929190829003018186803b158015612ab157600080fd5b505afa158015612ac5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110389190613b39565b606090565b612a508363a9059cbb60e01b8484604051602401612a19929190613d85565b6000612b4f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506137f6565b90505b92915050565b6000612b4f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061382d565b600082612ba957506000612b52565b82820282848281612bb657fe5b0414612b4f5760405162461bcd60e51b81526004016106b190613f09565b600082820183811015612b4f5760405162461bcd60e51b81526004016106b190613eac565b6000806000612c06611feb565b905080841115612cf2576000612c1a611a12565b90508015612cc757600b5461010090046001600160a01b031663c32e7202612c4b83612c468987612b58565b613859565b6015546040516001600160e01b031960e085901b168152612c73929160ff16906004016140b4565b602060405180830381600087803b158015612c8d57600080fd5b505af1158015612ca1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cc59190613b71565b505b6000612cd1611feb565b9050612cdd8682613859565b9450612ce98686612b58565b93505050612cff565b8360009250925050612d01565b505b915091565b600b5460ff1615612d1657611235565b6000612d20611feb565b9050801561081457600c546040516321d0683360e11b815273f403c135812408bfbe8713b5a23a04b3d48aae31916343a0d06691612d66919085906001906004016140c4565b602060405180830381600087803b158015612d8057600080fd5b505af1158015612d94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a509190613b71565b600080612dc3611a12565b90508015612e5a57600b54601554604051636197390160e11b81526101009092046001600160a01b03169163c32e720291612e0691859160ff16906004016140b4565b602060405180830381600087803b158015612e2057600080fd5b505af1158015612e34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e589190613b71565b505b612e62611feb565b91505090565b600b54604051637050ccd960e01b81526000918291829161010090046001600160a01b031690637050ccd990612ea5903090600190600401613d6a565b602060405180830381600087803b158015612ebf57600080fd5b505af1158015612ed3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ef79190613b71565b506040516370a0823160e01b815260009073d533a949740bb3306d119cc777fa900ba034cd52906370a0823190612f32903090600401613d3c565b60206040518083038186803b158015612f4a57600080fd5b505afa158015612f5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f829190613c90565b6040516370a0823160e01b8152909150600090734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906370a0823190612fbf903090600401613d3c565b60206040518083038186803b158015612fd757600080fd5b505afa158015612feb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061300f9190613c90565b9050600061302e612710610995600d5486612b9a90919063ffffffff16565b905080156130695761306973d533a949740bb3306d119cc777fa900ba034cd5273f147b8125d2ef93fb6965db97d6746952a13393483612aee565b6000613086612710610995600e5486612b9a90919063ffffffff16565b9050801561314457600f546130ba90734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906001600160a01b031683612aee565b6040516370a0823160e01b8152734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906370a08231906130f1903090600401613d3c565b60206040518083038186803b15801561310957600080fd5b505afa15801561311d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131419190613c90565b92505b8215613153576131538361386f565b6040516370a0823160e01b815273d533a949740bb3306d119cc777fa900ba034cd52906370a082319061318a903090600401613d3c565b60206040518083038186803b1580156131a257600080fd5b505afa1580156131b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131da9190613c90565b9350831561325c576015546040805180820182528681526000602082018190529151630b4c7e4d60e01b81526101009093046001600160a01b031692630b4c7e4d926132299291600401613d9e565b600060405180830381600087803b15801561324357600080fd5b505af1158015613257573d6000803e3d6000fd5b505050505b871561332b57600061326c611a12565b9050801561331057600b5461010090046001600160a01b031663c32e7202613294838c613859565b6015546040516001600160e01b031960e085901b1681526132bc929160ff16906004016140b4565b602060405180830381600087803b1580156132d657600080fd5b505af11580156132ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061330e9190613b71565b505b600061331a611feb565b90506133268a82613859565b965050505b60006133356125ee565b6002546040516339ebf82360e01b81529192506000916001600160a01b03909116906339ebf8239061336b903090600401613d3c565b6101206040518083038186803b15801561338457600080fd5b505afa158015613398573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133bc9190613bfa565b60c00151905080821115613403576133d48282612b58565b985060006133e0611feb565b9050806133ed8b8a612bd4565b11156133fd576133fb612db8565b505b50613410565b61340d8183612b58565b97505b50506013805460ff191690555094969395509193505050565b6000613433611a12565b905080156134ca57600b54601554604051636197390160e11b81526101009092046001600160a01b03169163c32e72029161347691859160ff16906004016140b4565b602060405180830381600087803b15801561349057600080fd5b505af11580156134a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134c89190613b71565b505b6040516370a0823160e01b815261357390839073d533a949740bb3306d119cc777fa900ba034cd52906370a0823190613507903090600401613d3c565b60206040518083038186803b15801561351f57600080fd5b505afa158015613533573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135579190613c90565b73d533a949740bb3306d119cc777fa900ba034cd529190612aee565b6040516370a0823160e01b8152610814908390734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906370a08231906135b0903090600401613d3c565b60206040518083038186803b1580156135c857600080fd5b505afa1580156135dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136009190613c90565b734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b9190612aee565b600073b5e1cacb567d98faadb60a1fd4820720141f064f6001600160a01b03166334a9e75c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561366b57600080fd5b505afa15801561367f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110389190613b71565b60606136f8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612a559092919063ffffffff16565b805190915015612a5057808060200190518101906137169190613b71565b612a505760405162461bcd60e51b81526004016106b190613fe7565b606061373d85613a05565b6137595760405162461bcd60e51b81526004016106b190613f8b565b60006060866001600160a01b031685876040516137769190613d20565b60006040518083038185875af1925050503d80600081146137b3576040519150601f19603f3d011682016040523d82523d6000602084013e6137b8565b606091505b509150915081156137cc579150612a649050565b8051156137dc5780518082602001fd5b8360405162461bcd60e51b81526004016106b19190613e35565b600081836138175760405162461bcd60e51b81526004016106b19190613e35565b50600083858161382357fe5b0495945050505050565b600081848411156138515760405162461bcd60e51b81526004016106b19190613e35565b505050900390565b60008183106138685781612b4f565b5090919050565b67016345785d8a00008111156138f35760405163394747c560e01b815273b576491f1e6e5e62f1d8f26062ee822b40b0e0d49063394747c5906138c090600190600090869082908190600401613de1565b600060405180830381600087803b1580156138da57600080fd5b505af11580156138ee573d6000803e3d6000fd5b505050505b6040516370a0823160e01b815260009073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2906370a082319061392d903090600401613d3c565b60206040518083038186803b15801561394557600080fd5b505afa158015613959573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397d9190613c90565b905066038d7ea4c680008111156108145760405163394747c560e01b8152738301ae4fc9c624d1d396cbdaa1ed877821d7c5119063394747c5906139cf90600090600190869083908190600401613de1565b600060405180830381600087803b1580156139e957600080fd5b505af11580156139fd573d6000803e3d6000fd5b505050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590612a64575050151592915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10613a7f5782800160ff19823516178555613aac565b82800160010185558215613aac579182015b82811115613aac578235825591602001919060010190613a91565b50613ab8929150613b08565b5090565b6040518061012001604052806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b5b80821115613ab85760008155600101613b09565b600060208284031215613b2e578081fd5b8135612b4f81614187565b600060208284031215613b4a578081fd5b8151612b4f81614187565b600060208284031215613b66578081fd5b8135612b4f8161419c565b600060208284031215613b82578081fd5b8151612b4f8161419c565b60008060208385031215613b9f578081fd5b823567ffffffffffffffff80821115613bb6578283fd5b818501915085601f830112613bc9578283fd5b813581811115613bd7578384fd5b866020828501011115613be8578384fd5b60209290920196919550909350505050565b6000610120808385031215613c0d578182fd5b613c1681614130565b9050825181526020830151602082015260408301516040820152606083015160608201526080830151608082015260a083015160a082015260c083015160c082015260e083015160e08201526101008084015181830152508091505092915050565b600060208284031215613c89578081fd5b5035919050565b600060208284031215613ca1578081fd5b5051919050565b600080600060608486031215613cbc578081fd5b83359250602084013591506040840135613cd581614187565b809150509250925092565b60008060008060808587031215613cf5578081fd5b8435935060208501359250604085013591506060850135613d158161419c565b939692955090935050565b60008251613d32818460208701614157565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039290921682521515602082015260400190565b6001600160a01b03929092168252602082015260400190565b60608101818460005b6002811015613dc6578151835260209283019290910190600101613da7565b5050508260408301529392505050565b901515815260200190565b9485526020850193909352604084019190915260608301521515608082015260a00190565b60006020825282602083015282846040840137818301604090810191909152601f909201601f19160101919050565b6000602082528251806020840152613e54816040850160208701614157565b601f01601f19169190910160400192915050565b6020808252600b908201526a085cdd1c985d1959da5cdd60aa1b604082015260600190565b602080825260059082015264085dd85b9d60da1b604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252600c908201526b216865616c7468636865636b60a01b604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b602080825260069082015265085d985d5b1d60d21b604082015260600190565b6020808252600790820152662173686172657360c81b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252600b908201526a08585d5d1a1bdc9a5e995960aa1b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252600a9082015269085c1c9bdd1958dd195960b21b604082015260600190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606082015260800190565b90815260200190565b9182521515602082015260400190565b92835260208301919091521515604082015260600190565b9283526020830191909152604082015260600190565b93845260208401929092526040830152606082015260800190565b948552602085019390935260408401919091526060830152608082015260a00190565b60405181810167ffffffffffffffff8111828210171561414f57600080fd5b604052919050565b60005b8381101561417257818101518382015260200161415a565b83811115614181576000848401525b50505050565b6001600160a01b038116811461123557600080fd5b801515811461123557600080fdfea2646970667358221220b13efbff7733998e78e1333c9ebc609698e92bea8983f3f02383e980708b527164736f6c634300060c0033

Deployed Bytecode Sourcemap

69535:12517:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54452:444;;;;;;:::i;:::-;;:::i;:::-;;25474:25;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;78272:1726;;;:::i;:::-;;;;;;;:::i;65112:98::-;;;:::i;69342:186::-;;;;;;:::i;:::-;;:::i;36012:175::-;;;;;;:::i;:::-;;:::i;68713:317::-;;;;;;:::i;:::-;;:::i;31488:162::-;;;;;;:::i;:::-;;:::i;28826:28::-;;;:::i;27501:18::-;;;:::i;:::-;;;;;;;:::i;27410:25::-;;;:::i;63276:37::-;;;:::i;39414:148::-;;;:::i;:::-;;;;;;;:::i;25873:91::-;;;:::i;28462:29::-;;;:::i;50856:515::-;;;;;;:::i;:::-;;:::i;67902:230::-;;;:::i;64799:24::-;;;:::i;34061:154::-;;;;;;:::i;:::-;;:::i;64388:31::-;;;:::i;44511:170::-;;;:::i;48990:1622::-;;;:::i;63530:22::-;;;:::i;28905:25::-;;;:::i;65274:121::-;;;:::i;64290:31::-;;;:::i;43750:432::-;;;;;;:::i;:::-;;:::i;25530:25::-;;;:::i;69722:21::-;;;:::i;32818:174::-;;;;;;:::i;:::-;;:::i;36490:171::-;;;;;;:::i;:::-;;:::i;80129:121::-;;;;;;:::i;63437:22::-;;;:::i;28648:27::-;;;:::i;27280:94::-;;;:::i;35286:169::-;;;;;;:::i;:::-;;:::i;28311:29::-;;;:::i;27442:22::-;;;:::i;69146:119::-;;;;;;:::i;:::-;;:::i;64486:30::-;;;:::i;31658:171::-;;;;;;:::i;:::-;;:::i;27471:21::-;;;:::i;25562:26::-;;;:::i;81660:389::-;;;;;;:::i;:::-;;:::i;65460:110::-;;;:::i;65647:121::-;;;:::i;32062:202::-;;;;;;:::i;:::-;;:::i;52143:281::-;;;;;;:::i;:::-;;:::i;69807:24::-;;;:::i;33281:263::-;;;;;;:::i;:::-;;:::i;76308:1858::-;;;;;;:::i;:::-;;:::i;63629:33::-;;;:::i;65776:133::-;;;:::i;34732:154::-;;;;;;:::i;:::-;;:::i;80627:241::-;;;:::i;63357:18::-;;;:::i;27382:21::-;;;:::i;52853:173::-;;;:::i;54452:444::-;29531:12;:10;:12::i;:::-;-1:-1:-1;;;;;29517:26:0;:10;-1:-1:-1;;;;;29517:26:0;;29509:50;;;;-1:-1:-1;;;29509:50:0;;;;;;;:::i;:::-;;;;;;;;;54544:4:::1;::::0;-1:-1:-1;;;;;54526:23:0;;::::1;54544:4:::0;::::1;54526:23;;54518:41;;;;-1:-1:-1::0;;;54518:41:0::1;;;;;;;:::i;:::-;54596:5;::::0;-1:-1:-1;;;;;54578:24:0;;::::1;54596:5:::0;::::1;54578:24;;54570:44;;;;-1:-1:-1::0;;;54570:44:0::1;;;;;;;:::i;:::-;54627:33;54663:17;:15;:17::i;:::-;54627:53;;54696:9;54691:102;54711:16;:23;54707:1;:27;54691:102;;;54759:16;54776:1;54759:19;;;;;;;;;;;;;;-1:-1:-1::0;;;;;54749:29:0::1;:6;-1:-1:-1::0;;;;;54749:29:0::1;;;54741:52;;;;-1:-1:-1::0;;;54741:52:0::1;;;;;;;:::i;:::-;54736:3;;54691:102;;;;54806:82;54834:12;:10;:12::i;:::-;54848:39;::::0;-1:-1:-1;;;54848:39:0;;-1:-1:-1;;;;;54848:24:0;::::1;::::0;::::1;::::0;:39:::1;::::0;54881:4:::1;::::0;54848:39:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;54806:27:0;::::1;::::0;:82;:27:::1;:82::i;:::-;29570:1;54452:444:::0;:::o;25474:25::-;;;;;;;;;;;;;;;-1:-1:-1;;25474:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;78272:1726::-;78326:7;78439:19;78461:5;78439:27;;78477:17;78497:22;78477:42;;78540:25;78568:14;78540:42;;78604:14;64119:42;-1:-1:-1;;;;;78621:23:0;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;78604:42;-1:-1:-1;78657:19:0;;78705:29;78604:42;78716:17;78705:10;:29::i;:::-;78689:45;;78745:21;78769:18;:16;:18::i;:::-;78745:42;;78848:11;78840:5;:19;78836:444;;;78936:17;78956:22;:11;78972:5;78956:15;:22::i;:::-;78936:42;-1:-1:-1;79029:45:0;79062:11;79029:28;:13;78936:42;79029:17;:28::i;:::-;:32;;:45::i;:::-;79015:59;-1:-1:-1;79123:18:0;79144:21;:9;79158:6;79144:13;:21::i;:::-;79123:42;;79198:10;79184:11;:24;79180:89;;;79243:10;79229:24;;79180:89;78836:444;;;79385:17;79413:42;79385:71;;79467:16;79486:33;79515:3;79486:9;-1:-1:-1;;;;;79486:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:33::-;79467:52;;79551:16;79570:45;79610:4;79570:35;79596:8;70043:42;-1:-1:-1;;;;;79570:19:0;;:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:25;;:35::i;:45::-;79551:64;;79657:16;79676:45;79716:4;79676:35;79702:8;70202:42;-1:-1:-1;;;;;79676:19:0;;:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:45;79657:64;-1:-1:-1;79765:16:0;79784:37;79816:4;79784:27;:8;79797:13;79784:12;:27::i;:37::-;79765:56;-1:-1:-1;79863:16:0;79882:35;79912:4;79882:25;:8;79895:11;79882:12;:25::i;:35::-;79863:54;-1:-1:-1;79968:22:0;:8;79863:54;79968:12;:22::i;:::-;79961:29;;;;;;;;;;;;;;;78272:1726;:::o;65112:98::-;65193:9;65186:16;;;;;;;;-1:-1:-1;;65186:16:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65160:13;;65186:16;;65193:9;;65186:16;;65193:9;65186:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65112:98;:::o;69342:186::-;29988:5;;;;;;;;;-1:-1:-1;;;;;29988:5:0;-1:-1:-1;;;;;29988:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;29974:32:0;:10;-1:-1:-1;;;;;29974:32:0;;:62;;;;30024:12;:10;:12::i;:::-;-1:-1:-1;;;;;30010:26:0;:10;-1:-1:-1;;;;;30010:26:0;;29974:62;29966:86;;;;-1:-1:-1;;;29966:86:0;;;;;;;:::i;:::-;69470:23:::1;:50:::0;;-1:-1:-1;;69470:50:0::1;::::0;::::1;;::::0;;;::::1;::::0;;69342:186::o;36012:175::-;29016:10;;-1:-1:-1;;;;;29016:10:0;29002;:24;;:54;;;29044:12;:10;:12::i;:::-;-1:-1:-1;;;;;29030:26:0;:10;-1:-1:-1;;;;;29030:26:0;;29002:54;28994:78;;;;-1:-1:-1;;;28994:78:0;;;;;;;:::i;:::-;36097:13:::1;:30:::0;;;36143:36:::1;::::0;::::1;::::0;::::1;::::0;36113:14;;36143:36:::1;:::i;:::-;;;;;;;;36012:175:::0;:::o;68713:317::-;29531:12;:10;:12::i;:::-;-1:-1:-1;;;;;29517:26:0;:10;-1:-1:-1;;;;;29517:26:0;;29509:50;;;;-1:-1:-1;;;29509:50:0;;;;;;;:::i;:::-;68884:6:::1;68872:8;:18;;:40;;;;;68906:6;68894:8;:18;;68872:40;68864:49;;;::::0;::::1;;68924:7;:18:::0;;;;68953:7:::1;:18:::0;68982::::1;:40:::0;;-1:-1:-1;;;;;;68982:40:0::1;-1:-1:-1::0;;;;;68982:40:0;;::::1;::::0;;;::::1;::::0;;68713:317::o;31488:162::-;29988:5;;;;;;;;;-1:-1:-1;;;;;29988:5:0;-1:-1:-1;;;;;29988:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;29974:32:0;:10;-1:-1:-1;;;;;29974:32:0;;:62;;;;30024:12;:10;:12::i;:::-;-1:-1:-1;;;;;30010:26:0;:10;-1:-1:-1;;;;;30010:26:0;;29974:62;29966:86;;;;-1:-1:-1;;;29966:86:0;;;;;;;:::i;:::-;31577:28:::1;31592:12;31577:28;;;;;;:::i;:::-;;;;;;;;31616:11;:26:::0;;-1:-1:-1;;;;;31616:26:0;;::::1;;;-1:-1:-1::0;;;;;;31616:26:0;;::::1;::::0;;;::::1;::::0;;31488:162::o;28826:28::-;;;;:::o;27501:18::-;;;-1:-1:-1;;;;;27501:18:0;;:::o;27410:25::-;;;-1:-1:-1;;;;;27410:25:0;;:::o;63276:37::-;;;;;;-1:-1:-1;;;;;63276:37:0;;:::o;39414:148::-;39479:5;;:31;;-1:-1:-1;;;39479:31:0;;39455:4;;;;-1:-1:-1;;;;;39479:5:0;;;;:16;;:31;;39504:4;;39479:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:41;;;:45;:75;;;;39553:1;39528:22;:20;:22::i;:::-;:26;39479:75;39472:82;;39414:148;:::o;25873:91::-;25942:14;;;;;;;;;;;;-1:-1:-1;;;25942:14:0;;;;25873:91;:::o;28462:29::-;;;;:::o;50856:515::-;50971:5;;50915:13;;-1:-1:-1;;;;;50971:5:0;50949:10;:28;50941:47;;;;-1:-1:-1;;;50941:47:0;;;;;;;:::i;:::-;51074:19;51127:32;51145:13;51127:17;:32::i;:::-;51251:4;;51104:55;;-1:-1:-1;51104:55:0;;-1:-1:-1;51251:42:0;;-1:-1:-1;;;;;51251:4:0;51269:10;51104:55;51251:17;:42::i;:::-;50856:515;;;;:::o;67902:230::-;29988:5;;;;;;;;;-1:-1:-1;;;;;29988:5:0;-1:-1:-1;;;;;29988:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;29974:32:0;:10;-1:-1:-1;;;;;29974:32:0;;:62;;;;30024:12;:10;:12::i;:::-;-1:-1:-1;;;;;30010:26:0;:10;-1:-1:-1;;;;;30010:26:0;;29974:62;29966:86;;;;-1:-1:-1;;;29966:86:0;;;;;;;:::i;:::-;67981:18:::1;68002:15;:13;:15::i;:::-;67981:36:::0;-1:-1:-1;68032:14:0;;68028:97:::1;;68063:15;::::0;68100:12:::1;::::0;68063:50:::1;::::0;-1:-1:-1;;;68063:50:0;;:15:::1;::::0;;::::1;-1:-1:-1::0;;;;;68063:15:0::1;::::0;:24:::1;::::0;:50:::1;::::0;68088:10;;68100:12:::1;;::::0;68063:50:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;68028:97::-;30063:1;67902:230::o:0;64799:24::-;;;;;;:::o;34061:154::-;29016:10;;-1:-1:-1;;;;;29016:10:0;29002;:24;;:54;;;29044:12;:10;:12::i;:::-;-1:-1:-1;;;;;29030:26:0;:10;-1:-1:-1;;;;;29030:26:0;;29002:54;28994:78;;;;-1:-1:-1;;;28994:78:0;;;;;;;:::i;:::-;34139:14:::1;:23:::0;;;34178:29:::1;::::0;::::1;::::0;::::1;::::0;34156:6;;34178:29:::1;:::i;64388:31::-:0;;;;:::o;44511:170::-;29657:6;;-1:-1:-1;;;;;29657:6:0;29643:10;:20;;:65;;-1:-1:-1;29698:10:0;;-1:-1:-1;;;;;29698:10:0;29684;:24;29643:65;:112;;;;29743:12;:10;:12::i;:::-;-1:-1:-1;;;;;29729:26:0;:10;-1:-1:-1;;;;;29729:26:0;;29643:112;:163;;;;29790:5;;;;;;;;;-1:-1:-1;;;;;29790:5:0;-1:-1:-1;;;;;29790:14:0;;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;29776:30:0;:10;-1:-1:-1;;;;;29776:30:0;;29643:163;:216;;;;29841:5;;;;;;;;;-1:-1:-1;;;;;29841:5:0;-1:-1:-1;;;;;29841:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;29827:32:0;:10;-1:-1:-1;;;;;29827:32:0;;29643:216;29621:277;;;;-1:-1:-1;;;29621:277:0;;;;;;;:::i;:::-;44649:5:::1;::::0;:23:::1;::::0;;-1:-1:-1;;;44649:23:0;;;;44634:39:::1;::::0;-1:-1:-1;;;;;44649:5:0::1;::::0;:21:::1;::::0;:23:::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;:5;:23;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;44634:14;:39::i;:::-;44511:170::o:0;48990:1622::-;29657:6;;-1:-1:-1;;;;;29657:6:0;29643:10;:20;;:65;;-1:-1:-1;29698:10:0;;-1:-1:-1;;;;;29698:10:0;29684;:24;29643:65;:112;;;;29743:12;:10;:12::i;:::-;-1:-1:-1;;;;;29729:26:0;:10;-1:-1:-1;;;;;29729:26:0;;29643:112;:163;;;;29790:5;;;;;;;;;-1:-1:-1;;;;;29790:5:0;-1:-1:-1;;;;;29790:14:0;;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;29776:30:0;:10;-1:-1:-1;;;;;29776:30:0;;29643:163;:216;;;;29841:5;;;;;;;;;-1:-1:-1;;;;;29841:5:0;-1:-1:-1;;;;;29841:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;29827:32:0;:10;-1:-1:-1;;;;;29827:32:0;;29643:216;29621:277;;;;-1:-1:-1;;;29621:277:0;;;;;;;:::i;:::-;49041:14:::1;49070:12:::0;49097:23:::1;49123:5;;;;;;;;;-1:-1:-1::0;;;;;49123:5:0::1;-1:-1:-1::0;;;;;49123:21:0::1;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;49195:13;::::0;49097:49;;-1:-1:-1;49157:19:0::1;::::0;49195:13:::1;;49191:580;;;49277:19;49299:23;:21;:23::i;:::-;49277:45;;49355:15;49341:11;:29;49337:226;;;49398:32;:15:::0;49418:11;49398:19:::1;:32::i;:::-;49391:39;;49337:226;;;49470:15;49456:11;:29;49452:111;;;49515:32;:11:::0;49531:15;49515::::1;:32::i;:::-;49506:41;;49452:111;49591:25;:15:::0;49611:4;49591:19:::1;:25::i;:::-;49577:39;;49191:580;;;;49729:30;49743:15;49729:13;:30::i;:::-;49699:60:::0;;-1:-1:-1;49699:60:0;-1:-1:-1;49699:60:0;-1:-1:-1;49191:580:0::1;49987:5;::::0;:31:::1;::::0;-1:-1:-1;;;49987:31:0;;49967:17:::1;::::0;-1:-1:-1;;;;;49987:5:0::1;::::0;:16:::1;::::0;:31:::1;::::0;50012:4:::1;::::0;49987:31:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:41;;::::0;50057:5:::1;::::0;:39:::1;::::0;-1:-1:-1;;;50057:39:0;;49987:41;;-1:-1:-1;;;;;;50057:5:0::1;::::0;:12:::1;::::0;:39:::1;::::0;50070:6;;50078:4;;50084:11;;50057:39:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;50039:57;;50172:31;50187:15;50172:14;:31::i;:::-;50258:13;::::0;::::1;;:42:::0;::::1;;;-1:-1:-1::0;50275:11:0::1;::::0;::::1;::::0;::::1;-1:-1:-1::0;;;;;50275:11:0::1;:25:::0;::::1;50258:42;50254:280;;;50337:11;::::0;50325:85:::1;::::0;-1:-1:-1;;;50325:85:0;;50337:11:::1;::::0;;::::1;-1:-1:-1::0;;;;;50337:11:0::1;::::0;50325:30:::1;::::0;:85:::1;::::0;50356:6;;50364:4;;50370:11;;50383:15;;50400:9;;50325:85:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;50317:110;;;;-1:-1:-1::0;;;50317:110:0::1;;;;;;;:::i;:::-;50254:280;;;50465:22;50482:4;50465:22;;;;;;:::i;:::-;;;;;;;;50518:4;50502:20:::0;;-1:-1:-1;;50502:20:0::1;::::0;::::1;::::0;;50254:280:::1;50551:53;50561:6;50569:4;50575:11;50588:15;50551:53;;;;;;;;;:::i;:::-;;;;;;;;29909:1;;;;;48990:1622::o:0;63530:22::-;;;;:::o;28905:25::-;;;;;;:::o;65274:121::-;65347:15;;:40;;-1:-1:-1;;;65347:40:0;;65320:7;;65347:15;;;-1:-1:-1;;;;;65347:15:0;;:25;;:40;;65381:4;;65347:40;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;64290:31::-;;;;:::o;43750:432::-;43823:4;43750:432;;;;:::o;25530:25::-;;;;;;:::o;69722:21::-;;;;;;-1:-1:-1;;;;;69722:21:0;;:::o;32818:174::-;29016:10;;-1:-1:-1;;;;;29016:10:0;29002;:24;;:54;;;29044:12;:10;:12::i;:::-;-1:-1:-1;;;;;29030:26:0;:10;-1:-1:-1;;;;;29030:26:0;;29002:54;28994:78;;;;-1:-1:-1;;;28994:78:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;32897:21:0;::::1;32889:30;;;::::0;::::1;;32930:6;:16:::0;;-1:-1:-1;;;;;;32930:16:0::1;-1:-1:-1::0;;;;;32930:16:0;::::1;;::::0;;32962:22:::1;::::0;::::1;::::0;::::1;::::0;32930:16;;32962:22:::1;:::i;36490:171::-:0;29016:10;;-1:-1:-1;;;;;29016:10:0;29002;:24;;:54;;;29044:12;:10;:12::i;:::-;-1:-1:-1;;;;;29030:26:0;:10;-1:-1:-1;;;;;29030:26:0;;29002:54;28994:78;;;;-1:-1:-1;;;28994:78:0;;;;;;;:::i;:::-;36579:26:::1;:11;36593:12:::0;;36579:26:::1;:::i;:::-;;36621:32;36640:12;;36621:32;;;;;;;:::i;:::-;;;;;;;;36490:171:::0;;:::o;63437:22::-;;;;:::o;28648:27::-;;;;:::o;27280:94::-;27338:7;27280:94;:::o;35286:169::-;29016:10;;-1:-1:-1;;;;;29016:10:0;29002;:24;;:54;;;29044:12;:10;:12::i;:::-;-1:-1:-1;;;;;29030:26:0;:10;-1:-1:-1;;;;;29030:26:0;;29002:54;28994:78;;;;-1:-1:-1;;;28994:78:0;;;;;;;:::i;:::-;35369:12:::1;:28:::0;;;35413:34:::1;::::0;::::1;::::0;::::1;::::0;35384:13;;35413:34:::1;:::i;28311:29::-:0;;;;:::o;27442:22::-;;;-1:-1:-1;;;;;27442:22:0;;:::o;69146:119::-;29988:5;;;;;;;;;-1:-1:-1;;;;;29988:5:0;-1:-1:-1;;;;;29988:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;29974:32:0;:10;-1:-1:-1;;;;;29974:32:0;;:62;;;;30024:12;:10;:12::i;:::-;-1:-1:-1;;;;;30010:26:0;:10;-1:-1:-1;;;;;30010:26:0;;29974:62;29966:86;;;;-1:-1:-1;;;29966:86:0;;;;;;;:::i;:::-;69229:12:::1;:28:::0;;-1:-1:-1;;69229:28:0::1;::::0;::::1;;::::0;;;::::1;::::0;;69146:119::o;64486:30::-;;;;:::o;31658:171::-;29988:5;;;;;;;;;-1:-1:-1;;;;;29988:5:0;-1:-1:-1;;;;;29988:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;29974:32:0;:10;-1:-1:-1;;;;;29974:32:0;;:62;;;;30024:12;:10;:12::i;:::-;-1:-1:-1;;;;;30010:26:0;:10;-1:-1:-1;;;;;30010:26:0;;29974:62;29966:86;;;;-1:-1:-1;;;29966:86:0;;;;;;;:::i;:::-;31748:32:::1;31765:14;31748:32;;;;;;:::i;:::-;;;;;;;;31791:13;:30:::0;;-1:-1:-1;;31791:30:0::1;::::0;::::1;;::::0;;;::::1;::::0;;31658:171::o;27471:21::-;;;-1:-1:-1;;;;;27471:21:0;;:::o;25562:26::-;;;;;;-1:-1:-1;;;;;25562:26:0;;:::o;81660:389::-;29988:5;;;;;;;;;-1:-1:-1;;;;;29988:5:0;-1:-1:-1;;;;;29988:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;29974:32:0;:10;-1:-1:-1;;;;;29974:32:0;;:62;;;;30024:12;:10;:12::i;:::-;-1:-1:-1;;;;;30010:26:0;:10;-1:-1:-1;;;;;30010:26:0;;29974:62;29966:86;;;;-1:-1:-1;;;29966:86:0;;;;;;;:::i;:::-;81874:16:::1;:36:::0;;;;81921:16:::1;:36:::0;;;;81968:15:::1;:34:::0;82013:12:::1;:28:::0;;;::::1;;-1:-1:-1::0;;;82013:28:0::1;-1:-1:-1::0;;;;82013:28:0;;::::1;::::0;;;::::1;::::0;;81660:389::o;65460:110::-;65533:4;;:29;;-1:-1:-1;;;65533:29:0;;65506:7;;-1:-1:-1;;;;;65533:4:0;;:14;;:29;;65556:4;;65533:29;;;:::i;65647:121::-;65723:15;;:37;;-1:-1:-1;;;65723:37:0;;65696:7;;65723:15;;;-1:-1:-1;;;;;65723:15:0;;:22;;:37;;65754:4;;65723:37;;;:::i;32062:202::-;29016:10;;-1:-1:-1;;;;;29016:10:0;29002;:24;;:54;;;29044:12;:10;:12::i;:::-;-1:-1:-1;;;;;29030:26:0;:10;-1:-1:-1;;;;;29030:26:0;;29002:54;28994:78;;;;-1:-1:-1;;;28994:78:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;32149:25:0;::::1;32141:34;;;::::0;::::1;;32186:10;:24:::0;;-1:-1:-1;;;;;;32186:24:0::1;-1:-1:-1::0;;;;;32186:24:0;::::1;;::::0;;32226:30:::1;::::0;::::1;::::0;::::1;::::0;32186:24;;32226:30:::1;:::i;52143:281::-:0;52232:5;;-1:-1:-1;;;;;52232:5:0;52210:10;:28;52202:37;;;;;;52296:5;;52258:34;;;-1:-1:-1;;;52258:34:0;;;;-1:-1:-1;;;;;52296:5:0;;;;52258:32;;;;;:34;;;;;;;;;;;;;;:32;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;52258:43:0;;52250:52;;;;;;52313:30;52330:12;52313:16;:30::i;:::-;52386:4;;:29;;-1:-1:-1;;;52386:29:0;;52354:62;;52372:12;;-1:-1:-1;;;;;52386:4:0;;;;:14;;:29;;52409:4;;52386:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;52354:4;;-1:-1:-1;;;;;52354:4:0;;:62;:17;:62::i;69807:24::-;;;-1:-1:-1;;;69807:24:0;;;;;:::o;33281:263::-;29418:10;;-1:-1:-1;;;;;29418:10:0;29404;:24;29396:48;;;;-1:-1:-1;;;29396:48:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;33362:22:0;::::1;33354:31;;;::::0;::::1;;33396:5;::::0;33410:7:::1;::::0;;33396:25:::1;::::0;-1:-1:-1;;;33396:25:0;;-1:-1:-1;;;;;33396:5:0;;::::1;::::0;:13:::1;::::0;:25:::1;::::0;33410:7;;::::1;::::0;33396:5:::1;::::0;:25:::1;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;33432:7:0::1;:18:::0;;-1:-1:-1;;;;;;33432:18:0::1;-1:-1:-1::0;;;;;33432:18:0;;::::1;::::0;;;::::1;::::0;;;33461:5:::1;::::0;:35:::1;::::0;-1:-1:-1;;;33461:35:0;;:5;;::::1;::::0;:13:::1;::::0;:35:::1;::::0;33475:7:::1;::::0;-1:-1:-1;;33492:2:0;33461:35:::1;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;33512:24;33527:8;33512:24;;;;;;:::i;76308:1858::-:0;76421:4;76582:10;:8;:10::i;:::-;76577:56;;-1:-1:-1;76616:5:0;76609:12;;76577:56;76728:12;;-1:-1:-1;;;76728:12:0;;;;76724:184;;;76828:20;:18;:20::i;:::-;76824:73;;;-1:-1:-1;76876:5:0;76869:12;;76824:73;77018:23;77044;:21;:23::i;:::-;77018:49;;77100:16;;77082:15;:34;77078:78;;;77140:4;77133:11;;;;;77078:78;77268:21;:19;:21::i;:::-;77263:67;;77313:5;77306:12;;;;;77263:67;77438:23;;;;77434:67;;;77485:4;77478:11;;;;;77434:67;77636:16;;77618:15;:34;77614:78;;;77676:4;77669:11;;;;;77614:78;77704:28;;:::i;:::-;77735:5;;:31;;-1:-1:-1;;;77735:31:0;;-1:-1:-1;;;;;77735:5:0;;;;:16;;:31;;77760:4;;77735:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;77704:62;;77884:14;;77843:38;77863:6;:17;;;77843:15;:19;;:38;;;;:::i;:::-;:55;77839:99;;;77922:4;77915:11;;;;;;77839:99;78039:15;;78013:5;;;;;;;;;-1:-1:-1;;;;;78013:5:0;-1:-1:-1;;;;;78013:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:41;78009:85;;;78078:4;78071:11;;;;;;78009:85;-1:-1:-1;78153:5:0;;76308:1858;-1:-1:-1;;;76308:1858:0:o;63629:33::-;;;-1:-1:-1;;;;;63629:33:0;;:::o;65776:133::-;65838:7;65865:36;65885:15;:13;:15::i;:::-;65865;:13;:15::i;:::-;:19;;:36::i;34732:154::-;29016:10;;-1:-1:-1;;;;;29016:10:0;29002;:24;;:54;;;29044:12;:10;:12::i;:::-;-1:-1:-1;;;;;29030:26:0;:10;-1:-1:-1;;;;;29030:26:0;;29002:54;28994:78;;;;-1:-1:-1;;;28994:78:0;;;;;;;:::i;:::-;34810:14:::1;:23:::0;;;34849:29:::1;::::0;::::1;::::0;::::1;::::0;34827:6;;34849:29:::1;:::i;80627:241::-:0;80678:17;80765;80785:15;;;;;;;;;-1:-1:-1;;;;;80785:15:0;-1:-1:-1;;;;;80785:28:0;;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;80845:15;-1:-1:-1;80833:27:0;-1:-1:-1;;80627:241:0;:::o;63357:18::-;;;;:::o;27382:21::-;;;-1:-1:-1;;;;;27382:21:0;;:::o;52853:173::-;29182:10;;-1:-1:-1;;;;;29182:10:0;29168;:24;;:54;;;29210:12;:10;:12::i;:::-;-1:-1:-1;;;;;29196:26:0;:10;-1:-1:-1;;;;;29196:26:0;;29168:54;:88;;;;29240:5;;;;;;;;;-1:-1:-1;;;;;29240:5:0;-1:-1:-1;;;;;29240:14:0;;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;29226:30:0;:10;-1:-1:-1;;;;;29226:30:0;;29168:88;:124;;;;29274:5;;;;;;;;;-1:-1:-1;;;;;29274:5:0;-1:-1:-1;;;;;29274:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;29260:32:0;:10;-1:-1:-1;;;;;29260:32:0;;29168:124;29146:185;;;;-1:-1:-1;;;29146:185:0;;;;;;;:::i;:::-;52925:13:::1;:20:::0;;-1:-1:-1;;52925:20:0::1;52941:4;52925:20;::::0;;52956:5:::1;::::0;:22:::1;::::0;;-1:-1:-1;;;52956:22:0;;;;-1:-1:-1;;;;;52956:5:0;;::::1;::::0;:20:::1;::::0;:22:::1;::::0;;::::1;::::0;52925:13:::1;::::0;52956:22;;;;;;;;52925:13;52956:5;:22;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;52996:22:0::1;::::0;::::1;::::0;-1:-1:-1;52996:22:0;;-1:-1:-1;52996:22:0::1;52853:173::o:0;16383:622::-;16753:10;;;16752:62;;-1:-1:-1;16769:39:0;;-1:-1:-1;;;16769:39:0;;-1:-1:-1;;;;;16769:15:0;;;;;:39;;16793:4;;16800:7;;16769:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;16752:62;16744:152;;;;-1:-1:-1;;;16744:152:0;;;;;;;:::i;:::-;16907:90;16927:5;16957:22;;;16981:7;16990:5;16934:62;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;16934:62:0;;;;;;;;;;;;;;-1:-1:-1;;;;;16934:62:0;-1:-1:-1;;;;;;16934:62:0;;;;;;;;;;16907:19;:90::i;:::-;16383:622;;;:::o;3922:196::-;4025:12;4057:53;4080:6;4088:4;4094:1;4097:12;4057:22;:53::i;:::-;4050:60;3922:196;-1:-1:-1;;;;3922:196:0:o;36815:98::-;36887:5;;:18;;;-1:-1:-1;;;36887:18:0;;;;36860:7;;-1:-1:-1;;;;;36887:5:0;;:16;;:18;;;;;;;;;;;;;;:5;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;68307:120::-;68402:16;68307:120;:::o;15724:177::-;15807:86;15827:5;15857:23;;;15882:2;15886:5;15834:58;;;;;;;;;:::i;12980:132::-;13038:7;13065:39;13069:1;13072;13065:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;13058:46;;12980:132;;;;;:::o;11143:136::-;11201:7;11228:43;11232:1;11235;11228:43;;;;;;;;;;;;;;;;;:3;:43::i;12033:471::-;12091:7;12336:6;12332:47;;-1:-1:-1;12366:1:0;12359:8;;12332:47;12403:5;;;12407:1;12403;:5;:1;12427:5;;;;;:10;12419:56;;;;-1:-1:-1;;;12419:56:0;;;;;;;:::i;10679:181::-;10737:7;10769:5;;;10793:6;;;;10785:46;;;;-1:-1:-1;;;10785:46:0;;;;;;;:::i;66438:853::-;66542:25;66569:13;66600:16;66619:15;:13;:15::i;:::-;66600:34;;66665:8;66649:13;:24;66645:639;;;66690:18;66711:15;:13;:15::i;:::-;66690:36;-1:-1:-1;66745:14:0;;66741:214;;66780:15;;;;;-1:-1:-1;;;;;66780:15:0;:33;66836:49;66845:10;66857:27;:13;66875:8;66857:17;:27::i;:::-;66836:8;:49::i;:::-;66908:12;;66780:159;;-1:-1:-1;;;;;;66780:159:0;;;;;;;;;;66908:12;;;66780:159;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;66741:214;66969:21;66993:15;:13;:15::i;:::-;66969:39;;67043:38;67052:13;67067;67043:8;:38::i;:::-;67023:58;-1:-1:-1;67104:36:0;:13;67023:58;67104:17;:36::i;:::-;67096:44;;66645:639;;;;;67255:13;67270:1;67247:25;;;;;;;66645:639;66438:853;;;;;:::o;65971:459::-;66054:13;;;;66050:52;;;66084:7;;66050:52;66174:17;66194:15;:13;:15::i;:::-;66174:35;-1:-1:-1;66320:13:0;;66316:107;;66390:3;;66350:61;;-1:-1:-1;;;66350:61:0;;63163:42;;66350:39;;:61;;66390:3;66395:9;;66406:4;;66350:61;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;67337:319::-;67397:7;67417:18;67438:15;:13;:15::i;:::-;67417:36;-1:-1:-1;67468:14:0;;67464:152;;67545:15;;67591:12;;67545:59;;-1:-1:-1;;;67545:59:0;;:15;;;;-1:-1:-1;;;;;67545:15:0;;:33;;:59;;67579:10;;67591:12;;;67545:59;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;67464:152;67633:15;:13;:15::i;:::-;67626:22;;;67337:319;:::o;72244:2813::-;72606:15;;:46;;-1:-1:-1;;;72606:46:0;;72361:15;;;;;;72606;;;-1:-1:-1;;;;;72606:15:0;;:25;;:46;;72640:4;;72606:15;;:46;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;72686:28:0;;-1:-1:-1;;;72686:28:0;;72665:18;;64014:42;;72686:13;;:28;;72708:4;;72686:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;72749:36;;-1:-1:-1;;;72749:36:0;;72665:49;;-1:-1:-1;72725:21:0;;64119:42;;72749:21;;:36;;72779:4;;72749:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;72725:60;;72798:20;72821:44;63897:5;72821:23;72836:7;;72821:10;:14;;:23;;;;:::i;:44::-;72798:67;-1:-1:-1;72880:16:0;;72876:86;;72913:37;64014:42;63752;72937:12;72913:16;:37::i;:::-;72974:18;72995:47;63897:5;72995:26;73013:7;;72995:13;:17;;:26;;;;:::i;:47::-;72974:68;-1:-1:-1;73057:14:0;;73053:170;;73113:18;;73088:56;;64119:42;;-1:-1:-1;;;;;73113:18:0;73133:10;73088:24;:56::i;:::-;73175:36;;-1:-1:-1;;;73175:36:0;;64119:42;;73175:21;;:36;;73205:4;;73175:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;73159:52;;73053:170;73331:17;;73327:76;;73365:26;73377:13;73365:11;:26::i;:::-;73465:28;;-1:-1:-1;;;73465:28:0;;64014:42;;73465:13;;:28;;73487:4;;73465:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;73452:41;-1:-1:-1;73508:14:0;;73504:86;;73539:5;;:39;;;;;;;;;;;-1:-1:-1;73539:39:0;;;;;;;;-1:-1:-1;;;73539:39:0;;:5;;;;-1:-1:-1;;;;;73539:5:0;;:19;;:39;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73504:86;73746:20;;73742:431;;73783:18;73804:15;:13;:15::i;:::-;73783:36;-1:-1:-1;73838:14:0;;73834:203;;73873:15;;;;;-1:-1:-1;;;;;73873:15:0;:33;73929:38;73938:10;73950:16;73929:8;:38::i;:::-;73990:12;;73873:148;;-1:-1:-1;;;;;;73873:148:0;;;;;;;;;;73990:12;;;73873:148;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;73834:203;74051:21;74075:15;:13;:15::i;:::-;74051:39;;74120:41;74129:16;74147:13;74120:8;:41::i;:::-;74105:56;;73742:431;;;74309:14;74326:22;:20;:22::i;:::-;74374:5;;:31;;-1:-1:-1;;;74374:31:0;;74309:39;;-1:-1:-1;74359:12:0;;-1:-1:-1;;;;;74374:5:0;;;;:16;;:31;;74399:4;;74374:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:41;;;74359:56;;74512:4;74503:6;:13;74499:437;;;74543:16;:6;74554:4;74543:10;:16::i;:::-;74533:26;;74574:16;74593:15;:13;:15::i;:::-;74574:34;-1:-1:-1;74574:34:0;74627:25;:7;74639:12;74627:11;:25::i;:::-;:36;74623:176;;;74760:23;:21;:23::i;:::-;;74623:176;74499:437;;;;74908:16;:4;74917:6;74908:8;:16::i;:::-;74900:24;;74499:437;-1:-1:-1;;75018:23:0;:31;;-1:-1:-1;;75018:31:0;;;-1:-1:-1;72244:2813:0;;;;-1:-1:-1;72244:2813:0;;-1:-1:-1;;;72244:2813:0:o;75261:432::-;75338:18;75359:15;:13;:15::i;:::-;75338:36;-1:-1:-1;75389:14:0;;75385:106;;75420:15;;75466:12;;75420:59;;-1:-1:-1;;;75420:59:0;;:15;;;;-1:-1:-1;;;;;75420:15:0;;:33;;:59;;75454:10;;75466:12;;;75420:59;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;75385:106;75532:28;;-1:-1:-1;;;75532:28:0;;75501:60;;75518:12;;64014:42;;75532:13;;:28;;75554:4;;75532:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;64014:42;;75501:60;:16;:60::i;:::-;75638:36;;-1:-1:-1;;;75638:36:0;;75572:113;;75611:12;;64119:42;;75638:21;;:36;;75668:4;;75638:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;64119:42;;75572:113;:24;:113::i;80324:198::-;80378:4;80424:42;-1:-1:-1;;;;;80415:97:0;;:99;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;18029:761::-;18453:23;18479:69;18507:4;18479:69;;;;;;;;;;;;;;;;;18487:5;-1:-1:-1;;;;;18479:27:0;;;:69;;;;;:::i;:::-;18563:17;;18453:95;;-1:-1:-1;18563:21:0;18559:224;;18705:10;18694:30;;;;;;;;;;;;:::i;:::-;18686:85;;;;-1:-1:-1;;;18686:85:0;;;;;;;:::i;5299:979::-;5429:12;5462:18;5473:6;5462:10;:18::i;:::-;5454:60;;;;-1:-1:-1;;;5454:60:0;;;;;;;:::i;:::-;5588:12;5602:23;5629:6;-1:-1:-1;;;;;5629:11:0;5649:8;5660:4;5629:36;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5587:78;;;;5680:7;5676:595;;;5711:10;-1:-1:-1;5704:17:0;;-1:-1:-1;5704:17:0;5676:595;5825:17;;:21;5821:439;;6088:10;6082:17;6149:15;6136:10;6132:2;6128:19;6121:44;6036:148;6231:12;6224:20;;-1:-1:-1;;;6224:20:0;;;;;;;;:::i;13608:278::-;13694:7;13729:12;13722:5;13714:28;;;;-1:-1:-1;;;13714:28:0;;;;;;;;:::i;:::-;;13753:9;13769:1;13765;:5;;;;;;;13608:278;-1:-1:-1;;;;;13608:278:0:o;11582:192::-;11668:7;11704:12;11696:6;;;;11688:29;;;;-1:-1:-1;;;11688:29:0;;;;;;;;:::i;:::-;-1:-1:-1;;;11740:5:0;;;11582:192::o;9389:106::-;9447:7;9478:1;9474;:5;:13;;9486:1;9474:13;;;-1:-1:-1;9482:1:0;;9389:106;-1:-1:-1;9389:106:0:o;75756:457::-;75840:4;75824:13;:20;75820:158;;;75920:46;;-1:-1:-1;;;75920:46:0;;70202:42;;75920:15;;:46;;75936:1;;75939;;75942:13;;75939:1;;;;75920:46;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75820:158;76012:29;;-1:-1:-1;;;76012:29:0;;75990:19;;64217:42;;76012:14;;:29;;76035:4;;76012:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;75990:51;;76070:4;76056:11;:18;76052:154;;;76150:44;;-1:-1:-1;;;76150:44:0;;70043:42;;76150:15;;:44;;76166:1;;76169;;76172:11;;76166:1;;;;76150:44;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75756:457;;:::o;807:619::-;867:4;1335:20;;1178:66;1375:23;;;;;;:42;;-1:-1:-1;;1402:15:0;;;1367:51;-1:-1:-1;;807:619:0:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;3065:241;;3169:2;3157:9;3148:7;3144:23;3140:32;3137:2;;;-1:-1;;3175:12;3137:2;85:6;72:20;97:33;124:5;97:33;:::i;3313:263::-;;3428:2;3416:9;3407:7;3403:23;3399:32;3396:2;;;-1:-1;;3434:12;3396:2;226:6;220:13;238:33;265:5;238:33;:::i;3583:235::-;;3684:2;3672:9;3663:7;3659:23;3655:32;3652:2;;;-1:-1;;3690:12;3652:2;360:6;347:20;372:30;396:5;372:30;:::i;3825:257::-;;3937:2;3925:9;3916:7;3912:23;3908:32;3905:2;;;-1:-1;;3943:12;3905:2;495:6;489:13;507:30;531:5;507:30;:::i;4391:367::-;;;4515:2;4503:9;4494:7;4490:23;4486:32;4483:2;;;-1:-1;;4521:12;4483:2;4579:17;4566:31;4617:18;;4609:6;4606:30;4603:2;;;-1:-1;;4639:12;4603:2;4725:6;4714:9;4710:22;;;852:3;845:4;837:6;833:17;829:27;819:2;;-1:-1;;860:12;819:2;903:6;890:20;4617:18;922:6;919:30;916:2;;;-1:-1;;952:12;916:2;1047:3;4515:2;1027:17;988:6;1013:32;;1010:41;1007:2;;;-1:-1;;1054:12;1007:2;4515;984:17;;;;;4659:83;;-1:-1;4477:281;;-1:-1;;;;4477:281::o;4765:326::-;;4911:3;;4899:9;4890:7;4886:23;4882:33;4879:2;;;-1:-1;;4918:12;4879:2;1279:22;4911:3;1279:22;:::i;:::-;1270:31;;1425:22;3002:13;1375:16;1368:86;1521:2;1590:9;1586:22;3002:13;1521:2;1540:5;1536:16;1529:86;1681:2;1750:9;1746:22;3002:13;1681:2;1700:5;1696:16;1689:86;1849:2;1918:9;1914:22;3002:13;1849:2;1868:5;1864:16;1857:86;2017:3;2087:9;2083:22;3002:13;2017:3;2037:5;2033:16;2026:86;2179:3;2249:9;2245:22;3002:13;2179:3;2199:5;2195:16;2188:86;2340:3;2410:9;2406:22;3002:13;2340:3;2360:5;2356:16;2349:86;2501:3;2571:9;2567:22;3002:13;2501:3;2521:5;2517:16;2510:86;2662:3;;2734:9;2730:22;3002:13;2662:3;2682:5;2678:18;2671:88;;4970:105;;;;4873:218;;;;:::o;5098:241::-;;5202:2;5190:9;5181:7;5177:23;5173:32;5170:2;;;-1:-1;;5208:12;5170:2;-1:-1;2854:20;;5164:175;-1:-1;5164:175::o;5346:263::-;;5461:2;5449:9;5440:7;5436:23;5432:32;5429:2;;;-1:-1;;5467:12;5429:2;-1:-1;3002:13;;5423:186;-1:-1;5423:186::o;5616:491::-;;;;5754:2;5742:9;5733:7;5729:23;5725:32;5722:2;;;-1:-1;;5760:12;5722:2;2867:6;2854:20;5812:63;;5912:2;5955:9;5951:22;2854:20;5920:63;;6020:2;6063:9;6059:22;72:20;97:33;124:5;97:33;:::i;:::-;6028:63;;;;5716:391;;;;;:::o;6114:611::-;;;;;6266:3;6254:9;6245:7;6241:23;6237:33;6234:2;;;-1:-1;;6273:12;6234:2;2867:6;2854:20;6325:63;;6425:2;6468:9;6464:22;2854:20;6433:63;;6533:2;6576:9;6572:22;2854:20;6541:63;;6641:2;6681:9;6677:22;347:20;372:30;396:5;372:30;:::i;:::-;6228:497;;;;-1:-1;6228:497;;-1:-1;;6228:497::o;14159:271::-;;8006:5;28157:12;8117:52;8162:6;8157:3;8150:4;8143:5;8139:16;8117:52;:::i;:::-;8181:16;;;;;14293:137;-1:-1;;14293:137::o;14437:222::-;-1:-1;;;;;29280:54;;;;6985:37;;14564:2;14549:18;;14535:124::o;14666:333::-;-1:-1;;;;;29280:54;;;6985:37;;29280:54;;14985:2;14970:18;;6985:37;14821:2;14806:18;;14792:207::o;15006:321::-;-1:-1;;;;;29280:54;;;;6985:37;;29078:13;29071:21;15313:2;15298:18;;7800:34;15155:2;15140:18;;15126:201::o;15334:349::-;-1:-1;;;;;29280:54;;;;6985:37;;15669:2;15654:18;;8960:58;15497:2;15482:18;;15468:215::o;16030:441::-;16239:2;16224:18;;16228:9;7430:21;16030:441;7457:258;28049:4;7479:1;7476:13;7457:258;;;7543:13;;13990:37;;6895:4;6886:14;;;;28414;;;;7504:1;7497:9;7457:258;;;7461:14;;;9011:5;16457:2;16446:9;16442:18;8960:58;16210:261;;;;;:::o;16478:210::-;29078:13;;29071:21;7800:34;;16599:2;16584:18;;16570:118::o;17751:704::-;8960:58;;;18189:2;18174:18;;8960:58;;;;18272:2;18257:18;;13990:37;;;;18363:2;18348:18;;8960:58;29078:13;29071:21;18440:3;18425:19;;7800:34;18008:3;17993:19;;17979:476::o;19173:330::-;;19330:2;19351:17;19344:47;28858:6;19330:2;19319:9;19315:18;28846:19;30935:6;30930:3;28886:14;19319:9;28886:14;30912:30;30973:16;;;28886:14;30973:16;;;30966:27;;;;31368:7;31352:14;;;-1:-1;;31348:28;9459:39;;;19301:202;-1:-1;19301:202::o;19510:310::-;;19657:2;19678:17;19671:47;9657:5;28157:12;28858:6;19657:2;19646:9;19642:18;28846:19;9751:52;9796:6;28886:14;19646:9;28886:14;19657:2;9777:5;9773:16;9751:52;:::i;:::-;31368:7;31352:14;-1:-1;;31348:28;9815:39;;;;28886:14;9815:39;;19628:192;-1:-1;;19628:192::o;19827:416::-;20027:2;20041:47;;;10091:2;20012:18;;;28846:19;-1:-1;;;28886:14;;;10107:34;10160:12;;;19998:245::o;20250:416::-;20450:2;20464:47;;;10411:1;20435:18;;;28846:19;-1:-1;;;28886:14;;;10426:28;10473:12;;;20421:245::o;20673:416::-;20873:2;20887:47;;;10724:2;20858:18;;;28846:19;10760:29;28886:14;;;10740:50;10809:12;;;20844:245::o;21096:416::-;21296:2;21310:47;;;11060:2;21281:18;;;28846:19;-1:-1;;;28886:14;;;11076:35;11130:12;;;21267:245::o;21519:416::-;21719:2;21733:47;;;11381:2;21704:18;;;28846:19;11417:34;28886:14;;;11397:55;-1:-1;;;11472:12;;;11465:25;11509:12;;;21690:245::o;21942:416::-;22142:2;22156:47;;;11760:1;22127:18;;;28846:19;-1:-1;;;28886:14;;;11775:29;11823:12;;;22113:245::o;22365:416::-;22565:2;22579:47;;;12074:1;22550:18;;;28846:19;-1:-1;;;28886:14;;;12089:30;12138:12;;;22536:245::o;22788:416::-;22988:2;23002:47;;;12389:2;22973:18;;;28846:19;12425:31;28886:14;;;12405:52;12476:12;;;22959:245::o;23211:416::-;23411:2;23425:47;;;12727:2;23396:18;;;28846:19;-1:-1;;;28886:14;;;12743:34;12796:12;;;23382:245::o;23634:416::-;23834:2;23848:47;;;13047:2;23819:18;;;28846:19;13083:34;28886:14;;;13063:55;-1:-1;;;13138:12;;;13131:34;13184:12;;;23805:245::o;24057:416::-;24257:2;24271:47;;;13435:2;24242:18;;;28846:19;-1:-1;;;28886:14;;;13451:33;13503:12;;;24228:245::o;24480:416::-;24680:2;24694:47;;;13754:2;24665:18;;;28846:19;13790:34;28886:14;;;13770:55;-1:-1;;;13845:12;;;13838:46;13903:12;;;24651:245::o;24903:222::-;13990:37;;;25030:2;25015:18;;25001:124::o;25132:321::-;13990:37;;;29078:13;29071:21;25439:2;25424:18;;7800:34;25281:2;25266:18;;25252:201::o;25460:432::-;13990:37;;;25801:2;25786:18;;13990:37;;;;29078:13;29071:21;25878:2;25863:18;;7800:34;25637:2;25622:18;;25608:284::o;25899:444::-;13990:37;;;26246:2;26231:18;;13990:37;;;;26329:2;26314:18;;13990:37;26082:2;26067:18;;26053:290::o;26350:556::-;13990:37;;;26726:2;26711:18;;13990:37;;;;26809:2;26794:18;;13990:37;26892:2;26877:18;;13990:37;26561:3;26546:19;;26532:374::o;26913:668::-;13990:37;;;27317:2;27302:18;;13990:37;;;;27400:2;27385:18;;13990:37;;;;27483:2;27468:18;;13990:37;27566:3;27551:19;;13990:37;27152:3;27137:19;;27123:458::o;27588:256::-;27650:2;27644:9;27676:17;;;27751:18;27736:34;;27772:22;;;27733:62;27730:2;;;27808:1;;27798:12;27730:2;27650;27817:22;27628:216;;-1:-1;27628:216::o;31008:268::-;31073:1;31080:101;31094:6;31091:1;31088:13;31080:101;;;31161:11;;;31155:18;31142:11;;;31135:39;31116:2;31109:10;31080:101;;;31196:6;31193:1;31190:13;31187:2;;;31073:1;31252:6;31247:3;31243:16;31236:27;31187:2;;31057:219;;;:::o;31389:117::-;-1:-1;;;;;29280:54;;31448:35;;31438:2;;31497:1;;31487:12;31513:111;31594:5;29078:13;29071:21;31572:5;31569:32;31559:2;;31615:1;;31605:12

Swarm Source

ipfs://b13efbff7733998e78e1333c9ebc609698e92bea8983f3f02383e980708b5271

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.