Skip to content

fixing pumpswap volume in dex solana trades#9341

Merged
0xRobin merged 8 commits intoduneanalytics:mainfrom
nyssarex:fix_pumpswap_dex_trades
Apr 1, 2026
Merged

fixing pumpswap volume in dex solana trades#9341
0xRobin merged 8 commits intoduneanalytics:mainfrom
nyssarex:fix_pumpswap_dex_trades

Conversation

@nyssarex
Copy link
Copy Markdown
Contributor

Checking pumpswap_solana_base_trades.sql content

@github-actions github-actions Bot marked this pull request as draft February 20, 2026 05:42
@github-actions github-actions Bot added WIP work in progress dbt: solana covers the Solana dbt subproject labels Feb 20, 2026
@nyssarex nyssarex changed the title Added test model for pumpswap fixing pumpswap volume in dex solana trades Feb 21, 2026
@nyssarex nyssarex marked this pull request as ready for review February 21, 2026 21:36
@github-actions github-actions Bot added ready-for-review this PR development is complete, please review and removed WIP work in progress labels Feb 21, 2026
@nyssarex
Copy link
Copy Markdown
Contributor Author

nyssarex commented Mar 5, 2026

https://dune.com/queries/6722152 this query tx_id of transactions , 86360 same amount and all pools are invetred, meaning quote token is meme coin and basemint is SOL while in normal pool quote is SOL
https://dune.com/queries/6722662/10579217 difference in volume ( for example pumpswap is not doing 9bln in one day in volume, even all solana volume is not daily 9 bln)
example of wrong pool
https://solscan.io/account/AZ1R49Ra5jP9E2aAbmUNPxZerV8jQSujKghexw6wYkxt
correct pool
https://solscan.io/account/7SAu2AktFMXDi6CFYcgqQPZm2RyjJrvVVGiiZqPfuxcM

Legit pools won't have SOL as base_mint, i am happy to filter them on downstream as long as dex solana trades shows valid numbers for pumpswap.

In general this type of trades/pools cause dex_solana trades have pumpswap enourmoues not realistic volume in terms of business(fundamental KPIs) Including flag washing volume or not would require big changes in dex table.

Brief explanation of tx
https://solscan.io/tx/53xrCb2i5pgGNyJ9DB4dU44LKUqhDCbzLSGz7PrgwtVEyk2NsPPvYxtXhJFFCGimswJMkiijHq3b6rzeJ2AKEv9

The Trick: sell then buy on an Inverted Pool
This is the key insight. Because Pool 1 has SOL as base_mint and C0IN as quote_mint (inverted), the instruction names are flipped from what you'd expect:

So the bot is exploiting the inverted pool orientation — using sell to go SOL→C0IN and buy to go C0IN→SOL, on the same pool, in the same transaction.
Result:
C0IN spent (net loss)~154,260 C0IN
SOL net 0

The bot spent ~154,260 C0IN (plus ~8,385 C0IN in protocol fees) to get back the exact same 500 SOL. This is not arbitrage profit — it's a net loss in C0IN terms.

@0xBoxer @tomfutago could you review pls

@jeff-dude jeff-dude linked an issue Mar 6, 2026 that may be closed by this pull request
@0xRobin 0xRobin merged commit 9297a9f into duneanalytics:main Apr 1, 2026
2 of 3 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dbt: solana covers the Solana dbt subproject ready-for-review this PR development is complete, please review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] wrong pumpswap volume in dex_solana.trades

2 participants