Skip to content
Dune Analytics

@rlg195 / DeFi Pulse Index Liquidity

DPI Uniswap Liquidity ChartDeFi Pulse Index 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

1WITH mint_data as (
2SELECT (amount0/1e18) as dpi_amount,
3       (amount1/1e18) as eth_amount,
4       date_trunc('minute', m.evt_block_time) as day
5FROM uniswap_v2."Pair_evt_Mint" m 
6WHERE m.contract_address = '\x4d5ef58aac27d99935e5b6b4a6778ff292059991'
9burn_data as (
10SELECT (amount0/1e18) as dpi_amount,
11       (amount1/1e18) as eth_amount,
12       date_trunc('minute', evt_block_time) as day
13FROM uniswap_v2."Pair_evt_Burn" 
14WHERE contract_address = '\x4d5ef58aac27d99935e5b6b4a6778ff292059991'
17swap_data AS (
18SELECT ("amount0In" - "amount0Out")/1e18 as dpi_amount,
19       ("amount1In" - "amount1Out")/1e18 as eth_amount,
20       date_trunc('minute', evt_block_time) as day
21FROM uniswap_v2."Pair_evt_Swap" 
22WHERE contract_address = '\x4d5ef58aac27d99935e5b6b4a6778ff292059991'
25mint_grouped AS (...