Query editor
WITH all_pools AS (-- WOOF Pool 2 --SELECTSUM(amount/1e9) as total_tokens,COUNT(DISTINCT destination) as unique_wallets,(SELECT price_usd * 1e9 FROM ton.prices_dailyWHERE LOWER(token_address) = LOWER('0:4ac9638e157949a7360ef1ee38246eae7fa2f7bf86d86db0419ca8fd387c015e')ORDER BY timestamp DESC LIMIT 1) as current_price,NULL as ath_priceFROM ton.jetton_eventsWHERE LOWER(source) = LOWER('0:dc20ce5b35de0ee6c8aa41d28c3ee29df2baa56bb7202374a43d8b1d45bf8cbf')AND LOWER(jetton_master) = LOWER('0:4ac9638e157949a7360ef1ee38246eae7fa2f7bf86d86db0419ca8fd387c015e')UNION ALL-- WOOF Pool 1 --SELECTSUM(amount/1e9) as total_tokens,COUNT(DISTINCT destination) as unique_wallets,(SELECT price_usd * 1e9 FROM ton.prices_dailyWHERE LOWER(token_address) = LOWER('0:4ac9638e157949a7360ef1ee38246eae7fa2f7bf86d86db0419ca8fd387c015e')ORDER BY timestamp DESC LIMIT 1) as current_price,(SELECT MAX(price_usd * 1e9) FROM ton.prices_dailyWHERE LOWER(token_address) = LOWER('0:4ac9638e157949a7360ef1ee38246eae7fa2f7bf86d86db0419ca8fd387c015e')) as ath_priceFROM ton.jetton_eventsWHERE LOWER(source) = LOWER('0:46260d3c70f99f01cb38249cd3aa2080f889561e59fbfd3ef7b95c4644b815cf')AND LOWER(jetton_master) = LOWER('0:4ac9638e157949a7360ef1ee38246eae7fa2f7bf86d86db0419ca8fd387c015e')AND block_date < CAST('2025-02-24' AS TIMESTAMP)UNION ALL-- CLAYSELECTSUM(amount/1e9) as total_tokens,COUNT(DISTINCT destination) as unique_wallets,(SELECT price_usd * 1e9 FROM ton.prices_dailyWHERE LOWER(token_address) = LOWER('0:7ebdcd3483d3de5162e9b52007e20d49e64612ed64e0b5511f848ea829d42d46')ORDER BY timestamp DESC LIMIT 1) as current_price,(SELECT MAX(price_usd * 1e9) FROM ton.prices_dailyWHERE LOWER(token_address) = LOWER('0:7ebdcd3483d3de5162e9b52007e20d49e64612ed64e0b5511f848ea829d42d46')) as ath_priceFROM ton.jetton_eventsWHERE LOWER(source) = LOWER('0:53a8687859adc27204793599558c23b6693f2d7565c91709b1b6174643d2a9f9')AND LOWER(jetton_master) = LOWER('0:7ebdcd3483d3de5162e9b52007e20d49e64612ed64e0b5511f848ea829d42d46')AND block_date < CAST('2025-02-24' AS TIMESTAMP)UNION ALL-- BUILDSELECTSUM(amount/1e9) as total_tokens,COUNT(DISTINCT destination) as unique_wallets,(SELECT price_usd * 1e9 FROM ton.prices_dailyWHERE LOWER(token_address) = LOWER('0:589d4ac897006b5aaa7fae5f95c5e481bd34765664df0b831a9d0eb9ee7fc150')ORDER BY timestamp DESC LIMIT 1) as current_price,0.67 as ath_priceFROM ton.jetton_eventsWHERE LOWER(source) = LOWER('0:4db3b4e4b9705a5a04bf582263785b98a3e36b12c949509a8309b7af41a78ef6')AND LOWER(jetton_master) = LOWER('0:589d4ac897006b5aaa7fae5f95c5e481bd34765664df0b831a9d0eb9ee7fc150')AND block_date < CAST('2025-02-24' AS TIMESTAMP)