Skip to content
Dune Analytics

@k06a / 1inch Volume Contribution to Uniswap

1inch Volume Contribution to Uniswap

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

1SELECT
2    --date_trunc('month', tt.time) AS time,
3    SUM(
4        GREATEST(
5            from_amount * CASE
6                WHEN from_token IN (
7                    '\xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee', -- ETH
8                    '\xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', -- WETH
9                    '\x5e74c9036fb86bd7ecdcb084a0673efc32ea31cb', -- sETH
10                    '\x3a3a65aab0dd2a17e3f1947ba16138cd37d08c04', -- aETH
11                    '\xc0829421c1d260bd3cb3e0f06cfe2d52db2ce315'  -- BETH
12                ) THEN (
13                    SELECT p.price
14                    FROM prices.layer1_usd p
15                    WHERE p.symbol = 'ETH'
16                    AND p.minute = date_trunc('minute', tt.time)
17                    LIMIT 1
18                )
19                WHEN from_token IN (
20                    '\x89d24a6b4ccb1b6faa2625fe562bdd9a23260359', -- SAI
21                    '\x6b175474e89094c44da98b954eedeac495271d0f', -- DAI
22                    '\x0000000000085d4780B73119b644AE5ecd22b376', -- TUSD
23                    '\x309627af60f0926daa6041b8279484312f2bf060', -- USDB
24                    '\x8E870D67F660D95d5be530380D0eC0bd388289E1', -- PAX
25                    '\x57ab1e02fee23774580c119740129eac7081e9d3', -- sUSD 1...

SQL query results

Loading