ETH Price: $1,980.90 (-4.54%)

Contract

0x67a2afa58Ee0a32D0D33384E9fE204086D29CCfA
 

Overview

ETH Balance

0.013504371897088 ETH

Eth Value

$26.75 (@ $1,980.90/ETH)

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Burn Token228227162025-07-01 6:51:35248 days ago1751352695IN
0x67a2afa5...86D29CCfA
0 ETH0.000051480.34467323
Burn Token211459042024-11-08 22:27:11483 days ago1731104831IN
0x67a2afa5...86D29CCfA
0 ETH0.0025365511.88258568
Burn Token210016632024-10-19 19:19:35503 days ago1729365575IN
0x67a2afa5...86D29CCfA
0 ETH0.001192917.9844101
Burn Token209744452024-10-16 0:08:47507 days ago1729037327IN
0x67a2afa5...86D29CCfA
0 ETH0.00141899.5
Burn Token209447062024-10-11 20:17:23511 days ago1728677843IN
0x67a2afa5...86D29CCfA
0 ETH0.000332099.92080886
Burn Token209446842024-10-11 20:12:47511 days ago1728677567IN
0x67a2afa5...86D29CCfA
0 ETH0.0016581411.10482096
Burn Token209323912024-10-10 3:02:23512 days ago1728529343IN
0x67a2afa5...86D29CCfA
0 ETH0.001560688.70335963
Burn Token209256972024-10-09 4:39:11513 days ago1728448751IN
0x67a2afa5...86D29CCfA
0 ETH0.001358359.09754442
Burn Token209166822024-10-07 22:30:11515 days ago1728340211IN
0x67a2afa5...86D29CCfA
0 ETH0.0019175511.05105961
Burn Token209118692024-10-07 6:24:23515 days ago1728282263IN
0x67a2afa5...86D29CCfA
0 ETH0.001257747.01637624
Burn Token208893292024-10-04 3:01:11518 days ago1728010871IN
0x67a2afa5...86D29CCfA
0 ETH0.000138054.12412727
Burn Token208893292024-10-04 3:01:11518 days ago1728010871IN
0x67a2afa5...86D29CCfA
0 ETH0.000730824.07412727
Burn Token208752312024-10-02 3:49:35520 days ago1727840975IN
0x67a2afa5...86D29CCfA
0 ETH0.000765715.12694494
Burn Token208586402024-09-29 20:18:35523 days ago1727641115IN
0x67a2afa5...86D29CCfA
0 ETH0.001551268.65178883
Burn Token208398852024-09-27 5:31:59525 days ago1727415119IN
0x67a2afa5...86D29CCfA
0 ETH0.001618279.02583421
Burn Token208324272024-09-26 4:34:35526 days ago1727325275IN
0x67a2afa5...86D29CCfA
0 ETH0.0018609912.87030514
Burn Token208324252024-09-26 4:34:11526 days ago1727325251IN
0x67a2afa5...86D29CCfA
0 ETH0.0015845910.60269431
Burn Token208324172024-09-26 4:32:35526 days ago1727325155IN
0x67a2afa5...86D29CCfA
0 ETH0.0019098610.64646598
Burn Token208008382024-09-21 18:47:23531 days ago1726944443IN
0x67a2afa5...86D29CCfA
0 ETH0.001441699.65323593
Burn Token208008212024-09-21 18:43:59531 days ago1726944239IN
0x67a2afa5...86D29CCfA
0 ETH0.0015441910.3395565
Burn Token207807392024-09-18 23:24:23534 days ago1726701863IN
0x67a2afa5...86D29CCfA
0 ETH0.000830775.78455578
Burn Token207734472024-09-17 22:56:47535 days ago1726613807IN
0x67a2afa5...86D29CCfA
0 ETH0.001187858.21668635
Burn Token207629162024-09-16 11:35:35536 days ago1726486535IN
0x67a2afa5...86D29CCfA
0 ETH0.000818715.66232899
Burn Token207369472024-09-12 20:34:11540 days ago1726173251IN
0x67a2afa5...86D29CCfA
0 ETH0.000836984.79540505
Burn Token207154852024-09-09 20:37:11543 days ago1725914231IN
0x67a2afa5...86D29CCfA
0 ETH0.000939696.49976644
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer232121012025-08-24 16:19:59194 days ago1756052399
0x67a2afa5...86D29CCfA
0.0025 ETH
Transfer229040442025-07-12 15:40:47237 days ago1752334847
0x67a2afa5...86D29CCfA
0.01 ETH
Transfer228227162025-07-01 6:51:35248 days ago1751352695
0x67a2afa5...86D29CCfA
0.00385508 ETH
Exact Input Sing...228227162025-07-01 6:51:35248 days ago1751352695
0x67a2afa5...86D29CCfA
0.38165304 ETH
Transfer225531492025-05-24 13:58:47286 days ago1748095127
0x67a2afa5...86D29CCfA
0.0025 ETH
Transfer224037382025-05-03 14:05:11307 days ago1746281111
0x67a2afa5...86D29CCfA
0.0025 ETH
Transfer217639672025-02-03 5:42:59396 days ago1738561379
0x67a2afa5...86D29CCfA
0.0025 ETH
Transfer217083832025-01-26 11:26:47404 days ago1737890807
0x67a2afa5...86D29CCfA
0.0025025 ETH
Transfer217026552025-01-25 16:16:35405 days ago1737821795
0x67a2afa5...86D29CCfA
0.0025 ETH
Transfer216776502025-01-22 4:29:59408 days ago1737520199
0x67a2afa5...86D29CCfA
0.0025 ETH
Transfer216708062025-01-21 5:34:47409 days ago1737437687
0x67a2afa5...86D29CCfA
0.0025 ETH
Transfer215514862025-01-04 13:43:11426 days ago1735998191
0x67a2afa5...86D29CCfA
0.0025 ETH
Transfer215387002025-01-02 18:52:11428 days ago1735843931
0x67a2afa5...86D29CCfA
0.0025 ETH
Transfer215368902025-01-02 12:49:35428 days ago1735822175
0x67a2afa5...86D29CCfA
0.002505 ETH
Transfer215352512025-01-02 7:19:59428 days ago1735802399
0x67a2afa5...86D29CCfA
0.0025025 ETH
Transfer215347052025-01-02 5:30:47428 days ago1735795847
0x67a2afa5...86D29CCfA
0.0025 ETH
Transfer214870062024-12-26 13:42:11435 days ago1735220531
0x67a2afa5...86D29CCfA
0.0025 ETH
Transfer214601832024-12-22 19:40:11439 days ago1734896411
0x67a2afa5...86D29CCfA
0.0025 ETH
Transfer214377252024-12-19 16:21:23442 days ago1734625283
0x67a2afa5...86D29CCfA
0.0025 ETH
Transfer214331182024-12-19 0:53:23442 days ago1734569603
0x67a2afa5...86D29CCfA
0.0025025 ETH
Transfer214299542024-12-18 14:16:35443 days ago1734531395
0x67a2afa5...86D29CCfA
0.0025 ETH
Transfer214261642024-12-18 1:34:11443 days ago1734485651
0x67a2afa5...86D29CCfA
0.00502 ETH
Transfer214239782024-12-17 18:14:35444 days ago1734459275
0x67a2afa5...86D29CCfA
0.0025075 ETH
Transfer214232072024-12-17 15:39:23444 days ago1734449963
0x67a2afa5...86D29CCfA
0.002505 ETH
Transfer214231162024-12-17 15:21:11444 days ago1734448871
0x67a2afa5...86D29CCfA
0.0025025 ETH
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

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

Contract Source Code Verified (Exact Match)

Contract Name:
QBuyBurn

Compiler Version
v0.8.25+commit.b61c2a91

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2024-05-27
*/

// File: contracts/interfaces/ISwapRouterMinimal.sol


pragma solidity ^0.8.23;

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

    struct ExactInputSingleParams {
        address tokenIn;
        address tokenOut;
        uint24 fee;
        address recipient;
        uint256 deadline;
        uint256 amountIn;
        uint256 amountOutMinimum;
        uint160 sqrtPriceLimitX96;
    }

    function exactInputSingle(ExactInputSingleParams calldata params) external payable returns (uint256 amountOut);
    
    function exactOutputSingle(ExactOutputSingleParams calldata params) external payable returns (uint256 amountOut);
}
// File: contracts/interfaces/IWETH9Minimal.sol


pragma solidity ^0.8.23;

interface IWETH9Minimal {
    function approve(address guy, uint256 wad) external returns(bool);

    function deposit() external payable;
}
// 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 = 0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54;

    /// @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/IUniswapV3PoolErrors.sol


pragma solidity >=0.5.0;

/// @title Errors emitted by a pool
/// @notice Contains all events emitted by the pool
interface IUniswapV3PoolErrors {
    error LOK();
    error TLU();
    error TLM();
    error TUM();
    error AI();
    error M0();
    error M1();
    error AS();
    error IIA();
    error L();
    error F0();
    error F1();
}

// 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
    /// @return 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.
    /// @return observationIndex The index of the last oracle observation that was written,
    /// @return observationCardinality The current maximum number of observations stored in the pool,
    /// @return observationCardinalityNext The next maximum number of observations, to be updated when the observation.
    /// @return 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
    /// @return The liquidity at the current price of the pool
    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
    /// @return liquidityNet how much liquidity changes when the pool price crosses the tick,
    /// @return feeGrowthOutside0X128 the fee growth on the other side of the tick from the current tick in token0,
    /// @return feeGrowthOutside1X128 the fee growth on the other side of the tick from the current tick in token1,
    /// @return tickCumulativeOutside the cumulative tick value on the other side of the tick from the current tick
    /// @return secondsPerLiquidityOutsideX128 the seconds spent per liquidity on the other side of the tick from the current tick,
    /// @return secondsOutside the seconds spent on the other side of the tick from the current tick,
    /// @return 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,
    /// @return feeGrowthInside0LastX128 fee growth of token0 inside the tick range as of the last mint/burn/poke,
    /// @return feeGrowthInside1LastX128 fee growth of token1 inside the tick range as of the last mint/burn/poke,
    /// @return tokensOwed0 the computed amount of token0 owed to the position as of the last mint/burn/poke,
    /// @return 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,
    /// @return tickCumulative the tick multiplied by seconds elapsed for the life of the pool as of the observation timestamp,
    /// @return secondsPerLiquidityCumulativeX128 the seconds per in range liquidity for the life of the pool as of the observation timestamp,
    /// @return 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,
    IUniswapV3PoolErrors,
    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: contracts/QBuyBurn.sol


pragma solidity ^0.8.24;





contract QBuyBurn {

    uint256 public i_initialTimestamp;

    uint256 constant i_periodDuration = 1 days;

    uint256 public firstCycleReceivedEther;

    uint256 public globalCountForDays;

    uint256 public collectedAmount;

    address immutable Q; 
    
    address immutable Q_WETH9_Pool;    

    address constant UNISWAP_V3_FACTORY = 0x1F98431c8aD98523631AE4a59f267346ea31F984;

    address constant WETH9 = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; 

    address constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD;

    address constant SWAP_ROUTER = 0xE592427A0AEce92De3Edee1F18E0157C05861564;

    mapping(uint256 => bool) public feeAlreadyDistributed;

    uint24 constant poolFee = 10000;

    receive() external payable {
        if(block.timestamp < i_initialTimestamp + 1 days) {
            firstCycleReceivedEther += msg.value;
         } else {
            collectedAmount += msg.value;
         }
    }

    constructor(address _qAddress) {
        i_initialTimestamp = block.timestamp;
        Q_WETH9_Pool = computePoolAddress(WETH9, _qAddress, poolFee);
        Q = _qAddress;
    }

    function burnToken(uint256 amountToBurn, uint256 deadline) public {
        require(msg.sender == tx.origin, "Use EOA!");
        require(isContract(Q_WETH9_Pool), "Pool does not exist!");
        require(block.timestamp > i_initialTimestamp + 1 days, "Early burn!");
        require(amountToBurn >= 0.1 ether, "Min 0.1 ETH");

        uint256 theFiftiethPart = (firstCycleReceivedEther / 50);
        uint256 amountToCompare = collectedAmount;
        uint256 currentCycle = getCurrentCycle();

        uint256 amountETH;
        uint256 callerPercent;

        if(globalCountForDays < 50 && !feeAlreadyDistributed[currentCycle]) {
            amountToCompare = collectedAmount + theFiftiethPart;
            require(amountToCompare >= amountToBurn, "Insufficient funds!");
            
            if(collectedAmount >= amountToBurn) {
                collectedAmount -= amountToBurn;
                amountToBurn += theFiftiethPart;
            } else {
                if(amountToBurn > theFiftiethPart) {
                    if(collectedAmount >= amountToBurn - theFiftiethPart) {
                        collectedAmount -= amountToBurn - theFiftiethPart;
                    }
                } else {
                amountToBurn = theFiftiethPart;
                }
            }
            globalCountForDays ++;
            feeAlreadyDistributed[currentCycle] = true;
        } else {
            require(amountToCompare >= amountToBurn, "Insufficient funds!");
            collectedAmount -= amountToBurn;
        }
        callerPercent = amountToBurn / 100;
        amountETH = amountToBurn - callerPercent;

        uint256 amountOutExpected = _getQuote(uint128(amountETH));
        uint256 minTokenAmount = (amountOutExpected * 90) / 100;
        require(minTokenAmount > 0, "Min > 0");

        _swap(minTokenAmount, amountETH, deadline);

        (bool success,) = payable(msg.sender).call{value: callerPercent}("");
        require(success, "Transfer failed.");
    }

    function _swap(uint256 amountOutMinimum, uint256 amountIn, uint256 deadline) private {
        ISwapRouterMinimal.ExactInputSingleParams memory params =
            ISwapRouterMinimal.ExactInputSingleParams({
                tokenIn: WETH9,
                tokenOut: Q,
                fee: poolFee,
                recipient: BURN_ADDRESS,
                deadline: deadline,
                amountIn: amountIn,
                amountOutMinimum: amountOutMinimum,
                sqrtPriceLimitX96: 0
            });

        ISwapRouterMinimal(SWAP_ROUTER).exactInputSingle{value: amountIn}(params);
    }

    function _getQuote(uint128 amountIn) public view returns(uint256 amountOut) {
        (int24 tick, ) = OracleLibrary.consult(Q_WETH9_Pool, 1);
        amountOut = OracleLibrary.getQuoteAtTick(tick, amountIn, WETH9, Q);
    }

    function isContract(address _addr) private view returns (bool) {
        uint32 size;
        assembly {
            size := extcodesize(_addr)
        }
        return (size > 0);
    }

    function computePoolAddress(address tokenA, address tokenB, uint24 fee) public pure returns (address pool) {
        (address token0, address token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        PoolAddress.PoolKey memory key = PoolAddress.PoolKey({token0: token0, token1: token1, fee: fee});
        pool = PoolAddress.computeAddress(UNISWAP_V3_FACTORY, key);
        return pool;
    }   

    function getCurrentCycle() public view returns (uint256) {
        return (block.timestamp - i_initialTimestamp) / i_periodDuration;
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_qAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"T","type":"error"},{"inputs":[{"internalType":"uint128","name":"amountIn","type":"uint128"}],"name":"_getQuote","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountToBurn","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"burnToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"}],"name":"computePoolAddress","outputs":[{"internalType":"address","name":"pool","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"feeAlreadyDistributed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstCycleReceivedEther","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentCycle","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"globalCountForDays","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"i_initialTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c060405234801561000f575f80fd5b5060405161170438038061170483398101604081905261002e916101e1565b425f5561005273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc282612710610069565b6001600160a01b0390811660a0521660805261020e565b5f805f846001600160a01b0316866001600160a01b03161061008c57848661008f565b85855b604080516060810182526001600160a01b0380851682528316602082015262ffffff88169181019190915291935091506100dd731f98431c8ad98523631ae4a59f267346ea31f984826100e8565b979650505050505050565b5f81602001516001600160a01b0316825f01516001600160a01b03161061010d575f80fd5b815160208084015160408086015181516001600160a01b0395861681860152949092168482015262ffffff90911660608085019190915281518085038201815260808501909252815191909201207fff0000000000000000000000000000000000000000000000000000000000000060a08401529085901b6001600160601b03191660a183015260b58201527fe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b5460d582015260f50160408051601f1981840301815291905280516020909101209392505050565b5f602082840312156101f1575f80fd5b81516001600160a01b0381168114610207575f80fd5b9392505050565b60805160a0516114c761023d5f395f81816102c4015261063001525f818161067501526107c701526114c75ff3fe608060405260043610610078575f3560e01c806309c2bc96146100cc57806355ecf5a81461010f578063802c6ee5146101465780638225b247146101695780638bd95563146101885780638fe075961461019c578063b70872e6146101bb578063bdc639bc146101d0578063be26ed7f146101e5575f80fd5b366100c8575f5461008c9062015180610fe4565b4210156100af573460015f8282546100a49190610fe4565b909155506100c69050565b3460035f8282546100c09190610fe4565b90915550505b005b5f80fd5b3480156100d7575f80fd5b506100fa6100e6366004610ffd565b60046020525f908152604090205460ff1681565b60405190151581526020015b60405180910390f35b34801561011a575f80fd5b5061012e61012936600461102b565b6101f9565b6040516001600160a01b039091168152602001610106565b348015610151575f80fd5b5061015b60035481565b604051908152602001610106565b348015610174575f80fd5b506100c661018336600461107a565b610283565b348015610193575f80fd5b5061015b5f5481565b3480156101a7575f80fd5b5061015b6101b636600461109a565b610629565b3480156101c6575f80fd5b5061015b60015481565b3480156101db575f80fd5b5061015b60025481565b3480156101f0575f80fd5b5061015b610699565b5f805f846001600160a01b0316866001600160a01b03161061021c57848661021f565b85855b915091505f6040518060600160405280846001600160a01b03168152602001836001600160a01b031681526020018662ffffff168152509050610276731f98431c8ad98523631ae4a59f267346ea31f984826106ba565b93505050505b9392505050565b3332146102c25760405162461bcd60e51b815260206004820152600860248201526755736520454f412160c01b60448201526064015b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000003b63ffffffff1661032d5760405162461bcd60e51b8152602060048201526014602482015273506f6f6c20646f6573206e6f742065786973742160601b60448201526064016102b9565b5f5461033c9062015180610fe4565b42116103785760405162461bcd60e51b815260206004820152600b60248201526a4561726c79206275726e2160a81b60448201526064016102b9565b67016345785d8a00008210156103be5760405162461bcd60e51b815260206004820152600b60248201526a09ad2dc40605c62408aa8960ab1b60448201526064016102b9565b5f60326001546103ce91906110d4565b6003549091505f6103dd610699565b90505f80603260025410801561040157505f8381526004602052604090205460ff16155b156104db57846003546104149190610fe4565b9350868410156104365760405162461bcd60e51b81526004016102b9906110e7565b8660035410610467578660035f8282546104509190611114565b9091555061046090508588610fe4565b96506104aa565b848711156104a6576104798588611114565b600354106104a15761048b8588611114565b60035f82825461049b9190611114565b90915550505b6104aa565b8496505b60028054905f6104b983611127565b90915550505f838152600460205260409020805460ff19166001179055610512565b868410156104fb5760405162461bcd60e51b81526004016102b9906110e7565b8660035f82825461050c9190611114565b90915550505b61051d6064886110d4565b90506105298188611114565b91505f61053583610629565b90505f606461054583605a61113f565b61054f91906110d4565b90505f811161058a5760405162461bcd60e51b815260206004820152600760248201526604d696e203e20360cc1b60448201526064016102b9565b61059581858a61079b565b6040515f90339085908381818185875af1925050503d805f81146105d4576040519150601f19603f3d011682016040523d82523d5f602084013e6105d9565b606091505b505090508061061d5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064016102b9565b50505050505050505050565b5f806106567f000000000000000000000000000000000000000000000000000000000000000060016108d7565b50905061027c818473c02aaa39b223fe8d0a0e5c4f27ead9083c756cc27f0000000000000000000000000000000000000000000000000000000000000000610b10565b5f620151805f54426106ab9190611114565b6106b591906110d4565b905090565b5f81602001516001600160a01b0316825f01516001600160a01b0316106106df575f80fd5b815160208084015160408086015181516001600160a01b0395861681860152949092168482015262ffffff90911660608085019190915281518085038201815260808501909252815191909201206001600160f81b031960a08401529085901b6001600160601b03191660a183015260b58201527fe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b5460d582015260f50160408051601f1981840301815291905280516020909101209392505050565b604080516101008101825273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166020830190815261271083850190815261dead606085019081526080850187815260a0860189815260c087018b81525f60e08901908152985163414bf38960e01b8152885188166004820152955187166024870152935162ffffff1660448601529151851660648501525160848401525160a48301525160c482015292511660e48301529073e592427a0aece92de3edee1f18e0157c058615649063414bf3899085906101040160206040518083038185885af11580156108ab573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906108d09190611156565b5050505050565b5f808263ffffffff165f036109135760405162461bcd60e51b8152602060048201526002602482015261042560f41b60448201526064016102b9565b6040805160028082526060820183525f9260208301908036833701905050905083815f8151811061094657610946611181565b602002602001019063ffffffff16908163ffffffff16815250505f8160018151811061097457610974611181565b602002602001019063ffffffff16908163ffffffff16815250505f80866001600160a01b031663883bdbfd846040518263ffffffff1660e01b81526004016109bc9190611195565b5f60405180830381865afa1580156109d6573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526109fd91908101906112a5565b915091505f825f81518110610a1457610a14611181565b602002602001015183600181518110610a2f57610a2f611181565b6020026020010151610a419190611368565b90505f825f81518110610a5657610a56611181565b602002602001015183600181518110610a7157610a71611181565b6020026020010151610a839190611395565b9050610a9563ffffffff8916836113bc565b96505f8260060b128015610aba5750610ab463ffffffff8916836113f8565b60060b15155b15610acd5786610ac981611419565b9750505b5f610ae56001600160a01b0363ffffffff8b1661143a565b9050610b01600160201b600160c01b03602084901b168261146c565b96505050505050509250929050565b5f80610b1b86610c16565b90506001600160801b036001600160a01b03821611610ba0575f610b486001600160a01b0383168061113f565b9050836001600160a01b0316856001600160a01b031610610b8057610b7b600160c01b876001600160801b031683610f26565b610b98565b610b9881876001600160801b0316600160c01b610f26565b925050610c0d565b5f610bb96001600160a01b03831680600160401b610f26565b9050836001600160a01b0316856001600160a01b031610610bf157610bec600160801b876001600160801b031683610f26565b610c09565b610c0981876001600160801b0316600160801b610f26565b9250505b50949350505050565b5f805f8360020b12610c2b578260020b610c32565b8260020b5f035b9050620d89e8811115610c58576040516315e4079d60e11b815260040160405180910390fd5b5f816001165f03610c6d57600160801b610c7f565b6ffffcb933bd6fad37aa2d162d1a5940015b6001600160881b031690506002821615610ca9576ffff97272373d413259a46990580e213a0260801c5b6004821615610cc8576ffff2e50f5f656932ef12357cf3c7fdcc0260801c5b6008821615610ce7576fffe5caca7e10e4e61c3624eaa0941cd00260801c5b6010821615610d06576fffcb9843d60f6159c9db58835c9266440260801c5b6020821615610d25576fff973b41fa98c081472e6896dfb254c00260801c5b6040821615610d44576fff2ea16466c96a3843ec78b326b528610260801c5b6080821615610d63576ffe5dee046a99a2a811c461f1969c30530260801c5b610100821615610d83576ffcbe86c7900a88aedcffc83b479aa3a40260801c5b610200821615610da3576ff987a7253ac413176f2b074cf7815e540260801c5b610400821615610dc3576ff3392b0822b70005940c7a398e4b70f30260801c5b610800821615610de3576fe7159475a2c29b7443b29c7fa6e889d90260801c5b611000821615610e03576fd097f3bdfd2022b8845ad8f792aa58250260801c5b612000821615610e23576fa9f746462d870fdf8a65dc1f90e061e50260801c5b614000821615610e43576f70d869a156d2a1b890bb3df62baf32f70260801c5b618000821615610e63576f31be135f97d08fd981231505542fcfa60260801c5b62010000821615610e84576f09aa508b5b7a84e1c677de54f3e99bc90260801c5b62020000821615610ea4576e5d6af8dedb81196699c329225ee6040260801c5b62040000821615610ec3576d2216e584f5fa1ea926041bedfe980260801c5b62080000821615610ee0576b048a170391f7dc42444e8fa20260801c5b5f8460020b1315610eff57805f1981610efb57610efb6110c0565b0490505b600160201b810615610f12576001610f14565b5f5b60ff16602082901c0192505050919050565b5f80805f19858709858702925082811083820303915050805f03610f5a575f8411610f4f575f80fd5b50829004905061027c565b808411610f65575f80fd5b5f848688095f868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150509392505050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610ff757610ff7610fd0565b92915050565b5f6020828403121561100d575f80fd5b5035919050565b6001600160a01b0381168114611028575f80fd5b50565b5f805f6060848603121561103d575f80fd5b833561104881611014565b9250602084013561105881611014565b9150604084013562ffffff8116811461106f575f80fd5b809150509250925092565b5f806040838503121561108b575f80fd5b50508035926020909101359150565b5f602082840312156110aa575f80fd5b81356001600160801b038116811461027c575f80fd5b634e487b7160e01b5f52601260045260245ffd5b5f826110e2576110e26110c0565b500490565b602080825260139082015272496e73756666696369656e742066756e64732160681b604082015260600190565b81810381811115610ff757610ff7610fd0565b5f6001820161113857611138610fd0565b5060010190565b8082028115828204841417610ff757610ff7610fd0565b5f60208284031215611166575f80fd5b5051919050565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b602080825282518282018190525f9190848201906040850190845b818110156111d257835163ffffffff16835292840192918401916001016111b0565b50909695505050505050565b604051601f8201601f191681016001600160401b03811182821017156112065761120661116d565b604052919050565b5f6001600160401b038211156112265761122661116d565b5060051b60200190565b5f82601f83011261123f575f80fd5b8151602061125461124f8361120e565b6111de565b8083825260208201915060208460051b870101935086841115611275575f80fd5b602086015b8481101561129a57805161128d81611014565b835291830191830161127a565b509695505050505050565b5f80604083850312156112b6575f80fd5b82516001600160401b03808211156112cc575f80fd5b818501915085601f8301126112df575f80fd5b815160206112ef61124f8361120e565b82815260059290921b8401810191818101908984111561130d575f80fd5b948201945b838610156113395785518060060b811461132a575f80fd5b82529482019490820190611312565b91880151919650909350505080821115611351575f80fd5b5061135e85828601611230565b9150509250929050565b600682810b9082900b03667fffffffffffff198112667fffffffffffff82131715610ff757610ff7610fd0565b6001600160a01b038281168282160390808211156113b5576113b5610fd0565b5092915050565b5f8160060b8360060b806113d2576113d26110c0565b667fffffffffffff1982145f19821416156113ef576113ef610fd0565b90059392505050565b5f8260060b8061140a5761140a6110c0565b808360060b0791505092915050565b5f8160020b627fffff19810361143157611431610fd0565b5f190192915050565b6001600160c01b0382811682821681810283169291811582850482141761146357611463610fd0565b50505092915050565b5f6001600160c01b0383811680611485576114856110c0565b9216919091049291505056fea264697066735822122043b7cbc864d2a2bc0e7cf6b8e190075c230a223b9a7de607cd250c85d679014164736f6c63430008190033000000000000000000000000aca40632c51c2a03209d2714b88aa0f1456a2101

Deployed Bytecode

0x608060405260043610610078575f3560e01c806309c2bc96146100cc57806355ecf5a81461010f578063802c6ee5146101465780638225b247146101695780638bd95563146101885780638fe075961461019c578063b70872e6146101bb578063bdc639bc146101d0578063be26ed7f146101e5575f80fd5b366100c8575f5461008c9062015180610fe4565b4210156100af573460015f8282546100a49190610fe4565b909155506100c69050565b3460035f8282546100c09190610fe4565b90915550505b005b5f80fd5b3480156100d7575f80fd5b506100fa6100e6366004610ffd565b60046020525f908152604090205460ff1681565b60405190151581526020015b60405180910390f35b34801561011a575f80fd5b5061012e61012936600461102b565b6101f9565b6040516001600160a01b039091168152602001610106565b348015610151575f80fd5b5061015b60035481565b604051908152602001610106565b348015610174575f80fd5b506100c661018336600461107a565b610283565b348015610193575f80fd5b5061015b5f5481565b3480156101a7575f80fd5b5061015b6101b636600461109a565b610629565b3480156101c6575f80fd5b5061015b60015481565b3480156101db575f80fd5b5061015b60025481565b3480156101f0575f80fd5b5061015b610699565b5f805f846001600160a01b0316866001600160a01b03161061021c57848661021f565b85855b915091505f6040518060600160405280846001600160a01b03168152602001836001600160a01b031681526020018662ffffff168152509050610276731f98431c8ad98523631ae4a59f267346ea31f984826106ba565b93505050505b9392505050565b3332146102c25760405162461bcd60e51b815260206004820152600860248201526755736520454f412160c01b60448201526064015b60405180910390fd5b7f0000000000000000000000001a5a974874ba51a7b38e30f63449495c58b243e73b63ffffffff1661032d5760405162461bcd60e51b8152602060048201526014602482015273506f6f6c20646f6573206e6f742065786973742160601b60448201526064016102b9565b5f5461033c9062015180610fe4565b42116103785760405162461bcd60e51b815260206004820152600b60248201526a4561726c79206275726e2160a81b60448201526064016102b9565b67016345785d8a00008210156103be5760405162461bcd60e51b815260206004820152600b60248201526a09ad2dc40605c62408aa8960ab1b60448201526064016102b9565b5f60326001546103ce91906110d4565b6003549091505f6103dd610699565b90505f80603260025410801561040157505f8381526004602052604090205460ff16155b156104db57846003546104149190610fe4565b9350868410156104365760405162461bcd60e51b81526004016102b9906110e7565b8660035410610467578660035f8282546104509190611114565b9091555061046090508588610fe4565b96506104aa565b848711156104a6576104798588611114565b600354106104a15761048b8588611114565b60035f82825461049b9190611114565b90915550505b6104aa565b8496505b60028054905f6104b983611127565b90915550505f838152600460205260409020805460ff19166001179055610512565b868410156104fb5760405162461bcd60e51b81526004016102b9906110e7565b8660035f82825461050c9190611114565b90915550505b61051d6064886110d4565b90506105298188611114565b91505f61053583610629565b90505f606461054583605a61113f565b61054f91906110d4565b90505f811161058a5760405162461bcd60e51b815260206004820152600760248201526604d696e203e20360cc1b60448201526064016102b9565b61059581858a61079b565b6040515f90339085908381818185875af1925050503d805f81146105d4576040519150601f19603f3d011682016040523d82523d5f602084013e6105d9565b606091505b505090508061061d5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064016102b9565b50505050505050505050565b5f806106567f0000000000000000000000001a5a974874ba51a7b38e30f63449495c58b243e760016108d7565b50905061027c818473c02aaa39b223fe8d0a0e5c4f27ead9083c756cc27f000000000000000000000000aca40632c51c2a03209d2714b88aa0f1456a2101610b10565b5f620151805f54426106ab9190611114565b6106b591906110d4565b905090565b5f81602001516001600160a01b0316825f01516001600160a01b0316106106df575f80fd5b815160208084015160408086015181516001600160a01b0395861681860152949092168482015262ffffff90911660608085019190915281518085038201815260808501909252815191909201206001600160f81b031960a08401529085901b6001600160601b03191660a183015260b58201527fe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b5460d582015260f50160408051601f1981840301815291905280516020909101209392505050565b604080516101008101825273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281526001600160a01b037f000000000000000000000000aca40632c51c2a03209d2714b88aa0f1456a210181166020830190815261271083850190815261dead606085019081526080850187815260a0860189815260c087018b81525f60e08901908152985163414bf38960e01b8152885188166004820152955187166024870152935162ffffff1660448601529151851660648501525160848401525160a48301525160c482015292511660e48301529073e592427a0aece92de3edee1f18e0157c058615649063414bf3899085906101040160206040518083038185885af11580156108ab573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906108d09190611156565b5050505050565b5f808263ffffffff165f036109135760405162461bcd60e51b8152602060048201526002602482015261042560f41b60448201526064016102b9565b6040805160028082526060820183525f9260208301908036833701905050905083815f8151811061094657610946611181565b602002602001019063ffffffff16908163ffffffff16815250505f8160018151811061097457610974611181565b602002602001019063ffffffff16908163ffffffff16815250505f80866001600160a01b031663883bdbfd846040518263ffffffff1660e01b81526004016109bc9190611195565b5f60405180830381865afa1580156109d6573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526109fd91908101906112a5565b915091505f825f81518110610a1457610a14611181565b602002602001015183600181518110610a2f57610a2f611181565b6020026020010151610a419190611368565b90505f825f81518110610a5657610a56611181565b602002602001015183600181518110610a7157610a71611181565b6020026020010151610a839190611395565b9050610a9563ffffffff8916836113bc565b96505f8260060b128015610aba5750610ab463ffffffff8916836113f8565b60060b15155b15610acd5786610ac981611419565b9750505b5f610ae56001600160a01b0363ffffffff8b1661143a565b9050610b01600160201b600160c01b03602084901b168261146c565b96505050505050509250929050565b5f80610b1b86610c16565b90506001600160801b036001600160a01b03821611610ba0575f610b486001600160a01b0383168061113f565b9050836001600160a01b0316856001600160a01b031610610b8057610b7b600160c01b876001600160801b031683610f26565b610b98565b610b9881876001600160801b0316600160c01b610f26565b925050610c0d565b5f610bb96001600160a01b03831680600160401b610f26565b9050836001600160a01b0316856001600160a01b031610610bf157610bec600160801b876001600160801b031683610f26565b610c09565b610c0981876001600160801b0316600160801b610f26565b9250505b50949350505050565b5f805f8360020b12610c2b578260020b610c32565b8260020b5f035b9050620d89e8811115610c58576040516315e4079d60e11b815260040160405180910390fd5b5f816001165f03610c6d57600160801b610c7f565b6ffffcb933bd6fad37aa2d162d1a5940015b6001600160881b031690506002821615610ca9576ffff97272373d413259a46990580e213a0260801c5b6004821615610cc8576ffff2e50f5f656932ef12357cf3c7fdcc0260801c5b6008821615610ce7576fffe5caca7e10e4e61c3624eaa0941cd00260801c5b6010821615610d06576fffcb9843d60f6159c9db58835c9266440260801c5b6020821615610d25576fff973b41fa98c081472e6896dfb254c00260801c5b6040821615610d44576fff2ea16466c96a3843ec78b326b528610260801c5b6080821615610d63576ffe5dee046a99a2a811c461f1969c30530260801c5b610100821615610d83576ffcbe86c7900a88aedcffc83b479aa3a40260801c5b610200821615610da3576ff987a7253ac413176f2b074cf7815e540260801c5b610400821615610dc3576ff3392b0822b70005940c7a398e4b70f30260801c5b610800821615610de3576fe7159475a2c29b7443b29c7fa6e889d90260801c5b611000821615610e03576fd097f3bdfd2022b8845ad8f792aa58250260801c5b612000821615610e23576fa9f746462d870fdf8a65dc1f90e061e50260801c5b614000821615610e43576f70d869a156d2a1b890bb3df62baf32f70260801c5b618000821615610e63576f31be135f97d08fd981231505542fcfa60260801c5b62010000821615610e84576f09aa508b5b7a84e1c677de54f3e99bc90260801c5b62020000821615610ea4576e5d6af8dedb81196699c329225ee6040260801c5b62040000821615610ec3576d2216e584f5fa1ea926041bedfe980260801c5b62080000821615610ee0576b048a170391f7dc42444e8fa20260801c5b5f8460020b1315610eff57805f1981610efb57610efb6110c0565b0490505b600160201b810615610f12576001610f14565b5f5b60ff16602082901c0192505050919050565b5f80805f19858709858702925082811083820303915050805f03610f5a575f8411610f4f575f80fd5b50829004905061027c565b808411610f65575f80fd5b5f848688095f868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150509392505050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610ff757610ff7610fd0565b92915050565b5f6020828403121561100d575f80fd5b5035919050565b6001600160a01b0381168114611028575f80fd5b50565b5f805f6060848603121561103d575f80fd5b833561104881611014565b9250602084013561105881611014565b9150604084013562ffffff8116811461106f575f80fd5b809150509250925092565b5f806040838503121561108b575f80fd5b50508035926020909101359150565b5f602082840312156110aa575f80fd5b81356001600160801b038116811461027c575f80fd5b634e487b7160e01b5f52601260045260245ffd5b5f826110e2576110e26110c0565b500490565b602080825260139082015272496e73756666696369656e742066756e64732160681b604082015260600190565b81810381811115610ff757610ff7610fd0565b5f6001820161113857611138610fd0565b5060010190565b8082028115828204841417610ff757610ff7610fd0565b5f60208284031215611166575f80fd5b5051919050565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b602080825282518282018190525f9190848201906040850190845b818110156111d257835163ffffffff16835292840192918401916001016111b0565b50909695505050505050565b604051601f8201601f191681016001600160401b03811182821017156112065761120661116d565b604052919050565b5f6001600160401b038211156112265761122661116d565b5060051b60200190565b5f82601f83011261123f575f80fd5b8151602061125461124f8361120e565b6111de565b8083825260208201915060208460051b870101935086841115611275575f80fd5b602086015b8481101561129a57805161128d81611014565b835291830191830161127a565b509695505050505050565b5f80604083850312156112b6575f80fd5b82516001600160401b03808211156112cc575f80fd5b818501915085601f8301126112df575f80fd5b815160206112ef61124f8361120e565b82815260059290921b8401810191818101908984111561130d575f80fd5b948201945b838610156113395785518060060b811461132a575f80fd5b82529482019490820190611312565b91880151919650909350505080821115611351575f80fd5b5061135e85828601611230565b9150509250929050565b600682810b9082900b03667fffffffffffff198112667fffffffffffff82131715610ff757610ff7610fd0565b6001600160a01b038281168282160390808211156113b5576113b5610fd0565b5092915050565b5f8160060b8360060b806113d2576113d26110c0565b667fffffffffffff1982145f19821416156113ef576113ef610fd0565b90059392505050565b5f8260060b8061140a5761140a6110c0565b808360060b0791505092915050565b5f8160020b627fffff19810361143157611431610fd0565b5f190192915050565b6001600160c01b0382811682821681810283169291811582850482141761146357611463610fd0565b50505092915050565b5f6001600160c01b0383811680611485576114856110c0565b9216919091049291505056fea264697066735822122043b7cbc864d2a2bc0e7cf6b8e190075c230a223b9a7de607cd250c85d679014164736f6c63430008190033

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

000000000000000000000000aca40632c51c2a03209d2714b88aa0f1456a2101

-----Decoded View---------------
Arg [0] : _qAddress (address): 0xACA40632C51C2a03209D2714b88Aa0f1456A2101

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000aca40632c51c2a03209d2714b88aa0f1456a2101


Deployed Bytecode Sourcemap

54298:4845:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55114:18;;:27;;55135:6;55114:27;:::i;:::-;55096:15;:45;55093:176;;;55185:9;55158:23;;:36;;;;;;;:::i;:::-;;;;-1:-1:-1;55093:176:0;;-1:-1:-1;55093:176:0;;55247:9;55228:15;;:28;;;;;;;:::i;:::-;;;;-1:-1:-1;;55093:176:0;54298:4845;;;;;54953:53;;;;;;;;;;-1:-1:-1;54953:53:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;626:14:1;;619:22;601:41;;589:2;574:18;54953:53:0;;;;;;;;58577:412;;;;;;;;;;-1:-1:-1;58577:412:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1516:32:1;;;1498:51;;1486:2;1471:18;58577:412:0;1352:203:1;54507:30:0;;;;;;;;;;;;;;;;;;;1706:25:1;;;1694:2;1679:18;54507:30:0;1560:177:1;55473:2032:0;;;;;;;;;;-1:-1:-1;55473:2032:0;;;;;:::i;:::-;;:::i;54325:33::-;;;;;;;;;;;;;;;;58142:227;;;;;;;;;;-1:-1:-1;58142:227:0;;;;;:::i;:::-;;:::i;54418:38::-;;;;;;;;;;;;;;;;54465:33;;;;;;;;;;;;;;;;59000:140;;;;;;;;;;;;;:::i;58577:412::-;58670:12;58696:14;58712;58739:6;-1:-1:-1;;;;;58730:15:0;:6;-1:-1:-1;;;;;58730:15:0;;:53;;58768:6;58776;58730:53;;;58749:6;58757;58730:53;58695:88;;;;58794:30;58827:63;;;;;;;;58856:6;-1:-1:-1;;;;;58827:63:0;;;;;58872:6;-1:-1:-1;;;;;58827:63:0;;;;;58885:3;58827:63;;;;;58794:96;;58908:51;54660:42;58955:3;58908:26;:51::i;:::-;58901:58;;58970:11;;;58577:412;;;;;;:::o;55473:2032::-;55558:10;55572:9;55558:23;55550:44;;;;-1:-1:-1;;;55550:44:0;;2488:2:1;55550:44:0;;;2470:21:1;2527:1;2507:18;;;2500:29;-1:-1:-1;;;2545:18:1;;;2538:38;2593:18;;55550:44:0;;;;;;;;;55624:12;58505:18;58552:8;;55605:57;;;;-1:-1:-1;;;55605:57:0;;2824:2:1;55605:57:0;;;2806:21:1;2863:2;2843:18;;;2836:30;-1:-1:-1;;;2882:18:1;;;2875:50;2942:18;;55605:57:0;2622:344:1;55605:57:0;55699:18;;:27;;55720:6;55699:27;:::i;:::-;55681:15;:45;55673:69;;;;-1:-1:-1;;;55673:69:0;;3173:2:1;55673:69:0;;;3155:21:1;3212:2;3192:18;;;3185:30;-1:-1:-1;;;3231:18:1;;;3224:41;3282:18;;55673:69:0;2971:335:1;55673:69:0;55777:9;55761:12;:25;;55753:49;;;;-1:-1:-1;;;55753:49:0;;3513:2:1;55753:49:0;;;3495:21:1;3552:2;3532:18;;;3525:30;-1:-1:-1;;;3571:18:1;;;3564:41;3622:18;;55753:49:0;3311:335:1;55753:49:0;55815:23;55868:2;55842:23;;:28;;;;:::i;:::-;55908:15;;55815:56;;-1:-1:-1;55882:23:0;55957:17;:15;:17::i;:::-;55934:40;;55987:17;56015:21;56073:2;56052:18;;:23;:63;;;;-1:-1:-1;56080:35:0;;;;:21;:35;;;;;;;;56079:36;56052:63;56049:985;;;56168:15;56150;;:33;;;;:::i;:::-;56132:51;;56225:12;56206:15;:31;;56198:63;;;;-1:-1:-1;;;56198:63:0;;;;;;;:::i;:::-;56312:12;56293:15;;:31;56290:498;;56364:12;56345:15;;:31;;;;;;;:::i;:::-;;;;-1:-1:-1;56395:31:0;;-1:-1:-1;56411:15:0;56395:31;;:::i;:::-;;;56290:498;;;56485:15;56470:12;:30;56467:306;;;56547:30;56562:15;56547:12;:30;:::i;:::-;56528:15;;:49;56525:154;;56625:30;56640:15;56625:12;:30;:::i;:::-;56606:15;;:49;;;;;;;:::i;:::-;;;;-1:-1:-1;;56525:154:0;56467:306;;;56738:15;56723:30;;56467:306;56802:18;:21;;;:18;:21;;;:::i;:::-;;;;-1:-1:-1;;56838:35:0;;;;:21;:35;;;;;:42;;-1:-1:-1;;56838:42:0;56876:4;56838:42;;;56049:985;;;56940:12;56921:15;:31;;56913:63;;;;-1:-1:-1;;;56913:63:0;;;;;;;:::i;:::-;57010:12;56991:15;;:31;;;;;;;:::i;:::-;;;;-1:-1:-1;;56049:985:0;57060:18;57075:3;57060:12;:18;:::i;:::-;57044:34;-1:-1:-1;57101:28:0;57044:34;57101:12;:28;:::i;:::-;57089:40;;57142:25;57170:29;57188:9;57170;:29::i;:::-;57142:57;-1:-1:-1;57210:22:0;57262:3;57236:22;57142:57;57256:2;57236:22;:::i;:::-;57235:30;;;;:::i;:::-;57210:55;;57301:1;57284:14;:18;57276:38;;;;-1:-1:-1;;;57276:38:0;;4904:2:1;57276:38:0;;;4886:21:1;4943:1;4923:18;;;4916:29;-1:-1:-1;;;4961:18:1;;;4954:37;5008:18;;57276:38:0;4702:330:1;57276:38:0;57327:42;57333:14;57349:9;57360:8;57327:5;:42::i;:::-;57400:50;;57383:12;;57408:10;;57432:13;;57383:12;57400:50;57383:12;57400:50;57432:13;57408:10;57400:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57382:68;;;57469:7;57461:36;;;;-1:-1:-1;;;57461:36:0;;5449:2:1;57461:36:0;;;5431:21:1;5488:2;5468:18;;;5461:30;-1:-1:-1;;;5507:18:1;;;5500:46;5563:18;;57461:36:0;5247:340:1;57461:36:0;55539:1966;;;;;;;;55473:2032;;:::o;58142:227::-;58199:17;58230:10;58246:38;58268:12;58282:1;58246:21;:38::i;:::-;58229:55;;;58307:54;58336:4;58342:8;54736:42;58359:1;58307:28;:54::i;59000:140::-;59048:7;54403:6;59094:18;;59076:15;:36;;;;:::i;:::-;59075:57;;;;:::i;:::-;59068:64;;59000:140;:::o;2500:603::-;2584:12;2630:3;:10;;;-1:-1:-1;;;;;2617:23:0;:3;:10;;;-1:-1:-1;;;;;2617:23:0;;2609:32;;;;;;2917:10;;2929;;;;;2941:7;;;;;2906:43;;-1:-1:-1;;;;;5848:15:1;;;2906:43:0;;;5830:34:1;5900:15;;;;5880:18;;;5873:43;5964:8;5952:21;;;5932:18;;;;5925:49;;;;2906:43:0;;;;;;;;;5765:18:1;;;2906:43:0;;;2896:54;;;;;;;-1:-1:-1;;;;;;2773:254:0;;;6271:26:1;6330:15;;;;-1:-1:-1;;;;;;6326:45:1;6313:11;;;6306:66;6388:12;;;6381:28;1409:66:0;6425:12:1;;;6418:28;6462:12;;2773:254:0;;;-1:-1:-1;;2773:254:0;;;;;;;;;2737:313;;2773:254;2737:313;;;;;2500:603;-1:-1:-1;;;2500:603:0:o;57513:621::-;57680:360;;;;;;;;54736:42;57680:360;;-1:-1:-1;;;;;57784:1:0;57680:360;;;;;;;;55041:5;57680:360;;;;;;54820:42;57680:360;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;57680:360:0;;;;;;58053:73;;-1:-1:-1;;;58053:73:0;;6768:13:1;;6764:22;;58053:73:0;;;6746:41:1;6829:24;;6825:33;;6803:20;;;6796:63;6901:24;;6927:8;6897:39;6875:20;;;6868:69;6979:24;;6975:33;;6953:20;;;6946:63;7047:24;7025:20;;;7018:54;7110:24;7088:20;;;7081:54;7173:24;7151:20;;;7144:54;7240:24;;7236:33;7214:20;;;7207:63;57680:360:0;54902:42;;58053:48;;57680:360;;6680:19:1;;58053:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;57598:536;57513:621;;;:::o;45473:1283::-;45573:24;45599:29;45654:10;:15;;45668:1;45654:15;45646:30;;;;-1:-1:-1;;;45646:30:0;;7672:2:1;45646:30:0;;;7654:21:1;7711:1;7691:18;;;7684:29;-1:-1:-1;;;7729:18:1;;;7722:32;7771:18;;45646:30:0;7470:325:1;45646:30:0;45719:15;;;45732:1;45719:15;;;;;;;;45689:27;;45719:15;;;;;;;;;;-1:-1:-1;45719:15:0;45689:45;;45762:10;45745:11;45757:1;45745:14;;;;;;;;:::i;:::-;;;;;;:27;;;;;;;;;;;45800:1;45783:11;45795:1;45783:14;;;;;;;;:::i;:::-;;;;;;:18;;;;;;;;;;;45815:30;45847:51;45917:4;-1:-1:-1;;;;;45902:42:0;;45945:11;45902:55;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;45902:55:0;;;;;;;;;;;;:::i;:::-;45814:143;;;;45970:26;46020:15;46036:1;46020:18;;;;;;;;:::i;:::-;;;;;;;45999:15;46015:1;45999:18;;;;;;;;:::i;:::-;;;;;;;:39;;;;:::i;:::-;45970:68;;46049:43;46148:34;46183:1;46148:37;;;;;;;;:::i;:::-;;;;;;;46095:34;46130:1;46095:37;;;;;;;;:::i;:::-;;;;;;;:90;;;;:::i;:::-;46049:136;-1:-1:-1;46225:48:0;46254:18;;;46225:20;:48;:::i;:::-;46198:76;;46358:1;46335:20;:24;;;:83;;;;-1:-1:-1;46364:48:0;46393:18;;;46364:20;:48;:::i;:::-;:53;;;;46335:83;46331:109;;;46420:20;;;;:::i;:::-;;;;46331:109;46571:22;46596:39;-1:-1:-1;;;;;46596:19:0;;;:39;:::i;:::-;46571:64;-1:-1:-1;46678:69:0;-1:-1:-1;;;;;;;46744:2:0;46696:50;;;;46571:64;46678:69;:::i;:::-;46646:102;;45635:1121;;;;;;45473:1283;;;;;:::o;47268:975::-;47429:19;47461:20;47484:33;47512:4;47484:27;:33::i;:::-;47461:56;-1:-1:-1;;;;;;;;;;;47639:33:0;;;47635:601;;47689:17;47709:36;-1:-1:-1;;;;;47709:36:0;;;;:::i;:::-;47689:56;;47786:10;-1:-1:-1;;;;;47774:22:0;:9;-1:-1:-1;;;;;47774:22:0;;:158;;47884:48;-1:-1:-1;;;47910:10:0;-1:-1:-1;;;;;47884:48:0;47922:9;47884:15;:48::i;:::-;47774:158;;;47816:48;47832:9;47843:10;-1:-1:-1;;;;;47816:48:0;-1:-1:-1;;;47816:15:0;:48::i;:::-;47760:172;;47674:270;47635:601;;;47965:17;47985:52;-1:-1:-1;;;;;47985:52:0;;;-1:-1:-1;;;47985:15:0;:52::i;:::-;47965:72;;48078:10;-1:-1:-1;;;;;48066:22:0;:9;-1:-1:-1;;;;;48066:22:0;;:158;;48176:48;-1:-1:-1;;;48202:10:0;-1:-1:-1;;;;;48176:48:0;48214:9;48176:15;:48::i;:::-;48066:158;;;48108:48;48124:9;48135:10;-1:-1:-1;;;;;48108:48:0;-1:-1:-1;;;48108:15:0;:48::i;:::-;48052:172;;47950:286;47635:601;47450:793;47268:975;;;;;;:::o;30828:2794::-;30891:20;30949:15;30974:1;30967:4;:8;;;:57;;31018:4;31011:12;;30967:57;;;30994:4;30987:12;;30986:13;;30967:57;30949:75;-1:-1:-1;30098:9:0;31043:35;;31039:51;;;31087:3;;-1:-1:-1;;;31087:3:0;;;;;;;;;;;31039:51;31107:13;31123:7;31133:3;31123:13;31140:1;31123:18;:127;;-1:-1:-1;;;31123:127:0;;;31161:34;31123:127;-1:-1:-1;;;;;31107:143:0;;-1:-1:-1;31279:3:0;31269:13;;:18;31265:83;;31306:34;31298:42;31345:3;31297:51;31265:83;31377:3;31367:13;;:18;31363:83;;31404:34;31396:42;31443:3;31395:51;31363:83;31475:3;31465:13;;:18;31461:83;;31502:34;31494:42;31541:3;31493:51;31461:83;31573:4;31563:14;;:19;31559:84;;31601:34;31593:42;31640:3;31592:51;31559:84;31672:4;31662:14;;:19;31658:84;;31700:34;31692:42;31739:3;31691:51;31658:84;31771:4;31761:14;;:19;31757:84;;31799:34;31791:42;31838:3;31790:51;31757:84;31870:4;31860:14;;:19;31856:84;;31898:34;31890:42;31937:3;31889:51;31856:84;31969:5;31959:15;;:20;31955:85;;31998:34;31990:42;32037:3;31989:51;31955:85;32069:5;32059:15;;:20;32055:85;;32098:34;32090:42;32137:3;32089:51;32055:85;32169:5;32159:15;;:20;32155:85;;32198:34;32190:42;32237:3;32189:51;32155:85;32269:5;32259:15;;:20;32255:85;;32298:34;32290:42;32337:3;32289:51;32255:85;32369:6;32359:16;;:21;32355:86;;32399:34;32391:42;32438:3;32390:51;32355:86;32470:6;32460:16;;:21;32456:86;;32500:34;32492:42;32539:3;32491:51;32456:86;32571:6;32561:16;;:21;32557:86;;32601:34;32593:42;32640:3;32592:51;32557:86;32672:6;32662:16;;:21;32658:86;;32702:34;32694:42;32741:3;32693:51;32658:86;32773:7;32763:17;;:22;32759:86;;32804:33;32796:41;32842:3;32795:50;32759:86;32874:7;32864:17;;:22;32860:85;;32905:32;32897:40;32942:3;32896:49;32860:85;32974:7;32964:17;;:22;32960:83;;33005:30;32997:38;33040:3;32996:47;32960:83;33072:7;33062:17;;:22;33058:78;;33103:25;33095:33;33133:3;33094:42;33058:78;33164:1;33157:4;:8;;;33153:47;;;33195:5;-1:-1:-1;;33175:25:0;;;;;:::i;:::-;;33167:33;;33153:47;-1:-1:-1;;;33571:5:0;:17;:22;:30;;33600:1;33571:30;;;33596:1;33571:30;33554:48;;33564:2;33555:5;:11;;33554:48;33531:72;;30924:2691;;30828:2794;;;:::o;39837:4221::-;39953:14;;;-1:-1:-1;;40526:1:0;40523;40516:20;40570:1;40567;40563:9;40554:18;;40626:5;40622:2;40619:13;40611:5;40607:2;40603:14;40599:34;40590:43;;;40731:5;40740:1;40731:10;40727:209;;40784:1;40770:11;:15;40762:24;;;;;;-1:-1:-1;40847:23:0;;;;-1:-1:-1;40907:13:0;;40727:209;41079:5;41065:11;:19;41057:28;;;;;;41394:17;41480:11;41477:1;41474;41467:25;41883:12;41899:15;;;41898:31;;42038:22;;;;;42933:1;42914;:15;;42913:21;;43180:17;;;43176:21;;43169:28;43243:17;;;43239:21;;43232:28;43307:17;;;43303:21;;43296:28;43371:17;;;43367:21;;43360:28;43435:17;;;43431:21;;43424:28;43500:17;;;43496:21;;;43489:28;42461:12;;;;42457:23;;;42482:1;42453:31;41629:20;;;41618:32;;;42522:12;;;;41677:21;;;;42187:16;;;;42513:21;;;;44000:11;;;;;-1:-1:-1;;39837:4221:0;;;;;:::o;14:127:1:-;75:10;70:3;66:20;63:1;56:31;106:4;103:1;96:15;130:4;127:1;120:15;146:125;211:9;;;232:10;;;229:36;;;245:18;;:::i;:::-;146:125;;;;:::o;276:180::-;335:6;388:2;376:9;367:7;363:23;359:32;356:52;;;404:1;401;394:12;356:52;-1:-1:-1;427:23:1;;276:180;-1:-1:-1;276:180:1:o;653:131::-;-1:-1:-1;;;;;728:31:1;;718:42;;708:70;;774:1;771;764:12;708:70;653:131;:::o;789:558::-;865:6;873;881;934:2;922:9;913:7;909:23;905:32;902:52;;;950:1;947;940:12;902:52;989:9;976:23;1008:31;1033:5;1008:31;:::i;:::-;1058:5;-1:-1:-1;1115:2:1;1100:18;;1087:32;1128:33;1087:32;1128:33;:::i;:::-;1180:7;-1:-1:-1;1239:2:1;1224:18;;1211:32;1287:8;1274:22;;1262:35;;1252:63;;1311:1;1308;1301:12;1252:63;1334:7;1324:17;;;789:558;;;;;:::o;1742:248::-;1810:6;1818;1871:2;1859:9;1850:7;1846:23;1842:32;1839:52;;;1887:1;1884;1877:12;1839:52;-1:-1:-1;;1910:23:1;;;1980:2;1965:18;;;1952:32;;-1:-1:-1;1742:248:1:o;1995:286::-;2054:6;2107:2;2095:9;2086:7;2082:23;2078:32;2075:52;;;2123:1;2120;2113:12;2075:52;2149:23;;-1:-1:-1;;;;;2201:31:1;;2191:42;;2181:70;;2247:1;2244;2237:12;3651:127;3712:10;3707:3;3703:20;3700:1;3693:31;3743:4;3740:1;3733:15;3767:4;3764:1;3757:15;3783:120;3823:1;3849;3839:35;;3854:18;;:::i;:::-;-1:-1:-1;3888:9:1;;3783:120::o;3908:343::-;4110:2;4092:21;;;4149:2;4129:18;;;4122:30;-1:-1:-1;;;4183:2:1;4168:18;;4161:49;4242:2;4227:18;;3908:343::o;4256:128::-;4323:9;;;4344:11;;;4341:37;;;4358:18;;:::i;4389:135::-;4428:3;4449:17;;;4446:43;;4469:18;;:::i;:::-;-1:-1:-1;4516:1:1;4505:13;;4389:135::o;4529:168::-;4602:9;;;4633;;4650:15;;;4644:22;;4630:37;4620:71;;4671:18;;:::i;7281:184::-;7351:6;7404:2;7392:9;7383:7;7379:23;7375:32;7372:52;;;7420:1;7417;7410:12;7372:52;-1:-1:-1;7443:16:1;;7281:184;-1:-1:-1;7281:184:1:o;7800:127::-;7861:10;7856:3;7852:20;7849:1;7842:31;7892:4;7889:1;7882:15;7916:4;7913:1;7906:15;7932:127;7993:10;7988:3;7984:20;7981:1;7974:31;8024:4;8021:1;8014:15;8048:4;8045:1;8038:15;8064:647;8233:2;8285:21;;;8355:13;;8258:18;;;8377:22;;;8204:4;;8233:2;8456:15;;;;8430:2;8415:18;;;8204:4;8499:186;8513:6;8510:1;8507:13;8499:186;;;8578:13;;8593:10;8574:30;8562:43;;8660:15;;;;8625:12;;;;8535:1;8528:9;8499:186;;;-1:-1:-1;8702:3:1;;8064:647;-1:-1:-1;;;;;;8064:647:1:o;8716:275::-;8787:2;8781:9;8852:2;8833:13;;-1:-1:-1;;8829:27:1;8817:40;;-1:-1:-1;;;;;8872:34:1;;8908:22;;;8869:62;8866:88;;;8934:18;;:::i;:::-;8970:2;8963:22;8716:275;;-1:-1:-1;8716:275:1:o;8996:181::-;9054:4;-1:-1:-1;;;;;9076:30:1;;9073:56;;;9109:18;;:::i;:::-;-1:-1:-1;9154:1:1;9150:14;9166:4;9146:25;;8996:181::o;9182:738::-;9247:5;9300:3;9293:4;9285:6;9281:17;9277:27;9267:55;;9318:1;9315;9308:12;9267:55;9347:6;9341:13;9373:4;9397:58;9413:41;9451:2;9413:41;:::i;:::-;9397:58;:::i;:::-;9477:3;9501:2;9496:3;9489:15;9529:4;9524:3;9520:14;9513:21;;9586:4;9580:2;9577:1;9573:10;9565:6;9561:23;9557:34;9543:48;;9614:3;9606:6;9603:15;9600:35;;;9631:1;9628;9621:12;9600:35;9667:4;9659:6;9655:17;9681:210;9697:6;9692:3;9689:15;9681:210;;;9770:3;9764:10;9787:31;9812:5;9787:31;:::i;:::-;9831:18;;9869:12;;;;9714;;9681:210;;;-1:-1:-1;9909:5:1;9182:738;-1:-1:-1;;;;;;9182:738:1:o;9925:1233::-;10052:6;10060;10113:2;10101:9;10092:7;10088:23;10084:32;10081:52;;;10129:1;10126;10119:12;10081:52;10156:16;;-1:-1:-1;;;;;10221:14:1;;;10218:34;;;10248:1;10245;10238:12;10218:34;10286:6;10275:9;10271:22;10261:32;;10331:7;10324:4;10320:2;10316:13;10312:27;10302:55;;10353:1;10350;10343:12;10302:55;10382:2;10376:9;10404:4;10428:58;10444:41;10482:2;10444:41;:::i;10428:58::-;10520:15;;;10602:1;10598:10;;;;10590:19;;10586:28;;;10551:12;;;;10626:19;;;10623:39;;;10658:1;10655;10648:12;10623:39;10682:11;;;;10702:238;10718:6;10713:3;10710:15;10702:238;;;10791:3;10785:10;10842:5;10839:1;10828:20;10821:5;10818:31;10808:59;;10863:1;10860;10853:12;10808:59;10880:18;;10735:12;;;;10918;;;;10702:238;;;10995:18;;;10989:25;10959:5;;-1:-1:-1;10989:25:1;;-1:-1:-1;;;11026:16:1;;;11023:36;;;11055:1;11052;11045:12;11023:36;;11078:74;11144:7;11133:8;11122:9;11118:24;11078:74;:::i;:::-;11068:84;;;9925:1233;;;;;:::o;11163:210::-;11261:1;11250:16;;;11232;;;;11228:39;-1:-1:-1;;11282:32:1;;11326:16;11316:27;;11279:65;11276:91;;;11347:18;;:::i;11378:185::-;-1:-1:-1;;;;;11499:10:1;;;11487;;;11483:27;;11522:12;;;11519:38;;;11537:18;;:::i;:::-;11519:38;11378:185;;;;:::o;11568:284::-;11606:1;11647;11644;11633:16;11683:1;11680;11669:16;11704:3;11694:37;;11711:18;;:::i;:::-;-1:-1:-1;;11747:30:1;;-1:-1:-1;;11779:15:1;;11743:52;11740:78;;;11798:18;;:::i;:::-;11832:14;;;11568:284;-1:-1:-1;;;11568:284:1:o;11857:166::-;11887:1;11928;11925;11914:16;11949:3;11939:37;;11956:18;;:::i;:::-;12013:3;12009:1;12006;11995:16;11990:27;11985:32;;;11857:166;;;;:::o;12028:192::-;12065:3;12112:5;12109:1;12098:20;12146:7;12142:12;12133:7;12130:25;12127:51;;12158:18;;:::i;:::-;-1:-1:-1;;12194:20:1;;12028:192;-1:-1:-1;;12028:192:1:o;12225:285::-;-1:-1:-1;;;;;12366:10:1;;;12336;;;12400:13;;;12396:22;;;12297:19;12440:11;;12461:17;;;12453:26;;12437:43;12427:77;;12484:18;;:::i;:::-;12427:77;;;12225:285;;;;:::o;12515:201::-;12555:1;-1:-1:-1;;;;;12620:10:1;;;;12639:37;;12656:18;;:::i;:::-;12694:10;;12690:20;;;;;12515:201;-1:-1:-1;;12515:201:1:o

Swarm Source

ipfs://43b7cbc864d2a2bc0e7cf6b8e190075c230a223b9a7de607cd250c85d6790141

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.