> For the complete documentation index, see [llms.txt](https://docs.usdd.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.usdd.io/developers/core-contracts/psm.md).

# PSM

### **Purpose**

Maintains USDD’s price peg by facilitating 1:1 swaps with other stablecoins (e.g., USDT).

### Key Responsibilities

* Reduces volatility during market imbalances.
* Offers zero-slippage swaps with no fees.

### Key Methods

* `sellGem(usr, wad)`\
  Allows users to exchange a stablecoin (`gem`) for USDD.
* `buyGem(usr, wad)`\
  Enables users to swap USDD for another stablecoin.
* `file(what, data)`\
  Sets PSM parameters such as swap limits or supported stablecoins.
