scottincryptoValidator Ranking May-June narrow
Updated 2021-07-12
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 last_month as (
select
validator_address_label,
'May' as month,
sum(event_amount_usd) as usd_total,
rank() over (order by sum(event_amount_usd) desc) as rank
from terra.reward
where date_trunc('month', block_timestamp) = '2021-05-01'
and action = 'withdraw_delegator_rewards'
group by 1,2
order by 3
),
this_month as (
select
validator_address_label,
'June' as month,
sum(event_amount_usd) as usd_total,
rank() over (order by sum(event_amount_usd) desc) as rank
from terra.reward
where date_trunc('month', block_timestamp) = '2021-06-01'
and action = 'withdraw_delegator_rewards'
group by 1,2
order by 3
),
all_records as (
SELECT * from last_month
union ALL
select * from this_month
),
top_10_list as (
select distinct validator_address_label
from all_records
where (month = 'May' and rank < 11)
Run a query to Download Data