Skip to content
Dune Analytics

@0xBoxer / Pickle.Finance Harvest Query

Pickle.Finance Harvest 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 
2pjar0a.hour,
3pjar0a.profits,
4pjar0b.profits,
5pjar0c.profits,
6pjar069a.profits,
7pjar069b.profits,
8pjar069c.profits,
9pjar069d.profits,
10
11pjar0a.profits + pjar0b.profits + pjar0c.profits + pjar069a.profits + pjar069b.profits + pjar069c.profits + pjar069d.profits as total_profits,
12(pjar0a.profits + pjar0b.profits + pjar0c.profits + pjar069a.profits + pjar069b.profits + pjar069c.profits + pjar069d.profits)*0.045 as fees_generated
13
14
15
16FROM 
17
18(
19Select snx1.Hour, value_of_SNX_harvested, value_of_CRV_harvested, (value_of_SNX_harvested+value_of_CRV_harvested) as profits
20From
21    (
22    Select 
23    Hour,
24    Sum(value_harvested) over (order by hour asc) as value_of_SNX_harvested
25    FROM
...

SQL query results

Loading
 

Result visualizations

Pickle.Finance Harvest Query

Loading