ETH Price: $3,358.50 (-2.78%)
Gas: 2 Gwei

Contract

0x1355Ee55C7477A8b87fDD62A60a9B8BD9E68bcB5
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Remove From Pool169022112023-03-25 4:49:35466 days ago1679719775IN
0x1355Ee55...D9E68bcB5
0 ETH0.0027314211.7054194
Change Tokens To...167574202023-03-04 20:22:23486 days ago1677961343IN
0x1355Ee55...D9E68bcB5
0 ETH0.0063489330.88425181
Swap Tokens167574102023-03-04 20:20:23486 days ago1677961223IN
0x1355Ee55...D9E68bcB5
0 ETH0.0074278728.79086735
Swap Tokens167574052023-03-04 20:19:23486 days ago1677961163IN
0x1355Ee55...D9E68bcB5
0 ETH0.0088041529.41640532
Add To Pool167573502023-03-04 20:08:23486 days ago1677960503IN
0x1355Ee55...D9E68bcB5
0.17929507 ETH0.0031446626.98285304
Add To Pool167573462023-03-04 20:07:35486 days ago1677960455IN
0x1355Ee55...D9E68bcB5
0.17929507 ETH0.0069802928.45396934

Latest 5 internal transactions

Advanced mode:
Parent Transaction Hash Block From To Value
169022112023-03-25 4:49:35466 days ago1679719775
0x1355Ee55...D9E68bcB5
0.27281016 ETH
169022112023-03-25 4:49:35466 days ago1679719775
0x1355Ee55...D9E68bcB5
0.27281016 ETH
167573502023-03-04 20:08:23486 days ago1677960503
0x1355Ee55...D9E68bcB5
0.17929507 ETH
167573462023-03-04 20:07:35486 days ago1677960455
0x1355Ee55...D9E68bcB5
0.17929507 ETH
167572172023-03-04 19:41:11486 days ago1677958871  Contract Creation0 ETH
Loading...
Loading

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

Contract Name:
Investment

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-02-28
*/

// File: @chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol


pragma solidity ^0.8.0;

interface AggregatorV3Interface {
  function decimals() external view returns (uint8);

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

  function version() external view returns (uint256);

  function getRoundData(uint80 _roundId)
    external
    view
    returns (
      uint80 roundId,
      int256 answer,
      uint256 startedAt,
      uint256 updatedAt,
      uint80 answeredInRound
    );

  function latestRoundData()
    external
    view
    returns (
      uint80 roundId,
      int256 answer,
      uint256 startedAt,
      uint256 updatedAt,
      uint80 answeredInRound
    );
}

// File: @chainlink/contracts/src/v0.8/interfaces/AggregatorInterface.sol


pragma solidity ^0.8.0;

interface AggregatorInterface {
  function latestAnswer() external view returns (int256);

  function latestTimestamp() external view returns (uint256);

  function latestRound() external view returns (uint256);

  function getAnswer(uint256 roundId) external view returns (int256);

  function getTimestamp(uint256 roundId) external view returns (uint256);

  event AnswerUpdated(int256 indexed current, uint256 indexed roundId, uint256 updatedAt);

  event NewRound(uint256 indexed roundId, address indexed startedBy, uint256 startedAt);
}

// File: @chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.sol


pragma solidity ^0.8.0;



interface AggregatorV2V3Interface is AggregatorInterface, AggregatorV3Interface {}

// File: @chainlink/contracts/src/v0.8/interfaces/FeedRegistryInterface.sol


pragma solidity ^0.8.0;
pragma abicoder v2;


interface FeedRegistryInterface {
  struct Phase {
    uint16 phaseId;
    uint80 startingAggregatorRoundId;
    uint80 endingAggregatorRoundId;
  }

  event FeedProposed(
    address indexed asset,
    address indexed denomination,
    address indexed proposedAggregator,
    address currentAggregator,
    address sender
  );
  event FeedConfirmed(
    address indexed asset,
    address indexed denomination,
    address indexed latestAggregator,
    address previousAggregator,
    uint16 nextPhaseId,
    address sender
  );

  // V3 AggregatorV3Interface

  function decimals(address base, address quote) external view returns (uint8);

  function description(address base, address quote) external view returns (string memory);

  function version(address base, address quote) external view returns (uint256);

  function latestRoundData(address base, address quote)
    external
    view
    returns (
      uint80 roundId,
      int256 answer,
      uint256 startedAt,
      uint256 updatedAt,
      uint80 answeredInRound
    );

  function getRoundData(
    address base,
    address quote,
    uint80 _roundId
  )
    external
    view
    returns (
      uint80 roundId,
      int256 answer,
      uint256 startedAt,
      uint256 updatedAt,
      uint80 answeredInRound
    );

  // V2 AggregatorInterface

  function latestAnswer(address base, address quote) external view returns (int256 answer);

  function latestTimestamp(address base, address quote) external view returns (uint256 timestamp);

  function latestRound(address base, address quote) external view returns (uint256 roundId);

  function getAnswer(
    address base,
    address quote,
    uint256 roundId
  ) external view returns (int256 answer);

  function getTimestamp(
    address base,
    address quote,
    uint256 roundId
  ) external view returns (uint256 timestamp);

  // Registry getters

  function getFeed(address base, address quote) external view returns (AggregatorV2V3Interface aggregator);

  function getPhaseFeed(
    address base,
    address quote,
    uint16 phaseId
  ) external view returns (AggregatorV2V3Interface aggregator);

  function isFeedEnabled(address aggregator) external view returns (bool);

  function getPhase(
    address base,
    address quote,
    uint16 phaseId
  ) external view returns (Phase memory phase);

  // Round helpers

  function getRoundFeed(
    address base,
    address quote,
    uint80 roundId
  ) external view returns (AggregatorV2V3Interface aggregator);

  function getPhaseRange(
    address base,
    address quote,
    uint16 phaseId
  ) external view returns (uint80 startingRoundId, uint80 endingRoundId);

  function getPreviousRoundId(
    address base,
    address quote,
    uint80 roundId
  ) external view returns (uint80 previousRoundId);

  function getNextRoundId(
    address base,
    address quote,
    uint80 roundId
  ) external view returns (uint80 nextRoundId);

  // Feed management

  function proposeFeed(
    address base,
    address quote,
    address aggregator
  ) external;

  function confirmFeed(
    address base,
    address quote,
    address aggregator
  ) external;

  // Proposed aggregator

  function getProposedFeed(address base, address quote)
    external
    view
    returns (AggregatorV2V3Interface proposedAggregator);

  function proposedGetRoundData(
    address base,
    address quote,
    uint80 roundId
  )
    external
    view
    returns (
      uint80 id,
      int256 answer,
      uint256 startedAt,
      uint256 updatedAt,
      uint80 answeredInRound
    );

  function proposedLatestRoundData(address base, address quote)
    external
    view
    returns (
      uint80 id,
      int256 answer,
      uint256 startedAt,
      uint256 updatedAt,
      uint80 answeredInRound
    );

  // Phases
  function getCurrentPhaseId(address base, address quote) external view returns (uint16 currentPhaseId);
}

// File: @uniswap/v3-periphery/contracts/libraries/PoolAddress.sol


pragma solidity >=0.5.0;

/// @title Provides functions for deriving a pool address from the factory, tokens, and the fee
library PoolAddress {
    bytes32 internal constant POOL_INIT_CODE_HASH = 0xa598dd2fba360510c5a8f02f44423a4468e902df5857dbce3ca162a43a3a31ff;

    /// @notice The identifying key of the pool
    struct PoolKey {
        address token0;
        address token1;
        uint24 fee;
    }

    /// @notice Returns PoolKey: the ordered tokens with the matched fee levels
    /// @param tokenA The first token of a pool, unsorted
    /// @param tokenB The second token of a pool, unsorted
    /// @param fee The fee level of the pool
    /// @return Poolkey The pool details with ordered token0 and token1 assignments
    function getPoolKey(
        address tokenA,
        address tokenB,
        uint24 fee
    ) internal pure returns (PoolKey memory) {
        if (tokenA > tokenB) (tokenA, tokenB) = (tokenB, tokenA);
        return PoolKey({token0: tokenA, token1: tokenB, fee: fee});
    }

    /// @notice Deterministically computes the pool address given the factory and PoolKey
    /// @param factory The Uniswap V3 factory contract address
    /// @param key The PoolKey
    /// @return pool The contract address of the V3 pool
    function computeAddress(address factory, PoolKey memory key) internal pure returns (address pool) {
        require(key.token0 < key.token1);
        pool = address(
            uint160(
                uint256(
                    keccak256(
                        abi.encodePacked(
                            hex'ff',
                            factory,
                            keccak256(abi.encode(key.token0, key.token1, key.fee)),
                            POOL_INIT_CODE_HASH
                        )
                    )
                )
            )
        );
    }
}
// File: @uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolEvents.sol


pragma solidity >=0.5.0;

/// @title Events emitted by a pool
/// @notice Contains all events emitted by the pool
interface IUniswapV3PoolEvents {
    /// @notice Emitted exactly once by a pool when #initialize is first called on the pool
    /// @dev Mint/Burn/Swap cannot be emitted by the pool before Initialize
    /// @param sqrtPriceX96 The initial sqrt price of the pool, as a Q64.96
    /// @param tick The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool
    event Initialize(uint160 sqrtPriceX96, int24 tick);

    /// @notice Emitted when liquidity is minted for a given position
    /// @param sender The address that minted the liquidity
    /// @param owner The owner of the position and recipient of any minted liquidity
    /// @param tickLower The lower tick of the position
    /// @param tickUpper The upper tick of the position
    /// @param amount The amount of liquidity minted to the position range
    /// @param amount0 How much token0 was required for the minted liquidity
    /// @param amount1 How much token1 was required for the minted liquidity
    event Mint(
        address sender,
        address indexed owner,
        int24 indexed tickLower,
        int24 indexed tickUpper,
        uint128 amount,
        uint256 amount0,
        uint256 amount1
    );

    /// @notice Emitted when fees are collected by the owner of a position
    /// @dev Collect events may be emitted with zero amount0 and amount1 when the caller chooses not to collect fees
    /// @param owner The owner of the position for which fees are collected
    /// @param tickLower The lower tick of the position
    /// @param tickUpper The upper tick of the position
    /// @param amount0 The amount of token0 fees collected
    /// @param amount1 The amount of token1 fees collected
    event Collect(
        address indexed owner,
        address recipient,
        int24 indexed tickLower,
        int24 indexed tickUpper,
        uint128 amount0,
        uint128 amount1
    );

    /// @notice Emitted when a position's liquidity is removed
    /// @dev Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect
    /// @param owner The owner of the position for which liquidity is removed
    /// @param tickLower The lower tick of the position
    /// @param tickUpper The upper tick of the position
    /// @param amount The amount of liquidity to remove
    /// @param amount0 The amount of token0 withdrawn
    /// @param amount1 The amount of token1 withdrawn
    event Burn(
        address indexed owner,
        int24 indexed tickLower,
        int24 indexed tickUpper,
        uint128 amount,
        uint256 amount0,
        uint256 amount1
    );

    /// @notice Emitted by the pool for any swaps between token0 and token1
    /// @param sender The address that initiated the swap call, and that received the callback
    /// @param recipient The address that received the output of the swap
    /// @param amount0 The delta of the token0 balance of the pool
    /// @param amount1 The delta of the token1 balance of the pool
    /// @param sqrtPriceX96 The sqrt(price) of the pool after the swap, as a Q64.96
    /// @param liquidity The liquidity of the pool after the swap
    /// @param tick The log base 1.0001 of price of the pool after the swap
    event Swap(
        address indexed sender,
        address indexed recipient,
        int256 amount0,
        int256 amount1,
        uint160 sqrtPriceX96,
        uint128 liquidity,
        int24 tick
    );

    /// @notice Emitted by the pool for any flashes of token0/token1
    /// @param sender The address that initiated the swap call, and that received the callback
    /// @param recipient The address that received the tokens from flash
    /// @param amount0 The amount of token0 that was flashed
    /// @param amount1 The amount of token1 that was flashed
    /// @param paid0 The amount of token0 paid for the flash, which can exceed the amount0 plus the fee
    /// @param paid1 The amount of token1 paid for the flash, which can exceed the amount1 plus the fee
    event Flash(
        address indexed sender,
        address indexed recipient,
        uint256 amount0,
        uint256 amount1,
        uint256 paid0,
        uint256 paid1
    );

    /// @notice Emitted by the pool for increases to the number of observations that can be stored
    /// @dev observationCardinalityNext is not the observation cardinality until an observation is written at the index
    /// just before a mint/swap/burn.
    /// @param observationCardinalityNextOld The previous value of the next observation cardinality
    /// @param observationCardinalityNextNew The updated value of the next observation cardinality
    event IncreaseObservationCardinalityNext(
        uint16 observationCardinalityNextOld,
        uint16 observationCardinalityNextNew
    );

    /// @notice Emitted when the protocol fee is changed by the pool
    /// @param feeProtocol0Old The previous value of the token0 protocol fee
    /// @param feeProtocol1Old The previous value of the token1 protocol fee
    /// @param feeProtocol0New The updated value of the token0 protocol fee
    /// @param feeProtocol1New The updated value of the token1 protocol fee
    event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New);

    /// @notice Emitted when the collected protocol fees are withdrawn by the factory owner
    /// @param sender The address that collects the protocol fees
    /// @param recipient The address that receives the collected protocol fees
    /// @param amount0 The amount of token0 protocol fees that is withdrawn
    /// @param amount0 The amount of token1 protocol fees that is withdrawn
    event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1);
}

// File: @uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolOwnerActions.sol


pragma solidity >=0.5.0;

/// @title Permissioned pool actions
/// @notice Contains pool methods that may only be called by the factory owner
interface IUniswapV3PoolOwnerActions {
    /// @notice Set the denominator of the protocol's % share of the fees
    /// @param feeProtocol0 new protocol fee for token0 of the pool
    /// @param feeProtocol1 new protocol fee for token1 of the pool
    function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) external;

    /// @notice Collect the protocol fee accrued to the pool
    /// @param recipient The address to which collected protocol fees should be sent
    /// @param amount0Requested The maximum amount of token0 to send, can be 0 to collect fees in only token1
    /// @param amount1Requested The maximum amount of token1 to send, can be 0 to collect fees in only token0
    /// @return amount0 The protocol fee collected in token0
    /// @return amount1 The protocol fee collected in token1
    function collectProtocol(
        address recipient,
        uint128 amount0Requested,
        uint128 amount1Requested
    ) external returns (uint128 amount0, uint128 amount1);
}

// File: @uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolActions.sol


pragma solidity >=0.5.0;

/// @title Permissionless pool actions
/// @notice Contains pool methods that can be called by anyone
interface IUniswapV3PoolActions {
    /// @notice Sets the initial price for the pool
    /// @dev Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 value
    /// @param sqrtPriceX96 the initial sqrt price of the pool as a Q64.96
    function initialize(uint160 sqrtPriceX96) external;

    /// @notice Adds liquidity for the given recipient/tickLower/tickUpper position
    /// @dev The caller of this method receives a callback in the form of IUniswapV3MintCallback#uniswapV3MintCallback
    /// in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends
    /// on tickLower, tickUpper, the amount of liquidity, and the current price.
    /// @param recipient The address for which the liquidity will be created
    /// @param tickLower The lower tick of the position in which to add liquidity
    /// @param tickUpper The upper tick of the position in which to add liquidity
    /// @param amount The amount of liquidity to mint
    /// @param data Any data that should be passed through to the callback
    /// @return amount0 The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback
    /// @return amount1 The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callback
    function mint(
        address recipient,
        int24 tickLower,
        int24 tickUpper,
        uint128 amount,
        bytes calldata data
    ) external returns (uint256 amount0, uint256 amount1);

    /// @notice Collects tokens owed to a position
    /// @dev Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity.
    /// Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or
    /// amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the
    /// actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity.
    /// @param recipient The address which should receive the fees collected
    /// @param tickLower The lower tick of the position for which to collect fees
    /// @param tickUpper The upper tick of the position for which to collect fees
    /// @param amount0Requested How much token0 should be withdrawn from the fees owed
    /// @param amount1Requested How much token1 should be withdrawn from the fees owed
    /// @return amount0 The amount of fees collected in token0
    /// @return amount1 The amount of fees collected in token1
    function collect(
        address recipient,
        int24 tickLower,
        int24 tickUpper,
        uint128 amount0Requested,
        uint128 amount1Requested
    ) external returns (uint128 amount0, uint128 amount1);

    /// @notice Burn liquidity from the sender and account tokens owed for the liquidity to the position
    /// @dev Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0
    /// @dev Fees must be collected separately via a call to #collect
    /// @param tickLower The lower tick of the position for which to burn liquidity
    /// @param tickUpper The upper tick of the position for which to burn liquidity
    /// @param amount How much liquidity to burn
    /// @return amount0 The amount of token0 sent to the recipient
    /// @return amount1 The amount of token1 sent to the recipient
    function burn(
        int24 tickLower,
        int24 tickUpper,
        uint128 amount
    ) external returns (uint256 amount0, uint256 amount1);

    /// @notice Swap token0 for token1, or token1 for token0
    /// @dev The caller of this method receives a callback in the form of IUniswapV3SwapCallback#uniswapV3SwapCallback
    /// @param recipient The address to receive the output of the swap
    /// @param zeroForOne The direction of the swap, true for token0 to token1, false for token1 to token0
    /// @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)
    /// @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this
    /// value after the swap. If one for zero, the price cannot be greater than this value after the swap
    /// @param data Any data to be passed through to the callback
    /// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive
    /// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive
    function swap(
        address recipient,
        bool zeroForOne,
        int256 amountSpecified,
        uint160 sqrtPriceLimitX96,
        bytes calldata data
    ) external returns (int256 amount0, int256 amount1);

    /// @notice Receive token0 and/or token1 and pay it back, plus a fee, in the callback
    /// @dev The caller of this method receives a callback in the form of IUniswapV3FlashCallback#uniswapV3FlashCallback
    /// @dev Can be used to donate underlying tokens pro-rata to currently in-range liquidity providers by calling
    /// with 0 amount{0,1} and sending the donation amount(s) from the callback
    /// @param recipient The address which will receive the token0 and token1 amounts
    /// @param amount0 The amount of token0 to send
    /// @param amount1 The amount of token1 to send
    /// @param data Any data to be passed through to the callback
    function flash(
        address recipient,
        uint256 amount0,
        uint256 amount1,
        bytes calldata data
    ) external;

    /// @notice Increase the maximum number of price and liquidity observations that this pool will store
    /// @dev This method is no-op if the pool already has an observationCardinalityNext greater than or equal to
    /// the input observationCardinalityNext.
    /// @param observationCardinalityNext The desired minimum number of observations for the pool to store
    function increaseObservationCardinalityNext(uint16 observationCardinalityNext) external;
}

// File: @uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolDerivedState.sol


pragma solidity >=0.5.0;

/// @title Pool state that is not stored
/// @notice Contains view functions to provide information about the pool that is computed rather than stored on the
/// blockchain. The functions here may have variable gas costs.
interface IUniswapV3PoolDerivedState {
    /// @notice Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp
    /// @dev To get a time weighted average tick or liquidity-in-range, you must call this with two values, one representing
    /// the beginning of the period and another for the end of the period. E.g., to get the last hour time-weighted average tick,
    /// you must call it with secondsAgos = [3600, 0].
    /// @dev The time weighted average tick represents the geometric time weighted average price of the pool, in
    /// log base sqrt(1.0001) of token1 / token0. The TickMath library can be used to go from a tick value to a ratio.
    /// @param secondsAgos From how long ago each cumulative tick and liquidity value should be returned
    /// @return tickCumulatives Cumulative tick values as of each `secondsAgos` from the current block timestamp
    /// @return secondsPerLiquidityCumulativeX128s Cumulative seconds per liquidity-in-range value as of each `secondsAgos` from the current block
    /// timestamp
    function observe(uint32[] calldata secondsAgos)
        external
        view
        returns (int56[] memory tickCumulatives, uint160[] memory secondsPerLiquidityCumulativeX128s);

    /// @notice Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range
    /// @dev Snapshots must only be compared to other snapshots, taken over a period for which a position existed.
    /// I.e., snapshots cannot be compared if a position is not held for the entire period between when the first
    /// snapshot is taken and the second snapshot is taken.
    /// @param tickLower The lower tick of the range
    /// @param tickUpper The upper tick of the range
    /// @return tickCumulativeInside The snapshot of the tick accumulator for the range
    /// @return secondsPerLiquidityInsideX128 The snapshot of seconds per liquidity for the range
    /// @return secondsInside The snapshot of seconds per liquidity for the range
    function snapshotCumulativesInside(int24 tickLower, int24 tickUpper)
        external
        view
        returns (
            int56 tickCumulativeInside,
            uint160 secondsPerLiquidityInsideX128,
            uint32 secondsInside
        );
}

// File: @uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolState.sol


pragma solidity >=0.5.0;

/// @title Pool state that can change
/// @notice These methods compose the pool's state, and can change with any frequency including multiple times
/// per transaction
interface IUniswapV3PoolState {
    /// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas
    /// when accessed externally.
    /// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value
    /// tick The current tick of the pool, i.e. according to the last tick transition that was run.
    /// This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(sqrtPriceX96) if the price is on a tick
    /// boundary.
    /// observationIndex The index of the last oracle observation that was written,
    /// observationCardinality The current maximum number of observations stored in the pool,
    /// observationCardinalityNext The next maximum number of observations, to be updated when the observation.
    /// feeProtocol The protocol fee for both tokens of the pool.
    /// Encoded as two 4 bit values, where the protocol fee of token1 is shifted 4 bits and the protocol fee of token0
    /// is the lower 4 bits. Used as the denominator of a fraction of the swap fee, e.g. 4 means 1/4th of the swap fee.
    /// unlocked Whether the pool is currently locked to reentrancy
    function slot0()
        external
        view
        returns (
            uint160 sqrtPriceX96,
            int24 tick,
            uint16 observationIndex,
            uint16 observationCardinality,
            uint16 observationCardinalityNext,
            uint8 feeProtocol,
            bool unlocked
        );

    /// @notice The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool
    /// @dev This value can overflow the uint256
    function feeGrowthGlobal0X128() external view returns (uint256);

    /// @notice The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool
    /// @dev This value can overflow the uint256
    function feeGrowthGlobal1X128() external view returns (uint256);

    /// @notice The amounts of token0 and token1 that are owed to the protocol
    /// @dev Protocol fees will never exceed uint128 max in either token
    function protocolFees() external view returns (uint128 token0, uint128 token1);

    /// @notice The currently in range liquidity available to the pool
    /// @dev This value has no relationship to the total liquidity across all ticks
    function liquidity() external view returns (uint128);

    /// @notice Look up information about a specific tick in the pool
    /// @param tick The tick to look up
    /// @return liquidityGross the total amount of position liquidity that uses the pool either as tick lower or
    /// tick upper,
    /// liquidityNet how much liquidity changes when the pool price crosses the tick,
    /// feeGrowthOutside0X128 the fee growth on the other side of the tick from the current tick in token0,
    /// feeGrowthOutside1X128 the fee growth on the other side of the tick from the current tick in token1,
    /// tickCumulativeOutside the cumulative tick value on the other side of the tick from the current tick
    /// secondsPerLiquidityOutsideX128 the seconds spent per liquidity on the other side of the tick from the current tick,
    /// secondsOutside the seconds spent on the other side of the tick from the current tick,
    /// initialized Set to true if the tick is initialized, i.e. liquidityGross is greater than 0, otherwise equal to false.
    /// Outside values can only be used if the tick is initialized, i.e. if liquidityGross is greater than 0.
    /// In addition, these values are only relative and must be used only in comparison to previous snapshots for
    /// a specific position.
    function ticks(int24 tick)
        external
        view
        returns (
            uint128 liquidityGross,
            int128 liquidityNet,
            uint256 feeGrowthOutside0X128,
            uint256 feeGrowthOutside1X128,
            int56 tickCumulativeOutside,
            uint160 secondsPerLiquidityOutsideX128,
            uint32 secondsOutside,
            bool initialized
        );

    /// @notice Returns 256 packed tick initialized boolean values. See TickBitmap for more information
    function tickBitmap(int16 wordPosition) external view returns (uint256);

    /// @notice Returns the information about a position by the position's key
    /// @param key The position's key is a hash of a preimage composed by the owner, tickLower and tickUpper
    /// @return _liquidity The amount of liquidity in the position,
    /// Returns feeGrowthInside0LastX128 fee growth of token0 inside the tick range as of the last mint/burn/poke,
    /// Returns feeGrowthInside1LastX128 fee growth of token1 inside the tick range as of the last mint/burn/poke,
    /// Returns tokensOwed0 the computed amount of token0 owed to the position as of the last mint/burn/poke,
    /// Returns tokensOwed1 the computed amount of token1 owed to the position as of the last mint/burn/poke
    function positions(bytes32 key)
        external
        view
        returns (
            uint128 _liquidity,
            uint256 feeGrowthInside0LastX128,
            uint256 feeGrowthInside1LastX128,
            uint128 tokensOwed0,
            uint128 tokensOwed1
        );

    /// @notice Returns data about a specific observation index
    /// @param index The element of the observations array to fetch
    /// @dev You most likely want to use #observe() instead of this method to get an observation as of some amount of time
    /// ago, rather than at a specific index in the array.
    /// @return blockTimestamp The timestamp of the observation,
    /// Returns tickCumulative the tick multiplied by seconds elapsed for the life of the pool as of the observation timestamp,
    /// Returns secondsPerLiquidityCumulativeX128 the seconds per in range liquidity for the life of the pool as of the observation timestamp,
    /// Returns initialized whether the observation has been initialized and the values are safe to use
    function observations(uint256 index)
        external
        view
        returns (
            uint32 blockTimestamp,
            int56 tickCumulative,
            uint160 secondsPerLiquidityCumulativeX128,
            bool initialized
        );
}

// File: @uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolImmutables.sol


pragma solidity >=0.5.0;

/// @title Pool state that never changes
/// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values
interface IUniswapV3PoolImmutables {
    /// @notice The contract that deployed the pool, which must adhere to the IUniswapV3Factory interface
    /// @return The contract address
    function factory() external view returns (address);

    /// @notice The first of the two tokens of the pool, sorted by address
    /// @return The token contract address
    function token0() external view returns (address);

    /// @notice The second of the two tokens of the pool, sorted by address
    /// @return The token contract address
    function token1() external view returns (address);

    /// @notice The pool's fee in hundredths of a bip, i.e. 1e-6
    /// @return The fee
    function fee() external view returns (uint24);

    /// @notice The pool tick spacing
    /// @dev Ticks can only be used at multiples of this value, minimum of 1 and always positive
    /// e.g.: a tickSpacing of 3 means ticks can be initialized every 3rd tick, i.e., ..., -6, -3, 0, 3, 6, ...
    /// This value is an int24 to avoid casting even though it is always positive.
    /// @return The tick spacing
    function tickSpacing() external view returns (int24);

    /// @notice The maximum amount of position liquidity that can use any tick in the range
    /// @dev This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and
    /// also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool
    /// @return The max amount of liquidity per tick
    function maxLiquidityPerTick() external view returns (uint128);
}

// File: @uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol


pragma solidity >=0.5.0;







/// @title The interface for a Uniswap V3 Pool
/// @notice A Uniswap pool facilitates swapping and automated market making between any two assets that strictly conform
/// to the ERC20 specification
/// @dev The pool interface is broken up into many smaller pieces
interface IUniswapV3Pool is
    IUniswapV3PoolImmutables,
    IUniswapV3PoolState,
    IUniswapV3PoolDerivedState,
    IUniswapV3PoolActions,
    IUniswapV3PoolOwnerActions,
    IUniswapV3PoolEvents
{

}

// File: @uniswap/v3-core/contracts/libraries/TickMath.sol


pragma solidity ^0.8.0;

/// @title Math library for computing sqrt prices from ticks and vice versa
/// @notice Computes sqrt price for ticks of size 1.0001, i.e. sqrt(1.0001^tick) as fixed point Q64.96 numbers. Supports
/// prices between 2**-128 and 2**128
library TickMath {
    error T();
    error R();

    /// @dev The minimum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**-128
    int24 internal constant MIN_TICK = -887272;
    /// @dev The maximum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**128
    int24 internal constant MAX_TICK = -MIN_TICK;

    /// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)
    uint160 internal constant MIN_SQRT_RATIO = 4295128739;
    /// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)
    uint160 internal constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;

    /// @notice Calculates sqrt(1.0001^tick) * 2^96
    /// @dev Throws if |tick| > max tick
    /// @param tick The input tick for the above formula
    /// @return sqrtPriceX96 A Fixed point Q64.96 number representing the sqrt of the ratio of the two assets (token1/token0)
    /// at the given tick
    function getSqrtRatioAtTick(int24 tick) internal pure returns (uint160 sqrtPriceX96) {
        unchecked {
            uint256 absTick = tick < 0 ? uint256(-int256(tick)) : uint256(int256(tick));
            if (absTick > uint256(int256(MAX_TICK))) revert T();

            uint256 ratio = absTick & 0x1 != 0
                ? 0xfffcb933bd6fad37aa2d162d1a594001
                : 0x100000000000000000000000000000000;
            if (absTick & 0x2 != 0) ratio = (ratio * 0xfff97272373d413259a46990580e213a) >> 128;
            if (absTick & 0x4 != 0) ratio = (ratio * 0xfff2e50f5f656932ef12357cf3c7fdcc) >> 128;
            if (absTick & 0x8 != 0) ratio = (ratio * 0xffe5caca7e10e4e61c3624eaa0941cd0) >> 128;
            if (absTick & 0x10 != 0) ratio = (ratio * 0xffcb9843d60f6159c9db58835c926644) >> 128;
            if (absTick & 0x20 != 0) ratio = (ratio * 0xff973b41fa98c081472e6896dfb254c0) >> 128;
            if (absTick & 0x40 != 0) ratio = (ratio * 0xff2ea16466c96a3843ec78b326b52861) >> 128;
            if (absTick & 0x80 != 0) ratio = (ratio * 0xfe5dee046a99a2a811c461f1969c3053) >> 128;
            if (absTick & 0x100 != 0) ratio = (ratio * 0xfcbe86c7900a88aedcffc83b479aa3a4) >> 128;
            if (absTick & 0x200 != 0) ratio = (ratio * 0xf987a7253ac413176f2b074cf7815e54) >> 128;
            if (absTick & 0x400 != 0) ratio = (ratio * 0xf3392b0822b70005940c7a398e4b70f3) >> 128;
            if (absTick & 0x800 != 0) ratio = (ratio * 0xe7159475a2c29b7443b29c7fa6e889d9) >> 128;
            if (absTick & 0x1000 != 0) ratio = (ratio * 0xd097f3bdfd2022b8845ad8f792aa5825) >> 128;
            if (absTick & 0x2000 != 0) ratio = (ratio * 0xa9f746462d870fdf8a65dc1f90e061e5) >> 128;
            if (absTick & 0x4000 != 0) ratio = (ratio * 0x70d869a156d2a1b890bb3df62baf32f7) >> 128;
            if (absTick & 0x8000 != 0) ratio = (ratio * 0x31be135f97d08fd981231505542fcfa6) >> 128;
            if (absTick & 0x10000 != 0) ratio = (ratio * 0x9aa508b5b7a84e1c677de54f3e99bc9) >> 128;
            if (absTick & 0x20000 != 0) ratio = (ratio * 0x5d6af8dedb81196699c329225ee604) >> 128;
            if (absTick & 0x40000 != 0) ratio = (ratio * 0x2216e584f5fa1ea926041bedfe98) >> 128;
            if (absTick & 0x80000 != 0) ratio = (ratio * 0x48a170391f7dc42444e8fa2) >> 128;

            if (tick > 0) ratio = type(uint256).max / ratio;

            // this divides by 1<<32 rounding up to go from a Q128.128 to a Q128.96.
            // we then downcast because we know the result always fits within 160 bits due to our tick input constraint
            // we round up in the division so getTickAtSqrtRatio of the output price is always consistent
            sqrtPriceX96 = uint160((ratio >> 32) + (ratio % (1 << 32) == 0 ? 0 : 1));
        }
    }

    /// @notice Calculates the greatest tick value such that getRatioAtTick(tick) <= ratio
    /// @dev Throws in case sqrtPriceX96 < MIN_SQRT_RATIO, as MIN_SQRT_RATIO is the lowest value getRatioAtTick may
    /// ever return.
    /// @param sqrtPriceX96 The sqrt ratio for which to compute the tick as a Q64.96
    /// @return tick The greatest tick for which the ratio is less than or equal to the input ratio
    function getTickAtSqrtRatio(uint160 sqrtPriceX96) internal pure returns (int24 tick) {
        unchecked {
            // second inequality must be < because the price can never reach the price at the max tick
            if (!(sqrtPriceX96 >= MIN_SQRT_RATIO && sqrtPriceX96 < MAX_SQRT_RATIO)) revert R();
            uint256 ratio = uint256(sqrtPriceX96) << 32;

            uint256 r = ratio;
            uint256 msb = 0;

            assembly {
                let f := shl(7, gt(r, 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF))
                msb := or(msb, f)
                r := shr(f, r)
            }
            assembly {
                let f := shl(6, gt(r, 0xFFFFFFFFFFFFFFFF))
                msb := or(msb, f)
                r := shr(f, r)
            }
            assembly {
                let f := shl(5, gt(r, 0xFFFFFFFF))
                msb := or(msb, f)
                r := shr(f, r)
            }
            assembly {
                let f := shl(4, gt(r, 0xFFFF))
                msb := or(msb, f)
                r := shr(f, r)
            }
            assembly {
                let f := shl(3, gt(r, 0xFF))
                msb := or(msb, f)
                r := shr(f, r)
            }
            assembly {
                let f := shl(2, gt(r, 0xF))
                msb := or(msb, f)
                r := shr(f, r)
            }
            assembly {
                let f := shl(1, gt(r, 0x3))
                msb := or(msb, f)
                r := shr(f, r)
            }
            assembly {
                let f := gt(r, 0x1)
                msb := or(msb, f)
            }

            if (msb >= 128) r = ratio >> (msb - 127);
            else r = ratio << (127 - msb);

            int256 log_2 = (int256(msb) - 128) << 64;

            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(63, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(62, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(61, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(60, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(59, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(58, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(57, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(56, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(55, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(54, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(53, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(52, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(51, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(50, f))
            }

            int256 log_sqrt10001 = log_2 * 255738958999603826347141; // 128.128 number

            int24 tickLow = int24((log_sqrt10001 - 3402992956809132418596140100660247210) >> 128);
            int24 tickHi = int24((log_sqrt10001 + 291339464771989622907027621153398088495) >> 128);

            tick = tickLow == tickHi ? tickLow : getSqrtRatioAtTick(tickHi) <= sqrtPriceX96 ? tickHi : tickLow;
        }
    }
}
// File: @uniswap/v3-core/contracts/libraries/FullMath.sol


pragma solidity ^0.8.0;

/// @title Contains 512-bit math functions
/// @notice Facilitates multiplication and division that can have overflow of an intermediate value without any loss of precision
/// @dev Handles "phantom overflow" i.e., allows multiplication and division where an intermediate value overflows 256 bits
library FullMath {
    /// @notice Calculates floor(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
    /// @param a The multiplicand
    /// @param b The multiplier
    /// @param denominator The divisor
    /// @return result The 256-bit result
    /// @dev Credit to Remco Bloemen under MIT license https://xn--2-umb.com/21/muldiv
    function mulDiv(
        uint256 a,
        uint256 b,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = a * b
            // Compute the product mod 2**256 and mod 2**256 - 1
            // then use the Chinese Remainder Theorem to reconstruct
            // the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2**256 + prod0
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(a, b, not(0))
                prod0 := mul(a, b)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division
            if (prod1 == 0) {
                require(denominator > 0);
                assembly {
                    result := div(prod0, denominator)
                }
                return result;
            }

            // Make sure the result is less than 2**256.
            // Also prevents denominator == 0
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0]
            // Compute remainder using mulmod
            uint256 remainder;
            assembly {
                remainder := mulmod(a, b, denominator)
            }
            // Subtract 256 bit number from 512 bit number
            assembly {
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator
            // Compute largest power of two divisor of denominator.
            // Always >= 1.
            uint256 twos = (0 - denominator) & denominator;
            // Divide denominator by power of two
            assembly {
                denominator := div(denominator, twos)
            }

            // Divide [prod1 prod0] by the factors of two
            assembly {
                prod0 := div(prod0, twos)
            }
            // Shift in bits from prod1 into prod0. For this we need
            // to flip `twos` such that it is 2**256 / twos.
            // If twos is zero, then it becomes one
            assembly {
                twos := add(div(sub(0, twos), twos), 1)
            }
            prod0 |= prod1 * twos;

            // Invert denominator mod 2**256
            // Now that denominator is an odd number, it has an inverse
            // modulo 2**256 such that denominator * inv = 1 mod 2**256.
            // Compute the inverse by starting with a seed that is correct
            // correct for four bits. That is, denominator * inv = 1 mod 2**4
            uint256 inv = (3 * denominator) ^ 2;
            // Now use Newton-Raphson iteration to improve the precision.
            // Thanks to Hensel's lifting lemma, this also works in modular
            // arithmetic, doubling the correct bits in each step.
            inv *= 2 - denominator * inv; // inverse mod 2**8
            inv *= 2 - denominator * inv; // inverse mod 2**16
            inv *= 2 - denominator * inv; // inverse mod 2**32
            inv *= 2 - denominator * inv; // inverse mod 2**64
            inv *= 2 - denominator * inv; // inverse mod 2**128
            inv *= 2 - denominator * inv; // inverse mod 2**256

            // Because the division is now exact we can divide by multiplying
            // with the modular inverse of denominator. This will give us the
            // correct result modulo 2**256. Since the precoditions guarantee
            // that the outcome is less than 2**256, this is the final result.
            // We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inv;
            return result;
        }
    }

    /// @notice Calculates ceil(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
    /// @param a The multiplicand
    /// @param b The multiplier
    /// @param denominator The divisor
    /// @return result The 256-bit result
    function mulDivRoundingUp(
        uint256 a,
        uint256 b,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            result = mulDiv(a, b, denominator);
            if (mulmod(a, b, denominator) > 0) {
                require(result < type(uint256).max);
                result++;
            }
        }
    }
}
// File: @uniswap/v3-periphery/contracts/libraries/OracleLibrary.sol


pragma solidity >=0.5.0 <0.9.0;




/// @title Oracle library
/// @notice Provides functions to integrate with V3 pool oracle
library OracleLibrary {
    /// @notice Calculates time-weighted means of tick and liquidity for a given Uniswap V3 pool
    /// @param pool Address of the pool that we want to observe
    /// @param secondsAgo Number of seconds in the past from which to calculate the time-weighted means
    /// @return arithmeticMeanTick The arithmetic mean tick from (block.timestamp - secondsAgo) to block.timestamp
    /// @return harmonicMeanLiquidity The harmonic mean liquidity from (block.timestamp - secondsAgo) to block.timestamp
    function consult(address pool, uint32 secondsAgo)
        internal
        view
        returns (int24 arithmeticMeanTick, uint128 harmonicMeanLiquidity)
    {
        require(secondsAgo != 0, 'BP');

        uint32[] memory secondsAgos = new uint32[](2);
        secondsAgos[0] = secondsAgo;
        secondsAgos[1] = 0;

        (int56[] memory tickCumulatives, uint160[] memory secondsPerLiquidityCumulativeX128s) = IUniswapV3Pool(pool)
            .observe(secondsAgos);

        int56 tickCumulativesDelta = tickCumulatives[1] - tickCumulatives[0];
        uint160 secondsPerLiquidityCumulativesDelta = secondsPerLiquidityCumulativeX128s[1] -
            secondsPerLiquidityCumulativeX128s[0];

        arithmeticMeanTick = int24(tickCumulativesDelta / int56(uint56(secondsAgo)));
        // Always round to negative infinity
        if (tickCumulativesDelta < 0 && (tickCumulativesDelta % int56(uint56(secondsAgo)) != 0)) arithmeticMeanTick--;

        // We are multiplying here instead of shifting to ensure that harmonicMeanLiquidity doesn't overflow uint128
        uint192 secondsAgoX160 = uint192(secondsAgo) * type(uint160).max;
        harmonicMeanLiquidity = uint128(secondsAgoX160 / (uint192(secondsPerLiquidityCumulativesDelta) << 32));
    }

    /// @notice Given a tick and a token amount, calculates the amount of token received in exchange
    /// @param tick Tick value used to calculate the quote
    /// @param baseAmount Amount of token to be converted
    /// @param baseToken Address of an ERC20 token contract used as the baseAmount denomination
    /// @param quoteToken Address of an ERC20 token contract used as the quoteAmount denomination
    /// @return quoteAmount Amount of quoteToken received for baseAmount of baseToken
    function getQuoteAtTick(
        int24 tick,
        uint128 baseAmount,
        address baseToken,
        address quoteToken
    ) internal pure returns (uint256 quoteAmount) {
        uint160 sqrtRatioX96 = TickMath.getSqrtRatioAtTick(tick);

        // Calculate quoteAmount with better precision if it doesn't overflow when multiplied by itself
        if (sqrtRatioX96 <= type(uint128).max) {
            uint256 ratioX192 = uint256(sqrtRatioX96) * sqrtRatioX96;
            quoteAmount = baseToken < quoteToken
                ? FullMath.mulDiv(ratioX192, baseAmount, 1 << 192)
                : FullMath.mulDiv(1 << 192, baseAmount, ratioX192);
        } else {
            uint256 ratioX128 = FullMath.mulDiv(sqrtRatioX96, sqrtRatioX96, 1 << 64);
            quoteAmount = baseToken < quoteToken
                ? FullMath.mulDiv(ratioX128, baseAmount, 1 << 128)
                : FullMath.mulDiv(1 << 128, baseAmount, ratioX128);
        }
    }

    /// @notice Given a pool, it returns the number of seconds ago of the oldest stored observation
    /// @param pool Address of Uniswap V3 pool that we want to observe
    /// @return secondsAgo The number of seconds ago of the oldest observation stored for the pool
    function getOldestObservationSecondsAgo(address pool) internal view returns (uint32 secondsAgo) {
        (, , uint16 observationIndex, uint16 observationCardinality, , , ) = IUniswapV3Pool(pool).slot0();
        require(observationCardinality > 0, 'NI');

        (uint32 observationTimestamp, , , bool initialized) = IUniswapV3Pool(pool).observations(
            (observationIndex + 1) % observationCardinality
        );

        // The next index might not be initialized if the cardinality is in the process of increasing
        // In this case the oldest observation is always in index 0
        if (!initialized) {
            (observationTimestamp, , , ) = IUniswapV3Pool(pool).observations(0);
        }

        unchecked {
            secondsAgo = uint32(block.timestamp) - observationTimestamp;
        }
    }

    /// @notice Given a pool, it returns the tick value as of the start of the current block
    /// @param pool Address of Uniswap V3 pool
    /// @return The tick that the pool was in at the start of the current block
    function getBlockStartingTickAndLiquidity(address pool) internal view returns (int24, uint128) {
        (, int24 tick, uint16 observationIndex, uint16 observationCardinality, , , ) = IUniswapV3Pool(pool).slot0();

        // 2 observations are needed to reliably calculate the block starting tick
        require(observationCardinality > 1, 'NEO');

        // If the latest observation occurred in the past, then no tick-changing trades have happened in this block
        // therefore the tick in `slot0` is the same as at the beginning of the current block.
        // We don't need to check if this observation is initialized - it is guaranteed to be.
        (
            uint32 observationTimestamp,
            int56 tickCumulative,
            uint160 secondsPerLiquidityCumulativeX128,

        ) = IUniswapV3Pool(pool).observations(observationIndex);
        if (observationTimestamp != uint32(block.timestamp)) {
            return (tick, IUniswapV3Pool(pool).liquidity());
        }

        uint256 prevIndex = (uint256(observationIndex) + observationCardinality - 1) % observationCardinality;
        (
            uint32 prevObservationTimestamp,
            int56 prevTickCumulative,
            uint160 prevSecondsPerLiquidityCumulativeX128,
            bool prevInitialized
        ) = IUniswapV3Pool(pool).observations(prevIndex);

        require(prevInitialized, 'ONI');

        uint32 delta = observationTimestamp - prevObservationTimestamp;
        tick = int24((tickCumulative - int56(uint56(prevTickCumulative))) / int56(uint56(delta)));
        uint128 liquidity = uint128(
            (uint192(delta) * type(uint160).max) /
                (uint192(secondsPerLiquidityCumulativeX128 - prevSecondsPerLiquidityCumulativeX128) << 32)
        );
        return (tick, liquidity);
    }

    /// @notice Information for calculating a weighted arithmetic mean tick
    struct WeightedTickData {
        int24 tick;
        uint128 weight;
    }

    /// @notice Given an array of ticks and weights, calculates the weighted arithmetic mean tick
    /// @param weightedTickData An array of ticks and weights
    /// @return weightedArithmeticMeanTick The weighted arithmetic mean tick
    /// @dev Each entry of `weightedTickData` should represents ticks from pools with the same underlying pool tokens. If they do not,
    /// extreme care must be taken to ensure that ticks are comparable (including decimal differences).
    /// @dev Note that the weighted arithmetic mean tick corresponds to the weighted geometric mean price.
    function getWeightedArithmeticMeanTick(WeightedTickData[] memory weightedTickData)
        internal
        pure
        returns (int24 weightedArithmeticMeanTick)
    {
        // Accumulates the sum of products between each tick and its weight
        int256 numerator;

        // Accumulates the sum of the weights
        uint256 denominator;

        // Products fit in 152 bits, so it would take an array of length ~2**104 to overflow this logic
        for (uint256 i; i < weightedTickData.length; i++) {
            numerator += weightedTickData[i].tick * int256(uint256(weightedTickData[i].weight));
            denominator += weightedTickData[i].weight;
        }

        weightedArithmeticMeanTick = int24(numerator / int256(denominator));
        // Always round to negative infinity
        if (numerator < 0 && (numerator % int256(denominator) != 0)) weightedArithmeticMeanTick--;
    }

    /// @notice Returns the "synthetic" tick which represents the price of the first entry in `tokens` in terms of the last
    /// @dev Useful for calculating relative prices along routes.
    /// @dev There must be one tick for each pairwise set of tokens.
    /// @param tokens The token contract addresses
    /// @param ticks The ticks, representing the price of each token pair in `tokens`
    /// @return syntheticTick The synthetic tick, representing the relative price of the outermost tokens in `tokens`
    function getChainedPrice(address[] memory tokens, int24[] memory ticks)
        internal
        pure
        returns (int256 syntheticTick)
    {
        require(tokens.length - 1 == ticks.length, 'DL');
        for (uint256 i = 1; i <= ticks.length; i++) {
            // check the tokens for address sort order, then accumulate the
            // ticks into the running synthetic tick, ensuring that intermediate tokens "cancel out"
            tokens[i - 1] < tokens[i] ? syntheticTick += ticks[i - 1] : syntheticTick -= ticks[i - 1];
        }
    }
}
// File: @uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol


pragma solidity >=0.5.0;

/// @title Callback for IUniswapV3PoolActions#swap
/// @notice Any contract that calls IUniswapV3PoolActions#swap must implement this interface
interface IUniswapV3SwapCallback {
    /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.
    /// @dev In the implementation you must pay the pool tokens owed for the swap.
    /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.
    /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.
    /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by
    /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.
    /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by
    /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.
    /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call
    function uniswapV3SwapCallback(
        int256 amount0Delta,
        int256 amount1Delta,
        bytes calldata data
    ) external;
}

// File: @uniswap/v3-periphery/contracts/interfaces/ISwapRouter.sol


pragma solidity >=0.7.5;


/// @title Router token swapping functionality
/// @notice Functions for swapping tokens via Uniswap V3
interface ISwapRouter is IUniswapV3SwapCallback {
    struct ExactInputSingleParams {
        address tokenIn;
        address tokenOut;
        uint24 fee;
        address recipient;
        uint256 deadline;
        uint256 amountIn;
        uint256 amountOutMinimum;
        uint160 sqrtPriceLimitX96;
    }

    /// @notice Swaps `amountIn` of one token for as much as possible of another token
    /// @param params The parameters necessary for the swap, encoded as `ExactInputSingleParams` in calldata
    /// @return amountOut The amount of the received token
    function exactInputSingle(ExactInputSingleParams calldata params) external payable returns (uint256 amountOut);

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

    /// @notice Swaps `amountIn` of one token for as much as possible of another along the specified path
    /// @param params The parameters necessary for the multi-hop swap, encoded as `ExactInputParams` in calldata
    /// @return amountOut The amount of the received token
    function exactInput(ExactInputParams calldata params) external payable returns (uint256 amountOut);

    struct ExactOutputSingleParams {
        address tokenIn;
        address tokenOut;
        uint24 fee;
        address recipient;
        uint256 deadline;
        uint256 amountOut;
        uint256 amountInMaximum;
        uint160 sqrtPriceLimitX96;
    }

    /// @notice Swaps as little as possible of one token for `amountOut` of another token
    /// @param params The parameters necessary for the swap, encoded as `ExactOutputSingleParams` in calldata
    /// @return amountIn The amount of the input token
    function exactOutputSingle(ExactOutputSingleParams calldata params) external payable returns (uint256 amountIn);

    struct ExactOutputParams {
        bytes path;
        address recipient;
        uint256 deadline;
        uint256 amountOut;
        uint256 amountInMaximum;
    }

    /// @notice Swaps as little as possible of one token for `amountOut` of another along the specified path (reversed)
    /// @param params The parameters necessary for the multi-hop swap, encoded as `ExactOutputParams` in calldata
    /// @return amountIn The amount of the input token
    function exactOutput(ExactOutputParams calldata params) external payable returns (uint256 amountIn);
}
// File: @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol

pragma solidity >=0.6.2;

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

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

// File: @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol

pragma solidity >=0.6.2;


interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

// File: @openzeppelin/contracts/utils/Strings.sol


// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

// File: @uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol

pragma solidity >=0.5.0;

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

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

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

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

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}

// File: @openzeppelin/[email protected]/utils/Address.sol


// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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");

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

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal 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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: @openzeppelin/[email protected]/utils/math/SafeMath.sol


// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
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) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            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) {
        unchecked {
            // 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) {
        unchecked {
            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) {
        unchecked {
            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) {
        return a + b;
    }

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

    /**
     * @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.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        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) {
        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) {
        unchecked {
            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.
     *
     * 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) {
        unchecked {
            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) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

// File: @uniswap/v2-periphery/contracts/libraries/UniswapV2Library.sol

pragma solidity >=0.5.0;



library UniswapV2Library {
    using SafeMath for uint;

    // returns sorted token addresses, used to handle return values from pairs sorted in this order
    function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) {
        require(tokenA != tokenB, 'UniswapV2Library: IDENTICAL_ADDRESSES');
        (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        require(token0 != address(0), 'UniswapV2Library: ZERO_ADDRESS');
    }

    // calculates the CREATE2 address for a pair without making any external calls
    function pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) {
        (address token0, address token1) = sortTokens(tokenA, tokenB);
        pair = address(uint160(uint(keccak256(abi.encodePacked(
                hex"ff",
                factory,
                keccak256(abi.encodePacked(token0, token1)),
                hex"96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f" // init code hash
            )))));
    }

    // fetches and sorts the reserves for a pair
    function getReserves(address factory, address tokenA, address tokenB) internal view returns (uint reserveA, uint reserveB) {
        (address token0,) = sortTokens(tokenA, tokenB);
        (uint reserve0, uint reserve1,) = IUniswapV2Pair(pairFor(factory, tokenA, tokenB)).getReserves();
        (reserveA, reserveB) = tokenA == token0 ? (reserve0, reserve1) : (reserve1, reserve0);
    }

    // given some amount of an asset and pair reserves, returns an equivalent amount of the other asset
    function quote(uint amountA, uint reserveA, uint reserveB) internal pure returns (uint amountB) {
        require(amountA > 0, 'UniswapV2Library: INSUFFICIENT_AMOUNT');
        require(reserveA > 0 && reserveB > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
        amountB = amountA.mul(reserveB) / reserveA;
    }

    // given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) {
        require(amountIn > 0, 'UniswapV2Library: INSUFFICIENT_INPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
        uint amountInWithFee = amountIn.mul(997);
        uint numerator = amountInWithFee.mul(reserveOut);
        uint denominator = reserveIn.mul(1000).add(amountInWithFee);
        amountOut = numerator / denominator;
    }

    // given an output amount of an asset and pair reserves, returns a required input amount of the other asset
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) internal pure returns (uint amountIn) {
        require(amountOut > 0, 'UniswapV2Library: INSUFFICIENT_OUTPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
        uint numerator = reserveIn.mul(amountOut).mul(1000);
        uint denominator = reserveOut.sub(amountOut).mul(997);
        amountIn = (numerator / denominator).add(1);
    }

    // performs chained getAmountOut calculations on any number of pairs
    function getAmountsOut(address factory, uint amountIn, address[] memory path) internal view returns (uint[] memory amounts) {
        require(path.length >= 2, 'UniswapV2Library: INVALID_PATH');
        amounts = new uint[](path.length);
        amounts[0] = amountIn;
        for (uint i; i < path.length - 1; i++) {
            (uint reserveIn, uint reserveOut) = getReserves(factory, path[i], path[i + 1]);
            amounts[i + 1] = getAmountOut(amounts[i], reserveIn, reserveOut);
        }
    }

    // performs chained getAmountIn calculations on any number of pairs
    function getAmountsIn(address factory, uint amountOut, address[] memory path) internal view returns (uint[] memory amounts) {
        require(path.length >= 2, 'UniswapV2Library: INVALID_PATH');
        amounts = new uint[](path.length);
        amounts[amounts.length - 1] = amountOut;
        for (uint i = path.length - 1; i > 0; i--) {
            (uint reserveIn, uint reserveOut) = getReserves(factory, path[i - 1], path[i]);
            amounts[i - 1] = getAmountIn(amounts[i], reserveIn, reserveOut);
        }
    }
}
// File: @openzeppelin/[email protected]/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @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 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 Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: @openzeppelin/[email protected]/access/Ownable.sol


// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;


/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: @openzeppelin/[email protected]/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}

// File: @openzeppelin/[email protected]/token/ERC20/extensions/IERC20Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// File: @openzeppelin/[email protected]/token/ERC20/ERC20.sol


// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;




/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override 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 this function is
     * overridden;
     *
     * 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 override returns (uint8) {
        return 18;
    }

    /**
     * @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:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, 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}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, 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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        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) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + 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) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This 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:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, 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:
     *
     * - `account` 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 += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(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);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(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 Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

// File: @openzeppelin/[email protected]/token/ERC20/extensions/ERC20Burnable.sol


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.0;



/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        _spendAllowance(account, _msgSender(), amount);
        _burn(account, amount);
    }
}

// File: Copy_investment.sol


pragma solidity 0.8.4;














struct autoSwapInfo {
        address tokenAddress;
        address quoteToken;
        uint256 ratio;
    }

interface IWETH is IERC20 {
        function deposit() external payable;
        function withdraw(uint) external;
    }

interface IFeeHandler {
    function collectFees(uint256) external;
}

interface IFactory {
    function _feeHandlerAddress() external returns (address);
}

library InvestmentLibrary {
    event poolAddedTo(
        address from,
        uint256 ethAmount,
        uint256 poolTokensRecieved
    );

    event poolRemovedFrom(
        address from,
        uint256 poolTokensBurned,
        uint256 ethReceived
    );

    event tokensSwapped(
        address tokenIn,
        address tokenOut,
        uint256 tokenInAmount,
        uint256 tokenOutAmount
    );

    event feePaidToOwner(
        address from,
        address to,
        uint256 amount
    );

    struct exitSwapParams {
        uint256 minimumOut;
        uint256 fee;
    }

    struct autoSwapToken {
        address[] v2Path;
        bytes v3Path;
        address quoteToken;
        uint256 ratio;
    }

    struct crashProtectParams {
        address[] v2Path;
        bytes v3Path;
        uint256 amountIn;
        uint256 minimumOut;
    }

    struct heldToken {
        address tokenAddress;
        address quoteToken;
        bool isV3;
    }

    struct tokenHeldWithValueReturn {
        address token;
        string name;
        uint256 balance;
        uint256 usdValue;
        uint256 nativeValue;
    }

    address constant ethAddress = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
    address constant WETHAddress = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
    FeedRegistryInterface constant feedRegistry = FeedRegistryInterface(0x47Fb2585D2C56Fe188D0E6ec628a38b74fCeeeDf);

     function getQuoteAndConvertToWei(address baseToken, address quoteToken) public view returns (uint256) {
        (,int256 quote,,,) = feedRegistry.latestRoundData(baseToken, quoteToken);
        uint8 decimals = feedRegistry.decimals(baseToken, quoteToken);
        return (uint256(quote) * 10**(18 - uint256(decimals)));
    }

    function getContractTotalBalance(heldToken[] memory _tokensHeld) public view returns (uint256) {
        uint256 contractValue = IERC20(WETHAddress).balanceOf(address(this));
        if(_tokensHeld.length != 0){
            for (uint i = 0; i < _tokensHeld.length; i++){
                if(_tokensHeld[i].tokenAddress != WETHAddress){
                    uint256 tokenPriceInETH;
                    if(_tokensHeld[i].quoteToken == ethAddress){
                        tokenPriceInETH = getQuoteAndConvertToWei(_tokensHeld[i].tokenAddress, _tokensHeld[i].quoteToken);
                    } else {
                        uint256 tokenPriceInUSD = getQuoteAndConvertToWei(_tokensHeld[i].tokenAddress, _tokensHeld[i].quoteToken);
                        uint256 usdPriceInETH = getQuoteAndConvertToWei(ethAddress, address(840));
                        tokenPriceInETH = tokenPriceInUSD * 10**18 / usdPriceInETH;
                    }
                    contractValue += IERC20(_tokensHeld[i].tokenAddress).balanceOf(address(this)) * tokenPriceInETH / 10**IERC20Metadata(_tokensHeld[i].tokenAddress).decimals();
                }
            }
        }
        
        return contractValue;
    }

    function getPoolTokensToMint(uint256 messageValue, heldToken[] memory _tokensHeld, uint256 totalSupply) public view returns (uint256){
        if(totalSupply != 0) {   
            uint256 poolValue = getContractTotalBalance(_tokensHeld) - messageValue;   
            uint256 percentIncrease = messageValue * 10**18 / poolValue;
            percentIncrease += 10**18;

            uint256 newSupply = totalSupply * percentIncrease / 10**18;
            uint256 poolTokensToMint = newSupply - totalSupply;
            return poolTokensToMint;
        } else {
            return messageValue  * 100;
        }
    }

    function isTokenHeld(heldToken[] memory _tokensHeld, address _address) public pure returns (bool) {
    if(_tokensHeld.length == 0){
        return false;
    } else {
        for (uint i = 0; i < _tokensHeld.length; i++) {
                if (_tokensHeld[i].tokenAddress == _address) {
                    return true;
                }
            }
    }
    
    return false;
    }

    function checkIfTokenIsCompatible(address[] memory v2Path, bytes memory v3Path) public view returns (bool) {
        address token;
        if(v2Path.length != 0){
            token = v2Path[v2Path.length - 1];
        } else {
            if(v3Path.length == 96){
                (,,token) = abi.decode(v3Path, (address,uint24,address));
            } else if (v3Path.length == 160) {
                (,,,,token) = abi.decode(v3Path, (address,uint24,address,uint24,address));
            } else {
                revert();
            }
        }

        (bool ethSuccess,) = address(feedRegistry).staticcall(
            abi.encodeWithSignature("getFeed(address,address)", token, ethAddress)
        );

        (bool usdSuccess,) = address(feedRegistry).staticcall(
            abi.encodeWithSignature("getFeed(address,address)", token, address(840))
        );

        if(usdSuccess || ethSuccess){
            return true;
        } else {
            return false;
        }
    }

    function getOutToken(address[] memory v2Path, bytes memory v3Path) public view returns (address) {
        address tokenOut;
        if(v2Path.length != 0){
            tokenOut = v2Path[v2Path.length - 1];
        } else {
            uint256 bytesLength = v3Path.length;
            if(bytesLength == 96){
                (, , address decodedTokenOut) = abi.decode(v3Path, (address, uint24, address));
                tokenOut = decodedTokenOut;
            }
            if(bytesLength == 160){
                (, , , , address decodedTokenOut) = abi.decode(v3Path, (address, uint24, address, uint24, address));
                tokenOut = decodedTokenOut;
            }
        }
        return tokenOut;
    }

}



contract Investment is ERC20, ERC20Burnable, Ownable {
    using SafeMath for uint256;
    using Address for address;

    InvestmentLibrary.heldToken[] public _tokensHeld;
    string private _name;
    string private _symbol;
    string private _riskLevel;
    uint256 public immutable _poolFee;
    uint256 public _factoryFee = 20000000000000000;
    address public immutable _factoryAddress;
    address private _stableCoin = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48;
    ISwapRouter private immutable swapRouter;
    IUniswapV2Router02 private immutable uniswapV2Router;
    address constant WETHAddress = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
    uint256 public _totalHolders = 0;
    FeedRegistryInterface feedRegistry = FeedRegistryInterface(0x47Fb2585D2C56Fe188D0E6ec628a38b74fCeeeDf);

    InvestmentLibrary.autoSwapToken[] public _tokensToSwapIntoOnDeposit; 
    
    constructor(string memory name_, string memory symbol_, string memory risk_, uint256 poolFee_, address factoryAddress_) ERC20(name_, symbol_) {
        _name = name_;
        _symbol = symbol_;
        _riskLevel = risk_;
        _poolFee = poolFee_;
        _factoryAddress = factoryAddress_;

        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        uniswapV2Router = _uniswapV2Router;
        ISwapRouter _swapRouter = ISwapRouter(0xE592427A0AEce92De3Edee1F18E0157C05861564);
        swapRouter = _swapRouter;

    }

    function name() public view virtual override returns (string memory) {
        return _name;
    }

    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    function getAllTokensHeld() public view returns (InvestmentLibrary.heldToken[] memory) {
        return _tokensHeld;
    }

    function risk() public view virtual returns (string memory) {
        return _riskLevel;
    }

    function getContractTotalBalance() public view virtual returns (uint256){
        return InvestmentLibrary.getContractTotalBalance(_tokensHeld);
    }

    function getAutoSwapInfo() public view returns (autoSwapInfo[] memory){
        autoSwapInfo[] memory ASInfo = new autoSwapInfo[](_tokensToSwapIntoOnDeposit.length + 1);
        if(ASInfo.length == 1){
            ASInfo[0] = autoSwapInfo(WETHAddress, address(0), 1e18);
        } else {
            for (uint i = 0; i < _tokensToSwapIntoOnDeposit.length; i++){
                address tokenOut;
                if(_tokensToSwapIntoOnDeposit[i].v2Path.length != 0){
                    tokenOut = _tokensToSwapIntoOnDeposit[i].v2Path[_tokensToSwapIntoOnDeposit[i].v2Path.length - 1];
                } else {
                    uint256 bytesLength = _tokensToSwapIntoOnDeposit[i].v3Path.length;
                    if(bytesLength == 96){
                        (,,tokenOut) = abi.decode(_tokensToSwapIntoOnDeposit[i].v3Path, (address, uint24, address));
                    } else if(bytesLength == 160){
                        (,,,, tokenOut) = abi.decode(_tokensToSwapIntoOnDeposit[i].v3Path, (address, uint24, address, uint24, address));
                    }
                }
                ASInfo[i] = autoSwapInfo(tokenOut, _tokensToSwapIntoOnDeposit[i].quoteToken,  _tokensToSwapIntoOnDeposit[i].ratio);
            }
        }
        return ASInfo;
        
    }

    function changeTokensToSwapIntoOnDeposit(InvestmentLibrary.autoSwapToken[] calldata tokensToSwapOnDeposit) public onlyOwner {
        uint256 ratioTotals = 0;
        if(_tokensToSwapIntoOnDeposit.length != 0){
            delete _tokensToSwapIntoOnDeposit;
        }

        if(tokensToSwapOnDeposit.length != 0){
            for (uint i = 0; i < tokensToSwapOnDeposit.length; i++){
                require(InvestmentLibrary.checkIfTokenIsCompatible(tokensToSwapOnDeposit[i].v2Path, tokensToSwapOnDeposit[i].v3Path), "Invalid autoswap token!");
                _tokensToSwapIntoOnDeposit.push(tokensToSwapOnDeposit[i]);
                ratioTotals +=  tokensToSwapOnDeposit[i].ratio;
            }
            require(ratioTotals <= 1 * 10**18, "Ratio cannot be more than 100%!");     
        }
    }

    function crashProtect(InvestmentLibrary.crashProtectParams[] memory tokensToSwap) public onlyOwner {
        require(tokensToSwap.length != 0);
        for (uint i = 0; i < tokensToSwap.length; i++){
            _swapTokens(tokensToSwap[i].v2Path, tokensToSwap[i].v3Path, tokensToSwap[i].amountIn, tokensToSwap[i].minimumOut, 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);
        }
    }

    function _removeAddressFromTokensHeld(address _address) internal {
        if(InvestmentLibrary.isTokenHeld(_tokensHeld, _address) == false){
            return;
        }
        for (uint i = 0; i < _tokensHeld.length; i++){
            if(_tokensHeld[i].tokenAddress == _address){
                _tokensHeld[i] = _tokensHeld[_tokensHeld.length-1];
                _tokensHeld.pop();
            }
        }   
    }

    function addToPool(uint256[] memory minimumAmountsOut) public payable {
        require(msg.value > 0);
        if(totalSupply() == 0){
            require(msg.value >= 10000000000000000 , "You must initiate the pool with at least 0.01 ETH!");
        }
        uint256 factoryFeeAmount = msg.value * _factoryFee / 10**18;
        uint256 poolOwnerFeeAmount = msg.value * _poolFee / 10**18;
        uint256 amountIn = msg.value - factoryFeeAmount - poolOwnerFeeAmount;

        IWETH WETHContract = IWETH(WETHAddress);
        WETHContract.deposit{value: msg.value}();
        IERC20(WETHAddress).transfer(owner(), poolOwnerFeeAmount);
        processFee(WETHAddress, factoryFeeAmount, 0);

        uint256 poolTokensToMint = InvestmentLibrary.getPoolTokensToMint(
            amountIn,
            _tokensHeld,
            totalSupply()
        );

        if(_tokensToSwapIntoOnDeposit.length != 0){
            for (uint i = 0; i < _tokensToSwapIntoOnDeposit.length; i++){
                InvestmentLibrary.autoSwapToken memory autoSwapParams = _tokensToSwapIntoOnDeposit[i];
                _swapTokens(
                    autoSwapParams.v2Path,
                    autoSwapParams.v3Path,
                    amountIn * autoSwapParams.ratio / 10**18,
                    minimumAmountsOut[i],
                    autoSwapParams.quoteToken
                );
            }
        } 

        if(balanceOf(msg.sender) == 0){
            _totalHolders++;
        }  

        _mint(msg.sender, poolTokensToMint);
        
        if(InvestmentLibrary.isTokenHeld(_tokensHeld, WETHAddress) == false && IERC20(WETHAddress).balanceOf(address(this)) > 0){
            _tokensHeld.push(InvestmentLibrary.heldToken(WETHAddress, address(0), false));
        }

        emit InvestmentLibrary.feePaidToOwner(msg.sender, owner(), poolOwnerFeeAmount);
        emit InvestmentLibrary.poolAddedTo(msg.sender, msg.value, poolTokensToMint);
    }

    function removeFromPool(uint256 amountToRemove, InvestmentLibrary.exitSwapParams[] memory exitSwapParams) public {
        require(balanceOf(msg.sender) > 0, "You need to have pool tokens if you want to burn them!");
        require(amountToRemove > 0, "You can't remove 0 of your tokens!");
        require(amountToRemove <= balanceOf(msg.sender), "You can only remove 100% of your share!");
        require(exitSwapParams.length == _tokensHeld.length, "Not enough params!");

        _burn(msg.sender, amountToRemove);   

        if(balanceOf(msg.sender) == 0){
            _totalHolders--;
        }   
        uint256 userShare = amountToRemove * 10**18 / (totalSupply() + amountToRemove);
        uint256 wethPayout = IERC20(WETHAddress).balanceOf(address(this)) * userShare / 10**18;
        InvestmentLibrary.heldToken[] memory tokensHeldSnapshot =  _tokensHeld;
        for (uint i = 0; i < tokensHeldSnapshot.length; i++){          
            IERC20 tokenContract = IERC20(tokensHeldSnapshot[i].tokenAddress);
            if(tokensHeldSnapshot[i].tokenAddress != WETHAddress){
                if(exitSwapParams[i].fee == 0){
                    bytes memory emptyBytes;
                    address[] memory path = new address[](2);
                    path[0] = tokensHeldSnapshot[i].tokenAddress;
                    path[1] = WETHAddress;
                    uint256 wethRecieved = _swapTokens(
                        path,
                        emptyBytes,
                        tokenContract.balanceOf(address(this)) * userShare / 10**18,
                        exitSwapParams[i].minimumOut,
                        address(0)
                    );

                    wethPayout += wethRecieved;
                } else {
                    address[] memory path;
                    uint256 wethRecieved = _swapTokens(
                        path,
                        abi.encode(tokensHeldSnapshot[i].tokenAddress, exitSwapParams[i].fee, WETHAddress),
                        tokenContract.balanceOf(address(this)) * userShare / 10**18,
                        exitSwapParams[i].minimumOut,
                        address(0)
                    );

                    wethPayout += wethRecieved;
                }
            }
        }

        uint256 poolOwnerFeeAmount = wethPayout * _poolFee / 10**18;
        uint256 factoryFeeAmount = wethPayout * _factoryFee / 10**18;
        uint256 amountToPayToUser = wethPayout - factoryFeeAmount - poolOwnerFeeAmount;

        IWETH WETHContract = IWETH(WETHAddress);
        IERC20(WETHAddress).transfer(owner(), poolOwnerFeeAmount);
        processFee(WETHAddress, factoryFeeAmount, 0);

        WETHContract.withdraw(amountToPayToUser);
        msg.sender.call{value: amountToPayToUser}("");

        if(InvestmentLibrary.isTokenHeld(_tokensHeld, WETHAddress) == true && IERC20(WETHAddress).balanceOf(address(this)) == 0){
            _removeAddressFromTokensHeld(WETHAddress);
        }

        emit InvestmentLibrary.feePaidToOwner(msg.sender, owner(), poolOwnerFeeAmount);
        emit InvestmentLibrary.poolRemovedFrom(msg.sender, amountToRemove, amountToPayToUser);
    }

    receive() payable external {}

    function processFee(address tokenIn, uint256 amount, uint24 uniPoolfee) internal {
        uint256 feeAmount = amount;
        if(tokenIn != WETHAddress){
            if(uniPoolfee == 0){
                bytes memory emptyBytes;
                address[] memory path = new address[](2);
                path[0] = tokenIn;
                path[1] = WETHAddress;
                feeAmount = _swapTokens(path, emptyBytes, amount, 0, address(0));
            } else {
                address[] memory path;
                feeAmount = _swapTokens(path, abi.encode(tokenIn, uniPoolfee, WETHAddress), amount, 0, address(0));
            }
            
        }
        address feeHandlerAddress = IFactory(_factoryAddress)._feeHandlerAddress();
        IERC20(WETHAddress).approve(feeHandlerAddress, feeAmount);
        IFeeHandler(feeHandlerAddress).collectFees(feeAmount);
    }

    function swapTokens(address[] memory v2Path, bytes memory v3Path, uint256 amountIn, uint256 amountOutMinimum, address tokenOutQuoteToken) public onlyOwner {
        address outToken = InvestmentLibrary.getOutToken(v2Path, v3Path);
        if(outToken != WETHAddress){
            require(tokenOutQuoteToken == address(840) || tokenOutQuoteToken == 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE, "Invalid quote token!");
            require(InvestmentLibrary.checkIfTokenIsCompatible(v2Path, v3Path), "Token is not compatible!");
        }
        //when calculating amountOutMinimum on the frontend, account for the fee.
        uint256 feeAmount = amountIn * 7500000000000000 / 10**18;
        if(v2Path.length != 0){
            processFee(v2Path[0], feeAmount, 0);
        } else {
            (address inToken, uint24 fee) = abi.decode(v3Path, (address, uint24));
            processFee(inToken, feeAmount, fee);
        }
        
        _swapTokens(v2Path, v3Path, amountIn - feeAmount, amountOutMinimum, outToken == WETHAddress ? address(0) : tokenOutQuoteToken);
    }

    function _swapTokens(address[] memory v2Path, bytes memory v3Path, uint256 amountIn, uint256 amountOutMinimum, address quoteToken) internal returns (uint256) {
        _adjustTokensHeld(v2Path, v3Path, amountIn, quoteToken);
        if(v2Path.length != 0){
            uint256 balanceOfTokenBeforeSwap = IERC20(v2Path[v2Path.length - 1]).balanceOf(address(this));
            IERC20(v2Path[0]).approve(address(uniswapV2Router), amountIn);
            uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(
                amountIn,
                amountOutMinimum,
                v2Path,
                address(this),
                block.timestamp
            );
            return IERC20(v2Path[v2Path.length - 1]).balanceOf(address(this)) - balanceOfTokenBeforeSwap;
        } else {
            bytes memory formattedBytes;
            if(v3Path.length == 96){
                (address decodedTokenIn, uint24 swapFee, address decodedTokenOut) = abi.decode(v3Path, (address, uint24, address));
                formattedBytes = abi.encodePacked(decodedTokenIn, swapFee, decodedTokenOut);
                IERC20(decodedTokenIn).approve(address(swapRouter), amountIn);
            } else {
                (address decodedTokenIn, uint24 fee1, address middleToken, uint24 fee2, address decodedTokenOut) = abi.decode(v3Path, (address, uint24, address, uint24, address));
                formattedBytes = abi.encodePacked(decodedTokenIn, fee1, middleToken, fee2, decodedTokenOut);
                IERC20(decodedTokenIn).approve(address(swapRouter), amountIn);
            }

            ISwapRouter.ExactInputParams memory params = ISwapRouter.ExactInputParams(
                formattedBytes,
                address(this),
                block.timestamp,
                amountIn,
                amountOutMinimum
            );
            return swapRouter.exactInput(params);
        }
    }

    function _adjustTokensHeld(address[] memory v2Path, bytes memory v3Path, uint256 amountIn, address quoteToken) internal {
        address tokenIn;
        address tokenOut;
        uint24 fee;
        bool isV3;
        if(v2Path.length != 0){
            tokenIn = v2Path[0];
            tokenOut = v2Path[v2Path.length - 1];
            isV3 = false;
        } else {
            uint256 bytesLength = v3Path.length;
            if(bytesLength == 96){
                (address decodedTokenIn, uint24 swapFee, address decodedTokenOut) = abi.decode(v3Path, (address, uint24, address));
                tokenIn = decodedTokenIn;
                tokenOut = decodedTokenOut;
                fee = swapFee;
            }
            if(bytesLength == 160){
                (address decodedTokenIn, , , uint24 fee2, address decodedTokenOut) = abi.decode(v3Path, (address, uint24, address, uint24, address));
                tokenIn = decodedTokenIn;
                tokenOut = decodedTokenOut;
                fee = fee2;
            }
            isV3 = true;
        }

        if( IERC20(tokenIn).balanceOf(address(this)) - amountIn == 0){
            _removeAddressFromTokensHeld(tokenIn);
        }
        if(IERC20(tokenOut).balanceOf(address(this)) == 0 && InvestmentLibrary.isTokenHeld(_tokensHeld, tokenOut) == false){
            if(tokenOut == WETHAddress){
                _tokensHeld.push(InvestmentLibrary.heldToken(tokenOut, address(0), false));
            } else {
                _tokensHeld.push(InvestmentLibrary.heldToken(tokenOut, quoteToken, isV3));
            }   
            
        }

    }

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"risk_","type":"string"},{"internalType":"uint256","name":"poolFee_","type":"uint256"},{"internalType":"address","name":"factoryAddress_","type":"address"}],"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":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"},{"inputs":[],"name":"_factoryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_factoryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_poolFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_tokensHeld","outputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"address","name":"quoteToken","type":"address"},{"internalType":"bool","name":"isV3","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_tokensToSwapIntoOnDeposit","outputs":[{"internalType":"bytes","name":"v3Path","type":"bytes"},{"internalType":"address","name":"quoteToken","type":"address"},{"internalType":"uint256","name":"ratio","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalHolders","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"minimumAmountsOut","type":"uint256[]"}],"name":"addToPool","outputs":[],"stateMutability":"payable","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":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address[]","name":"v2Path","type":"address[]"},{"internalType":"bytes","name":"v3Path","type":"bytes"},{"internalType":"address","name":"quoteToken","type":"address"},{"internalType":"uint256","name":"ratio","type":"uint256"}],"internalType":"struct InvestmentLibrary.autoSwapToken[]","name":"tokensToSwapOnDeposit","type":"tuple[]"}],"name":"changeTokensToSwapIntoOnDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address[]","name":"v2Path","type":"address[]"},{"internalType":"bytes","name":"v3Path","type":"bytes"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"minimumOut","type":"uint256"}],"internalType":"struct InvestmentLibrary.crashProtectParams[]","name":"tokensToSwap","type":"tuple[]"}],"name":"crashProtect","outputs":[],"stateMutability":"nonpayable","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":"getAllTokensHeld","outputs":[{"components":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"address","name":"quoteToken","type":"address"},{"internalType":"bool","name":"isV3","type":"bool"}],"internalType":"struct InvestmentLibrary.heldToken[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAutoSwapInfo","outputs":[{"components":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"address","name":"quoteToken","type":"address"},{"internalType":"uint256","name":"ratio","type":"uint256"}],"internalType":"struct autoSwapInfo[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getContractTotalBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountToRemove","type":"uint256"},{"components":[{"internalType":"uint256","name":"minimumOut","type":"uint256"},{"internalType":"uint256","name":"fee","type":"uint256"}],"internalType":"struct InvestmentLibrary.exitSwapParams[]","name":"exitSwapParams","type":"tuple[]"}],"name":"removeFromPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"risk","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"v2Path","type":"address[]"},{"internalType":"bytes","name":"v3Path","type":"bytes"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMinimum","type":"uint256"},{"internalType":"address","name":"tokenOutQuoteToken","type":"address"}],"name":"swapTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","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"},{"stateMutability":"payable","type":"receive"}]

Deployed Bytecode

0x6080604052600436106101dc5760003560e01c80635388968411610102578063a2f774e011610095578063d7627baf11610064578063d7627baf1461058e578063dd62ed3e146105ae578063f2fde38b146105ce578063f302315d146105ee57600080fd5b8063a2f774e01461051b578063a457c2d71461052e578063a9059cbb1461054e578063be01a0a91461056e57600080fd5b80637d11bc9c116100d15780637d11bc9c1461048057806382aa4fc9146104b45780638da5cb5b146104d457806395d89b411461050657600080fd5b806353889684146103cd57806370a0823114610415578063715018a61461044b57806379cc67901461046057600080fd5b806329429ae81161017a57806342966c681161014957806342966c681461035457806344ef133c14610376578063455d16301461039657806349f2822e146103b857600080fd5b806329429ae8146102d4578063313ce56714610303578063395093511461031f578063426a0c881461033f57600080fd5b80630cf85aec116101b65780630cf85aec14610267578063139b4dff1461027d57806318160ddd1461029f57806323b872dd146102b457600080fd5b806306fdde03146101e8578063095ea7b3146102135780630c27a6ee1461024357600080fd5b366101e357005b600080fd5b3480156101f457600080fd5b506101fd610622565b60405161020a91906147bb565b60405180910390f35b34801561021f57600080fd5b5061023361022e366004614139565b6106b4565b604051901515815260200161020a565b34801561024f57600080fd5b50610259600c5481565b60405190815260200161020a565b34801561027357600080fd5b50610259600a5481565b34801561028957600080fd5b506102926106cc565b60405161020a91906146f6565b3480156102ab57600080fd5b50600254610259565b3480156102c057600080fd5b506102336102cf3660046140f9565b610759565b3480156102e057600080fd5b506102f46102ef366004614417565b61077d565b60405161020a9392919061478d565b34801561030f57600080fd5b506040516012815260200161020a565b34801561032b57600080fd5b5061023361033a366004614139565b610849565b34801561034b57600080fd5b506101fd61086b565b34801561036057600080fd5b5061037461036f366004614417565b61087a565b005b34801561038257600080fd5b506103746103913660046141de565b610887565b3480156103a257600080fd5b506103ab610b17565b60405161020a9190614691565b3480156103c457600080fd5b50610259610fec565b3480156103d957600080fd5b506103ed6103e8366004614417565b61107c565b604080516001600160a01b03948516815293909216602084015215159082015260600161020a565b34801561042157600080fd5b50610259610430366004613f9a565b6001600160a01b031660009081526020819052604090205490565b34801561045757600080fd5b506103746110c2565b34801561046c57600080fd5b5061037461047b366004614139565b6110d6565b34801561048c57600080fd5b506102597f00000000000000000000000000000000000000000000000000b1a2bc2ec5000081565b3480156104c057600080fd5b506103746104cf36600461424d565b6110ef565b3480156104e057600080fd5b506005546001600160a01b03165b6040516001600160a01b03909116815260200161020a565b34801561051257600080fd5b506101fd6111ee565b610374610529366004614365565b6111fd565b34801561053a57600080fd5b50610233610549366004614139565b611972565b34801561055a57600080fd5b50610233610569366004614139565b6119ed565b34801561057a57600080fd5b50610374610589366004614447565b6119fb565b34801561059a57600080fd5b506103746105a9366004614164565b6124e4565b3480156105ba57600080fd5b506102596105c93660046140c1565b6127bd565b3480156105da57600080fd5b506103746105e9366004613f9a565b6127e8565b3480156105fa57600080fd5b506104ee7f000000000000000000000000abcce571896f95560514bfb316064ffb7cc79e2c81565b60606007805461063190614c3a565b80601f016020809104026020016040519081016040528092919081815260200182805461065d90614c3a565b80156106aa5780601f1061067f576101008083540402835291602001916106aa565b820191906000526020600020905b81548152906001019060200180831161068d57829003601f168201915b5050505050905090565b6000336106c281858561285e565b5060019392505050565b60606006805480602002602001604051908101604052809291908181526020016000905b82821015610750576000848152602090819020604080516060810182526002860290920180546001600160a01b03908116845260019182015490811684860152600160a01b900460ff1615159183019190915290835290920191016106f0565b50505050905090565b600033610767858285612982565b6107728585856129fc565b506001949350505050565b600e818154811061078d57600080fd5b90600052602060002090600402016000915090508060010180546107b090614c3a565b80601f01602080910402602001604051908101604052809291908181526020018280546107dc90614c3a565b80156108295780601f106107fe57610100808354040283529160200191610829565b820191906000526020600020905b81548152906001019060200180831161080c57829003601f168201915b50505050600283015460039093015491926001600160a01b031691905083565b6000336106c281858561085c83836127bd565b6108669190614a0d565b61285e565b60606009805461063190614c3a565b6108843382612bca565b50565b61088f612d18565b600e54600090156108a6576108a6600e6000613dd2565b8115610b125760005b82811015610ab95773afef0738911cbd775f4cca8c4736a3ec0792985363af2e32678585848181106108f157634e487b7160e01b600052603260045260246000fd5b90506020028101906109039190614951565b61090d90806148bf565b87878681811061092d57634e487b7160e01b600052603260045260246000fd5b905060200281019061093f9190614951565b61094d90602081019061490d565b6040518563ffffffff1660e01b815260040161096c94939291906145b9565b60206040518083038186803b15801561098457600080fd5b505af4158015610998573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109bc91906143f7565b610a0d5760405162461bcd60e51b815260206004820152601760248201527f496e76616c6964206175746f7377617020746f6b656e2100000000000000000060448201526064015b60405180910390fd5b600e848483818110610a2f57634e487b7160e01b600052603260045260246000fd5b9050602002810190610a419190614951565b815460018101835560009283526020909220909160040201610a638282614cc9565b5050838382818110610a8557634e487b7160e01b600052603260045260246000fd5b9050602002810190610a979190614951565b610aa5906060013583614a0d565b915080610ab181614c6f565b9150506108af565b50670de0b6b3a7640000811115610b125760405162461bcd60e51b815260206004820152601f60248201527f526174696f2063616e6e6f74206265206d6f7265207468616e203130302521006044820152606401610a04565b505050565b600e54606090600090610b2b906001614a0d565b6001600160401b03811115610b5057634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610b9b57816020015b6040805160608101825260008082526020808301829052928201528252600019909201910181610b6e5790505b509050805160011415610c1d576040518060600160405280600080516020614d8e8339815191526001600160a01b0316815260200160006001600160a01b03168152602001670de0b6b3a764000081525081600081518110610c0d57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250919050565b60005b600e54811015610fe6576000600e8281548110610c4d57634e487b7160e01b600052603260045260246000fd5b600091825260209091206004909102015415610d0d57600e8281548110610c8457634e487b7160e01b600052603260045260246000fd5b90600052602060002090600402016000016001600e8481548110610cb857634e487b7160e01b600052603260045260246000fd5b6000918252602090912060049091020154610cd39190614a64565b81548110610cf157634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03169050610f10565b6000600e8381548110610d3057634e487b7160e01b600052603260045260246000fd5b90600052602060002090600402016001018054610d4c90614c3a565b9150506060811415610e3057600e8381548110610d7957634e487b7160e01b600052603260045260246000fd5b90600052602060002090600402016001018054610d9590614c3a565b80601f0160208091040260200160405190810160405280929190818152602001828054610dc190614c3a565b8015610e0e5780601f10610de357610100808354040283529160200191610e0e565b820191906000526020600020905b815481529060010190602001808311610df157829003601f168201915b5050505050806020019051810190610e26919061400d565b9350610f0e915050565b8060a01415610f0e57600e8381548110610e5a57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600402016001018054610e7690614c3a565b80601f0160208091040260200160405190810160405280929190818152602001828054610ea290614c3a565b8015610eef5780601f10610ec457610100808354040283529160200191610eef565b820191906000526020600020905b815481529060010190602001808311610ed257829003601f168201915b5050505050806020019051810190610f079190614055565b9550505050505b505b6040518060600160405280826001600160a01b03168152602001600e8481548110610f4b57634e487b7160e01b600052603260045260246000fd5b6000918252602091829020600260049092020101546001600160a01b03168252600e8054929091019185908110610f9257634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160030154815250838381518110610fc757634e487b7160e01b600052603260045260246000fd5b6020026020010181905250508080610fde90614c6f565b915050610c20565b50919050565b60405163353939ff60e11b815260009073afef0738911cbd775f4cca8c4736a3ec0792985390636a7273fe9061102790600690600401614750565b60206040518083038186803b15801561103f57600080fd5b505af4158015611053573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611077919061442f565b905090565b6006818154811061108c57600080fd5b6000918252602090912060029091020180546001909101546001600160a01b03918216925090811690600160a01b900460ff1683565b6110ca612d18565b6110d46000612d72565b565b6110e1823383612982565b6110eb8282612bca565b5050565b6110f7612d18565b805161110257600080fd5b60005b81518110156110eb576111db82828151811061113157634e487b7160e01b600052603260045260246000fd5b60200260200101516000015183838151811061115d57634e487b7160e01b600052603260045260246000fd5b60200260200101516020015184848151811061118957634e487b7160e01b600052603260045260246000fd5b6020026020010151604001518585815181106111b557634e487b7160e01b600052603260045260246000fd5b60200260200101516060015173eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee612dc4565b50806111e681614c6f565b915050611105565b60606008805461063190614c3a565b6000341161120a57600080fd5b60025461128357662386f26fc100003410156112835760405162461bcd60e51b815260206004820152603260248201527f596f75206d75737420696e6974696174652074686520706f6f6c2077697468206044820152716174206c6561737420302e3031204554482160701b6064820152608401610a04565b6000670de0b6b3a7640000600a543461129c9190614a45565b6112a69190614a25565b90506000670de0b6b3a76400006112dd7f00000000000000000000000000000000000000000000000000b1a2bc2ec5000034614a45565b6112e79190614a25565b90506000816112f68434614a64565b6113009190614a64565b90506000600080516020614d8e8339815191529050806001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561135057600080fd5b505af1158015611364573d6000803e3d6000fd5b5050505050600080516020614d8e8339815191526001600160a01b031663a9059cbb6113986005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101869052604401602060405180830381600087803b1580156113e057600080fd5b505af11580156113f4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061141891906143f7565b50611433600080516020614d8e8339815191528560006133d1565b600073afef0738911cbd775f4cca8c4736a3ec07929853638c3fcc7a84600661145b60025490565b6040518463ffffffff1660e01b815260040161147993929190614826565b60206040518083038186803b15801561149157600080fd5b505af41580156114a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114c9919061442f565b600e54909150156116ac5760005b600e548110156116aa576000600e828154811061150457634e487b7160e01b600052603260045260246000fd5b90600052602060002090600402016040518060800160405290816000820180548060200260200160405190810160405280929190818152602001828054801561157657602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611558575b5050505050815260200160018201805461158f90614c3a565b80601f01602080910402602001604051908101604052809291908181526020018280546115bb90614c3a565b80156116085780601f106115dd57610100808354040283529160200191611608565b820191906000526020600020905b8154815290600101906020018083116115eb57829003601f168201915b505050918352505060028201546001600160a01b0316602080830191909152600390920154604090910152815190820151606083015192935061169592670de0b6b3a764000090611659908a614a45565b6116639190614a25565b8b868151811061168357634e487b7160e01b600052603260045260246000fd5b60200260200101518560400151612dc4565b505080806116a290614c6f565b9150506114d7565b505b336000908152602081905260409020546116d657600c80549060006116d083614c6f565b91905055505b6116e033826136a9565b604051635246fd1160e11b815273afef0738911cbd775f4cca8c4736a3ec079298539063a48dfa229061172890600690600080516020614d8e83398151915290600401614763565b60206040518083038186803b15801561174057600080fd5b505af4158015611754573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177891906143f7565b15801561180157506040516370a0823160e01b8152306004820152600090600080516020614d8e833981519152906370a082319060240160206040518083038186803b1580156117c757600080fd5b505afa1580156117db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ff919061442f565b115b156118cc5760408051606081018252600080516020614d8e8339815191528152600060208201818152928201818152600680546001810182559252915160029091027ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f810180546001600160a01b039384166001600160a01b031990911617905592517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d40909301805492511515600160a01b026001600160a81b031990931693909116929092171790555b7fa0f25ea12258315a86d16b7542e438d5b0e81f707fafc13a672de6038b199484336119006005546001600160a01b031690565b604080516001600160a01b039384168152929091166020830152810186905260600160405180910390a1604080513381523460208201529081018290527f05091e2cac23a85361c3cf448b3d96af8ac4af2d8db768157635b895bd500c109060600160405180910390a1505050505050565b6000338161198082866127bd565b9050838110156119e05760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610a04565b610772828686840361285e565b6000336106c28185856129fc565b3360009081526020819052604081205411611a775760405162461bcd60e51b815260206004820152603660248201527f596f75206e65656420746f206861766520706f6f6c20746f6b656e7320696620604482015275796f752077616e7420746f206275726e207468656d2160501b6064820152608401610a04565b60008211611ad25760405162461bcd60e51b815260206004820152602260248201527f596f752063616e27742072656d6f76652030206f6620796f757220746f6b656e604482015261732160f01b6064820152608401610a04565b33600090815260208190526040902054821115611b415760405162461bcd60e51b815260206004820152602760248201527f596f752063616e206f6e6c792072656d6f76652031303025206f6620796f75726044820152662073686172652160c81b6064820152608401610a04565b600654815114611b885760405162461bcd60e51b81526020600482015260126024820152714e6f7420656e6f75676820706172616d732160701b6044820152606401610a04565b611b923383612bca565b33600090815260208190526040902054611bbc57600c8054906000611bb683614c23565b91905055505b600082611bc860025490565b611bd29190614a0d565b611be484670de0b6b3a7640000614a45565b611bee9190614a25565b6040516370a0823160e01b8152306004820152909150600090670de0b6b3a7640000908390600080516020614d8e833981519152906370a082319060240160206040518083038186803b158015611c4457600080fd5b505afa158015611c58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c7c919061442f565b611c869190614a45565b611c909190614a25565b905060006006805480602002602001604051908101604052809291908181526020016000905b82821015611d16576000848152602090819020604080516060810182526002860290920180546001600160a01b03908116845260019182015490811684860152600160a01b900460ff161515918301919091529083529092019101611cb6565b50505050905060005b8151811015612118576000828281518110611d4a57634e487b7160e01b600052603260045260246000fd5b6020026020010151600001519050600080516020614d8e8339815191526001600160a01b0316838381518110611d9057634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b03161461210557858281518110611dca57634e487b7160e01b600052603260045260246000fd5b60200260200101516020015160001415611f9a5760408051600280825260608083018452926000929190602083019080368337019050509050848481518110611e2357634e487b7160e01b600052603260045260246000fd5b60200260200101516000015181600081518110611e5057634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b031681525050600080516020614d8e83398151915281600181518110611ea057634e487b7160e01b600052603260045260246000fd5b6001600160a01b0392831660209182029290920101526040516370a0823160e01b8152306004820152600091611f849184918691670de0b6b3a7640000918d91908a16906370a082319060240160206040518083038186803b158015611f0557600080fd5b505afa158015611f19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f3d919061442f565b611f479190614a45565b611f519190614a25565b8c8981518110611f7157634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516000612dc4565b9050611f908188614a0d565b9650505050612105565b606060006120f482868681518110611fc257634e487b7160e01b600052603260045260246000fd5b6020026020010151600001518a8781518110611fee57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151810151604080516001600160a01b039094169284019290925290820152600080516020614d8e833981519152606082015260800160408051601f19818403018152908290526370a0823160e01b825230600483015290670de0b6b3a7640000908b906001600160a01b038916906370a082319060240160206040518083038186803b15801561208857600080fd5b505afa15801561209c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120c0919061442f565b6120ca9190614a45565b6120d49190614a25565b8b8881518110611f7157634e487b7160e01b600052603260045260246000fd5b90506121008187614a0d565b955050505b508061211081614c6f565b915050611d1f565b506000670de0b6b3a764000061214e7f00000000000000000000000000000000000000000000000000b1a2bc2ec5000085614a45565b6121589190614a25565b90506000670de0b6b3a7640000600a54856121739190614a45565b61217d9190614a25565b905060008261218c8387614a64565b6121969190614a64565b9050600080516020614d8e8339815191528063a9059cbb6121bf6005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101879052604401602060405180830381600087803b15801561220757600080fd5b505af115801561221b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061223f91906143f7565b5061225a600080516020614d8e8339815191528460006133d1565b604051632e1a7d4d60e01b8152600481018390526001600160a01b03821690632e1a7d4d90602401600060405180830381600087803b15801561229c57600080fd5b505af11580156122b0573d6000803e3d6000fd5b5050604051339250849150600081818185875af1925050503d80600081146122f4576040519150601f19603f3d011682016040523d82523d6000602084013e6122f9565b606091505b5050604051635246fd1160e11b815273afef0738911cbd775f4cca8c4736a3ec07929853915063a48dfa229061234490600690600080516020614d8e83398151915290600401614763565b60206040518083038186803b15801561235c57600080fd5b505af4158015612370573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061239491906143f7565b1515600114801561241e57506040516370a0823160e01b8152306004820152600080516020614d8e833981519152906370a082319060240160206040518083038186803b1580156123e457600080fd5b505afa1580156123f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061241c919061442f565b155b1561243a5761243a600080516020614d8e833981519152613788565b7fa0f25ea12258315a86d16b7542e438d5b0e81f707fafc13a672de6038b1994843361246e6005546001600160a01b031690565b604080516001600160a01b039384168152929091166020830152810186905260600160405180910390a160408051338152602081018b90529081018390527f4653e6affe7720aa65cb4626e64d6c89ffe8d8c75260adbbec83e4786c308e0f9060600160405180910390a1505050505050505050565b6124ec612d18565b60405163e568db9d60e01b815260009073afef0738911cbd775f4cca8c4736a3ec079298539063e568db9d906125289089908990600401614631565b60206040518083038186803b15801561254057600080fd5b505af4158015612554573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125789190613fbd565b90506001600160a01b038116600080516020614d8e833981519152146126e5576001600160a01b03821661034814806125cd575073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b038316145b6126105760405162461bcd60e51b8152602060048201526014602482015273496e76616c69642071756f746520746f6b656e2160601b6044820152606401610a04565b60405163af2e326760e01b815273afef0738911cbd775f4cca8c4736a3ec079298539063af2e3267906126499089908990600401614631565b60206040518083038186803b15801561266157600080fd5b505af4158015612675573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061269991906143f7565b6126e55760405162461bcd60e51b815260206004820152601860248201527f546f6b656e206973206e6f7420636f6d70617469626c652100000000000000006044820152606401610a04565b6000670de0b6b3a764000061270186661aa535d3d0c000614a45565b61270b9190614a25565b9050865160001461274f5761274a8760008151811061273a57634e487b7160e01b600052603260045260246000fd5b60200260200101518260006133d1565b612778565b600080878060200190518101906127669190613fd9565b915091506127758284836133d1565b50505b6127b387876127878489614a64565b876001600160a01b038716600080516020614d8e833981519152146127ac5787612dc4565b6000612dc4565b5050505050505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6127f0612d18565b6001600160a01b0381166128555760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a04565b61088481612d72565b6001600160a01b0383166128c05760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a04565b6001600160a01b0382166129215760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a04565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061298e84846127bd565b905060001981146129f657818110156129e95760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610a04565b6129f6848484840361285e565b50505050565b6001600160a01b038316612a605760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610a04565b6001600160a01b038216612ac25760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610a04565b6001600160a01b03831660009081526020819052604090205481811015612b3a5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610a04565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290612b71908490614a0d565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612bbd91815260200190565b60405180910390a36129f6565b6001600160a01b038216612c2a5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610a04565b6001600160a01b03821660009081526020819052604090205481811015612c9e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610a04565b6001600160a01b0383166000908152602081905260408120838303905560028054849290612ccd908490614a64565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6005546001600160a01b031633146110d45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a04565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000612dd2868686856139a2565b8551156130a65760008660018851612dea9190614a64565b81518110612e0857634e487b7160e01b600052603260045260246000fd5b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015612e5357600080fd5b505afa158015612e67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e8b919061442f565b905086600081518110612eae57634e487b7160e01b600052603260045260246000fd5b602090810291909101015160405163095ea7b360e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81166004830152602482018890529091169063095ea7b390604401602060405180830381600087803b158015612f2457600080fd5b505af1158015612f38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f5c91906143f7565b50604051635c11d79560e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d1690635c11d79590612fb190889088908c903090429060040161484f565b600060405180830381600087803b158015612fcb57600080fd5b505af1158015612fdf573d6000803e3d6000fd5b50505050808760018951612ff39190614a64565b8151811061301157634e487b7160e01b600052603260045260246000fd5b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561305c57600080fd5b505afa158015613070573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613094919061442f565b61309e9190614a64565b9150506133c8565b60608551606014156131cc576000806000888060200190518101906130cb919061400d565b6040516bffffffffffffffffffffffff19606085811b821660208401526001600160e81b031960e886901b16603484015283901b1660378201529295509093509150604b0160408051601f198184030181529082905263095ea7b360e01b82526001600160a01b037f000000000000000000000000e592427a0aece92de3edee1f18e0157c0586156481166004840152602483018b905290955084169063095ea7b390604401602060405180830381600087803b15801561318b57600080fd5b505af115801561319f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131c391906143f7565b50505050613300565b60008060008060008a8060200190518101906131e89190614055565b6040516bffffffffffffffffffffffff19606087811b821660208401526001600160e81b031960e888811b8216603486015287831b8416603786015286901b16604b84015283901b16604e8201529499509297509095509350915060620160408051601f198184030181529082905263095ea7b360e01b82526001600160a01b037f000000000000000000000000e592427a0aece92de3edee1f18e0157c0586156481166004840152602483018d905290975086169063095ea7b390604401602060405180830381600087803b1580156132c157600080fd5b505af11580156132d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132f991906143f7565b5050505050505b6040805160a08101825282815230602082015242818301526060810187905260808101869052905163c04b8d5960e01b81527f000000000000000000000000e592427a0aece92de3edee1f18e0157c058615646001600160a01b03169063c04b8d59906133719084906004016147ce565b602060405180830381600087803b15801561338b57600080fd5b505af115801561339f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133c3919061442f565b925050505b95945050505050565b816001600160a01b038416600080516020614d8e833981519152146135215762ffffff82166134c85760408051600280825260608083018452926000929190602083019080368337019050509050858160008151811061344157634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b031681525050600080516020614d8e8339815191528160018151811061349157634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250506134bf818387600080612dc4565b92505050613521565b604080516001600160a01b038616602082015262ffffff841681830152600080516020614d8e833981519152606080830191909152825180830382018152608090920190925261351d90829086600080612dc4565b9150505b60007f000000000000000000000000abcce571896f95560514bfb316064ffb7cc79e2c6001600160a01b031663fc51e3546040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561357e57600080fd5b505af1158015613592573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135b69190613fbd565b60405163095ea7b360e01b81526001600160a01b038216600482015260248101849052909150600080516020614d8e8339815191529063095ea7b390604401602060405180830381600087803b15801561360f57600080fd5b505af1158015613623573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061364791906143f7565b5060405163b17acdcd60e01b8152600481018390526001600160a01b0382169063b17acdcd90602401600060405180830381600087803b15801561368a57600080fd5b505af115801561369e573d6000803e3d6000fd5b505050505050505050565b6001600160a01b0382166136ff5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610a04565b80600260008282546137119190614a0d565b90915550506001600160a01b0382166000908152602081905260408120805483929061373e908490614a0d565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b604051635246fd1160e11b815273afef0738911cbd775f4cca8c4736a3ec079298539063a48dfa22906137c2906006908590600401614763565b60206040518083038186803b1580156137da57600080fd5b505af41580156137ee573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061381291906143f7565b6138195750565b60005b6006548110156110eb57816001600160a01b03166006828154811061385157634e487b7160e01b600052603260045260246000fd5b60009182526020909120600290910201546001600160a01b03161415613990576006805461388190600190614a64565b8154811061389f57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060020201600682815481106138ce57634e487b7160e01b600052603260045260246000fd5b60009182526020909120825460029092020180546001600160a01b039283166001600160a01b031991821617825560019384018054949092018054949093169084168117835590546001600160a81b031990931617600160a01b9283900460ff161515909202919091179055600680548061395957634e487b7160e01b600052603160045260246000fd5b60008281526020902060026000199092019182020180546001600160a01b031916815560010180546001600160a81b031916905590555b8061399a81614c6f565b91505061381c565b6000806000808751600014613a1c57876000815181106139d257634e487b7160e01b600052603260045260246000fd5b6020026020010151935087600189516139eb9190614a64565b81518110613a0957634e487b7160e01b600052603260045260246000fd5b6020026020010151925060009050613a83565b86516060811415613a4c5760008060008a806020019051810190613a40919061400d565b91995090975095505050505b8060a01415613a7d5760008060008a806020019051810190613a6e9190614055565b939b5092995091975050505050505b60019150505b6040516370a0823160e01b815230600482015286906001600160a01b038616906370a082319060240160206040518083038186803b158015613ac457600080fd5b505afa158015613ad8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613afc919061442f565b613b069190614a64565b613b1357613b1384613788565b6040516370a0823160e01b81523060048201526001600160a01b038416906370a082319060240160206040518083038186803b158015613b5257600080fd5b505afa158015613b66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b8a919061442f565b158015613c1e5750604051635246fd1160e11b815273afef0738911cbd775f4cca8c4736a3ec079298539063a48dfa2290613bcc906006908790600401614763565b60206040518083038186803b158015613be457600080fd5b505af4158015613bf8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c1c91906143f7565b155b156127b3576001600160a01b038316600080516020614d8e8339815191521415613d0457604080516060810182526001600160a01b038086168252600060208301818152938301818152600680546001810182559252925160029091027ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f810180549284166001600160a01b03199093169290921790915592517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d40909301805492511515600160a01b026001600160a81b031990931693909116929092171790556127b3565b604080516060810182526001600160a01b039485168152958416602087019081529115159086019081526006805460018101825560009190915295517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f600290970296870180546001600160a01b03191691861691909117905590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4090950180549151959093166001600160a81b031990911617600160a01b941515949094029390931790555050505050565b508054600082556004029060005260206000209081019061088491905b80821115613e33576000613e038282613e37565b613e11600183016000613e55565b506002810180546001600160a01b031916905560006003820155600401613def565b5090565b50805460008255906000526020600020908101906108849190613e8b565b508054613e6190614c3a565b6000825580601f10613e71575050565b601f01602090049060005260206000209081019061088491905b5b80821115613e335760008155600101613e8c565b600082601f830112613eb0578081fd5b81356020613ec5613ec0836149ea565b6149ba565b80838252828201915082860187848660051b8901011115613ee4578586fd5b855b85811015613f0b578135613ef981614d78565b84529284019290840190600101613ee6565b5090979650505050505050565b600082601f830112613f28578081fd5b81356001600160401b03811115613f4157613f41614ca0565b613f54601f8201601f19166020016149ba565b818152846020838601011115613f68578283fd5b816020850160208301379081016020019190915292915050565b805162ffffff81168114613f9557600080fd5b919050565b600060208284031215613fab578081fd5b8135613fb681614d78565b9392505050565b600060208284031215613fce578081fd5b8151613fb681614d78565b60008060408385031215613feb578081fd5b8251613ff681614d78565b915061400460208401613f82565b90509250929050565b600080600060608486031215614021578081fd5b835161402c81614d78565b925061403a60208501613f82565b9150604084015161404a81614d78565b809150509250925092565b600080600080600060a0868803121561406c578283fd5b855161407781614d78565b945061408560208701613f82565b9350604086015161409581614d78565b92506140a360608701613f82565b915060808601516140b381614d78565b809150509295509295909350565b600080604083850312156140d3578182fd5b82356140de81614d78565b915060208301356140ee81614d78565b809150509250929050565b60008060006060848603121561410d578081fd5b833561411881614d78565b9250602084013561412881614d78565b929592945050506040919091013590565b6000806040838503121561414b578182fd5b823561415681614d78565b946020939093013593505050565b600080600080600060a0868803121561417b578283fd5b85356001600160401b0380821115614191578485fd5b61419d89838a01613ea0565b965060208801359150808211156141b2578485fd5b506141bf88828901613f18565b945050604086013592506060860135915060808601356140b381614d78565b600080602083850312156141f0578182fd5b82356001600160401b0380821115614206578384fd5b818501915085601f830112614219578384fd5b813581811115614227578485fd5b8660208260051b850101111561423b578485fd5b60209290920196919550909350505050565b6000602080838503121561425f578182fd5b82356001600160401b0380821115614275578384fd5b818501915085601f830112614288578384fd5b8135614296613ec0826149ea565b80828252858201915085850189878560051b88010111156142b5578788fd5b875b84811015614356578135868111156142cd57898afd5b87016080818d03601f19018113156142e3578a8bfd5b6142eb614970565b8a830135898111156142fb578c8dfd5b6143098f8d83870101613ea0565b82525060408301358981111561431d578c8dfd5b61432b8f8d83870101613f18565b828d0152506060838101356040830152919092013590820152845292870192908701906001016142b7565b50909998505050505050505050565b60006020808385031215614377578182fd5b82356001600160401b0381111561438c578283fd5b8301601f8101851361439c578283fd5b80356143aa613ec0826149ea565b80828252848201915084840188868560051b87010111156143c9578687fd5b8694505b838510156143eb5780358352600194909401939185019185016143cd565b50979650505050505050565b600060208284031215614408578081fd5b81518015158114613fb6578182fd5b600060208284031215614428578081fd5b5035919050565b600060208284031215614440578081fd5b5051919050565b600080604080848603121561445a578283fd5b833592506020808501356001600160401b03811115614477578384fd5b8501601f81018713614487578384fd5b8035614495613ec0826149ea565b8082825284820191508484018a868560061b87010111156144b4578788fd5b8794505b838510156144f65786818c0312156144ce578788fd5b6144d6614998565b8135815286820135878201528352600194909401939185019186016144b8565b508096505050505050509250929050565b6000815480845260208085019450838352808320835b838110156145635781546001600160a01b039081168852600183810154918216858a015260a09190911c60ff16151560408901526060909701966002909201910161451d565b509495945050505050565b60008151808452815b8181101561459357602081850181015186830182015201614577565b818111156145a45782602083870101525b50601f01601f19169290920160200192915050565b6040808252810184905260008560608301825b878110156145fc5782356145df81614d78565b6001600160a01b03168252602092830192909101906001016145cc565b5083810360208501528481528486602083013782602086830101526020601f19601f8701168201019250505095945050505050565b604080825283519082018190526000906020906060840190828701845b828110156146735781516001600160a01b03168452928401929084019060010161464e565b50505083810382850152614687818661456e565b9695505050505050565b602080825282518282018190526000919060409081850190868401855b828110156146e957815180516001600160a01b03908116865287820151168786015285015185850152606090930192908501906001016146ae565b5091979650505050505050565b602080825282518282018190526000919060409081850190868401855b828110156146e957815180516001600160a01b03908116865287820151168786015285015115158585015260609093019290850190600101614713565b602081526000613fb66020830184614507565b6040815260006147766040830185614507565b905060018060a01b03831660208301529392505050565b6060815260006147a0606083018661456e565b6001600160a01b039490941660208301525060400152919050565b602081526000613fb6602083018461456e565b602081526000825160a060208401526147ea60c084018261456e565b905060018060a01b0360208501511660408401526040840151606084015260608401516080840152608084015160a08401528091505092915050565b83815260606020820152600061483f6060830185614507565b9050826040830152949350505050565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b8181101561489e5784516001600160a01b031683529383019391830191600101614879565b50506001600160a01b03969096166060850152505050608001529392505050565b6000808335601e198436030181126148d5578283fd5b8301803591506001600160401b038211156148ee578283fd5b6020019150600581901b360382131561490657600080fd5b9250929050565b6000808335601e19843603018112614923578283fd5b8301803591506001600160401b0382111561493c578283fd5b60200191503681900382131561490657600080fd5b60008235607e19833603018112614966578182fd5b9190910192915050565b604051608081016001600160401b038111828210171561499257614992614ca0565b60405290565b604080519081016001600160401b038111828210171561499257614992614ca0565b604051601f8201601f191681016001600160401b03811182821017156149e2576149e2614ca0565b604052919050565b60006001600160401b03821115614a0357614a03614ca0565b5060051b60200190565b60008219821115614a2057614a20614c8a565b500190565b600082614a4057634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615614a5f57614a5f614c8a565b500290565b600082821015614a7657614a76614c8a565b500390565b5b818110156110eb5760008155600101614a7c565b68010000000000000000831115614aa957614aa9614ca0565b805483825580841015614acf57816000526020600020614acd828201868301614a7b565b505b50818160005260208060002060005b86811015614b1c578335614af181614d78565b82546001600160a01b0319166001600160a01b03919091161782559282019260019182019101614ade565b50505050505050565b6001600160401b03831115614b3c57614b3c614ca0565b614b468154614c3a565b600080601f8611601f841181811715614b655760008681526020902092505b8015614b9457601f880160051c83016020891015614b805750825b614b92601f870160051c850182614a7b565b505b508060018114614bc857600094508715614baf578387013594505b600188901b60001960038a901b1c1986161786556127b3565b601f198816945082845b86811015614bf25788860135825560209586019560019092019101614bd2565b5088861015614c0f5760001960f88a60031b161c19858901351681555b5060018860011b0186555050505050505050565b600081614c3257614c32614c8a565b506000190190565b600181811c90821680614c4e57607f821691505b60208210811415610fe657634e487b7160e01b600052602260045260246000fd5b6000600019821415614c8357614c83614c8a565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60008135614cc381614d78565b92915050565b8135601e19833603018112614cdd57600080fd5b820180356001600160401b03811115614cf557600080fd5b6020820191508060051b3603821315614d0d57600080fd5b614d18818385614a90565b5050614d27602083018361490d565b614d35818360018601614b25565b5050614d6a614d4660408401614cb6565b6002830180546001600160a01b0319166001600160a01b0392909216919091179055565b606082013560038201555050565b6001600160a01b038116811461088457600080fdfe000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2a264697066735822122023c1c778351a12cd5d0acbc409970b5a437c7bf4f2886b8b1ae95e0d9d9ee14f64736f6c63430008040033

Libraries Used

InvestmentLibrary : 0xafef0738911cbd775f4cca8c4736a3ec07929853Unverified

Deployed Bytecode Sourcemap

120284:16062:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;121790:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;104333:201;;;;;;;;;;-1:-1:-1;104333:201:0;;;;;:::i;:::-;;:::i;:::-;;;20654:14:1;;20647:22;20629:41;;20617:2;20602:18;104333:201:0;20584:92:1;120959:32:0;;;;;;;;;;;;;;;;;;;30234:25:1;;;30222:2;30207:18;120959:32:0;30189:76:1;120594:46:0;;;;;;;;;;;;;;;;122111:124;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;103102:108::-;;;;;;;;;;-1:-1:-1;103190:12:0;;103102:108;;105114:295;;;;;;;;;;-1:-1:-1;105114:295:0;;;;;:::i;:::-;;:::i;121109:67::-;;;;;;;;;;-1:-1:-1;121109:67:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;122010:93::-;;;;;;;;;;-1:-1:-1;122010:93:0;;122093:2;31873:36:1;;31861:2;31846:18;122010:93:0;31828:87:1;105818:238:0;;;;;;;;;;-1:-1:-1;105818:238:0;;;;;:::i;:::-;;:::i;122243:96::-;;;;;;;;;;;;;:::i;113357:91::-;;;;;;;;;;-1:-1:-1;113357:91:0;;;;;:::i;:::-;;:::i;:::-;;123814:817;;;;;;;;;;-1:-1:-1;123814:817:0;;;;;:::i;:::-;;:::i;122507:1299::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;122347:152::-;;;;;;;;;;;;;:::i;120411:48::-;;;;;;;;;;-1:-1:-1;120411:48:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;14119:15:1;;;14101:34;;14171:15;;;;14166:2;14151:18;;14144:43;14230:14;14223:22;14203:18;;;14196:50;14051:2;14036:18;120411:48:0;14018:234:1;103273:127:0;;;;;;;;;;-1:-1:-1;103273:127:0;;;;;:::i;:::-;-1:-1:-1;;;;;103374:18:0;103347:7;103374:18;;;;;;;;;;;;103273:127;95387:103;;;;;;;;;;;;;:::i;113767:164::-;;;;;;;;;;-1:-1:-1;113767:164:0;;;;;:::i;:::-;;:::i;120554:33::-;;;;;;;;;;;;;;;124639:391;;;;;;;;;;-1:-1:-1;124639:391:0;;;;;:::i;:::-;;:::i;94739:87::-;;;;;;;;;;-1:-1:-1;94812:6:0;;-1:-1:-1;;;;;94812:6:0;94739:87;;;-1:-1:-1;;;;;13823:32:1;;;13805:51;;13793:2;13778:18;94739:87:0;13760:102:1;121898:104:0;;;;;;;;;;;;;:::i;125475:1980::-;;;;;;:::i;:::-;;:::i;106559:436::-;;;;;;;;;;-1:-1:-1;106559:436:0;;;;;:::i;:::-;;:::i;103606:193::-;;;;;;;;;;-1:-1:-1;103606:193:0;;;;;:::i;:::-;;:::i;127463:3224::-;;;;;;;;;;-1:-1:-1;127463:3224:0;;;;;:::i;:::-;;:::i;131633:1090::-;;;;;;;;;;-1:-1:-1;131633:1090:0;;;;;:::i;:::-;;:::i;103862:151::-;;;;;;;;;;-1:-1:-1;103862:151:0;;;;;:::i;:::-;;:::i;95645:201::-;;;;;;;;;;-1:-1:-1;95645:201:0;;;;;:::i;:::-;;:::i;120647:40::-;;;;;;;;;;;;;;;121790:100;121844:13;121877:5;121870:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;121790:100;:::o;104333:201::-;104416:4;93364:10;104472:32;93364:10;104488:7;104497:6;104472:8;:32::i;:::-;-1:-1:-1;104522:4:0;;104333:201;-1:-1:-1;;;104333:201:0:o;122111:124::-;122160:36;122216:11;122209:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;122209:18:0;;;;;;;;;;;;;;;;;-1:-1:-1;;;122209:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;122111:124;:::o;105114:295::-;105245:4;93364:10;105303:38;105319:4;93364:10;105334:6;105303:15;:38::i;:::-;105352:27;105362:4;105368:2;105372:6;105352:9;:27::i;:::-;-1:-1:-1;105397:4:0;;105114:295;-1:-1:-1;;;;105114:295:0:o;121109:67::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;121109:67:0;;;;;;;;;;;-1:-1:-1;;;;;121109:67:0;;;-1:-1:-1;121109:67:0;:::o;105818:238::-;105906:4;93364:10;105962:64;93364:10;105978:7;106015:10;105987:25;93364:10;105978:7;105987:9;:25::i;:::-;:38;;;;:::i;:::-;105962:8;:64::i;122243:96::-;122288:13;122321:10;122314:17;;;;;:::i;113357:91::-;113413:27;93364:10;113433:6;113413:5;:27::i;:::-;113357:91;:::o;123814:817::-;94625:13;:11;:13::i;:::-;123986:26:::1;:33:::0;123949:19:::1;::::0;123986:38;123983:102:::1;;124040:33;124047:26;;124040:33;:::i;:::-;124100::::0;;124097:527:::1;;124154:6;124149:375;124166:32:::0;;::::1;124149:375;;;124231:17;:42;124274:21;;124296:1;124274:24;;;;;-1:-1:-1::0;;;124274:24:0::1;;;;;;;;;;;;;;;;;;;;:::i;:::-;:31;::::0;;::::1;:::i;:::-;124307:21;;124329:1;124307:24;;;;;-1:-1:-1::0;;;124307:24:0::1;;;;;;;;;;;;;;;;;;;;:::i;:::-;:31;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;124231:108;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;124223:144;;;::::0;-1:-1:-1;;;124223:144:0;;25037:2:1;124223:144:0::1;::::0;::::1;25019:21:1::0;25076:2;25056:18;;;25049:30;25115:25;25095:18;;;25088:53;25158:18;;124223:144:0::1;;;;;;;;;124386:26;124418:21;;124440:1;124418:24;;;;;-1:-1:-1::0;;;124418:24:0::1;;;;;;;;;;;;;;;;;;;;:::i;:::-;124386:57:::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;124386:57:0;;;::::1;::::0;;;;;::::1;;;;::::0;;::::1;:::i;:::-;;;124478:21;;124500:1;124478:24;;;;;-1:-1:-1::0;;;124478:24:0::1;;;;;;;;;;;;;;;;;;;;:::i;:::-;124462:46;::::0;124478:30:::1;;;124462:46:::0;::::1;:::i;:::-;::::0;-1:-1:-1;124200:3:0;::::1;::::0;::::1;:::i;:::-;;;;124149:375;;;;124561:10;124546:11;:25;;124538:69;;;::::0;-1:-1:-1;;;124538:69:0;;25389:2:1;124538:69:0::1;::::0;::::1;25371:21:1::0;25428:2;25408:18;;;25401:30;25467:33;25447:18;;;25440:61;25518:18;;124538:69:0::1;25361:181:1::0;124538:69:0::1;94649:1;123814:817:::0;;:::o;122507:1299::-;122638:26;:33;122555:21;;122588:28;;122638:37;;122674:1;122638:37;:::i;:::-;-1:-1:-1;;;;;122619:57:0;;;;;-1:-1:-1;;;122619:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;122619:57:0;;-1:-1:-1;;122619:57:0;;;;;;;;;;;;122588:88;;122690:6;:13;122707:1;122690:18;122687:1078;;;122736:43;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;122736:43:0;;;;;122770:1;-1:-1:-1;;;;;122736:43:0;;;;;122774:4;122736:43;;;122724:6;122731:1;122724:9;;;;;;-1:-1:-1;;;122724:9:0;;;;;;;;;;;;;;:55;;;;123782:6;122507:1299;-1:-1:-1;122507:1299:0:o;122687:1078::-;122817:6;122812:942;122833:26;:33;122829:37;;122812:942;;;122891:16;122929:26;122956:1;122929:29;;;;;;-1:-1:-1;;;122929:29:0;;;;;;;;;;;;;;;;;;;;;;:43;:48;122926:680;;123012:26;123039:1;123012:29;;;;;;-1:-1:-1;;;123012:29:0;;;;;;;;;;;;;;;;;;;:36;;123095:1;123049:26;123076:1;123049:29;;;;;;-1:-1:-1;;;123049:29:0;;;;;;;;;;;;;;;;;;;;;;:43;:47;;;;:::i;:::-;123012:85;;;;;;-1:-1:-1;;;123012:85:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;123012:85:0;;-1:-1:-1;122926:680:0;;;123146:19;123168:26;123195:1;123168:29;;;;;;-1:-1:-1;;;123168:29:0;;;;;;;;;;;;;;;;;;;:36;;:43;;;;;:::i;:::-;;-1:-1:-1;;123252:2:0;123237:17;;123234:353;;;123308:26;123335:1;123308:29;;;;;;-1:-1:-1;;;123308:29:0;;;;;;;;;;;;;;;;;;;:36;;123297:76;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;123282:91;-1:-1:-1;123234:353:0;;-1:-1:-1;;123234:353:0;;123406:11;123421:3;123406:18;123403:184;;;123481:26;123508:1;123481:29;;;;;;-1:-1:-1;;;123481:29:0;;;;;;;;;;;;;;;;;;;:36;;123470:93;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;123452:111;-1:-1:-1;;;;;123403:184:0;122926:680;;123636:102;;;;;;;;123649:8;-1:-1:-1;;;;;123636:102:0;;;;;123659:26;123686:1;123659:29;;;;;;-1:-1:-1;;;123659:29:0;;;;;;;;;;;;;;;;;;:40;:29;;;;;:40;;-1:-1:-1;;;;;123659:40:0;123636:102;;123702:26;:29;;123636:102;;;;;123729:1;;123702:29;;;;-1:-1:-1;;;123702:29:0;;;;;;;;;;;;;;;;;;;:35;;;123636:102;;;123624:6;123631:1;123624:9;;;;;;-1:-1:-1;;;123624:9:0;;;;;;;;;;;;;;:114;;;;122812:942;122868:3;;;;;:::i;:::-;;;;122812:942;;;;123782:6;122507:1299;-1:-1:-1;122507:1299:0:o;122347:152::-;122437:54;;-1:-1:-1;;;122437:54:0;;122411:7;;122437:17;;:41;;:54;;122479:11;;122437:54;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;122430:61;;122347:152;:::o;120411:48::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;120411:48:0;;;;-1:-1:-1;120411:48:0;;;;-1:-1:-1;;;120411:48:0;;;;;:::o;95387:103::-;94625:13;:11;:13::i;:::-;95452:30:::1;95479:1;95452:18;:30::i;:::-;95387:103::o:0;113767:164::-;113844:46;113860:7;93364:10;113883:6;113844:15;:46::i;:::-;113901:22;113907:7;113916:6;113901:5;:22::i;:::-;113767:164;;:::o;124639:391::-;94625:13;:11;:13::i;:::-;124757:19;;124749:33:::1;;;::::0;::::1;;124798:6;124793:230;124814:12;:19;124810:1;:23;124793:230;;;124854:157;124866:12;124879:1;124866:15;;;;;;-1:-1:-1::0;;;124866:15:0::1;;;;;;;;;;;;;;;:22;;;124890:12;124903:1;124890:15;;;;;;-1:-1:-1::0;;;124890:15:0::1;;;;;;;;;;;;;;;:22;;;124914:12;124927:1;124914:15;;;;;;-1:-1:-1::0;;;124914:15:0::1;;;;;;;;;;;;;;;:24;;;124940:12;124953:1;124940:15;;;;;;-1:-1:-1::0;;;124940:15:0::1;;;;;;;;;;;;;;;:26;;;124968:42;124854:11;:157::i;:::-;-1:-1:-1::0;124835:3:0;::::1;::::0;::::1;:::i;:::-;;;;124793:230;;121898:104:::0;121954:13;121987:7;121980:14;;;;;:::i;125475:1980::-;125576:1;125564:9;:13;125556:22;;;;;;103190:12;;125589:143;;125647:17;125634:9;:30;;125626:94;;;;-1:-1:-1;;;125626:94:0;;27672:2:1;125626:94:0;;;27654:21:1;27711:2;27691:18;;;27684:30;27750:34;27730:18;;;27723:62;-1:-1:-1;;;27801:18:1;;;27794:48;27859:19;;125626:94:0;27644:240:1;125626:94:0;125742:24;125795:6;125781:11;;125769:9;:23;;;;:::i;:::-;:32;;;;:::i;:::-;125742:59;-1:-1:-1;125812:26:0;125864:6;125841:20;125853:8;125841:9;:20;:::i;:::-;:29;;;;:::i;:::-;125812:58;-1:-1:-1;125881:16:0;125812:58;125900:28;125912:16;125900:9;:28;:::i;:::-;:49;;;;:::i;:::-;125881:68;;125962:18;-1:-1:-1;;;;;;;;;;;125962:39:0;;126012:12;-1:-1:-1;;;;;126012:20:0;;126040:9;126012:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;126063:28:0;;126092:7;94812:6;;-1:-1:-1;;;;;94812:6:0;;94739:87;126092:7;126063:57;;-1:-1:-1;;;;;;126063:57:0;;;;;;;-1:-1:-1;;;;;15222:32:1;;;126063:57:0;;;15204:51:1;15271:18;;;15264:34;;;15177:18;;126063:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;126131:44;-1:-1:-1;;;;;;;;;;;126155:16:0;126173:1;126131:10;:44::i;:::-;126188:24;126215:17;:37;126267:8;126290:11;126316:13;103190:12;;;103102:108;126316:13;126215:125;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;126356:26;:33;126188:152;;-1:-1:-1;126356:38:0;126353:539;;126415:6;126410:471;126431:26;:33;126427:37;;126410:471;;;126489:53;126545:26;126572:1;126545:29;;;;;;-1:-1:-1;;;126545:29:0;;;;;;;;;;;;;;;;;;;126489:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;126489:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;126489:85:0;;;-1:-1:-1;;126489:85:0;;;;-1:-1:-1;;;;;126489:85:0;;;;;;;;;;;;;;;;;;;126627:21;;126671;;;;126726:20;;;;126489:85;;-1:-1:-1;126593:272:0;;126749:6;;126715:31;;:8;:31;:::i;:::-;:40;;;;:::i;:::-;126778:17;126796:1;126778:20;;;;;;-1:-1:-1;;;126778:20:0;;;;;;;;;;;;;;;126821:14;:25;;;126593:11;:272::i;:::-;;126410:471;126466:3;;;;;:::i;:::-;;;;126410:471;;;;126353:539;126918:10;103347:7;103374:18;;;;;;;;;;;126905:72;;126950:13;:15;;;:13;:15;;;:::i;:::-;;;;;;126905:72;126991:35;126997:10;127009:16;126991:5;:35::i;:::-;127050:55;;-1:-1:-1;;;127050:55:0;;:17;;:29;;:55;;127080:11;;-1:-1:-1;;;;;;;;;;;120910:42:0;127050:55;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:64;;;:116;;-1:-1:-1;127118:44:0;;-1:-1:-1;;;127118:44:0;;127156:4;127118:44;;;13805:51:1;127165:1:0;;-1:-1:-1;;;;;;;;;;;120910:42:0;127118:29;;13778:18:1;;127118:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:48;127050:116;127047:224;;;127199:59;;;;;;;;-1:-1:-1;;;;;;;;;;;127199:59:0;;-1:-1:-1;127199:59:0;;;;;;;;;;;;127182:11;:77;;127199:59;127182:77;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;127182:77:0;;;-1:-1:-1;;;;;;127182:77:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;127182:77:0;-1:-1:-1;;;;;;127182:77:0;;;;;;;;;;;;;;127047:224;127288:73;127321:10;127333:7;94812:6;;-1:-1:-1;;;;;94812:6:0;;94739:87;127333:7;127288:73;;;-1:-1:-1;;;;;14515:15:1;;;14497:34;;14567:15;;;;14562:2;14547:18;;14540:43;14599:18;;14592:34;;;14447:2;14432:18;127288:73:0;;;;;;;127377:70;;;127407:10;15891:51:1;;127419:9:0;15973:2:1;15958:18;;15951:34;16001:18;;;15994:34;;;127377:70:0;;15879:2:1;15864:18;127377:70:0;;;;;;;125475:1980;;;;;;:::o;106559:436::-;106652:4;93364:10;106652:4;106735:25;93364:10;106752:7;106735:9;:25::i;:::-;106708:52;;106799:15;106779:16;:35;;106771:85;;;;-1:-1:-1;;;106771:85:0;;28514:2:1;106771:85:0;;;28496:21:1;28553:2;28533:18;;;28526:30;28592:34;28572:18;;;28565:62;-1:-1:-1;;;28643:18:1;;;28636:35;28688:19;;106771:85:0;28486:227:1;106771:85:0;106892:60;106901:5;106908:7;106936:15;106917:16;:34;106892:8;:60::i;103606:193::-;103685:4;93364:10;103741:28;93364:10;103758:2;103762:6;103741:9;:28::i;127463:3224::-;127605:10;127619:1;103374:18;;;;;;;;;;;127595:25;127587:92;;;;-1:-1:-1;;;127587:92:0;;28091:2:1;127587:92:0;;;28073:21:1;28130:2;28110:18;;;28103:30;28169:34;28149:18;;;28142:62;-1:-1:-1;;;28220:18:1;;;28213:52;28282:19;;127587:92:0;28063:244:1;127587:92:0;127715:1;127698:14;:18;127690:65;;;;-1:-1:-1;;;127690:65:0;;24634:2:1;127690:65:0;;;24616:21:1;24673:2;24653:18;;;24646:30;24712:34;24692:18;;;24685:62;-1:-1:-1;;;24763:18:1;;;24756:32;24805:19;;127690:65:0;24606:224:1;127690:65:0;127802:10;103347:7;103374:18;;;;;;;;;;;127774:14;:39;;127766:91;;;;-1:-1:-1;;;127766:91:0;;24226:2:1;127766:91:0;;;24208:21:1;24265:2;24245:18;;;24238:30;24304:34;24284:18;;;24277:62;-1:-1:-1;;;24355:18:1;;;24348:37;24402:19;;127766:91:0;24198:229:1;127766:91:0;127901:11;:18;127876:21;;:43;127868:74;;;;-1:-1:-1;;;127868:74:0;;22304:2:1;127868:74:0;;;22286:21:1;22343:2;22323:18;;;22316:30;-1:-1:-1;;;22362:18:1;;;22355:48;22420:18;;127868:74:0;22276:168:1;127868:74:0;127955:33;127961:10;127973:14;127955:5;:33::i;:::-;128017:10;103347:7;103374:18;;;;;;;;;;;128004:72;;128049:13;:15;;;:13;:15;;;:::i;:::-;;;;;;128004:72;128089:17;128152:14;128136:13;103190:12;;;103102:108;128136:13;:30;;;;:::i;:::-;128109:23;:14;128126:6;128109:23;:::i;:::-;:58;;;;:::i;:::-;128199:44;;-1:-1:-1;;;128199:44:0;;128237:4;128199:44;;;13805:51:1;128089:78:0;;-1:-1:-1;128178:18:0;;128258:6;;128089:78;;-1:-1:-1;;;;;;;;;;;120910:42:0;128199:29;;13778:18:1;;128199:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:56;;;;:::i;:::-;:65;;;;:::i;:::-;128178:86;;128275:55;128334:11;128275:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;128275:70:0;;;;;;;;;;;;;;;;;-1:-1:-1;;;128275:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;128361:6;128356:1421;128377:18;:25;128373:1;:29;128356:1421;;;128433:20;128463:18;128482:1;128463:21;;;;;;-1:-1:-1;;;128463:21:0;;;;;;;;;;;;;;;:34;;;128433:65;;-1:-1:-1;;;;;;;;;;;;;;;;128516:49:0;:18;128535:1;128516:21;;;;;;-1:-1:-1;;;128516:21:0;;;;;;;;;;;;;;;:34;;;-1:-1:-1;;;;;128516:49:0;;128513:1253;;128588:14;128603:1;128588:17;;;;;;-1:-1:-1;;;128588:17:0;;;;;;;;;;;;;;;:21;;;128613:1;128588:26;128585:1166;;;128708:16;;;128722:1;128708:16;;;128638:23;128708:16;;;;;128638:23;128684:21;;128708:16;128722:1;128708:16;;;;;;;;;;-1:-1:-1;128708:16:0;128684:40;;128757:18;128776:1;128757:21;;;;;;-1:-1:-1;;;128757:21:0;;;;;;;;;;;;;;;:34;;;128747:4;128752:1;128747:7;;;;;;-1:-1:-1;;;128747:7:0;;;;;;;;;;;;;;:44;-1:-1:-1;;;;;128747:44:0;;;-1:-1:-1;;;;;128747:44:0;;;;;-1:-1:-1;;;;;;;;;;;128814:4:0;128819:1;128814:7;;;;;;-1:-1:-1;;;128814:7:0;;;;;;;;;-1:-1:-1;;;;;128814:21:0;;;:7;;;;;;;;;:21;128987:38;;-1:-1:-1;;;128987:38:0;;129019:4;128987:38;;;13805:51:1;128858:20:0;;128881:280;;128919:4;;128950:10;;129040:6;;129028:9;;128987:23;;;;;;13778:18:1;;128987:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:50;;;;:::i;:::-;:59;;;;:::i;:::-;129073:14;129088:1;129073:17;;;;;;-1:-1:-1;;;129073:17:0;;;;;;;;;;;;;;;:28;;;129136:1;128881:11;:280::i;:::-;128858:303;-1:-1:-1;129186:26:0;128858:303;129186:26;;:::i;:::-;;;128585:1166;;;;;;129261:21;129305:20;129328:352;129366:4;129408:18;129427:1;129408:21;;;;;;-1:-1:-1;;;129408:21:0;;;;;;;;;;;;;;;:34;;;129444:14;129459:1;129444:17;;;;;;-1:-1:-1;;;129444:17:0;;;;;;;;;;;;;;;;;;;;:21;;;129397:82;;;-1:-1:-1;;;;;15567:15:1;;;129397:82:0;;;15549:34:1;;;;15599:18;;;15592:34;-1:-1:-1;;;;;;;;;;;15642:18:1;;;15635:43;15484:18;;129397:82:0;;;-1:-1:-1;;129397:82:0;;;;;;;;;;-1:-1:-1;;;129506:38:0;;129538:4;129506:38;;;13805:51:1;129397:82:0;129559:6;;129547:9;;-1:-1:-1;;;;;129506:23:0;;;;;13778:18:1;;129506:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:50;;;;:::i;:::-;:59;;;;:::i;:::-;129592:14;129607:1;129592:17;;;;;;-1:-1:-1;;;129592:17:0;;;;;;;;129328:352;129305:375;-1:-1:-1;129705:26:0;129305:375;129705:26;;:::i;:::-;;;128585:1166;;;-1:-1:-1;128404:3:0;;;;:::i;:::-;;;;128356:1421;;;-1:-1:-1;129789:26:0;129842:6;129818:21;129831:8;129818:10;:21;:::i;:::-;:30;;;;:::i;:::-;129789:59;;129859:24;129913:6;129899:11;;129886:10;:24;;;;:::i;:::-;:33;;;;:::i;:::-;129859:60;-1:-1:-1;129930:25:0;129990:18;129958:29;129859:60;129958:10;:29;:::i;:::-;:50;;;;:::i;:::-;129930:78;-1:-1:-1;;;;;;;;;;;;120910:42:0;130071:28;130100:7;94812:6;;-1:-1:-1;;;;;94812:6:0;;94739:87;130100:7;130071:57;;-1:-1:-1;;;;;;130071:57:0;;;;;;;-1:-1:-1;;;;;15222:32:1;;;130071:57:0;;;15204:51:1;15271:18;;;15264:34;;;15177:18;;130071:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;130139:44;-1:-1:-1;;;;;;;;;;;130163:16:0;130181:1;130139:10;:44::i;:::-;130196:40;;-1:-1:-1;;;130196:40:0;;;;;30234:25:1;;;-1:-1:-1;;;;;130196:21:0;;;;;30207:18:1;;130196:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;130247:45:0;;:10;;-1:-1:-1;130270:17:0;;-1:-1:-1;130247:45:0;;;;130270:17;130247:10;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;130308:55:0;;-1:-1:-1;;;130308:55:0;;:17;;-1:-1:-1;130308:29:0;;:55;;130338:11;;-1:-1:-1;;;;;;;;;;;120910:42:0;130308:55;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:63;;130367:4;130308:63;:116;;;;-1:-1:-1;130375:44:0;;-1:-1:-1;;;130375:44:0;;130413:4;130375:44;;;13805:51:1;-1:-1:-1;;;;;;;;;;;120910:42:0;130375:29;;13778:18:1;;130375:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:49;130308:116;130305:188;;;130440:41;-1:-1:-1;;;;;;;;;;;130440:28:0;:41::i;:::-;130510:73;130543:10;130555:7;94812:6;;-1:-1:-1;;;;;94812:6:0;;94739:87;130555:7;130510:73;;;-1:-1:-1;;;;;14515:15:1;;;14497:34;;14567:15;;;;14562:2;14547:18;;14540:43;14599:18;;14592:34;;;14447:2;14432:18;130510:73:0;;;;;;;130599:80;;;130633:10;15891:51:1;;15973:2;15958:18;;15951:34;;;16001:18;;;15994:34;;;130599:80:0;;15879:2:1;15864:18;130599:80:0;;;;;;;127463:3224;;;;;;;;;:::o;131633:1090::-;94625:13;:11;:13::i;:::-;131818:45:::1;::::0;-1:-1:-1;;;131818:45:0;;131799:16:::1;::::0;131818:17:::1;::::0;:29:::1;::::0;:45:::1;::::0;131848:6;;131856;;131818:45:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;131799:64:::0;-1:-1:-1;;;;;;131877:23:0;::::1;-1:-1:-1::0;;;;;;;;;;;131877:23:0::1;131874:299;;-1:-1:-1::0;;;;;131924:34:0;::::1;131954:3;131924:34;::::0;:102:::1;;-1:-1:-1::0;131984:42:0::1;-1:-1:-1::0;;;;;131962:64:0;::::1;;131924:102;131916:135;;;::::0;-1:-1:-1;;;131916:135:0;;26918:2:1;131916:135:0::1;::::0;::::1;26900:21:1::0;26957:2;26937:18;;;26930:30;-1:-1:-1;;;26976:18:1;;;26969:50;27036:18;;131916:135:0::1;26890:170:1::0;131916:135:0::1;132074:58;::::0;-1:-1:-1;;;132074:58:0;;:17:::1;::::0;:42:::1;::::0;:58:::1;::::0;132117:6;;132125;;132074:58:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;132066:95;;;::::0;-1:-1:-1;;;132066:95:0;;29280:2:1;132066:95:0::1;::::0;::::1;29262:21:1::0;29319:2;29299:18;;;29292:30;29358:26;29338:18;;;29331:54;29402:18;;132066:95:0::1;29252:174:1::0;132066:95:0::1;132266:17;132316:6;132286:27;:8:::0;132297:16:::1;132286:27;:::i;:::-;:36;;;;:::i;:::-;132266:56;;132336:6;:13;132353:1;132336:18;132333:236;;132370:35;132381:6;132388:1;132381:9;;;;;;-1:-1:-1::0;;;132381:9:0::1;;;;;;;;;;;;;;;132392;132403:1;132370:10;:35::i;:::-;132333:236;;;132439:15;132456:10:::0;132481:6:::1;132470:37;;;;;;;;;;;;:::i;:::-;132438:69;;;;132522:35;132533:7;132542:9;132553:3;132522:10;:35::i;:::-;132333:236;;;132589:126;132601:6:::0;132609;132617:20:::1;132628:9:::0;132617:8;:20:::1;:::i;:::-;132639:16:::0;-1:-1:-1;;;;;132657:23:0;::::1;-1:-1:-1::0;;;;;;;;;;;132657:23:0::1;:57;;132696:18;132589:11;:126::i;132657:57::-;132691:1;132589:11;:126::i;:::-;;94649:1;;131633:1090:::0;;;;;:::o;103862:151::-;-1:-1:-1;;;;;103978:18:0;;;103951:7;103978:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;103862:151::o;95645:201::-;94625:13;:11;:13::i;:::-;-1:-1:-1;;;;;95734:22:0;::::1;95726:73;;;::::0;-1:-1:-1;;;95726:73:0;;22651:2:1;95726:73:0::1;::::0;::::1;22633:21:1::0;22690:2;22670:18;;;22663:30;22729:34;22709:18;;;22702:62;-1:-1:-1;;;22780:18:1;;;22773:36;22826:19;;95726:73:0::1;22623:228:1::0;95726:73:0::1;95810:28;95829:8;95810:18;:28::i;110184:380::-:0;-1:-1:-1;;;;;110320:19:0;;110312:68;;;;-1:-1:-1;;;110312:68:0;;27267:2:1;110312:68:0;;;27249:21:1;27306:2;27286:18;;;27279:30;27345:34;27325:18;;;27318:62;-1:-1:-1;;;27396:18:1;;;27389:34;27440:19;;110312:68:0;27239:226:1;110312:68:0;-1:-1:-1;;;;;110399:21:0;;110391:68;;;;-1:-1:-1;;;110391:68:0;;23058:2:1;110391:68:0;;;23040:21:1;23097:2;23077:18;;;23070:30;23136:34;23116:18;;;23109:62;-1:-1:-1;;;23187:18:1;;;23180:32;23229:19;;110391:68:0;23030:224:1;110391:68:0;-1:-1:-1;;;;;110472:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;110524:32;;30234:25:1;;;110524:32:0;;30207:18:1;110524:32:0;;;;;;;110184:380;;;:::o;110855:453::-;110990:24;111017:25;111027:5;111034:7;111017:9;:25::i;:::-;110990:52;;-1:-1:-1;;111057:16:0;:37;111053:248;;111139:6;111119:16;:26;;111111:68;;;;-1:-1:-1;;;111111:68:0;;23461:2:1;111111:68:0;;;23443:21:1;23500:2;23480:18;;;23473:30;23539:31;23519:18;;;23512:59;23588:18;;111111:68:0;23433:179:1;111111:68:0;111223:51;111232:5;111239:7;111267:6;111248:16;:25;111223:8;:51::i;:::-;110855:453;;;;:::o;107465:671::-;-1:-1:-1;;;;;107596:18:0;;107588:68;;;;-1:-1:-1;;;107588:68:0;;26512:2:1;107588:68:0;;;26494:21:1;26551:2;26531:18;;;26524:30;26590:34;26570:18;;;26563:62;-1:-1:-1;;;26641:18:1;;;26634:35;26686:19;;107588:68:0;26484:227:1;107588:68:0;-1:-1:-1;;;;;107675:16:0;;107667:64;;;;-1:-1:-1;;;107667:64:0;;21497:2:1;107667:64:0;;;21479:21:1;21536:2;21516:18;;;21509:30;21575:34;21555:18;;;21548:62;-1:-1:-1;;;21626:18:1;;;21619:33;21669:19;;107667:64:0;21469:225:1;107667:64:0;-1:-1:-1;;;;;107817:15:0;;107795:19;107817:15;;;;;;;;;;;107851:21;;;;107843:72;;;;-1:-1:-1;;;107843:72:0;;23819:2:1;107843:72:0;;;23801:21:1;23858:2;23838:18;;;23831:30;23897:34;23877:18;;;23870:62;-1:-1:-1;;;23948:18:1;;;23941:36;23994:19;;107843:72:0;23791:228:1;107843:72:0;-1:-1:-1;;;;;107951:15:0;;;:9;:15;;;;;;;;;;;107969:20;;;107951:38;;108011:13;;;;;;;;:23;;107983:6;;107951:9;108011:23;;107983:6;;108011:23;:::i;:::-;;;;;;;;108067:2;-1:-1:-1;;;;;108052:26:0;108061:4;-1:-1:-1;;;;;108052:26:0;;108071:6;108052:26;;;;30234:25:1;;30222:2;30207:18;;30189:76;108052:26:0;;;;;;;;108091:37;123814:817;109155:591;-1:-1:-1;;;;;109239:21:0;;109231:67;;;;-1:-1:-1;;;109231:67:0;;26110:2:1;109231:67:0;;;26092:21:1;26149:2;26129:18;;;26122:30;26188:34;26168:18;;;26161:62;-1:-1:-1;;;26239:18:1;;;26232:31;26280:19;;109231:67:0;26082:223:1;109231:67:0;-1:-1:-1;;;;;109398:18:0;;109373:22;109398:18;;;;;;;;;;;109435:24;;;;109427:71;;;;-1:-1:-1;;;109427:71:0;;21901:2:1;109427:71:0;;;21883:21:1;21940:2;21920:18;;;21913:30;21979:34;21959:18;;;21952:62;-1:-1:-1;;;22030:18:1;;;22023:32;22072:19;;109427:71:0;21873:224:1;109427:71:0;-1:-1:-1;;;;;109534:18:0;;:9;:18;;;;;;;;;;109555:23;;;109534:44;;109600:12;:22;;109572:6;;109534:9;109600:22;;109572:6;;109600:22;:::i;:::-;;;;-1:-1:-1;;109640:37:0;;30234:25:1;;;109666:1:0;;-1:-1:-1;;;;;109640:37:0;;;;;30222:2:1;30207:18;109640:37:0;;;;;;;94649:1:::1;123814:817:::0;;:::o;94904:132::-;94812:6;;-1:-1:-1;;;;;94812:6:0;93364:10;94968:23;94960:68;;;;-1:-1:-1;;;94960:68:0;;25749:2:1;94960:68:0;;;25731:21:1;;;25768:18;;;25761:30;25827:34;25807:18;;;25800:62;25879:18;;94960:68:0;25721:182:1;96006:191:0;96099:6;;;-1:-1:-1;;;;;96116:17:0;;;-1:-1:-1;;;;;;96116:17:0;;;;;;;96149:40;;96099:6;;;96116:17;96099:6;;96149:40;;96080:16;;96149:40;96006:191;;:::o;132731:1949::-;132880:7;132900:55;132918:6;132926;132934:8;132944:10;132900:17;:55::i;:::-;132969:13;;:18;132966:1707;;133003:32;133045:6;133068:1;133052:6;:13;:17;;;;:::i;:::-;133045:25;;;;;;-1:-1:-1;;;133045:25:0;;;;;;;;;;;;;;;;;;;133038:58;;-1:-1:-1;;;133038:58:0;;133090:4;133038:58;;;13805:51:1;-1:-1:-1;;;;;133038:43:0;;;;;;13778:18:1;;133038:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;133003:93;;133118:6;133125:1;133118:9;;;;;;-1:-1:-1;;;133118:9:0;;;;;;;;;;;;;;;;;;;133111:61;;-1:-1:-1;;;133111:61:0;;-1:-1:-1;;;;;133145:15:0;15222:32:1;;133111:61:0;;;15204:51:1;15271:18;;;15264:34;;;133111:25:0;;;;;;15177:18:1;;133111:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;133187:237:0;;-1:-1:-1;;;133187:237:0;;-1:-1:-1;;;;;133187:15:0;:69;;;;:237;;133275:8;;133302:16;;133337:6;;133370:4;;133394:15;;133187:237;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;133507:24;133453:6;133476:1;133460:6;:13;:17;;;;:::i;:::-;133453:25;;;;;;-1:-1:-1;;;133453:25:0;;;;;;;;;;;;;;;;;;;133446:58;;-1:-1:-1;;;133446:58:0;;133498:4;133446:58;;;13805:51:1;-1:-1:-1;;;;;133446:43:0;;;;;;13778:18:1;;133446:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:85;;;;:::i;:::-;133439:92;;;;;132966:1707;133564:27;133609:6;:13;133626:2;133609:19;133606:739;;;133649:22;133673:14;133689:23;133727:6;133716:46;;;;;;;;;;;;:::i;:::-;133798:58;;-1:-1:-1;;12644:2:1;12640:15;;;12636:24;;133798:58:0;;;12624:37:1;-1:-1:-1;;;;;;12717:3:1;12695:16;;;12691:41;12677:12;;;12670:63;12767:15;;;12763:24;12749:12;;;12742:46;133648:114:0;;-1:-1:-1;133648:114:0;;-1:-1:-1;133648:114:0;-1:-1:-1;12804:12:1;;133798:58:0;;;-1:-1:-1;;133798:58:0;;;;;;;;;;-1:-1:-1;;;133875:61:0;;-1:-1:-1;;;;;133914:10:0;15222:32:1;;133875:61:0;;;15204:51:1;15271:18;;;15264:34;;;133798:58:0;;-1:-1:-1;133875:30:0;;;;;15177:18:1;;133875:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;133606:739;;;;;;133978:22;134002:11;134015:19;134036:11;134049:23;134087:6;134076:63;;;;;;;;;;;;:::i;:::-;134175:74;;-1:-1:-1;;13134:2:1;13130:15;;;13126:24;;134175:74:0;;;13114:37:1;-1:-1:-1;;;;;;13174:3:1;13222:16;;;13218:25;;13204:12;;;13197:47;13278:15;;;13274:24;;13260:12;;;13253:46;13333:16;;;13329:25;13315:12;;;13308:47;13389:15;;;13385:24;13371:12;;;13364:46;133977:162:0;;-1:-1:-1;133977:162:0;;-1:-1:-1;133977:162:0;;-1:-1:-1;133977:162:0;-1:-1:-1;133977:162:0;-1:-1:-1;13426:12:1;;134175:74:0;;;-1:-1:-1;;134175:74:0;;;;;;;;;;-1:-1:-1;;;134268:61:0;;-1:-1:-1;;;;;134307:10:0;15222:32:1;;134268:61:0;;;15204:51:1;15271:18;;;15264:34;;;134175:74:0;;-1:-1:-1;134268:30:0;;;;;15177:18:1;;134268:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;133606:739;;;;;;134406:204;;;;;;;;;;;134494:4;134406:204;;;;134518:15;134406:204;;;;;;;;;;;;;;;;134632:29;;-1:-1:-1;;;134632:29:0;;:10;-1:-1:-1;;;;;134632:21:0;;;;:29;;134406:204;;134632:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;134625:36;;;;132966:1707;132731:1949;;;;;;;:::o;130732:893::-;130844:6;-1:-1:-1;;;;;130864:22:0;;-1:-1:-1;;;;;;;;;;;130864:22:0;130861:540;;130905:15;;;130902:474;;131006:16;;;131020:1;131006:16;;;130940:23;131006:16;;;;;130940:23;130982:21;;131006:16;131020:1;131006:16;;;;;;;;;;-1:-1:-1;131006:16:0;130982:40;;131051:7;131041:4;131046:1;131041:7;;;;;;-1:-1:-1;;;131041:7:0;;;;;;;;;;;;;;:17;-1:-1:-1;;;;;131041:17:0;;;-1:-1:-1;;;;;131041:17:0;;;;;-1:-1:-1;;;;;;;;;;;131077:4:0;131082:1;131077:7;;;;;;-1:-1:-1;;;131077:7:0;;;;;;;;;;;;;;:21;-1:-1:-1;;;;;131077:21:0;;;-1:-1:-1;;;;;131077:21:0;;;;;131129:52;131141:4;131147:10;131159:6;131167:1;131178;131129:11;:52::i;:::-;131117:64;;130902:474;;;;;131292:44;;;-1:-1:-1;;;;;14893:15:1;;131292:44:0;;;14875:34:1;14957:8;14945:21;;14925:18;;;14918:49;-1:-1:-1;;;;;;;;;;;131222:21:0;14983:18:1;;;14976:43;;;;131292:44:0;;;;;;;;;14810:18:1;;;;131292:44:0;;;131274:86;;131222:21;;131338:6;-1:-1:-1;;131274:11:0;:86::i;:::-;131262:98;;130902:474;;131411:25;131448:15;-1:-1:-1;;;;;131439:44:0;;:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;131496:57;;-1:-1:-1;;;131496:57:0;;-1:-1:-1;;;;;15222:32:1;;131496:57:0;;;15204:51:1;15271:18;;;15264:34;;;131411:74:0;;-1:-1:-1;;;;;;;;;;;;120910:42:0;131496:27;;15177:18:1;;131496:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;131564:53:0;;-1:-1:-1;;;131564:53:0;;;;;30234:25:1;;;-1:-1:-1;;;;;131564:42:0;;;;;30207:18:1;;131564:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;130732:893;;;;;:::o;108423:399::-;-1:-1:-1;;;;;108507:21:0;;108499:65;;;;-1:-1:-1;;;108499:65:0;;28920:2:1;108499:65:0;;;28902:21:1;28959:2;28939:18;;;28932:30;28998:33;28978:18;;;28971:61;29049:18;;108499:65:0;28892:181:1;108499:65:0;108655:6;108639:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;108672:18:0;;:9;:18;;;;;;;;;;:28;;108694:6;;108672:9;:28;;108694:6;;108672:28;:::i;:::-;;;;-1:-1:-1;;108716:37:0;;30234:25:1;;;-1:-1:-1;;;;;108716:37:0;;;108733:1;;108716:37;;30222:2:1;30207:18;108716:37:0;;;;;;;113767:164;;:::o;125038:429::-;125117:52;;-1:-1:-1;;;125117:52:0;;:17;;:29;;:52;;125147:11;;125160:8;;125117:52;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;125114:98;;125038:429;:::o;125114:98::-;125227:6;125222:235;125243:11;:18;125239:22;;125222:235;;;125316:8;-1:-1:-1;;;;;125285:39:0;:11;125297:1;125285:14;;;;;;-1:-1:-1;;;125285:14:0;;;;;;;;;;;;;;;;;;;;;;:27;-1:-1:-1;;;;;125285:27:0;:39;125282:164;;;125361:11;125373:18;;:20;;125392:1;;125373:20;:::i;:::-;125361:33;;;;;;-1:-1:-1;;;125361:33:0;;;;;;;;;;;;;;;;;;;125344:11;125356:1;125344:14;;;;;;-1:-1:-1;;;125344:14:0;;;;;;;;;;;;;;;;;:50;;:14;;;;;:50;;-1:-1:-1;;;;;125344:50:0;;;-1:-1:-1;;;;;;125344:50:0;;;;;;-1:-1:-1;125344:50:0;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;125344:50:0;;;;-1:-1:-1;;;125344:50:0;;;;;;;;;;;;;;;;;125413:11;:17;;;;;-1:-1:-1;;;125413:17:0;;;;;;;;;;;;;;;;;-1:-1:-1;;125413:17:0;;;;;;;;;-1:-1:-1;;;;;;125413:17:0;;;;;;;-1:-1:-1;;;;;;125413:17:0;;;;;125282:164;125263:3;;;;:::i;:::-;;;;125222:235;;134688:1653;134819:15;134845:16;134872:10;134893:9;134916:6;:13;134933:1;134916:18;134913:864;;134960:6;134967:1;134960:9;;;;;;-1:-1:-1;;;134960:9:0;;;;;;;;;;;;;;;134950:19;;134995:6;135018:1;135002:6;:13;:17;;;;:::i;:::-;134995:25;;;;;;-1:-1:-1;;;134995:25:0;;;;;;;;;;;;;;;134984:36;;135042:5;135035:12;;134913:864;;;135102:13;;135148:2;135133:17;;135130:290;;;135171:22;135195:14;135211:23;135249:6;135238:46;;;;;;;;;;;;:::i;:::-;135170:114;;-1:-1:-1;135170:114:0;;-1:-1:-1;135170:114:0;-1:-1:-1;;;;135130:290:0;135437:11;135452:3;135437:18;135434:306;;;135476:22;135504:11;135517:23;135555:6;135544:63;;;;;;;;;;;;:::i;:::-;135475:132;;-1:-1:-1;135475:132:0;;-1:-1:-1;135475:132:0;;-1:-1:-1;;;;;;135434:306:0;135761:4;135754:11;;134913:864;;135793:40;;-1:-1:-1;;;135793:40:0;;135827:4;135793:40;;;13805:51:1;135836:8:0;;-1:-1:-1;;;;;135793:25:0;;;;;13778:18:1;;135793:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:51;;;;:::i;:::-;135789:125;;135865:37;135894:7;135865:28;:37::i;:::-;135927:41;;-1:-1:-1;;;135927:41:0;;135962:4;135927:41;;;13805:51:1;-1:-1:-1;;;;;135927:26:0;;;;;13778:18:1;;135927:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:46;:111;;;;-1:-1:-1;135977:52:0;;-1:-1:-1;;;135977:52:0;;:17;;:29;;:52;;136007:11;;136020:8;;135977:52;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:61;135927:111;135924:408;;;-1:-1:-1;;;;;136057:23:0;;-1:-1:-1;;;;;;;;;;;136057:23:0;136054:250;;;136117:56;;;;;;;;-1:-1:-1;;;;;136117:56:0;;;;;-1:-1:-1;136117:56:0;;;;;;;;;;;;136100:11;:74;;136117:56;136100:74;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;136100:74:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;136100:74:0;-1:-1:-1;;;;;;136100:74:0;;;;;;;;;;;;;;136054:250;;;136232:55;;;;;;;;-1:-1:-1;;;;;136232:55:0;;;;;;;;;;;;;;;;;;;;;;;136215:11;:73;;;;;;;-1:-1:-1;136215:73:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;136215:73:0;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;136215:73:0;;;;-1:-1:-1;;;136215:73:0;;;;;;;;;;;;;-1:-1:-1;;;;;134688:1653:0:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:768:1;68:5;121:3;114:4;106:6;102:17;98:27;88:2;;143:5;136;129:20;88:2;183:6;170:20;209:4;233:60;249:43;289:2;249:43;:::i;:::-;233:60;:::i;:::-;315:3;339:2;334:3;327:15;367:2;362:3;358:12;351:19;;402:2;394:6;390:15;454:3;449:2;443;440:1;436:10;428:6;424:23;420:32;417:41;414:2;;;475:5;468;461:20;414:2;501:5;515:238;529:2;526:1;523:9;515:238;;;600:3;587:17;617:31;642:5;617:31;:::i;:::-;661:18;;699:12;;;;731;;;;547:1;540:9;515:238;;;-1:-1:-1;771:5:1;;78:704;-1:-1:-1;;;;;;;78:704:1:o;787:550::-;829:5;882:3;875:4;867:6;863:17;859:27;849:2;;904:5;897;890:20;849:2;944:6;931:20;-1:-1:-1;;;;;966:2:1;963:26;960:2;;;992:18;;:::i;:::-;1036:55;1079:2;1060:13;;-1:-1:-1;;1056:27:1;1085:4;1052:38;1036:55;:::i;:::-;1116:2;1107:7;1100:19;1162:3;1155:4;1150:2;1142:6;1138:15;1134:26;1131:35;1128:2;;;1183:5;1176;1169:20;1128:2;1252;1245:4;1237:6;1233:17;1226:4;1217:7;1213:18;1200:55;1275:16;;;1293:4;1271:27;1264:42;;;;1279:7;839:498;-1:-1:-1;;839:498:1:o;1342:165::-;1420:13;;1473:8;1462:20;;1452:31;;1442:2;;1497:1;1494;1487:12;1442:2;1401:106;;;:::o;1512:257::-;1571:6;1624:2;1612:9;1603:7;1599:23;1595:32;1592:2;;;1645:6;1637;1630:22;1592:2;1689:9;1676:23;1708:31;1733:5;1708:31;:::i;:::-;1758:5;1582:187;-1:-1:-1;;;1582:187:1:o;1774:261::-;1844:6;1897:2;1885:9;1876:7;1872:23;1868:32;1865:2;;;1918:6;1910;1903:22;1865:2;1955:9;1949:16;1974:31;1999:5;1974:31;:::i;2040:352::-;2126:6;2134;2187:2;2175:9;2166:7;2162:23;2158:32;2155:2;;;2208:6;2200;2193:22;2155:2;2245:9;2239:16;2264:31;2289:5;2264:31;:::i;:::-;2314:5;-1:-1:-1;2338:48:1;2382:2;2367:18;;2338:48;:::i;:::-;2328:58;;2145:247;;;;;:::o;2397:494::-;2500:6;2508;2516;2569:2;2557:9;2548:7;2544:23;2540:32;2537:2;;;2590:6;2582;2575:22;2537:2;2627:9;2621:16;2646:31;2671:5;2646:31;:::i;:::-;2696:5;-1:-1:-1;2720:48:1;2764:2;2749:18;;2720:48;:::i;:::-;2710:58;;2813:2;2802:9;2798:18;2792:25;2826:33;2851:7;2826:33;:::i;:::-;2878:7;2868:17;;;2527:364;;;;;:::o;2896:721::-;3024:6;3032;3040;3048;3056;3109:3;3097:9;3088:7;3084:23;3080:33;3077:2;;;3131:6;3123;3116:22;3077:2;3168:9;3162:16;3187:31;3212:5;3187:31;:::i;:::-;3237:5;-1:-1:-1;3261:48:1;3305:2;3290:18;;3261:48;:::i;:::-;3251:58;;3354:2;3343:9;3339:18;3333:25;3367:33;3392:7;3367:33;:::i;:::-;3419:7;-1:-1:-1;3445:48:1;3489:2;3474:18;;3445:48;:::i;:::-;3435:58;;3538:3;3527:9;3523:19;3517:26;3552:33;3577:7;3552:33;:::i;:::-;3604:7;3594:17;;;3067:550;;;;;;;;:::o;3622:398::-;3690:6;3698;3751:2;3739:9;3730:7;3726:23;3722:32;3719:2;;;3772:6;3764;3757:22;3719:2;3816:9;3803:23;3835:31;3860:5;3835:31;:::i;:::-;3885:5;-1:-1:-1;3942:2:1;3927:18;;3914:32;3955:33;3914:32;3955:33;:::i;:::-;4007:7;3997:17;;;3709:311;;;;;:::o;4025:466::-;4102:6;4110;4118;4171:2;4159:9;4150:7;4146:23;4142:32;4139:2;;;4192:6;4184;4177:22;4139:2;4236:9;4223:23;4255:31;4280:5;4255:31;:::i;:::-;4305:5;-1:-1:-1;4362:2:1;4347:18;;4334:32;4375:33;4334:32;4375:33;:::i;:::-;4129:362;;4427:7;;-1:-1:-1;;;4481:2:1;4466:18;;;;4453:32;;4129:362::o;4496:325::-;4564:6;4572;4625:2;4613:9;4604:7;4600:23;4596:32;4593:2;;;4646:6;4638;4631:22;4593:2;4690:9;4677:23;4709:31;4734:5;4709:31;:::i;:::-;4759:5;4811:2;4796:18;;;;4783:32;;-1:-1:-1;;;4583:238:1:o;4826:870::-;4955:6;4963;4971;4979;4987;5040:3;5028:9;5019:7;5015:23;5011:33;5008:2;;;5062:6;5054;5047:22;5008:2;5107:9;5094:23;-1:-1:-1;;;;;5177:2:1;5169:6;5166:14;5163:2;;;5198:6;5190;5183:22;5163:2;5226:61;5279:7;5270:6;5259:9;5255:22;5226:61;:::i;:::-;5216:71;;5340:2;5329:9;5325:18;5312:32;5296:48;;5369:2;5359:8;5356:16;5353:2;;;5390:6;5382;5375:22;5353:2;;5418:51;5461:7;5450:8;5439:9;5435:24;5418:51;:::i;:::-;5408:61;;;5516:2;5505:9;5501:18;5488:32;5478:42;;5567:2;5556:9;5552:18;5539:32;5529:42;;5621:3;5610:9;5606:19;5593:33;5635:31;5660:5;5635:31;:::i;5701:698::-;5820:6;5828;5881:2;5869:9;5860:7;5856:23;5852:32;5849:2;;;5902:6;5894;5887:22;5849:2;5947:9;5934:23;-1:-1:-1;;;;;6017:2:1;6009:6;6006:14;6003:2;;;6038:6;6030;6023:22;6003:2;6081:6;6070:9;6066:22;6056:32;;6126:7;6119:4;6115:2;6111:13;6107:27;6097:2;;6153:6;6145;6138:22;6097:2;6198;6185:16;6224:2;6216:6;6213:14;6210:2;;;6245:6;6237;6230:22;6210:2;6303:7;6298:2;6288:6;6285:1;6281:14;6277:2;6273:23;6269:32;6266:45;6263:2;;;6329:6;6321;6314:22;6263:2;6365;6357:11;;;;;6387:6;;-1:-1:-1;5839:560:1;;-1:-1:-1;;;;5839:560:1:o;6404:1836::-;6524:6;6555:2;6598;6586:9;6577:7;6573:23;6569:32;6566:2;;;6619:6;6611;6604:22;6566:2;6664:9;6651:23;-1:-1:-1;;;;;6734:2:1;6726:6;6723:14;6720:2;;;6755:6;6747;6740:22;6720:2;6798:6;6787:9;6783:22;6773:32;;6843:7;6836:4;6832:2;6828:13;6824:27;6814:2;;6870:6;6862;6855:22;6814:2;6911;6898:16;6934:60;6950:43;6990:2;6950:43;:::i;6934:60::-;7016:3;7040:2;7035:3;7028:15;7068:2;7063:3;7059:12;7052:19;;7099:2;7095;7091:11;7147:7;7142:2;7136;7133:1;7129:10;7125:2;7121:19;7117:28;7114:41;7111:2;;;7173:6;7165;7158:22;7111:2;7200:6;7215:995;7229:2;7226:1;7223:9;7215:995;;;7306:3;7293:17;7342:2;7329:11;7326:19;7323:2;;;7363:6;7355;7348:22;7323:2;7395:20;;7438:4;7466:16;;;-1:-1:-1;;7462:30:1;7458:39;-1:-1:-1;7455:2:1;;;7515:6;7507;7500:22;7455:2;7550:22;;:::i;:::-;7622:2;7618;7614:11;7601:25;7655:2;7645:8;7642:16;7639:2;;;7676:6;7668;7661:22;7639:2;7712:65;7769:7;7764:2;7753:8;7749:2;7745:17;7741:26;7712:65;:::i;:::-;7705:5;7698:80;;7828:2;7824;7820:11;7807:25;7861:2;7851:8;7848:16;7845:2;;;7882:6;7874;7867:22;7845:2;7927:53;7972:7;7967:2;7956:8;7952:2;7948:17;7944:26;7927:53;:::i;:::-;7911:14;;;7904:77;-1:-1:-1;8038:2:1;8030:11;;;8017:25;8012:2;8001:14;;7994:49;8092:11;;;;8079:25;8063:14;;;8056:49;8118:18;;8156:12;;;;8188;;;;7247:1;7240:9;7215:995;;;-1:-1:-1;8229:5:1;;6535:1705;-1:-1:-1;;;;;;;;;6535:1705:1:o;8245:947::-;8329:6;8360:2;8403;8391:9;8382:7;8378:23;8374:32;8371:2;;;8424:6;8416;8409:22;8371:2;8469:9;8456:23;-1:-1:-1;;;;;8494:6:1;8491:30;8488:2;;;8539:6;8531;8524:22;8488:2;8567:22;;8620:4;8612:13;;8608:27;-1:-1:-1;8598:2:1;;8654:6;8646;8639:22;8598:2;8695;8682:16;8718:60;8734:43;8774:2;8734:43;:::i;8718:60::-;8800:3;8824:2;8819:3;8812:15;8852:2;8847:3;8843:12;8836:19;;8883:2;8879;8875:11;8931:7;8926:2;8920;8917:1;8913:10;8909:2;8905:19;8901:28;8898:41;8895:2;;;8957:6;8949;8942:22;8895:2;8984:6;8975:15;;8999:163;9013:2;9010:1;9007:9;8999:163;;;9070:17;;9058:30;;9031:1;9024:9;;;;;9108:12;;;;9140;;8999:163;;;-1:-1:-1;9181:5:1;8340:852;-1:-1:-1;;;;;;;8340:852:1:o;9197:297::-;9264:6;9317:2;9305:9;9296:7;9292:23;9288:32;9285:2;;;9338:6;9330;9323:22;9285:2;9375:9;9369:16;9428:5;9421:13;9414:21;9407:5;9404:32;9394:2;;9455:6;9447;9440:22;9499:190;9558:6;9611:2;9599:9;9590:7;9586:23;9582:32;9579:2;;;9632:6;9624;9617:22;9579:2;-1:-1:-1;9660:23:1;;9569:120;-1:-1:-1;9569:120:1:o;9694:194::-;9764:6;9817:2;9805:9;9796:7;9792:23;9788:32;9785:2;;;9838:6;9830;9823:22;9785:2;-1:-1:-1;9866:16:1;;9775:113;-1:-1:-1;9775:113:1:o;9893:1281::-;10018:6;10026;10057:2;10100;10088:9;10079:7;10075:23;10071:32;10068:2;;;10121:6;10113;10106:22;10068:2;10162:9;10149:23;10139:33;;10191:2;10244;10233:9;10229:18;10216:32;-1:-1:-1;;;;;10263:6:1;10260:30;10257:2;;;10308:6;10300;10293:22;10257:2;10336:22;;10389:4;10381:13;;10377:27;-1:-1:-1;10367:2:1;;10423:6;10415;10408:22;10367:2;10464;10451:16;10487:60;10503:43;10543:2;10503:43;:::i;10487:60::-;10569:3;10593:2;10588:3;10581:15;10621:2;10616:3;10612:12;10605:19;;10652:2;10648;10644:11;10700:7;10695:2;10689;10686:1;10682:10;10678:2;10674:19;10670:28;10667:41;10664:2;;;10726:6;10718;10711:22;10664:2;10753:6;10744:15;;10768:376;10782:2;10779:1;10776:9;10768:376;;;10853:2;10847:3;10838:7;10834:17;10830:26;10827:2;;;10874:6;10866;10859:22;10827:2;10909:22;;:::i;:::-;10958:17;;10944:32;;11025:12;;;11012:26;10996:14;;;10989:50;11052:18;;10800:1;10793:9;;;;;11090:12;;;;11122;;10768:376;;;10772:3;11163:5;11153:15;;;;;;;;10037:1137;;;;;:::o;11179:727::-;11249:3;11287:5;11281:12;11314:6;11309:3;11302:19;11340:4;11369:2;11364:3;11360:12;11353:19;;11393:5;11388:3;11381:18;11437:2;11432:3;11422:18;11458:3;11470:411;11484:6;11481:1;11478:13;11470:411;;;11591:13;;-1:-1:-1;;;;;11587:22:1;;;11575:35;;11560:1;11646:14;;;11640:21;11695:18;;;11681:12;;;11674:40;11551:3;11768:19;;;;11789:4;11764:30;11757:38;11750:46;11743:4;11734:14;;11727:70;11826:4;11817:14;;;;11866:4;11854:17;;;;11499:9;11470:411;;;-1:-1:-1;11897:3:1;;11257:649;-1:-1:-1;;;;;11257:649:1:o;11911:475::-;11952:3;11990:5;11984:12;12017:6;12012:3;12005:19;12042:3;12054:162;12068:6;12065:1;12062:13;12054:162;;;12130:4;12186:13;;;12182:22;;12176:29;12158:11;;;12154:20;;12147:59;12083:12;12054:162;;;12234:6;12231:1;12228:13;12225:2;;;12300:3;12293:4;12284:6;12279:3;12275:16;12271:27;12264:40;12225:2;-1:-1:-1;12368:2:1;12347:15;-1:-1:-1;;12343:29:1;12334:39;;;;12375:4;12330:50;;11960:426;-1:-1:-1;;11960:426:1:o;16039:1014::-;16303:2;16315:21;;;16288:18;;16371:22;;;16255:4;16450:6;16424:2;16409:18;;16255:4;16487:304;16501:6;16498:1;16495:13;16487:304;;;16576:6;16563:20;16596:31;16621:5;16596:31;:::i;:::-;-1:-1:-1;;;;;16652:31:1;16640:44;;16707:4;16766:15;;;;16731:12;;;;16680:1;16516:9;16487:304;;;16491:3;16838:9;16833:3;16829:19;16822:4;16811:9;16807:20;16800:49;16870:6;16865:3;16858:19;16923:6;16915;16908:4;16903:3;16899:14;16886:44;16975:4;16968;16959:6;16954:3;16950:16;16946:27;16939:41;17042:4;17035:2;17031:7;17026:2;17018:6;17014:15;17010:29;17005:3;17001:39;16997:50;16989:58;;;;16264:789;;;;;;;:::o;17058:799::-;17302:2;17314:21;;;17384:13;;17287:18;;;17406:22;;;17254:4;;17481;;17459:2;17444:18;;;17508:15;;;17254:4;17554:195;17568:6;17565:1;17562:13;17554:195;;;17633:13;;-1:-1:-1;;;;;17629:39:1;17617:52;;17689:12;;;;17724:15;;;;17665:1;17583:9;17554:195;;;17558:3;;;17794:9;17789:3;17785:19;17780:2;17769:9;17765:18;17758:47;17822:29;17847:3;17839:6;17822:29;:::i;:::-;17814:37;17263:594;-1:-1:-1;;;;;;17263:594:1:o;17862:916::-;18093:2;18145:21;;;18215:13;;18118:18;;;18237:22;;;18064:4;;18093:2;18278;;18296:18;;;;18337:15;;;18064:4;18383:369;18397:6;18394:1;18391:13;18383:369;;;18456:13;;18540:9;;-1:-1:-1;;;;;18536:18:1;;;18524:31;;18599:11;;;18593:18;18589:27;18575:12;;;18568:49;18657:11;;18651:18;18637:12;;;18630:40;18699:4;18690:14;;;;18727:15;;;;18509:1;18412:9;18383:369;;;-1:-1:-1;18769:3:1;;18073:705;-1:-1:-1;;;;;;;18073:705:1:o;18783:926::-;19008:2;19060:21;;;19130:13;;19033:18;;;19152:22;;;18979:4;;19008:2;19193;;19211:18;;;;19252:15;;;18979:4;19298:385;19312:6;19309:1;19306:13;19298:385;;;19371:13;;19455:9;;-1:-1:-1;;;;;19451:18:1;;;19439:31;;19514:11;;;19508:18;19504:27;19490:12;;;19483:49;19586:11;;19580:18;19573:26;19566:34;19552:12;;;19545:56;19630:4;19621:14;;;;19658:15;;;;19424:1;19327:9;19298:385;;19714:334;19949:2;19938:9;19931:21;19912:4;19969:73;20038:2;20027:9;20023:18;20015:6;19969:73;:::i;20053:431::-;20316:2;20305:9;20298:21;20279:4;20336:73;20405:2;20394:9;20390:18;20382:6;20336:73;:::i;:::-;20328:81;;20474:1;20470;20465:3;20461:11;20457:19;20449:6;20445:32;20440:2;20429:9;20425:18;20418:60;20288:196;;;;;:::o;20681:385::-;20884:2;20873:9;20866:21;20847:4;20904:44;20944:2;20933:9;20929:18;20921:6;20904:44;:::i;:::-;-1:-1:-1;;;;;20984:32:1;;;;20979:2;20964:18;;20957:60;-1:-1:-1;21048:2:1;21033:18;21026:34;20896:52;20856:210;-1:-1:-1;20856:210:1:o;21071:219::-;21220:2;21209:9;21202:21;21183:4;21240:44;21280:2;21269:9;21265:18;21257:6;21240:44;:::i;29431:652::-;29628:2;29617:9;29610:21;29591:4;29666:6;29660:13;29709:4;29704:2;29693:9;29689:18;29682:32;29737:51;29783:3;29772:9;29768:19;29754:12;29737:51;:::i;:::-;29723:65;;29869:1;29865;29860:3;29856:11;29852:19;29846:2;29838:6;29834:15;29828:22;29824:48;29819:2;29808:9;29804:18;29797:76;29927:2;29919:6;29915:15;29909:22;29904:2;29893:9;29889:18;29882:50;29987:2;29979:6;29975:15;29969:22;29963:3;29952:9;29948:19;29941:51;30048:3;30040:6;30036:16;30030:23;30023:4;30012:9;30008:20;30001:53;30071:6;30063:14;;;29600:483;;;;:::o;30270:476::-;30561:6;30550:9;30543:25;30604:2;30599;30588:9;30584:18;30577:30;30524:4;30624:73;30693:2;30682:9;30678:18;30670:6;30624:73;:::i;:::-;30616:81;;30733:6;30728:2;30717:9;30713:18;30706:34;30533:213;;;;;;:::o;30751:975::-;31005:4;31053:3;31042:9;31038:19;31084:6;31073:9;31066:25;31110:2;31148:6;31143:2;31132:9;31128:18;31121:34;31191:3;31186:2;31175:9;31171:18;31164:31;31215:6;31250;31244:13;31281:6;31273;31266:22;31319:3;31308:9;31304:19;31297:26;;31358:2;31350:6;31346:15;31332:29;;31379:4;31392:195;31406:6;31403:1;31400:13;31392:195;;;31471:13;;-1:-1:-1;;;;;31467:39:1;31455:52;;31562:15;;;;31527:12;;;;31503:1;31421:9;31392:195;;;-1:-1:-1;;;;;;;31643:32:1;;;;31638:2;31623:18;;31616:60;-1:-1:-1;;;31707:3:1;31692:19;31685:35;31604:3;31014:712;-1:-1:-1;;;31014:712:1:o;31920:557::-;32013:4;32019:6;32079:11;32066:25;32173:2;32169:7;32158:8;32142:14;32138:29;32134:43;32114:18;32110:68;32100:2;;32195:4;32189;32182:18;32100:2;32225:33;;32277:20;;;-1:-1:-1;;;;;;32309:30:1;;32306:2;;;32355:4;32349;32342:18;32306:2;32391:4;32379:17;;-1:-1:-1;32442:1:1;32438:14;;;32422;32418:35;32408:46;;32405:2;;;32467:1;32464;32457:12;32405:2;32030:447;;;;;:::o;32482:533::-;32559:4;32565:6;32625:11;32612:25;32719:2;32715:7;32704:8;32688:14;32684:29;32680:43;32660:18;32656:68;32646:2;;32741:4;32735;32728:18;32646:2;32771:33;;32823:20;;;-1:-1:-1;;;;;;32855:30:1;;32852:2;;;32901:4;32895;32888:18;32852:2;32937:4;32925:17;;-1:-1:-1;32968:14:1;32964:27;;;32954:38;;32951:2;;;33005:1;33002;32995:12;33020:337;33119:4;33177:11;33164:25;33271:3;33267:8;33256;33240:14;33236:29;33232:44;33212:18;33208:69;33198:2;;33294:4;33288;33281:18;33198:2;33318:33;;;;;33128:229;-1:-1:-1;;33128:229:1:o;33362:253::-;33434:2;33428:9;33476:4;33464:17;;-1:-1:-1;;;;;33496:34:1;;33532:22;;;33493:62;33490:2;;;33558:18;;:::i;:::-;33594:2;33587:22;33408:207;:::o;33620:251::-;33692:2;33686:9;;;33722:15;;-1:-1:-1;;;;;33752:34:1;;33788:22;;;33749:62;33746:2;;;33814:18;;:::i;33876:275::-;33947:2;33941:9;34012:2;33993:13;;-1:-1:-1;;33989:27:1;33977:40;;-1:-1:-1;;;;;34032:34:1;;34068:22;;;34029:62;34026:2;;;34094:18;;:::i;:::-;34130:2;34123:22;33921:230;;-1:-1:-1;33921:230:1:o;34156:183::-;34216:4;-1:-1:-1;;;;;34241:6:1;34238:30;34235:2;;;34271:18;;:::i;:::-;-1:-1:-1;34316:1:1;34312:14;34328:4;34308:25;;34225:114::o;34487:128::-;34527:3;34558:1;34554:6;34551:1;34548:13;34545:2;;;34564:18;;:::i;:::-;-1:-1:-1;34600:9:1;;34535:80::o;34620:217::-;34660:1;34686;34676:2;;-1:-1:-1;;;34711:31:1;;34765:4;34762:1;34755:15;34793:4;34718:1;34783:15;34676:2;-1:-1:-1;34822:9:1;;34666:171::o;34842:168::-;34882:7;34948:1;34944;34940:6;34936:14;34933:1;34930:21;34925:1;34918:9;34911:17;34907:45;34904:2;;;34955:18;;:::i;:::-;-1:-1:-1;34995:9:1;;34894:116::o;35015:125::-;35055:4;35083:1;35080;35077:8;35074:2;;;35088:18;;:::i;:::-;-1:-1:-1;35125:9:1;;35064:76::o;35145:147::-;35208:78;35226:3;35219:5;35216:14;35208:78;;;35282:1;35268:16;;35253:1;35242:13;35208:78;;35297:947;35424:20;35419:3;35416:29;35413:2;;;35448:18;;:::i;:::-;35497:4;35491:11;35524:3;35518:4;35511:17;35548:6;35543:3;35540:15;35537:2;;;35588:4;35585:1;35578:15;35631:4;35628:1;35618:18;35649:62;35703:6;35697:4;35693:17;35687:3;35681:4;35677:14;35649:62;:::i;:::-;;35537:2;;35744:5;35768:4;35765:1;35758:15;35792:4;35837:2;35834:1;35824:16;35858:1;35868:370;35882:3;35879:1;35876:10;35868:370;;;35956:6;35943:20;35976:33;36001:7;35976:33;:::i;:::-;36049:18;;-1:-1:-1;;;;;;36045:61:1;-1:-1:-1;;;;;36108:33:1;;;;36042:100;36022:121;;36166:15;;;;36138:1;36209:19;;;;35894:9;35868:370;;;35872:3;;;;35403:841;;;:::o;36249:1587::-;-1:-1:-1;;;;;36350:3:1;36347:27;36344:2;;;36377:18;;:::i;:::-;36420:38;36452:4;36446:11;36420:38;:::i;:::-;36484:1;36513:9;36549:2;36544:3;36541:11;36582:2;36574:6;36571:14;36604:2;36600;36597:10;36594:2;;;34402:4;34421:17;;;34471:4;34455:21;;36630:61;;36594:2;36713;36710;;;36790;36785:3;36781:12;36778:1;36774:20;36761:11;36757:38;36819:2;36814:3;36811:11;36808:2;;;-1:-1:-1;36840:11:1;36808:2;36866:83;36943:2;36935:6;36931:15;36928:1;36924:23;36911:11;36907:41;36894:11;36866:83;:::i;:::-;;36710:2;;36975;36991:1;36986:592;;;;37622:1;37609:14;;37639:3;37636:2;;;37704:9;37699:3;37695:19;37682:33;37673:42;;37636:2;38519:1;38515:11;;;-1:-1:-1;;38495:1:1;38491:11;;;38487:24;38483:29;38473:40;;38470:57;37749:4;37742:78;36968:862;;36986:592;-1:-1:-1;;37022:17:1;;;-1:-1:-1;37066:11:1;37099:9;37121:229;37135:7;37132:1;37129:14;37121:229;;;37224:19;;;37211:33;37196:49;;37331:4;37316:20;;;;37284:1;37272:14;;;;37151:12;37121:229;;;37125:3;37378;37369:7;37366:16;37363:2;;;37502:1;37498:6;37492:3;37486;37483:1;37479:11;37475:21;37471:34;37467:39;37454:9;37449:3;37445:19;37432:33;37428:79;37420:6;37413:95;37363:2;;37565:1;37559:3;37556:1;37552:11;37548:19;37542:4;37535:33;36968:862;;;;;36334:1502;;;:::o;37841:136::-;37880:3;37908:5;37898:2;;37917:18;;:::i;:::-;-1:-1:-1;;;37953:18:1;;37888:89::o;37982:380::-;38061:1;38057:12;;;;38104;;;38125:2;;38179:4;38171:6;38167:17;38157:27;;38125:2;38232;38224:6;38221:14;38201:18;38198:38;38195:2;;;38278:10;38273:3;38269:20;38266:1;38259:31;38313:4;38310:1;38303:15;38341:4;38338:1;38331:15;38538:135;38577:3;-1:-1:-1;;38598:17:1;;38595:2;;;38618:18;;:::i;:::-;-1:-1:-1;38665:1:1;38654:13;;38585:88::o;38678:127::-;38739:10;38734:3;38730:20;38727:1;38720:31;38770:4;38767:1;38760:15;38794:4;38791:1;38784:15;38810:127;38871:10;38866:3;38862:20;38859:1;38852:31;38902:4;38899:1;38892:15;38926:4;38923:1;38916:15;38942:176;38987:11;39039:3;39026:17;39052:31;39077:5;39052:31;:::i;:::-;39107:5;39003:115;-1:-1:-1;;39003:115:1:o;39323:1062::-;39511:5;39498:19;39596:2;39592:7;39584:5;39568:14;39564:26;39560:40;39540:18;39536:65;39526:2;;39615:1;39612;39605:12;39526:2;39640:30;;39693:18;;-1:-1:-1;;;;;39723:30:1;;39720:2;;;39766:1;39763;39756:12;39720:2;39803:4;39797;39793:15;39779:29;;39859:6;39856:1;39852:14;39836;39832:35;39824:6;39820:48;39817:2;;;39881:1;39878;39871:12;39817:2;39894:96;39983:6;39975;39969:4;39894:96;:::i;:::-;;;40033:66;40093:4;40086:5;40082:16;40075:5;40033:66;:::i;:::-;40108:97;40191:13;40178:11;40174:1;40168:4;40164:12;40108:97;:::i;:::-;;;40214:106;40276:43;40315:2;40308:5;40304:14;40276:43;:::i;:::-;40272:1;40266:4;40262:12;39227:11;;-1:-1:-1;;;;;;39223:54:1;-1:-1:-1;;;;;39279:31:1;;;;39220:91;;;;39207:105;;39197:121;40214:106;40374:2;40367:5;40363:14;40350:28;40346:1;40340:4;40336:12;40329:50;39462:923;;:::o;40390:131::-;-1:-1:-1;;;;;40465:31:1;;40455:42;;40445:2;;40511:1;40508;40501:12

Swarm Source

ipfs://23c1c778351a12cd5d0acbc409970b5a437c7bf4f2886b8b1ae95e0d9d9ee14f

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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