Sandeshosmo prive v unstakes
Updated 2022-07-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
34
35
36
›
⌄
with unstakes as
(
(
select
block_timestamp,
TX_ID,currency,
decimal,
DELEGATOR_ADDRESS,
VALIDATOR_ADDRESS,
'normal_unstake' as "stake"
from
osmosis.core.fact_staking
where
action='undelegate'
and TX_STATUS='SUCCEEDED'
)
union
(
select
block_timestamp,
TX_ID,currency,
decimal,
DELEGATOR_ADDRESS,
VALIDATOR_ADDRESS,
'super_unstake' as "stake"
from osmosis.core.fact_superfluid_staking
where action='Superfluiddelegate'
)
)
select
price.RECORDED_AT::date as "date",
avg(price.price) as price,
count(distinct unstakes.tx_id) as "number of unstakes"
from osmosis.core.dim_prices price
Run a query to Download Data