> For the complete documentation index, see [llms.txt](https://docs.libertyswap.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.libertyswap.finance/liberty-pool/smart-contracts.md).

# Smart Contracts

### Factory Contract

The Factory contract is responsible for deploying and registering liquidity pools.

#### Factory Address

```
0x796fcbDC956b85797EFe21145Aa97599B7FB36a6
```

Responsibilities include:

* pool creation
* fee tier configuration
* pool registry management
* protocol-level pool initialization

***

### SwapRouter Contract

The SwapRouter contract manages swap execution and routing interactions.

#### SwapRouter Address

```
0x48e8100374ae6Ff2Cc8871Db6224B296718EeB0d
```

Supported functionality includes:

* exact input swaps
* exact output swaps
* multi-hop routing
* path-based execution

***

### QuoterV2 Contract

The QuoterV2 contract provides swap estimation and routing simulation functionality.

#### QuoterV2 Address

```
0xdB368A7f9eDF3EF73e7ceDA97bC67ECF84E39D95
```

The contract may be used to:

* estimate output amounts
* simulate swap routes
* calculate expected pricing
* evaluate liquidity depth


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.libertyswap.finance/liberty-pool/smart-contracts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
