Query editor
withtarget_pool as (selectp.*,t.symbol as token1_symbol,t.decimals as token1_decimalsfrom (selectp.*,t.symbol as token0_symbol,t.decimals as token0_decimalsfrom (select *fromuniswap_ethereum.poolswhere pool = {{UNI_V3_LP_Address}}) pleft join tokens.erc20 ton p.token0 = t.contract_address) pleft join tokens.erc20 ton p.token1 = t.contract_address),-- remove tx: https://etherscan.io/tx/0x839a6f48da37a21e06dd50bd15d56981e16cf0cdd7adbee402f92e6587a1b6ae-- add tx: https://etherscan.io/tx/0x64e35156e6cb7bc96a8b6fa632a4d1ab7da797478daa5b443ac0aaa96d4ab8e6liquidity_event AS (selectevt.*,p.token0,p.token0_symbol,p.token0_decimals,p.token1,p.token1_symbol,p.token1_decimalsfrom(selectcontract_address as lp_address,evt_tx_hash,'remove' AS event_type,amount,-amount0 AS token0_amount,-amount1 AS token1_amount,owner AS nft_address,tickLower,tickUpperfrom uniswap_v3_ethereum.Pair_evt_Burnwhere contract_address = {{UNI_V3_LP_Address}}union allselectcontract_address as lp_address,evt_tx_hash,'add' AS event_type,amount,amount0 AS token0_amount,