Skip to content
Dune Analytics

@jebonn / Uniswap_v2 per pair fees&liquidity

Total pool reserves in tokensUniswap_v2 per pair fees&liquidity


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


SQL query

1/* This does not work for tokens whose symbols are used by multiple tokens (ex: UNI)
2-- Get token and pair information from tokens symbols
3WITH tmp_token0 AS
4  (-- Temporary values as real tokens order is not yet known
5 SELECT contract_address
6   FROM erc20."tokens"
7   WHERE symbol='{ {symbol0}}'),
8     tmp_token1 AS
9  (SELECT contract_address
10   FROM erc20."tokens"
11   WHERE symbol='{ {symbol1}}')
13,pair AS -- Get UNISWAP pair information
14  (SELECT pair,
15          token0,
16          token1
17   FROM uniswap_v2."Factory_evt_PairCreated"
18   WHERE (token0=(SELECT contract_address FROM tmp_token0)
19          AND token1=(SELECT contract_address FROM tmp_token1))
20     OR (token1=(SELECT contract_address FROM tmp_token0)
21         AND token0=(SELECT contract_address FROM tmp_token1)))
25WITH pair AS -- Get UNISWAP pair information...

Result visualizations

Per supply unit product token0 * token1Uniswap_v2 per pair fees&liquidity