# CPMM

El Raydium SDK proporciona herramientas para crear e interactuar con pools CPMM (Constant Product Market Maker). Crea pools, gestiona Liquidity, bloquea tokens LP y ejecuta swaps, todo con unas pocas líneas de código.

{% hint style="info" %}
Los pools CPMM usan la fórmula clásica de producto constante x\*y=k. Para Liquidity concentrada con rangos de precio personalizados, consulta la guía de CLMM.
{% endhint %}

#### Instalación

```bash
yarn add @raydium-io/raydium-sdk-v2
```

#### Recursos

| Recurso                        | Enlace                                                                                             |
| ------------------------------ | -------------------------------------------------------------------------------------------------- |
| Código fuente del SDK          | [raydium-sdk-V2/cpmm](https://github.com/raydium-io/raydium-sdk-V2/tree/master/src/raydium/cpmm)   |
| Implementación de demostración | [raydium-sdk-V2-demo/cpmm](https://github.com/raydium-io/raydium-sdk-V2-demo/tree/master/src/cpmm) |
| Integración de CPI             | [raydium-cpi](https://github.com/raydium-io/raydium-cpi)                                           |

#### Direcciones del programa

| Red     | Dirección                                      |
| ------- | ---------------------------------------------- |
| Mainnet | `CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C` |
| Devnet  | `DRaycpLY18LhpbydsBWbVJtxpNv9oXPgjRSfpF2bWpYb` |

#### Programas relacionados

| Programa             | Mainnet                                       | Devnet                                         |
| -------------------- | --------------------------------------------- | ---------------------------------------------- |
| Burn & Earn (Locker) | `LockrWmn6K5twhz3y9w1dQERbmgSaRkfnTeTKbpofwE` | `DRay25Usp3YJAi7beckgpGUC7mGJ2cR1AVPxhYfwVCUX` |
