About queries and results
Dune Analytics lets you explore, create, and share Ethereum analytics. You can find an endless amount of great queries and dashboards on Dune.
We have decoded Ethereum smart contract data so you can do powerful analysis with simple SQL queries and visualise the query results into beautiful graphs.
Dune Analytics is free for everyone forever. If you want extra features like private queries, export your results and more check out our Pro plan.
1SELECT (CASE 2 WHEN eth.DAY IS NULL THEN wbtc.DAY 3 ELSE eth.DAY 4 END) AS day_new, 5 ercpool_volume_of_daily_deposits, 6 ercpool_volume_of_daily_withdrawal 7FROM 8 (SELECT date(call_block_time) AS DAY, 9 sum(output_mint / 1e21) AS ercpool_volume_of_daily_deposits 10 FROM hegic."HegicERCPool_call_provide" 11 GROUP BY DAY) eth 12FULL OUTER JOIN 13 (SELECT date(call_block_time) AS DAY, 14 sum(output_burn / 1e21) AS ercpool_volume_of_daily_withdrawal 15 FROM hegic."HegicERCPool_call_withdraw" 16 GROUP BY DAY) wbtc ON eth.DAY = wbtc.DAY 17 order by day_new