Raydium's $1.34M Loss and How Olympix Would Have Prevented It
At 12:09:21 UTC on June 10, 2026, a Solana wallet created a brand-new token, minted exactly one unit of it, and handed that single token to one of Raydium's oldest programs as proof that it owned a liquidity pool. The program agreed. It looked at how many of those tokens existed, saw that the wallet held all of them, and paid out the whole RAY-SOL pool.
The attacker repeated the trick across five pools and walked away with roughly 150,177 RAY, 5,603 SOL and 893,700 USDC, about $1.34 million in total, according to Raydium. None of it belonged to anyone using Raydium today. The money had been sitting in pools nobody could reach through the app since 2021, inside a program Raydium had stopped supporting years earlier but never switched off.
Liquidity Left Behind After Serum
Raydium is one of the largest decentralized exchanges on Solana. Its first AMM design was built around Serum, Solana's early on-chain order book, and the program that matters here, legacy AMM V3, didn't offer swaps at all. As Raydium's core contributor Infra explained in Raydium's statement on X, the program only used deposited funds to place orders on the Serum order book.
When Serum collapsed in late 2022, those orders stopped mattering, but the deposits didn't go anywhere. The liquidity in the legacy V3 pools simply sat idle. Raydium had phased the program out in 2021, its SDK and app didn't support it on mainnet, and nobody using the front end could see those pools, let alone interact with them. On-chain, though, the program at 27haf8...8vQv was still deployed, still callable and still holding real assets.
Five pools held most of what was left: Sollet USDT-RAY, Sollet ETH-RAY, SRM-RAY, USDC-RAY and RAY-SOL.
Ownership Measured by Supply
Every AMM needs a way to decide how much a liquidity provider gets back when they leave. The usual answer is an LP token. When you deposit into a pool, you receive LP tokens representing your share, and when you withdraw, you burn them and receive the same share of the pool's reserves. If you hold 10% of the LP supply, you get 10% of each asset.
That math only works if the program knows which token is the LP token. On Solana, every token is defined by its mint account, and a program receives the accounts it works with as inputs to each instruction, so it has to check that each account is the one it expects. If a remove-liquidity instruction accepts any mint as the LP mint, the caller decides what the denominator in the share calculation is.
Infra put the root cause plainly. For its proportion checks, the legacy program relied on the LP token supply, and it didn't properly verify the LP mint address. An attacker could create a new mint and pass it in as the LP token, bypassing the checks that were supposed to tie a withdrawal to real ownership.
Raydium's newer programs don't have this problem, according to the same statement. They use a virtual supply mechanism for proportion checks and verify the LP mint along with every other relevant account.
One Token, One Pool
Solscan shows the whole attack on the RAY-SOL pool in a single transaction, 2gwZ1P...iBZTMN, signed by the wallet 4WnPeb...33QVk. It contains six instructions, and the first five are ordinary token setup.
The wallet created a new account and initialized it as a token mint, GPJL2n...MvMmXF, with zero decimals and itself as mint authority. It created a token account to hold the new token, then minted exactly one unit into it. As far as the SPL Token program was concerned, a new token now existed with a total supply of 1, all of it held by the attacker.
The sixth instruction called Raydium's legacy program with Remove-Liquidity, passing that fake token as the LP token. DarkNavy's analysis describes what happened next: the program used the fake mint's supply as the withdrawal denominator while releasing real pool assets. Burning 1 out of a supply of 1 is a 100% share, so the program treated the attacker as the owner of the entire pool. Solscan records the result as 74,720.095333 RAY and 5,602.964099112 SOL removed from the RAY-SOL pool in that one transaction.
The other pools followed the same pattern, and the attacker didn't need any of the original LP tokens, any capital beyond the small rent and fees for a new mint, or any interaction with Raydium's current programs. The whole operation needed one valid instruction to a program that should have rejected it.
Where the Money Went
PeckShield and the on-chain investigator Specter traced the attacker's wallet back to funding through KuCoin and followed the proceeds as they were bridged from Solana to Ethereum, according to reporting at the time. Solscan now labels the wallet as the Raydium AMM V3 Exploiter.
Raydium responded the same day. Infra's statement confirmed the exploit, named the exploiter's address and the drained pools, and said no current Raydium users were affected. It also said full compensation would be handled by Raydium's treasury, so depositors in the five pools wouldn't absorb the loss. Raydium committed to reviewing all of its mainnet programs for the same kind of LP mint validation gap.
As of November 24, 2026, there was no public report of the funds being recovered, and Raydium hadn't published a longer technical post-mortem beyond Infra's statement.
Why Five-Year-Old Pools Were Still a Target
The flaw itself is an old one in Solana terms. Account validation, checking that every account an instruction receives is the account it should be, is one of the first things Solana developers learn to get right, because the runtime hands programs whatever accounts the caller supplies. Raydium's own current programs check the LP mint, which shows the team knew the pattern well.
What kept the legacy program dangerous was that it never stopped being reachable. Taking it out of the app and the SDK removed the normal path in, but it didn't remove the program, and it didn't empty the pools. Every check the program skipped in 2021 was still being skipped in 2026, just with fewer people watching. Idle liquidity in a program nobody maintains is about as attractive as targets get, because nothing about it changes and nobody's checking it.
There's also a structural lesson about where proportion checks get their numbers. A design that measures ownership by a token's live supply is only as safe as the check that pins down which token that is. Raydium's later move to virtual supply, a share count the program tracks itself, takes the caller out of that calculation entirely.
How Olympix Would Have Caught the Fake LP Token
Olympix reads a program as states, transitions and entry points, and it takes in context to infer what the code depends on. For the legacy AMM, the state is each pool's reserves and the LP supply that represents claims on them. The transition is Remove-Liquidity, and the entry point is a public instruction where the caller supplies every account, the LP mint included.
From that structure, the engine infers the invariant the pool depends on. A withdrawal must pay out no more than the caller's share of the real LP supply, and the LP token being burned must be the one the pool itself issued. Put more simply, nobody should ever get pool reserves for burning a token the pool didn't mint.
The signal is a familiar one for Solana programs. A share calculation whose denominator comes from an account the caller provides, with no check binding that account to the pool's stored LP mint, is a missing account-validation pattern. Signals like that let the engine narrow from every path through the program to the feasible ones, and from there to the few that move reserves.
Had Raydium run Olympix on the program, the search for a sequence that breaks the invariant would have been short: create a mint, mint one unit, call Remove-Liquidity with that mint as the LP token, and watch the pool's reserves move to the caller. Olympix would have returned that sequence as a counterexample, with the minimal conditions that trigger it and a generated test that reproduces it, showing a full pool before the call and an empty one after.
The counterexample points at a single-line class of fix: require that the LP mint passed in matches the mint stored in the pool's state, as Raydium's current programs already do. Because Olympix runs at every merge and before release, the missing check would have surfaced when the remove-liquidity path was written, long before the program was retired with assets still inside.
A Retired Program Still Needs Its Checks
Removing a program from the interface doesn't remove it from the chain. As long as it holds assets and accepts instructions, it needs every check it was supposed to have, or a plan to drain its pools back to their owners. To see how Olympix maps every instruction into your programs and returns a working counterexample for each one that breaks, book a technical walkthrough.
On-Chain References
RAY-SOL drain tx (Jun 10, 2026, 12:09:21 UTC): 2gwZ1P...iBZTMN
Attacker wallet: 4WnPeb...33QVk
Fake LP mint (supply 1): GPJL2n...MvMmXF
Raydium legacy AMM V3 program: 27haf8...8vQv
More post-mortems
See every post-mortem →See what Olympix finds on your own code
Send us a repo that's already been audited, and we'll run Olympix at the same commit and show you what comes back.




