ETH Price: $3,112.21 (+1.35%)
Gas: 4 Gwei

Contract

0x3D6532c589A11117a4494d9725bb8518C731f1Be
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Set Strategist129484942021-08-02 22:00:491072 days ago1627941649IN
0x3D6532c5...8C731f1Be
0 ETH0.0008161129
0x60806040128189482021-07-13 13:05:131092 days ago1626181513IN
 Contract Creation
0 ETH0.0765621231

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

Contract Name:
RouterStrategy030

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 2021-07-03
*/

// SPDX-License-Identifier: AGPL-3.0

pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;

// Global Enums and Structs



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

// Part: OpenZeppelin/[email protected]/Address

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

// Part: OpenZeppelin/[email protected]/IERC20

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

// Part: OpenZeppelin/[email protected]/Math

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

// Part: OpenZeppelin/[email protected]/SafeMath

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

// Part: IVault

interface IVault is IERC20 {
    function token() external view returns (address);

    function decimals() external view returns (uint256);

    function deposit() external;

    function pricePerShare() external view returns (uint256);

    function withdraw(
        uint256 amount,
        address account,
        uint256 maxLoss
    ) external returns (uint256);
}

// Part: OpenZeppelin/[email protected]/SafeERC20

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

// Part: yearn/[email protected]/VaultAPI

interface VaultAPI is IERC20 {
    function apiVersion() external view returns (string memory);

    function withdraw(uint256 shares, address recipient) external;

    function token() external view returns (address);

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

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

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

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

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

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

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

// Part: yearn/[email protected]/BaseStrategy

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

    /**
     * @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.3.0";
    }

    /**
     * @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 virtual view 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.
     * @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 virtual view 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 UpdatedReportDelay(uint256 delay);

    event UpdatedProfitFactor(uint256 profitFactor);

    event UpdatedDebtThreshold(uint256 debtThreshold);

    event EmergencyExitEnabled();

    // The maximum number of seconds between harvest calls. See
    // `setMaxReportDelay()` for more details.
    uint256 public maxReportDelay = 86400; // ~ once a day

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

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

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

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

    /**
     * @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.
     */
    constructor(address _vault) public {
        vault = VaultAPI(_vault);
        want = IERC20(vault.token());
        want.approve(_vault, uint256(-1)); // Give Vault unlimited access (might save gas)
        strategist = msg.sender;
        rewards = msg.sender;
        keeper = msg.sender;
    }

    /**
     * @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`. Any distributed rewards will cease flowing
     *  to the old address and begin flowing to this address once the change
     *  is in effect.
     *
     *  This may only be called by the strategist.
     * @param _rewards The address to use for collecting rewards.
     */
    function setRewards(address _rewards) external onlyStrategist {
        require(_rewards != address(0));
        rewards = _rewards;
        emit UpdatedRewards(_rewards);
    }

    /**
     * @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 UpdatedReportDelay(_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);
    }

    /**
     * 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 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 virtual view returns (uint256);

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

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

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

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

    /**
     *  `Harvest()` calls this function after shares are created during
     *  `vault.report()`. You can customize this function to any share
     *  distribution mechanism you want.
     *
     *   See `vault.report()` for further details.
     */
    function distributeRewards() internal virtual {
        // Transfer 100% of newly-minted shares awarded to this contract to the rewards address.
        uint256 balance = vault.balanceOf(address(this));
        if (balance > 0) {
            vault.transfer(rewards, balance);
        }
    }

    /**
     * @notice
     *  Provide a signal to the keeper that `tend()` should be called. The
     *  keeper will provide the estimated gas cost that they would pay to call
     *  `tend()`, and this function should use that estimate to make a
     *  determination if calling it is "worth it" for the keeper. This is not
     *  the only consideration into issuing this trigger, for example if the
     *  position would be negatively affected if `tend()` is not called
     *  shortly, then this can return `true` even if the keeper might be
     *  "at a loss" (keepers are always reimbursed by Yearn).
     * @dev
     *  `callCost` must be priced in terms of `want`.
     *
     *  This call and `harvestTrigger()` should never return `true` at the same
     *  time.
     * @param callCost The keeper's estimated cast cost to call `tend()`.
     * @return `true` if `tend()` should be called, `false` otherwise.
     */
    function tendTrigger(uint256 callCost) public virtual view 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.
        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
     *  `callCost` must be priced in terms of `want`.
     *
     *  This call and `tendTrigger` should never return `true` at the
     *  same time.
     *
     *  See `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/master/scripts/keep.py),
     *  or via an integration with the Keep3r network (e.g.
     *  https://github.com/Macarse/GenericKeep3rV2/blob/master/contracts/keep3r/GenericKeep3rV2.sol).
     * @param callCost The keeper's estimated cast cost to call `harvest()`.
     * @return `true` if `harvest()` should be called, `false` otherwise.
     */
    function harvestTrigger(uint256 callCost) public virtual view returns (bool) {
        StrategyParams memory params = vault.strategies(address(this));

        // Should not trigger if Strategy is not activated
        if (params.activation == 0) 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 totalAssets = estimatedTotalAssets();
            // NOTE: use the larger of total assets or debt outstanding to book losses properly
            (debtPayment, loss) = liquidatePosition(totalAssets > debtOutstanding ? totalAssets : debtOutstanding);
            // NOTE: take up any remainder here as profit
            if (debtPayment > debtOutstanding) {
                profit = debtPayment.sub(debtOutstanding);
                debtPayment = debtOutstanding;
            }
        } else {
            // Free up returns for Vault to pull
            (profit, loss, debtPayment) = prepareReturn(debtOutstanding);
        }

        // Allow Vault to take up to the "harvested" balance of this contract,
        // which is the amount it has earned since the last time it reported to
        // the Vault.
        debtOutstanding = vault.report(profit, loss, debtPayment);

        // Distribute any reward shares earned by the strategy on this report
        distributeRewards();

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

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

    /**
     * @notice
     *  Withdraws `_amountNeeded` to `vault`.
     *
     *  This may only be called by the Vault.
     * @param _amountNeeded How much `want` to withdraw.
     * @return _loss Any realized losses
     */
    function withdraw(uint256 _amountNeeded) external returns (uint256 _loss) {
        require(msg.sender == address(vault), "!vault");
        // Liquidate as much as possible to `want`, up to `_amount`
        uint256 amountFreed;
        (amountFreed, _loss) = liquidatePosition(_amountNeeded);
        // Send it directly back (NOTE: Using `msg.sender` saves some gas here)
        want.transfer(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 governance or the Vault.
     * @dev
     *  The new Strategy's Vault must be the same as this Strategy's Vault.
     * @param _newStrategy The Strategy to migrate to.
     */
    function migrate(address _newStrategy) external {
        require(msg.sender == address(vault) || msg.sender == governance());
        require(BaseStrategy(_newStrategy).vault() == vault);
        prepareMigration(_newStrategy);
        want.transfer(_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 onlyAuthorized {
        emergencyExit = true;
        vault.revokeStrategy();

        emit EmergencyExitEnabled();
    }

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

// File: RouterStrategy030.sol

contract RouterStrategy030 is BaseStrategy {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    string internal strategyName;
    IVault public yVault;
    uint256 public maxLoss;

    constructor(
        address _vault,
        address _yVault,
        string memory _strategyName
    ) public BaseStrategy(_vault) {
        _initializeThis(_yVault, _strategyName);
    }

    modifier onlyManagement() {
        require(
            msg.sender == governance() ||
                msg.sender ==
                address(0x16388463d60FFE0661Cf7F1f31a7D658aC790ff7)
        );
        _;
    }

    function _initializeThis(address _yVault, string memory _strategyName)
        internal
    {
        yVault = IVault(_yVault);
        strategyName = _strategyName;
    }

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

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

    function prepareReturn(uint256 _debtOutstanding)
        internal
        override
        returns (
            uint256 _profit,
            uint256 _loss,
            uint256 _debtPayment
        )
    {
        uint256 _totalDebt = vault.strategies(address(this)).totalDebt;
        uint256 _totalAsset = estimatedTotalAssets();

        // Estimate the profit we have so far
        if (_totalDebt <= _totalAsset) {
            _profit = _totalAsset.sub(_totalDebt);
        }

        // We take profit and debt
        uint256 _amountFreed;
        (_amountFreed, _loss) = liquidatePosition(
            _debtOutstanding.add(_profit)
        );
        _debtPayment = Math.min(_debtOutstanding, _amountFreed);

        if (_loss > _profit) {
            // Example:
            // debtOutstanding 100, profit 50, _amountFreed 100, _loss 50
            // loss should be 0, (50-50)
            // profit should endup in 0
            _loss = _loss.sub(_profit);
            _profit = 0;
        } else {
            // Example:
            // debtOutstanding 100, profit 50, _amountFreed 140, _loss 10
            // _profit should be 40, (50 profit - 10 loss)
            // loss should end up in be 0
            _profit = _profit.sub(_loss);
            _loss = 0;
        }
    }

    function adjustPosition(uint256 _debtOutstanding) internal override {
        if (emergencyExit) {
            return;
        }

        uint256 balance = balanceOfWant();
        if (balance > 0) {
            _checkAllowance(address(yVault), address(want), balance);
            yVault.deposit();
        }
    }

    function liquidatePosition(uint256 _amountNeeded)
        internal
        override
        returns (uint256 _liquidatedAmount, uint256 _loss)
    {
        uint256 balance = balanceOfWant();
        if (balance >= _amountNeeded) {
            return (_amountNeeded, 0);
        }

        uint256 toWithdraw = _amountNeeded.sub(balance);
        _withdrawFromYVault(toWithdraw);

        uint256 totalAssets = balanceOfWant();
        if (_amountNeeded > totalAssets) {
            _liquidatedAmount = totalAssets;
            _loss = _amountNeeded.sub(totalAssets);
        } else {
            _liquidatedAmount = _amountNeeded;
        }
    }

    function _withdrawFromYVault(uint256 _amount) internal {
        if (_amount == 0) {
            return;
        }

        uint256 _balanceOfYShares = yVault.balanceOf(address(this));
        uint256 sharesToWithdraw =
            Math.min(_investmentTokenToYShares(_amount), _balanceOfYShares);

        if (sharesToWithdraw == 0) {
            return;
        }

        yVault.withdraw(sharesToWithdraw, address(this), maxLoss);
    }

    function prepareMigration(address _newStrategy) internal override {
        IERC20(yVault).safeTransfer(
            _newStrategy,
            IERC20(yVault).balanceOf(address(this))
        );
    }

    function protectedTokens()
        internal
        view
        override
        returns (address[] memory ret)
    {
        ret = new address[](1);
        ret[0] = address(yVault);
        return ret;
    }

    function setMaxLoss(uint256 _maxLoss) public onlyManagement {
        maxLoss = _maxLoss;
    }

    function _checkAllowance(
        address _contract,
        address _token,
        uint256 _amount
    ) internal {
        if (IERC20(_token).allowance(address(this), _contract) < _amount) {
            IERC20(_token).safeApprove(_contract, 0);
            IERC20(_token).safeApprove(_contract, type(uint256).max);
        }
    }

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

    function _investmentTokenToYShares(uint256 amount)
        internal
        view
        returns (uint256)
    {
        return amount.mul(10**yVault.decimals()).div(yVault.pricePerShare());
    }

    function valueOfInvestment() public view returns (uint256) {
        return
            yVault.balanceOf(address(this)).mul(yVault.pricePerShare()).div(
                10**yVault.decimals()
            );
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_vault","type":"address"},{"internalType":"address","name":"_yVault","type":"address"},{"internalType":"string","name":"_strategyName","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":"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":"profitFactor","type":"uint256"}],"name":"UpdatedProfitFactor","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"delay","type":"uint256"}],"name":"UpdatedReportDelay","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":"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":"emergencyExit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"estimatedTotalAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"callCost","type":"uint256"}],"name":"harvestTrigger","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keeper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxLoss","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxReportDelay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newStrategy","type":"address"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"uint256","name":"_debtThreshold","type":"uint256"}],"name":"setDebtThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setEmergencyExit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_keeper","type":"address"}],"name":"setKeeper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxLoss","type":"uint256"}],"name":"setMaxLoss","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_delay","type":"uint256"}],"name":"setMaxReportDelay","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":"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":"callCost","type":"uint256"}],"name":"tendTrigger","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"valueOfInvestment","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"yVault","outputs":[{"internalType":"contract IVault","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101fb5760003560e01c8063650d18801161011a578063c7b9d530116100ad578063efbb5cb01161007c578063efbb5cb014610398578063f017c92f146103a0578063f5f5ed17146103b3578063fbfa77cf146103bb578063fcf2d0ad146103c3576101fb565b8063c7b9d5301461034c578063ce5494bb1461035f578063ec38a86214610372578063ed882c2b14610385576101fb565b806391397ab4116100e957806391397ab4146103215780639ec5a89414610334578063aced16611461033c578063c1a3d44c14610344576101fb565b8063650d1880146102eb578063748747e6146102fe5780638cdfe166146103115780638e6350e214610319576101fb565b80632582941011610192578063440368a311610161578063440368a3146102cb5780634641257d146102d35780635641ec03146102db5780635783fe39146102e3576101fb565b806325829410146102a057806328b7ccf7146102a85780632e1a7d4d146102b057806333303f8e146102c3576101fb565b80631f1fcd51116101ce5780631f1fcd511461025b5780631fe4a6861461027057806322f3e2d41461027857806324be66281461028d576101fb565b806301681a621461020057806306fdde03146102155780630f969b87146102335780631d12f28b14610246575b600080fd5b61021361020e36600461226c565b6103cb565b005b61021d6105d5565b60405161022a91906123ed565b60405180910390f35b61021361024136600461234f565b61066b565b61024e6106f8565b60405161022a919061263d565b6102636106fe565b60405161022a919061239b565b61026361070d565b61028061071c565b60405161022a91906123e2565b61021361029b36600461234f565b6107ba565b61021d610802565b61024e610821565b61024e6102be36600461234f565b610827565b6102636108ed565b6102136108fc565b6102136109e3565b610280610c12565b61024e610c1b565b6102806102f936600461234f565b610c21565b61021361030c36600461226c565b610c29565b61024e610cd4565b61024e610cda565b61021361032f36600461234f565b610cdf565b610263610d61565b610263610d70565b61024e610d7f565b61021361035a36600461226c565b610e01565b61021361036d36600461226c565b610eac565b61021361038036600461226c565b61108c565b61028061039336600461234f565b611114565b61024e61137d565b6102136103ae36600461234f565b611398565b61024e61141a565b6102636115bd565b6102136115cc565b6103d36116aa565b6001600160a01b0316336001600160a01b03161461040c5760405162461bcd60e51b815260040161040390612554565b60405180910390fd5b6004546001600160a01b038281169116141561043a5760405162461bcd60e51b815260040161040390612445565b6000546001600160a01b03828116911614156104685760405162461bcd60e51b8152600401610403906124fc565b6060610472611731565b905060005b81518110156104cd5781818151811061048c57fe5b60200260200101516001600160a01b0316836001600160a01b031614156104c55760405162461bcd60e51b8152600401610403906125c3565b600101610477565b50816001600160a01b031663a9059cbb6104e56116aa565b6040516370a0823160e01b81526001600160a01b038616906370a082319061051190309060040161239b565b60206040518083038186803b15801561052957600080fd5b505afa15801561053d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105619190612367565b6040518363ffffffff1660e01b815260040161057e9291906123af565b602060405180830381600087803b15801561059857600080fd5b505af11580156105ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d091906122a4565b505050565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106615780601f1061063657610100808354040283529160200191610661565b820191906000526020600020905b81548152906001019060200180831161064457829003601f168201915b5050505050905090565b6001546001600160a01b031633148061069c57506106876116aa565b6001600160a01b0316336001600160a01b0316145b6106b85760405162461bcd60e51b815260040161040390612554565b60078190556040517fa68ba126373d04c004c5748c300c9fca12bd444b3d4332e261f3bd2bac4a8600906106ed90839061263d565b60405180910390a150565b60075481565b6004546001600160a01b031681565b6001546001600160a01b031681565b600080546040516339ebf82360e01b815282916001600160a01b0316906339ebf8239061074d90309060040161239b565b6101006040518083038186803b15801561076657600080fd5b505afa15801561077a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079e91906122c4565b6040015111806107b5575060006107b361137d565b115b905090565b6107c26116aa565b6001600160a01b0316336001600160a01b031614806107f45750337316388463d60ffe0661cf7f1f31a7d658ac790ff7145b6107fd57600080fd5b600b55565b6040805180820190915260058152640302e332e360dc1b602082015290565b60055481565b600080546001600160a01b031633146108525760405162461bcd60e51b8152600401610403906124dc565b600061085d83611790565b6004805460405163a9059cbb60e01b81529295509293506001600160a01b039092169163a9059cbb916108949133918691016123af565b602060405180830381600087803b1580156108ae57600080fd5b505af11580156108c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e691906122a4565b5050919050565b600a546001600160a01b031681565b6003546001600160a01b031633148061091f57506001546001600160a01b031633145b80610942575061092d6116aa565b6001600160a01b0316336001600160a01b0316145b61095e5760405162461bcd60e51b815260040161040390612554565b6000546040805163bf3759b560e01b815290516109e1926001600160a01b03169163bf3759b5916004808301926020929190829003018186803b1580156109a457600080fd5b505afa1580156109b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109dc9190612367565b6117ff565b565b6003546001600160a01b0316331480610a0657506001546001600160a01b031633145b80610a295750610a146116aa565b6001600160a01b0316336001600160a01b0316145b610a455760405162461bcd60e51b815260040161040390612554565b60008060008060009054906101000a90046001600160a01b03166001600160a01b031663bf3759b56040518163ffffffff1660e01b815260040160206040518083038186803b158015610a9757600080fd5b505afa158015610aab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acf9190612367565b60085490915060009060ff1615610b25576000610aea61137d565b9050610b03838211610afc5783610afe565b815b611790565b9450915082821115610b1f57610b1982846118ab565b94508291505b50610b36565b610b2e826118f6565b919550935090505b6000546040516328766ebf60e21b81526001600160a01b039091169063a1d9bafc90610b6a90879087908690600401612665565b602060405180830381600087803b158015610b8457600080fd5b505af1158015610b98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bbc9190612367565b9150610bc66119f9565b610bcf826117ff565b7f4c0f499ffe6befa0ca7c826b0916cf87bea98de658013e76938489368d60d50984848385604051610c04949392919061267b565b60405180910390a150505050565b60085460ff1681565b600b5481565b60005b919050565b6001546001600160a01b0316331480610c5a5750610c456116aa565b6001600160a01b0316336001600160a01b0316145b610c765760405162461bcd60e51b815260040161040390612554565b6001600160a01b038116610c8957600080fd5b600380546001600160a01b0319166001600160a01b0383161790556040517f2f202ddb4a2e345f6323ed90f8fc8559d770a7abbbeee84dde8aca3351fe7154906106ed90839061239b565b60065481565b600090565b6001546001600160a01b0316331480610d105750610cfb6116aa565b6001600160a01b0316336001600160a01b0316145b610d2c5760405162461bcd60e51b815260040161040390612554565b60068190556040517fd94596337df4c2f0f44d30a7fc5db1c7bb60d9aca4185ed77c6fd96eb45ec298906106ed90839061263d565b6002546001600160a01b031681565b6003546001600160a01b031681565b600480546040516370a0823160e01b81526000926001600160a01b03909216916370a0823191610db19130910161239b565b60206040518083038186803b158015610dc957600080fd5b505afa158015610ddd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b59190612367565b6001546001600160a01b0316331480610e325750610e1d6116aa565b6001600160a01b0316336001600160a01b0316145b610e4e5760405162461bcd60e51b815260040161040390612554565b6001600160a01b038116610e6157600080fd5b600180546001600160a01b0319166001600160a01b0383161790556040517f352ececae6d7d1e6d26bcf2c549dfd55be1637e9b22dc0cf3b71ddb36097a6b4906106ed90839061239b565b6000546001600160a01b0316331480610edd5750610ec86116aa565b6001600160a01b0316336001600160a01b0316145b610ee657600080fd5b60008054906101000a90046001600160a01b03166001600160a01b0316816001600160a01b031663fbfa77cf6040518163ffffffff1660e01b815260040160206040518083038186803b158015610f3c57600080fd5b505afa158015610f50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f749190612288565b6001600160a01b031614610f8757600080fd5b610f9081611ab8565b600480546040516370a0823160e01b81526001600160a01b039091169163a9059cbb91849184916370a0823191610fc99130910161239b565b60206040518083038186803b158015610fe157600080fd5b505afa158015610ff5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110199190612367565b6040518363ffffffff1660e01b81526004016110369291906123af565b602060405180830381600087803b15801561105057600080fd5b505af1158015611064573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108891906122a4565b5050565b6001546001600160a01b031633146110b65760405162461bcd60e51b815260040161040390612420565b6001600160a01b0381166110c957600080fd5b600280546001600160a01b0319166001600160a01b0383161790556040517fafbb66abf8f3b719799940473a4052a3717cdd8e40fb6c8a3faadab316b1a069906106ed90839061239b565b600061111e612227565b6000546040516339ebf82360e01b81526001600160a01b03909116906339ebf8239061114e90309060040161239b565b6101006040518083038186803b15801561116757600080fd5b505afa15801561117b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119f91906122c4565b90508060200151600014156111b8576000915050610c24565b60055460808201516111cb9042906118ab565b106111da576001915050610c24565b60008060009054906101000a90046001600160a01b03166001600160a01b031663bf3759b56040518163ffffffff1660e01b815260040160206040518083038186803b15801561122957600080fd5b505afa15801561123d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112619190612367565b905060075481111561127857600192505050610c24565b600061128261137d565b90508260a0015161129e60075483611b5190919063ffffffff16565b10156112b05760019350505050610c24565b60008360a001518211156112d15760a08401516112ce9083906118ab565b90505b60008060009054906101000a90046001600160a01b03166001600160a01b031663112c1f9b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561132057600080fd5b505afa158015611334573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113589190612367565b90506113648183611b51565b6006546113719089611b76565b10979650505050505050565b60006107b561138a61141a565b611392610d7f565b90611b51565b6001546001600160a01b03163314806113c957506113b46116aa565b6001600160a01b0316336001600160a01b0316145b6113e55760405162461bcd60e51b815260040161040390612554565b60058190556040517f4aaf232568bff365c53cad69bdb6e83014e79df80216ceba8ee01769723dfd68906106ed90839061263d565b60006107b5600a60009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561146d57600080fd5b505afa158015611481573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a59190612367565b600a0a6115b7600a60009054906101000a90046001600160a01b03166001600160a01b03166399530b066040518163ffffffff1660e01b815260040160206040518083038186803b1580156114f957600080fd5b505afa15801561150d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115319190612367565b600a546040516370a0823160e01b81526001600160a01b03909116906370a082319061156190309060040161239b565b60206040518083038186803b15801561157957600080fd5b505afa15801561158d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b19190612367565b90611b76565b90611bb0565b6000546001600160a01b031681565b6001546001600160a01b03163314806115fd57506115e86116aa565b6001600160a01b0316336001600160a01b0316145b6116195760405162461bcd60e51b815260040161040390612554565b6008805460ff19166001179055600080546040805163507257cd60e11b815290516001600160a01b039092169263a0e4af9a9260048084019382900301818387803b15801561166757600080fd5b505af115801561167b573d6000803e3d6000fd5b50506040517f97e963041e952738788b9d4871d854d282065b8f90a464928d6528f2e9a4fd0b925060009150a1565b60008060009054906101000a90046001600160a01b03166001600160a01b0316635aa6e6756040518163ffffffff1660e01b815260040160206040518083038186803b1580156116f957600080fd5b505afa15801561170d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b59190612288565b604080516001808252818301909252606091602080830190803683375050600a5482519293506001600160a01b03169183915060009061176d57fe5b60200260200101906001600160a01b031690816001600160a01b03168152505090565b600080600061179d610d7f565b90508381106117b35783600092509250506117fa565b60006117bf85836118ab565b90506117ca81611bf2565b60006117d4610d7f565b9050808611156117f2579350836117eb86826118ab565b93506117f6565b8594505b5050505b915091565b60085460ff161561180f576118a8565b6000611819610d7f565b9050801561108857600a5460045461183e916001600160a01b03908116911683611d2e565b600a60009054906101000a90046001600160a01b03166001600160a01b031663d0e30db06040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561188e57600080fd5b505af11580156118a2573d6000803e3d6000fd5b50505050505b50565b60006118ed83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611ddf565b90505b92915050565b600080546040516339ebf82360e01b81528291829182916001600160a01b0316906339ebf8239061192b90309060040161239b565b6101006040518083038186803b15801561194457600080fd5b505afa158015611958573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061197c91906122c4565b60a001519050600061198c61137d565b90508082116119a25761199f81836118ab565b94505b60006119b1610afe8888611b51565b955090506119bf8782611e0b565b9350858511156119de576119d385876118ab565b9450600095506119ef565b6119e886866118ab565b9550600094505b5050509193909250565b600080546040516370a0823160e01b81526001600160a01b03909116906370a0823190611a2a90309060040161239b565b60206040518083038186803b158015611a4257600080fd5b505afa158015611a56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a7a9190612367565b905080156118a85760005460025460405163a9059cbb60e01b81526001600160a01b039283169263a9059cbb926110369291169085906004016123af565b600a546040516370a0823160e01b81526118a89183916001600160a01b03909116906370a0823190611aee90309060040161239b565b60206040518083038186803b158015611b0657600080fd5b505afa158015611b1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b3e9190612367565b600a546001600160a01b03169190611e21565b6000828201838110156118ed5760405162461bcd60e51b815260040161040390612464565b600082611b85575060006118f0565b82820282848281611b9257fe5b04146118ed5760405162461bcd60e51b81526004016104039061249b565b60006118ed83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611e77565b80611bfc576118a8565b600a546040516370a0823160e01b81526000916001600160a01b0316906370a0823190611c2d90309060040161239b565b60206040518083038186803b158015611c4557600080fd5b505afa158015611c59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c7d9190612367565b90506000611c93611c8d84611eae565b83611e0b565b905080611ca15750506118a8565b600a54600b54604051631cc6d2f960e31b81526001600160a01b039092169163e63697c891611cd69185913091600401612646565b602060405180830381600087803b158015611cf057600080fd5b505af1158015611d04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d289190612367565b50505050565b604051636eb1769f60e11b815281906001600160a01b0384169063dd62ed3e90611d5e90309088906004016123c8565b60206040518083038186803b158015611d7657600080fd5b505afa158015611d8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dae9190612367565b10156105d057611dc96001600160a01b038316846000611fc1565b6105d06001600160a01b03831684600019611fc1565b60008184841115611e035760405162461bcd60e51b815260040161040391906123ed565b505050900390565b6000818310611e1a57816118ed565b5090919050565b6105d08363a9059cbb60e01b8484604051602401611e409291906123af565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612084565b60008183611e985760405162461bcd60e51b815260040161040391906123ed565b506000838581611ea457fe5b0495945050505050565b60006118f0600a60009054906101000a90046001600160a01b03166001600160a01b03166399530b066040518163ffffffff1660e01b815260040160206040518083038186803b158015611f0157600080fd5b505afa158015611f15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f399190612367565b600a546040805163313ce56760e01b815290516115b7926001600160a01b03169163313ce567916004808301926020929190829003018186803b158015611f7f57600080fd5b505afa158015611f93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fb79190612367565b8590600a0a611b76565b8015806120495750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e90611ff790309086906004016123c8565b60206040518083038186803b15801561200f57600080fd5b505afa158015612023573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120479190612367565b155b6120655760405162461bcd60e51b8152600401610403906125e7565b6105d08363095ea7b360e01b8484604051602401611e409291906123af565b60606120d9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166121139092919063ffffffff16565b8051909150156105d057808060200190518101906120f791906122a4565b6105d05760405162461bcd60e51b815260040161040390612579565b6060612122848460008561212a565b949350505050565b6060612135856121ee565b6121515760405162461bcd60e51b81526004016104039061251d565b60006060866001600160a01b0316858760405161216e919061237f565b60006040518083038185875af1925050503d80600081146121ab576040519150601f19603f3d011682016040523d82523d6000602084013e6121b0565b606091505b509150915081156121c45791506121229050565b8051156121d45780518082602001fd5b8360405162461bcd60e51b815260040161040391906123ed565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590612122575050151592915050565b60405180610100016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b60006020828403121561227d578081fd5b81356118ed816126c2565b600060208284031215612299578081fd5b81516118ed816126c2565b6000602082840312156122b5578081fd5b815180151581146118ed578182fd5b60006101008083850312156122d7578182fd5b6040519081019067ffffffffffffffff821181831017156122f6578283fd5b81604052835181526020840151602082015260408401516040820152606084015160608201526080840151608082015260a084015160a082015260c084015160c082015260e084015160e0820152809250505092915050565b600060208284031215612360578081fd5b5035919050565b600060208284031215612378578081fd5b5051919050565b60008251612391818460208701612696565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0392831681529116602082015260400190565b901515815260200190565b600060208252825180602084015261240c816040850160208701612696565b601f01601f19169190910160400192915050565b6020808252600b908201526a085cdd1c985d1959da5cdd60aa1b604082015260600190565b602080825260059082015264085dd85b9d60da1b604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b602080825260069082015265085d985d5b1d60d21b604082015260600190565b6020808252600790820152662173686172657360c81b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252600b908201526a08585d5d1a1bdc9a5e995960aa1b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252600a9082015269085c1c9bdd1958dd195960b21b604082015260600190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606082015260800190565b90815260200190565b9283526001600160a01b03919091166020830152604082015260600190565b9283526020830191909152604082015260600190565b93845260208401929092526040830152606082015260800190565b60005b838110156126b1578181015183820152602001612699565b83811115611d285750506000910152565b6001600160a01b03811681146118a857600080fdfea264697066735822122037ada71672bc88ecda41660613f4602317295a7c36c0cfd03678776aede1e19b64736f6c634300060c0033

Deployed Bytecode Sourcemap

47954:5354:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47473:440;;;;;;:::i;:::-;;:::i;:::-;;48810:101;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;30676:175;;;;;;:::i;:::-;;:::i;25952:32::-;;;:::i;:::-;;;;;;;:::i;24928:18::-;;;:::i;:::-;;;;;;;:::i;24837:25::-;;;:::i;32875:148::-;;;:::i;:::-;;;;;;;:::i;52306:97::-;;;;;;:::i;:::-;;:::i;23477:91::-;;;:::i;25558:37::-;;;:::i;44067:505::-;;;;;;:::i;:::-;;:::i;48139:20::-;;;:::i;38125:170::-;;;:::i;42341:1482::-;;;:::i;26035:25::-;;;:::i;48166:22::-;;;:::i;37510:286::-;;;;;;:::i;:::-;;:::i;28179:174::-;;;;;;:::i;:::-;;:::i;25768:33::-;;;:::i;24707:94::-;;;:::i;29950:169::-;;;;;;:::i;:::-;;:::i;24869:22::-;;;:::i;24898:21::-;;;:::i;52761:110::-;;;:::i;27423:202::-;;;;;;:::i;:::-;;:::i;45163:307::-;;;;;;:::i;:::-;;:::i;28701:181::-;;;;;;:::i;:::-;;:::i;40031:1504::-;;;;;;:::i;:::-;;:::i;48919:137::-;;;:::i;29399:151::-;;;;;;:::i;:::-;;:::i;53089:216::-;;;:::i;24809:21::-;;;:::i;45899:164::-;;;:::i;47473:440::-;26402:12;:10;:12::i;:::-;-1:-1:-1;;;;;26388:26:0;:10;-1:-1:-1;;;;;26388:26:0;;26380:50;;;;-1:-1:-1;;;26380:50:0;;;;;;;:::i;:::-;;;;;;;;;47565:4:::1;::::0;-1:-1:-1;;;;;47547:23:0;;::::1;47565:4:::0;::::1;47547:23;;47539:41;;;;-1:-1:-1::0;;;47539:41:0::1;;;;;;;:::i;:::-;47617:5;::::0;-1:-1:-1;;;;;47599:24:0;;::::1;47617:5:::0;::::1;47599:24;;47591:44;;;;-1:-1:-1::0;;;47591:44:0::1;;;;;;;:::i;:::-;47648:33;47684:17;:15;:17::i;:::-;47648:53;;47717:9;47712:102;47732:16;:23;47728:1;:27;47712:102;;;47780:16;47797:1;47780:19;;;;;;;;;;;;;;-1:-1:-1::0;;;;;47770:29:0::1;:6;-1:-1:-1::0;;;;;47770:29:0::1;;;47762:52;;;;-1:-1:-1::0;;;47762:52:0::1;;;;;;;:::i;:::-;47757:3;;47712:102;;;;47834:6;-1:-1:-1::0;;;;;47827:23:0::1;;47851:12;:10;:12::i;:::-;47865:39;::::0;-1:-1:-1;;;47865:39:0;;-1:-1:-1;;;;;47865:24:0;::::1;::::0;::::1;::::0;:39:::1;::::0;47898:4:::1;::::0;47865:39:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;47827:78;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;26441:1;47473:440:::0;:::o;48810:101::-;48891:12;48884:19;;;;;;;;-1:-1:-1;;48884:19:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48858:13;;48884:19;;48891:12;;48884:19;;48891:12;48884:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48810:101;:::o;30676:175::-;26146:10;;-1:-1:-1;;;;;26146:10:0;26132;:24;;:54;;;26174:12;:10;:12::i;:::-;-1:-1:-1;;;;;26160:26:0;:10;-1:-1:-1;;;;;26160:26:0;;26132:54;26124:78;;;;-1:-1:-1;;;26124:78:0;;;;;;;:::i;:::-;30761:13:::1;:30:::0;;;30807:36:::1;::::0;::::1;::::0;::::1;::::0;30777:14;;30807:36:::1;:::i;:::-;;;;;;;;30676:175:::0;:::o;25952:32::-;;;;:::o;24928:18::-;;;-1:-1:-1;;;;;24928:18:0;;:::o;24837:25::-;;;-1:-1:-1;;;;;24837:25:0;;:::o;32875:148::-;32916:4;32940:5;;:31;;-1:-1:-1;;;32940:31:0;;32916:4;;-1:-1:-1;;;;;32940:5:0;;:16;;:31;;32965:4;;32940:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:41;;;:45;:75;;;;33014:1;32989:22;:20;:22::i;:::-;:26;32940:75;32933:82;;32875:148;:::o;52306:97::-;48472:12;:10;:12::i;:::-;-1:-1:-1;;;;;48458:26:0;:10;-1:-1:-1;;;;;48458:26:0;;:129;;;-1:-1:-1;48505:10:0;48544:42;48505:82;48458:129;48436:162;;;;;;52377:7:::1;:18:::0;52306:97::o;23477:91::-;23546:14;;;;;;;;;;;;-1:-1:-1;;;23546:14:0;;;;23477:91;:::o;25558:37::-;;;;:::o;44067:505::-;44126:13;44182:5;;-1:-1:-1;;;;;44182:5:0;44160:10;:28;44152:47;;;;-1:-1:-1;;;44152:47:0;;;;;;;:::i;:::-;44279:19;44332:32;44350:13;44332:17;:32::i;:::-;44456:4;;;:38;;-1:-1:-1;;;44456:38:0;;44309:55;;-1:-1:-1;44309:55:0;;-1:-1:-1;;;;;;44456:4:0;;;;:13;;:38;;44470:10;;44309:55;;44456:38;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;44067:505;;;;:::o;48139:20::-;;;-1:-1:-1;;;;;48139:20:0;;:::o;38125:170::-;26514:6;;-1:-1:-1;;;;;26514:6:0;26500:10;:20;;:48;;-1:-1:-1;26538:10:0;;-1:-1:-1;;;;;26538:10:0;26524;:24;26500:48;:78;;;;26566:12;:10;:12::i;:::-;-1:-1:-1;;;;;26552:26:0;:10;-1:-1:-1;;;;;26552:26:0;;26500:78;26492:102;;;;-1:-1:-1;;;26492:102:0;;;;;;;:::i;:::-;38263:5:::1;::::0;:23:::1;::::0;;-1:-1:-1;;;38263:23:0;;;;38248:39:::1;::::0;-1:-1:-1;;;;;38263:5:0::1;::::0;:21:::1;::::0;:23:::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;:5;:23;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;38248:14;:39::i;:::-;38125:170::o:0;42341:1482::-;26514:6;;-1:-1:-1;;;;;26514:6:0;26500:10;:20;;:48;;-1:-1:-1;26538:10:0;;-1:-1:-1;;;;;26538:10:0;26524;:24;26500:48;:78;;;;26566:12;:10;:12::i;:::-;-1:-1:-1;;;;;26552:26:0;:10;-1:-1:-1;;;;;26552:26:0;;26500:78;26492:102;;;;-1:-1:-1;;;26492:102:0;;;;;;;:::i;:::-;42392:14:::1;42421:12:::0;42448:23:::1;42474:5:::0;::::1;;;;;;;;-1:-1:-1::0;;;;;42474:5:0::1;-1:-1:-1::0;;;;;42474:21:0::1;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;42546:13;::::0;42448:49;;-1:-1:-1;42508:19:0::1;::::0;42546:13:::1;;42542:731;;;42628:19;42650:22;:20;:22::i;:::-;42628:44;;42806:80;42838:15;42824:11;:29;:61;;42870:15;42824:61;;;42856:11;42824:61;42806:17;:80::i;:::-;42784:102:::0;-1:-1:-1;42784:102:0;-1:-1:-1;42964:29:0;;::::1;42960:159;;;43023:32;:11:::0;43039:15;43023::::1;:32::i;:::-;43014:41;;43088:15;43074:29;;42960:159;42542:731;;;;43231:30;43245:15;43231:13;:30::i;:::-;43201:60:::0;;-1:-1:-1;43201:60:0;-1:-1:-1;43201:60:0;-1:-1:-1;42542:731:0::1;43487:5;::::0;:39:::1;::::0;-1:-1:-1;;;43487:39:0;;-1:-1:-1;;;;;43487:5:0;;::::1;::::0;:12:::1;::::0;:39:::1;::::0;43500:6;;43508:4;;43514:11;;43487:39:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;43469:57;;43618:19;:17;:19::i;:::-;43713:31;43728:15;43713:14;:31::i;:::-;43762:53;43772:6;43780:4;43786:11;43799:15;43762:53;;;;;;;;;:::i;:::-;;;;;;;;26605:1;;;;42341:1482::o:0;26035:25::-;;;;;;:::o;48166:22::-;;;;:::o;37510:286::-;37578:4;37510:286;;;;:::o;28179:174::-;26146:10;;-1:-1:-1;;;;;26146:10:0;26132;:24;;:54;;;26174:12;:10;:12::i;:::-;-1:-1:-1;;;;;26160:26:0;:10;-1:-1:-1;;;;;26160:26:0;;26132:54;26124:78;;;;-1:-1:-1;;;26124:78:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;28258:21:0;::::1;28250:30;;;::::0;::::1;;28291:6;:16:::0;;-1:-1:-1;;;;;;28291:16:0::1;-1:-1:-1::0;;;;;28291:16:0;::::1;;::::0;;28323:22:::1;::::0;::::1;::::0;::::1;::::0;28291:16;;28323:22:::1;:::i;25768:33::-:0;;;;:::o;24707:94::-;24765:7;24707:94;:::o;29950:169::-;26146:10;;-1:-1:-1;;;;;26146:10:0;26132;:24;;:54;;;26174:12;:10;:12::i;:::-;-1:-1:-1;;;;;26160:26:0;:10;-1:-1:-1;;;;;26160:26:0;;26132:54;26124:78;;;;-1:-1:-1;;;26124:78:0;;;;;;;:::i;:::-;30033:12:::1;:28:::0;;;30077:34:::1;::::0;::::1;::::0;::::1;::::0;30048:13;;30077:34:::1;:::i;24869:22::-:0;;;-1:-1:-1;;;;;24869:22:0;;:::o;24898:21::-;;;-1:-1:-1;;;;;24898:21:0;;:::o;52761:110::-;52834:4;;;:29;;-1:-1:-1;;;52834:29:0;;52807:7;;-1:-1:-1;;;;;52834:4:0;;;;:14;;:29;;52857:4;;52834:29;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;27423:202::-;26146:10;;-1:-1:-1;;;;;26146:10:0;26132;:24;;:54;;;26174:12;:10;:12::i;:::-;-1:-1:-1;;;;;26160:26:0;:10;-1:-1:-1;;;;;26160:26:0;;26132:54;26124:78;;;;-1:-1:-1;;;26124:78:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;27510:25:0;::::1;27502:34;;;::::0;::::1;;27547:10;:24:::0;;-1:-1:-1;;;;;;27547:24:0::1;-1:-1:-1::0;;;;;27547:24:0;::::1;;::::0;;27587:30:::1;::::0;::::1;::::0;::::1;::::0;27547:24;;27587:30:::1;:::i;45163:307::-:0;45252:5;;-1:-1:-1;;;;;45252:5:0;45230:10;:28;;:58;;;45276:12;:10;:12::i;:::-;-1:-1:-1;;;;;45262:26:0;:10;-1:-1:-1;;;;;45262:26:0;;45230:58;45222:67;;;;;;45346:5;;;;;;;;-1:-1:-1;;;;;45346:5:0;-1:-1:-1;;;;;45308:43:0;45321:12;-1:-1:-1;;;;;45308:32:0;;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;45308:43:0;;45300:52;;;;;;45363:30;45380:12;45363:16;:30::i;:::-;45404:4;;;45432:29;;-1:-1:-1;;;45432:29:0;;-1:-1:-1;;;;;45404:4:0;;;;:13;;45418:12;;45404:4;;45432:14;;:29;;45455:4;;45432:29;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;45404:58;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;45163:307;:::o;28701:181::-;26289:10;;-1:-1:-1;;;;;26289:10:0;26275;:24;26267:48;;;;-1:-1:-1;;;26267:48:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;28782:22:0;::::1;28774:31;;;::::0;::::1;;28816:7;:18:::0;;-1:-1:-1;;;;;;28816:18:0::1;-1:-1:-1::0;;;;;28816:18:0;::::1;;::::0;;28850:24:::1;::::0;::::1;::::0;::::1;::::0;28816:18;;28850:24:::1;:::i;40031:1504::-:0;40102:4;40119:28;;:::i;:::-;40150:5;;:31;;-1:-1:-1;;;40150:31:0;;-1:-1:-1;;;;;40150:5:0;;;;:16;;:31;;40175:4;;40150:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;40119:62;;40258:6;:17;;;40279:1;40258:22;40254:40;;;40289:5;40282:12;;;;;40254:40;40413:14;;40391:17;;;;40371:38;;:15;;:19;:38::i;:::-;:56;40367:73;;40436:4;40429:11;;;;;40367:73;40848:19;40870:5;;;;;;;;;-1:-1:-1;;;;;40870:5:0;-1:-1:-1;;;;;40870:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;40848:45;;40922:13;;40908:11;:27;40904:44;;;40944:4;40937:11;;;;;;40904:44;41002:13;41018:22;:20;:22::i;:::-;41002:38;;41130:6;:16;;;41103:24;41113:13;;41103:5;:9;;:24;;;;:::i;:::-;:43;41099:60;;;41155:4;41148:11;;;;;;;41099:60;41172:14;41213:6;:16;;;41205:5;:24;41201:66;;;41250:16;;;;41240:27;;:5;;:9;:27::i;:::-;41231:36;;41201:66;41420:14;41437:5;;;;;;;;;-1:-1:-1;;;;;41437:5:0;-1:-1:-1;;;;;41437:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;41420:40;-1:-1:-1;41508:18:0;41420:40;41519:6;41508:10;:18::i;:::-;41479:12;;:26;;41496:8;41479:16;:26::i;:::-;:47;;40031:1504;-1:-1:-1;;;;;;;40031:1504:0:o;48919:137::-;48981:7;49008:40;49028:19;:17;:19::i;:::-;49008:15;:13;:15::i;:::-;:19;;:40::i;29399:151::-;26146:10;;-1:-1:-1;;;;;26146:10:0;26132;:24;;:54;;;26174:12;:10;:12::i;:::-;-1:-1:-1;;;;;26160:26:0;:10;-1:-1:-1;;;;;26160:26:0;;26132:54;26124:78;;;;-1:-1:-1;;;26124:78:0;;;;;;;:::i;:::-;29477:14:::1;:23:::0;;;29516:26:::1;::::0;::::1;::::0;::::1;::::0;29494:6;;29516:26:::1;:::i;53089:216::-:0;53139:7;53179:118;53265:6;;;;;;;;;-1:-1:-1;;;;;53265:6:0;-1:-1:-1;;;;;53265:15:0;;:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;53261:2;:21;53179:59;53215:6;;;;;;;;;-1:-1:-1;;;;;53215:6:0;-1:-1:-1;;;;;53215:20:0;;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;53179:6;;:31;;-1:-1:-1;;;53179:31:0;;-1:-1:-1;;;;;53179:6:0;;;;:16;;:31;;53204:4;;53179:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:35;;:59::i;:::-;:63;;:118::i;24809:21::-;;;-1:-1:-1;;;;;24809:21:0;;:::o;45899:164::-;26146:10;;-1:-1:-1;;;;;26146:10:0;26132;:24;;:54;;;26174:12;:10;:12::i;:::-;-1:-1:-1;;;;;26160:26:0;:10;-1:-1:-1;;;;;26160:26:0;;26132:54;26124:78;;;;-1:-1:-1;;;26124:78:0;;;;;;;:::i;:::-;45962:13:::1;:20:::0;;-1:-1:-1;;45962:20:0::1;45978:4;45962:20;::::0;;:13:::1;45993:5:::0;;:22:::1;::::0;;-1:-1:-1;;;45993:22:0;;;;-1:-1:-1;;;;;45993:5:0;;::::1;::::0;:20:::1;::::0;:22:::1;::::0;;::::1;::::0;;;;;;45962:13;45993:5;:22;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;46033:22:0::1;::::0;::::1;::::0;-1:-1:-1;46033:22:0;;-1:-1:-1;46033:22:0::1;45899:164::o:0;31005:98::-;31050:7;31077:5;;;;;;;;;-1:-1:-1;;;;;31077:5:0;-1:-1:-1;;;;;31077:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;52079:219::-;52218:16;;;52232:1;52218:16;;;;;;;;;52174:20;;52218:16;;;;;;;;;-1:-1:-1;;52262:6:0;;52245;;;;-1:-1:-1;;;;;;52262:6:0;;52245;;-1:-1:-1;52262:6:0;;52245;;;;;;;;;:24;-1:-1:-1;;;;;52245:24:0;;;-1:-1:-1;;;;;52245:24:0;;;;;52079:219;:::o;50732:667::-;50836:25;50863:13;50894:15;50912;:13;:15::i;:::-;50894:33;;50953:13;50942:7;:24;50938:82;;50991:13;51006:1;50983:25;;;;;;;50938:82;51032:18;51053:26;:13;51071:7;51053:17;:26::i;:::-;51032:47;;51090:31;51110:10;51090:19;:31::i;:::-;51134:19;51156:15;:13;:15::i;:::-;51134:37;;51202:11;51186:13;:27;51182:210;;;51250:11;-1:-1:-1;51250:11:0;51284:30;:13;51250:11;51284:17;:30::i;:::-;51276:38;;51182:210;;;51367:13;51347:33;;51182:210;50732:667;;;;;;;:::o;50399:325::-;50482:13;;;;50478:52;;;50512:7;;50478:52;50542:15;50560;:13;:15::i;:::-;50542:33;-1:-1:-1;50590:11:0;;50586:131;;50642:6;;50659:4;;50618:56;;-1:-1:-1;;;;;50642:6:0;;;;50659:4;50666:7;50618:15;:56::i;:::-;50689:6;;;;;;;;;-1:-1:-1;;;;;50689:6:0;-1:-1:-1;;;;;50689:14:0;;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50399:325;;;:::o;11559:136::-;11617:7;11644:43;11648:1;11651;11644:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;11637:50;;11559:136;;;;;:::o;49064:1327::-;49181:15;49308:5;;:31;;-1:-1:-1;;;49308:31:0;;49181:15;;;;;;-1:-1:-1;;;;;49308:5:0;;:16;;:31;;49333:4;;49308:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:41;;;49287:62;;49360:19;49382:22;:20;:22::i;:::-;49360:44;;49482:11;49468:10;:25;49464:95;;49520:27;:11;49536:10;49520:15;:27::i;:::-;49510:37;;49464:95;49607:20;49662:72;49694:29;:16;49715:7;49694:20;:29::i;49662:72::-;49638:96;-1:-1:-1;49638:96:0;-1:-1:-1;49760:40:0;49769:16;49638:96;49760:8;:40::i;:::-;49745:55;;49825:7;49817:5;:15;49813:571;;;50040:18;:5;50050:7;50040:9;:18::i;:::-;50032:26;;50083:1;50073:11;;49813:571;;;50330:18;:7;50342:5;50330:11;:18::i;:::-;50320:28;;50371:1;50363:9;;49813:571;49064:1327;;;;;;;;:::o;36257:297::-;36412:15;36430:5;;:30;;-1:-1:-1;;;36430:30:0;;-1:-1:-1;;;;;36430:5:0;;;;:15;;:30;;36454:4;;36430:30;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;36412:48;-1:-1:-1;36475:11:0;;36471:76;;36503:5;;36518:7;;36503:32;;-1:-1:-1;;;36503:32:0;;-1:-1:-1;;;;;36503:5:0;;;;:14;;:32;;36518:7;;;36527;;36503:32;;;:::i;51867:204::-;52020:6;;52013:39;;-1:-1:-1;;;52013:39:0;;51944:119;;51986:12;;-1:-1:-1;;;;;52020:6:0;;;;52013:24;;:39;;52046:4;;52013:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;51951:6;;-1:-1:-1;;;;;51951:6:0;;51944:119;:27;:119::i;11095:181::-;11153:7;11185:5;;;11209:6;;;;11201:46;;;;-1:-1:-1;;;11201:46:0;;;;;;;:::i;12449:471::-;12507:7;12752:6;12748:47;;-1:-1:-1;12782:1:0;12775:8;;12748:47;12819:5;;;12823:1;12819;:5;:1;12843:5;;;;;:10;12835:56;;;;-1:-1:-1;;;12835:56:0;;;;;;;:::i;13396:132::-;13454:7;13481:39;13485:1;13488;13481:39;;;;;;;;;;;;;;;;;:3;:39::i;51407:452::-;51477:12;51473:51;;51506:7;;51473:51;51564:6;;:31;;-1:-1:-1;;;51564:31:0;;51536:25;;-1:-1:-1;;;;;51564:6:0;;:16;;:31;;51589:4;;51564:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;51536:59;;51606:24;51646:63;51655:34;51681:7;51655:25;:34::i;:::-;51691:17;51646:8;:63::i;:::-;51606:103;-1:-1:-1;51726:21:0;51722:60;;51764:7;;;;51722:60;51794:6;;51843:7;;51794:57;;-1:-1:-1;;;51794:57:0;;-1:-1:-1;;;;;51794:6:0;;;;:15;;:57;;51810:16;;51836:4;;51794:57;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;51407:452;;;:::o;52411:342::-;52546:50;;-1:-1:-1;;;52546:50:0;;52599:7;;-1:-1:-1;;;;;52546:24:0;;;;;:50;;52579:4;;52586:9;;52546:50;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:60;52542:204;;;52623:40;-1:-1:-1;;;;;52623:26:0;;52650:9;52661:1;52623:26;:40::i;:::-;52678:56;-1:-1:-1;;;;;52678:26:0;;52705:9;-1:-1:-1;;52678:26:0;:56::i;11998:192::-;12084:7;12120:12;12112:6;;;;12104:29;;;;-1:-1:-1;;;12104:29:0;;;;;;;;:::i;:::-;-1:-1:-1;;;12156:5:0;;;11998:192::o;9767:106::-;9825:7;9856:1;9852;:5;:13;;9864:1;9852:13;;;-1:-1:-1;9860:1:0;;9767:106;-1:-1:-1;9767:106:0:o;16585:177::-;16668:86;16688:5;16718:23;;;16743:2;16747:5;16695:58;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;16695:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;16695:58:0;-1:-1:-1;;;;;;16695:58:0;;;;;;;;;;16668:19;:86::i;14024:278::-;14110:7;14145:12;14138:5;14130:28;;;;-1:-1:-1;;;14130:28:0;;;;;;;;:::i;:::-;;14169:9;14185:1;14181;:5;;;;;;;14024:278;-1:-1:-1;;;;;14024:278:0:o;52879:202::-;52980:7;53012:61;53050:6;;;;;;;;;-1:-1:-1;;;;;53050:6:0;-1:-1:-1;;;;;53050:20:0;;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;53027:6;;:17;;;-1:-1:-1;;;53027:17:0;;;;53012:33;;-1:-1:-1;;;;;53027:6:0;;:15;;:17;;;;;;;;;;;;;;:6;:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;53012:6;;53023:2;:21;53012:10;:33::i;17244:622::-;17614:10;;;17613:62;;-1:-1:-1;17630:39:0;;-1:-1:-1;;;17630:39:0;;-1:-1:-1;;;;;17630:15:0;;;;;:39;;17654:4;;17661:7;;17630:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;17613:62;17605:152;;;;-1:-1:-1;;;17605:152:0;;;;;;;:::i;:::-;17768:90;17788:5;17818:22;;;17842:7;17851:5;17795:62;;;;;;;;;:::i;18890:761::-;19314:23;19340:69;19368:4;19340:69;;;;;;;;;;;;;;;;;19348:5;-1:-1:-1;;;;;19340:27:0;;;:69;;;;;:::i;:::-;19424:17;;19314:95;;-1:-1:-1;19424:21:0;19420:224;;19566:10;19555:30;;;;;;;;;;;;:::i;:::-;19547:85;;;;-1:-1:-1;;;19547:85:0;;;;;;;:::i;4224:196::-;4327:12;4359:53;4382:6;4390:4;4396:1;4399:12;4359:22;:53::i;:::-;4352:60;4224:196;-1:-1:-1;;;;4224:196:0:o;5601:979::-;5731:12;5764:18;5775:6;5764:10;:18::i;:::-;5756:60;;;;-1:-1:-1;;;5756:60:0;;;;;;;:::i;:::-;5890:12;5904:23;5931:6;-1:-1:-1;;;;;5931:11:0;5951:8;5962:4;5931:36;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5889:78;;;;5982:7;5978:595;;;6013:10;-1:-1:-1;6006:17:0;;-1:-1:-1;6006:17:0;5978:595;6127:17;;:21;6123:439;;6390:10;6384:17;6451:15;6438:10;6434:2;6430:19;6423:44;6338:148;6533:12;6526:20;;-1:-1:-1;;;6526:20:0;;;;;;;;:::i;1109:619::-;1169:4;1637:20;;1480:66;1677:23;;;;;;:42;;-1:-1:-1;;1704:15:0;;;1669:51;-1:-1:-1;;1109:619:0:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2394:241::-;;2498:2;2486:9;2477:7;2473:23;2469:32;2466:2;;;-1:-1;;2504:12;2466:2;85:6;72:20;97:33;124:5;97:33;:::i;2642:263::-;;2757:2;2745:9;2736:7;2732:23;2728:32;2725:2;;;-1:-1;;2763:12;2725:2;226:6;220:13;238:33;265:5;238:33;:::i;2912:257::-;;3024:2;3012:9;3003:7;2999:23;2995:32;2992:2;;;-1:-1;;3030:12;2992:2;364:6;358:13;22155:5;19981:13;19974:21;22133:5;22130:32;22120:2;;-1:-1;;22166:12;3478:324;;3623:3;;3611:9;3602:7;3598:23;3594:33;3591:2;;;-1:-1;;3630:12;3591:2;19034;19028:9;19060:17;;;;19135:18;19120:34;;19156:22;;;19117:62;19114:2;;;-1:-1;;19182:12;19114:2;19212:10;19034:2;19201:22;933;2331:13;883:16;876:86;1029:2;1098:9;1094:22;2331:13;1029:2;1048:5;1044:16;1037:86;19034:2;1258:9;1254:22;2331:13;19034:2;1208:5;1204:16;1197:86;1349:2;1418:9;1414:22;2331:13;1349:2;1368:5;1364:16;1357:86;1510:3;1580:9;1576:22;2331:13;1510:3;1530:5;1526:16;1519:86;1671:3;1741:9;1737:22;2331:13;1671:3;1691:5;1687:16;1680:86;1832:3;1902:9;1898:22;2331:13;1832:3;1852:5;1848:16;1841:86;1993:3;2063:9;2059:22;2331:13;1993:3;2013:5;2009:16;2002:86;3682:104;;;;;3585:217;;;;:::o;3809:241::-;;3913:2;3901:9;3892:7;3888:23;3884:32;3881:2;;;-1:-1;;3919:12;3881:2;-1:-1;2183:20;;3875:175;-1:-1;3875:175::o;4057:263::-;;4172:2;4160:9;4151:7;4147:23;4143:32;4140:2;;;-1:-1;;4178:12;4140:2;-1:-1;2331:13;;4134:186;-1:-1;4134:186::o;9773:271::-;;4867:5;19322:12;4978:52;5023:6;5018:3;5011:4;5004:5;5000:16;4978:52;:::i;:::-;5042:16;;;;;9907:137;-1:-1;;9907:137::o;10051:222::-;-1:-1;;;;;20183:54;;;;4547:37;;10178:2;10163:18;;10149:124::o;10280:349::-;-1:-1;;;;;20183:54;;;;4406:58;;10615:2;10600:18;;9724:37;10443:2;10428:18;;10414:215::o;10636:333::-;-1:-1;;;;;20183:54;;;4547:37;;20183:54;;10955:2;10940:18;;4547:37;10791:2;10776:18;;10762:207::o;11316:210::-;19981:13;;19974:21;4661:34;;11437:2;11422:18;;11408:118::o;12308:310::-;;12455:2;12476:17;12469:47;5702:5;19322:12;19761:6;12455:2;12444:9;12440:18;19749:19;5796:52;5841:6;19789:14;12444:9;19789:14;12455:2;5822:5;5818:16;5796:52;:::i;:::-;21929:7;21913:14;-1:-1;;21909:28;5860:39;;;;19789:14;5860:39;;12426:192;-1:-1;;12426:192::o;12625:416::-;12825:2;12839:47;;;6136:2;12810:18;;;19749:19;-1:-1;;;19789:14;;;6152:34;6205:12;;;12796:245::o;13048:416::-;13248:2;13262:47;;;6456:1;13233:18;;;19749:19;-1:-1;;;19789:14;;;6471:28;6518:12;;;13219:245::o;13471:416::-;13671:2;13685:47;;;6769:2;13656:18;;;19749:19;6805:29;19789:14;;;6785:50;6854:12;;;13642:245::o;13894:416::-;14094:2;14108:47;;;7105:2;14079:18;;;19749:19;7141:34;19789:14;;;7121:55;-1:-1;;;7196:12;;;7189:25;7233:12;;;14065:245::o;14317:416::-;14517:2;14531:47;;;7484:1;14502:18;;;19749:19;-1:-1;;;19789:14;;;7499:29;7547:12;;;14488:245::o;14740:416::-;14940:2;14954:47;;;7798:1;14925:18;;;19749:19;-1:-1;;;19789:14;;;7813:30;7862:12;;;14911:245::o;15163:416::-;15363:2;15377:47;;;8113:2;15348:18;;;19749:19;8149:31;19789:14;;;8129:52;8200:12;;;15334:245::o;15586:416::-;15786:2;15800:47;;;8451:2;15771:18;;;19749:19;-1:-1;;;19789:14;;;8467:34;8520:12;;;15757:245::o;16009:416::-;16209:2;16223:47;;;8771:2;16194:18;;;19749:19;8807:34;19789:14;;;8787:55;-1:-1;;;8862:12;;;8855:34;8908:12;;;16180:245::o;16432:416::-;16632:2;16646:47;;;9159:2;16617:18;;;19749:19;-1:-1;;;19789:14;;;9175:33;9227:12;;;16603:245::o;16855:416::-;17055:2;17069:47;;;9478:2;17040:18;;;19749:19;9514:34;19789:14;;;9494:55;-1:-1;;;9569:12;;;9562:46;9627:12;;;17026:245::o;17278:222::-;9724:37;;;17405:2;17390:18;;17376:124::o;17507:444::-;9724:37;;;-1:-1;;;;;20183:54;;;;17854:2;17839:18;;4547:37;17937:2;17922:18;;9724:37;17690:2;17675:18;;17661:290::o;17958:444::-;9724:37;;;18305:2;18290:18;;9724:37;;;;18388:2;18373:18;;9724:37;18141:2;18126:18;;18112:290::o;18409:556::-;9724:37;;;18785:2;18770:18;;9724:37;;;;18868:2;18853:18;;9724:37;18951:2;18936:18;;9724:37;18620:3;18605:19;;18591:374::o;21569:268::-;21634:1;21641:101;21655:6;21652:1;21649:13;21641:101;;;21722:11;;;21716:18;21703:11;;;21696:39;21677:2;21670:10;21641:101;;;21757:6;21754:1;21751:13;21748:2;;;-1:-1;;21634:1;21804:16;;21797:27;21618:219::o;21950:117::-;-1:-1;;;;;20183:54;;22009:35;;21999:2;;22058:1;;22048:12

Swarm Source

ipfs://37ada71672bc88ecda41660613f4602317295a7c36c0cfd03678776aede1e19b

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.