Raydium (RAY)RAY
Raydium is a decentralised exchange and liquidity protocol on Solana that runs automated market maker pools; RAY is its token, with a 555 million maximum supply and buybacks funded by part of trading fees.
Raydium is one of the main places where tokens are swapped on Solana. Instead of matching buyers and sellers in an order book, most trades go through liquidity pools whose prices follow a formula. Liquidity providers earn most of the trading fees, and a fixed share is used to buy back RAY. This article explains how Raydium and RAY work, including the 2022 security incident, not what RAY will be worth.
- Category
- Cryptocurrencies
- Reading time
- 7 min
- Also called
- RAY, Raydium DEX, Raydium AMM
- Updated
Raydium in plain words
Raydium is a set of open, non-custodial smart contracts on Solana (SOL) for swaps, liquidity pools and token launches.1 It is a decentralised exchange built on automated market maker pools.
People who deposit two tokens into a pool are liquidity providers (LPs). They receive most of each trading fee, while 12% of the fee goes to buying back RAY.2
RAY has a maximum supply of 555,000,000 tokens, and its mint authority is disabled, so no new tokens can be created beyond that.3 RAY is not needed to swap or provide liquidity on Raydium.3
Raydium history, step by step
February 2021 — AMM v4 launch
Raydium launched its first pools in February 2021 as a hybrid AMM that could also route trades to the Serum (later OpenBook) order book when that gave a better price.4 See Order Book.
2021 — Farms and a launchpad
Farms that paid RAY to LPs started in March 2021, and the AcceleRaytor launchpad followed in May 2021.4
August 2022 — Concentrated liquidity
CLMM pools, where LPs choose a price range, went live on Solana mainnet in August 2022.4 See Concentrated Liquidity.
February 2024 — Vesting ends
Team and seed tokens, locked for 12 months and then released daily through month 36, finished vesting on 21 February 2024.3 See Vesting Schedule.
Today — LaunchLab and perps
Raydium also runs LaunchLab, a bonding-curve token launcher that moves graduated tokens into CPMM pools, and a perpetual futures interface powered by Orderly Network.1
Worked examples
Example 1 — Where a trading fee goes
0.30 USDC to buybacksYou swap 1,000 USDC in a CPMM pool with a 0.25% fee. In CPMM pools, 84% of the fee goes to LPs, 12% to RAY buybacks and 4% to the treasury.2
| Total fee | 1,000 × 0.25% = 2.50 USDC |
| To LPs | 2.50 × 84% = 2.10 USDC |
| To RAY buybacks | 2.50 × 12% = 0.30 USDC |
| To treasury | 2.50 × 4% = 0.10 USDC |
| Check | 2.10 + 0.30 + 0.10 = 2.50 USDC |
The buyback share is 12% of the fee, which is 0.03% of the trade, not 12% of the trade.6
Example 2 — Constant-product pricing
≈ 0.99% price impactA hypothetical pool holds 1,000 SOL and 150,000 USDC, so its spot price is 150 USDC per SOL. Ignore fees and sell 10 SOL into it. A constant-product pool keeps SOL × USDC unchanged.7
| Constant | 1,000 × 150,000 = 150,000,000 |
| SOL after the trade | 1,000 + 10 = 1,010 SOL |
| USDC after the trade | 150,000,000 ÷ 1,010 ≈ 148,514.85 USDC |
| USDC you receive | 150,000 − 148,514.85 = 1,485.15 USDC |
| Average price | 1,485.15 ÷ 10 ≈ 148.51 USDC per SOL (≈ 0.99% below spot) |
The bigger the trade compared with the pool, the worse the average price. That is price impact, and it is why deep pools matter. See Slippage and Liquidity.
Example 3 — Supply arithmetic
≈ 0.34% a yearRAY has a 555,000,000 maximum supply. The mining reserve is 34%, the team 20%, and about 1.9 million RAY a year is emitted from the mining reserve.3
| Mining reserve | 555,000,000 × 34% = 188,700,000 RAY |
| Team allocation | 555,000,000 × 20% = 111,000,000 RAY |
| Yearly emission vs. max supply | 1,900,000 ÷ 555,000,000 ≈ 0.34% |
Emissions are small compared with the maximum supply, and team tokens are fully vested, so buybacks and pool rewards are the main supply flows to watch. See Tokenomics.
Raydium (RAY) vs. Uniswap (UNI)
Both run automated market maker pools, but on different chains and with different token designs.
| Aspect | Raydium (RAY) | Uniswap (UNI) |
|---|---|---|
| Main chain | Solana1 | Ethereum and other EVM chains |
| Pool types | Constant-product (AMM v4, CPMM) and concentrated liquidity (CLMM)1 | Constant-product and concentrated liquidity |
| Token's link to fees | 12% of trading fees buy back RAY6 | Governance token |
| Max supply | 555 million RAY3 | 1 billion UNI at genesis |
| Needed to trade? | No3 | No |
What Raydium and RAY are used for
Swapping Solana tokens
Traders swap tokens through Raydium pools directly or through aggregators that route to them.1
Providing liquidity
LPs deposit token pairs and earn most of the pool's trading fees.2 See Impermanent Loss.
Staking RAY
Holders can stake RAY in the Raydium app to earn more RAY.8 See Staking.
Launching tokens
LaunchLab lets projects launch tokens on a bonding curve before liquidity moves to a CPMM pool.1
Advantages and disadvantages
Advantages
Going deeper
Read as far as you need. Each level builds on the one before it.
A pool-based exchange
Beginner
Three kinds of pool
Intermediate
AMM v4 is the original constant-product pool with a 0.25% fee, of which 88% goes to LPs and 12% to buybacks.2 CPMM is its successor, with fee tiers of 0.01%, 0.25% and 1%.2 CLMM pools let LPs choose a price range and offer tiers from 0.01% to 1%.2 AMM v4's OpenBook integration has been switched off.1
Admin keys and operational risk
Advanced
The 2022 incident did not come from a flaw in the pool maths. An attacker took control of an admin account that had authority over pool functions.5 Raydium then moved authority roles to a multisig and used protocol fees earmarked for buybacks to compensate affected LPs.4 Any DeFi protocol with upgrade or admin keys carries this kind of risk. See Reentrancy and Oracle Manipulation.
Common mistakes
Thinking you need RAY to trade
Swapping, providing liquidity and creating pools do not require RAY.3
Reading 12% as 12% of the trade
The buyback share is 12% of the fee; on a 0.25% fee that is 0.03% of the trade.6
Ignoring price impact
Large trades in shallow pools get a worse average price. See Slippage.
Trusting every new pool
Anyone can create a pool, so check the token mint before trading. See Rug Pull.
Check your understanding
Test yourself before moving on. Each answer comes with an explanation.
Key points to remember
- Raydium is an AMM-based decentralised exchange on Solana.
- It offers constant-product (AMM v4, CPMM) and concentrated-liquidity (CLMM) pools.
- LPs earn most of the fee; 12% of fees buy back RAY.
- RAY has a 555 million maximum supply, and team vesting ended in February 2024.
- A 2022 admin-key compromise drained eight pools of about $4.4 million.
Frequently asked questions
Further learning
- Automated Market Maker (AMM)
How formula-based pools set prices.
- Impermanent Loss
The main risk for liquidity providers.
- Concentrated Liquidity
How CLMM pools differ from full-range pools.
- Uniswap (UNI)
The best-known AMM on Ethereum, for comparison.
Sources
This article is written in our own words. The sources below support the specific facts, rules and figures marked with a number in the text. Links open the original publisher’s page.
- Raydium Docs. What is Raydium (opens in a new tab) Checked .
- Raydium Docs. Protocol fees (opens in a new tab) Checked .
- Raydium Docs. RAY token (opens in a new tab) Checked .
- Raydium Docs. History and milestones (opens in a new tab) Checked .
- The Block. Solana-based exchange Raydium suffers $4.4 million exploit (opens in a new tab) Checked .
- Raydium Docs. RAY buybacks (opens in a new tab) Checked .
- Raydium Docs. Raydium documentation home (opens in a new tab) Checked .
- Raydium Docs. RAY staking (opens in a new tab) Checked .
Educational content, not financial advice. Examples use hypothetical prices and simplified costs; actual fees, margin rules and regulations vary by broker, market and country. We are not affiliated with any publisher linked above. Last reviewed . Report an error or request a source credit.