Token-2022 Transfer Fees on Solana: Why They Break AMMs (And How to Spot Them Before You Get Wrecked)
Token-2022's TransferFeeConfig extension can charge up to 100% on every transfer, and most Solana AMMs don't handle it correctly. The result: pools quote wildly wrong prices, traders get fewer tokens than expected, and DEX aggregators route into honeypots. Here's the actual mechanics and how to check before you buy.

Solana's Token-2022 program adds extensions: modular features that change how a token behaves. Most are routine, such as metadata pointers, non-transferable (soulbound) tokens or mint close authority. One that traders need to understand is TransferFeeConfig.
Token-2022 transfer fees change the relationship between a gross token transfer and the amount credited to the destination. They require extension-aware quotes and accounting, but do not establish that most Raydium, Orca, Meteora, or PumpSwap integrations are broken. This guide explains how the fee works, where quotes and integrations can go wrong, and how to check a mint before you trade.
What TransferFeeConfig does
When a mint has a transfer fee, a transfer works roughly like this:
- The sender transfers a gross amount
Nof raw token units. - The program computes the fee from the active basis-point rate, rounds it up to a whole raw unit and caps it at
maximum_fee. - The fee is withheld in the destination token account, where the recipient cannot spend it; the spendable balance is credited with
Nminus the fee. - Anyone can harvest withheld amounts from token accounts into the mint (
HarvestWithheldTokensToMintis permissionless). - Only the withdraw-withheld authority can move withheld fees to a destination of its choice, from the mint or directly from listed accounts.
Transfers of a fee-bearing mint must use transfer_checked or transfer_checked_with_fee. The latter states the expected fee, and the transfer only succeeds if that fee is calculated correctly, which lets a client fail instead of silently accepting a different fee.
The fee is enforced by the Token-2022 program itself, not by a separate contract a holder can route around.
Fields to read on the mint
| Field | Meaning |
|---|---|
transfer_fee_config_authority | Can change the fee parameters (optional; may be unset) |
withdraw_withheld_authority | Can withdraw withheld fees (optional; may be unset) |
withheld_amount | Fees already harvested to the mint and not yet withdrawn |
older_transfer_fee | Fee record that applies before the newer record's activation epoch |
newer_transfer_fee | Most recently set fee record, with its activation epoch |
Each fee record has an epoch, a maximum_fee in raw token units and transfer_fee_basis_points. The active record is selected using the current epoch. A newly set fee is scheduled for a later epoch rather than applying immediately, so a fee change is not an arbitrary one-slot event, but an authority that is still set can schedule a higher rate. Check whether the fee authority exists at all.
A nominal 100% rate can withhold the entire transfer only while the cap permits it. Avoid floating-point arithmetic and do not assume that a scheduled rate is already active.
Fees are withheld in destination token accounts, outside the spendable base amount. Do not subtract withheld tokens a second time from a correctly decoded spendable amount. Self-transfers have their own instruction semantics and must not be described as inevitably charging the same fee as a transfer between distinct accounts.
Where quotes and integrations can go wrong
A quote can omit a fee-bearing leg, use the wrong epoch, apply a cap in UI units rather than base units, or use a decoder for the wrong token program. A route can contain more than one transfer, and each transfer of the fee-bearing mint is charged separately. Fee-aware pools may deliberately reject unsupported extensions rather than produce a misleading quote.
What traders typically notice:
- Received less than the preview suggested. If the preview ignored the fee on the transfer to your account, you receive the quote minus that fee. A correctly fee-aware quote and minimum output already include it.
- Displayed price or market cap looks off. A price derived from reserves or from the wrong decoder can be wrong, and a market cap multiplied from that price inherits the error. Decimal, reserve-model, stale-state and marginal-price errors are common alternative explanations, so corroborate before blaming the fee.
- A very high fee on a token that looks normal. A high active rate with a low enough cap or no cap can take a large share of every transfer, including your sell. Read the active rate, the cap and whether the fee authority can still raise it.
DEXScreener price displays and Solscan account views are different observations. Record their timestamps and corroborate the exact mint, pool, and executed transfer before attributing a discrepancy to a fee.
Building a product on Solana or Robinhood Chain data?
Skip the Geyser pipeline — embed KOL flow, deployer reputation, and the all-DEX firehose over REST, WebSocket, or webhooks. The Business tier (€400/mo) is the self-serve embed license at 500k calls/day — Enterprise adds white-label & redistribution.
How to check a Token-2022 mint
In an explorer (Solscan or Solana Explorer):
- Open the mint account.
- Check the owner program.
TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEbis Token-2022;TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DAis the original SPL Token program, which has no extensions. - Look for the transfer fee extension in the extensions section.
- Read both fee records, their epochs and caps, and the two authorities.
Programmatically, with a supported decoder:
This read-only helper targets the legacy Web3.js v1 / @solana/spl-token API, not the newer Kit API. Use the matching installed package versions. It distinguishes legacy mints, verifies the owner, and calculates the active epoch fee using BigInt.
import { Connection, PublicKey } from "@solana/web3.js";
import {
TOKEN_PROGRAM_ID, TOKEN_2022_PROGRAM_ID, unpackMint,
getTransferFeeConfig, calculateEpochFee,
} from "@solana/spl-token";
export async function inspectTransferFee(
connection: Connection, address: PublicKey, grossAmount: bigint,
) {
if (grossAmount < 0n || grossAmount > 18446744073709551615n) {
throw new Error("Amount outside u64 range");
}
const info = await connection.getAccountInfo(address, "confirmed");
if (!info) throw new Error("Mint not found");
if (!info.owner.equals(TOKEN_PROGRAM_ID) &&
!info.owner.equals(TOKEN_2022_PROGRAM_ID)) {
throw new Error("Unsupported account owner");
}
const mint = unpackMint(address, info, info.owner);
const config = getTransferFeeConfig(mint);
if (!config) return { fee: 0n, reason: "no transfer-fee extension" };
const { epoch } = await connection.getEpochInfo("confirmed");
return {
fee: calculateEpochFee(config, BigInt(epoch), grossAmount),
epoch, config,
};
}
Separate RPC reads are not an atomic snapshot. Requote or refetch around an epoch boundary, and inspect the actual route and mint state before execution. Missing or malformed accounts are errors, not evidence that a token has no fee.
With scanners: RugCheck and SolSniffer can help surface Token-2022 extensions and other risks, but a scanner result is not proof of compatibility or safety. The RugCheck walkthrough explains the report workflow.
Other extensions and authorities worth checking
- Transfer hook: invokes another program on transfers, with interface-specific accounts and restricted privileges; it cannot arbitrarily debit unrelated wallet assets without appropriate authorization. Inspect the hook configuration and the hook program's upgrade authority.
- Permanent delegate: has mint-level transfer and burn powers over every account of the mint that individual holders cannot revoke.
- Default account state: can make new token accounts start frozen, so they need thawing before ordinary transfers.
- Non-transferable: soulbound tokens that cannot be moved to another owner, though they can be burned.
Token-2022 is not inherently dangerous; metadata and similar extensions are widely used by legitimate projects. The behavior-changing extensions are the ones to read carefully before you trade: if a transfer fee is active, put it into your trade math; if a hook or permanent delegate is set, understand who controls it.
Use the Token-2022 guide and extension explainer to review each configured authority. Add this to the pre-trade checklist, and see Solana slippage explained for how fees interact with slippage tolerance. Deployer Hunter and the API provide supported indexed analytics, not an assurance that any arbitrary transfer or pool is safe.
Tools mentioned
Compare features and read reviews.
Live health scores, average ratings, and direct links on MadeOnSol.

Solana Agent Kit MCP
MCP server powered by Solana Agent Kit for on-chain actions

SolanaFloor
Real-time Solana NFT floor prices, analytics, and market data

Solana Actions
Create shareable blockchain actions and blinks for any Solana transaction

Solana Geek
Solana ecosystem resource hub with tool reviews and trading guides

Solana Playground
Browser-based IDE for developing and deploying Solana programs
Build with MadeOnSol API
KOL tracking, deployer intelligence, DEX streaming, and webhooks. Free API key — 200 requests/day.
import { MadeOnSol } from "madeonsol";
// Get a free API key at madeonsol.com/pricing
const client = new MadeOnSol({ apiKey: "msk_your_key" });
const { trades } = await client.kol.feed({ limit: 10 });
const { alerts } = await client.deployer.alerts({ limit: 5 });
const { tools } = await client.tools.search({ q: "trading" });Building a product on Solana or Robinhood Chain data?
MadeOnSol isn't an RPC or another generic token API — it's Solana & Robinhood Chain memecoin intelligence that's painful to build in-house, pulled from dual-region gRPC shred streams and our own Robinhood Chain node, pushed to your app as events land.
Signals you'd otherwise build
KOL & smart-money flow from 2,000+ labeled wallets, deployer reputation, coordination clusters, linked-wallet entity resolution, and an all-DEX firehose.
Embed it in your product
The Business tier (€400/mo, self-serve) licenses you to display MadeOnSol data inside your own product — 500k calls/day, 15 WS + 6 firehose connections. Enterprise above adds white-label & redistribution rights and custom endpoints.
Evaluate first, commit later
Test everything on a free ULTRA key — no commitment. If it fits, we scope volume or white-label pricing.
Keep reading
More from the blog.
Guides
Solana Smart Money Tracker: Find Wallets Worth Following
A walkthrough with live Solana data: judge a wallet's track record, separate realized from unrealized profit, and check a wallet's later sales before you follow its buy.

API Guides
Build a Solana & Robinhood Chain Memecoin Research Agent: Six Intelligence Checks
Design an evidence-backed memecoin research agent with six MadeOnSol intelligence actions: KOL discovery, token risk, deployer history, wallet analysis, signal reliability and cursor-based changes.

Guides
How to Get pump.fun Token Trades via API: the Per-Mint Trade Tape (2026)
One GET returns every buy and sell on a pump.fun token, newest first, with the executed price, the pool price at that slot, the wallet and the early-buyer rank. Cursor paging, buy/sell and wallet filters, and what the coverage block tells you before you trust the numbers.

Analytics
Pump.fun Surge Alerts, Day 1: 138 Fires and What Happened an Hour Later
First live day of surge alerts, 28 Aug 2026: 138 pump.fun surges on 104 mints. Fires with no risk flag were above their fire price an hour later 60% of the time; fires flagged early_buyers_exiting, 6%.

Analytics
Solana KOL Trading Report — August 2026: 1.13M Trades Across 533 Wallets
August 1–28, 2026: 533 tracked Solana KOL wallets made 1,133,569 trades across 90,075 tokens, moving 2.11M SOL. Median market cap at first KOL buy was $4,654 and the second KOL followed within 9 seconds.

Analytics
Pump.fun Deployer Stats — August 2026: 1.03M Launches, 18,202 Graduations, a 1.8% Bond Rate
August 1–28, 2026: 1,032,440 launchpad deploys from 223,339 wallets, 18,202 graduations (1.8%), median time to bond 1 minute, median graduate peak $31K. 1,170 wallets minted 40% of the month's tokens.
Enjoyed this article?
Explore the live data.
Real-time KOL trades, Pump.fun deployer intel, and 1,200+ ranked Solana & Robinhood Chain tools — free to explore.
Open the KOL Tracker