> 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/core-contracts/miningpool.md).

# MiningPool

MiningPool is the core liquidity Pool contract used by AllBlue V3.

Each Pool holds liquidity for a specific token pair and processes Concentrated Liquidity and Swap operations based on its configured price range structure.

### Key State

| Item          | Description                               |
| ------------- | ----------------------------------------- |
| `token0`      | First token of the Pool                   |
| `token1`      | Second token of the Pool                  |
| `price`       | Current Pool price                        |
| `nearestTick` | Current nearest active Tick               |
| `liquidity`   | Current active liquidity                  |
| `tickSpacing` | Minimum spacing between initialized Ticks |

### Role

* Holds liquidity for a token pair
* Tracks liquidity across initialized Ticks
* Processes Swaps using active liquidity
* Maintains Pool price and Tick state
* Accrues Swap Fees to eligible liquidity positions

Liquidity participation depends on the price range selected for each position. Only liquidity that is active within the current price range participates in Swap execution and fee accrual.
