Query editor
WITHconstants as (selectcast({{decimalToken0}} as int) as decimalToken0,cast({{decimalToken1}} as int) as decimalToken1,{{poolAddress}} as addressPool) --,ts as (selecttickSpacingfromuniswap_v3_ethereum.Factory_evt_PoolCreated,constantswherepool = addressPoollimit1),ct as (selecttick as currentTick,cast(sqrtPriceX96 / power(2, 96) as double) as sqrtPricefromuniswap_v3_ethereum.Pair_evt_Swap,constantswherecontract_address = addressPoolorder byevt_block_time desclimit1) --,mb as (selecttickLower as lowerTick --,tickUpper as upperTick --,cast(amount as double) / sqrt(power(10, decimalToken0 + decimalToken1)) as amountfromuniswap_v3_ethereum.Pair_evt_Mint,constantswherecontract_address = addressPoolunion allselecttickLower as lowerTick --,tickUpper as upperTick --,-1 * cast(amount as double) / sqrt(power(10, decimalToken0 + decimalToken1)) as amountfromuniswap_v3_ethereum.Pair_evt_Burn,constantswherecontract_address = addressPool) --,