---
title: Stable Swap
description:
  Work through a stable swap implementation and the mechanics behind pool
  behavior.
---

## Project goal

Learn how swap rules, liquidity, and pricing assumptions affect protocol
behavior.

## Checkpoints

- Identify the pool invariants that should always hold.
- Trace the swap path from user input to updated balances.
- Verify how fees and slippage are surfaced in both code and UI.
