0xHaM-dLabel Justification #1
Updated 2024-08-18
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
›
⌄
-- forked from Playwo / Label Justification #1 @ https://flipsidecrypto.xyz/Playwo/q/2023-04-20-12-40-am-SUMZpD
WITH timeframe AS (
SELECT
date_day AS date
FROM crosschain.core.dim_dates
WHERE date_day <= CURRENT_DATE
AND date_day >= CURRENT_DATE - 500
),
asset_transfers AS (
SELECT
block_timestamp,
TX_HASH,
TX_SIGNER AS from_address,
TX_RECEIVER AS to_address,
DEPOSIT/1e24 as amount
FROM near.core.fact_transfers
WHERE DEPOSIT > 0
),
cex_hot_wallets AS (
SELECT
address AS hot_wallet,
project_name AS cex_name
FROM near.core.dim_address_labels
WHERE blockchain = 'near'
AND label_type = 'cex'
AND label_subtype = 'hot_wallet'
),
cex_deposit_wallets AS (
SELECT
address AS deposit_address,
project_name AS cex_name
FROM near.core.dim_address_labels
WHERE blockchain = 'near'
AND label_type = 'cex'
AND label_subtype = 'deposit_wallet'
QueryRunArchived: QueryRun has been archived