> 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-v3/architecture.md).

# Architecture

AllBlue V3 is primarily composed of MasterDeployer, MiningPoolFactory, MiningPoolManager, PoolRouter, and MiningPool contracts.

```
User / Application
        │
        ├──────────────► PoolRouter
        │                    │
        │                    ▼
        │                MiningPool
        │
        └──────────────► MiningPoolManager
                             │
                             ▼
                         MiningPool

MasterDeployer
      │
      ▼
MiningPoolFactory
      │
      ▼
  MiningPool
```

### MasterDeployer

MasterDeployer manages the deployment infrastructure used by AllBlue V3.

### MiningPoolFactory

MiningPoolFactory creates and registers new V3 Pools using the required Pool configuration.

### MiningPoolManager

MiningPoolManager manages liquidity positions, including position creation, liquidity removal, and fee collection.

### PoolRouter

PoolRouter is the primary Swap routing contract for AllBlue V3.

It supports both single-hop and multi-hop Swaps.

### MiningPool

MiningPool holds the liquidity for a token pair and processes Concentrated Liquidity operations, including tick-based liquidity and Swap execution.
