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

# Core Contracts

AllBlue V2 is built around three core contracts: Factory, Router, and Pair.

* **AllBlueV2Factory**\
  Manages official Pair creation and lookup.
* **AllBlueV2Router**\
  Serves as the primary user interface for liquidity provision, liquidity removal, and token Swaps.
* **AllBlueV2Pair**\
  Holds token reserves, issues LP Tokens, and processes liquidity changes and Swaps using the Constant Product AMM model.
