sinahosseinzadehUntitled Query
Updated 2022-08-16
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
with mint_pool as (
select top 10 pool_name,count(tx_hash) as tx_count, sum(LP_TOKEN_AMOUNT_USD) as total_lp_usd
from optimism.velodrome.ez_lp_actions
where lp_token_action = 'burn'
group by 1
order by 2 desc
),
mint_pool2 as (
select date_trunc('day',block_timestamp) as date , a.pool_name , count(tx_hash) as tx_count,sum(LP_TOKEN_AMOUNT_USD) as total_lp_usd
from optimism.velodrome.ez_lp_actions a
join mint_pool p
on p.pool_name = a.pool_name
where lp_token_action = 'burn'
group by 1,2
order by 1 asc
),
burn_pool as (
select top 10 pool_name,count(tx_hash) as tx_count, sum(LP_TOKEN_AMOUNT_USD) as total_lp_usd
from optimism.velodrome.ez_lp_actions
where lp_token_action = 'mint'
group by 1
order by 2 desc
),
burn_pool2 as (
select date_trunc('day',block_timestamp) as date , a.pool_name , count(tx_hash) as tx_count,sum(LP_TOKEN_AMOUNT_USD) as total_lp_usd
from optimism.velodrome.ez_lp_actions a
join mint_pool p
on p.pool_name = a.pool_name
where lp_token_action = 'mint'
group by 1,2
order by 1 asc
)
Run a query to Download Data