Sandeshosmo top rewards
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 losers as
(
select
fs.REDELEGATE_SOURCE_VALIDATOR_ADDRESS as source,
dl.label as labels,
count(distinct fs.tx_id) as redelgates
from osmosis.core.fact_staking fs
inner join osmosis.core.dim_labels dl
on dl.address=fs.REDELEGATE_SOURCE_VALIDATOR_ADDRESS
where
action='redelegate'
and
fs.block_timestamp > current_date - interval '3 months'
group by source, labels
order by redelgates desc
limit 5
),
gainers as
(
select
fs.VALIDATOR_ADDRESS as destination,
dl.label as labels,
count(distinct fs.tx_id) as redelgates
from osmosis.core.fact_staking fs
inner join osmosis.core.dim_labels dl
on dl.address=fs.VALIDATOR_ADDRESS
where
action='redelegate'
and
fs.block_timestamp > current_date - interval '3 months'
group by destination, labels
order by redelgates desc
limit 5
),
Run a query to Download Data