Skip to content
Dune Analytics

@k06a / 1inch Distribution Per Day

1inch Distribution Per Day

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('day', tt.time) AS time,
3    SUM(
4        kyber_amount * (
5            SELECT p.price
6            FROM prices."usd" p
7            WHERE p.contract_address is NULL
8            ANd p.symbol = 'ETH'
9            AND p.minute = date_trunc('minute', tt.time)
10            LIMIT 1
11        ) / 1e18
12    ) as Kyber,
13    SUM(
14        zrx_amount * (
15            CASE
16                WHEN zrx_token = '\xf47261b0000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' THEN 
17                    (
18                        SELECT p.price
19                        FROM prices."usd" p
20                        WHERE p.contract_address is NULL
21                        ANd p.symbol = 'ETH'
22                        AND p.minute = date_trunc('minute', tt.time)
23                        LIMIT 1
24                    )
25                ELSE...

SQL query results

Loading