TIME_CATEGORY | COUNT | |
---|---|---|
1 | within 1 hour | 978071 |
2 | within 1 day | 65692 |
bobby_danielTime before a token rug pulls
Updated 2025-04-04
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 token_launch AS (
SELECT
mint,
MIN(block_timestamp) AS launch_time
FROM solana.defi.fact_token_mint_actions
WHERE succeeded = true
AND block_timestamp >= DATEADD('day', -30, CURRENT_TIMESTAMP())
GROUP BY mint
),
suspicious_events AS (
-- Looking for large balance changes that might indicate a rug pull
SELECT
mint,
MIN(block_timestamp) AS suspicious_time
FROM solana.core.fact_token_balances
WHERE succeeded = true
AND (balance - pre_balance) / NULLIF(pre_balance, 0) < -0.9 -- 90% or more reduction
AND block_timestamp >= DATEADD('day', -30, CURRENT_TIMESTAMP())
GROUP BY mint
),
rug_time as (
SELECT
tl.mint as token_address,
tl.launch_time,
se.suspicious_time as potential_rug_time,
DATEDIFF('minute', tl.launch_time, se.suspicious_time) AS time_to_suspicious_event_minutes,
CASE
WHEN DATEDIFF('minute', tl.launch_time, se.suspicious_time) < 60 THEN 'within 1 hour'
WHEN DATEDIFF('minute', tl.launch_time, se.suspicious_time) < 1440 THEN 'within 1 day'
ELSE 'more than 1 day'
END AS time_category
FROM token_launch tl
JOIN suspicious_events se ON tl.mint = se.mint
WHERE se.suspicious_time > tl.launch_time -- ensure suspicious activity happened after launch
)
Last run: about 2 months ago
2
49B
35s