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 2date_trunc('day', block_time) as day, 3"ctoken_symbol" as "asset", 4sum("repay_amount_usd"*1.05) as value_liquidated, 5avg(p.price) as ETH_price, 6sum(sum("repay_amount_usd")) over (order by date_trunc('day', block_time)) as cumulative_value_liquidated, 7sum(sum("repay_amount_usd"*0.05)) over (order by date_trunc('day', block_time)) as compound_liquidator_revenue 8FROM dune_user_generated."view_compound_liq_test" 9INNER JOIN prices.usd p ON p.minute = date_trunc('day', block_time) 10WHERE p.symbol = 'WETH' 11GROUP BY 1,2 12ORDER BY 1 desc 13LIMIT 100 14 15