Skip to content
Dune Analytics

@slash125 / fees collected from bonding curve swaps

fees collected from bonding curve swaps

Loading
 

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.

SQL query

1WITH total AS
2  (SELECT DAY,
3          SUM(transfer) OVER (
4                              ORDER BY DAY) total_supply
5   FROM
6     (SELECT date_trunc('day', evt_block_time) AS DAY,
7             sum(e.value) AS transfer
8      FROM erc20."ERC20_evt_Transfer" t
9      JOIN ethereum.traces e ON t.evt_tx_hash = e.tx_hash
10      WHERE t.contract_address = '\x584bC13c7D411c00c01A62e8019472dE68768430'
11        AND t.to = '\x25b904ba7f17663f9005d34db03c97171e4d4cb7'
12        AND e.to='\x8Ac7dE95Ff8D0EE72E0b54F781Ab2e18F27108fB'
13      GROUP BY 1) AS net)
14SELECT distinct(DAY),
15       (total_supply/10e17) AS "cumulative collected eth"
16FROM total
17ORDER BY DAY DESC 

SQL query results

Loading