Skip to content
Dune Analytics

@MatteoLeibowitz / Cumulative ZRX Staked

Cumulative ZRX Staked

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 staked AS 
2(
3    SELECT
4    date_trunc('day', evt_block_time) as day,
5    sum(amount/1e18) as value_staked
6    FROM zeroex_v3."StakingProxy_evt_Stake"
7    GROUP BY 1
8UNION 
9    SELECT
10    date_trunc('day', evt_block_time) as day,
11    sum(-amount/1e18) as value_staked
12    FROM zeroex_v3."StakingProxy_evt_Unstake"
13    GROUP BY 1
14), 
15
16ZRX_price AS 
17(
18SELECT 
19minute, 
20price
21FROM prices.usd 
22WHERE symbol = 'ZRX'
23)
24
25SELECT ...