mansa$MATIC Volume Staked
Updated 2022-09-21
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
›
⌄
select
date_trunc('month',block_timestamp) as month,
sum(event_inputs:value/1e18) as Matic_staked,
sum (Matic_staked) over (order by month asc rows between unbounded preceding and current row) as cum_Matic_staked,
count(distinct(origin_from_address)) as n_stakers,
sum (n_stakers) over (order by month asc rows between unbounded preceding and current row) as cum_n_stakers,
avg(event_inputs:value/1e18) as avg_stake_size,
count(distinct(tx_hash)) as n_deposits,
sum(n_deposits) over (order by month asc rows between unbounded preceding and current row) as cum_n_deposits,
max(event_inputs:value/1e18) as max_matic_deposit,
min(event_inputs:value/1e18) as min_matic_deposit,
median(event_inputs:value/1e18) as median_matic_deposit,
case when lower(origin_to_address) = lower('0x3A58a54C066FdC0f2D55FC9C89F0415C92eBf3C4') then 'Lido'
when lower(origin_to_address) = lower('0x7ed6390f38d554B8518eF30B925b46972E768AF8') then 'Claystack'
when lower(origin_to_address) = lower('0x3aD736904E9e65189c3000c7DD2c8AC8bB7cD4e3') then 'Stader'
end as stake_platform
from polygon.core.fact_event_logs
where lower(origin_to_address) in (lower('0x3A58a54C066FdC0f2D55FC9C89F0415C92eBf3C4'), lower('0x7ed6390f38d554B8518eF30B925b46972E768AF8'),
lower('0x3aD736904E9e65189c3000c7DD2c8AC8bB7cD4e3'))
and month >= '2022-01-01 00:00:00.000'
and event_name = 'Transfer'
and tx_status = 'SUCCESS'
group by 1, 12
order by 1
Run a query to Download Data