Raydium links Solana token swaps to liquidity supplied through several pool designs.
Raydium lets a Solana wallet swap tokens and supply assets to its trading pools. A swap preview shows expected output, while the signed transaction sets the amount bounds that govern execution. Completion requires a successful transaction and the correct token credit in the intended account. Pool reserves, concentrated liquidity ranges and token transfer rules influence what arrives. Liquidity providers take on changing token exposure in exchange for a share of trading fees.
Jump to a section
In short: A swap’s successful transaction record establishes the token amount that reached the destination account, which can differ from the quoted output.
From quoted output to the credited balance
Quote inputs and limits
A fixed-input swap specifies the spending token’s mint and amount, plus the desired output mint. The quote estimates output from available liquidity, and the minimum-received amount sets the transaction’s output floor. Fixed-output instructions instead request an output amount and cap permitted input. CPMM and CLMM support these distinct forms; the interface and route determine which form a particular swap can use.
Price impact describes how the trade changes pool pricing, while slippage tolerance sets permitted deviation from the quoted amount. Other transactions can change reserves or active liquidity before execution. Increasing tolerance allows worse execution; refreshing the quote or reducing the input offers alternatives when the acceptable output has changed.
Signing and submission
After the wallet signs the prepared transaction, the interface or wallet submits it to a remote procedure call (RPC) service for forwarding to Solana. A signature identifies a transaction before execution, and its later execution record can show success or failure. If an instruction fails, Solana rolls back the instruction-driven state changes of that transaction. Separate transactions have separate outcomes.
Output confirmation
A successful execution record identifies the affected accounts and their token balance changes. Match the output mint and account owner to the intended destination, then reconcile the credit with the signed amount bounds. Transfers between pools inside a route may differ from the amount delivered to the wallet. Native SOL movements can also include transaction fees, account funding and wrapping or unwrapping.
A wallet display can lag behind the chain record. The quoted amount remains an estimate; the account credit establishes the swap’s actual output.
Market swaps and limit orders
Market swaps attempt immediate execution against available liquidity, whereas an enabled CLMM limit order places sell tokens at a selected price tick. Swaps can fill an order as their price movement reaches that tick. Orders may remain unfilled or fill partially, with filled output requiring settlement to the owner’s account.
Where does Raydium get its pool liquidity?
Liquidity providers deposit tokens into pools or positions that swaps can draw on. CPMM and the legacy automated market maker, AMM v4, use pooled reserves, while CLMM allocates liquidity across selected ranges. These designs create different ownership records and management demands.
Constant-product reserves
CPMM, the constant product market maker, prices trades from the relationship between its token reserves. Deposits supply both assets in the pool’s prevailing ratio, and the program mints fungible liquidity provider (LP) tokens that represent a proportional claim on the pool. Legacy AMM v4 also uses constant-product pricing and fungible LP tokens. Standard CPMM pool creation is permissionless, subject to mint and configuration checks.
Concentrated positions
CLMM, the concentrated liquidity market maker, lets a provider choose a position’s price range. A non-fungible token, or NFT, identifies the position. A concentrated liquidity position earns swap fees only while the pool price is inside its chosen range. Narrow ranges concentrate funds around fewer prices and can require more frequent adjustment. The underlying liquidity becomes single-sided outside the range, although previously earned fees remain claimable.
Rewards and newly created pools
Trading fees accrue through the pool’s liquidity accounting, while farms add rewards for eligible stakes subject to funded emission schedules. CLMM positions in pools with reward streams accrue rewards only while in range during an active emission schedule. LaunchLab provides another entry path: token trading starts on a bonding curve. Eligible launches migrate collected reserves into a liquidity pool after meeting the configured graduation condition, after which trading follows that pool’s mechanics.
Liquidity can underperform holding the underlying token pair when relative prices change. Trading fees and rewards do not remove that exposure.
Fees and account funding
Swap costs depend on the pool’s fee configuration, including any enabled dynamic or creator fees. A Token-2022 mint with transfer fees can reduce the amount credited after a transfer. Solana transaction fees use SOL and may include a priority fee. Creating missing token accounts can also require SOL funding for rent exemption. These expenses have different recipients and do not all reduce the quoted output in the same way.
What does a wallet connection authorize?
A wallet connection lets the interface see the public address and request signatures; moving tokens requires transaction authorization. The transaction preview should match the intended token movements. Wallet software may use a recovery phrase to restore keys; an exchange connection does not require that phrase. Anyone who obtains it can control the wallets that it derives.
Token mint addresses distinguish assets whose names or logos look alike. Permissionless pool creation does not establish an issuer’s identity or continued market liquidity. A token can also retain mint or freeze authorities that affect supply or account access. Receiving the intended mint and choosing a token with acceptable issuer controls are separate questions.
Raydium Perps uses Orderly Network’s order-book infrastructure and separate collateral accounting to support margin positions with liquidation risks. Perpetual positions represent price exposure, while a spot swap credits the acquired token balance. Access follows separate jurisdiction restrictions, including restrictions on United States residents.
Received tokens and the next transaction
Hypothetical output reconciliation
A successful swap can deliver less than its preview while satisfying the signed minimum. In this hypothetical case, the quoted output is 83.7 output-token units and the transaction minimum is 82.7 units. Assume a supported pool, tokens without transfer fees and an output token that supports fractional units. The destination initially holds none of that output token.
The finalized, successful transaction credits 83.1 units to the intended account and spends the authorized input. The credit exceeds the minimum by 0.4 units. That account now holds 83.1 units for a subsequent action, despite the larger amount that the preview showed.
If execution would instead credit 82.6 units, the same minimum would reject the swap. The failed transaction would not credit that amount or complete the exchange. A fresh quote or another available route would need to support the required output before a new swap could proceed.
Unresolved status before another signature
An unresolved status calls for checking the existing transaction before signing a replacement. Separate signed swaps are independent spending authorizations; both can execute if both remain valid. A slow interface update alone does not establish failure. A verified failure or expiration is a reason to review a fresh quote before authorizing another attempt.
Questions and answers about Raydium
Can I swap on Raydium without holding RAY?
RAY is not required for ordinary token swaps or liquidity deposits. It is the protocol’s token and supports separate staking uses. Solana transaction fees require SOL, so holding RAY does not replace the native balance that the transaction’s fee payer needs.
Which Token-2022 assets can the spot pools accept?
CPMM and CLMM support Token-2022 mints subject to extension restrictions and program-specific mint permissions. Support for the token standard does not admit every extension automatically. Legacy AMM v4 requires classic Solana Program Library (SPL) Token mints, so compatibility depends on the pool program and the specific mint.
Does a liquidity deposit automatically enroll me in a farm?
A standard CPMM liquidity deposit does not automatically stake the resulting LP tokens in a farm. Farm rewards require an eligible stake in the farm program. CLMM positions can instead accrue configured rewards without staking fungible LP tokens, provided the pool price is within their range and the emission schedule is active.
Can a mobile wallet display the swap interface?
A compatible mobile wallet can load the web interface through its built-in dApp browser. The wallet handles transaction signing while the interface prepares the swap. Mobile access depends on the wallet’s connection and transaction support; installing an app with a matching name does not establish compatibility.
What happens to network fees after a failed swap?
Solana charges transaction fees when a processed transaction fails during instruction execution. Rolling back the swap’s state changes does not refund that network fee. Rejecting an unsigned wallet prompt before submission creates no on-chain transaction fee, which distinguishes a rejected request from an executed failure.
When does a submitted swap transaction expire?
A standard transaction using a recent blockhash expires when that blockhash falls outside the network’s accepted validity window. Expiration follows network progress, so a fixed wall-clock countdown can mislead. An expired transaction that never executed cannot later complete using that same signed message.
Will disconnecting my wallet cancel an already submitted swap?
Disconnecting the wallet does not cancel an already signed and submitted transaction. The network can still execute it while it remains valid. Connection permissions and transaction validity are separate, so disconnecting does not establish whether the original swap succeeded, failed or expired.
Why might a swap leave wrapped SOL in my wallet?
Wrapped SOL holds native SOL in a token account that token programs can use. It can remain wrapped when the transaction does not include unwrapping. An authorized close of that wrapped account returns its underlying SOL to the selected recipient. SOL held there is distinct from the fee payer’s spendable native balance.
Last updated