shreex2024-05-19 08:02 PM
Updated 2024-05-19
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 zero_address AS
(
SELECT address FROM arbitrum.core.dim_labels WHERE project_name = 'stargate finance'
UNION
SELECT address FROM optimism.core.dim_labels WHERE project_name = 'stargate finance'
UNION
SELECT address FROM polygon.core.dim_labels WHERE project_name = 'stargate finance'
),
cexes AS
(
SELECT address FROM arbitrum.core.dim_labels WHERE label_type = 'cex' AND label_subtype = 'hot_wallet'
UNION
SELECT address FROM optimism.core.dim_labels WHERE label_type = 'cex' AND label_subtype = 'hot_wallet'
UNION
SELECT address FROM polygon.core.dim_labels WHERE label_type = 'cex' AND label_subtype = 'hot_wallet'
),
user_list as (
SELECT
DISTINCT origin_from_address AS basic_address,
COUNT(DISTINCT tx_hash) AS transactions,
sum(amount_usd) as amount_transfered
FROM arbitrum.core.ez_native_transfers
WHERE origin_to_address IN (SELECT address FROM zero_address)
AND amount_usd > 150
AND block_timestamp >= '2022-03-15'
GROUP BY 1
UNION