> ## 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.

# CPMM (Standard AMM)

> Pure constant-product AMM. Không phụ thuộc OpenBook. Tương thích Token-2022. Chương trình được khuyến nghị cho các pool constant-product mới.

<Info>
  **Trang này được dịch tự động bằng AI. Phiên bản tiếng Anh là bản chính thức.**

  [Xem bản tiếng Anh →](/products/cpmm/index)
</Info>

## Đó là gì

CPMM là constant-product AMM tiêu chuẩn của Raydium. Đây là phiên bản tiếp theo của AMM v4 và không phụ thuộc OpenBook, gas thấp hơn, hỗ trợ Token-2022 hạng nhất (bao gồm các token có transfer-fee), và bố cục tài khoản sạch sẽ hơn.

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

**Token-2022:** được hỗ trợ, bao gồm transfer-fee, permanent delegate, và default-account-state extensions. Xem [algorithms/token-2022-transfer-fees](/vi/algorithms/token-2022-transfer-fees) để biết transfer fee ảnh hưởng đến swap math như thế nào.

## Nội dung chương

<CardGroup cols={2}>
  <Card title="Overview" icon="circle-info" href="/vi/products/cpmm/overview">
    CPMM là gì, tại sao nó được xây dựng, và khác gì so với AMM v4.
  </Card>

  <Card title="Accounts" icon="database" href="/vi/products/cpmm/accounts">
    PoolState, AmmConfig, LP mint, token vaults, observation (oracle) account. Seeds, field layouts.
  </Card>

  <Card title="Math" icon="function" href="/vi/products/cpmm/math">
    xy=k invariant, SwapBaseIn vs. SwapBaseOut math, oracle observation update rule, transfer-fee adjustment.
  </Card>

  <Card title="Instructions" icon="terminal" href="/vi/products/cpmm/instructions">
    Initialize, Deposit, Withdraw, SwapBaseInput, SwapBaseOutput, CollectFundFee, CollectProtocolFee, UpdatePoolStatus.
  </Card>

  <Card title="Fees" icon="percent" href="/vi/products/cpmm/fees">
    LP fee, protocol fee, fund fee, creator fee; cách các fee được thu thập và rút ra.
  </Card>

  <Card title="Code demos" icon="code" href="/vi/products/cpmm/code-demos">
    Tạo pool, deposit, withdraw, swap — trong TypeScript (raydium-sdk-v2) và Rust CPI.
  </Card>
</CardGroup>

## Khi nào nên đọc tài liệu này

* Bạn đang tạo một pool constant-product mới.
* Bạn cần một AMM hỗ trợ các token Token-2022.
* Bạn đang routing và muốn bao gồm liquidity của CPMM.
