tkvresearch2024-05-07 01:41 PM
Updated 2024-08-20
999
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 bridged_user as
(select distinct user,
1 as point
from
(select from_address as user
from ethereum.core.ez_native_transfers
where to_address = '0x49048044d57e1c92a77f79988d21fa8faf74e97e'
union all
select from_address
from ethereum.core.ez_token_transfers
where to_address = '0x3154cf16ccdb4c6d922629664174b904d80f2c35')
),
bridged_volume as
(
select user,
case
when amt_bridged between 10000 and 50000 then 1
when amt_bridged between 50001 and 250000 then 2
when amt_bridged > 250000 then 3
else 0
end as point
from
(select user,
sum(AMOUNT_USD) as amt_bridged
from
(select from_address as user,
amount_usd
from ethereum.core.ez_native_transfers
where to_address = '0x49048044d57e1c92a77f79988d21fa8faf74e97e'
union all
select from_address,
amount_usd
from ethereum.core.ez_token_transfers
where to_address = '0x3154cf16ccdb4c6d922629664174b904d80f2c35')
group by 1)
QueryRunArchived: QueryRun has been archived