Query editor
withdays as (select distinct date_trunc('day',time) as day from ethereum.blocks where time >= timestamp '2023-01-09'), cfmm as (selectgm.blockchain,gm.contract_address,gm.pool,gm.cfmm,gm.token0,gm.symbol0,gm.decimals0,gm.token1,gm.symbol1,gm.decimals1,gm.symbol0 || '|' || gm.symbol1 as _pairfrom query_3848673 gm -- gammapoolfactory-poolcreated--where blockchain = 'arbitrum'where implementation != 0x0d53a9b85bff1c043af176d0a21c46cd6f169241), lp_deposit as (select 'base' as blockchain, 'sushiswap' as dex, evt_block_time, contract_address, evt_tx_hash, evt_tx_from as sender, amount0, amount1 from sushiswap_base.Pair_evt_Mintunionselect 'base' as blockchain, 'uniswap' as dex, evt_block_time, contract_address, evt_tx_hash, evt_tx_from as sender, amount0, amount1 from uniswap_v2_base.UniswapV2Pair_evt_Mintunionselect 'arbitrum' as blockchain, 'deltaswap' as dex, evt_block_time, contract_address, evt_tx_hash, sender, amount0, amount1 from gammaswap_arbitrum.DeltaSwapPair_evt_Mintunionselect 'arbitrum' as blockchain, 'uniswap' as dex, evt_block_time, contract_address, evt_tx_hash, sender, amount0, amount1 from uniswap_v2_arbitrum.UniswapV2Pair_evt_Mintunionselect 'ethereum' as blockchain, 'uniswap' as dex, evt_block_time, contract_address, evt_tx_hash, sender, amount0, amount1 from uniswap_v2_ethereum.Pair_evt_Mint), lp_deposithash as (select evt_tx_hash, "to" as minterfrom gammaswap_ethereum.CPMMGammaPoolMain_evt_Depositunionselect evt_tx_hash, "to" as minterfrom gammaswap_arbitrum.CPMMGammaPool_evt_Depositunionselect evt_tx_hash, "to" as minterfrom gammaswap_base.CPMMGammaPool_evt_Deposit), price_feed as (select*from query_3848765 --- gammaswap-token-pricefeed), deposit_txns as (selectld.blockchain,ld.dex,date_trunc('day',ld.evt_block_time) as day,