# Smart Contract

## Overview

Ferra CLMM (Concentrated Liquidity Market Maker) is a next-generation automated market maker (AMM) built on the Sui blockchain. Unlike traditional constant product AMMs that distribute liquidity uniformly across the entire price curve, Ferra CLMM allows liquidity providers to concentrate their capital within specific price ranges, dramatically improving capital efficiency.

## Core Modules

### Architecture Overview

* [**Factory**](/integration/clmm/smart-contract/factory-module.md): Responsible for creating and managing pools. It maintains a registry of all pools and ensures proper initialization.
* [**Pool**](/integration/clmm/smart-contract/pool-module.md): Contains the core trading and liquidity management logic. It handles swaps, liquidity operations, and fee distribution.
* [**Position**](/integration/clmm/smart-contract/position-module.md): Manages liquidity position NFTs and their associated metadata.
* [**Rewarder**](/integration/clmm/smart-contract/rewarder-module.md): Implements liquidity mining rewards to incentivize liquidity provision.
* [**Tick**](/integration/clmm/smart-contract/tick.md): Manages the discrete price points and liquidity distribution across the price curve.


---

# Agent Instructions: 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.ferra.ag/integration/clmm/smart-contract.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.
