# Smart Contract

## Overview

Ferra DLMM (Dynamic Liquidity Market Maker) is an advanced AMM protocol built on Sui blockchain that provides concentrated liquidity and dynamic fee structures. The protocol consists of four main modules working together to provide efficient trading and liquidity provision.

## Core Modules

### Architecture Overview

* [**Factory**](/integration/dlmm/smart-contract/factory-module.md): Creates and manages trading pairs
* [**LB Pair**](/integration/dlmm/smart-contract/lb-pair-module.md): Handles trading logic, liquidity management, and fee collection
* [**Position**](/integration/dlmm/smart-contract/position-module.md): Manages user liquidity positions and fee tracking
* [**Rewarder**](/integration/dlmm/smart-contract/rewarder-module.md): Distributes additional rewards to liquidity provider


---

# 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/dlmm/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.
