Query editor
WITH smart_accounts AS (SELECT DISTINCT account_address AS account, blockchainFROM dune.thechriscen.result_nexus_accountsUNION ALLSELECT DISTINCT account_address AS account, blockchainFROM query_6608920)SELECTDATE_TRUNC('day', t.block_time) AS date_time,t.blockchain,SUM(t.amount_usd) AS daily_volume,SUM(SUM(t.amount_usd)) OVER (PARTITION BY t.blockchain ORDER BY DATE_TRUNC('day', t.block_time)) AS cumulative_volume_by_chain,SUM(SUM(t.amount_usd)) OVER (ORDER BY DATE_TRUNC('day', t.block_time)) AS cumulative_volume_totalFROM tokens.transfers tINNER JOIN smart_accounts saON t."from" = sa.accountAND t.blockchain = sa.blockchainWHERE t.block_time >= TIMESTAMP '2023-12-01'AND t.amount_usd IS NOT NULLGROUP BY 1, 2ORDER BY date_time DESC;