Query editor
WITH erc20 AS (select token as contract_address, max(symbol) as symbol, max(decimals) as decimalsfrom dune.supernovadex.result_sn_active_tokensgroup by 1),pool_list_auto AS (SELECTdate(evt_block_time) created_date,pair pool,token0,token1,False AS is_cl,stable,0 AS tickSpacingFROM supernova_ethereum.pairgenerator_evt_paircreatedUNIONSELECTdate(evt_block_time) created_date,pool,token0,token1,True AS is_cl,False AS stable,casewhen deployer = 0xc815b4e0abae3155f8f4f9e404f17c9fa6928eb8 then 1when deployer = 0x1c798614ef4c6a8f8a1aab25785714933e59e963 then 10when deployer = 0x44acd9579650d300ebbeac2e483b97fdcacdddc0 then 50when deployer = 0xd7b7cc843331cbdc857d5e7615d320b8b4ac090e then 100when deployer = 0x42f5ecd6497d42e093de05bec73e33ceb82493da then 200else 0 end tickSpacingFROM supernova_ethereum.algebrafactory_evt_custompool),pool_list_upload AS (Selectdate('2025-06-30') created_date,pool_address pool,token0_address token0,token1_address token1,case when lower(pool_type) like '%cl%' then True else False end is_cl,case when lower(pool_type) like '%vamm%' then True else False end stable,case when lower(pool_type) like '%cl200%' then 200when lower(pool_type) like '%cl1%' or lower(pool_type) like '%cl-1%' then 1 else 0 end tickSpacingfrom dune.supernovadex.dataset_supernova_pool_details -- Need to be uploaded for first few days),v2 as (select * from pool_list_auto--union distinct--select * from pool_list_upload where pool not in (select pool from pool_list_auto where pool is not null)),gauges_auto as (select gm.pool, gauge, external_bribe, internal_bribefrom supernova_ethereum.gaugemanager_evt_gaugecreated gmjoin v2 on v2.pool=gm.pool),gauges as (select * from gauges_auto--union distinct--select pool_address pool, gauge_address gauge, external_bribes, internal_bribes