Query editor
with hours as (select hourFROMunnest(sequence(cast(date_trunc('hour', now()-interval '25' hour) AS timestamp),cast(date_trunc('hour', now()) AS timestamp),interval '1' hour)) as t(hour)),pools as (selectpool,token0 as token0,token1 as token1,tickSpacing as tickspacefrom dune.blackhole_foundation.result_bh_pool_metadatawhere pool = 0x41100C6D2c6920B10d12Cd8D59c8A9AA2eF56fC7),pool_tokens as (select token0 as token from poolsunionselect token1 as token from pools),token_pool as (select distincta.tokenId,a.pool,tickspacefrom blackhole_avalanche_c.nonfungiblepositionmanager_evt_increaseliquidity ajoin pools b on a.pool=b.pool),token_mint1 as (selectoutput_tokenId as tokenId,cast(date_trunc('hour',min(call_block_time)) as timestamp) as mint_timefrom blackhole_avalanche_c.nonfungiblepositionmanager_call_mint ajoin token_pool b on a.output_tokenId=b.tokenId and call_success = truegroup by 1),token_burn as (selecta.tokenId,cast(date_trunc('hour',max(call_block_time)) as timestamp) as burn_timefrom blackhole_avalanche_c.nonfungiblepositionmanager_call_burn ajoin token_pool b on a.tokenId=b.tokenId and call_success = truegroup by 1),token_mint as (selecta.tokenId,