Ariooptimism and ftx - velodrome - 10
Updated 2022-11-18
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
›
⌄
select
'SWAP' as Activity,
block_timestamp::date as date,
count(distinct TX_HASH) as "# TXs",
count(distinct ORIGIN_FROM_ADDRESS) as "# Users"
from optimism.velodrome.ez_swaps
where BLOCK_TIMESTAMP >= CURRENT_DATE-17
and BLOCK_TIMESTAMP < CURRENT_DATE
group by 1,2
union ALL
select
'LP ACTION' as Activity,
block_timestamp::date as date,
count(distinct TX_HASH) as "# TXs",
count(distinct ORIGIN_FROM_ADDRESS) as "# Users"
from optimism.velodrome.ez_lp_actions
where BLOCK_TIMESTAMP >= CURRENT_DATE-17
and BLOCK_TIMESTAMP < CURRENT_DATE
group by 1,2
union ALL
select
'STAKING ACTION' as Activity,
block_timestamp::date as date,
count(distinct TX_HASH) as "# TXs",
count(distinct LP_PROVIDER_ADDRESS) as "# Users"
from optimism.velodrome.ez_staking_actions
where BLOCK_TIMESTAMP >= CURRENT_DATE-17
and BLOCK_TIMESTAMP < CURRENT_DATE
group by 1,2
Run a query to Download Data