ETH Price: $3,388.59 (+0.94%)
Gas: 5.29 Gwei

Contract

0xFEA1E5EfdF31B73DA3B2072Ac17799010B15B940
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Advanced mode:
Parent Transaction Hash Block
From
To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
UniswapV3FetcherHelper

Compiler Version
v0.8.22+commit.4fc1097e

Optimization Enabled:
No with 0 runs

Other Settings:
paris EvmVersion
File 1 of 12 : UniswapV3FetcherHelper.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.22;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

import {IUniswapV3Factory} from "@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.sol";
import {IUniswapV3Pool} from "@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol";
import {IUniswapV3PoolImmutables} from "@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolImmutables.sol";
import {IQuoterV2} from "gitmodules/uniswap/v3-periphery/contracts/interfaces/IQuoterV2.sol";

import {CommonFetcher} from "../CommonFetcher.sol";

contract UniswapV3FetcherHelper is CommonFetcher {
    struct InputData {
        IUniswapV3Pool pool;
        address base;
        address quote;
        uint8 amountInDecimals;
    }

    /// @param price is amount out (normalized to 18 decimals) returned by Uniswap pool for 1 quote token
    struct Price {
        uint256 price;
        bool success;
    }

    struct LiquidityData {
        uint160 sqrtPriceX96;
        int24 tick;
        uint256 liquidity;
    }

    bytes4 internal constant _SYMBOL_SELECTOR = bytes4(keccak256("symbol()"));

    IUniswapV3Factory immutable public uniswapV3Factory;
    IQuoterV2 immutable public uniswapV3Quoter;

    constructor(IUniswapV3Factory _factory, IQuoterV2 _quoter) {
        uniswapV3Factory = _factory;
        uniswapV3Quoter = _quoter;
    }

    /// @dev this method will return estimations for swap for one base token
    /// it can not be view, but to get estimation you have to call it in a static way
    /// Tokens that do not have `.decimals()` are not supported
    /// @param _data array of PriceData, each PriceData can accept multiple pools per one price, price is fetched from
    /// pool, that has biggest liquidity (quote.balanceOf(pool))
    /// @return prices prices normalized from input amount (10 ** prices[n].amountInDecimals) to one token price
    function getPrices(InputData[] calldata _data)
        external
        virtual
        returns (Price[] memory prices, uint256 timestamp)
    {
        timestamp = block.timestamp;
        uint256 n = _data.length;
        prices = new Price[](n);

        for (uint256 i = 0; i < n; i++) {
            prices[i] = _getPrice(_data[i]);
        }
    }

    function tokensSymbols(address[] calldata _tokens) external view virtual returns (string[] memory symbols) {
        uint256 n = _tokens.length;
        symbols = new string[](n);

        for (uint256 i = 0; i < n; i++) {
            // solhint-disable-next-line avoid-low-level-calls
            (bool success, bytes memory data) = _tokens[i].staticcall(abi.encode(_SYMBOL_SELECTOR));

            symbols[i] = success
                ? data.length == 32 ? string(abi.encodePacked(data)) : abi.decode(data, (string))
                : "";
        }
    }

    function liquidityData(IUniswapV3Pool[] calldata _pools)
        external
        view
        virtual
        returns (LiquidityData[] memory data)
    {
        uint256 n = _pools.length;
        data = new LiquidityData[](n);

        for (uint256 i = 0; i < n; i++) {
            IUniswapV3Pool pool = _pools[i];
            (data[i].sqrtPriceX96, data[i].tick,,,,,) = pool.slot0();
            data[i].liquidity = pool.liquidity();
        }
    }

    function _getPrice(InputData memory _data) internal virtual returns (Price memory price) {
        (uint256 baseDecimals, bool baseHasDecimals) = _decimals(_data.base);
        if (!baseHasDecimals) return price;

        (uint256 quoteDecimals, bool quoteHasDecimals) = _decimals(_data.quote);
        if (!quoteHasDecimals) return price;

        if (address(_data.pool) == address(0)) return price;

        (uint24 fee, bool success) = _getPoolFee(_data.pool);
        if (!success) return price;

        if (address(_data.pool) != _getPool(_data.base, _data.quote, fee)) return price;

        IQuoterV2.QuoteExactInputSingleParams memory params = IQuoterV2.QuoteExactInputSingleParams({
            tokenIn: _data.base,
            tokenOut: _data.quote,
            amountIn: 10 ** _data.amountInDecimals,
            fee: fee,
            sqrtPriceLimitX96: 0
        });

        try uniswapV3Quoter.quoteExactInputSingle(params)
            returns (uint256 tokenPrice, uint160, uint32, uint256)
        {
            price.price = _normalizeOneTokenPrice(_data.amountInDecimals, baseDecimals, quoteDecimals, tokenPrice);
            price.success = true;
        } catch (bytes memory) {
            // continue;
        }
    }

    function _getPool(address _token0, address _token1, uint24 _fee) internal view virtual returns (address pool) {
        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory data) = address(uniswapV3Factory).staticcall(
            abi.encodeWithSelector(IUniswapV3Factory.getPool.selector, _token0, _token1, _fee)
        );

        if (success) pool = abi.decode(data, (address));
    }

    function _getPoolFee(IUniswapV3Pool _pool) internal view virtual returns (uint24 fee, bool success) {
        bytes memory data;

        // solhint-disable-next-line avoid-low-level-calls
        (success, data) = address(_pool).staticcall(abi.encodeWithSelector(IUniswapV3PoolImmutables.fee.selector));

        if (data.length == 0) {
            success = false;
        } else if (success) {
            fee = abi.decode(data, (uint24));
        }
    }
}

File 2 of 12 : IERC20.sol
// SPDX-License-Identifier: MIT
// 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 3 of 12 : IUniswapV3Factory.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title The interface for the Uniswap V3 Factory
/// @notice The Uniswap V3 Factory facilitates creation of Uniswap V3 pools and control over the protocol fees
interface IUniswapV3Factory {
    /// @notice Emitted when the owner of the factory is changed
    /// @param oldOwner The owner before the owner was changed
    /// @param newOwner The owner after the owner was changed
    event OwnerChanged(address indexed oldOwner, address indexed newOwner);

    /// @notice Emitted when a pool is created
    /// @param token0 The first token of the pool by address sort order
    /// @param token1 The second token of the pool by address sort order
    /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip
    /// @param tickSpacing The minimum number of ticks between initialized ticks
    /// @param pool The address of the created pool
    event PoolCreated(
        address indexed token0,
        address indexed token1,
        uint24 indexed fee,
        int24 tickSpacing,
        address pool
    );

    /// @notice Emitted when a new fee amount is enabled for pool creation via the factory
    /// @param fee The enabled fee, denominated in hundredths of a bip
    /// @param tickSpacing The minimum number of ticks between initialized ticks for pools created with the given fee
    event FeeAmountEnabled(uint24 indexed fee, int24 indexed tickSpacing);

    /// @notice Returns the current owner of the factory
    /// @dev Can be changed by the current owner via setOwner
    /// @return The address of the factory owner
    function owner() external view returns (address);

    /// @notice Returns the tick spacing for a given fee amount, if enabled, or 0 if not enabled
    /// @dev A fee amount can never be removed, so this value should be hard coded or cached in the calling context
    /// @param fee The enabled fee, denominated in hundredths of a bip. Returns 0 in case of unenabled fee
    /// @return The tick spacing
    function feeAmountTickSpacing(uint24 fee) external view returns (int24);

    /// @notice Returns the pool address for a given pair of tokens and a fee, or address 0 if it does not exist
    /// @dev tokenA and tokenB may be passed in either token0/token1 or token1/token0 order
    /// @param tokenA The contract address of either token0 or token1
    /// @param tokenB The contract address of the other token
    /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip
    /// @return pool The pool address
    function getPool(
        address tokenA,
        address tokenB,
        uint24 fee
    ) external view returns (address pool);

    /// @notice Creates a pool for the given two tokens and fee
    /// @param tokenA One of the two tokens in the desired pool
    /// @param tokenB The other of the two tokens in the desired pool
    /// @param fee The desired fee for the pool
    /// @dev tokenA and tokenB may be passed in either order: token0/token1 or token1/token0. tickSpacing is retrieved
    /// from the fee. The call will revert if the pool already exists, the fee is invalid, or the token arguments
    /// are invalid.
    /// @return pool The address of the newly created pool
    function createPool(
        address tokenA,
        address tokenB,
        uint24 fee
    ) external returns (address pool);

    /// @notice Updates the owner of the factory
    /// @dev Must be called by the current owner
    /// @param _owner The new owner of the factory
    function setOwner(address _owner) external;

    /// @notice Enables a fee amount with the given tickSpacing
    /// @dev Fee amounts may never be removed once enabled
    /// @param fee The fee amount to enable, denominated in hundredths of a bip (i.e. 1e-6)
    /// @param tickSpacing The spacing between ticks to be enforced for all pools created with the given fee amount
    function enableFeeAmount(uint24 fee, int24 tickSpacing) external;
}

File 4 of 12 : IUniswapV3Pool.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

import './pool/IUniswapV3PoolImmutables.sol';
import './pool/IUniswapV3PoolState.sol';
import './pool/IUniswapV3PoolDerivedState.sol';
import './pool/IUniswapV3PoolActions.sol';
import './pool/IUniswapV3PoolOwnerActions.sol';
import './pool/IUniswapV3PoolEvents.sol';

/// @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 5 of 12 : IUniswapV3PoolActions.sol
// SPDX-License-Identifier: GPL-2.0-or-later
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 6 of 12 : IUniswapV3PoolDerivedState.sol
// SPDX-License-Identifier: GPL-2.0-or-later
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 7 of 12 : IUniswapV3PoolEvents.sol
// SPDX-License-Identifier: GPL-2.0-or-later
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 8 of 12 : IUniswapV3PoolImmutables.sol
// SPDX-License-Identifier: GPL-2.0-or-later
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 9 of 12 : IUniswapV3PoolOwnerActions.sol
// SPDX-License-Identifier: GPL-2.0-or-later
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 10 of 12 : IUniswapV3PoolState.sol
// SPDX-License-Identifier: GPL-2.0-or-later
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 11 of 12 : CommonFetcher.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

contract CommonFetcher {
    uint256 internal constant _DECIMALS = 18;
    bytes4 internal constant _DECIMALS_SELECTOR = bytes4(keccak256("decimals()"));

    function _decimals(address _token) internal view virtual returns (uint256 decimals, bool success) {
        bytes memory data;

        // solhint-disable-next-line avoid-low-level-calls
        (success, data) = _token.staticcall(abi.encode(_DECIMALS_SELECTOR));
        if (success && data.length != 0) decimals = abi.decode(data, (uint256));
        else success = false;
    }

    function _normalizeOneTokenPrice(
        uint256 _amountInDecimals,
        uint256 _baseDecimals,
        uint256 _quoteDecimals,
        uint256 _price
    )
        internal
        pure
        virtual
        returns (uint256 normalizedPrice)
    {
        // normalize price from `amountInDecimals` to `oneToken`
        if (_amountInDecimals == _baseDecimals) {
            normalizedPrice = _price;
        }
        else if (_amountInDecimals < _baseDecimals) {
            normalizedPrice = _price * (10 ** (_baseDecimals - _amountInDecimals));
        } else {
            normalizedPrice = _price / (10 ** (_amountInDecimals - _baseDecimals));
        }

        // normalize price to 18 decimals
        if (_quoteDecimals == _DECIMALS) {
            // price OK
        } else if (_quoteDecimals > _DECIMALS) {
            normalizedPrice /= 10 ** (_quoteDecimals - _DECIMALS);
        } else {
            normalizedPrice *= 10 ** (_DECIMALS - _quoteDecimals);
        }
    }
}

File 12 of 12 : IQuoterV2.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.7.5;
pragma abicoder v2;

/// @title QuoterV2 Interface
/// @notice Supports quoting the calculated amounts from exact input or exact output swaps.
/// @notice For each pool also tells you the number of initialized ticks crossed and the sqrt price of the pool after the swap.
/// @dev These functions are not marked view because they rely on calling non-view functions and reverting
/// to compute the result. They are also not gas efficient and should not be called on-chain.
interface IQuoterV2 {
    /// @notice Returns the amount out received for a given exact input swap without executing the swap
    /// @param path The path of the swap, i.e. each token pair and the pool fee
    /// @param amountIn The amount of the first token to swap
    /// @return amountOut The amount of the last token that would be received
    /// @return sqrtPriceX96AfterList List of the sqrt price after the swap for each pool in the path
    /// @return initializedTicksCrossedList List of the initialized ticks that the swap crossed for each pool in the path
    /// @return gasEstimate The estimate of the gas that the swap consumes
    function quoteExactInput(bytes memory path, uint256 amountIn)
        external
        returns (
            uint256 amountOut,
            uint160[] memory sqrtPriceX96AfterList,
            uint32[] memory initializedTicksCrossedList,
            uint256 gasEstimate
        );

    struct QuoteExactInputSingleParams {
        address tokenIn;
        address tokenOut;
        uint256 amountIn;
        uint24 fee;
        uint160 sqrtPriceLimitX96;
    }

    /// @notice Returns the amount out received for a given exact input but for a swap of a single pool
    /// @param params The params for the quote, encoded as `QuoteExactInputSingleParams`
    /// tokenIn The token being swapped in
    /// tokenOut The token being swapped out
    /// fee The fee of the token pool to consider for the pair
    /// amountIn The desired input amount
    /// sqrtPriceLimitX96 The price limit of the pool that cannot be exceeded by the swap
    /// @return amountOut The amount of `tokenOut` that would be received
    /// @return sqrtPriceX96After The sqrt price of the pool after the swap
    /// @return initializedTicksCrossed The number of initialized ticks that the swap crossed
    /// @return gasEstimate The estimate of the gas that the swap consumes
    function quoteExactInputSingle(QuoteExactInputSingleParams memory params)
        external
        returns (
            uint256 amountOut,
            uint160 sqrtPriceX96After,
            uint32 initializedTicksCrossed,
            uint256 gasEstimate
        );

    /// @notice Returns the amount in required for a given exact output swap without executing the swap
    /// @param path The path of the swap, i.e. each token pair and the pool fee. Path must be provided in reverse order
    /// @param amountOut The amount of the last token to receive
    /// @return amountIn The amount of first token required to be paid
    /// @return sqrtPriceX96AfterList List of the sqrt price after the swap for each pool in the path
    /// @return initializedTicksCrossedList List of the initialized ticks that the swap crossed for each pool in the path
    /// @return gasEstimate The estimate of the gas that the swap consumes
    function quoteExactOutput(bytes memory path, uint256 amountOut)
        external
        returns (
            uint256 amountIn,
            uint160[] memory sqrtPriceX96AfterList,
            uint32[] memory initializedTicksCrossedList,
            uint256 gasEstimate
        );

    struct QuoteExactOutputSingleParams {
        address tokenIn;
        address tokenOut;
        uint256 amount;
        uint24 fee;
        uint160 sqrtPriceLimitX96;
    }

    /// @notice Returns the amount in required to receive the given exact output amount but for a swap of a single pool
    /// @param params The params for the quote, encoded as `QuoteExactOutputSingleParams`
    /// tokenIn The token being swapped in
    /// tokenOut The token being swapped out
    /// fee The fee of the token pool to consider for the pair
    /// amountOut The desired output amount
    /// sqrtPriceLimitX96 The price limit of the pool that cannot be exceeded by the swap
    /// @return amountIn The amount required as the input for the swap in order to receive `amountOut`
    /// @return sqrtPriceX96After The sqrt price of the pool after the swap
    /// @return initializedTicksCrossed The number of initialized ticks that the swap crossed
    /// @return gasEstimate The estimate of the gas that the swap consumes
    function quoteExactOutputSingle(QuoteExactOutputSingleParams memory params)
        external
        returns (
            uint256 amountIn,
            uint160 sqrtPriceX96After,
            uint32 initializedTicksCrossed,
            uint256 gasEstimate
        );
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 0
  },
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IUniswapV3Factory","name":"_factory","type":"address"},{"internalType":"contract IQuoterV2","name":"_quoter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"components":[{"internalType":"contract IUniswapV3Pool","name":"pool","type":"address"},{"internalType":"address","name":"base","type":"address"},{"internalType":"address","name":"quote","type":"address"},{"internalType":"uint8","name":"amountInDecimals","type":"uint8"}],"internalType":"struct UniswapV3FetcherHelper.InputData[]","name":"_data","type":"tuple[]"}],"name":"getPrices","outputs":[{"components":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bool","name":"success","type":"bool"}],"internalType":"struct UniswapV3FetcherHelper.Price[]","name":"prices","type":"tuple[]"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IUniswapV3Pool[]","name":"_pools","type":"address[]"}],"name":"liquidityData","outputs":[{"components":[{"internalType":"uint160","name":"sqrtPriceX96","type":"uint160"},{"internalType":"int24","name":"tick","type":"int24"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"internalType":"struct UniswapV3FetcherHelper.LiquidityData[]","name":"data","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokens","type":"address[]"}],"name":"tokensSymbols","outputs":[{"internalType":"string[]","name":"symbols","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV3Factory","outputs":[{"internalType":"contract IUniswapV3Factory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV3Quoter","outputs":[{"internalType":"contract IQuoterV2","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60c06040523480156200001157600080fd5b50604051620021d3380380620021d383398181016040528101906200003791906200016a565b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff16815250505050620001b1565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620000d982620000ac565b9050919050565b6000620000ed82620000cc565b9050919050565b620000ff81620000e0565b81146200010b57600080fd5b50565b6000815190506200011f81620000f4565b92915050565b60006200013282620000cc565b9050919050565b620001448162000125565b81146200015057600080fd5b50565b600081519050620001648162000139565b92915050565b60008060408385031215620001845762000183620000a7565b5b600062000194858286016200010e565b9250506020620001a78582860162000153565b9150509250929050565b60805160a051611fee620001e56000396000818161053d01526107e80152600081816105610152610afc0152611fee6000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80631d20d10a1461005c5780634757efc11461008c5780634d20d0f8146100bc5780635b549182146100da578063ff514fa3146100f8575b600080fd5b61007660048036038101906100719190610dc9565b610129565b6040516100839190610f6b565b60405180910390f35b6100a660048036038101906100a19190610fe3565b610370565b6040516100b39190611182565b60405180910390f35b6100c461053b565b6040516100d19190611203565b60405180910390f35b6100e261055f565b6040516100ef919061123f565b60405180910390f35b610112600480360381019061010d91906112b0565b610583565b604051610120929190611405565b60405180910390f35b606060008383905090508067ffffffffffffffff81111561014d5761014c611435565b5b60405190808252806020026020018201604052801561018657816020015b610173610cfa565b81526020019060019003908161016b5790505b50915060005b818110156103685760008585838181106101a9576101a8611464565b5b90506020020160208101906101be91906114e3565b90508073ffffffffffffffffffffffffffffffffffffffff16633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa15801561020b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061022f9190611607565b90919293509091925090915090505085848151811061025157610250611464565b5b602002602001015160000186858151811061026f5761026e611464565b5b60200260200101516020018260020b60020b8152508273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050508073ffffffffffffffffffffffffffffffffffffffff16631a6865026040518163ffffffff1660e01b8152600401602060405180830381865afa158015610301573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061032591906116f1565b6fffffffffffffffffffffffffffffffff1684838151811061034a57610349611464565b5b6020026020010151604001818152505050808060010191505061018c565b505092915050565b606060008383905090508067ffffffffffffffff81111561039457610393611435565b5b6040519080825280602002602001820160405280156103c757816020015b60608152602001906001900390816103b25790505b50915060005b81811015610533576000808686848181106103eb576103ea611464565b5b9050602002016020810190610400919061174a565b73ffffffffffffffffffffffffffffffffffffffff167f95d89b41e2f5f391a79ec54e9d87c79d6e777c63e32c28da95b4e9e4a79250ec60405160200161044791906117b2565b6040516020818303038152906040526040516104639190611814565b600060405180830381855afa9150503d806000811461049e576040519150601f19603f3d011682016040523d82523d6000602084013e6104a3565b606091505b5091509150816104c25760405180602001604052806000815250610506565b60208151146104e457808060200190518101906104df919061191d565b610505565b806040516020016104f59190611814565b6040516020818303038152906040525b5b85848151811061051957610518611464565b5b6020026020010181905250505080806001019150506103cd565b505092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6060600042905060008484905090508067ffffffffffffffff8111156105ac576105ab611435565b5b6040519080825280602002602001820160405280156105e557816020015b6105d2610d34565b8152602001906001900390816105ca5790505b50925060005b8181101561064f5761062486868381811061060957610608611464565b5b90506080020180360381019061061f91906119f8565b610658565b84828151811061063757610636611464565b5b602002602001018190525080806001019150506105eb565b50509250929050565b610660610d34565b60008061067084602001516108f6565b91509150806106805750506108f1565b60008061069086604001516108f6565b91509150806106a257505050506108f1565b600073ffffffffffffffffffffffffffffffffffffffff16866000015173ffffffffffffffffffffffffffffffffffffffff16036106e357505050506108f1565b6000806106f388600001516109e2565b9150915080610707575050505050506108f1565b61071a8860200151896040015184610af5565b73ffffffffffffffffffffffffffffffffffffffff16886000015173ffffffffffffffffffffffffffffffffffffffff161461075b575050505050506108f1565b60006040518060a001604052808a6020015173ffffffffffffffffffffffffffffffffffffffff1681526020018a6040015173ffffffffffffffffffffffffffffffffffffffff1681526020018a60600151600a6107b99190611b87565b81526020018462ffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff1681525090507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663c6a5026a826040518263ffffffff1660e01b815260040161083f9190611c67565b6080604051808303816000875af192505050801561087b57506040513d601f19601f820116820180604052508101906108789190611cea565b60015b6108b7573d80600081146108ab576040519150601f19603f3d011682016040523d82523d6000602084013e6108b0565b606091505b50506108e9565b6108ca8d6060015160ff168c8b87610c23565b8c600001818152505060018c6020019015159081151581525050505050505b505050505050505b919050565b60008060608373ffffffffffffffffffffffffffffffffffffffff167f313ce567add4d438edf58b94ff345d7d38c45b17dfc0f947988d7819dca364f960405160200161094391906117b2565b60405160208183030381529060405260405161095f9190611814565b600060405180830381855afa9150503d806000811461099a576040519150601f19603f3d011682016040523d82523d6000602084013e61099f565b606091505b5080925081935050508180156109b757506000815114155b156109d757808060200190518101906109d09190611d51565b92506109dc565b600091505b50915091565b60008060608373ffffffffffffffffffffffffffffffffffffffff1663ddca3f4360e01b604051602401604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051610a769190611814565b600060405180830381855afa9150503d8060008114610ab1576040519150601f19603f3d011682016040523d82523d6000602084013e610ab6565b606091505b5080925081935050506000815103610ad15760009150610aef565b8115610aee5780806020019051810190610aeb9190611daa565b92505b5b50915091565b60008060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631698ee8260e01b878787604051602401610b4e93929190611df5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051610bb89190611814565b600060405180830381855afa9150503d8060008114610bf3576040519150601f19603f3d011682016040523d82523d6000602084013e610bf8565b606091505b50915091508115610c1a5780806020019051810190610c179190611e6a565b92505b50509392505050565b6000838503610c3457819050610c8d565b83851015610c66578484610c489190611e97565b600a610c549190611ecb565b82610c5f9190611f16565b9050610c8c565b8385610c729190611e97565b600a610c7e9190611ecb565b82610c899190611f87565b90505b5b6012830315610cf2576012831115610cca57601283610cac9190611e97565b600a610cb89190611ecb565b81610cc39190611f87565b9050610cf1565b826012610cd79190611e97565b600a610ce39190611ecb565b81610cee9190611f16565b90505b5b949350505050565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600060020b8152602001600081525090565b6040518060400160405280600081526020016000151581525090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610d8957610d88610d64565b5b8235905067ffffffffffffffff811115610da657610da5610d69565b5b602083019150836020820283011115610dc257610dc1610d6e565b5b9250929050565b60008060208385031215610de057610ddf610d5a565b5b600083013567ffffffffffffffff811115610dfe57610dfd610d5f565b5b610e0a85828601610d73565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b610e6b81610e42565b82525050565b60008160020b9050919050565b610e8781610e71565b82525050565b6000819050919050565b610ea081610e8d565b82525050565b606082016000820151610ebc6000850182610e62565b506020820151610ecf6020850182610e7e565b506040820151610ee26040850182610e97565b50505050565b6000610ef48383610ea6565b60608301905092915050565b6000602082019050919050565b6000610f1882610e16565b610f228185610e21565b9350610f2d83610e32565b8060005b83811015610f5e578151610f458882610ee8565b9750610f5083610f00565b925050600181019050610f31565b5085935050505092915050565b60006020820190508181036000830152610f858184610f0d565b905092915050565b60008083601f840112610fa357610fa2610d64565b5b8235905067ffffffffffffffff811115610fc057610fbf610d69565b5b602083019150836020820283011115610fdc57610fdb610d6e565b5b9250929050565b60008060208385031215610ffa57610ff9610d5a565b5b600083013567ffffffffffffffff81111561101857611017610d5f565b5b61102485828601610f8d565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561109657808201518184015260208101905061107b565b60008484015250505050565b6000601f19601f8301169050919050565b60006110be8261105c565b6110c88185611067565b93506110d8818560208601611078565b6110e1816110a2565b840191505092915050565b60006110f883836110b3565b905092915050565b6000602082019050919050565b600061111882611030565b611122818561103b565b9350836020820285016111348561104c565b8060005b85811015611170578484038952815161115185826110ec565b945061115c83611100565b925060208a01995050600181019050611138565b50829750879550505050505092915050565b6000602082019050818103600083015261119c818461110d565b905092915050565b6000819050919050565b60006111c96111c46111bf84610e42565b6111a4565b610e42565b9050919050565b60006111db826111ae565b9050919050565b60006111ed826111d0565b9050919050565b6111fd816111e2565b82525050565b600060208201905061121860008301846111f4565b92915050565b6000611229826111d0565b9050919050565b6112398161121e565b82525050565b60006020820190506112546000830184611230565b92915050565b60008083601f8401126112705761126f610d64565b5b8235905067ffffffffffffffff81111561128d5761128c610d69565b5b6020830191508360808202830111156112a9576112a8610d6e565b5b9250929050565b600080602083850312156112c7576112c6610d5a565b5b600083013567ffffffffffffffff8111156112e5576112e4610d5f565b5b6112f18582860161125a565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b61133e81611329565b82525050565b60408201600082015161135a6000850182610e97565b50602082015161136d6020850182611335565b50505050565b600061137f8383611344565b60408301905092915050565b6000602082019050919050565b60006113a3826112fd565b6113ad8185611308565b93506113b883611319565b8060005b838110156113e95781516113d08882611373565b97506113db8361138b565b9250506001810190506113bc565b5085935050505092915050565b6113ff81610e8d565b82525050565b6000604082019050818103600083015261141f8185611398565b905061142e60208301846113f6565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061149e82610e42565b9050919050565b60006114b082611493565b9050919050565b6114c0816114a5565b81146114cb57600080fd5b50565b6000813590506114dd816114b7565b92915050565b6000602082840312156114f9576114f8610d5a565b5b6000611507848285016114ce565b91505092915050565b61151981610e42565b811461152457600080fd5b50565b60008151905061153681611510565b92915050565b61154581610e71565b811461155057600080fd5b50565b6000815190506115628161153c565b92915050565b600061ffff82169050919050565b61157f81611568565b811461158a57600080fd5b50565b60008151905061159c81611576565b92915050565b600060ff82169050919050565b6115b8816115a2565b81146115c357600080fd5b50565b6000815190506115d5816115af565b92915050565b6115e481611329565b81146115ef57600080fd5b50565b600081519050611601816115db565b92915050565b600080600080600080600060e0888a03121561162657611625610d5a565b5b60006116348a828b01611527565b97505060206116458a828b01611553565b96505060406116568a828b0161158d565b95505060606116678a828b0161158d565b94505060806116788a828b0161158d565b93505060a06116898a828b016115c6565b92505060c061169a8a828b016115f2565b91505092959891949750929550565b60006fffffffffffffffffffffffffffffffff82169050919050565b6116ce816116a9565b81146116d957600080fd5b50565b6000815190506116eb816116c5565b92915050565b60006020828403121561170757611706610d5a565b5b6000611715848285016116dc565b91505092915050565b61172781611493565b811461173257600080fd5b50565b6000813590506117448161171e565b92915050565b6000602082840312156117605761175f610d5a565b5b600061176e84828501611735565b91505092915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6117ac81611777565b82525050565b60006020820190506117c760008301846117a3565b92915050565b600081519050919050565b600081905092915050565b60006117ee826117cd565b6117f881856117d8565b9350611808818560208601611078565b80840191505092915050565b600061182082846117e3565b915081905092915050565b600080fd5b611839826110a2565b810181811067ffffffffffffffff8211171561185857611857611435565b5b80604052505050565b600061186b610d50565b90506118778282611830565b919050565b600067ffffffffffffffff82111561189757611896611435565b5b6118a0826110a2565b9050602081019050919050565b60006118c06118bb8461187c565b611861565b9050828152602081018484840111156118dc576118db61182b565b5b6118e7848285611078565b509392505050565b600082601f83011261190457611903610d64565b5b81516119148482602086016118ad565b91505092915050565b60006020828403121561193357611932610d5a565b5b600082015167ffffffffffffffff81111561195157611950610d5f565b5b61195d848285016118ef565b91505092915050565b600080fd5b60008135905061197a816115af565b92915050565b60006080828403121561199657611995611966565b5b6119a06080611861565b905060006119b0848285016114ce565b60008301525060206119c484828501611735565b60208301525060406119d884828501611735565b60408301525060606119ec8482850161196b565b60608301525092915050565b600060808284031215611a0e57611a0d610d5a565b5b6000611a1c84828501611980565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b6001851115611aab57808604811115611a8757611a86611a25565b5b6001851615611a965780820291505b8081029050611aa485611a54565b9450611a6b565b94509492505050565b600082611ac45760019050611b80565b81611ad25760009050611b80565b8160018114611ae85760028114611af257611b21565b6001915050611b80565b60ff841115611b0457611b03611a25565b5b8360020a915084821115611b1b57611b1a611a25565b5b50611b80565b5060208310610133831016604e8410600b8410161715611b565782820a905083811115611b5157611b50611a25565b5b611b80565b611b638484846001611a61565b92509050818404811115611b7a57611b79611a25565b5b81810290505b9392505050565b6000611b9282610e8d565b9150611b9d836115a2565b9250611bca7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611ab4565b905092915050565b611bdb81611493565b82525050565b600062ffffff82169050919050565b611bf981611be1565b82525050565b60a082016000820151611c156000850182611bd2565b506020820151611c286020850182611bd2565b506040820151611c3b6040850182610e97565b506060820151611c4e6060850182611bf0565b506080820151611c616080850182610e62565b50505050565b600060a082019050611c7c6000830184611bff565b92915050565b611c8b81610e8d565b8114611c9657600080fd5b50565b600081519050611ca881611c82565b92915050565b600063ffffffff82169050919050565b611cc781611cae565b8114611cd257600080fd5b50565b600081519050611ce481611cbe565b92915050565b60008060008060808587031215611d0457611d03610d5a565b5b6000611d1287828801611c99565b9450506020611d2387828801611527565b9350506040611d3487828801611cd5565b9250506060611d4587828801611c99565b91505092959194509250565b600060208284031215611d6757611d66610d5a565b5b6000611d7584828501611c99565b91505092915050565b611d8781611be1565b8114611d9257600080fd5b50565b600081519050611da481611d7e565b92915050565b600060208284031215611dc057611dbf610d5a565b5b6000611dce84828501611d95565b91505092915050565b611de081611493565b82525050565b611def81611be1565b82525050565b6000606082019050611e0a6000830186611dd7565b611e176020830185611dd7565b611e246040830184611de6565b949350505050565b6000611e3782610e42565b9050919050565b611e4781611e2c565b8114611e5257600080fd5b50565b600081519050611e6481611e3e565b92915050565b600060208284031215611e8057611e7f610d5a565b5b6000611e8e84828501611e55565b91505092915050565b6000611ea282610e8d565b9150611ead83610e8d565b9250828203905081811115611ec557611ec4611a25565b5b92915050565b6000611ed682610e8d565b9150611ee183610e8d565b9250611f0e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611ab4565b905092915050565b6000611f2182610e8d565b9150611f2c83610e8d565b9250828202611f3a81610e8d565b91508282048414831517611f5157611f50611a25565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611f9282610e8d565b9150611f9d83610e8d565b925082611fad57611fac611f58565b5b82820490509291505056fea2646970667358221220d8b96c068c43f2d96b2b745c57189244d3c23b76c76c71618274b8cb58f1ef9264736f6c634300081600330000000000000000000000001f98431c8ad98523631ae4a59f267346ea31f984000000000000000000000000ff86762915c0f1904234db475b53e4ef904c3626

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100575760003560e01c80631d20d10a1461005c5780634757efc11461008c5780634d20d0f8146100bc5780635b549182146100da578063ff514fa3146100f8575b600080fd5b61007660048036038101906100719190610dc9565b610129565b6040516100839190610f6b565b60405180910390f35b6100a660048036038101906100a19190610fe3565b610370565b6040516100b39190611182565b60405180910390f35b6100c461053b565b6040516100d19190611203565b60405180910390f35b6100e261055f565b6040516100ef919061123f565b60405180910390f35b610112600480360381019061010d91906112b0565b610583565b604051610120929190611405565b60405180910390f35b606060008383905090508067ffffffffffffffff81111561014d5761014c611435565b5b60405190808252806020026020018201604052801561018657816020015b610173610cfa565b81526020019060019003908161016b5790505b50915060005b818110156103685760008585838181106101a9576101a8611464565b5b90506020020160208101906101be91906114e3565b90508073ffffffffffffffffffffffffffffffffffffffff16633850c7bd6040518163ffffffff1660e01b815260040160e060405180830381865afa15801561020b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061022f9190611607565b90919293509091925090915090505085848151811061025157610250611464565b5b602002602001015160000186858151811061026f5761026e611464565b5b60200260200101516020018260020b60020b8152508273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050508073ffffffffffffffffffffffffffffffffffffffff16631a6865026040518163ffffffff1660e01b8152600401602060405180830381865afa158015610301573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061032591906116f1565b6fffffffffffffffffffffffffffffffff1684838151811061034a57610349611464565b5b6020026020010151604001818152505050808060010191505061018c565b505092915050565b606060008383905090508067ffffffffffffffff81111561039457610393611435565b5b6040519080825280602002602001820160405280156103c757816020015b60608152602001906001900390816103b25790505b50915060005b81811015610533576000808686848181106103eb576103ea611464565b5b9050602002016020810190610400919061174a565b73ffffffffffffffffffffffffffffffffffffffff167f95d89b41e2f5f391a79ec54e9d87c79d6e777c63e32c28da95b4e9e4a79250ec60405160200161044791906117b2565b6040516020818303038152906040526040516104639190611814565b600060405180830381855afa9150503d806000811461049e576040519150601f19603f3d011682016040523d82523d6000602084013e6104a3565b606091505b5091509150816104c25760405180602001604052806000815250610506565b60208151146104e457808060200190518101906104df919061191d565b610505565b806040516020016104f59190611814565b6040516020818303038152906040525b5b85848151811061051957610518611464565b5b6020026020010181905250505080806001019150506103cd565b505092915050565b7f000000000000000000000000ff86762915c0f1904234db475b53e4ef904c362681565b7f0000000000000000000000001f98431c8ad98523631ae4a59f267346ea31f98481565b6060600042905060008484905090508067ffffffffffffffff8111156105ac576105ab611435565b5b6040519080825280602002602001820160405280156105e557816020015b6105d2610d34565b8152602001906001900390816105ca5790505b50925060005b8181101561064f5761062486868381811061060957610608611464565b5b90506080020180360381019061061f91906119f8565b610658565b84828151811061063757610636611464565b5b602002602001018190525080806001019150506105eb565b50509250929050565b610660610d34565b60008061067084602001516108f6565b91509150806106805750506108f1565b60008061069086604001516108f6565b91509150806106a257505050506108f1565b600073ffffffffffffffffffffffffffffffffffffffff16866000015173ffffffffffffffffffffffffffffffffffffffff16036106e357505050506108f1565b6000806106f388600001516109e2565b9150915080610707575050505050506108f1565b61071a8860200151896040015184610af5565b73ffffffffffffffffffffffffffffffffffffffff16886000015173ffffffffffffffffffffffffffffffffffffffff161461075b575050505050506108f1565b60006040518060a001604052808a6020015173ffffffffffffffffffffffffffffffffffffffff1681526020018a6040015173ffffffffffffffffffffffffffffffffffffffff1681526020018a60600151600a6107b99190611b87565b81526020018462ffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff1681525090507f000000000000000000000000ff86762915c0f1904234db475b53e4ef904c362673ffffffffffffffffffffffffffffffffffffffff1663c6a5026a826040518263ffffffff1660e01b815260040161083f9190611c67565b6080604051808303816000875af192505050801561087b57506040513d601f19601f820116820180604052508101906108789190611cea565b60015b6108b7573d80600081146108ab576040519150601f19603f3d011682016040523d82523d6000602084013e6108b0565b606091505b50506108e9565b6108ca8d6060015160ff168c8b87610c23565b8c600001818152505060018c6020019015159081151581525050505050505b505050505050505b919050565b60008060608373ffffffffffffffffffffffffffffffffffffffff167f313ce567add4d438edf58b94ff345d7d38c45b17dfc0f947988d7819dca364f960405160200161094391906117b2565b60405160208183030381529060405260405161095f9190611814565b600060405180830381855afa9150503d806000811461099a576040519150601f19603f3d011682016040523d82523d6000602084013e61099f565b606091505b5080925081935050508180156109b757506000815114155b156109d757808060200190518101906109d09190611d51565b92506109dc565b600091505b50915091565b60008060608373ffffffffffffffffffffffffffffffffffffffff1663ddca3f4360e01b604051602401604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051610a769190611814565b600060405180830381855afa9150503d8060008114610ab1576040519150601f19603f3d011682016040523d82523d6000602084013e610ab6565b606091505b5080925081935050506000815103610ad15760009150610aef565b8115610aee5780806020019051810190610aeb9190611daa565b92505b5b50915091565b60008060007f0000000000000000000000001f98431c8ad98523631ae4a59f267346ea31f98473ffffffffffffffffffffffffffffffffffffffff16631698ee8260e01b878787604051602401610b4e93929190611df5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051610bb89190611814565b600060405180830381855afa9150503d8060008114610bf3576040519150601f19603f3d011682016040523d82523d6000602084013e610bf8565b606091505b50915091508115610c1a5780806020019051810190610c179190611e6a565b92505b50509392505050565b6000838503610c3457819050610c8d565b83851015610c66578484610c489190611e97565b600a610c549190611ecb565b82610c5f9190611f16565b9050610c8c565b8385610c729190611e97565b600a610c7e9190611ecb565b82610c899190611f87565b90505b5b6012830315610cf2576012831115610cca57601283610cac9190611e97565b600a610cb89190611ecb565b81610cc39190611f87565b9050610cf1565b826012610cd79190611e97565b600a610ce39190611ecb565b81610cee9190611f16565b90505b5b949350505050565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600060020b8152602001600081525090565b6040518060400160405280600081526020016000151581525090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610d8957610d88610d64565b5b8235905067ffffffffffffffff811115610da657610da5610d69565b5b602083019150836020820283011115610dc257610dc1610d6e565b5b9250929050565b60008060208385031215610de057610ddf610d5a565b5b600083013567ffffffffffffffff811115610dfe57610dfd610d5f565b5b610e0a85828601610d73565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b610e6b81610e42565b82525050565b60008160020b9050919050565b610e8781610e71565b82525050565b6000819050919050565b610ea081610e8d565b82525050565b606082016000820151610ebc6000850182610e62565b506020820151610ecf6020850182610e7e565b506040820151610ee26040850182610e97565b50505050565b6000610ef48383610ea6565b60608301905092915050565b6000602082019050919050565b6000610f1882610e16565b610f228185610e21565b9350610f2d83610e32565b8060005b83811015610f5e578151610f458882610ee8565b9750610f5083610f00565b925050600181019050610f31565b5085935050505092915050565b60006020820190508181036000830152610f858184610f0d565b905092915050565b60008083601f840112610fa357610fa2610d64565b5b8235905067ffffffffffffffff811115610fc057610fbf610d69565b5b602083019150836020820283011115610fdc57610fdb610d6e565b5b9250929050565b60008060208385031215610ffa57610ff9610d5a565b5b600083013567ffffffffffffffff81111561101857611017610d5f565b5b61102485828601610f8d565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561109657808201518184015260208101905061107b565b60008484015250505050565b6000601f19601f8301169050919050565b60006110be8261105c565b6110c88185611067565b93506110d8818560208601611078565b6110e1816110a2565b840191505092915050565b60006110f883836110b3565b905092915050565b6000602082019050919050565b600061111882611030565b611122818561103b565b9350836020820285016111348561104c565b8060005b85811015611170578484038952815161115185826110ec565b945061115c83611100565b925060208a01995050600181019050611138565b50829750879550505050505092915050565b6000602082019050818103600083015261119c818461110d565b905092915050565b6000819050919050565b60006111c96111c46111bf84610e42565b6111a4565b610e42565b9050919050565b60006111db826111ae565b9050919050565b60006111ed826111d0565b9050919050565b6111fd816111e2565b82525050565b600060208201905061121860008301846111f4565b92915050565b6000611229826111d0565b9050919050565b6112398161121e565b82525050565b60006020820190506112546000830184611230565b92915050565b60008083601f8401126112705761126f610d64565b5b8235905067ffffffffffffffff81111561128d5761128c610d69565b5b6020830191508360808202830111156112a9576112a8610d6e565b5b9250929050565b600080602083850312156112c7576112c6610d5a565b5b600083013567ffffffffffffffff8111156112e5576112e4610d5f565b5b6112f18582860161125a565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b61133e81611329565b82525050565b60408201600082015161135a6000850182610e97565b50602082015161136d6020850182611335565b50505050565b600061137f8383611344565b60408301905092915050565b6000602082019050919050565b60006113a3826112fd565b6113ad8185611308565b93506113b883611319565b8060005b838110156113e95781516113d08882611373565b97506113db8361138b565b9250506001810190506113bc565b5085935050505092915050565b6113ff81610e8d565b82525050565b6000604082019050818103600083015261141f8185611398565b905061142e60208301846113f6565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061149e82610e42565b9050919050565b60006114b082611493565b9050919050565b6114c0816114a5565b81146114cb57600080fd5b50565b6000813590506114dd816114b7565b92915050565b6000602082840312156114f9576114f8610d5a565b5b6000611507848285016114ce565b91505092915050565b61151981610e42565b811461152457600080fd5b50565b60008151905061153681611510565b92915050565b61154581610e71565b811461155057600080fd5b50565b6000815190506115628161153c565b92915050565b600061ffff82169050919050565b61157f81611568565b811461158a57600080fd5b50565b60008151905061159c81611576565b92915050565b600060ff82169050919050565b6115b8816115a2565b81146115c357600080fd5b50565b6000815190506115d5816115af565b92915050565b6115e481611329565b81146115ef57600080fd5b50565b600081519050611601816115db565b92915050565b600080600080600080600060e0888a03121561162657611625610d5a565b5b60006116348a828b01611527565b97505060206116458a828b01611553565b96505060406116568a828b0161158d565b95505060606116678a828b0161158d565b94505060806116788a828b0161158d565b93505060a06116898a828b016115c6565b92505060c061169a8a828b016115f2565b91505092959891949750929550565b60006fffffffffffffffffffffffffffffffff82169050919050565b6116ce816116a9565b81146116d957600080fd5b50565b6000815190506116eb816116c5565b92915050565b60006020828403121561170757611706610d5a565b5b6000611715848285016116dc565b91505092915050565b61172781611493565b811461173257600080fd5b50565b6000813590506117448161171e565b92915050565b6000602082840312156117605761175f610d5a565b5b600061176e84828501611735565b91505092915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6117ac81611777565b82525050565b60006020820190506117c760008301846117a3565b92915050565b600081519050919050565b600081905092915050565b60006117ee826117cd565b6117f881856117d8565b9350611808818560208601611078565b80840191505092915050565b600061182082846117e3565b915081905092915050565b600080fd5b611839826110a2565b810181811067ffffffffffffffff8211171561185857611857611435565b5b80604052505050565b600061186b610d50565b90506118778282611830565b919050565b600067ffffffffffffffff82111561189757611896611435565b5b6118a0826110a2565b9050602081019050919050565b60006118c06118bb8461187c565b611861565b9050828152602081018484840111156118dc576118db61182b565b5b6118e7848285611078565b509392505050565b600082601f83011261190457611903610d64565b5b81516119148482602086016118ad565b91505092915050565b60006020828403121561193357611932610d5a565b5b600082015167ffffffffffffffff81111561195157611950610d5f565b5b61195d848285016118ef565b91505092915050565b600080fd5b60008135905061197a816115af565b92915050565b60006080828403121561199657611995611966565b5b6119a06080611861565b905060006119b0848285016114ce565b60008301525060206119c484828501611735565b60208301525060406119d884828501611735565b60408301525060606119ec8482850161196b565b60608301525092915050565b600060808284031215611a0e57611a0d610d5a565b5b6000611a1c84828501611980565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b6001851115611aab57808604811115611a8757611a86611a25565b5b6001851615611a965780820291505b8081029050611aa485611a54565b9450611a6b565b94509492505050565b600082611ac45760019050611b80565b81611ad25760009050611b80565b8160018114611ae85760028114611af257611b21565b6001915050611b80565b60ff841115611b0457611b03611a25565b5b8360020a915084821115611b1b57611b1a611a25565b5b50611b80565b5060208310610133831016604e8410600b8410161715611b565782820a905083811115611b5157611b50611a25565b5b611b80565b611b638484846001611a61565b92509050818404811115611b7a57611b79611a25565b5b81810290505b9392505050565b6000611b9282610e8d565b9150611b9d836115a2565b9250611bca7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611ab4565b905092915050565b611bdb81611493565b82525050565b600062ffffff82169050919050565b611bf981611be1565b82525050565b60a082016000820151611c156000850182611bd2565b506020820151611c286020850182611bd2565b506040820151611c3b6040850182610e97565b506060820151611c4e6060850182611bf0565b506080820151611c616080850182610e62565b50505050565b600060a082019050611c7c6000830184611bff565b92915050565b611c8b81610e8d565b8114611c9657600080fd5b50565b600081519050611ca881611c82565b92915050565b600063ffffffff82169050919050565b611cc781611cae565b8114611cd257600080fd5b50565b600081519050611ce481611cbe565b92915050565b60008060008060808587031215611d0457611d03610d5a565b5b6000611d1287828801611c99565b9450506020611d2387828801611527565b9350506040611d3487828801611cd5565b9250506060611d4587828801611c99565b91505092959194509250565b600060208284031215611d6757611d66610d5a565b5b6000611d7584828501611c99565b91505092915050565b611d8781611be1565b8114611d9257600080fd5b50565b600081519050611da481611d7e565b92915050565b600060208284031215611dc057611dbf610d5a565b5b6000611dce84828501611d95565b91505092915050565b611de081611493565b82525050565b611def81611be1565b82525050565b6000606082019050611e0a6000830186611dd7565b611e176020830185611dd7565b611e246040830184611de6565b949350505050565b6000611e3782610e42565b9050919050565b611e4781611e2c565b8114611e5257600080fd5b50565b600081519050611e6481611e3e565b92915050565b600060208284031215611e8057611e7f610d5a565b5b6000611e8e84828501611e55565b91505092915050565b6000611ea282610e8d565b9150611ead83610e8d565b9250828203905081811115611ec557611ec4611a25565b5b92915050565b6000611ed682610e8d565b9150611ee183610e8d565b9250611f0e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611ab4565b905092915050565b6000611f2182610e8d565b9150611f2c83610e8d565b9250828202611f3a81610e8d565b91508282048414831517611f5157611f50611a25565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611f9282610e8d565b9150611f9d83610e8d565b925082611fad57611fac611f58565b5b82820490509291505056fea2646970667358221220d8b96c068c43f2d96b2b745c57189244d3c23b76c76c71618274b8cb58f1ef9264736f6c63430008160033

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

0000000000000000000000001f98431c8ad98523631ae4a59f267346ea31f984000000000000000000000000ff86762915c0f1904234db475b53e4ef904c3626

-----Decoded View---------------
Arg [0] : _factory (address): 0x1F98431c8aD98523631AE4a59f267346ea31F984
Arg [1] : _quoter (address): 0xFf86762915c0F1904234DB475b53E4ef904C3626

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000001f98431c8ad98523631ae4a59f267346ea31f984
Arg [1] : 000000000000000000000000ff86762915c0f1904234db475b53e4ef904c3626


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

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