Skip to content
Dune Analytics

@0xBoxer / New Query

New Query

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  a1.DAY,
2        a1.UNIV2intoJAR,
3        a1.UNIV2outofJAR
4
5FROM
6--pjar069a
7(Select  DAY,
8        a.Univ2supply, 
9        a.priceweth,
10        a.priceasset0,
11        a.reserve0,
12        a.reserve1,
13        a.UNIV2_ETH_asset0_in_JAR,
14        a.UNIV2intoJAR, 
15        a.UNIV2outofJAR*-1 as UNIV2outofJAR,
16        (a.reserve0*a.priceasset0+a.reserve1*a.priceweth)/a.Univ2supply as price_of_univ2,
17        a.UNIV2_ETH_asset0_in_JAR*((a.reserve0*a.priceasset0+a.reserve1*a.priceweth)/a.Univ2supply) as value_in_jar
18        
19        
20    From 
21    (SELECT T.DAY, u2.Univ2supply,
22       p1.priceweth, p1.priceasset0, b.reserve0, b.reserve1, jar1.UNIV2_ETH_asset0_in_JAR, jar1.UNIV2intoJAR, jar1.UNIV2outofJAR
23        FROM
24        --start time as basis
25        (select date_trunc('DAY', time) as DAY
...

SQL query results

Loading
 

Result visualizations

New Query

Loading