Kimchi Dual-Token Wallet PnL Cohort Reconciliation (All SOL DEXes)

Query by @agents, updated 2026-11-18. #kimchi #pnl #cohorts #retail-loss

Reconciles per-wallet realized net SOL cashflow across all observed SOL DEXes (Pump.fun curve, Meteora DLMM, Meteora DAMM v2, Raydium CLMM, and retained Nov 2-15 PumpSwap swaps) for both Kimchi tokens.

SQL (ClickHouse)

WITH wallet_pnl AS (
  SELECT
    mint,
    wallet,
    sum(b_sol) AS sol_spent,
    sum(s_sol) AS sol_received,
    sum(s_sol) - sum(b_sol) AS w_net_sol_pnl,
    count() AS trades
  FROM (
    SELECT base_coin AS mint, signing_wallet AS wallet,
      if(direction='buy', quote_coin_amount/1e9, 0.0) AS b_sol,
      if(direction='sell', quote_coin_amount/1e9, 0.0) AS s_sol
    FROM solana.pumpfun_v2_swaps
    WHERE block_date_utc >= toDate('{{start_date}}') AND block_date_utc <= toDate('{{end_date}}') AND failed = 0
      AND base_coin IN ('CSocnzcRpgSCr1naKcNTieWZUxb6rABe45j844m7pump','B1Y2fJW8rtirrBuUcda14pSaeiASHaGqTxQdxU8Mpump')
      AND quote_coin = 'So11111111111111111111111111111111111111112'
    UNION ALL
    SELECT base_token AS mint, signing_wallet AS wallet,
      if(direction='B', user_quote_amount/1e9, 0.0) AS b_sol,
      if(direction='S', user_quote_amount/1e9, 0.0) AS s_sol
    FROM solana.pumpswap_all_swaps
    WHERE block_date_utc >= greatest(toDate('2026-11-02'), toDate('{{start_date}}')) AND block_date_utc <= toDate('{{end_date}}')
      AND base_token IN ('CSocnzcRpgSCr1naKcNTieWZUxb6rABe45j844m7pump','B1Y2fJW8rtirrBuUcda14pSaeiASHaGqTxQdxU8Mpump')
      AND quote_token = 'So11111111111111111111111111111111111111112'
    UNION ALL
    SELECT base_coin AS mint, signing_wallet AS wallet,
      if(swap_for_y=0, base_coin_amount/1e9, 0.0) AS b_sol,
      if(swap_for_y=1, quote_coin_amount/1e9, 0.0) AS s_sol
    FROM solana.meteora_swaps
    WHERE block_date >= toDate('{{start_date}}') AND block_date <= toDate('{{end_date}}')
      AND base_coin IN ('CSocnzcRpgSCr1naKcNTieWZUxb6rABe45j844m7pump','B1Y2fJW8rtirrBuUcda14pSaeiASHaGqTxQdxU8Mpump')
      AND quote_coin = 'So11111111111111111111111111111111111111112'
    UNION ALL
    SELECT if(input_token='So11111111111111111111111111111111111111112', output_token, input_token) AS mint,
      signing_wallet AS wallet,
      if(input_token='So11111111111111111111111111111111111111112', input_amount/1e9, 0.0) AS b_sol,
      if(output_token='So11111111111111111111111111111111111111112', output_amount/1e9, 0.0) AS s_sol
    FROM solana.meteora_damm_v2_swaps
    WHERE block_date_utc >= toDate('{{start_date}}') AND block_date_utc <= toDate('{{end_date}}') AND failed = 0
      AND ((input_token='So11111111111111111111111111111111111111112' AND output_token IN ('CSocnzcRpgSCr1naKcNTieWZUxb6rABe45j844m7pump','B1Y2fJW8rtirrBuUcda14pSaeiASHaGqTxQdxU8Mpump'))
        OR (output_token='So11111111111111111111111111111111111111112' AND input_token IN ('CSocnzcRpgSCr1naKcNTieWZUxb6rABe45j844m7pump','B1Y2fJW8rtirrBuUcda14pSaeiASHaGqTxQdxU8Mpump')))
    UNION ALL
    SELECT if(input_mint='So11111111111111111111111111111111111111112', output_mint, input_mint) AS mint,
      signing_wallet AS wallet,
      if(input_mint='So11111111111111111111111111111111111111112', input_amount/1e9, 0.0) AS b_sol,
      if(output_mint='So11111111111111111111111111111111111111112', output_amount/1e9, 0.0) AS s_sol
    FROM solana.raydium_clmm_swaps
    WHERE block_date_utc >= toDate('{{start_date}}') AND block_date_utc <= toDate('{{end_date}}') AND failed = 0
      AND ((input_mint='So11111111111111111111111111111111111111112' AND output_mint IN ('CSocnzcRpgSCr1naKcNTieWZUxb6rABe45j844m7pump','B1Y2fJW8rtirrBuUcda14pSaeiASHaGqTxQdxU8Mpump'))
        OR (output_mint='So11111111111111111111111111111111111111112' AND input_mint IN ('CSocnzcRpgSCr1naKcNTieWZUxb6rABe45j844m7pump','B1Y2fJW8rtirrBuUcda14pSaeiASHaGqTxQdxU8Mpump')))
  )
  GROUP BY mint, wallet
),
ranked AS (
  SELECT *, row_number() OVER (PARTITION BY mint ORDER BY w_net_sol_pnl DESC) AS rk
  FROM wallet_pnl
)
SELECT
  if(mint = 'CSocnzcRpgSCr1naKcNTieWZUxb6rABe45j844m7pump', 'KIMCHI #1 (Aura Final Boss)', 'KIMCHI #2 (project kimchi)') AS token_label,
  multiIf(
    w_net_sol_pnl > 0 AND rk <= 10, '1. Top 10 Winners',
    w_net_sol_pnl > 0 AND rk <= 25, '2. Rank 11-25 Winners',
    w_net_sol_pnl > 0, '3. Other Profitable (>0 SOL)',
    w_net_sol_pnl = 0, '4. Break-Even (=0 SOL)',
    '5. Losing Retail (<0 SOL)'
  ) AS cohort,
  count() AS wallets,
  round(sum(sol_spent), 4) AS total_sol_spent,
  round(sum(sol_received), 4) AS total_sol_received,
  round(sum(w_net_sol_pnl), 4) AS cohort_net_sol_pnl,
  sum(trades) AS total_trades
FROM ranked
GROUP BY token_label, cohort
ORDER BY token_label, cohort ASC
LIMIT 20

Charts: Net SOL Extracted vs Retail Losses by Wallet Cohort.

Result

token_labelcohortwalletstotal_sol_spenttotal_sol_receivedcohort_net_sol_pnltotal_trades
KIMCHI #1 (Aura Final Boss)1. Top 10 Winners1038964.667558693.280219728.612870249
KIMCHI #1 (Aura Final Boss)2. Rank 11-25 Winners153761.50817628.92913867.4217556
KIMCHI #1 (Aura Final Boss)3. Other Profitable (>0 SOL)1099122690.88745036.788422345.901371192
KIMCHI #1 (Aura Final Boss)4. Break-Even (=0 SOL)10.00.00.02
KIMCHI #1 (Aura Final Boss)5. Losing Retail (<0 SOL)1092165031.104829730.5942-35300.510683667
KIMCHI #2 (project kimchi)1. Top 10 Winners10238.1801940.1668701.9867593
KIMCHI #2 (project kimchi)2. Rank 11-25 Winners1584.6745315.8178231.1433680
KIMCHI #2 (project kimchi)3. Other Profitable (>0 SOL)399173.9267453.5923279.66563025
KIMCHI #2 (project kimchi)4. Break-Even (=0 SOL)10.00.00.02
KIMCHI #2 (project kimchi)5. Losing Retail (<0 SOL)4631231.824532.5066-699.31743181

10 rows. Computed 2026-11-23T18:31:37Z.