How it works
When you swap tokens, your wallet shows the network fee. The real cost is usually bigger: pools charge trading fees, and a big swap moves the price against you. Swaplytics works these out for each swap, from the record that the trading program wrote at the moment of the swap.
What the report shows
For each swap, we start from the pool's price just before the swap. At that price, with no costs, what you paid was worth a certain amount of the token you got. The difference between that amount and what you actually received is the cost. We split it into three parts:
- Trading fees
- Every fee the pool's program took. On PumpSwap: the fee for the people who provide the pool's money, the protocol fee, and the token creator's fee if there is one. On Orca: the pool's fee and the protocol fee. On pump.fun's launch curve: the protocol fee and the creator fee.
- Price impact
- A pool's price gets worse as a swap gets bigger. This is the gap between the pool's price just before your swap and the average price your swap got, before fees.
- Other costs
- Anything that did not reach a pool, or did not reach you. For example, a trading app may keep 1% of what you swap.
Network fees, tips, account deposits and SOL sent to other accounts in the same transaction are listed on their own, under "Also paid". They are not part of the hidden cost.
An example with round numbers
The pool's record says its price just before your swap was 150 USDC for 1 SOL. You paid 2 SOL, which at that price is worth 300.00 USDC. You received 296.70 USDC, so the swap cost 3.30 USDC, or 1.1%:
| Part | USDC |
|---|---|
| Trading fees | 0.75 |
| Price impact | 0.45 |
| Other costs (an app's fee) | 2.10 |
| Cost | 3.30 |
Each swap in a report has a "How this was worked out" section with its own numbers, and a link to the transaction on Solana Explorer.
Why we use the pool's own record
We first measured costs against CoinGecko's last price before each swap. To check that price, we compared it with the exact price just before each trade, from the trading program's own record. Our limit was a middle difference of 0.10%.
| Pools | Trades | Middle difference | 9 in 10 within | Within 0.10% |
|---|---|---|---|---|
| PumpSwap, 24 pools, mostly newer tokens | 83 | 1.01%, fails | 39.8% | 1 |
| Orca, the first 12 pools listed by CoinGecko | 95 | 0.036%, passes | 0.20% | 75 |
| SOL and USDC on Orca | 32 | 0.030%, passes | 0.04% | 31 |
For major tokens, CoinGecko's price was close. For new tokens, whose price can change every second, the error was as big as the cost we wanted to measure. With exact prices, the middle cost of these PumpSwap trades was 1.19%. With CoinGecko's prices, the same trades seemed to cost anything from -5.9% to 97.9%. Five sales came just after a crash, when CoinGecko's price was 8 to 47 times the trade's price. A crash must never look like a hidden cost.
So the report uses the price from the pool's own record, and uses CoinGecko's price only as a check.
How we read the records
PumpSwap writes a record of every buy and sell. It includes the pool's two balances just before the
trade, and every fee. The price is the second token's balance divided by the first token's balance. PumpSwap also
adds an extra amount of the second token, called virtual_quote_reserves, which can be negative since
30 September 2026. Without it, sells seemed to have negative fees. With it, the price fits every trade we checked.
The layout of the record is in PumpSwap's
public docs.
Orca writes a record called Traded for every trade. It includes the pool's price
before and after the trade, and its two fees. The layout is in
Orca's open source code.
pump.fun's launch curve is where new tokens trade before they move to PumpSwap. Its record,
TradeEvent, shows the curve's virtual SOL and token reserves just after the trade, so the trade's own
amounts give them just before. The pool address that CoinGecko gives is the curve itself, which pump.fun works out
from the token's address. The curve's token account must also hold exactly 206.9 million tokens more than the
record's "real" reserves: the part every curve keeps back for its move to PumpSwap. Curves priced in a token other
than SOL are not read yet. The layout is in pump.fun's public docs, in idl/pump.json.
A swap that goes through several pools has a record for each one. We follow the pools from the token you paid to the token you received, and multiply their prices.
How we know a record is real
Any program can write text into a transaction's log, including a fake record. We only use a record when:
- the log shows that PumpSwap's or Orca's own program wrote it. We follow which program was running at each line of the log.
- it is the only record for that pool in the transaction.
- it matches Solana: the pool's balances for PumpSwap, or the order of the pool's two tokens for Orca.
- the amounts traded fit the price, to within the rounding of whole units.
- CoinGecko lists the same amounts for that pool's trade.
If Solana cut the log short, we do not use it.
When we do not give a number
We never guess. A swap is listed as "not measured", with the reason, when:
- it used a trading service we cannot read yet. Today that is anything other than PumpSwap, Orca and pump.fun's launch curve.
- the wallet did not pay one token and receive another. CoinGecko may list a trade whose other side went to a different wallet.
- it traded the same tokens both ways in one transaction, so it is not one swap.
- more than 5% of the swap went somewhere other than the pools. That could be a payment, not a cost.
- rounding could change the cost by more than 0.01% of the swap. This happens with very small swaps.
- one of the tokens can charge a fee on every transfer.
- someone else paid part of the swap, the amounts do not fit together, or the pools gave more than their own prices allow.
Swaps that were not measured are never in the totals, and the report always says how many there were.
Dollar values
We only turn an amount into dollars through SOL or a dollar stablecoin (USDC, USDT, PYUSD or USDG) that the swap paid or received on the way. The dollar prices come from CoinGecko's hourly price history for SOL and those coins, so a token's own price never sets its dollar value. If no pool on the way used one of them, the swap has no dollar value. Its cost is still shown, but it is left out of the dollar totals.
SOL's dollar price is the nearest hourly point, so a dollar amount can be off by as much as SOL moved within that hour. The percentages do not depend on it.
What CoinGecko does
- It finds the wallet's swaps, and the pools and trading services they used.
- It gives the tokens' names, and the dollar prices of SOL and stablecoins.
- It gives its last price before each swap, from candles of one second. If that price is more than 2% from the pool's exact price, we mark the swap "price moving fast". A change before a swap is not part of its cost, so that swap may have cost more than shown.
We also found that on Orca, CoinGecko's usual gap from the exact price matched each pool's fee. This suggests that CoinGecko's price is the last trade's price, including that trade's fee.
| Orca pool | Usual gap | Pool's fee |
|---|---|---|
| HONEY | 0.294% | 0.30% |
| ZEC | 0.157% | 0.16% |
| TRUMP | 0.050% | 0.05% |
| JLP | 0.016% | 0.02% |
What the report cannot tell you
- Trades just before yours. The cost starts from the pool's price just before your swap. If someone traded just before you and moved the price, that is not counted. We never say that a swap was attacked.
- Whether another app or route was cheaper. We do not know what they would have offered at that moment.
- Failed transactions. CoinGecko only lists swaps that went through, so the network fees of failed swaps are not shown.
- Other trading services. Swaps on Raydium, Meteora and other services, and on pump.fun curves priced in a token other than SOL, are listed as not measured.
- Very busy wallets. A report covers up to 200 swap transactions, in the last 24 hours, 7 days or 30 days. Swaps from the last 10 minutes are not included yet. Swaps older than a day are slower to read, because Solana's free public server gives about one old transaction a second.
This is not financial or tax advice.
How we tested it
- Over 300 automated tests. We also broke 64 protections on purpose, one at a time, and the tests caught every one. Three were only caught after we added tests for them.
- In our development sample, all 94 PumpSwap trades and all 96 Orca trades fit their records, and CoinGecko listed the same amounts for every one.
- For the final test, we wrote the rules down before collecting any data. The sample of 800 transactions comes from pools and wallets we did not use during development. It is split into two halves, and the second half stayed sealed until the code was final.
Final test (769 transactions)
| Check | First half | Second half, kept sealed |
|---|---|---|
| The pool's price before a swap equals its price after the previous trade, read from a different transaction | 159 of 159 exactly equal | 159 of 159 exactly equal |
| CoinGecko and the records list the same amounts | 308 of 308 | 302 of 302 |
| Every cost adds up | 165 of 165 | 165 of 165 |
| Swaps measured | 165 of 374 (44.1%) | 165 of 395 (41.8%) |
The second half stayed sealed until the code was final, so it was never used to make a rule. Full 30 day reports for 5 wallets each finished in under 2 minutes, after we made reading old transactions faster: the slowest took 84 seconds.
Privacy
You never connect a wallet or sign anything: we only read public data. A finished report stays in memory for 10 minutes so this page can show it, and is then deleted. To make reports faster, we keep copies of public data from Solana and CoinGecko for between 2 minutes and a year. We do not keep a list of who checked which address.