# AMM

<figure><img src="/files/bJzKNtFIDhi2XwOG1XoJ" alt=""><figcaption><p>Actions on the AMM</p></figcaption></figure>

The user interacts mainly with two types of contracts on the AMM:

* LiquidityPoolConverter : Manages user-owned liquidity used for swaps,&#x20;
* SwapNetwork : Offers swaps on one or more converters.

In addition there is a helper contract, called RBTCWrapperProxy, which serves two purposes:

* Automatic wrapping and unwrapping of (W)RBTC,
* Automatic deposits to / withdrawals from the liquidity mining contract.

All contracts with exception of the liquidity mining contract can be found here: <https://github.com/DistributedCollective/oracle-based-amm> .

This builder portal focused on the most relevant functionality. A complete documentation of all contracts belonging to the AMM can be found here: <https://github.com/DistributedCollective/oracle-based-amm/tree/development/docs> .


---

# 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://build.sovryn.com/builder-portal/smart-contracts/amm.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.
