Pmisha-bmlMdxtotal
Updated 2022-04-30
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
›
⌄
with t1 as (select
'From Sushimaker' as kind,
sum(raw_amount/1e18) as total_amount,
count(*) as transfer_count
from ethereum_core.fact_token_transfers
where contract_address ='0x6b3595068778dd592e39a122f4f5a5cf09c90fe2'
and to_address='0x8798249c2e607446efb7ad49ec89dd1865ff4272'
and from_address='0x5ad6211cd3fde39a9cecb5df6f380b8263d1e277'
and block_timestamp>='2022-01-01'),
t2 as (select
'staked by users' as kind,
sum(raw_amount/1e18) as total_amount,
count(*) as transfer_count
from ethereum_core.fact_token_transfers
where contract_address ='0x6b3595068778dd592e39a122f4f5a5cf09c90fe2'
and to_address='0x8798249c2e607446efb7ad49ec89dd1865ff4272'
and from_address!='0x5ad6211cd3fde39a9cecb5df6f380b8263d1e277'
and block_timestamp>='2022-01-01')
select * from t1 union all select * from t2
Run a query to Download Data