Abbas_ra21delegate 1
Updated 2023-04-03
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
tb AS (
select
FROM_ADDRESS AS User,
- sum(RAW_AMOUNT / 1e18) AS Amount
from
arbitrum.core.fact_token_transfers
where
CONTRACT_ADDRESS = lower('0x912ce59144191c1204e64559fe8253a0e49e6548')
group by
1
union ALL
select
TO_ADDRESS AS User,
sum(RAW_AMOUNT / 1e18) AS Amount
from
arbitrum.core.fact_token_transfers
where
CONTRACT_ADDRESS = lower('0x912ce59144191c1204e64559fe8253a0e49e6548')
group by
1
),
tb2 AS (
select
User,
sum(Amount) AS "ARB Balance"
from
tb
group by
1
)
select
EVENT_INPUTS:delegate AS delegate,
EVENT_INPUTS:newBalance/1e18 AS "Votes Power",
rank() over (partition by EVENT_INPUTS:delegate order by BLOCK_TIMESTAMP desc) AS Rank
from
Run a query to Download Data