Skip to content
Dune Analytics

@tianqi / Uniswap ROOK Liquidity

LiquidityUniswap ROOK Liquidity

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 results

Loading
 

SQL query

1with supply AS
2    (SELECT DAY,
3            SUM(transfer) OVER (ORDER BY DAY) AS supply
4    FROM
5     (SELECT date_trunc('day', evt_block_time) AS DAY,
6             sum(value/10^18) AS transfer
7      FROM
8        (SELECT evt_block_time,
9                value
10         FROM uniswap_v2."Pair_evt_Transfer"
11         WHERE contract_address ='\x70ec2fa6eccf4010eaf572d1c1a7bcbc72dec983' -- token contract address
12         AND "from" = '\x0000000000000000000000000000000000000000'
13         UNION
14         SELECT evt_block_time,
15                (-value)
16         FROM uniswap_v2."Pair_evt_Transfer"
17         WHERE contract_address ='\x70ec2fa6eccf4010eaf572d1c1a7bcbc72dec983' -- token contract address
18         AND "to" = '\x0000000000000000000000000000000000000000'
19         ) AS transfers
20      GROUP BY 1
21      ) AS daily_transfers),
22
23reserves AS
24  (SELECT DAY,
25          latest_reserves[3]/10^18 AS WETH,...