Skip to content
Dune Analytics

@HanSolar / [Snowswap] Historical ySNOW & ycrvSNOW Pool Amounts

[Snowswap] Historical ySNOW & ycrvSNOW Pool Amounts

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
2    "DATE",
3    "evt_block_time",
4    "Pool",
5    sum(x."VALUE") OVER (PARTITION BY x."Pool" ORDER BY x."DATE", "evt_block_time") as "TOTAL",
6    "VALUE"
7FROM
8    (
9    -- ySNOW
10    SELECT 
11        "DATE",
12        "evt_block_time",
13        "Pool",
14        "Token",
15        -- MAX("evt_block_time") OVER (PARTITION BY "DATE", "Pool", "Token"  ORDER BY "DATE", "Pool", "Token") as max_time,
16        sum(b."VALUE") OVER (PARTITION BY b."Token" ORDER BY b."DATE", "evt_block_time") as "TOTAL",
17        "VALUE"
18    FROM 
19        (SELECT 
20            i."DATE",
21            j."evt_block_time",
22            'ySNOW' AS "Pool",
23            i."Token",
24            CASE WHEN j."VALUE" is NULL THEN 0 ELSE j."VALUE" END as "VALUE"
25        FROM ...

SQL query results

Loading