> ## Documentation Index
> Fetch the complete documentation index at: https://docs.raydium.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Stable AMM

> AMM variant with interpolated price curves from lookup tables. Powers liquidity for stablecoin pairs and other assets with known price relationships.

## What it is

Stable AMM is a specialized variant of the Raydium AMM designed for pairs with known, well-behaved price relationships — primarily stablecoin–stablecoin pairs (USDC-USDT, USDH-USDC) and collateralized-token pairs. Instead of a constant-product curve, it uses a **lookup table of (x, y, price) tuples** that the pool admin populates via `InitModelData` and `UpdateModelData` instructions. Price discovery happens through interpolation within the table, producing lower slippage for small swaps while remaining composable with OpenBook.

Stable AMM shares the same **pool/OpenBook architecture as AMM v4**: same `MonitorStep` logic, same `Fees` structure, same fee model. The difference is purely the **pricing curve**: instead of x·y=k, you interpolate a pre-populated model.

**Program ID:** see [reference/program-addresses](/reference/program-addresses).

**Token-2022:** not supported. Classic SPL tokens only.

**Liquidity:** thin. Most user-facing integrations reach Stable pools through the [AMM Routing program](/products/routing) for best-price routing across all Raydium AMMs. The SDK also supports Stable pools directly: pools surface as `version: 5` (`pooltype: "StablePool"`) on `ApiV3PoolInfoStandardItem`, and the standard `LiquidityModule` (`addLiquidity` / `removeLiquidity` / swap) auto-detects v5 and emits the right instructions — see [Code demos](/products/stable/code-demos).

## Chapter contents

<CardGroup cols={2}>
  <Card title="Overview" icon="circle-info" href="/products/stable/overview">
    Why a separate program, the lookup-table model, comparison to AMM v4 and CPMM.
  </Card>

  <Card title="Accounts" icon="database" href="/products/stable/accounts">
    AmmInfo, ModelDataInfo, DataElement fields, vault layout, fee structure.
  </Card>

  <Card title="Math" icon="function" href="/products/stable/math">
    How interpolation produces prices, OpenBook integration, fee application identical to AMM v4.
  </Card>

  <Card title="Instructions" icon="terminal" href="/products/stable/instructions">
    Initialize, InitModelData, UpdateModelData, Deposit, Withdraw, SwapBaseIn, SwapBaseOut, MonitorStep, and more.
  </Card>

  <Card title="Fees" icon="percent" href="/products/stable/fees">
    Same 0.25% / 0.22% LP / 0.03% protocol split as AMM v4. No fund fee, no creator fee.
  </Card>

  <Card title="Code demos" icon="code" href="/products/stable/code-demos">
    Detect a Stable pool, swap / add / remove liquidity through the SDK's `LiquidityModule` (handles v5 natively), and use the off-chain stable-curve helpers.
  </Card>
</CardGroup>

## When to read this

* You are integrating a stablecoin or asset pair and find a Stable AMM pool with the best price.
* You are building a routing engine and need to support Stable pools as a liquidity source.
* You are maintaining liquidity in a Stable pool — learning the model-data update flow.
* You are curious how AMM pricing can be made programmable via a lookup table.

## Key facts

| Aspect                    | Value                                          |
| ------------------------- | ---------------------------------------------- |
| **Mainnet program ID**    | `5quBtoiQqxF9Jv6KYKctB59NT3gtJD2Y65kdnB1Uev3h` |
| **Devnet program ID**     | `DRayDdXc1NZQ9C3hRWmoSf8zK4iapgMnjdNZWrfwsP8m` |
| **Curve model**           | Interpolated lookup table (not x·y=k)          |
| **OpenBook dependency**   | Yes, same as AMM v4                            |
| **Trade fee**             | 0.25% (same as AMM v4)                         |
| **LP share of fee**       | 0.22%                                          |
| **Protocol share of fee** | 0.03%                                          |
| **Creator fee**           | None                                           |
| **Fund fee**              | None                                           |
