ETH Price: $3,219.50 (+3.41%)

Contract

0x7A477D6570386e2b9D0F14d03BD976b0C68b94b9
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RibbonThetaVault

Compiler Version
v0.7.2+commit.51b20bc0

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-12-23
*/

/**
 *Submitted for verification at Etherscan.io on 2021-09-13
*/

pragma solidity >=0.7.2;
pragma experimental ABIEncoderV2;


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

// 
/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */

// 
/**
 * @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, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @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) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @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) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * 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);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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;
    }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

contract DSMath {
    function add(uint x, uint y) internal pure returns (uint z) {
        require((z = x + y) >= x, "ds-math-add-overflow");
    }
    function sub(uint x, uint y) internal pure returns (uint z) {
        require((z = x - y) <= x, "ds-math-sub-underflow");
    }
    function mul(uint x, uint y) internal pure returns (uint z) {
        require(y == 0 || (z = x * y) / y == x, "ds-math-mul-overflow");
    }

    function min(uint x, uint y) internal pure returns (uint z) {
        return x <= y ? x : y;
    }
    function max(uint x, uint y) internal pure returns (uint z) {
        return x >= y ? x : y;
    }
    function imin(int x, int y) internal pure returns (int z) {
        return x <= y ? x : y;
    }
    function imax(int x, int y) internal pure returns (int z) {
        return x >= y ? x : y;
    }

    uint constant WAD = 10 ** 18;
    uint constant RAY = 10 ** 27;

    //rounds to zero if x*y < WAD / 2
    function wmul(uint x, uint y) internal pure returns (uint z) {
        z = add(mul(x, y), WAD / 2) / WAD;
    }
    //rounds to zero if x*y < WAD / 2
    function rmul(uint x, uint y) internal pure returns (uint z) {
        z = add(mul(x, y), RAY / 2) / RAY;
    }
    //rounds to zero if x*y < WAD / 2
    function wdiv(uint x, uint y) internal pure returns (uint z) {
        z = add(mul(x, WAD), y / 2) / y;
    }
    //rounds to zero if x*y < RAY / 2
    function rdiv(uint x, uint y) internal pure returns (uint z) {
        z = add(mul(x, RAY), y / 2) / y;
    }

    // This famous algorithm is called "exponentiation by squaring"
    // and calculates x^n with x as fixed-point and n as regular unsigned.
    //
    // It's O(log n), instead of O(n) for naive repeated multiplication.
    //
    // These facts are why it works:
    //
    //  If n is even, then x^n = (x^2)^(n/2).
    //  If n is odd,  then x^n = x * x^(n-1),
    //   and applying the equation for even x gives
    //    x^n = x * (x^2)^((n-1) / 2).
    //
    //  Also, EVM division is flooring and
    //    floor[(n-1) / 2] = floor[n / 2].
    //
    function rpow(uint x, uint n) internal pure returns (uint z) {
        z = n % 2 != 0 ? x : RAY;

        for (n /= 2; n != 0; n /= 2) {
            x = rmul(x, x);

            if (n % 2 != 0) {
                z = rmul(z, x);
            }
        }
    }
}

library ProtocolAdapterTypes {
    enum OptionType {Invalid, Put, Call}

    // We have 2 types of purchase methods so far - by contract and by 0x.
    // Contract is simple because it involves just specifying the option terms you want to buy.
    // ZeroEx involves an off-chain API call which prepares a ZeroExOrder object to be passed into the tx.
    enum PurchaseMethod {Invalid, Contract, ZeroEx}

    /**
     * @notice Terms of an options contract
     * @param underlying is the underlying asset of the options. E.g. For ETH $800 CALL, ETH is the underlying.
     * @param strikeAsset is the asset used to denote the asset paid out when exercising the option.
     *        E.g. For ETH $800 CALL, USDC is the strikeAsset.
     * @param collateralAsset is the asset used to collateralize a short position for the option.
     * @param expiry is the expiry of the option contract. Users can only exercise after expiry in Europeans.
     * @param strikePrice is the strike price of an optio contract.
     *        E.g. For ETH $800 CALL, 800*10**18 is the USDC.
     * @param optionType is the type of option, can only be OptionType.Call or OptionType.Put
     * @param paymentToken is the token used to purchase the option.
     *        E.g. Buy UNI/USDC CALL with WETH as the paymentToken.
     */
    struct OptionTerms {
        address underlying;
        address strikeAsset;
        address collateralAsset;
        uint256 expiry;
        uint256 strikePrice;
        ProtocolAdapterTypes.OptionType optionType;
        address paymentToken;
    }

    /**
     * @notice 0x order for purchasing otokens
     * @param exchangeAddress [deprecated] is the address we call to conduct a 0x trade.
     * Slither flagged this as a potential vulnerability so we hardcoded it.
     * @param buyTokenAddress is the otoken address
     * @param sellTokenAddress is the token used to purchase USDC. This is USDC most of the time.
     * @param allowanceTarget is the address the adapter needs to provide sellToken allowance to so the swap happens
     * @param protocolFee is the fee paid (in ETH) when conducting the trade
     * @param makerAssetAmount is the buyToken amount
     * @param takerAssetAmount is the sellToken amount
     * @param swapData is the encoded msg.data passed by the 0x api response
     */
    struct ZeroExOrder {
        address exchangeAddress;
        address buyTokenAddress;
        address sellTokenAddress;
        address allowanceTarget;
        uint256 protocolFee;
        uint256 makerAssetAmount;
        uint256 takerAssetAmount;
        bytes swapData;
    }
}

interface IProtocolAdapter {
    /**
     * @notice Emitted when a new option contract is purchased
     */
    event Purchased(
        address indexed caller,
        string indexed protocolName,
        address indexed underlying,
        uint256 amount,
        uint256 optionID
    );

    /**
     * @notice Emitted when an option contract is exercised
     */
    event Exercised(
        address indexed caller,
        address indexed options,
        uint256 indexed optionID,
        uint256 amount,
        uint256 exerciseProfit
    );

    /**
     * @notice Name of the adapter. E.g. "HEGIC", "OPYN_V1". Used as index key for adapter addresses
     */
    function protocolName() external pure returns (string memory);

    /**
     * @notice Boolean flag to indicate whether to use option IDs or not.
     * Fungible protocols normally use tokens to represent option contracts.
     */
    function nonFungible() external pure returns (bool);

    /**
     * @notice Returns the purchase method used to purchase options
     */
    function purchaseMethod()
        external
        pure
        returns (ProtocolAdapterTypes.PurchaseMethod);

    /**
     * @notice Check if an options contract exist based on the passed parameters.
     * @param optionTerms is the terms of the option contract
     */
    function optionsExist(ProtocolAdapterTypes.OptionTerms calldata optionTerms)
        external
        view
        returns (bool);

    /**
     * @notice Get the options contract's address based on the passed parameters
     * @param optionTerms is the terms of the option contract
     */
    function getOptionsAddress(
        ProtocolAdapterTypes.OptionTerms calldata optionTerms
    ) external view returns (address);

    /**
     * @notice Gets the premium to buy `purchaseAmount` of the option contract in ETH terms.
     * @param optionTerms is the terms of the option contract
     * @param purchaseAmount is the number of options purchased
     */
    function premium(
        ProtocolAdapterTypes.OptionTerms calldata optionTerms,
        uint256 purchaseAmount
    ) external view returns (uint256 cost);

    /**
     * @notice Amount of profit made from exercising an option contract (current price - strike price).
     *         0 if exercising out-the-money.
     * @param options is the address of the options contract
     * @param optionID is the ID of the option position in non fungible protocols like Hegic.
     * @param amount is the amount of tokens or options contract to exercise.
     */
    function exerciseProfit(
        address options,
        uint256 optionID,
        uint256 amount
    ) external view returns (uint256 profit);

    function canExercise(
        address options,
        uint256 optionID,
        uint256 amount
    ) external view returns (bool);

    /**
     * @notice Purchases the options contract.
     * @param optionTerms is the terms of the option contract
     * @param amount is the purchase amount in Wad units (10**18)
     */
    function purchase(
        ProtocolAdapterTypes.OptionTerms calldata optionTerms,
        uint256 amount,
        uint256 maxCost
    ) external payable returns (uint256 optionID);

    /**
     * @notice Exercises the options contract.
     * @param options is the address of the options contract
     * @param optionID is the ID of the option position in non fungible protocols like Hegic.
     * @param amount is the amount of tokens or options contract to exercise.
     * @param recipient is the account that receives the exercised profits.
     * This is needed since the adapter holds all the positions
     */
    function exercise(
        address options,
        uint256 optionID,
        uint256 amount,
        address recipient
    ) external payable;

    /**
     * @notice Opens a short position for a given `optionTerms`.
     * @param optionTerms is the terms of the option contract
     * @param amount is the short position amount
     */
    function createShort(
        ProtocolAdapterTypes.OptionTerms calldata optionTerms,
        uint256 amount
    ) external returns (uint256);

    /**
     * @notice Closes an existing short position. In the future,
     * we may want to open this up to specifying a particular short position to close.
     */
    function closeShort() external returns (uint256);
}

library ProtocolAdapter {
    function delegateOptionsExist(
        IProtocolAdapter adapter,
        ProtocolAdapterTypes.OptionTerms calldata optionTerms
    ) external view returns (bool) {
        (bool success, bytes memory result) =
            address(adapter).staticcall(
                abi.encodeWithSignature(
                    "optionsExist((address,address,address,uint256,uint256,uint8,address))",
                    optionTerms
                )
            );
        revertWhenFail(success, result);
        return abi.decode(result, (bool));
    }

    function delegateGetOptionsAddress(
        IProtocolAdapter adapter,
        ProtocolAdapterTypes.OptionTerms calldata optionTerms
    ) external view returns (address) {
        (bool success, bytes memory result) =
            address(adapter).staticcall(
                abi.encodeWithSignature(
                    "getOptionsAddress((address,address,address,uint256,uint256,uint8,address))",
                    optionTerms
                )
            );
        revertWhenFail(success, result);
        return abi.decode(result, (address));
    }

    function delegatePremium(
        IProtocolAdapter adapter,
        ProtocolAdapterTypes.OptionTerms calldata optionTerms,
        uint256 purchaseAmount
    ) external view returns (uint256) {
        (bool success, bytes memory result) =
            address(adapter).staticcall(
                abi.encodeWithSignature(
                    "premium((address,address,address,uint256,uint256,uint8,address),uint256)",
                    optionTerms,
                    purchaseAmount
                )
            );
        revertWhenFail(success, result);
        return abi.decode(result, (uint256));
    }

    function delegateExerciseProfit(
        IProtocolAdapter adapter,
        address options,
        uint256 optionID,
        uint256 amount
    ) external view returns (uint256) {
        (bool success, bytes memory result) =
            address(adapter).staticcall(
                abi.encodeWithSignature(
                    "exerciseProfit(address,uint256,uint256)",
                    options,
                    optionID,
                    amount
                )
            );
        revertWhenFail(success, result);
        return abi.decode(result, (uint256));
    }

    function delegatePurchase(
        IProtocolAdapter adapter,
        ProtocolAdapterTypes.OptionTerms calldata optionTerms,
        uint256 purchaseAmount,
        uint256 maxCost
    ) external returns (uint256) {
        (bool success, bytes memory result) =
            address(adapter).delegatecall(
                abi.encodeWithSignature(
                    "purchase((address,address,address,uint256,uint256,uint8,address),uint256,uint256)",
                    optionTerms,
                    purchaseAmount,
                    maxCost
                )
            );
        revertWhenFail(success, result);
        return abi.decode(result, (uint256));
    }

    function delegatePurchaseWithZeroEx(
        IProtocolAdapter adapter,
        ProtocolAdapterTypes.OptionTerms calldata optionTerms,
        ProtocolAdapterTypes.ZeroExOrder calldata zeroExOrder
    ) external {
        (bool success, bytes memory result) =
            address(adapter).delegatecall(
                abi.encodeWithSignature(
                    // solhint-disable-next-line
                    "purchaseWithZeroEx((address,address,address,uint256,uint256,uint8,address),(address,address,address,address,uint256,uint256,uint256,bytes))",
                    optionTerms,
                    zeroExOrder
                )
            );
        revertWhenFail(success, result);
    }

    function delegateExercise(
        IProtocolAdapter adapter,
        address options,
        uint256 optionID,
        uint256 amount,
        address recipient
    ) external {
        (bool success, bytes memory result) =
            address(adapter).delegatecall(
                abi.encodeWithSignature(
                    "exercise(address,uint256,uint256,address)",
                    options,
                    optionID,
                    amount,
                    recipient
                )
            );
        revertWhenFail(success, result);
    }

    function delegateClaimRewards(
        IProtocolAdapter adapter,
        address rewardsAddress,
        uint256[] calldata optionIDs
    ) external returns (uint256) {
        (bool success, bytes memory result) =
            address(adapter).delegatecall(
                abi.encodeWithSignature(
                    "claimRewards(address,uint256[])",
                    rewardsAddress,
                    optionIDs
                )
            );
        revertWhenFail(success, result);
        return abi.decode(result, (uint256));
    }

    function delegateRewardsClaimable(
        IProtocolAdapter adapter,
        address rewardsAddress,
        uint256[] calldata optionIDs
    ) external view returns (uint256) {
        (bool success, bytes memory result) =
            address(adapter).staticcall(
                abi.encodeWithSignature(
                    "rewardsClaimable(address,uint256[])",
                    rewardsAddress,
                    optionIDs
                )
            );
        revertWhenFail(success, result);
        return abi.decode(result, (uint256));
    }

    function delegateCreateShort(
        IProtocolAdapter adapter,
        ProtocolAdapterTypes.OptionTerms calldata optionTerms,
        uint256 amount
    ) external returns (uint256) {
        (bool success, bytes memory result) =
            address(adapter).delegatecall(
                abi.encodeWithSignature(
                    "createShort((address,address,address,uint256,uint256,uint8,address),uint256)",
                    optionTerms,
                    amount
                )
            );
        revertWhenFail(success, result);
        return abi.decode(result, (uint256));
    }

    function delegateCloseShort(IProtocolAdapter adapter)
        external
        returns (uint256)
    {
        (bool success, bytes memory result) =
            address(adapter).delegatecall(
                abi.encodeWithSignature("closeShort()")
            );
        revertWhenFail(success, result);
        return abi.decode(result, (uint256));
    }

    function revertWhenFail(bool success, bytes memory returnData)
        private
        pure
    {
        if (success) return;
        revert(getRevertMsg(returnData));
    }

    function getRevertMsg(bytes memory _returnData)
        private
        pure
        returns (string memory)
    {
        // If the _res length is less than 68, then the transaction failed silently (without a revert message)
        if (_returnData.length < 68) return "ProtocolAdapter: reverted";

        assembly {
            // Slice the sighash.
            _returnData := add(_returnData, 0x04)
        }
        return abi.decode(_returnData, (string)); // All that remains is the revert string
    }
}

interface IRibbonFactory {
    function isInstrument(address instrument) external returns (bool);

    function getAdapter(string calldata protocolName)
        external
        view
        returns (address);

    function getAdapters()
        external
        view
        returns (address[] memory adaptersArray);

    function burnGasTokens() external;
}

interface IRibbonV2Vault {
    function depositFor(uint256 amount, address creditor) external;
}

interface IRibbonV1Vault {
    function deposit(uint256 amount) external;
}

interface IVaultRegistry {
    function canWithdrawForFree(address fromVault, address toVault)
        external
        returns (bool);

    function canCrossTrade(address longVault, address shortVault)
        external
        returns (bool);
}

interface IWETH {
    function deposit() external payable;

    function withdraw(uint256) external;

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

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

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

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

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

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

library Types {
    struct Order {
        uint256 nonce; // Unique per order and should be sequential
        uint256 expiry; // Expiry in seconds since 1 January 1970
        Party signer; // Party to the trade that sets terms
        Party sender; // Party to the trade that accepts terms
        Party affiliate; // Party compensated for facilitating (optional)
        Signature signature; // Signature of the order
    }

    struct Party {
        bytes4 kind; // Interface ID of the token
        address wallet; // Wallet address of the party
        address token; // Contract address of the token
        uint256 amount; // Amount for ERC-20 or ERC-1155
        uint256 id; // ID for ERC-721 or ERC-1155
    }

    struct Signature {
        address signatory; // Address of the wallet used to sign
        address validator; // Address of the intended swap contract
        bytes1 version; // EIP-191 signature version
        uint8 v; // `v` value of an ECDSA signature
        bytes32 r; // `r` value of an ECDSA signature
        bytes32 s; // `s` value of an ECDSA signature
    }
}

interface ISwap {
    event Swap(
        uint256 indexed nonce,
        uint256 timestamp,
        address indexed signerWallet,
        uint256 signerAmount,
        uint256 signerId,
        address signerToken,
        address indexed senderWallet,
        uint256 senderAmount,
        uint256 senderId,
        address senderToken,
        address affiliateWallet,
        uint256 affiliateAmount,
        uint256 affiliateId,
        address affiliateToken
    );

    event Cancel(uint256 indexed nonce, address indexed signerWallet);

    event CancelUpTo(uint256 indexed nonce, address indexed signerWallet);

    event AuthorizeSender(
        address indexed authorizerAddress,
        address indexed authorizedSender
    );

    event AuthorizeSigner(
        address indexed authorizerAddress,
        address indexed authorizedSigner
    );

    event RevokeSender(
        address indexed authorizerAddress,
        address indexed revokedSender
    );

    event RevokeSigner(
        address indexed authorizerAddress,
        address indexed revokedSigner
    );

    /**
     * @notice Atomic Token Swap
     * @param order Types.Order
     */
    function swap(Types.Order calldata order) external;

    /**
     * @notice Cancel one or more open orders by nonce
     * @param nonces uint256[]
     */
    function cancel(uint256[] calldata nonces) external;

    /**
     * @notice Cancels all orders below a nonce value
     * @dev These orders can be made active by reducing the minimum nonce
     * @param minimumNonce uint256
     */
    function cancelUpTo(uint256 minimumNonce) external;

    /**
     * @notice Authorize a delegated sender
     * @param authorizedSender address
     */
    function authorizeSender(address authorizedSender) external;

    /**
     * @notice Authorize a delegated signer
     * @param authorizedSigner address
     */
    function authorizeSigner(address authorizedSigner) external;

    /**
     * @notice Revoke an authorization
     * @param authorizedSender address
     */
    function revokeSender(address authorizedSender) external;

    /**
     * @notice Revoke an authorization
     * @param authorizedSigner address
     */
    function revokeSigner(address authorizedSigner) external;

    function senderAuthorizations(address, address)
        external
        view
        returns (bool);

    function signerAuthorizations(address, address)
        external
        view
        returns (bool);

    function signerNonceStatus(address, uint256) external view returns (bytes1);

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

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

interface OtokenInterface {
    function addressBook() external view returns (address);

    function underlyingAsset() external view returns (address);

    function strikeAsset() external view returns (address);

    function collateralAsset() external view returns (address);

    function strikePrice() external view returns (uint256);

    function expiryTimestamp() external view returns (uint256);

    function isPut() external view returns (bool);

    function init(
        address _addressBook,
        address _underlyingAsset,
        address _strikeAsset,
        address _collateralAsset,
        uint256 _strikePrice,
        uint256 _expiry,
        bool _isPut
    ) external;

    function mintOtoken(address account, uint256 amount) external;

    function burnOtoken(address account, uint256 amount) external;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// 
// solhint-disable-next-line compiler-version
/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {

    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /// @dev Returns true if and only if the function is running in the constructor
    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

abstract contract ReentrancyGuardUpgradeable is Initializable {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    function __ReentrancyGuard_init() internal initializer {
        __ReentrancyGuard_init_unchained();
    }

    function __ReentrancyGuard_init_unchained() internal initializer {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
    uint256[49] private __gap;
}

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

    function __Context_init_unchained() internal initializer {
    }
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

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

abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal initializer {
        __Context_init_unchained();
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal initializer {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
    uint256[49] private __gap;
}

// 
/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20Upgradeable {
    /**
     * @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);
}

// 
/**
 * @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 SafeMathUpgradeable {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @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) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @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) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * 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);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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;
    }
}

contract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable {
    using SafeMathUpgradeable for uint256;

    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    function __ERC20_init(string memory name_, string memory symbol_) internal initializer {
        __Context_init_unchained();
        __ERC20_init_unchained(name_, symbol_);
    }

    function __ERC20_init_unchained(string memory name_, string memory symbol_) internal initializer {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual returns (uint8) {
        return _decimals;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal virtual {
        _decimals = decimals_;
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
    uint256[44] private __gap;
}


contract OptionsVaultStorageV1 is
    ReentrancyGuardUpgradeable,
    OwnableUpgradeable,
    ERC20Upgradeable
{
    // DEPRECATED: This variable was originally used to store the asset address we are using as collateral
    // But due to gas optimization and upgradeability security concerns,
    // we removed it in favor of using immutable variables
    // This variable is left here to hold the storage slot for upgrades
    address private _oldAsset;

    // Privileged role that is able to select the option terms (strike price, expiry) to short
    address public manager;

    // Option that the vault is shorting in the next cycle
    address public nextOption;

    // The timestamp when the `nextOption` can be used by the vault
    uint256 public nextOptionReadyAt;

    // Option that the vault is currently shorting
    address public currentOption;

    // Amount that is currently locked for selling options
    uint256 public lockedAmount;

    // Cap for total amount deposited into vault
    uint256 public cap;

    // Fee incurred when withdrawing out of the vault, in the units of 10**18
    // where 1 ether = 100%, so 0.005 means 0.5% fee
    uint256 public instantWithdrawalFee;

    // Recipient for withdrawal fees
    address public feeRecipient;
}

contract OptionsVaultStorageV2 {
    // DEPRECATED FOR V2
    // Amount locked for scheduled withdrawals
    uint256 private queuedWithdrawShares;

    // DEPRECATED FOR V2
    // Mapping to store the scheduled withdrawals (address => withdrawAmount)
    mapping(address => uint256) private scheduledWithdrawals;
}

contract OptionsVaultStorageV3 {
    // Contract address of replacement
    IRibbonV2Vault public replacementVault;
}


contract OptionsVaultStorage is
    OptionsVaultStorageV1,
    OptionsVaultStorageV2,
    OptionsVaultStorageV3
{

}

// 
contract RibbonThetaVault is DSMath, OptionsVaultStorage {
    using ProtocolAdapter for IProtocolAdapter;
    using SafeERC20 for IERC20;
    using SafeMath for uint256;

    string private constant _adapterName = "OPYN_GAMMA";

    IProtocolAdapter public immutable adapter;
    IVaultRegistry public immutable registry;
    address public immutable asset;
    address public immutable underlying;
    address public immutable WETH;
    address public immutable USDC;
    bool public immutable isPut;
    uint8 private immutable _decimals;

    // AirSwap Swap contract
    // https://github.com/airswap/airswap-protocols/blob/master/source/swap/contracts/interfaces/ISwap.sol
    ISwap public immutable SWAP_CONTRACT;

    // 90% locked in options protocol, 10% of the pool reserved for withdrawals
    uint256 public constant lockedRatio = 0.9 ether;

    uint256 public constant delay = 1 hours;

    uint256 public immutable MINIMUM_SUPPLY;

    event ManagerChanged(address oldManager, address newManager);

    event Deposit(address indexed account, uint256 amount, uint256 share);

    event Withdraw(
        address indexed account,
        uint256 amount,
        uint256 share,
        uint256 fee
    );

    event OpenShort(
        address indexed options,
        uint256 depositAmount,
        address manager
    );

    event CloseShort(
        address indexed options,
        uint256 withdrawAmount,
        address manager
    );

    event WithdrawalFeeSet(uint256 oldFee, uint256 newFee);

    event CapSet(uint256 oldCap, uint256 newCap, address manager);

    event VaultSunset(address replacement);

    event WithdrawToV1Vault(
        address account,
        uint256 oldShares,
        address to,
        uint256 newShares
    );

    event Migrate(
        address account,
        address replacement,
        uint256 shares,
        uint256 amount
    );

    /**
     * @notice Initializes the contract with immutable variables
     * @param _asset is the asset used for collateral and premiums
     * @param _weth is the Wrapped Ether contract
     * @param _usdc is the USDC contract
     * @param _swapContract is the Airswap Swap contract
     * @param _tokenDecimals is the decimals for the vault shares. Must match the decimals for _asset.
     * @param _minimumSupply is the minimum supply for the asset balance and the share supply.
     * It's important to bake the _factory variable into the contract with the constructor
     * If we do it in the `initialize` function, users get to set the factory variable and
     * subsequently the adapter, which allows them to make a delegatecall, then selfdestruct the contract.
     */
    constructor(
        address _asset,
        address _factory,
        address _registry,
        address _weth,
        address _usdc,
        address _swapContract,
        uint8 _tokenDecimals,
        uint256 _minimumSupply,
        bool _isPut
    ) {
        require(_asset != address(0), "!_asset");
        require(_factory != address(0), "!_factory");
        require(_registry != address(0), "!_registry");
        require(_weth != address(0), "!_weth");
        require(_usdc != address(0), "!_usdc");
        require(_swapContract != address(0), "!_swapContract");
        require(_tokenDecimals > 0, "!_tokenDecimals");
        require(_minimumSupply > 0, "!_minimumSupply");

        IRibbonFactory factoryInstance = IRibbonFactory(_factory);
        address adapterAddr = factoryInstance.getAdapter(_adapterName);
        require(adapterAddr != address(0), "Adapter not set");

        asset = _isPut ? _usdc : _asset;
        underlying = _asset;
        adapter = IProtocolAdapter(adapterAddr);
        registry = IVaultRegistry(_registry);
        WETH = _weth;
        USDC = _usdc;
        SWAP_CONTRACT = ISwap(_swapContract);
        _decimals = _tokenDecimals;
        MINIMUM_SUPPLY = _minimumSupply;
        isPut = _isPut;
    }

    /**
     * @notice Initializes the OptionVault contract with storage variables.
     * @param _owner is the owner of the contract who can set the manager
     * @param _feeRecipient is the recipient address for withdrawal fees.
     * @param _initCap is the initial vault's cap on deposits, the manager can increase this as necessary.
     * @param _tokenName is the name of the vault share token
     * @param _tokenSymbol is the symbol of the vault share token
     */
    function initialize(
        address _owner,
        address _feeRecipient,
        uint256 _initCap,
        string calldata _tokenName,
        string calldata _tokenSymbol
    ) external initializer {
        require(_owner != address(0), "!_owner");
        require(_feeRecipient != address(0), "!_feeRecipient");
        require(_initCap > 0, "_initCap > 0");
        require(bytes(_tokenName).length > 0, "_tokenName != 0x");
        require(bytes(_tokenSymbol).length > 0, "_tokenSymbol != 0x");

        __ReentrancyGuard_init();
        __ERC20_init(_tokenName, _tokenSymbol);
        __Ownable_init();
        transferOwnership(_owner);
        cap = _initCap;

        // hardcode the initial withdrawal fee
        instantWithdrawalFee = 0.005 ether;
        feeRecipient = _feeRecipient;
    }

   /**
     * @notice Closes the vault and makes it withdraw only.
     */
    function sunset(address upgradeTo) external onlyOwner {
        require(upgradeTo != address(0), "!upgradeTo");

        replacementVault = IRibbonV2Vault(upgradeTo);

        emit VaultSunset(upgradeTo);
    }

    /**
     * @notice Sets the new manager of the vault.
     * @param newManager is the new manager of the vault
     */
    function setManager(address newManager) external onlyOwner {
        require(newManager != address(0), "!newManager");
        address oldManager = manager;
        manager = newManager;

        emit ManagerChanged(oldManager, newManager);
    }

    /**
     * @notice Sets the new fee recipient
     * @param newFeeRecipient is the address of the new fee recipient
     */
    function setFeeRecipient(address newFeeRecipient) external onlyOwner {
        require(newFeeRecipient != address(0), "!newFeeRecipient");
        feeRecipient = newFeeRecipient;
    }

    /**
     * @notice Sets the new withdrawal fee
     * @param newWithdrawalFee is the fee paid in tokens when withdrawing
     */
    function setWithdrawalFee(uint256 newWithdrawalFee) external onlyManager {
        require(newWithdrawalFee > 0, "withdrawalFee != 0");

        // cap max withdrawal fees to 30% of the withdrawal amount
        require(newWithdrawalFee < 0.3 ether, "withdrawalFee >= 30%");

        uint256 oldFee = instantWithdrawalFee;
        emit WithdrawalFeeSet(oldFee, newWithdrawalFee);

        instantWithdrawalFee = newWithdrawalFee;
    }

    /**
     * @notice Deposits ETH into the contract and mint vault shares. Reverts if the underlying is not WETH.
     */
    function depositETH() external payable nonReentrant {
        require(asset == WETH, "asset is not WETH");
        require(msg.value > 0, "No value passed");

        IWETH(WETH).deposit{value: msg.value}();
        _deposit(msg.value);
    }

    /**
     * @notice Deposits the `asset` into the contract and mint vault shares.
     * @param amount is the amount of `asset` to deposit
     */
    function deposit(uint256 amount) external nonReentrant {
        IERC20(asset).safeTransferFrom(msg.sender, address(this), amount);
        _deposit(amount);
    }

    /**
     * @notice Mints the vault shares to the msg.sender
     * @param amount is the amount of `asset` deposited
     */
    function _deposit(uint256 amount) private {
        uint256 totalWithDepositedAmount = totalBalance();
        require(totalWithDepositedAmount < cap, "Cap exceeded");
        require(
            totalWithDepositedAmount >= MINIMUM_SUPPLY,
            "Insufficient asset balance"
        );

        // amount needs to be subtracted from totalBalance because it has already been
        // added to it from either IWETH.deposit and IERC20.safeTransferFrom
        uint256 total = totalWithDepositedAmount.sub(amount);

        uint256 shareSupply = totalSupply();

        // Following the pool share calculation from Alpha Homora:
        // solhint-disable-next-line
        // https://github.com/AlphaFinanceLab/alphahomora/blob/340653c8ac1e9b4f23d5b81e61307bf7d02a26e8/contracts/5/Bank.sol#L104
        uint256 share =
            shareSupply == 0 ? amount : amount.mul(shareSupply).div(total);

        require(
            shareSupply.add(share) >= MINIMUM_SUPPLY,
            "Insufficient share supply"
        );

        emit Deposit(msg.sender, amount, share);

        _mint(msg.sender, share);
    }

    /**
     * @notice Withdraws ETH from vault using vault shares
     * @param share is the number of vault shares to be burned
     */
    function withdrawETH(uint256 share) external nonReentrant {
        require(asset == WETH, "!WETH");
        uint256 withdrawAmount = _withdraw(share, false);

        IWETH(WETH).withdraw(withdrawAmount);
        (bool success, ) = msg.sender.call{value: withdrawAmount}("");
        require(success, "ETH transfer failed");
    }

    /**
     * @notice Withdraws WETH from vault using vault shares
     * @param share is the number of vault shares to be burned
     */
    function withdraw(uint256 share) external nonReentrant {
        uint256 withdrawAmount = _withdraw(share, false);
        IERC20(asset).safeTransfer(msg.sender, withdrawAmount);
    }

    /**
     * @notice Withdraw from V1 vault to V1 vault
     * @notice Waive fee if registered in vault registry
     * @param share is the number of vault shares to be burned
     * @param vault is the address of destination V1 vault
     */
    function withdrawToV1Vault(uint256 share, address vault)
        external
        nonReentrant
    {
        require(vault != address(0), "!vault");
        require(share > 0, "!share");

        bool feeless = registry.canWithdrawForFree(address(this), vault);
        require(feeless, "Feeless withdraw to vault not allowed");

        uint256 withdrawAmount = _withdraw(share, feeless);

        // Send assets to new vault rather than user
        IERC20(asset).safeApprove(vault, withdrawAmount);
        IRibbonV1Vault(vault).deposit(withdrawAmount);
        uint256 receivedShares = IERC20(vault).balanceOf(address(this));
        IERC20(vault).safeTransfer(msg.sender, receivedShares);

        emit WithdrawToV1Vault(msg.sender, share, vault, receivedShares);
    }

    /**
     * @notice Burns vault shares and checks if eligible for withdrawal
     * @param share is the number of vault shares to be burned
     * @param feeless is whether a withdraw fee is charged
     */
    function _withdraw(uint256 share, bool feeless) private returns (uint256) {
        (uint256 amountAfterFee, uint256 feeAmount) =
            withdrawAmountWithShares(share);

        if (feeless) {
            amountAfterFee = amountAfterFee.add(feeAmount);
            feeAmount = 0;
        }

        emit Withdraw(msg.sender, amountAfterFee, share, feeAmount);

        _burn(msg.sender, share);

        IERC20(asset).safeTransfer(feeRecipient, feeAmount);

        return amountAfterFee;
    }

    /*
     * @notice Moves msg.sender's deposited funds to new vault w/o fees
     */
    function migrate() external nonReentrant {
        IRibbonV2Vault vault = replacementVault;
        require(address(vault) != address(0), "Not sunset");

        uint256 maxShares = maxWithdrawableShares();
        uint256 share = balanceOf(msg.sender);
        uint256 allShares = min(maxShares, share);

        (uint256 withdrawAmount, uint256 feeAmount) =
            withdrawAmountWithShares(allShares);

        // Since we want to exclude fees, we add them both together
        withdrawAmount = withdrawAmount.add(feeAmount);

        emit Migrate(msg.sender, address(vault), allShares, withdrawAmount);

        _burn(msg.sender, allShares);

        IERC20(asset).safeApprove(address(vault), withdrawAmount);

        vault.depositFor(withdrawAmount, msg.sender);
    }

    /**
     * @notice Sets the next option the vault will be shorting, and closes the existing short.
     *         This allows all the users to withdraw if the next option is malicious.
     */
    function commitAndClose(
        ProtocolAdapterTypes.OptionTerms calldata optionTerms
    ) external onlyManager nonReentrant {
        _setNextOption(optionTerms);
        _closeShort();
    }

    function closeShort() external nonReentrant {
        _closeShort();
    }

    /**
     * @notice Sets the next option address and the timestamp at which the
     * admin can call `rollToNextOption` to open a short for the option.
     * @param optionTerms is the terms of the option contract
     */
    function _setNextOption(
        ProtocolAdapterTypes.OptionTerms calldata optionTerms
    ) private {
        if (isPut) {
            require(
                optionTerms.optionType == ProtocolAdapterTypes.OptionType.Put,
                "!put"
            );
        } else {
            require(
                optionTerms.optionType == ProtocolAdapterTypes.OptionType.Call,
                "!call"
            );
        }

        address option = adapter.getOptionsAddress(optionTerms);
        require(option != address(0), "!option");
        OtokenInterface otoken = OtokenInterface(option);
        require(otoken.isPut() == isPut, "Option type does not match");
        require(
            otoken.underlyingAsset() == underlying,
            "Wrong underlyingAsset"
        );
        require(otoken.collateralAsset() == asset, "Wrong collateralAsset");

        // we just assume all options use USDC as the strike
        require(otoken.strikeAsset() == USDC, "strikeAsset != USDC");

        uint256 readyAt = block.timestamp.add(delay);
        require(
            otoken.expiryTimestamp() >= readyAt,
            "Option expiry cannot be before delay"
        );

        nextOption = option;
        nextOptionReadyAt = readyAt;
    }

    /**
     * @notice Closes the existing short position for the vault.
     */
    function _closeShort() private {
        address oldOption = currentOption;
        currentOption = address(0);
        lockedAmount = 0;

        if (oldOption != address(0)) {
            OtokenInterface otoken = OtokenInterface(oldOption);
            require(
                block.timestamp > otoken.expiryTimestamp(),
                "Cannot close short before expiry"
            );
            uint256 withdrawAmount = adapter.delegateCloseShort();
            emit CloseShort(oldOption, withdrawAmount, msg.sender);
        }
    }

    /*
     * @notice Rolls the vault's funds into a new short position.
     */
    function rollToNextOption() external onlyManager nonReentrant {
        require(
            block.timestamp >= nextOptionReadyAt,
            "Cannot roll before delay"
        );

        address newOption = nextOption;
        require(newOption != address(0), "No found option");

        currentOption = newOption;
        nextOption = address(0);

        uint256 currentBalance = assetBalance();
        uint256 shortAmount = wmul(currentBalance, lockedRatio);
        lockedAmount = shortAmount;

        OtokenInterface otoken = OtokenInterface(newOption);

        ProtocolAdapterTypes.OptionTerms memory optionTerms =
            ProtocolAdapterTypes.OptionTerms(
                otoken.underlyingAsset(),
                USDC,
                otoken.collateralAsset(),
                otoken.expiryTimestamp(),
                otoken.strikePrice().mul(10**10), // scale back to 10**18
                isPut
                    ? ProtocolAdapterTypes.OptionType.Put
                    : ProtocolAdapterTypes.OptionType.Call, // isPut
                address(0)
            );

        uint256 shortBalance =
            adapter.delegateCreateShort(optionTerms, shortAmount);
        IERC20 optionToken = IERC20(newOption);
        optionToken.safeApprove(address(SWAP_CONTRACT), shortBalance);

        emit OpenShort(newOption, shortAmount, msg.sender);
    }

    /**
     * @notice Withdraw from the options protocol by closing short in an event of a emergency
     */
    function emergencyWithdrawFromShort() external onlyManager nonReentrant {
        address oldOption = currentOption;
        require(oldOption != address(0), "!currentOption");

        currentOption = address(0);
        nextOption = address(0);
        lockedAmount = 0;

        uint256 withdrawAmount = adapter.delegateCloseShort();
        emit CloseShort(oldOption, withdrawAmount, msg.sender);
    }

    /**
     * @notice Performs a swap of `currentOption` token to `asset` token with a counterparty
     * @param order is an Airswap order
     */
    function sellOptions(Types.Order calldata order) external onlyManager {
        require(
            order.sender.wallet == address(this),
            "Sender can only be vault"
        );
        require(
            order.sender.token == currentOption,
            "Can only sell currentOption"
        );
        require(order.signer.token == asset, "Can only buy with asset token");

        SWAP_CONTRACT.swap(order);
    }

    /**
     * @notice Sets a new cap for deposits
     * @param newCap is the new cap for deposits
     */
    function setCap(uint256 newCap) external onlyManager {
        uint256 oldCap = cap;
        cap = newCap;
        emit CapSet(oldCap, newCap, msg.sender);
    }

    /**
     * @notice Returns the expiry of the current option the vault is shorting
     */
    function currentOptionExpiry() external view returns (uint256) {
        address _currentOption = currentOption;
        if (_currentOption == address(0)) {
            return 0;
        }

        OtokenInterface oToken = OtokenInterface(currentOption);
        return oToken.expiryTimestamp();
    }

    /**
     * @notice Returns the amount withdrawable (in `asset` tokens) using the `share` amount
     * @param share is the number of shares burned to withdraw asset from the vault
     * @return amountAfterFee is the amount of asset tokens withdrawable from the vault
     * @return feeAmount is the fee amount (in asset tokens) sent to the feeRecipient
     */
    function withdrawAmountWithShares(uint256 share)
        public
        view
        returns (uint256 amountAfterFee, uint256 feeAmount)
    {
        uint256 currentAssetBalance = assetBalance();
        (
            uint256 withdrawAmount,
            uint256 newAssetBalance,
            uint256 newShareSupply
        ) = _withdrawAmountWithShares(share, currentAssetBalance);

        require(
            withdrawAmount <= currentAssetBalance,
            "Cannot withdraw more than available"
        );

        require(newShareSupply >= MINIMUM_SUPPLY, "Insufficient share supply");
        require(
            newAssetBalance >= MINIMUM_SUPPLY,
            "Insufficient asset balance"
        );

        feeAmount = wmul(withdrawAmount, instantWithdrawalFee);
        amountAfterFee = withdrawAmount.sub(feeAmount);
    }

    /**
     * @notice Helper function to return the `asset` amount returned using the `share` amount
     * @param share is the number of shares used to withdraw
     * @param currentAssetBalance is the value returned by totalBalance(). This is passed in to save gas.
     */
    function _withdrawAmountWithShares(
        uint256 share,
        uint256 currentAssetBalance
    )
        private
        view
        returns (
            uint256 withdrawAmount,
            uint256 newAssetBalance,
            uint256 newShareSupply
        )
    {
        uint256 total = lockedAmount.add(currentAssetBalance);

        uint256 shareSupply = totalSupply();

        // solhint-disable-next-line
        // Following the pool share calculation from Alpha Homora: https://github.com/AlphaFinanceLab/alphahomora/blob/340653c8ac1e9b4f23d5b81e61307bf7d02a26e8/contracts/5/Bank.sol#L111
        withdrawAmount = share.mul(total).div(shareSupply);
        newAssetBalance = total.sub(withdrawAmount);
        newShareSupply = shareSupply.sub(share);
    }

    /**
     * @notice Returns the max withdrawable shares for all users in the vault
     */
    function maxWithdrawableShares() public view returns (uint256) {
        uint256 withdrawableBalance = assetBalance();
        uint256 total = lockedAmount.add(withdrawableBalance);
        return
            withdrawableBalance.mul(totalSupply()).div(total).sub(
                MINIMUM_SUPPLY
            );
    }

    /**
     * @notice Returns the max amount withdrawable by an account using the account's vault share balance
     * @param account is the address of the vault share holder
     * @return amount of `asset` withdrawable from vault, with fees accounted
     */
    function maxWithdrawAmount(address account) public view returns (uint256) {
        uint256 maxShares = maxWithdrawableShares();
        uint256 share = balanceOf(account);
        uint256 numShares = min(maxShares, share);

        (uint256 withdrawAmount, , ) =
            _withdrawAmountWithShares(numShares, assetBalance());

        return withdrawAmount;
    }

    /**
     * @notice Returns the number of shares for a given `assetAmount`.
     *         Used by the frontend to calculate withdraw amounts.
     * @param assetAmount is the asset amount to be withdrawn
     * @return share amount
     */
    function assetAmountToShares(uint256 assetAmount)
        external
        view
        returns (uint256)
    {
        uint256 total = lockedAmount.add(assetBalance());
        return assetAmount.mul(totalSupply()).div(total);
    }

    /**
     * @notice Returns an account's balance on the vault
     * @param account is the address of the user
     * @return vault balance of the user
     */
    function accountVaultBalance(address account)
        external
        view
        returns (uint256)
    {
        (uint256 withdrawAmount, , ) =
            _withdrawAmountWithShares(balanceOf(account), assetBalance());
        return withdrawAmount;
    }

    /**
     * @notice Returns the vault's total balance, including the amounts locked into a short position
     * @return total balance of the vault, including the amounts locked in third party protocols
     */
    function totalBalance() public view returns (uint256) {
        return lockedAmount.add(IERC20(asset).balanceOf(address(this)));
    }

    /**
     * @notice Returns the asset balance on the vault. This balance is freely withdrawable by users.
     */
    function assetBalance() public view returns (uint256) {
        return IERC20(asset).balanceOf(address(this));
    }

    /**
     * @notice Returns the token decimals
     */
    function decimals() public view override returns (uint8) {
        return _decimals;
    }

    /**
     * @notice Only allows manager to execute a function
     */
    modifier onlyManager {
        require(msg.sender == manager, "Only manager");
        _;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_registry","type":"address"},{"internalType":"address","name":"_weth","type":"address"},{"internalType":"address","name":"_usdc","type":"address"},{"internalType":"address","name":"_swapContract","type":"address"},{"internalType":"uint8","name":"_tokenDecimals","type":"uint8"},{"internalType":"uint256","name":"_minimumSupply","type":"uint256"},{"internalType":"bool","name":"_isPut","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldCap","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newCap","type":"uint256"},{"indexed":false,"internalType":"address","name":"manager","type":"address"}],"name":"CapSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"options","type":"address"},{"indexed":false,"internalType":"uint256","name":"withdrawAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"manager","type":"address"}],"name":"CloseShort","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"share","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldManager","type":"address"},{"indexed":false,"internalType":"address","name":"newManager","type":"address"}],"name":"ManagerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address","name":"replacement","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Migrate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"options","type":"address"},{"indexed":false,"internalType":"uint256","name":"depositAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"manager","type":"address"}],"name":"OpenShort","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"replacement","type":"address"}],"name":"VaultSunset","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"share","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"oldShares","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"newShares","type":"uint256"}],"name":"WithdrawToV1Vault","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"WithdrawalFeeSet","type":"event"},{"inputs":[],"name":"MINIMUM_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SWAP_CONTRACT","outputs":[{"internalType":"contract ISwap","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDC","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"accountVaultBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adapter","outputs":[{"internalType":"contract IProtocolAdapter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"asset","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assetAmount","type":"uint256"}],"name":"assetAmountToShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"assetBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"closeShort","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"underlying","type":"address"},{"internalType":"address","name":"strikeAsset","type":"address"},{"internalType":"address","name":"collateralAsset","type":"address"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint256","name":"strikePrice","type":"uint256"},{"internalType":"enum ProtocolAdapterTypes.OptionType","name":"optionType","type":"uint8"},{"internalType":"address","name":"paymentToken","type":"address"}],"internalType":"struct ProtocolAdapterTypes.OptionTerms","name":"optionTerms","type":"tuple"}],"name":"commitAndClose","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentOption","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentOptionExpiry","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"delay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"emergencyWithdrawFromShort","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_feeRecipient","type":"address"},{"internalType":"uint256","name":"_initCap","type":"uint256"},{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"string","name":"_tokenSymbol","type":"string"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"instantWithdrawalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPut","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockedRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"manager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"maxWithdrawAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWithdrawableShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOption","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOptionReadyAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"registry","outputs":[{"internalType":"contract IVaultRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"replacementVault","outputs":[{"internalType":"contract IRibbonV2Vault","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rollToNextOption","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"components":[{"internalType":"bytes4","name":"kind","type":"bytes4"},{"internalType":"address","name":"wallet","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"id","type":"uint256"}],"internalType":"struct Types.Party","name":"signer","type":"tuple"},{"components":[{"internalType":"bytes4","name":"kind","type":"bytes4"},{"internalType":"address","name":"wallet","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"id","type":"uint256"}],"internalType":"struct Types.Party","name":"sender","type":"tuple"},{"components":[{"internalType":"bytes4","name":"kind","type":"bytes4"},{"internalType":"address","name":"wallet","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"id","type":"uint256"}],"internalType":"struct Types.Party","name":"affiliate","type":"tuple"},{"components":[{"internalType":"address","name":"signatory","type":"address"},{"internalType":"address","name":"validator","type":"address"},{"internalType":"bytes1","name":"version","type":"bytes1"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct Types.Signature","name":"signature","type":"tuple"}],"internalType":"struct Types.Order","name":"order","type":"tuple"}],"name":"sellOptions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newCap","type":"uint256"}],"name":"setCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newFeeRecipient","type":"address"}],"name":"setFeeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newManager","type":"address"}],"name":"setManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newWithdrawalFee","type":"uint256"}],"name":"setWithdrawalFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"upgradeTo","type":"address"}],"name":"sunset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"underlying","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"share","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"share","type":"uint256"}],"name":"withdrawAmountWithShares","outputs":[{"internalType":"uint256","name":"amountAfterFee","type":"uint256"},{"internalType":"uint256","name":"feeAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"share","type":"uint256"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"share","type":"uint256"},{"internalType":"address","name":"vault","type":"address"}],"name":"withdrawToV1Vault","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101c06040523480156200001257600080fd5b50604051620058dd380380620058dd833981016040819052620000359162000327565b6001600160a01b038916620000675760405162461bcd60e51b81526004016200005e9062000485565b60405180910390fd5b6001600160a01b038816620000905760405162461bcd60e51b81526004016200005e9062000564565b6001600160a01b038716620000b95760405162461bcd60e51b81526004016200005e90620004f7565b6001600160a01b038616620000e25760405162461bcd60e51b81526004016200005e906200043c565b6001600160a01b0385166200010b5760405162461bcd60e51b81526004016200005e906200051b565b6001600160a01b038416620001345760405162461bcd60e51b81526004016200005e90620004cf565b60008360ff16116200015a5760405162461bcd60e51b81526004016200005e906200045c565b600082116200017d5760405162461bcd60e51b81526004016200005e90620004a6565b604080518082018252600a8152694f50594e5f47414d4d4160b01b60208201529051635e26110960e11b815289916000916001600160a01b0384169163bc4c221291620001ce9190600401620003e6565b60206040518083038186803b158015620001e757600080fd5b505afa158015620001fc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000222919062000303565b90506001600160a01b0381166200024d5760405162461bcd60e51b81526004016200005e906200053b565b826200025a578a6200025c565b865b6001600160601b0319606091821b811660c0529b811b8c1660e05290811b8b1660805297881b8a1660a0525094861b88166101005292851b871661012052931b909416610180527fff0000000000000000000000000000000000000000000000000000000000000060f892831b16610160526101a09390935291151590911b610140525062000587565b80516001600160a01b0381168114620002fe57600080fd5b919050565b60006020828403121562000315578081fd5b6200032082620002e6565b9392505050565b60008060008060008060008060006101208a8c03121562000346578485fd5b620003518a620002e6565b98506200036160208b01620002e6565b97506200037160408b01620002e6565b96506200038160608b01620002e6565b95506200039160808b01620002e6565b9450620003a160a08b01620002e6565b935060c08a015160ff81168114620003b7578384fd5b60e08b01516101008c015191945092508015158114620003d5578182fd5b809150509295985092959850929598565b6000602080835283518082850152825b818110156200041457858101830151858201604001528201620003f6565b81811115620004265783604083870101525b50601f01601f1916929092016040019392505050565b602080825260069082015265042beeecae8d60d31b604082015260600190565b6020808252600f908201526e215f746f6b656e446563696d616c7360881b604082015260600190565b6020808252600790820152660857d85cdcd95d60ca1b604082015260600190565b6020808252600f908201526e215f6d696e696d756d537570706c7960881b604082015260600190565b6020808252600e908201526d0857dcddd85c10dbdb9d1c9858dd60921b604082015260600190565b6020808252600a9082015269215f726567697374727960b01b604082015260600190565b602080825260069082015265215f7573646360d01b604082015260600190565b6020808252600f908201526e1059185c1d195c881b9bdd081cd95d608a1b604082015260600190565b602080825260099082015268215f666163746f727960b81b604082015260600190565b60805160601c60a05160601c60c05160601c60e05160601c6101005160601c6101205160601c6101405160f81c6101605160f81c6101805160601c6101a051615224620006b960003980610e92528061180752806118475280612431528061309f5280613118525080610e205280611cdf5280611e38525080610ba1525080611bd152806122a55280613203528061336e525080610fae5280611a2852806135a352508061168c528061206052806120f652806122f45280612385525080610ec25280613421525080610b705280610bcb5280610db352806110d752806116b552806117895280611db1528061208a528061231e52806125e75280612b6652806134e2525080610f8a52806125245250806109bf5280611c48528061281652806132ba528061381e52506152246000f3fe60806040526004361061038c5760003560e01c80639ab8367e116101dc578063c66f245511610102578063f14210a6116100a0578063f6bca1201161006f578063f6bca1201461095e578063f8432a1b14610973578063f870316f14610988578063faec2233146109a85761038c565b8063f14210a614610901578063f2fde38b14610921578063f3c274a614610941578063f6326fb3146109565761038c565b8063dc7900f7116100dc578063dc7900f71461088c578063dd62ed3e146108ac578063de2fbaba146108cc578063e74b981b146108e15761038c565b8063c66f245514610842578063cf3afa5114610857578063d0ebdbe71461086c5761038c565b8063aa7ebfe11161017a578063b6b55f2511610149578063b6b55f25146107bf578063b81f2853146107df578063b9f8092b1461080d578063ba3f6bd8146108225761038c565b8063aa7ebfe114610755578063ac1e502514610775578063ad5c464814610795578063ad7a672f146107aa5761038c565b8063a2db9d83116101b6578063a2db9d83146106eb578063a457c2d714610700578063a8e0bcec14610720578063a9059cbb146107355761038c565b80639ab8367e146106965780639ec7aaad146106b6578063a285c9e8146106d65761038c565b8063481c6a75116102c157806370a082311161025f5780638b10cc7c1161022e5780638b10cc7c146106425780638da5cb5b146106575780638fd3ab801461066c57806395d89b41146106815761038c565b806370a08231146105e3578063715018a6146106035780637b1039991461061857806389a302711461062d5761038c565b80636a56e0461161029b5780636a56e0461461058f5780636ab28bc8146105a45780636b34128c146105b95780636f307dc3146105ce5761038c565b8063481c6a7514610545578063538130bd1461055a5780636a42b8f81461057a5761038c565b8063355274ea1161032e5780633e52583d116103085780633e52583d146104db5780633f23bb73146104f0578063469048401461051057806347786d37146105255761038c565b8063355274ea1461049157806338d52e0f146104a657806339509351146104bb5761038c565b806318160ddd1161036a57806318160ddd1461040b57806323b872dd1461042d5780632e1a7d4d1461044d578063313ce5671461046f5761038c565b806303eadcfc1461039157806306fdde03146103bc578063095ea7b3146103de575b600080fd5b34801561039d57600080fd5b506103a66109bd565b6040516103b39190614237565b60405180910390f35b3480156103c857600080fd5b506103d16109e1565b6040516103b39190614376565b3480156103ea57600080fd5b506103fe6103f93660046140b2565b610a78565b6040516103b391906142f5565b34801561041757600080fd5b50610420610a96565b6040516103b391906150a7565b34801561043957600080fd5b506103fe610448366004613fd6565b610a9c565b34801561045957600080fd5b5061046d610468366004614140565b610b24565b005b34801561047b57600080fd5b50610484610b9f565b6040516103b3919061510a565b34801561049d57600080fd5b50610420610bc3565b3480156104b257600080fd5b506103a6610bc9565b3480156104c757600080fd5b506103fe6104d63660046140b2565b610bed565b3480156104e757600080fd5b506103a6610c3b565b3480156104fc57600080fd5b5061042061050b366004613f66565b610c4a565b34801561051c57600080fd5b506103a6610c72565b34801561053157600080fd5b5061046d610540366004614140565b610c81565b34801561055157600080fd5b506103a6610cf3565b34801561056657600080fd5b5061046d61057536600461412e565b610d02565b34801561058657600080fd5b50610420610e8a565b34801561059b57600080fd5b50610420610e90565b3480156105b057600080fd5b50610420610eb4565b3480156105c557600080fd5b50610420610eba565b3480156105da57600080fd5b506103a6610ec0565b3480156105ef57600080fd5b506104206105fe366004613f66565b610ee4565b34801561060f57600080fd5b5061046d610eff565b34801561062457600080fd5b506103a6610f88565b34801561063957600080fd5b506103a6610fac565b34801561064e57600080fd5b506103a6610fd0565b34801561066357600080fd5b506103a6610fdf565b34801561067857600080fd5b5061046d610fee565b34801561068d57600080fd5b506103d161116a565b3480156106a257600080fd5b5061046d6106b1366004614016565b6111cb565b3480156106c257600080fd5b5061046d6106d1366004613f66565b6113b2565b3480156106e257600080fd5b5061042061146d565b3480156106f757600080fd5b506103a6611473565b34801561070c57600080fd5b506103fe61071b3660046140b2565b611482565b34801561072c57600080fd5b506104206114ea565b34801561074157600080fd5b506103fe6107503660046140b2565b61158d565b34801561076157600080fd5b50610420610770366004614140565b6115a1565b34801561078157600080fd5b5061046d610790366004614140565b6115d6565b3480156107a157600080fd5b506103a661168a565b3480156107b657600080fd5b506104206116ae565b3480156107cb57600080fd5b5061046d6107da366004614140565b611754565b3480156107eb57600080fd5b506107ff6107fa366004614140565b6117c1565b6040516103b39291906150c7565b34801561081957600080fd5b5061046d6118a8565b34801561082e57600080fd5b5061042061083d366004613f66565b611d54565b34801561084e57600080fd5b50610420611d97565b34801561086357600080fd5b506103a6611e36565b34801561087857600080fd5b5061046d610887366004613f66565b611e5a565b34801561089857600080fd5b5061046d6108a7366004614117565b611f12565b3480156108b857600080fd5b506104206108c7366004613f9e565b611f75565b3480156108d857600080fd5b50610420611fa0565b3480156108ed57600080fd5b5061046d6108fc366004613f66565b611fac565b34801561090d57600080fd5b5061046d61091c366004614140565b612033565b34801561092d57600080fd5b5061046d61093c366004613f66565b6121e2565b34801561094d57600080fd5b506103fe6122a3565b61046d6122c7565b34801561096a57600080fd5b50610420612406565b34801561097f57600080fd5b5061046d61246c565b34801561099457600080fd5b5061046d6109a3366004614170565b61249c565b3480156109b457600080fd5b5061046d612749565b7f000000000000000000000000000000000000000000000000000000000000000081565b609a8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a6d5780601f10610a4257610100808354040283529160200191610a6d565b820191906000526020600020905b815481529060010190602001808311610a5057829003601f168201915b505050505090505b90565b6000610a8c610a856128e4565b84846128e8565b5060015b92915050565b60995490565b6000610aa984848461299c565b610b1984610ab56128e4565b610b14856040518060600160405280602881526020016151a2602891396001600160a01b038a16600090815260986020526040812090610af36128e4565b6001600160a01b031681526020810191909152604001600020549190612ab1565b6128e8565b5060015b9392505050565b60026001541415610b505760405162461bcd60e51b8152600401610b4790614dab565b60405180910390fd5b60026001556000610b618282612add565b9050610b976001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163383612b97565b505060018055565b7f000000000000000000000000000000000000000000000000000000000000000090565b60cf5481565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000610a8c610bfa6128e4565b84610b148560986000610c0b6128e4565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490612bf2565b60d4546001600160a01b031681565b600080610c66610c5984610ee4565b610c61611d97565b612c17565b5090925050505b919050565b60d1546001600160a01b031681565b60ca546001600160a01b03163314610cab5760405162461bcd60e51b8152600401610b479061493c565b60cf8054908290556040517f0e45875b8819e52adac9df2787285bc765235018d84ab492668edfcf944628c490610ce7908390859033906150d5565b60405180910390a15050565b60ca546001600160a01b031681565b60ca546001600160a01b03163314610d2c5760405162461bcd60e51b8152600401610b479061493c565b30610d3f61012083016101008401613f66565b6001600160a01b031614610d655760405162461bcd60e51b8152600401610b479061447c565b60cd546001600160a01b0316610d8361014083016101208401613f66565b6001600160a01b031614610da95760405162461bcd60e51b8152600401610b4790614699565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016610de360a0830160808401613f66565b6001600160a01b031614610e095760405162461bcd60e51b8152600401610b4790614c86565b6040516367641c2f60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906367641c2f90610e55908490600401614fc5565b600060405180830381600087803b158015610e6f57600080fd5b505af1158015610e83573d6000803e3d6000fd5b5050505050565b610e1081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60ce5481565b60d05481565b7f000000000000000000000000000000000000000000000000000000000000000081565b6001600160a01b031660009081526097602052604090205490565b610f076128e4565b6001600160a01b0316610f18610fdf565b6001600160a01b031614610f3e5760405162461bcd60e51b8152600401610b4790614962565b6065546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3606580546001600160a01b0319169055565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60cd546001600160a01b031681565b6065546001600160a01b031690565b600260015414156110115760405162461bcd60e51b8152600401610b4790614dab565b600260015560d4546001600160a01b03168061103f5760405162461bcd60e51b8152600401610b47906149ce565b6000611049612406565b9050600061105633610ee4565b905060006110648383612c71565b9050600080611072836117c1565b90925090506110818282612bf2565b91507fd616b8856fa5febbdb06f07dd8d624380d02864619f3b796002f43bc36a4d1bc338785856040516110b8949392919061424b565b60405180910390a16110ca3384612c88565b6110fe6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168784612d6a565b6040516336efd16f60e01b81526001600160a01b038716906336efd16f9061112c90859033906004016150b0565b600060405180830381600087803b15801561114657600080fd5b505af115801561115a573d6000803e3d6000fd5b5050600180555050505050505050565b609b8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a6d5780601f10610a4257610100808354040283529160200191610a6d565b600054610100900460ff16806111e457506111e4612e2d565b806111f2575060005460ff16155b61120e5760405162461bcd60e51b8152600401610b479061486c565b600054610100900460ff16158015611239576000805460ff1961ff0019909116610100171660011790555b6001600160a01b03881661125f5760405162461bcd60e51b8152600401610b47906148ba565b6001600160a01b0387166112855760405162461bcd60e51b8152600401610b4790614af6565b600086116112a55760405162461bcd60e51b8152600401610b4790614f06565b836112c25760405162461bcd60e51b8152600401610b479061466f565b816112df5760405162461bcd60e51b8152600401610b4790614de2565b6112e7612e3e565b61135a85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f89018190048102820181019092528781529250879150869081908401838280828437600092019190915250612ec992505050565b611362612f5f565b61136b886121e2565b60cf8690556611c37937e0800060d05560d180546001600160a01b0319166001600160a01b03891617905580156113a8576000805461ff00191690555b5050505050505050565b6113ba6128e4565b6001600160a01b03166113cb610fdf565b6001600160a01b0316146113f15760405162461bcd60e51b8152600401610b4790614962565b6001600160a01b0381166114175760405162461bcd60e51b8152600401610b47906143a9565b60d480546001600160a01b0319166001600160a01b0383161790556040517f1f7dd14c4cfe82fd374c1bb5dfc3dd254b087a032c9dcfd13aeefa9f6689d86990611462908390614237565b60405180910390a150565b60cc5481565b60cb546001600160a01b031681565b6000610a8c61148f6128e4565b84610b14856040518060600160405280602581526020016151ca60259139609860006114b96128e4565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190612ab1565b60cd546000906001600160a01b031680611508576000915050610a75565b60cd54604080516356f3715560e11b815290516001600160a01b0390921691829163ade6e2aa916004808301926020929190829003018186803b15801561154e57600080fd5b505afa158015611562573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115869190614158565b9250505090565b6000610a8c61159a6128e4565b848461299c565b6000806115b86115af611d97565b60ce5490612bf2565b9050610b1d816115d06115c9610a96565b8690612fdd565b90613017565b60ca546001600160a01b031633146116005760405162461bcd60e51b8152600401610b479061493c565b600081116116205760405162461bcd60e51b8152600401610b4790614a1b565b670429d069189e000081106116475760405162461bcd60e51b8152600401610b4790614cbd565b60d0546040517f28a572c8c759d40c2d26dcdaaefd9650e9e37ff11ee147ce0f645cd7664048cb9061167c90839085906150c7565b60405180910390a15060d055565b7f000000000000000000000000000000000000000000000000000000000000000081565b600061174f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016116ff9190614237565b60206040518083038186803b15801561171757600080fd5b505afa15801561172b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115af9190614158565b905090565b600260015414156117775760405162461bcd60e51b8152600401610b4790614dab565b60026001556117b16001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084613049565b6117ba81613070565b5060018055565b60008060006117ce611d97565b905060008060006117df8785612c17565b925092509250838311156118055760405162461bcd60e51b8152600401610b4790614e64565b7f00000000000000000000000000000000000000000000000000000000000000008110156118455760405162461bcd60e51b8152600401610b4790614445565b7f00000000000000000000000000000000000000000000000000000000000000008210156118855760405162461bcd60e51b8152600401610b4790614c18565b6118918360d0546131ac565b945061189d83866131d9565b955050505050915091565b60ca546001600160a01b031633146118d25760405162461bcd60e51b8152600401610b479061493c565b600260015414156118f55760405162461bcd60e51b8152600401610b4790614dab565b600260015560cc5442101561191c5760405162461bcd60e51b8152600401610b4790614997565b60cb546001600160a01b0316806119455760405162461bcd60e51b8152600401610b47906149f2565b60cd80546001600160a01b0383166001600160a01b03199182161790915560cb805490911690556000611976611d97565b9050600061198c82670c7d713b49da00006131ac565b60ce81905590508261199c613e2f565b6040518060e00160405280836001600160a01b0316637158da7c6040518163ffffffff1660e01b815260040160206040518083038186803b1580156119e057600080fd5b505afa1580156119f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a189190613f82565b6001600160a01b031681526020017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602001836001600160a01b031663aabaecd66040518163ffffffff1660e01b815260040160206040518083038186803b158015611a8e57600080fd5b505afa158015611aa2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac69190613f82565b6001600160a01b03168152602001836001600160a01b031663ade6e2aa6040518163ffffffff1660e01b815260040160206040518083038186803b158015611b0d57600080fd5b505afa158015611b21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b459190614158565b8152602001611bca6402540be400856001600160a01b031663c52987cf6040518163ffffffff1660e01b815260040160206040518083038186803b158015611b8c57600080fd5b505afa158015611ba0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bc49190614158565b90612fdd565b81526020017f0000000000000000000000000000000000000000000000000000000000000000611bfb576002611bfe565b60015b6002811115611c0957fe5b815260006020909101819052604051636780c04960e01b815291925090738b49fdd0cb50ba6d5c053d844fee55e5076f850490636780c04990611c7d907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169086908990600401614300565b60206040518083038186803b158015611c9557600080fd5b505af4158015611ca9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ccd9190614158565b905085611d046001600160a01b0382167f000000000000000000000000000000000000000000000000000000000000000084612d6a565b866001600160a01b03167f045c558fdce4714c5816d53820d27420f4cd860892df203fe636384d8d19aa018633604051611d3f9291906150b0565b60405180910390a25050600180555050505050565b600080611d5f612406565b90506000611d6c84610ee4565b90506000611d7a8383612c71565b90506000611d8a82610c61611d97565b5090979650505050505050565b6040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190611de6903090600401614237565b60206040518083038186803b158015611dfe57600080fd5b505afa158015611e12573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061174f9190614158565b7f000000000000000000000000000000000000000000000000000000000000000081565b611e626128e4565b6001600160a01b0316611e73610fdf565b6001600160a01b031614611e995760405162461bcd60e51b8152600401610b4790614962565b6001600160a01b038116611ebf5760405162461bcd60e51b8152600401610b47906146f0565b60ca80546001600160a01b038381166001600160a01b03198316179092556040519116907f605c2dbf762e5f7d60a546d42e7205dcb1b011ebc62a61736a57c9089d3a435090610ce7908390859061429e565b60ca546001600160a01b03163314611f3c5760405162461bcd60e51b8152600401610b479061493c565b60026001541415611f5f5760405162461bcd60e51b8152600401610b4790614dab565b6002600155611f6d81613201565b6117ba61372a565b6001600160a01b03918216600090815260986020908152604080832093909416825291909152205490565b670c7d713b49da000081565b611fb46128e4565b6001600160a01b0316611fc5610fdf565b6001600160a01b031614611feb5760405162461bcd60e51b8152600401610b4790614962565b6001600160a01b0381166120115760405162461bcd60e51b8152600401610b4790614823565b60d180546001600160a01b0319166001600160a01b0392909216919091179055565b600260015414156120565760405162461bcd60e51b8152600401610b4790614dab565b60026001819055507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316146120cf5760405162461bcd60e51b8152600401610b479061484d565b60006120dc826000612add565b604051632e1a7d4d60e01b81529091506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690632e1a7d4d9061212b9084906004016150a7565b600060405180830381600087803b15801561214557600080fd5b505af1158015612159573d6000803e3d6000fd5b505050506000336001600160a01b03168260405161217690610a75565b60006040518083038185875af1925050503d80600081146121b3576040519150601f19603f3d011682016040523d82523d6000602084013e6121b8565b606091505b50509050806121d95760405162461bcd60e51b8152600401610b4790614ba7565b50506001805550565b6121ea6128e4565b6001600160a01b03166121fb610fdf565b6001600160a01b0316146122215760405162461bcd60e51b8152600401610b4790614962565b6001600160a01b0381166122475760405162461bcd60e51b8152600401610b479061451d565b6065546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3606580546001600160a01b0319166001600160a01b0392909216919091179055565b7f000000000000000000000000000000000000000000000000000000000000000081565b600260015414156122ea5760405162461bcd60e51b8152600401610b4790614dab565b60026001819055507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316146123635760405162461bcd60e51b8152600401610b47906147f8565b600034116123835760405162461bcd60e51b8152600401610b4790614a47565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b1580156123de57600080fd5b505af11580156123f2573d6000803e3d6000fd5b505050505061240034613070565b60018055565b600080612411611d97565b9050600061242a8260ce54612bf290919063ffffffff16565b90506115867f0000000000000000000000000000000000000000000000000000000000000000612466836115d061245f610a96565b8790612fdd565b906131d9565b6002600154141561248f5760405162461bcd60e51b8152600401610b4790614dab565b600260015561240061372a565b600260015414156124bf5760405162461bcd60e51b8152600401610b4790614dab565b60026001556001600160a01b0381166124ea5760405162461bcd60e51b8152600401610b479061491c565b6000821161250a5760405162461bcd60e51b8152600401610b47906146d0565b604051635cae8ec160e11b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b95d1d829061255b903090869060040161429e565b602060405180830381600087803b15801561257557600080fd5b505af1158015612589573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125ad91906140dd565b9050806125cc5760405162461bcd60e51b8152600401610b4790614b62565b60006125d88483612add565b905061260e6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168483612d6a565b60405163b6b55f2560e01b81526001600160a01b0384169063b6b55f259061263a9084906004016150a7565b600060405180830381600087803b15801561265457600080fd5b505af1158015612668573d6000803e3d6000fd5b50506040516370a0823160e01b8152600092506001600160a01b03861691506370a082319061269b903090600401614237565b60206040518083038186803b1580156126b357600080fd5b505afa1580156126c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126eb9190614158565b90506127016001600160a01b0385163383612b97565b7f5f90971df3fde05a0e16e7c8443c9355874849fd9420a20689f967e82cce1847338686846040516127369493929190614274565b60405180910390a1505060018055505050565b60ca546001600160a01b031633146127735760405162461bcd60e51b8152600401610b479061493c565b600260015414156127965760405162461bcd60e51b8152600401610b4790614dab565b600260015560cd546001600160a01b0316806127c45760405162461bcd60e51b8152600401610b4790614ea7565b60cd80546001600160a01b031990811690915560cb80549091169055600060ce81905560405163813f267760e01b8152738b49fdd0cb50ba6d5c053d844fee55e5076f85049063813f267790612847907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690600401614237565b60206040518083038186803b15801561285f57600080fd5b505af4158015612873573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128979190614158565b9050816001600160a01b03167f7e830f7c1771deb1bdb35c4a7e6051bbac32b376f7f4e4976b8618b0b11997f782336040516128d49291906150b0565b60405180910390a2505060018055565b3390565b6001600160a01b03831661290e5760405162461bcd60e51b8152600401610b4790614bd4565b6001600160a01b0382166129345760405162461bcd60e51b8152600401610b4790614563565b6001600160a01b0380841660008181526098602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061298f9085906150a7565b60405180910390a3505050565b6001600160a01b0383166129c25760405162461bcd60e51b8152600401610b4790614ab1565b6001600160a01b0382166129e85760405162461bcd60e51b8152600401610b47906143cd565b6129f3838383612bed565b612a308160405180606001604052806026815260200161517c602691396001600160a01b0386166000908152609760205260409020549190612ab1565b6001600160a01b038085166000908152609760205260408082209390935590841681522054612a5f9082612bf2565b6001600160a01b0380841660008181526097602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061298f9085906150a7565b60008184841115612ad55760405162461bcd60e51b8152600401610b479190614376565b505050900390565b6000806000612aeb856117c1565b915091508315612b0657612aff8282612bf2565b9150600090505b336001600160a01b03167f02f25270a4d87bea75db541cdfe559334a275b4a233520ed6c0a2429667cca94838784604051612b43939291906150f4565b60405180910390a2612b553386612c88565b60d154612b8f906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116911683612b97565b509392505050565b612bed8363a9059cbb60e01b8484604051602401612bb69291906142dc565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526138e1565b505050565b600082820183811015610b1d5760405162461bcd60e51b8152600401610b47906145d3565b600080600080612c328560ce54612bf290919063ffffffff16565b90506000612c3e610a96565b9050612c4e816115d08985612fdd565b9450612c5a82866131d9565b9350612c6681886131d9565b925050509250925092565b600081831115612c815781610b1d565b5090919050565b6001600160a01b038216612cae5760405162461bcd60e51b8152600401610b4790614a70565b612cba82600083612bed565b612cf78160405180606001604052806022815260200161515a602291396001600160a01b0385166000908152609760205260409020549190612ab1565b6001600160a01b038316600090815260976020526040902055609954612d1d90826131d9565b6099556040516000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90612d5e9085906150a7565b60405180910390a35050565b801580612df25750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e90612da0903090869060040161429e565b60206040518083038186803b158015612db857600080fd5b505afa158015612dcc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612df09190614158565b155b612e0e5760405162461bcd60e51b8152600401610b4790614e0e565b612bed8363095ea7b360e01b8484604051602401612bb69291906142dc565b6000612e3830613970565b15905090565b600054610100900460ff1680612e575750612e57612e2d565b80612e65575060005460ff16155b612e815760405162461bcd60e51b8152600401610b479061486c565b600054610100900460ff16158015612eac576000805460ff1961ff0019909116610100171660011790555b612eb4613976565b8015612ec6576000805461ff00191690555b50565b600054610100900460ff1680612ee25750612ee2612e2d565b80612ef0575060005460ff16155b612f0c5760405162461bcd60e51b8152600401610b479061486c565b600054610100900460ff16158015612f37576000805460ff1961ff0019909116610100171660011790555b612f3f6139fc565b612f498383613a7d565b8015612bed576000805461ff0019169055505050565b600054610100900460ff1680612f785750612f78612e2d565b80612f86575060005460ff16155b612fa25760405162461bcd60e51b8152600401610b479061486c565b600054610100900460ff16158015612fcd576000805460ff1961ff0019909116610100171660011790555b612fd56139fc565b612eb4613b36565b600082612fec57506000610a90565b82820282848281612ff957fe5b0414610b1d5760405162461bcd60e51b8152600401610b47906148db565b60008082116130385760405162461bcd60e51b8152600401610b4790614792565b81838161304157fe5b049392505050565b61306a846323b872dd60e01b858585604051602401612bb6939291906142b8565b50505050565b600061307a6116ae565b905060cf54811061309d5760405162461bcd60e51b8152600401610b4790614d85565b7f00000000000000000000000000000000000000000000000000000000000000008110156130dd5760405162461bcd60e51b8152600401610b4790614c18565b60006130e982846131d9565b905060006130f5610a96565b9050600081156131125761310d836115d08785612fdd565b613114565b845b90507f00000000000000000000000000000000000000000000000000000000000000006131418383612bf2565b101561315f5760405162461bcd60e51b8152600401610b4790614445565b336001600160a01b03167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15868360405161319a9291906150c7565b60405180910390a2610e833382613c10565b6000670de0b6b3a76400006131d26131c48585613cc4565b6706f05b59d3b20000613cfb565b8161304157fe5b6000828211156131fb5760405162461bcd60e51b8152600401610b4790614715565b50900390565b7f00000000000000000000000000000000000000000000000000000000000000001561326657600161323960c0830160a084016140fd565b600281111561324457fe5b146132615760405162461bcd60e51b8152600401610b47906144b3565b6132a0565b600261327860c0830160a084016140fd565b600281111561328357fe5b146132a05760405162461bcd60e51b8152600401610b47906144fe565b604051633716662960e11b81526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636e2ccc52906132ef908590600401614f2c565b60206040518083038186803b15801561330757600080fd5b505afa15801561331b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061333f9190613f82565b90506001600160a01b0381166133675760405162461bcd60e51b8152600401610b4790614d64565b60008190507f00000000000000000000000000000000000000000000000000000000000000001515816001600160a01b031663f3c274a66040518163ffffffff1660e01b815260040160206040518083038186803b1580156133c857600080fd5b505afa1580156133dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061340091906140dd565b15151461341f5760405162461bcd60e51b8152600401610b479061460a565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b0316637158da7c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561348257600080fd5b505afa158015613496573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134ba9190613f82565b6001600160a01b0316146134e05760405162461bcd60e51b8152600401610b47906147c9565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b031663aabaecd66040518163ffffffff1660e01b815260040160206040518083038186803b15801561354357600080fd5b505afa158015613557573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061357b9190613f82565b6001600160a01b0316146135a15760405162461bcd60e51b8152600401610b4790614d35565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b03166317d69bc86040518163ffffffff1660e01b815260040160206040518083038186803b15801561360457600080fd5b505afa158015613618573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061363c9190613f82565b6001600160a01b0316146136625760405162461bcd60e51b8152600401610b47906144d1565b600061367042610e10612bf2565b905080826001600160a01b031663ade6e2aa6040518163ffffffff1660e01b815260040160206040518083038186803b1580156136ac57600080fd5b505afa1580156136c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136e49190614158565b10156137025760405162461bcd60e51b8152600401610b4790614b1e565b60cb80546001600160a01b0319166001600160a01b0394909416939093179092555060cc5550565b60cd80546001600160a01b03198116909155600060ce556001600160a01b03168015612ec6576000819050806001600160a01b031663ade6e2aa6040518163ffffffff1660e01b815260040160206040518083038186803b15801561378e57600080fd5b505afa1580156137a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137c69190614158565b42116137e45760405162461bcd60e51b8152600401610b4790614410565b60405163813f267760e01b8152600090738b49fdd0cb50ba6d5c053d844fee55e5076f85049063813f267790613847906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690600401614237565b60206040518083038186803b15801561385f57600080fd5b505af4158015613873573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138979190614158565b9050826001600160a01b03167f7e830f7c1771deb1bdb35c4a7e6051bbac32b376f7f4e4976b8618b0b11997f782336040516138d49291906150b0565b60405180910390a2505050565b6060613936826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613d1e9092919063ffffffff16565b805190915015612bed578080602001905181019061395491906140dd565b612bed5760405162461bcd60e51b8152600401610b4790614ceb565b3b151590565b600054610100900460ff168061398f575061398f612e2d565b8061399d575060005460ff16155b6139b95760405162461bcd60e51b8152600401610b479061486c565b600054610100900460ff161580156139e4576000805460ff1961ff0019909116610100171660011790555b600180558015612ec6576000805461ff001916905550565b600054610100900460ff1680613a155750613a15612e2d565b80613a23575060005460ff16155b613a3f5760405162461bcd60e51b8152600401610b479061486c565b600054610100900460ff16158015612eb4576000805460ff1961ff0019909116610100171660011790558015612ec6576000805461ff001916905550565b600054610100900460ff1680613a965750613a96612e2d565b80613aa4575060005460ff16155b613ac05760405162461bcd60e51b8152600401610b479061486c565b600054610100900460ff16158015613aeb576000805460ff1961ff0019909116610100171660011790555b8251613afe90609a906020860190613e6c565b508151613b1290609b906020850190613e6c565b50609c805460ff191660121790558015612bed576000805461ff0019169055505050565b600054610100900460ff1680613b4f5750613b4f612e2d565b80613b5d575060005460ff16155b613b795760405162461bcd60e51b8152600401610b479061486c565b600054610100900460ff16158015613ba4576000805460ff1961ff0019909116610100171660011790555b6000613bae6128e4565b606580546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508015612ec6576000805461ff001916905550565b6001600160a01b038216613c365760405162461bcd60e51b8152600401610b4790614ecf565b613c4260008383612bed565b609954613c4f9082612bf2565b6099556001600160a01b038216600090815260976020526040902054613c759082612bf2565b6001600160a01b0383166000818152609760205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90612d5e9085906150a7565b6000811580613cdf57505080820282828281613cdc57fe5b04145b610a905760405162461bcd60e51b8152600401610b47906145a5565b80820182811015610a905760405162461bcd60e51b8152600401610b4790614641565b6060613d2d8484600085613d35565b949350505050565b606082471015613d575760405162461bcd60e51b8152600401610b479061474c565b613d6085613970565b613d7c5760405162461bcd60e51b8152600401610b4790614c4f565b60006060866001600160a01b03168587604051613d99919061421b565b60006040518083038185875af1925050503d8060008114613dd6576040519150601f19603f3d011682016040523d82523d6000602084013e613ddb565b606091505b5091509150613deb828286613df6565b979650505050505050565b60608315613e05575081610b1d565b825115613e155782518084602001fd5b8160405162461bcd60e51b8152600401610b479190614376565b6040805160e08101825260008082526020820181905291810182905260608101829052608081018290529060a08201908152600060209091015290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10613ead57805160ff1916838001178555613eda565b82800160010185558215613eda579182015b82811115613eda578251825591602001919060010190613ebf565b50613ee6929150613eea565b5090565b5b80821115613ee65760008155600101613eeb565b803560038110610c6d57600080fd5b60008083601f840112613f1f578182fd5b50813567ffffffffffffffff811115613f36578182fd5b602083019150836020828501011115613f4e57600080fd5b9250929050565b803560ff81168114610c6d57600080fd5b600060208284031215613f77578081fd5b8135610b1d81615144565b600060208284031215613f93578081fd5b8151610b1d81615144565b60008060408385031215613fb0578081fd5b8235613fbb81615144565b91506020830135613fcb81615144565b809150509250929050565b600080600060608486031215613fea578081fd5b8335613ff581615144565b9250602084013561400581615144565b929592945050506040919091013590565b600080600080600080600060a0888a031215614030578283fd5b873561403b81615144565b9650602088013561404b81615144565b955060408801359450606088013567ffffffffffffffff8082111561406e578485fd5b61407a8b838c01613f0e565b909650945060808a0135915080821115614092578384fd5b5061409f8a828b01613f0e565b989b979a50959850939692959293505050565b600080604083850312156140c4578182fd5b82356140cf81615144565b946020939093013593505050565b6000602082840312156140ee578081fd5b81518015158114610b1d578182fd5b60006020828403121561410e578081fd5b610b1d82613eff565b600060e08284031215614128578081fd5b50919050565b60006102e08284031215614128578081fd5b600060208284031215614151578081fd5b5035919050565b600060208284031215614169578081fd5b5051919050565b60008060408385031215614182578182fd5b823591506020830135613fcb81615144565b6001600160f81b0319169052565b600381106141ac57fe5b9052565b80356001600160e01b031981168082146141c957600080fd5b83525060208101356141da81615144565b6001600160a01b0390811660208401526040820135906141f982615144565b16604083015260608181013590830152608090810135910152565b60ff169052565b6000825161422d818460208701615118565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0394851681529290931660208301526040820152606081019190915260800190565b6001600160a01b039485168152602081019390935292166040820152606081019190915260800190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b60006101208201905060018060a01b03808616835280855116602084015280602086015116604084015280604086015116606084015260608501516080840152608085015160a084015260a085015161435c60c08501826141a2565b5060c0949094015190931660e08201526101000152919050565b6000602082528251806020840152614395816040850160208701615118565b601f01601f19169190910160400192915050565b6020808252600a90820152692175706772616465546f60b01b604082015260600190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252818101527f43616e6e6f7420636c6f73652073686f7274206265666f726520657870697279604082015260600190565b60208082526019908201527f496e73756666696369656e7420736861726520737570706c7900000000000000604082015260600190565b60208082526018908201527f53656e6465722063616e206f6e6c79206265207661756c740000000000000000604082015260600190565b602080825260049082015263085c1d5d60e21b604082015260600190565b602080825260139082015272737472696b65417373657420213d205553444360681b604082015260600190565b6020808252600590820152640858d85b1b60da1b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b60208082526014908201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601a908201527f4f7074696f6e207479706520646f6573206e6f74206d61746368000000000000604082015260600190565b60208082526014908201527364732d6d6174682d6164642d6f766572666c6f7760601b604082015260600190565b60208082526010908201526f0bee8ded6cadc9cc2daca40427a4060f60831b604082015260600190565b6020808252601b908201527f43616e206f6e6c792073656c6c2063757272656e744f7074696f6e0000000000604082015260600190565b60208082526006908201526521736861726560d01b604082015260600190565b6020808252600b908201526a10b732bba6b0b730b3b2b960a91b604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252601a908201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604082015260600190565b60208082526015908201527415dc9bdb99c81d5b99195c9b1e5a5b99d05cdcd95d605a1b604082015260600190565b6020808252601190820152700c2e6e6cae840d2e640dcdee840ae8aa89607b1b604082015260600190565b60208082526010908201526f085b995dd19959549958da5c1a595b9d60821b604082015260600190565b602080825260059082015264042ae8aa8960db1b604082015260600190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60208082526007908201526610afb7bbb732b960c91b604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b602080825260069082015265085d985d5b1d60d21b604082015260600190565b6020808252600c908201526b27b7363c9036b0b730b3b2b960a11b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526018908201527f43616e6e6f7420726f6c6c206265666f72652064656c61790000000000000000604082015260600190565b6020808252600a9082015269139bdd081cdd5b9cd95d60b21b604082015260600190565b6020808252600f908201526e2737903337bab7321037b83a34b7b760891b604082015260600190565b60208082526012908201527107769746864726177616c46656520213d20360741b604082015260600190565b6020808252600f908201526e139bc81d985b1d59481c185cdcd959608a1b604082015260600190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252600e908201526d0857d99959549958da5c1a595b9d60921b604082015260600190565b60208082526024908201527f4f7074696f6e206578706972792063616e6e6f74206265206265666f72652064604082015263656c617960e01b606082015260800190565b60208082526025908201527f4665656c65737320776974686472617720746f207661756c74206e6f7420616c6040820152641b1bddd95960da1b606082015260800190565b602080825260139082015272115512081d1c985b9cd9995c8819985a5b1959606a1b604082015260600190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252601a908201527f496e73756666696369656e742061737365742062616c616e6365000000000000604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252601d908201527f43616e206f6e6c7920627579207769746820617373657420746f6b656e000000604082015260600190565b6020808252601490820152737769746864726177616c466565203e3d2033302560601b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526015908201527415dc9bdb99c818dbdb1b185d195c985b105cdcd95d605a1b604082015260600190565b60208082526007908201526610b7b83a34b7b760c91b604082015260600190565b6020808252600c908201526b10d85c08195e18d95959195960a21b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601290820152710bee8ded6cadca6f2dac4ded840427a4060f60731b604082015260600190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606082015260800190565b60208082526023908201527f43616e6e6f74207769746864726177206d6f7265207468616e20617661696c61604082015262626c6560e81b606082015260800190565b6020808252600e908201526d10b1bab93932b73a27b83a34b7b760911b604082015260600190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b6020808252600c908201526b05f696e6974436170203e20360a41b604082015260600190565b60e081018235614f3b81615144565b6001600160a01b039081168352602084013590614f5782615144565b9081166020840152604084013590614f6e82615144565b80821660408501526060850135606085015260808501356080850152614f9660a08601613eff565b9150614fa560a08501836141a2565b60c08501359150614fb582615144565b80821660c0850152505092915050565b81358152602080830135908201526102e08101614fe860408084019085016141b0565b614ff860e0830160e085016141b0565b6101806150098184018286016141b0565b506102208084013561501a81615144565b6001600160a01b039081169184019190915261024090848201359061503e82615144565b1690830152610260838101356001600160f81b03198116811461506057600080fd5b61506c82850182614194565b505061028061507c818501613f55565b61508882850182614214565b50506102a083810135908301526102c092830135929091019190915290565b90815260200190565b9182526001600160a01b0316602082015260400190565b918252602082015260400190565b92835260208301919091526001600160a01b0316604082015260600190565b9283526020830191909152604082015260600190565b60ff91909116815260200190565b60005b8381101561513357818101518382015260200161511b565b8381111561306a5750506000910152565b6001600160a01b0381168114612ec657600080fdfe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220a7002a3a92cefc55d9aa2c497c618c3c9d9a2b8d94fbcc05663e573a803f147a64736f6c63430007020033000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000863dd8ea9b7472c54cde1f0e2d5b2bcc8cbf0cd10000000000000000000000008d3d21536e025908683aec2633cec228e385c243000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000004572f2554421bd64bef1c22c8a81840e8d496bea000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000002540be4000000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061038c5760003560e01c80639ab8367e116101dc578063c66f245511610102578063f14210a6116100a0578063f6bca1201161006f578063f6bca1201461095e578063f8432a1b14610973578063f870316f14610988578063faec2233146109a85761038c565b8063f14210a614610901578063f2fde38b14610921578063f3c274a614610941578063f6326fb3146109565761038c565b8063dc7900f7116100dc578063dc7900f71461088c578063dd62ed3e146108ac578063de2fbaba146108cc578063e74b981b146108e15761038c565b8063c66f245514610842578063cf3afa5114610857578063d0ebdbe71461086c5761038c565b8063aa7ebfe11161017a578063b6b55f2511610149578063b6b55f25146107bf578063b81f2853146107df578063b9f8092b1461080d578063ba3f6bd8146108225761038c565b8063aa7ebfe114610755578063ac1e502514610775578063ad5c464814610795578063ad7a672f146107aa5761038c565b8063a2db9d83116101b6578063a2db9d83146106eb578063a457c2d714610700578063a8e0bcec14610720578063a9059cbb146107355761038c565b80639ab8367e146106965780639ec7aaad146106b6578063a285c9e8146106d65761038c565b8063481c6a75116102c157806370a082311161025f5780638b10cc7c1161022e5780638b10cc7c146106425780638da5cb5b146106575780638fd3ab801461066c57806395d89b41146106815761038c565b806370a08231146105e3578063715018a6146106035780637b1039991461061857806389a302711461062d5761038c565b80636a56e0461161029b5780636a56e0461461058f5780636ab28bc8146105a45780636b34128c146105b95780636f307dc3146105ce5761038c565b8063481c6a7514610545578063538130bd1461055a5780636a42b8f81461057a5761038c565b8063355274ea1161032e5780633e52583d116103085780633e52583d146104db5780633f23bb73146104f0578063469048401461051057806347786d37146105255761038c565b8063355274ea1461049157806338d52e0f146104a657806339509351146104bb5761038c565b806318160ddd1161036a57806318160ddd1461040b57806323b872dd1461042d5780632e1a7d4d1461044d578063313ce5671461046f5761038c565b806303eadcfc1461039157806306fdde03146103bc578063095ea7b3146103de575b600080fd5b34801561039d57600080fd5b506103a66109bd565b6040516103b39190614237565b60405180910390f35b3480156103c857600080fd5b506103d16109e1565b6040516103b39190614376565b3480156103ea57600080fd5b506103fe6103f93660046140b2565b610a78565b6040516103b391906142f5565b34801561041757600080fd5b50610420610a96565b6040516103b391906150a7565b34801561043957600080fd5b506103fe610448366004613fd6565b610a9c565b34801561045957600080fd5b5061046d610468366004614140565b610b24565b005b34801561047b57600080fd5b50610484610b9f565b6040516103b3919061510a565b34801561049d57600080fd5b50610420610bc3565b3480156104b257600080fd5b506103a6610bc9565b3480156104c757600080fd5b506103fe6104d63660046140b2565b610bed565b3480156104e757600080fd5b506103a6610c3b565b3480156104fc57600080fd5b5061042061050b366004613f66565b610c4a565b34801561051c57600080fd5b506103a6610c72565b34801561053157600080fd5b5061046d610540366004614140565b610c81565b34801561055157600080fd5b506103a6610cf3565b34801561056657600080fd5b5061046d61057536600461412e565b610d02565b34801561058657600080fd5b50610420610e8a565b34801561059b57600080fd5b50610420610e90565b3480156105b057600080fd5b50610420610eb4565b3480156105c557600080fd5b50610420610eba565b3480156105da57600080fd5b506103a6610ec0565b3480156105ef57600080fd5b506104206105fe366004613f66565b610ee4565b34801561060f57600080fd5b5061046d610eff565b34801561062457600080fd5b506103a6610f88565b34801561063957600080fd5b506103a6610fac565b34801561064e57600080fd5b506103a6610fd0565b34801561066357600080fd5b506103a6610fdf565b34801561067857600080fd5b5061046d610fee565b34801561068d57600080fd5b506103d161116a565b3480156106a257600080fd5b5061046d6106b1366004614016565b6111cb565b3480156106c257600080fd5b5061046d6106d1366004613f66565b6113b2565b3480156106e257600080fd5b5061042061146d565b3480156106f757600080fd5b506103a6611473565b34801561070c57600080fd5b506103fe61071b3660046140b2565b611482565b34801561072c57600080fd5b506104206114ea565b34801561074157600080fd5b506103fe6107503660046140b2565b61158d565b34801561076157600080fd5b50610420610770366004614140565b6115a1565b34801561078157600080fd5b5061046d610790366004614140565b6115d6565b3480156107a157600080fd5b506103a661168a565b3480156107b657600080fd5b506104206116ae565b3480156107cb57600080fd5b5061046d6107da366004614140565b611754565b3480156107eb57600080fd5b506107ff6107fa366004614140565b6117c1565b6040516103b39291906150c7565b34801561081957600080fd5b5061046d6118a8565b34801561082e57600080fd5b5061042061083d366004613f66565b611d54565b34801561084e57600080fd5b50610420611d97565b34801561086357600080fd5b506103a6611e36565b34801561087857600080fd5b5061046d610887366004613f66565b611e5a565b34801561089857600080fd5b5061046d6108a7366004614117565b611f12565b3480156108b857600080fd5b506104206108c7366004613f9e565b611f75565b3480156108d857600080fd5b50610420611fa0565b3480156108ed57600080fd5b5061046d6108fc366004613f66565b611fac565b34801561090d57600080fd5b5061046d61091c366004614140565b612033565b34801561092d57600080fd5b5061046d61093c366004613f66565b6121e2565b34801561094d57600080fd5b506103fe6122a3565b61046d6122c7565b34801561096a57600080fd5b50610420612406565b34801561097f57600080fd5b5061046d61246c565b34801561099457600080fd5b5061046d6109a3366004614170565b61249c565b3480156109b457600080fd5b5061046d612749565b7f000000000000000000000000cd99b092a5c08c33d09b3e72046a7ab42d8110d181565b609a8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a6d5780601f10610a4257610100808354040283529160200191610a6d565b820191906000526020600020905b815481529060010190602001808311610a5057829003601f168201915b505050505090505b90565b6000610a8c610a856128e4565b84846128e8565b5060015b92915050565b60995490565b6000610aa984848461299c565b610b1984610ab56128e4565b610b14856040518060600160405280602881526020016151a2602891396001600160a01b038a16600090815260986020526040812090610af36128e4565b6001600160a01b031681526020810191909152604001600020549190612ab1565b6128e8565b5060015b9392505050565b60026001541415610b505760405162461bcd60e51b8152600401610b4790614dab565b60405180910390fd5b60026001556000610b618282612add565b9050610b976001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2163383612b97565b505060018055565b7f000000000000000000000000000000000000000000000000000000000000001290565b60cf5481565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6000610a8c610bfa6128e4565b84610b148560986000610c0b6128e4565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490612bf2565b60d4546001600160a01b031681565b600080610c66610c5984610ee4565b610c61611d97565b612c17565b5090925050505b919050565b60d1546001600160a01b031681565b60ca546001600160a01b03163314610cab5760405162461bcd60e51b8152600401610b479061493c565b60cf8054908290556040517f0e45875b8819e52adac9df2787285bc765235018d84ab492668edfcf944628c490610ce7908390859033906150d5565b60405180910390a15050565b60ca546001600160a01b031681565b60ca546001600160a01b03163314610d2c5760405162461bcd60e51b8152600401610b479061493c565b30610d3f61012083016101008401613f66565b6001600160a01b031614610d655760405162461bcd60e51b8152600401610b479061447c565b60cd546001600160a01b0316610d8361014083016101208401613f66565b6001600160a01b031614610da95760405162461bcd60e51b8152600401610b4790614699565b6001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216610de360a0830160808401613f66565b6001600160a01b031614610e095760405162461bcd60e51b8152600401610b4790614c86565b6040516367641c2f60e01b81526001600160a01b037f0000000000000000000000004572f2554421bd64bef1c22c8a81840e8d496bea16906367641c2f90610e55908490600401614fc5565b600060405180830381600087803b158015610e6f57600080fd5b505af1158015610e83573d6000803e3d6000fd5b5050505050565b610e1081565b7f00000000000000000000000000000000000000000000000000000002540be40081565b60ce5481565b60d05481565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6001600160a01b031660009081526097602052604090205490565b610f076128e4565b6001600160a01b0316610f18610fdf565b6001600160a01b031614610f3e5760405162461bcd60e51b8152600401610b4790614962565b6065546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3606580546001600160a01b0319169055565b7f0000000000000000000000008d3d21536e025908683aec2633cec228e385c24381565b7f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b60cd546001600160a01b031681565b6065546001600160a01b031690565b600260015414156110115760405162461bcd60e51b8152600401610b4790614dab565b600260015560d4546001600160a01b03168061103f5760405162461bcd60e51b8152600401610b47906149ce565b6000611049612406565b9050600061105633610ee4565b905060006110648383612c71565b9050600080611072836117c1565b90925090506110818282612bf2565b91507fd616b8856fa5febbdb06f07dd8d624380d02864619f3b796002f43bc36a4d1bc338785856040516110b8949392919061424b565b60405180910390a16110ca3384612c88565b6110fe6001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2168784612d6a565b6040516336efd16f60e01b81526001600160a01b038716906336efd16f9061112c90859033906004016150b0565b600060405180830381600087803b15801561114657600080fd5b505af115801561115a573d6000803e3d6000fd5b5050600180555050505050505050565b609b8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a6d5780601f10610a4257610100808354040283529160200191610a6d565b600054610100900460ff16806111e457506111e4612e2d565b806111f2575060005460ff16155b61120e5760405162461bcd60e51b8152600401610b479061486c565b600054610100900460ff16158015611239576000805460ff1961ff0019909116610100171660011790555b6001600160a01b03881661125f5760405162461bcd60e51b8152600401610b47906148ba565b6001600160a01b0387166112855760405162461bcd60e51b8152600401610b4790614af6565b600086116112a55760405162461bcd60e51b8152600401610b4790614f06565b836112c25760405162461bcd60e51b8152600401610b479061466f565b816112df5760405162461bcd60e51b8152600401610b4790614de2565b6112e7612e3e565b61135a85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f89018190048102820181019092528781529250879150869081908401838280828437600092019190915250612ec992505050565b611362612f5f565b61136b886121e2565b60cf8690556611c37937e0800060d05560d180546001600160a01b0319166001600160a01b03891617905580156113a8576000805461ff00191690555b5050505050505050565b6113ba6128e4565b6001600160a01b03166113cb610fdf565b6001600160a01b0316146113f15760405162461bcd60e51b8152600401610b4790614962565b6001600160a01b0381166114175760405162461bcd60e51b8152600401610b47906143a9565b60d480546001600160a01b0319166001600160a01b0383161790556040517f1f7dd14c4cfe82fd374c1bb5dfc3dd254b087a032c9dcfd13aeefa9f6689d86990611462908390614237565b60405180910390a150565b60cc5481565b60cb546001600160a01b031681565b6000610a8c61148f6128e4565b84610b14856040518060600160405280602581526020016151ca60259139609860006114b96128e4565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190612ab1565b60cd546000906001600160a01b031680611508576000915050610a75565b60cd54604080516356f3715560e11b815290516001600160a01b0390921691829163ade6e2aa916004808301926020929190829003018186803b15801561154e57600080fd5b505afa158015611562573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115869190614158565b9250505090565b6000610a8c61159a6128e4565b848461299c565b6000806115b86115af611d97565b60ce5490612bf2565b9050610b1d816115d06115c9610a96565b8690612fdd565b90613017565b60ca546001600160a01b031633146116005760405162461bcd60e51b8152600401610b479061493c565b600081116116205760405162461bcd60e51b8152600401610b4790614a1b565b670429d069189e000081106116475760405162461bcd60e51b8152600401610b4790614cbd565b60d0546040517f28a572c8c759d40c2d26dcdaaefd9650e9e37ff11ee147ce0f645cd7664048cb9061167c90839085906150c7565b60405180910390a15060d055565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b600061174f7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016116ff9190614237565b60206040518083038186803b15801561171757600080fd5b505afa15801561172b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115af9190614158565b905090565b600260015414156117775760405162461bcd60e51b8152600401610b4790614dab565b60026001556117b16001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216333084613049565b6117ba81613070565b5060018055565b60008060006117ce611d97565b905060008060006117df8785612c17565b925092509250838311156118055760405162461bcd60e51b8152600401610b4790614e64565b7f00000000000000000000000000000000000000000000000000000002540be4008110156118455760405162461bcd60e51b8152600401610b4790614445565b7f00000000000000000000000000000000000000000000000000000002540be4008210156118855760405162461bcd60e51b8152600401610b4790614c18565b6118918360d0546131ac565b945061189d83866131d9565b955050505050915091565b60ca546001600160a01b031633146118d25760405162461bcd60e51b8152600401610b479061493c565b600260015414156118f55760405162461bcd60e51b8152600401610b4790614dab565b600260015560cc5442101561191c5760405162461bcd60e51b8152600401610b4790614997565b60cb546001600160a01b0316806119455760405162461bcd60e51b8152600401610b47906149f2565b60cd80546001600160a01b0383166001600160a01b03199182161790915560cb805490911690556000611976611d97565b9050600061198c82670c7d713b49da00006131ac565b60ce81905590508261199c613e2f565b6040518060e00160405280836001600160a01b0316637158da7c6040518163ffffffff1660e01b815260040160206040518083038186803b1580156119e057600080fd5b505afa1580156119f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a189190613f82565b6001600160a01b031681526020017f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486001600160a01b03168152602001836001600160a01b031663aabaecd66040518163ffffffff1660e01b815260040160206040518083038186803b158015611a8e57600080fd5b505afa158015611aa2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac69190613f82565b6001600160a01b03168152602001836001600160a01b031663ade6e2aa6040518163ffffffff1660e01b815260040160206040518083038186803b158015611b0d57600080fd5b505afa158015611b21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b459190614158565b8152602001611bca6402540be400856001600160a01b031663c52987cf6040518163ffffffff1660e01b815260040160206040518083038186803b158015611b8c57600080fd5b505afa158015611ba0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bc49190614158565b90612fdd565b81526020017f0000000000000000000000000000000000000000000000000000000000000000611bfb576002611bfe565b60015b6002811115611c0957fe5b815260006020909101819052604051636780c04960e01b815291925090738b49fdd0cb50ba6d5c053d844fee55e5076f850490636780c04990611c7d907f000000000000000000000000cd99b092a5c08c33d09b3e72046a7ab42d8110d16001600160a01b03169086908990600401614300565b60206040518083038186803b158015611c9557600080fd5b505af4158015611ca9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ccd9190614158565b905085611d046001600160a01b0382167f0000000000000000000000004572f2554421bd64bef1c22c8a81840e8d496bea84612d6a565b866001600160a01b03167f045c558fdce4714c5816d53820d27420f4cd860892df203fe636384d8d19aa018633604051611d3f9291906150b0565b60405180910390a25050600180555050505050565b600080611d5f612406565b90506000611d6c84610ee4565b90506000611d7a8383612c71565b90506000611d8a82610c61611d97565b5090979650505050505050565b6040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216906370a0823190611de6903090600401614237565b60206040518083038186803b158015611dfe57600080fd5b505afa158015611e12573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061174f9190614158565b7f0000000000000000000000004572f2554421bd64bef1c22c8a81840e8d496bea81565b611e626128e4565b6001600160a01b0316611e73610fdf565b6001600160a01b031614611e995760405162461bcd60e51b8152600401610b4790614962565b6001600160a01b038116611ebf5760405162461bcd60e51b8152600401610b47906146f0565b60ca80546001600160a01b038381166001600160a01b03198316179092556040519116907f605c2dbf762e5f7d60a546d42e7205dcb1b011ebc62a61736a57c9089d3a435090610ce7908390859061429e565b60ca546001600160a01b03163314611f3c5760405162461bcd60e51b8152600401610b479061493c565b60026001541415611f5f5760405162461bcd60e51b8152600401610b4790614dab565b6002600155611f6d81613201565b6117ba61372a565b6001600160a01b03918216600090815260986020908152604080832093909416825291909152205490565b670c7d713b49da000081565b611fb46128e4565b6001600160a01b0316611fc5610fdf565b6001600160a01b031614611feb5760405162461bcd60e51b8152600401610b4790614962565b6001600160a01b0381166120115760405162461bcd60e51b8152600401610b4790614823565b60d180546001600160a01b0319166001600160a01b0392909216919091179055565b600260015414156120565760405162461bcd60e51b8152600401610b4790614dab565b60026001819055507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b03167f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316146120cf5760405162461bcd60e51b8152600401610b479061484d565b60006120dc826000612add565b604051632e1a7d4d60e01b81529091506001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc21690632e1a7d4d9061212b9084906004016150a7565b600060405180830381600087803b15801561214557600080fd5b505af1158015612159573d6000803e3d6000fd5b505050506000336001600160a01b03168260405161217690610a75565b60006040518083038185875af1925050503d80600081146121b3576040519150601f19603f3d011682016040523d82523d6000602084013e6121b8565b606091505b50509050806121d95760405162461bcd60e51b8152600401610b4790614ba7565b50506001805550565b6121ea6128e4565b6001600160a01b03166121fb610fdf565b6001600160a01b0316146122215760405162461bcd60e51b8152600401610b4790614962565b6001600160a01b0381166122475760405162461bcd60e51b8152600401610b479061451d565b6065546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3606580546001600160a01b0319166001600160a01b0392909216919091179055565b7f000000000000000000000000000000000000000000000000000000000000000081565b600260015414156122ea5760405162461bcd60e51b8152600401610b4790614dab565b60026001819055507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b03167f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316146123635760405162461bcd60e51b8152600401610b47906147f8565b600034116123835760405162461bcd60e51b8152600401610b4790614a47565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b1580156123de57600080fd5b505af11580156123f2573d6000803e3d6000fd5b505050505061240034613070565b60018055565b600080612411611d97565b9050600061242a8260ce54612bf290919063ffffffff16565b90506115867f00000000000000000000000000000000000000000000000000000002540be400612466836115d061245f610a96565b8790612fdd565b906131d9565b6002600154141561248f5760405162461bcd60e51b8152600401610b4790614dab565b600260015561240061372a565b600260015414156124bf5760405162461bcd60e51b8152600401610b4790614dab565b60026001556001600160a01b0381166124ea5760405162461bcd60e51b8152600401610b479061491c565b6000821161250a5760405162461bcd60e51b8152600401610b47906146d0565b604051635cae8ec160e11b81526000906001600160a01b037f0000000000000000000000008d3d21536e025908683aec2633cec228e385c243169063b95d1d829061255b903090869060040161429e565b602060405180830381600087803b15801561257557600080fd5b505af1158015612589573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125ad91906140dd565b9050806125cc5760405162461bcd60e51b8152600401610b4790614b62565b60006125d88483612add565b905061260e6001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2168483612d6a565b60405163b6b55f2560e01b81526001600160a01b0384169063b6b55f259061263a9084906004016150a7565b600060405180830381600087803b15801561265457600080fd5b505af1158015612668573d6000803e3d6000fd5b50506040516370a0823160e01b8152600092506001600160a01b03861691506370a082319061269b903090600401614237565b60206040518083038186803b1580156126b357600080fd5b505afa1580156126c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126eb9190614158565b90506127016001600160a01b0385163383612b97565b7f5f90971df3fde05a0e16e7c8443c9355874849fd9420a20689f967e82cce1847338686846040516127369493929190614274565b60405180910390a1505060018055505050565b60ca546001600160a01b031633146127735760405162461bcd60e51b8152600401610b479061493c565b600260015414156127965760405162461bcd60e51b8152600401610b4790614dab565b600260015560cd546001600160a01b0316806127c45760405162461bcd60e51b8152600401610b4790614ea7565b60cd80546001600160a01b031990811690915560cb80549091169055600060ce81905560405163813f267760e01b8152738b49fdd0cb50ba6d5c053d844fee55e5076f85049063813f267790612847907f000000000000000000000000cd99b092a5c08c33d09b3e72046a7ab42d8110d16001600160a01b031690600401614237565b60206040518083038186803b15801561285f57600080fd5b505af4158015612873573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128979190614158565b9050816001600160a01b03167f7e830f7c1771deb1bdb35c4a7e6051bbac32b376f7f4e4976b8618b0b11997f782336040516128d49291906150b0565b60405180910390a2505060018055565b3390565b6001600160a01b03831661290e5760405162461bcd60e51b8152600401610b4790614bd4565b6001600160a01b0382166129345760405162461bcd60e51b8152600401610b4790614563565b6001600160a01b0380841660008181526098602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061298f9085906150a7565b60405180910390a3505050565b6001600160a01b0383166129c25760405162461bcd60e51b8152600401610b4790614ab1565b6001600160a01b0382166129e85760405162461bcd60e51b8152600401610b47906143cd565b6129f3838383612bed565b612a308160405180606001604052806026815260200161517c602691396001600160a01b0386166000908152609760205260409020549190612ab1565b6001600160a01b038085166000908152609760205260408082209390935590841681522054612a5f9082612bf2565b6001600160a01b0380841660008181526097602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061298f9085906150a7565b60008184841115612ad55760405162461bcd60e51b8152600401610b479190614376565b505050900390565b6000806000612aeb856117c1565b915091508315612b0657612aff8282612bf2565b9150600090505b336001600160a01b03167f02f25270a4d87bea75db541cdfe559334a275b4a233520ed6c0a2429667cca94838784604051612b43939291906150f4565b60405180910390a2612b553386612c88565b60d154612b8f906001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28116911683612b97565b509392505050565b612bed8363a9059cbb60e01b8484604051602401612bb69291906142dc565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526138e1565b505050565b600082820183811015610b1d5760405162461bcd60e51b8152600401610b47906145d3565b600080600080612c328560ce54612bf290919063ffffffff16565b90506000612c3e610a96565b9050612c4e816115d08985612fdd565b9450612c5a82866131d9565b9350612c6681886131d9565b925050509250925092565b600081831115612c815781610b1d565b5090919050565b6001600160a01b038216612cae5760405162461bcd60e51b8152600401610b4790614a70565b612cba82600083612bed565b612cf78160405180606001604052806022815260200161515a602291396001600160a01b0385166000908152609760205260409020549190612ab1565b6001600160a01b038316600090815260976020526040902055609954612d1d90826131d9565b6099556040516000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90612d5e9085906150a7565b60405180910390a35050565b801580612df25750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e90612da0903090869060040161429e565b60206040518083038186803b158015612db857600080fd5b505afa158015612dcc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612df09190614158565b155b612e0e5760405162461bcd60e51b8152600401610b4790614e0e565b612bed8363095ea7b360e01b8484604051602401612bb69291906142dc565b6000612e3830613970565b15905090565b600054610100900460ff1680612e575750612e57612e2d565b80612e65575060005460ff16155b612e815760405162461bcd60e51b8152600401610b479061486c565b600054610100900460ff16158015612eac576000805460ff1961ff0019909116610100171660011790555b612eb4613976565b8015612ec6576000805461ff00191690555b50565b600054610100900460ff1680612ee25750612ee2612e2d565b80612ef0575060005460ff16155b612f0c5760405162461bcd60e51b8152600401610b479061486c565b600054610100900460ff16158015612f37576000805460ff1961ff0019909116610100171660011790555b612f3f6139fc565b612f498383613a7d565b8015612bed576000805461ff0019169055505050565b600054610100900460ff1680612f785750612f78612e2d565b80612f86575060005460ff16155b612fa25760405162461bcd60e51b8152600401610b479061486c565b600054610100900460ff16158015612fcd576000805460ff1961ff0019909116610100171660011790555b612fd56139fc565b612eb4613b36565b600082612fec57506000610a90565b82820282848281612ff957fe5b0414610b1d5760405162461bcd60e51b8152600401610b47906148db565b60008082116130385760405162461bcd60e51b8152600401610b4790614792565b81838161304157fe5b049392505050565b61306a846323b872dd60e01b858585604051602401612bb6939291906142b8565b50505050565b600061307a6116ae565b905060cf54811061309d5760405162461bcd60e51b8152600401610b4790614d85565b7f00000000000000000000000000000000000000000000000000000002540be4008110156130dd5760405162461bcd60e51b8152600401610b4790614c18565b60006130e982846131d9565b905060006130f5610a96565b9050600081156131125761310d836115d08785612fdd565b613114565b845b90507f00000000000000000000000000000000000000000000000000000002540be4006131418383612bf2565b101561315f5760405162461bcd60e51b8152600401610b4790614445565b336001600160a01b03167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15868360405161319a9291906150c7565b60405180910390a2610e833382613c10565b6000670de0b6b3a76400006131d26131c48585613cc4565b6706f05b59d3b20000613cfb565b8161304157fe5b6000828211156131fb5760405162461bcd60e51b8152600401610b4790614715565b50900390565b7f00000000000000000000000000000000000000000000000000000000000000001561326657600161323960c0830160a084016140fd565b600281111561324457fe5b146132615760405162461bcd60e51b8152600401610b47906144b3565b6132a0565b600261327860c0830160a084016140fd565b600281111561328357fe5b146132a05760405162461bcd60e51b8152600401610b47906144fe565b604051633716662960e11b81526000906001600160a01b037f000000000000000000000000cd99b092a5c08c33d09b3e72046a7ab42d8110d11690636e2ccc52906132ef908590600401614f2c565b60206040518083038186803b15801561330757600080fd5b505afa15801561331b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061333f9190613f82565b90506001600160a01b0381166133675760405162461bcd60e51b8152600401610b4790614d64565b60008190507f00000000000000000000000000000000000000000000000000000000000000001515816001600160a01b031663f3c274a66040518163ffffffff1660e01b815260040160206040518083038186803b1580156133c857600080fd5b505afa1580156133dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061340091906140dd565b15151461341f5760405162461bcd60e51b8152600401610b479061460a565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316816001600160a01b0316637158da7c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561348257600080fd5b505afa158015613496573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134ba9190613f82565b6001600160a01b0316146134e05760405162461bcd60e51b8152600401610b47906147c9565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316816001600160a01b031663aabaecd66040518163ffffffff1660e01b815260040160206040518083038186803b15801561354357600080fd5b505afa158015613557573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061357b9190613f82565b6001600160a01b0316146135a15760405162461bcd60e51b8152600401610b4790614d35565b7f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486001600160a01b0316816001600160a01b03166317d69bc86040518163ffffffff1660e01b815260040160206040518083038186803b15801561360457600080fd5b505afa158015613618573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061363c9190613f82565b6001600160a01b0316146136625760405162461bcd60e51b8152600401610b47906144d1565b600061367042610e10612bf2565b905080826001600160a01b031663ade6e2aa6040518163ffffffff1660e01b815260040160206040518083038186803b1580156136ac57600080fd5b505afa1580156136c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136e49190614158565b10156137025760405162461bcd60e51b8152600401610b4790614b1e565b60cb80546001600160a01b0319166001600160a01b0394909416939093179092555060cc5550565b60cd80546001600160a01b03198116909155600060ce556001600160a01b03168015612ec6576000819050806001600160a01b031663ade6e2aa6040518163ffffffff1660e01b815260040160206040518083038186803b15801561378e57600080fd5b505afa1580156137a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137c69190614158565b42116137e45760405162461bcd60e51b8152600401610b4790614410565b60405163813f267760e01b8152600090738b49fdd0cb50ba6d5c053d844fee55e5076f85049063813f267790613847906001600160a01b037f000000000000000000000000cd99b092a5c08c33d09b3e72046a7ab42d8110d11690600401614237565b60206040518083038186803b15801561385f57600080fd5b505af4158015613873573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138979190614158565b9050826001600160a01b03167f7e830f7c1771deb1bdb35c4a7e6051bbac32b376f7f4e4976b8618b0b11997f782336040516138d49291906150b0565b60405180910390a2505050565b6060613936826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613d1e9092919063ffffffff16565b805190915015612bed578080602001905181019061395491906140dd565b612bed5760405162461bcd60e51b8152600401610b4790614ceb565b3b151590565b600054610100900460ff168061398f575061398f612e2d565b8061399d575060005460ff16155b6139b95760405162461bcd60e51b8152600401610b479061486c565b600054610100900460ff161580156139e4576000805460ff1961ff0019909116610100171660011790555b600180558015612ec6576000805461ff001916905550565b600054610100900460ff1680613a155750613a15612e2d565b80613a23575060005460ff16155b613a3f5760405162461bcd60e51b8152600401610b479061486c565b600054610100900460ff16158015612eb4576000805460ff1961ff0019909116610100171660011790558015612ec6576000805461ff001916905550565b600054610100900460ff1680613a965750613a96612e2d565b80613aa4575060005460ff16155b613ac05760405162461bcd60e51b8152600401610b479061486c565b600054610100900460ff16158015613aeb576000805460ff1961ff0019909116610100171660011790555b8251613afe90609a906020860190613e6c565b508151613b1290609b906020850190613e6c565b50609c805460ff191660121790558015612bed576000805461ff0019169055505050565b600054610100900460ff1680613b4f5750613b4f612e2d565b80613b5d575060005460ff16155b613b795760405162461bcd60e51b8152600401610b479061486c565b600054610100900460ff16158015613ba4576000805460ff1961ff0019909116610100171660011790555b6000613bae6128e4565b606580546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508015612ec6576000805461ff001916905550565b6001600160a01b038216613c365760405162461bcd60e51b8152600401610b4790614ecf565b613c4260008383612bed565b609954613c4f9082612bf2565b6099556001600160a01b038216600090815260976020526040902054613c759082612bf2565b6001600160a01b0383166000818152609760205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90612d5e9085906150a7565b6000811580613cdf57505080820282828281613cdc57fe5b04145b610a905760405162461bcd60e51b8152600401610b47906145a5565b80820182811015610a905760405162461bcd60e51b8152600401610b4790614641565b6060613d2d8484600085613d35565b949350505050565b606082471015613d575760405162461bcd60e51b8152600401610b479061474c565b613d6085613970565b613d7c5760405162461bcd60e51b8152600401610b4790614c4f565b60006060866001600160a01b03168587604051613d99919061421b565b60006040518083038185875af1925050503d8060008114613dd6576040519150601f19603f3d011682016040523d82523d6000602084013e613ddb565b606091505b5091509150613deb828286613df6565b979650505050505050565b60608315613e05575081610b1d565b825115613e155782518084602001fd5b8160405162461bcd60e51b8152600401610b479190614376565b6040805160e08101825260008082526020820181905291810182905260608101829052608081018290529060a08201908152600060209091015290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10613ead57805160ff1916838001178555613eda565b82800160010185558215613eda579182015b82811115613eda578251825591602001919060010190613ebf565b50613ee6929150613eea565b5090565b5b80821115613ee65760008155600101613eeb565b803560038110610c6d57600080fd5b60008083601f840112613f1f578182fd5b50813567ffffffffffffffff811115613f36578182fd5b602083019150836020828501011115613f4e57600080fd5b9250929050565b803560ff81168114610c6d57600080fd5b600060208284031215613f77578081fd5b8135610b1d81615144565b600060208284031215613f93578081fd5b8151610b1d81615144565b60008060408385031215613fb0578081fd5b8235613fbb81615144565b91506020830135613fcb81615144565b809150509250929050565b600080600060608486031215613fea578081fd5b8335613ff581615144565b9250602084013561400581615144565b929592945050506040919091013590565b600080600080600080600060a0888a031215614030578283fd5b873561403b81615144565b9650602088013561404b81615144565b955060408801359450606088013567ffffffffffffffff8082111561406e578485fd5b61407a8b838c01613f0e565b909650945060808a0135915080821115614092578384fd5b5061409f8a828b01613f0e565b989b979a50959850939692959293505050565b600080604083850312156140c4578182fd5b82356140cf81615144565b946020939093013593505050565b6000602082840312156140ee578081fd5b81518015158114610b1d578182fd5b60006020828403121561410e578081fd5b610b1d82613eff565b600060e08284031215614128578081fd5b50919050565b60006102e08284031215614128578081fd5b600060208284031215614151578081fd5b5035919050565b600060208284031215614169578081fd5b5051919050565b60008060408385031215614182578182fd5b823591506020830135613fcb81615144565b6001600160f81b0319169052565b600381106141ac57fe5b9052565b80356001600160e01b031981168082146141c957600080fd5b83525060208101356141da81615144565b6001600160a01b0390811660208401526040820135906141f982615144565b16604083015260608181013590830152608090810135910152565b60ff169052565b6000825161422d818460208701615118565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0394851681529290931660208301526040820152606081019190915260800190565b6001600160a01b039485168152602081019390935292166040820152606081019190915260800190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b60006101208201905060018060a01b03808616835280855116602084015280602086015116604084015280604086015116606084015260608501516080840152608085015160a084015260a085015161435c60c08501826141a2565b5060c0949094015190931660e08201526101000152919050565b6000602082528251806020840152614395816040850160208701615118565b601f01601f19169190910160400192915050565b6020808252600a90820152692175706772616465546f60b01b604082015260600190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252818101527f43616e6e6f7420636c6f73652073686f7274206265666f726520657870697279604082015260600190565b60208082526019908201527f496e73756666696369656e7420736861726520737570706c7900000000000000604082015260600190565b60208082526018908201527f53656e6465722063616e206f6e6c79206265207661756c740000000000000000604082015260600190565b602080825260049082015263085c1d5d60e21b604082015260600190565b602080825260139082015272737472696b65417373657420213d205553444360681b604082015260600190565b6020808252600590820152640858d85b1b60da1b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b60208082526014908201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601a908201527f4f7074696f6e207479706520646f6573206e6f74206d61746368000000000000604082015260600190565b60208082526014908201527364732d6d6174682d6164642d6f766572666c6f7760601b604082015260600190565b60208082526010908201526f0bee8ded6cadc9cc2daca40427a4060f60831b604082015260600190565b6020808252601b908201527f43616e206f6e6c792073656c6c2063757272656e744f7074696f6e0000000000604082015260600190565b60208082526006908201526521736861726560d01b604082015260600190565b6020808252600b908201526a10b732bba6b0b730b3b2b960a91b604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252601a908201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604082015260600190565b60208082526015908201527415dc9bdb99c81d5b99195c9b1e5a5b99d05cdcd95d605a1b604082015260600190565b6020808252601190820152700c2e6e6cae840d2e640dcdee840ae8aa89607b1b604082015260600190565b60208082526010908201526f085b995dd19959549958da5c1a595b9d60821b604082015260600190565b602080825260059082015264042ae8aa8960db1b604082015260600190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60208082526007908201526610afb7bbb732b960c91b604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b602080825260069082015265085d985d5b1d60d21b604082015260600190565b6020808252600c908201526b27b7363c9036b0b730b3b2b960a11b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526018908201527f43616e6e6f7420726f6c6c206265666f72652064656c61790000000000000000604082015260600190565b6020808252600a9082015269139bdd081cdd5b9cd95d60b21b604082015260600190565b6020808252600f908201526e2737903337bab7321037b83a34b7b760891b604082015260600190565b60208082526012908201527107769746864726177616c46656520213d20360741b604082015260600190565b6020808252600f908201526e139bc81d985b1d59481c185cdcd959608a1b604082015260600190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252600e908201526d0857d99959549958da5c1a595b9d60921b604082015260600190565b60208082526024908201527f4f7074696f6e206578706972792063616e6e6f74206265206265666f72652064604082015263656c617960e01b606082015260800190565b60208082526025908201527f4665656c65737320776974686472617720746f207661756c74206e6f7420616c6040820152641b1bddd95960da1b606082015260800190565b602080825260139082015272115512081d1c985b9cd9995c8819985a5b1959606a1b604082015260600190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252601a908201527f496e73756666696369656e742061737365742062616c616e6365000000000000604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252601d908201527f43616e206f6e6c7920627579207769746820617373657420746f6b656e000000604082015260600190565b6020808252601490820152737769746864726177616c466565203e3d2033302560601b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526015908201527415dc9bdb99c818dbdb1b185d195c985b105cdcd95d605a1b604082015260600190565b60208082526007908201526610b7b83a34b7b760c91b604082015260600190565b6020808252600c908201526b10d85c08195e18d95959195960a21b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601290820152710bee8ded6cadca6f2dac4ded840427a4060f60731b604082015260600190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606082015260800190565b60208082526023908201527f43616e6e6f74207769746864726177206d6f7265207468616e20617661696c61604082015262626c6560e81b606082015260800190565b6020808252600e908201526d10b1bab93932b73a27b83a34b7b760911b604082015260600190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b6020808252600c908201526b05f696e6974436170203e20360a41b604082015260600190565b60e081018235614f3b81615144565b6001600160a01b039081168352602084013590614f5782615144565b9081166020840152604084013590614f6e82615144565b80821660408501526060850135606085015260808501356080850152614f9660a08601613eff565b9150614fa560a08501836141a2565b60c08501359150614fb582615144565b80821660c0850152505092915050565b81358152602080830135908201526102e08101614fe860408084019085016141b0565b614ff860e0830160e085016141b0565b6101806150098184018286016141b0565b506102208084013561501a81615144565b6001600160a01b039081169184019190915261024090848201359061503e82615144565b1690830152610260838101356001600160f81b03198116811461506057600080fd5b61506c82850182614194565b505061028061507c818501613f55565b61508882850182614214565b50506102a083810135908301526102c092830135929091019190915290565b90815260200190565b9182526001600160a01b0316602082015260400190565b918252602082015260400190565b92835260208301919091526001600160a01b0316604082015260600190565b9283526020830191909152604082015260600190565b60ff91909116815260200190565b60005b8381101561513357818101518382015260200161511b565b8381111561306a5750506000910152565b6001600160a01b0381168114612ec657600080fdfe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220a7002a3a92cefc55d9aa2c497c618c3c9d9a2b8d94fbcc05663e573a803f147a64736f6c63430007020033

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

000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000863dd8ea9b7472c54cde1f0e2d5b2bcc8cbf0cd10000000000000000000000008d3d21536e025908683aec2633cec228e385c243000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000004572f2554421bd64bef1c22c8a81840e8d496bea000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000002540be4000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _asset (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [1] : _factory (address): 0x863dd8Ea9B7472c54CdE1F0e2D5B2bCC8CBf0Cd1
Arg [2] : _registry (address): 0x8D3D21536E025908683aeC2633CEc228e385C243
Arg [3] : _weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [4] : _usdc (address): 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
Arg [5] : _swapContract (address): 0x4572f2554421Bd64Bef1c22c8a81840E8D496BeA
Arg [6] : _tokenDecimals (uint8): 18
Arg [7] : _minimumSupply (uint256): 10000000000
Arg [8] : _isPut (bool): False

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [1] : 000000000000000000000000863dd8ea9b7472c54cde1f0e2d5b2bcc8cbf0cd1
Arg [2] : 0000000000000000000000008d3d21536e025908683aec2633cec228e385c243
Arg [3] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [4] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [5] : 0000000000000000000000004572f2554421bd64bef1c22c8a81840e8d496bea
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [7] : 00000000000000000000000000000000000000000000000000000002540be400
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000000


Libraries Used


Deployed Bytecode Sourcemap

80686:23782:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80927:41;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;69882:91;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;72028:169::-;;;;;;;;;;-1:-1:-1;72028:169:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;70981:108::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;72679:321::-;;;;;;;;;;-1:-1:-1;72679:321:0;;;;;:::i;:::-;;:::i;90292:187::-;;;;;;;;;;-1:-1:-1;90292:187:0;;;;;:::i;:::-;;:::i;:::-;;104191:92;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;79826:18::-;;;;;;;;;;;;;:::i;81022:30::-;;;;;;;;;;;;;:::i;73409:218::-;;;;;;;;;;-1:-1:-1;73409:218:0;;;;;:::i;:::-;;:::i;80507:38::-;;;;;;;;;;;;;:::i;103248:266::-;;;;;;;;;;-1:-1:-1;103248:266:0;;;;;:::i;:::-;;:::i;80068:27::-;;;;;;;;;;;;;:::i;98594:165::-;;;;;;;;;;-1:-1:-1;98594:165:0;;;;;:::i;:::-;;:::i;79356:22::-;;;;;;;;;;;;;:::i;98034:440::-;;;;;;;;;;-1:-1:-1;98034:440:0;;;;;:::i;:::-;;:::i;81569:39::-;;;;;;;;;;;;;:::i;81617:::-;;;;;;;;;;;;;:::i;79740:27::-;;;;;;;;;;;;;:::i;79986:35::-;;;;;;;;;;;;;:::i;81059:::-;;;;;;;;;;;;;:::i;71152:127::-;;;;;;;;;;-1:-1:-1;71152:127:0;;;;;:::i;:::-;;:::i;58021:148::-;;;;;;;;;;;;;:::i;80975:40::-;;;;;;;;;;;;;:::i;81137:29::-;;;;;;;;;;;;;:::i;79643:28::-;;;;;;;;;;;;;:::i;57370:87::-;;;;;;;;;;;;;:::i;92368:800::-;;;;;;;;;;;;;:::i;70092:95::-;;;;;;;;;;;;;:::i;85226:828::-;;;;;;;;;;-1:-1:-1;85226:828:0;;;;;:::i;:::-;;:::i;86140:216::-;;;;;;;;;;-1:-1:-1;86140:216:0;;;;;:::i;:::-;;:::i;79550:32::-;;;;;;;;;;;;;:::i;79447:25::-;;;;;;;;;;;;;:::i;74130:269::-;;;;;;;;;;-1:-1:-1;74130:269:0;;;;;:::i;:::-;;:::i;98864:309::-;;;;;;;;;;;;;:::i;71492:175::-;;;;;;;;;;-1:-1:-1;71492:175:0;;;;;:::i;:::-;;:::i;102832:240::-;;;;;;;;;;-1:-1:-1;102832:240:0;;;;;:::i;:::-;;:::i;87215:445::-;;;;;;;;;;-1:-1:-1;87215:445:0;;;;;:::i;:::-;;:::i;81101:29::-;;;;;;;;;;;;;:::i;103740:136::-;;;;;;;;;;;;;:::i;88205:166::-;;;;;;;;;;-1:-1:-1;88205:166:0;;;;;:::i;:::-;;:::i;99553:860::-;;;;;;;;;;-1:-1:-1;99553:860:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;95928:1408::-;;;;;;;;;;;;;:::i;102198:376::-;;;;;;;;;;-1:-1:-1;102198:376:0;;;;;:::i;:::-;;:::i;104004:118::-;;;;;;;;;;;;;:::i;81387:36::-;;;;;;;;;;;;;:::i;86491:252::-;;;;;;;;;;-1:-1:-1;86491:252:0;;;;;:::i;:::-;;:::i;93377:199::-;;;;;;;;;;-1:-1:-1;93377:199:0;;;;;:::i;:::-;;:::i;71730:151::-;;;;;;;;;;-1:-1:-1;71730:151:0;;;;;:::i;:::-;;:::i;81513:47::-;;;;;;;;;;;;;:::i;86883:187::-;;;;;;;;;;-1:-1:-1;86883:187:0;;;;;:::i;:::-;;:::i;89803:338::-;;;;;;;;;;-1:-1:-1;89803:338:0;;;;;:::i;:::-;;:::i;58324:244::-;;;;;;;;;;-1:-1:-1;58324:244:0;;;;;:::i;:::-;;:::i;81173:27::-;;;;;;;;;;;;;:::i;87795:248::-;;;:::i;101601:322::-;;;;;;;;;;;;;:::i;93584:76::-;;;;;;;;;;;;;:::i;90738:793::-;;;;;;;;;;-1:-1:-1;90738:793:0;;;;;:::i;:::-;;:::i;97457:416::-;;;;;;;;;;;;;:::i;80927:41::-;;;:::o;69882:91::-;69960:5;69953:12;;;;;;;;-1:-1:-1;;69953:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69927:13;;69953:12;;69960:5;;69953:12;;69960:5;69953:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69882:91;;:::o;72028:169::-;72111:4;72128:39;72137:12;:10;:12::i;:::-;72151:7;72160:6;72128:8;:39::i;:::-;-1:-1:-1;72185:4:0;72028:169;;;;;:::o;70981:108::-;71069:12;;70981:108;:::o;72679:321::-;72785:4;72802:36;72812:6;72820:9;72831:6;72802:9;:36::i;:::-;72849:121;72858:6;72866:12;:10;:12::i;:::-;72880:89;72918:6;72880:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;72880:19:0;;;;;;:11;:19;;;;;;72900:12;:10;:12::i;:::-;-1:-1:-1;;;;;72880:33:0;;;;;;;;;;;;-1:-1:-1;72880:33:0;;;:89;:37;:89::i;:::-;72849:8;:121::i;:::-;-1:-1:-1;72988:4:0;72679:321;;;;;;:::o;90292:187::-;54376:1;55139:7;;:19;;55131:63;;;;-1:-1:-1;;;55131:63:0;;;;;;;:::i;:::-;;;;;;;;;54376:1;55272:7;:18;90358:22:::1;90383:23;90393:5:::0;90358:22;90383:9:::1;:23::i;:::-;90358:48:::0;-1:-1:-1;90417:54:0::1;-1:-1:-1::0;;;;;90424:5:0::1;90417:26;90444:10;90358:48:::0;90417:26:::1;:54::i;:::-;-1:-1:-1::0;;54332:1:0;55451:22;;90292:187::o;104191:92::-;104266:9;104191:92;:::o;79826:18::-;;;;:::o;81022:30::-;;;:::o;73409:218::-;73497:4;73514:83;73523:12;:10;:12::i;:::-;73537:7;73546:50;73585:10;73546:11;:25;73558:12;:10;:12::i;:::-;-1:-1:-1;;;;;73546:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;73546:25:0;;;:34;;;;;;;;;;;:38;:50::i;80507:38::-;;;-1:-1:-1;;;;;80507:38:0;;:::o;103248:266::-;103344:7;103370:22;103413:61;103439:18;103449:7;103439:9;:18::i;:::-;103459:14;:12;:14::i;:::-;103413:25;:61::i;:::-;-1:-1:-1;103369:105:0;;-1:-1:-1;;;103248:266:0;;;;:::o;80068:27::-;;;-1:-1:-1;;;;;80068:27:0;;:::o;98594:165::-;104421:7;;-1:-1:-1;;;;;104421:7:0;104407:10;:21;104399:46;;;;-1:-1:-1;;;104399:46:0;;;;;;;:::i;:::-;98675:3:::1;::::0;;98689:12;;;;98717:34:::1;::::0;::::1;::::0;::::1;::::0;98675:3;;98695:6;;98740:10:::1;::::0;98717:34:::1;:::i;:::-;;;;;;;;104456:1;98594:165:::0;:::o;79356:22::-;;;-1:-1:-1;;;;;79356:22:0;;:::o;98034:440::-;104421:7;;-1:-1:-1;;;;;104421:7:0;104407:10;:21;104399:46;;;;-1:-1:-1;;;104399:46:0;;;;;;;:::i;:::-;98168:4:::1;98137:19;::::0;;;;;;::::1;:::i;:::-;-1:-1:-1::0;;;;;98137:36:0::1;;98115:110;;;;-1:-1:-1::0;;;98115:110:0::1;;;;;;;:::i;:::-;98280:13;::::0;-1:-1:-1;;;;;98280:13:0::1;98258:18;::::0;;;;;;::::1;:::i;:::-;-1:-1:-1::0;;;;;98258:35:0::1;;98236:112;;;;-1:-1:-1::0;;;98236:112:0::1;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;98389:5:0::1;98367:27;:18;::::0;;;;;;::::1;:::i;:::-;-1:-1:-1::0;;;;;98367:27:0::1;;98359:69;;;;-1:-1:-1::0;;;98359:69:0::1;;;;;;;:::i;:::-;98441:25;::::0;-1:-1:-1;;;98441:25:0;;-1:-1:-1;;;;;98441:13:0::1;:18;::::0;::::1;::::0;:25:::1;::::0;98460:5;;98441:25:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;98034:440:::0;:::o;81569:39::-;81601:7;81569:39;:::o;81617:::-;;;:::o;79740:27::-;;;;:::o;79986:35::-;;;;:::o;81059:::-;;;:::o;71152:127::-;-1:-1:-1;;;;;71253:18:0;71226:7;71253:18;;;:9;:18;;;;;;;71152:127::o;58021:148::-;57601:12;:10;:12::i;:::-;-1:-1:-1;;;;;57590:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;57590:23:0;;57582:68;;;;-1:-1:-1;;;57582:68:0;;;;;;;:::i;:::-;58112:6:::1;::::0;58091:40:::1;::::0;58128:1:::1;::::0;-1:-1:-1;;;;;58112:6:0::1;::::0;58091:40:::1;::::0;58128:1;;58091:40:::1;58142:6;:19:::0;;-1:-1:-1;;;;;;58142:19:0::1;::::0;;58021:148::o;80975:40::-;;;:::o;81137:29::-;;;:::o;79643:28::-;;;-1:-1:-1;;;;;79643:28:0;;:::o;57370:87::-;57443:6;;-1:-1:-1;;;;;57443:6:0;57370:87;:::o;92368:800::-;54376:1;55139:7;;:19;;55131:63;;;;-1:-1:-1;;;55131:63:0;;;;;;;:::i;:::-;54376:1;55272:7;:18;92443:16:::1;::::0;-1:-1:-1;;;;;92443:16:0::1;92478:28:::0;92470:51:::1;;;;-1:-1:-1::0;;;92470:51:0::1;;;;;;;:::i;:::-;92534:17;92554:23;:21;:23::i;:::-;92534:43;;92588:13;92604:21;92614:10;92604:9;:21::i;:::-;92588:37;;92636:17;92656:21;92660:9;92671:5;92656:3;:21::i;:::-;92636:41;;92691:22;92715:17:::0;92749:35:::1;92774:9;92749:24;:35::i;:::-;92690:94:::0;;-1:-1:-1;92690:94:0;-1:-1:-1;92883:29:0::1;92690:94:::0;;92883:18:::1;:29::i;:::-;92866:46;;92930:62;92938:10;92958:5;92966:9;92977:14;92930:62;;;;;;;;;:::i;:::-;;;;;;;;93005:28;93011:10;93023:9;93005:5;:28::i;:::-;93046:57;-1:-1:-1::0;;;;;93053:5:0::1;93046:25;93080:5:::0;93088:14;93046:25:::1;:57::i;:::-;93116:44;::::0;-1:-1:-1;;;93116:44:0;;-1:-1:-1;;;;;93116:16:0;::::1;::::0;::::1;::::0;:44:::1;::::0;93133:14;;93149:10:::1;::::0;93116:44:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;54332:1:0;55451:22;;-1:-1:-1;;;;;;;;92368:800:0:o;70092:95::-;70172:7;70165:14;;;;;;;;-1:-1:-1;;70165:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70139:13;;70165:14;;70172:7;;70165:14;;70172:7;70165:14;;;;;;;;;;;;;;;;;;;;;;;;85226:828;52876:13;;;;;;;;:33;;;52893:16;:14;:16::i;:::-;52876:50;;;-1:-1:-1;52914:12:0;;;;52913:13;52876:50;52868:109;;;;-1:-1:-1;;;52868:109:0;;;;;;;:::i;:::-;52990:19;53013:13;;;;;;53012:14;53037:101;;;;53072:13;:20;;-1:-1:-1;;;;53072:20:0;;;;;53107:19;53088:4;53107:19;;;53037:101;-1:-1:-1;;;;;85453:20:0;::::1;85445:40;;;;-1:-1:-1::0;;;85445:40:0::1;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;85504:27:0;::::1;85496:54;;;;-1:-1:-1::0;;;85496:54:0::1;;;;;;;:::i;:::-;85580:1;85569:8;:12;85561:37;;;;-1:-1:-1::0;;;85561:37:0::1;;;;;;;:::i;:::-;85617:28:::0;85609:57:::1;;;;-1:-1:-1::0;;;85609:57:0::1;;;;;;;:::i;:::-;85685:30:::0;85677:61:::1;;;;-1:-1:-1::0;;;85677:61:0::1;;;;;;;:::i;:::-;85751:24;:22;:24::i;:::-;85786:38;85799:10;;85786:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;;85786:38:0::1;::::0;;::::1;;::::0;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;;;-1:-1:-1;85811:12:0;;-1:-1:-1;85811:12:0;;;;85786:38;::::1;85811:12:::0;;;;85786:38;::::1;;::::0;::::1;::::0;;;;-1:-1:-1;85786:12:0::1;::::0;-1:-1:-1;;;85786:38:0:i:1;:::-;85835:16;:14;:16::i;:::-;85862:25;85880:6;85862:17;:25::i;:::-;85898:3;:14:::0;;;85996:11:::1;85973:20;:34:::0;86018:12:::1;:28:::0;;-1:-1:-1;;;;;;86018:28:0::1;-1:-1:-1::0;;;;;86018:28:0;::::1;;::::0;;53164:68;;;;53215:5;53199:21;;-1:-1:-1;;53199:21:0;;;53164:68;85226:828;;;;;;;;:::o;86140:216::-;57601:12;:10;:12::i;:::-;-1:-1:-1;;;;;57590:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;57590:23:0;;57582:68;;;;-1:-1:-1;;;57582:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;86213:23:0;::::1;86205:46;;;;-1:-1:-1::0;;;86205:46:0::1;;;;;;;:::i;:::-;86264:16;:44:::0;;-1:-1:-1;;;;;;86264:44:0::1;-1:-1:-1::0;;;;;86264:44:0;::::1;;::::0;;86326:22:::1;::::0;::::1;::::0;::::1;::::0;86264:44;;86326:22:::1;:::i;:::-;;;;;;;;86140:216:::0;:::o;79550:32::-;;;;:::o;79447:25::-;;;-1:-1:-1;;;;;79447:25:0;;:::o;74130:269::-;74223:4;74240:129;74249:12;:10;:12::i;:::-;74263:7;74272:96;74311:15;74272:96;;;;;;;;;;;;;;;;;:11;:25;74284:12;:10;:12::i;:::-;-1:-1:-1;;;;;74272:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;74272:25:0;;;:34;;;;;;;;;;;:96;:38;:96::i;98864:309::-;98963:13;;98918:7;;-1:-1:-1;;;;;98963:13:0;98991:28;98987:69;;99043:1;99036:8;;;;;98987:69;99109:13;;99141:24;;;-1:-1:-1;;;99141:24:0;;;;-1:-1:-1;;;;;99109:13:0;;;;;;99141:22;;:24;;;;;;;;;;;;;;99109:13;99141:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;99134:31;;;;98864:309;:::o;71492:175::-;71578:4;71595:42;71605:12;:10;:12::i;:::-;71619:9;71630:6;71595:9;:42::i;102832:240::-;102932:7;102957:13;102973:32;102990:14;:12;:14::i;:::-;102973:12;;;:16;:32::i;:::-;102957:48;;103023:41;103058:5;103023:30;103039:13;:11;:13::i;:::-;103023:11;;:15;:30::i;:::-;:34;;:41::i;87215:445::-;104421:7;;-1:-1:-1;;;;;104421:7:0;104407:10;:21;104399:46;;;;-1:-1:-1;;;104399:46:0;;;;;;;:::i;:::-;87326:1:::1;87307:16;:20;87299:51;;;;-1:-1:-1::0;;;87299:51:0::1;;;;;;;:::i;:::-;87458:9;87439:16;:28;87431:61;;;;-1:-1:-1::0;;;87431:61:0::1;;;;;;;:::i;:::-;87522:20;::::0;87558:42:::1;::::0;::::1;::::0;::::1;::::0;87522:20;;87583:16;;87558:42:::1;:::i;:::-;;;;;;;;-1:-1:-1::0;87613:20:0::1;:39:::0;87215:445::o;81101:29::-;;;:::o;103740:136::-;103785:7;103812:56;103836:5;-1:-1:-1;;;;;103829:23:0;;103861:4;103829:38;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;103812:56::-;103805:63;;103740:136;:::o;88205:166::-;54376:1;55139:7;;:19;;55131:63;;;;-1:-1:-1;;;55131:63:0;;;;;;;:::i;:::-;54376:1;55272:7;:18;88271:65:::1;-1:-1:-1::0;;;;;88278:5:0::1;88271:30;88302:10;88322:4;88329:6:::0;88271:30:::1;:65::i;:::-;88347:16;88356:6;88347:8;:16::i;:::-;-1:-1:-1::0;54332:1:0;55451:22;;88205:166::o;99553:860::-;99650:22;99674:17;99709:27;99739:14;:12;:14::i;:::-;99709:44;;99779:22;99816:23;99854:22;99890:53;99916:5;99923:19;99890:25;:53::i;:::-;99764:179;;;;;;99996:19;99978:14;:37;;99956:122;;;;-1:-1:-1;;;99956:122:0;;;;;;;:::i;:::-;100117:14;100099;:32;;100091:70;;;;-1:-1:-1;;;100091:70:0;;;;;;;:::i;:::-;100213:14;100194:15;:33;;100172:109;;;;-1:-1:-1;;;100172:109:0;;;;;;;:::i;:::-;100306:42;100311:14;100327:20;;100306:4;:42::i;:::-;100294:54;-1:-1:-1;100376:29:0;:14;100294:54;100376:18;:29::i;:::-;100359:46;;99553:860;;;;;;;:::o;95928:1408::-;104421:7;;-1:-1:-1;;;;;104421:7:0;104407:10;:21;104399:46;;;;-1:-1:-1;;;104399:46:0;;;;;;;:::i;:::-;54376:1:::1;55139:7;;:19;;55131:63;;;;-1:-1:-1::0;;;55131:63:0::1;;;;;;;:::i;:::-;54376:1;55272:7;:18:::0;96042:17:::2;::::0;96023:15:::2;:36;;96001:110;;;;-1:-1:-1::0;;;96001:110:0::2;;;;;;;:::i;:::-;96144:10;::::0;-1:-1:-1;;;;;96144:10:0::2;96173:23:::0;96165:51:::2;;;;-1:-1:-1::0;;;96165:51:0::2;;;;;;;:::i;:::-;96229:13;:25:::0;;-1:-1:-1;;;;;96229:25:0;::::2;-1:-1:-1::0;;;;;;96229:25:0;;::::2;;::::0;;;96265:10:::2;:23:::0;;;;::::2;::::0;;96229:13:::2;96326:14;:12;:14::i;:::-;96301:39;;96351:19;96373:33;96378:14;81551:9;96373:4;:33::i;:::-;96417:12;:26:::0;;;96351:55;-1:-1:-1;96497:9:0;96520:51:::2;;:::i;:::-;96587:455;;;;;;;;96638:6;-1:-1:-1::0;;;;;96638:22:0::2;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;96587:455:0::2;;;;;96681:4;-1:-1:-1::0;;;;;96587:455:0::2;;;;;96704:6;-1:-1:-1::0;;;;;96704:22:0::2;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;96587:455:0::2;;;;;96747:6;-1:-1:-1::0;;;;;96747:22:0::2;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;96587:455;;;;96790:32;96815:6;96790;-1:-1:-1::0;;;;;96790:18:0::2;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:24:::0;::::2;:32::i;:::-;96587:455;;;;96865:5;:124;;96953:36;96865:124;;;96894:35;96865:124;96587:455;;;;;;;;::::0;;97025:1:::2;96587:455;::::0;;::::2;::::0;;;97091:53:::2;::::0;-1:-1:-1;;;97091:53:0;;96520:522;;-1:-1:-1;97025:1:0;97091:27:::2;::::0;::::2;::::0;:53:::2;::::0;:7:::2;-1:-1:-1::0;;;;;97091:27:0::2;::::0;96520:522;;97132:11;;97091:53:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;97055:89:::0;-1:-1:-1;97183:9:0;97204:61:::2;-1:-1:-1::0;;;;;97204:23:0;::::2;97236:13;97055:89:::0;97204:23:::2;:61::i;:::-;97293:9;-1:-1:-1::0;;;;;97283:45:0::2;;97304:11;97317:10;97283:45;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1::0;;54332:1:0::1;55451:22:::0;;-1:-1:-1;;;;;95928:1408:0:o;102198:376::-;102263:7;102283:17;102303:23;:21;:23::i;:::-;102283:43;;102337:13;102353:18;102363:7;102353:9;:18::i;:::-;102337:34;;102382:17;102402:21;102406:9;102417:5;102402:3;:21::i;:::-;102382:41;;102437:22;102480:52;102506:9;102517:14;:12;:14::i;102480:52::-;-1:-1:-1;102436:96:0;;102198:376;-1:-1:-1;;;;;;;102198:376:0:o;104004:118::-;104076:38;;-1:-1:-1;;;104076:38:0;;104049:7;;-1:-1:-1;;;;;104083:5:0;104076:23;;;;:38;;104108:4;;104076:38;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;81387:36::-;;;:::o;86491:252::-;57601:12;:10;:12::i;:::-;-1:-1:-1;;;;;57590:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;57590:23:0;;57582:68;;;;-1:-1:-1;;;57582:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;86569:24:0;::::1;86561:48;;;;-1:-1:-1::0;;;86561:48:0::1;;;;;;;:::i;:::-;86641:7;::::0;;-1:-1:-1;;;;;86659:20:0;;::::1;-1:-1:-1::0;;;;;;86659:20:0;::::1;;::::0;;;86697:38:::1;::::0;86641:7;::::1;::::0;86697:38:::1;::::0;::::1;::::0;86641:7;;86669:10;;86697:38:::1;:::i;93377:199::-:0;104421:7;;-1:-1:-1;;;;;104421:7:0;104407:10;:21;104399:46;;;;-1:-1:-1;;;104399:46:0;;;;;;;:::i;:::-;54376:1:::1;55139:7;;:19;;55131:63;;;;-1:-1:-1::0;;;55131:63:0::1;;;;;;;:::i;:::-;54376:1;55272:7;:18:::0;93517:27:::2;93532:11:::0;93517:14:::2;:27::i;:::-;93555:13;:11;:13::i;71730:151::-:0;-1:-1:-1;;;;;71846:18:0;;;71819:7;71846:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;71730:151::o;81513:47::-;81551:9;81513:47;:::o;86883:187::-;57601:12;:10;:12::i;:::-;-1:-1:-1;;;;;57590:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;57590:23:0;;57582:68;;;;-1:-1:-1;;;57582:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;86971:29:0;::::1;86963:58;;;;-1:-1:-1::0;;;86963:58:0::1;;;;;;;:::i;:::-;87032:12;:30:::0;;-1:-1:-1;;;;;;87032:30:0::1;-1:-1:-1::0;;;;;87032:30:0;;;::::1;::::0;;;::::1;::::0;;86883:187::o;89803:338::-;54376:1;55139:7;;:19;;55131:63;;;;-1:-1:-1;;;55131:63:0;;;;;;;:::i;:::-;54376:1;55272:7;:18;;;;89889:4:::1;-1:-1:-1::0;;;;;89880:13:0::1;:5;-1:-1:-1::0;;;;;89880:13:0::1;;89872:31;;;;-1:-1:-1::0;;;89872:31:0::1;;;;;;;:::i;:::-;89914:22;89939:23;89949:5;89956;89939:9;:23::i;:::-;89975:36;::::0;-1:-1:-1;;;89975:36:0;;89914:48;;-1:-1:-1;;;;;;89981:4:0::1;89975:20;::::0;::::1;::::0;:36:::1;::::0;89914:48;;89975:36:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;90023:12;90041:10;-1:-1:-1::0;;;;;90041:15:0::1;90064:14;90041:42;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;90022:61;;;90102:7;90094:39;;;;-1:-1:-1::0;;;90094:39:0::1;;;;;;;:::i;:::-;-1:-1:-1::0;;54332:1:0;55451:22;;-1:-1:-1;89803:338:0:o;58324:244::-;57601:12;:10;:12::i;:::-;-1:-1:-1;;;;;57590:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;57590:23:0;;57582:68;;;;-1:-1:-1;;;57582:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;58413:22:0;::::1;58405:73;;;;-1:-1:-1::0;;;58405:73:0::1;;;;;;;:::i;:::-;58515:6;::::0;58494:38:::1;::::0;-1:-1:-1;;;;;58494:38:0;;::::1;::::0;58515:6:::1;::::0;58494:38:::1;::::0;58515:6:::1;::::0;58494:38:::1;58543:6;:17:::0;;-1:-1:-1;;;;;;58543:17:0::1;-1:-1:-1::0;;;;;58543:17:0;;;::::1;::::0;;;::::1;::::0;;58324:244::o;81173:27::-;;;:::o;87795:248::-;54376:1;55139:7;;:19;;55131:63;;;;-1:-1:-1;;;55131:63:0;;;;;;;:::i;:::-;54376:1;55272:7;:18;;;;87875:4:::1;-1:-1:-1::0;;;;;87866:13:0::1;:5;-1:-1:-1::0;;;;;87866:13:0::1;;87858:43;;;;-1:-1:-1::0;;;87858:43:0::1;;;;;;;:::i;:::-;87932:1;87920:9;:13;87912:41;;;;-1:-1:-1::0;;;87912:41:0::1;;;;;;;:::i;:::-;87972:4;-1:-1:-1::0;;;;;87966:19:0::1;;87993:9;87966:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;88016:19;88025:9;88016:8;:19::i;:::-;54332:1:::0;55451:22;;87795:248::o;101601:322::-;101655:7;101675:27;101705:14;:12;:14::i;:::-;101675:44;;101730:13;101746:37;101763:19;101746:12;;:16;;:37;;;;:::i;:::-;101730:53;;101814:101;101886:14;101814:49;101857:5;101814:38;101838:13;:11;:13::i;:::-;101814:19;;:23;:38::i;:49::-;:53;;:101::i;93584:76::-;54376:1;55139:7;;:19;;55131:63;;;;-1:-1:-1;;;55131:63:0;;;;;;;:::i;:::-;54376:1;55272:7;:18;93639:13:::1;:11;:13::i;90738:793::-:0;54376:1;55139:7;;:19;;55131:63;;;;-1:-1:-1;;;55131:63:0;;;;;;;:::i;:::-;54376:1;55272:7;:18;-1:-1:-1;;;;;90859:19:0;::::1;90851:38;;;;-1:-1:-1::0;;;90851:38:0::1;;;;;;;:::i;:::-;90916:1;90908:5;:9;90900:28;;;;-1:-1:-1::0;;;90900:28:0::1;;;;;;;:::i;:::-;90956:49;::::0;-1:-1:-1;;;90956:49:0;;90941:12:::1;::::0;-1:-1:-1;;;;;90956:8:0::1;:27;::::0;::::1;::::0;:49:::1;::::0;90992:4:::1;::::0;90999:5;;90956:49:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;90941:64;;91024:7;91016:57;;;;-1:-1:-1::0;;;91016:57:0::1;;;;;;;:::i;:::-;91086:22;91111:25;91121:5;91128:7;91111:9;:25::i;:::-;91086:50:::0;-1:-1:-1;91203:48:0::1;-1:-1:-1::0;;;;;91210:5:0::1;91203:25;91229:5:::0;91086:50;91203:25:::1;:48::i;:::-;91262:45;::::0;-1:-1:-1;;;91262:45:0;;-1:-1:-1;;;;;91262:29:0;::::1;::::0;::::1;::::0;:45:::1;::::0;91292:14;;91262:45:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;91343:38:0::1;::::0;-1:-1:-1;;;91343:38:0;;91318:22:::1;::::0;-1:-1:-1;;;;;;91343:23:0;::::1;::::0;-1:-1:-1;91343:23:0::1;::::0;:38:::1;::::0;91375:4:::1;::::0;91343:38:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;91318:63:::0;-1:-1:-1;91392:54:0::1;-1:-1:-1::0;;;;;91392:26:0;::::1;91419:10;91318:63:::0;91392:26:::1;:54::i;:::-;91464:59;91482:10;91494:5;91501;91508:14;91464:59;;;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1::0;;54332:1:0;55451:22;;-1:-1:-1;;;90738:793:0:o;97457:416::-;104421:7;;-1:-1:-1;;;;;104421:7:0;104407:10;:21;104399:46;;;;-1:-1:-1;;;104399:46:0;;;;;;;:::i;:::-;54376:1:::1;55139:7;;:19;;55131:63;;;;-1:-1:-1::0;;;55131:63:0::1;;;;;;;:::i;:::-;54376:1;55272:7;:18:::0;97560:13:::2;::::0;-1:-1:-1;;;;;97560:13:0::2;97592:23:::0;97584:50:::2;;;;-1:-1:-1::0;;;97584:50:0::2;;;;;;;:::i;:::-;97647:13;:26:::0;;-1:-1:-1;;;;;;97647:26:0;;::::2;::::0;;;97684:10:::2;:23:::0;;;;::::2;::::0;;97671:1:::2;97718:12;:16:::0;;;97772:28:::2;::::0;-1:-1:-1;;;97772:28:0;;:26:::2;::::0;::::2;::::0;:28:::2;::::0;:7:::2;-1:-1:-1::0;;;;;97772:26:0::2;::::0;:28:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;97747:53;;97827:9;-1:-1:-1::0;;;;;97816:49:0::2;;97838:14;97854:10;97816:49;;;;;;;:::i;:::-;;;;;;;;-1:-1:-1::0;;54332:1:0::1;55451:22:::0;;97457:416::o;56267:106::-;56355:10;56267:106;:::o;77277:346::-;-1:-1:-1;;;;;77379:19:0;;77371:68;;;;-1:-1:-1;;;77371:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;77458:21:0;;77450:68;;;;-1:-1:-1;;;77450:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;77531:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;;:36;;;77583:32;;;;;77561:6;;77583:32;:::i;:::-;;;;;;;;77277:346;;;:::o;74889:539::-;-1:-1:-1;;;;;74995:20:0;;74987:70;;;;-1:-1:-1;;;74987:70:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;75076:23:0;;75068:71;;;;-1:-1:-1;;;75068:71:0;;;;;;;:::i;:::-;75152:47;75173:6;75181:9;75192:6;75152:20;:47::i;:::-;75232:71;75254:6;75232:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;75232:17:0;;;;;;:9;:17;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;75212:17:0;;;;;;;:9;:17;;;;;;:91;;;;75337:20;;;;;;;:32;;75362:6;75337:24;:32::i;:::-;-1:-1:-1;;;;;75314:20:0;;;;;;;:9;:20;;;;;;;:55;;;;75385:35;;;;;;;;;;75413:6;;75385:35;:::i;66883:166::-;66969:7;67005:12;66997:6;;;;66989:29;;;;-1:-1:-1;;;66989:29:0;;;;;;;;:::i;:::-;-1:-1:-1;;;67036:5:0;;;66883:166::o;91754:516::-;91819:7;91840:22;91864:17;91898:31;91923:5;91898:24;:31::i;:::-;91839:90;;;;91946:7;91942:114;;;91987:29;:14;92006:9;91987:18;:29::i;:::-;91970:46;;92043:1;92031:13;;91942:114;92082:10;-1:-1:-1;;;;;92073:54:0;;92094:14;92110:5;92117:9;92073:54;;;;;;;;:::i;:::-;;;;;;;;92140:24;92146:10;92158:5;92140;:24::i;:::-;92204:12;;92177:51;;-1:-1:-1;;;;;92184:5:0;92177:26;;;92204:12;92218:9;92177:26;:51::i;:::-;-1:-1:-1;92248:14:0;91754:516;-1:-1:-1;;;91754:516:0:o;18269:177::-;18352:86;18372:5;18402:23;;;18427:2;18431:5;18379:58;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;18379:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;18379:58:0;-1:-1:-1;;;;;;18379:58:0;;;;;;;;;;18352:19;:86::i;:::-;18269:177;;;:::o;64056:179::-;64114:7;64146:5;;;64170:6;;;;64162:46;;;;-1:-1:-1;;;64162:46:0;;;;;;;:::i;100703:793::-;100870:22;100907:23;100945:22;100995:13;101011:37;101028:19;101011:12;;:16;;:37;;;;:::i;:::-;100995:53;;101061:19;101083:13;:11;:13::i;:::-;101061:35;-1:-1:-1;101351:33:0;101061:35;101351:16;:5;101361;101351:9;:16::i;:33::-;101334:50;-1:-1:-1;101413:25:0;:5;101334:50;101413:9;:25::i;:::-;101395:43;-1:-1:-1;101466:22:0;:11;101482:5;101466:15;:22::i;:::-;101449:39;;100703:793;;;;;;;:::o;21784:100::-;21836:6;21867:1;21862;:6;;:14;;21875:1;21862:14;;;-1:-1:-1;21871:1:0;;21855:21;-1:-1:-1;21784:100:0:o;76421:418::-;-1:-1:-1;;;;;76505:21:0;;76497:67;;;;-1:-1:-1;;;76497:67:0;;;;;;;:::i;:::-;76577:49;76598:7;76615:1;76619:6;76577:20;:49::i;:::-;76660:68;76683:6;76660:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;76660:18:0;;;;;;:9;:18;;;;;;;:68;:22;:68::i;:::-;-1:-1:-1;;;;;76639:18:0;;;;;;:9;:18;;;;;:89;76754:12;;:24;;76771:6;76754:16;:24::i;:::-;76739:12;:39;76794:37;;76820:1;;-1:-1:-1;;;;;76794:37:0;;;;;;;76824:6;;76794:37;:::i;:::-;;;;;;;;76421:418;;:::o;18928:622::-;19298:10;;;19297:62;;-1:-1:-1;19314:39:0;;-1:-1:-1;;;19314:39:0;;-1:-1:-1;;;;;19314:15:0;;;;;:39;;19338:4;;19345:7;;19314:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;19297:62;19289:152;;;;-1:-1:-1;;;19289:152:0;;;;;;;:::i;:::-;19452:90;19472:5;19502:22;;;19526:7;19535:5;19479:62;;;;;;;;;:::i;53332:125::-;53380:4;53405:44;53443:4;53405:29;:44::i;:::-;53404:45;53397:52;;53332:125;:::o;54418:108::-;52876:13;;;;;;;;:33;;;52893:16;:14;:16::i;:::-;52876:50;;;-1:-1:-1;52914:12:0;;;;52913:13;52876:50;52868:109;;;;-1:-1:-1;;;52868:109:0;;;;;;;:::i;:::-;52990:19;53013:13;;;;;;53012:14;53037:101;;;;53072:13;:20;;-1:-1:-1;;;;53072:20:0;;;;;53107:19;53088:4;53107:19;;;53037:101;54484:34:::1;:32;:34::i;:::-;53168:14:::0;53164:68;;;53215:5;53199:21;;-1:-1:-1;;53199:21:0;;;53164:68;54418:108;:::o;69441:181::-;52876:13;;;;;;;;:33;;;52893:16;:14;:16::i;:::-;52876:50;;;-1:-1:-1;52914:12:0;;;;52913:13;52876:50;52868:109;;;;-1:-1:-1;;;52868:109:0;;;;;;;:::i;:::-;52990:19;53013:13;;;;;;53012:14;53037:101;;;;53072:13;:20;;-1:-1:-1;;;;53072:20:0;;;;;53107:19;53088:4;53107:19;;;53037:101;69539:26:::1;:24;:26::i;:::-;69576:38;69599:5;69606:7;69576:22;:38::i;:::-;53168:14:::0;53164:68;;;53215:5;53199:21;;-1:-1:-1;;53199:21:0;;;69441:181;;;:::o;56956:129::-;52876:13;;;;;;;;:33;;;52893:16;:14;:16::i;:::-;52876:50;;;-1:-1:-1;52914:12:0;;;;52913:13;52876:50;52868:109;;;;-1:-1:-1;;;52868:109:0;;;;;;;:::i;:::-;52990:19;53013:13;;;;;;53012:14;53037:101;;;;53072:13;:20;;-1:-1:-1;;;;53072:20:0;;;;;53107:19;53088:4;53107:19;;;53037:101;57014:26:::1;:24;:26::i;:::-;57051;:24;:26::i;6444:220::-:0;6502:7;6526:6;6522:20;;-1:-1:-1;6541:1:0;6534:8;;6522:20;6565:5;;;6569:1;6565;:5;:1;6589:5;;;;;:10;6581:56;;;;-1:-1:-1;;;6581:56:0;;;;;;;:::i;7142:153::-;7200:7;7232:1;7228;:5;7220:44;;;;-1:-1:-1;;;7220:44:0;;;;;;;:::i;:::-;7286:1;7282;:5;;;;;;;7142:153;-1:-1:-1;;;7142:153:0:o;18454:205::-;18555:96;18575:5;18605:27;;;18634:4;18640:2;18644:5;18582:68;;;;;;;;;;:::i;18555:96::-;18454:205;;;;:::o;88511:1142::-;88564:32;88599:14;:12;:14::i;:::-;88564:49;;88659:3;;88632:24;:30;88624:55;;;;-1:-1:-1;;;88624:55:0;;;;;;;:::i;:::-;88740:14;88712:24;:42;;88690:118;;;;-1:-1:-1;;;88690:118:0;;;;;;;:::i;:::-;88987:13;89003:36;:24;89032:6;89003:28;:36::i;:::-;88987:52;;89052:19;89074:13;:11;:13::i;:::-;89052:35;-1:-1:-1;89337:13:0;89366:16;;:62;;89394:34;89422:5;89394:23;:6;89405:11;89394:10;:23::i;:34::-;89366:62;;;89385:6;89366:62;89337:91;-1:-1:-1;89489:14:0;89463:22;:11;89337:91;89463:15;:22::i;:::-;:40;;89441:115;;;;-1:-1:-1;;;89441:115:0;;;;;;;:::i;:::-;89582:10;-1:-1:-1;;;;;89574:34:0;;89594:6;89602:5;89574:34;;;;;;;:::i;:::-;;;;;;;;89621:24;89627:10;89639:5;89621;:24::i;22317:113::-;22370:6;22226:8;22393:23;22397:9;22401:1;22404;22397:3;:9::i;:::-;22408:7;22393:3;:23::i;:::-;:29;;;;6027:158;6085:7;6118:1;6113;:6;;6105:49;;;;-1:-1:-1;;;6105:49:0;;;;;;;:::i;:::-;-1:-1:-1;6172:5:0;;;6027:158::o;93899:1291::-;94017:5;94013:327;;;94091:35;94065:22;;;;;;;;:::i;:::-;:61;;;;;;;;;94039:127;;;;-1:-1:-1;;;94039:127:0;;;;;;;:::i;:::-;94013:327;;;94251:36;94225:22;;;;;;;;:::i;:::-;:62;;;;;;;;;94199:129;;;;-1:-1:-1;;;94199:129:0;;;;;;;:::i;:::-;94369:38;;-1:-1:-1;;;94369:38:0;;94352:14;;-1:-1:-1;;;;;94369:7:0;:25;;;;:38;;94395:11;;94369:38;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;94352:55;-1:-1:-1;;;;;;94426:20:0;;94418:40;;;;-1:-1:-1;;;94418:40:0;;;;;;;:::i;:::-;94469:22;94510:6;94469:48;;94554:5;94536:23;;:6;-1:-1:-1;;;;;94536:12:0;;:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:23;;;94528:62;;;;-1:-1:-1;;;94528:62:0;;;;;;;:::i;:::-;94651:10;-1:-1:-1;;;;;94623:38:0;:6;-1:-1:-1;;;;;94623:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;94623:38:0;;94601:109;;;;-1:-1:-1;;;94601:109:0;;;;;;;:::i;:::-;94757:5;-1:-1:-1;;;;;94729:33:0;:6;-1:-1:-1;;;;;94729:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;94729:33:0;;94721:67;;;;-1:-1:-1;;;94721:67:0;;;;;;;:::i;:::-;94895:4;-1:-1:-1;;;;;94871:28:0;:6;-1:-1:-1;;;;;94871:18:0;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;94871:28:0;;94863:60;;;;-1:-1:-1;;;94863:60:0;;;;;;;:::i;:::-;94936:15;94954:26;:15;81601:7;94954:19;:26::i;:::-;94936:44;;95041:7;95013:6;-1:-1:-1;;;;;95013:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:35;;94991:121;;;;-1:-1:-1;;;94991:121:0;;;;;;;:::i;:::-;95125:10;:19;;-1:-1:-1;;;;;;95125:19:0;-1:-1:-1;;;;;95125:19:0;;;;;;;;;;;-1:-1:-1;95155:17:0;:27;-1:-1:-1;93899:1291:0:o;95282:554::-;95344:13;;;-1:-1:-1;;;;;;95368:26:0;;;;;95324:17;95405:12;:16;-1:-1:-1;;;;;95344:13:0;95438:23;;95434:395;;95478:22;95519:9;95478:51;;95588:6;-1:-1:-1;;;;;95588:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;95570:15;:42;95544:136;;;;-1:-1:-1;;;95544:136:0;;;;;;;:::i;:::-;95720:28;;-1:-1:-1;;;95720:28:0;;95695:22;;95720:26;;;;:28;;-1:-1:-1;;;;;95720:7:0;:26;;:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;95695:53;;95779:9;-1:-1:-1;;;;;95768:49:0;;95790:14;95806:10;95768:49;;;;;;;:::i;:::-;;;;;;;;95434:395;;95282:554;:::o;20574:761::-;20998:23;21024:69;21052:4;21024:69;;;;;;;;;;;;;;;;;21032:5;-1:-1:-1;;;;;21024:27:0;;;:69;;;;;:::i;:::-;21108:17;;20998:95;;-1:-1:-1;21108:21:0;21104:224;;21250:10;21239:30;;;;;;;;;;;;:::i;:::-;21231:85;;;;-1:-1:-1;;;21231:85:0;;;;;;;:::i;45185:422::-;45552:20;45591:8;;;45185:422::o;54534:106::-;52876:13;;;;;;;;:33;;;52893:16;:14;:16::i;:::-;52876:50;;;-1:-1:-1;52914:12:0;;;;52913:13;52876:50;52868:109;;;;-1:-1:-1;;;52868:109:0;;;;;;;:::i;:::-;52990:19;53013:13;;;;;;53012:14;53037:101;;;;53072:13;:20;;-1:-1:-1;;;;53072:20:0;;;;;53107:19;53088:4;53107:19;;;53037:101;54332:1:::1;54610:22:::0;;53164:68;;;;53215:5;53199:21;;-1:-1:-1;;53199:21:0;;;54534:106;:::o;56196:65::-;52876:13;;;;;;;;:33;;;52893:16;:14;:16::i;:::-;52876:50;;;-1:-1:-1;52914:12:0;;;;52913:13;52876:50;52868:109;;;;-1:-1:-1;;;52868:109:0;;;;;;;:::i;:::-;52990:19;53013:13;;;;;;53012:14;53037:101;;;;53072:13;:20;;-1:-1:-1;;;;53072:20:0;;;;;53107:19;53088:4;53107:19;;;53168:14;53164:68;;;53215:5;53199:21;;-1:-1:-1;;53199:21:0;;;56196:65;:::o;69630:182::-;52876:13;;;;;;;;:33;;;52893:16;:14;:16::i;:::-;52876:50;;;-1:-1:-1;52914:12:0;;;;52913:13;52876:50;52868:109;;;;-1:-1:-1;;;52868:109:0;;;;;;;:::i;:::-;52990:19;53013:13;;;;;;53012:14;53037:101;;;;53072:13;:20;;-1:-1:-1;;;;53072:20:0;;;;;53107:19;53088:4;53107:19;;;53037:101;69738:13;;::::1;::::0;:5:::1;::::0;:13:::1;::::0;::::1;::::0;::::1;:::i;:::-;-1:-1:-1::0;69762:17:0;;::::1;::::0;:7:::1;::::0;:17:::1;::::0;::::1;::::0;::::1;:::i;:::-;-1:-1:-1::0;69790:9:0::1;:14:::0;;-1:-1:-1;;69790:14:0::1;69802:2;69790:14;::::0;;53164:68;;;;53215:5;53199:21;;-1:-1:-1;;53199:21:0;;;69630:182;;;:::o;57093:196::-;52876:13;;;;;;;;:33;;;52893:16;:14;:16::i;:::-;52876:50;;;-1:-1:-1;52914:12:0;;;;52913:13;52876:50;52868:109;;;;-1:-1:-1;;;52868:109:0;;;;;;;:::i;:::-;52990:19;53013:13;;;;;;53012:14;53037:101;;;;53072:13;:20;;-1:-1:-1;;;;53072:20:0;;;;;53107:19;53088:4;53107:19;;;53037:101;57161:17:::1;57181:12;:10;:12::i;:::-;57204:6;:18:::0;;-1:-1:-1;;;;;;57204:18:0::1;-1:-1:-1::0;;;;;57204:18:0;::::1;::::0;;::::1;::::0;;;57238:43:::1;::::0;57204:18;;-1:-1:-1;57204:18:0;-1:-1:-1;;57238:43:0::1;::::0;-1:-1:-1;;57238:43:0::1;53150:1;53168:14:::0;53164:68;;;53215:5;53199:21;;-1:-1:-1;;53199:21:0;;;57093:196;:::o;75710:378::-;-1:-1:-1;;;;;75794:21:0;;75786:65;;;;-1:-1:-1;;;75786:65:0;;;;;;;:::i;:::-;75864:49;75893:1;75897:7;75906:6;75864:20;:49::i;:::-;75941:12;;:24;;75958:6;75941:16;:24::i;:::-;75926:12;:39;-1:-1:-1;;;;;75997:18:0;;;;;;:9;:18;;;;;;:30;;76020:6;75997:22;:30::i;:::-;-1:-1:-1;;;;;75976:18:0;;;;;;:9;:18;;;;;;:51;;;;76043:37;;75976:18;;;76043:37;;;;76073:6;;76043:37;:::i;21634:142::-;21686:6;21713;;;:30;;-1:-1:-1;;21728:5:0;;;21742:1;21737;21728:5;21737:1;21723:15;;;;;:20;21713:30;21705:63;;;;-1:-1:-1;;;21705:63:0;;;;;;;:::i;21365:128::-;21449:5;;;21444:16;;;;21436:49;;;;-1:-1:-1;;;21436:49:0;;;;;;;:::i;13836:195::-;13939:12;13971:52;13993:6;14001:4;14007:1;14010:12;13971:21;:52::i;:::-;13964:59;13836:195;-1:-1:-1;;;;13836:195:0:o;14888:530::-;15015:12;15073:5;15048:21;:30;;15040:81;;;;-1:-1:-1;;;15040:81:0;;;;;;;:::i;:::-;15140:18;15151:6;15140:10;:18::i;:::-;15132:60;;;;-1:-1:-1;;;15132:60:0;;;;;;;:::i;:::-;15266:12;15280:23;15307:6;-1:-1:-1;;;;;15307:11:0;15327:5;15335:4;15307:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15265:75;;;;15358:52;15376:7;15385:10;15397:12;15358:17;:52::i;:::-;15351:59;14888:530;-1:-1:-1;;;;;;;14888:530:0:o;17428:742::-;17543:12;17572:7;17568:595;;;-1:-1:-1;17603:10:0;17596:17;;17568:595;17717:17;;:21;17713:439;;17980:10;17974:17;18041:15;18028:10;18024:2;18020:19;18013:44;17928:148;18123:12;18116:20;;-1:-1:-1;;;18116:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:154:1;93:20;;142:1;132:12;;122:2;;158:1;155;148:12;173:378;;;291:3;284:4;276:6;272:17;268:27;258:2;;316:8;306;299:26;258:2;-1:-1:-1;346:20:1;;389:18;378:30;;375:2;;;428:8;418;411:26;375:2;472:4;464:6;460:17;448:29;;524:3;517:4;508:6;500;496:19;492:30;489:39;486:2;;;541:1;538;531:12;486:2;248:303;;;;;:::o;556:158::-;624:20;;684:4;673:16;;663:27;;653:2;;704:1;701;694:12;719:259;;831:2;819:9;810:7;806:23;802:32;799:2;;;852:6;844;837:22;799:2;896:9;883:23;915:33;942:5;915:33;:::i;983:263::-;;1106:2;1094:9;1085:7;1081:23;1077:32;1074:2;;;1127:6;1119;1112:22;1074:2;1164:9;1158:16;1183:33;1210:5;1183:33;:::i;1251:402::-;;;1380:2;1368:9;1359:7;1355:23;1351:32;1348:2;;;1401:6;1393;1386:22;1348:2;1445:9;1432:23;1464:33;1491:5;1464:33;:::i;:::-;1516:5;-1:-1:-1;1573:2:1;1558:18;;1545:32;1586:35;1545:32;1586:35;:::i;:::-;1640:7;1630:17;;;1338:315;;;;;:::o;1658:470::-;;;;1804:2;1792:9;1783:7;1779:23;1775:32;1772:2;;;1825:6;1817;1810:22;1772:2;1869:9;1856:23;1888:33;1915:5;1888:33;:::i;:::-;1940:5;-1:-1:-1;1997:2:1;1982:18;;1969:32;2010:35;1969:32;2010:35;:::i;:::-;1762:366;;2064:7;;-1:-1:-1;;;2118:2:1;2103:18;;;;2090:32;;1762:366::o;2133:1105::-;;;;;;;;2353:3;2341:9;2332:7;2328:23;2324:33;2321:2;;;2375:6;2367;2360:22;2321:2;2419:9;2406:23;2438:33;2465:5;2438:33;:::i;:::-;2490:5;-1:-1:-1;2547:2:1;2532:18;;2519:32;2560:35;2519:32;2560:35;:::i;:::-;2614:7;-1:-1:-1;2668:2:1;2653:18;;2640:32;;-1:-1:-1;2723:2:1;2708:18;;2695:32;2746:18;2776:14;;;2773:2;;;2808:6;2800;2793:22;2773:2;2852:61;2905:7;2896:6;2885:9;2881:22;2852:61;:::i;:::-;2932:8;;-1:-1:-1;2826:87:1;-1:-1:-1;3020:3:1;3005:19;;2992:33;;-1:-1:-1;3037:16:1;;;3034:2;;;3071:6;3063;3056:22;3034:2;;3115:63;3170:7;3159:8;3148:9;3144:24;3115:63;:::i;:::-;2311:927;;;;-1:-1:-1;2311:927:1;;-1:-1:-1;2311:927:1;;;;3089:89;;-1:-1:-1;;;2311:927:1:o;3243:327::-;;;3372:2;3360:9;3351:7;3347:23;3343:32;3340:2;;;3393:6;3385;3378:22;3340:2;3437:9;3424:23;3456:33;3483:5;3456:33;:::i;:::-;3508:5;3560:2;3545:18;;;;3532:32;;-1:-1:-1;;;3330:240:1:o;3575:297::-;;3695:2;3683:9;3674:7;3670:23;3666:32;3663:2;;;3716:6;3708;3701:22;3663:2;3753:9;3747:16;3806:5;3799:13;3792:21;3785:5;3782:32;3772:2;;3833:6;3825;3818:22;3877:222;;4004:2;3992:9;3983:7;3979:23;3975:32;3972:2;;;4025:6;4017;4010:22;3972:2;4053:40;4083:9;4053:40;:::i;4104:208::-;;4247:3;4235:9;4226:7;4222:23;4218:33;4215:2;;;4269:6;4261;4254:22;4215:2;-1:-1:-1;4297:9:1;4205:107;-1:-1:-1;4205:107:1:o;4317:202::-;;4454:3;4442:9;4433:7;4429:23;4425:33;4422:2;;;4476:6;4468;4461:22;4524:190;;4636:2;4624:9;4615:7;4611:23;4607:32;4604:2;;;4657:6;4649;4642:22;4604:2;-1:-1:-1;4685:23:1;;4594:120;-1:-1:-1;4594:120:1:o;4719:194::-;;4842:2;4830:9;4821:7;4817:23;4813:32;4810:2;;;4863:6;4855;4848:22;4810:2;-1:-1:-1;4891:16:1;;4800:113;-1:-1:-1;4800:113:1:o;4918:327::-;;;5047:2;5035:9;5026:7;5022:23;5018:32;5015:2;;;5068:6;5060;5053:22;5015:2;5109:9;5096:23;5086:33;;5169:2;5158:9;5154:18;5141:32;5182:33;5209:5;5182:33;:::i;5250:99::-;-1:-1:-1;;;;;;5317:25:1;5305:38;;5295:54::o;5354:135::-;5439:1;5432:5;5429:12;5419:2;;5445:9;5419:2;5465:18;;5409:80::o;5494:698::-;5580:19;;-1:-1:-1;;;;;;5618:34:1;;5671:15;;;5661:2;;5700:1;5697;5690:12;5661:2;5713:15;;-1:-1:-1;5776:4:1;5765:16;;5752:30;5791:35;5752:30;5791:35;:::i;:::-;-1:-1:-1;;;;;5896:16:1;;;5889:4;5880:14;;5873:40;5961:4;5950:16;;5937:30;;5976:35;5937:30;5976:35;:::i;:::-;6043:16;6036:4;6027:14;;6020:40;6116:4;6105:16;;;6092:30;6076:14;;;6069:54;6179:4;6168:16;;;6155:30;6139:14;;6132:54;5555:637::o;6197:77::-;6266:4;6255:16;6243:29;;6241:33::o;6279:274::-;;6446:6;6440:13;6462:53;6508:6;6503:3;6496:4;6488:6;6484:17;6462:53;:::i;:::-;6531:16;;;;;6416:137;-1:-1:-1;;6416:137:1:o;6768:203::-;-1:-1:-1;;;;;6932:32:1;;;;6914:51;;6902:2;6887:18;;6869:102::o;6976:455::-;-1:-1:-1;;;;;7271:15:1;;;7253:34;;7323:15;;;;7318:2;7303:18;;7296:43;7370:2;7355:18;;7348:34;7413:2;7398:18;;7391:34;;;;7202:3;7187:19;;7169:262::o;7436:455::-;-1:-1:-1;;;;;7731:15:1;;;7713:34;;7778:2;7763:18;;7756:34;;;;7826:15;;7821:2;7806:18;;7799:43;7873:2;7858:18;;7851:34;;;;7662:3;7647:19;;7629:262::o;7896:304::-;-1:-1:-1;;;;;8126:15:1;;;8108:34;;8178:15;;8173:2;8158:18;;8151:43;8058:2;8043:18;;8025:175::o;8205:375::-;-1:-1:-1;;;;;8463:15:1;;;8445:34;;8515:15;;;;8510:2;8495:18;;8488:43;8562:2;8547:18;;8540:34;;;;8395:2;8380:18;;8362:218::o;8585:274::-;-1:-1:-1;;;;;8777:32:1;;;;8759:51;;8841:2;8826:18;;8819:34;8747:2;8732:18;;8714:145::o;8864:187::-;9029:14;;9022:22;9004:41;;8992:2;8977:18;;8959:92::o;9530:927::-;;9811:3;9800:9;9796:19;9788:27;;9851:1;9847;9842:3;9838:11;9834:19;9892:2;9884:6;9880:15;9869:9;9862:34;9951:2;9942:6;9936:13;9932:22;9927:2;9916:9;9912:18;9905:50;10019:2;10013;10005:6;10001:15;9995:22;9991:31;9986:2;9975:9;9971:18;9964:59;10087:2;10081;10073:6;10069:15;10063:22;10059:31;10054:2;10043:9;10039:18;10032:59;10146:2;10138:6;10134:15;10128:22;10122:3;10111:9;10107:19;10100:51;10206:3;10198:6;10194:16;10188:23;10182:3;10171:9;10167:19;10160:52;10259:3;10251:6;10247:16;10241:23;10273:64;10332:3;10321:9;10317:19;10303:12;10273:64;:::i;:::-;-1:-1:-1;10396:3:1;10384:16;;;;10378:23;10374:32;;;10368:3;10353:19;;10346:61;10438:3;10423:19;10416:35;9778:679;;-1:-1:-1;9778:679:1:o;11146:383::-;;11295:2;11284:9;11277:21;11327:6;11321:13;11370:6;11365:2;11354:9;11350:18;11343:34;11386:66;11445:6;11440:2;11429:9;11425:18;11420:2;11412:6;11408:15;11386:66;:::i;:::-;11513:2;11492:15;-1:-1:-1;;11488:29:1;11473:45;;;;11520:2;11469:54;;11267:262;-1:-1:-1;;11267:262:1:o;11534:334::-;11736:2;11718:21;;;11775:2;11755:18;;;11748:30;-1:-1:-1;;;11809:2:1;11794:18;;11787:40;11859:2;11844:18;;11708:160::o;11873:399::-;12075:2;12057:21;;;12114:2;12094:18;;;12087:30;12153:34;12148:2;12133:18;;12126:62;-1:-1:-1;;;12219:2:1;12204:18;;12197:33;12262:3;12247:19;;12047:225::o;12277:356::-;12479:2;12461:21;;;12498:18;;;12491:30;12557:34;12552:2;12537:18;;12530:62;12624:2;12609:18;;12451:182::o;12638:349::-;12840:2;12822:21;;;12879:2;12859:18;;;12852:30;12918:27;12913:2;12898:18;;12891:55;12978:2;12963:18;;12812:175::o;12992:348::-;13194:2;13176:21;;;13233:2;13213:18;;;13206:30;13272:26;13267:2;13252:18;;13245:54;13331:2;13316:18;;13166:174::o;13345:327::-;13547:2;13529:21;;;13586:1;13566:18;;;13559:29;-1:-1:-1;;;13619:2:1;13604:18;;13597:34;13663:2;13648:18;;13519:153::o;13677:343::-;13879:2;13861:21;;;13918:2;13898:18;;;13891:30;-1:-1:-1;;;13952:2:1;13937:18;;13930:49;14011:2;13996:18;;13851:169::o;14025:328::-;14227:2;14209:21;;;14266:1;14246:18;;;14239:29;-1:-1:-1;;;14299:2:1;14284:18;;14277:35;14344:2;14329:18;;14199:154::o;14358:402::-;14560:2;14542:21;;;14599:2;14579:18;;;14572:30;14638:34;14633:2;14618:18;;14611:62;-1:-1:-1;;;14704:2:1;14689:18;;14682:36;14750:3;14735:19;;14532:228::o;14765:398::-;14967:2;14949:21;;;15006:2;14986:18;;;14979:30;15045:34;15040:2;15025:18;;15018:62;-1:-1:-1;;;15111:2:1;15096:18;;15089:32;15153:3;15138:19;;14939:224::o;15168:344::-;15370:2;15352:21;;;15409:2;15389:18;;;15382:30;-1:-1:-1;;;15443:2:1;15428:18;;15421:50;15503:2;15488:18;;15342:170::o;15517:351::-;15719:2;15701:21;;;15758:2;15738:18;;;15731:30;15797:29;15792:2;15777:18;;15770:57;15859:2;15844:18;;15691:177::o;15873:350::-;16075:2;16057:21;;;16114:2;16094:18;;;16087:30;16153:28;16148:2;16133:18;;16126:56;16214:2;16199:18;;16047:176::o;16228:344::-;16430:2;16412:21;;;16469:2;16449:18;;;16442:30;-1:-1:-1;;;16503:2:1;16488:18;;16481:50;16563:2;16548:18;;16402:170::o;16577:340::-;16779:2;16761:21;;;16818:2;16798:18;;;16791:30;-1:-1:-1;;;16852:2:1;16837:18;;16830:46;16908:2;16893:18;;16751:166::o;16922:351::-;17124:2;17106:21;;;17163:2;17143:18;;;17136:30;17202:29;17197:2;17182:18;;17175:57;17264:2;17249:18;;17096:177::o;17278:329::-;17480:2;17462:21;;;17519:1;17499:18;;;17492:29;-1:-1:-1;;;17552:2:1;17537:18;;17530:36;17598:2;17583:18;;17452:155::o;17612:335::-;17814:2;17796:21;;;17853:2;17833:18;;;17826:30;-1:-1:-1;;;17887:2:1;17872:18;;17865:41;17938:2;17923:18;;17786:161::o;17952:354::-;18154:2;18136:21;;;18193:2;18173:18;;;18166:30;18232:32;18227:2;18212:18;;18205:60;18297:2;18282:18;;18126:180::o;18311:402::-;18513:2;18495:21;;;18552:2;18532:18;;;18525:30;18591:34;18586:2;18571:18;;18564:62;-1:-1:-1;;;18657:2:1;18642:18;;18635:36;18703:3;18688:19;;18485:228::o;18718:350::-;18920:2;18902:21;;;18959:2;18939:18;;;18932:30;18998:28;18993:2;18978:18;;18971:56;19059:2;19044:18;;18892:176::o;19073:345::-;19275:2;19257:21;;;19314:2;19294:18;;;19287:30;-1:-1:-1;;;19348:2:1;19333:18;;19326:51;19409:2;19394:18;;19247:171::o;19423:341::-;19625:2;19607:21;;;19664:2;19644:18;;;19637:30;-1:-1:-1;;;19698:2:1;19683:18;;19676:47;19755:2;19740:18;;19597:167::o;19769:340::-;19971:2;19953:21;;;20010:2;19990:18;;;19983:30;-1:-1:-1;;;20044:2:1;20029:18;;20022:46;20100:2;20085:18;;19943:166::o;20114:328::-;20316:2;20298:21;;;20355:1;20335:18;;;20328:29;-1:-1:-1;;;20388:2:1;20373:18;;20366:35;20433:2;20418:18;;20288:154::o;20447:410::-;20649:2;20631:21;;;20688:2;20668:18;;;20661:30;20727:34;20722:2;20707:18;;20700:62;-1:-1:-1;;;20793:2:1;20778:18;;20771:44;20847:3;20832:19;;20621:236::o;20862:330::-;21064:2;21046:21;;;21103:1;21083:18;;;21076:29;-1:-1:-1;;;21136:2:1;21121:18;;21114:37;21183:2;21168:18;;21036:156::o;21197:397::-;21399:2;21381:21;;;21438:2;21418:18;;;21411:30;21477:34;21472:2;21457:18;;21450:62;-1:-1:-1;;;21543:2:1;21528:18;;21521:31;21584:3;21569:19;;21371:223::o;21599:329::-;21801:2;21783:21;;;21840:1;21820:18;;;21813:29;-1:-1:-1;;;21873:2:1;21858:18;;21851:36;21919:2;21904:18;;21773:155::o;21933:336::-;22135:2;22117:21;;;22174:2;22154:18;;;22147:30;-1:-1:-1;;;22208:2:1;22193:18;;22186:42;22260:2;22245:18;;22107:162::o;22274:356::-;22476:2;22458:21;;;22495:18;;;22488:30;22554:34;22549:2;22534:18;;22527:62;22621:2;22606:18;;22448:182::o;22635:348::-;22837:2;22819:21;;;22876:2;22856:18;;;22849:30;22915:26;22910:2;22895:18;;22888:54;22974:2;22959:18;;22809:174::o;22988:334::-;23190:2;23172:21;;;23229:2;23209:18;;;23202:30;-1:-1:-1;;;23263:2:1;23248:18;;23241:40;23313:2;23298:18;;23162:160::o;23327:339::-;23529:2;23511:21;;;23568:2;23548:18;;;23541:30;-1:-1:-1;;;23602:2:1;23587:18;;23580:45;23657:2;23642:18;;23501:165::o;23671:342::-;23873:2;23855:21;;;23912:2;23892:18;;;23885:30;-1:-1:-1;;;23946:2:1;23931:18;;23924:48;24004:2;23989:18;;23845:168::o;24018:339::-;24220:2;24202:21;;;24259:2;24239:18;;;24232:30;-1:-1:-1;;;24293:2:1;24278:18;;24271:45;24348:2;24333:18;;24192:165::o;24362:397::-;24564:2;24546:21;;;24603:2;24583:18;;;24576:30;24642:34;24637:2;24622:18;;24615:62;-1:-1:-1;;;24708:2:1;24693:18;;24686:31;24749:3;24734:19;;24536:223::o;24764:401::-;24966:2;24948:21;;;25005:2;24985:18;;;24978:30;25044:34;25039:2;25024:18;;25017:62;-1:-1:-1;;;25110:2:1;25095:18;;25088:35;25155:3;25140:19;;24938:227::o;25170:338::-;25372:2;25354:21;;;25411:2;25391:18;;;25384:30;-1:-1:-1;;;25445:2:1;25430:18;;25423:44;25499:2;25484:18;;25344:164::o;25513:400::-;25715:2;25697:21;;;25754:2;25734:18;;;25727:30;25793:34;25788:2;25773:18;;25766:62;-1:-1:-1;;;25859:2:1;25844:18;;25837:34;25903:3;25888:19;;25687:226::o;25918:401::-;26120:2;26102:21;;;26159:2;26139:18;;;26132:30;26198:34;26193:2;26178:18;;26171:62;-1:-1:-1;;;26264:2:1;26249:18;;26242:35;26309:3;26294:19;;26092:227::o;26324:343::-;26526:2;26508:21;;;26565:2;26545:18;;;26538:30;-1:-1:-1;;;26599:2:1;26584:18;;26577:49;26658:2;26643:18;;26498:169::o;26672:400::-;26874:2;26856:21;;;26913:2;26893:18;;;26886:30;26952:34;26947:2;26932:18;;26925:62;-1:-1:-1;;;27018:2:1;27003:18;;26996:34;27062:3;27047:19;;26846:226::o;27077:350::-;27279:2;27261:21;;;27318:2;27298:18;;;27291:30;27357:28;27352:2;27337:18;;27330:56;27418:2;27403:18;;27251:176::o;27432:353::-;27634:2;27616:21;;;27673:2;27653:18;;;27646:30;27712:31;27707:2;27692:18;;27685:59;27776:2;27761:18;;27606:179::o;27790:353::-;27992:2;27974:21;;;28031:2;28011:18;;;28004:30;28070:31;28065:2;28050:18;;28043:59;28134:2;28119:18;;27964:179::o;28148:344::-;28350:2;28332:21;;;28389:2;28369:18;;;28362:30;-1:-1:-1;;;28423:2:1;28408:18;;28401:50;28483:2;28468:18;;28322:170::o;28497:406::-;28699:2;28681:21;;;28738:2;28718:18;;;28711:30;28777:34;28772:2;28757:18;;28750:62;-1:-1:-1;;;28843:2:1;28828:18;;28821:40;28893:3;28878:19;;28671:232::o;28908:345::-;29110:2;29092:21;;;29149:2;29129:18;;;29122:30;-1:-1:-1;;;29183:2:1;29168:18;;29161:51;29244:2;29229:18;;29082:171::o;29258:330::-;29460:2;29442:21;;;29499:1;29479:18;;;29472:29;-1:-1:-1;;;29532:2:1;29517:18;;29510:37;29579:2;29564:18;;29432:156::o;29593:336::-;29795:2;29777:21;;;29834:2;29814:18;;;29807:30;-1:-1:-1;;;29868:2:1;29853:18;;29846:42;29920:2;29905:18;;29767:162::o;29934:355::-;30136:2;30118:21;;;30175:2;30155:18;;;30148:30;30214:33;30209:2;30194:18;;30187:61;30280:2;30265:18;;30108:181::o;30294:342::-;30496:2;30478:21;;;30535:2;30515:18;;;30508:30;-1:-1:-1;;;30569:2:1;30554:18;;30547:48;30627:2;30612:18;;30468:168::o;30641:418::-;30843:2;30825:21;;;30882:2;30862:18;;;30855:30;30921:34;30916:2;30901:18;;30894:62;-1:-1:-1;;;30987:2:1;30972:18;;30965:52;31049:3;31034:19;;30815:244::o;31064:399::-;31266:2;31248:21;;;31305:2;31285:18;;;31278:30;31344:34;31339:2;31324:18;;31317:62;-1:-1:-1;;;31410:2:1;31395:18;;31388:33;31453:3;31438:19;;31238:225::o;31468:338::-;31670:2;31652:21;;;31709:2;31689:18;;;31682:30;-1:-1:-1;;;31743:2:1;31728:18;;31721:44;31797:2;31782:18;;31642:164::o;31811:355::-;32013:2;31995:21;;;32052:2;32032:18;;;32025:30;32091:33;32086:2;32071:18;;32064:61;32157:2;32142:18;;31985:181::o;32171:336::-;32373:2;32355:21;;;32412:2;32392:18;;;32385:30;-1:-1:-1;;;32446:2:1;32431:18;;32424:42;32498:2;32483:18;;32345:162::o;32512:1111::-;32706:3;32691:19;;32732:20;;32761:33;32732:20;32761:33;:::i;:::-;-1:-1:-1;;;;;32859:14:1;;;32841:33;;32923:4;32911:17;;32898:31;;32938:35;32898:31;32938:35;:::i;:::-;33011:16;;;33004:4;32989:20;;32982:46;33077:4;33065:17;;33052:31;;33092:35;33052:31;33092:35;:::i;:::-;33178:2;33169:7;33165:16;33158:4;33147:9;33143:20;33136:46;33245:4;33237:6;33233:17;33220:31;33213:4;33202:9;33198:20;33191:61;33315:4;33307:6;33303:17;33290:31;33283:4;33272:9;33268:20;33261:61;33346:48;33388:4;33380:6;33376:17;33346:48;:::i;:::-;33331:63;;33403:60;33457:4;33446:9;33442:20;33433:7;33403:60;:::i;:::-;33512:4;33504:6;33500:17;33487:31;33472:46;;33527:35;33554:7;33527:35;:::i;:::-;33613:2;33604:7;33600:16;33593:4;33582:9;33578:20;33571:46;;;32673:950;;;;:::o;33628:1487::-;33841:20;;33823:39;;33925:4;33913:17;;;33900:31;33878:20;;;33871:61;33810:3;33795:19;;33941:76;34011:4;33996:20;;;;33977:17;;33941:76;:::i;:::-;34026;34096:4;34085:9;34081:20;34074:4;34066:6;34062:17;34026:76;:::i;:::-;34121:6;34136:72;34204:2;34193:9;34189:18;34184:2;34176:6;34172:15;34136:72;:::i;:::-;;34227:6;34280:2;34272:6;34268:15;34255:29;34293:33;34320:5;34293:33;:::i;:::-;-1:-1:-1;;;;;34400:14:1;;;34380:18;;;34373:42;;;;34434:3;;34474:15;;;34461:29;;34499:35;34461:29;34499:35;:::i;:::-;34570:16;34550:18;;;34543:44;34606:3;34646:15;;;34633:29;-1:-1:-1;;;;;;34693:27:1;;34681:40;;34671:2;;34735:1;34732;34725:12;34671:2;34748:48;34792:2;34781:9;34777:18;34768:7;34748:48;:::i;:::-;;;34815:3;34842:35;34873:2;34865:6;34861:15;34842:35;:::i;:::-;34886:47;34929:2;34918:9;34914:18;34905:7;34886:47;:::i;:::-;-1:-1:-1;;34952:3:1;35004:15;;;34991:29;34971:18;;;34964:57;35040:3;35092:15;;;35079:29;35059:18;;;;35052:57;;;;33777:1338;:::o;35120:177::-;35266:25;;;35254:2;35239:18;;35221:76::o;35302:282::-;35484:25;;;-1:-1:-1;;;;;35545:32:1;35540:2;35525:18;;35518:60;35472:2;35457:18;;35439:145::o;35589:248::-;35763:25;;;35819:2;35804:18;;35797:34;35751:2;35736:18;;35718:119::o;35842:353::-;36052:25;;;36108:2;36093:18;;36086:34;;;;-1:-1:-1;;;;;36156:32:1;36151:2;36136:18;;36129:60;36040:2;36025:18;;36007:188::o;36200:319::-;36402:25;;;36458:2;36443:18;;36436:34;;;;36501:2;36486:18;;36479:34;36390:2;36375:18;;36357:162::o;36524:184::-;36696:4;36684:17;;;;36666:36;;36654:2;36639:18;;36621:87::o;36713:258::-;36785:1;36795:113;36809:6;36806:1;36803:13;36795:113;;;36885:11;;;36879:18;36866:11;;;36859:39;36831:2;36824:10;36795:113;;;36926:6;36923:1;36920:13;36917:2;;;-1:-1:-1;;36961:1:1;36943:16;;36936:27;36766:205::o;36976:133::-;-1:-1:-1;;;;;37053:31:1;;37043:42;;37033:2;;37099:1;37096;37089:12

Swarm Source

ipfs://a7002a3a92cefc55d9aa2c497c618c3c9d9a2b8d94fbcc05663e573a803f147a

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

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.