Query editor
WITH protocol_start AS (SELECT 1752170400 as start_timestamp),eth_daily AS (SELECTFLOOR((to_unixtime(block_time) - 1752170400) / 86400) + 1 as protocol_day,SUM(value) / 1e18 as daily_eth_deposited,COUNT(*) as eth_transfer_count,COUNT(DISTINCT "from") as unique_eth_sendersFROM ethereum.transactionsWHERE "to" = 0xc7Cc775B21f9Df85E043C7FDd9dAC60af0B69507AND value > 0AND to_unixtime(block_time) >= 1752170400GROUP BY 1),titanx_daily AS (SELECTFLOOR((to_unixtime(evt_block_time) - 1752170400) / 86400) + 1 as protocol_day,SUM(value) / 1e18 as daily_titanx_deposited,COUNT(*) as titanx_transfer_count,COUNT(DISTINCT "from") as unique_titanx_sendersFROM erc20_ethereum.evt_transferWHERE contract_address = 0xF19308F923582A6f7c465e5CE7a9Dc1BEC6665B1AND "to" = 0xc7Cc775B21f9Df85E043C7FDd9dAC60af0B69507AND to_unixtime(evt_block_time) >= 1752170400GROUP BY 1),totals AS (SELECTSUM(COALESCE(e.daily_eth_deposited, 0)) as total_eth,SUM(COALESCE(t.daily_titanx_deposited, 0)) as total_titanxFROM eth_daily eFULL OUTER JOIN titanx_daily t ON e.protocol_day = t.protocol_day),prices AS (SELECT(SELECT price FROM prices.usd WHERE contract_address = 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 ORDER BY minute DESC LIMIT 1) as eth_price,(SELECT price FROM prices.usd WHERE contract_address = 0xF19308F923582A6f7c465e5CE7a9Dc1BEC6665B1 ORDER BY minute DESC LIMIT 1) as titanx_price)SELECTCOALESCE(e.protocol_day, t.protocol_day) as protocol_day,-- Daily ETH metricsCOALESCE(e.daily_eth_deposited, 0) as daily_eth_deposited,COALESCE(e.eth_transfer_count, 0) as eth_transfer_count,COALESCE(e.unique_eth_senders, 0) as unique_eth_senders,-- Daily TitanX metricsCOALESCE(t.daily_titanx_deposited, 0) as daily_titanx_deposited,COALESCE(t.titanx_transfer_count, 0) as titanx_transfer_count,COALESCE(t.unique_titanx_senders, 0) as unique_titanx_senders,-- Totalstotals.total_eth,totals.total_titanx,