x1sgsquealing-yellow
Updated 2024-11-22
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 microbuyers AS (
SELECT
swapper,
swap_from_amount
FROM solana.defi.fact_swaps
WHERE swap_from_mint = 'So11111111111111111111111111111111111111112'
AND swap_from_amount < 0.1
),
max_amounts AS (
SELECT
swapper,
block_timestamp,
swap_to_mint,
swap_from_mint,
tx_id,
MAX(swap_to_amount) AS max_swap_to_amount,
MAX(swap_from_amount) AS max_swap_from_amount
FROM
solana.defi.fact_swaps
WHERE
succeeded = TRUE
AND block_timestamp >= '2024-11-14'
AND swap_from_mint != 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'
AND swap_to_mint != 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'
AND swapper NOT IN (SELECT swapper FROM microbuyers)
GROUP BY
swapper,
swap_to_mint,
swap_from_mint,
tx_id,
block_timestamp
),
last_trade AS (
SELECT
swapper,
MAX(block_timestamp) AS max_bt
QueryRunArchived: QueryRun has been archived