NuveveCryptoArchived$VELO Locks vs. Unlocks
Updated 2023-04-13Copy Reference Fork
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
›
⌄
with locks as (
select
block_timestamp::date as date,
count(distinct(tx_hash)) as tx_count
from optimism.velodrome.ez_velo_locks
where velo_action = 'deposit'
and block_timestamp >= current_date - 365
group by date
),
unlocks as (
select
block_timestamp::date as date,
count(distinct(tx_hash)) as tx_count
from optimism.velodrome.ez_velo_locks
where velo_action = 'withdraw'
and block_timestamp >= current_date - 365
group by date
)
select
locks.date as date,
locks.tx_count as locks,
unlocks.tx_count as unlocks
from locks
inner join unlocks on locks.date = unlocks.date
Run a query to Download Data