mlhAddresses received most volume in USD based on received tokens in the last year
Updated 2022-08-10Copy Reference Fork
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 tornado as (
select address,
address_name
from flipside_prod_db.crosschain.address_labels
where project_name ilike 'tornado cash'
)
select symbol,
sum(volume_usd) as volume_USD
from ( select address ,
'ETH' symbol,
volume_usd
from (select address,
sum(amount_usd) as volume_usd
from ethereum.core.ez_eth_transfers
join tornado on eth_to_address = address
where block_timestamp::date > current_date - 365
and amount_usd > 0
group by 1
)
group by 1,2,3
UNION
select address,
symbol,
volume_usd
from (select address,
symbol,
sum(amount_usd) as volume_usd
from ethereum.core.ez_token_transfers
join tornado on origin_to_address = address
where block_timestamp::date > current_date - 365
and amount_usd > 0
group by 1,2
)
group by 1,2,3
Run a query to Download Data