# Automated Market Maker

### AMM Overview

Thetanuts Finance v3 will utilize battle-tested Uniswap v3 pools to enable users to go long or short on on-chain options, and will form a key part Thetanuts Finance v3.

### Parameters for the AMM

* **Uniswap v3 Liquidity Pools**: Liquidity pool pairs will be denominated as $XYZ/$XYZ-C for Calls, and $XYZ-P/$USDC for Puts.
* **AMM Price**: These pools also gives rise to an “**AMM Price**”, defined as the price of a Basic Vault LP Token as set by the relative concentration of assets within the liquidity pool given by the x\*y=k.

### Actors in the AMM

* **Liquidity Providers**: Liquidity Providers provide TVL, enabling Traders to go long or short on on-chain options. Liquidity Providers receive a share of AMM Trading Fees.
* **Traders**: With these Uniswap v3 liquidity pools, Traders can take on long volatility or short volatility positions.

### Adding Liquidity into the AMM via the Add Liquidity Module

To Add Liquidity into the AMM, a Liquidity Provider would deposit $XYZ (for Calls) or $USDC (for Puts) into the Thetanuts Finance v3 Add Liquidity Module. Liquidity Providers will be entitled to option premiums from the Basic Vaults, lending interest from the Lending Market, trading fees from AMM, potential $NUTS token incentives, and potential additional token incentives.

<figure><img src="/files/iCG8tBE1uzBPNDHzKZR1" alt=""><figcaption></figcaption></figure>

**If a user has a bearish bias, a user can deposit $XYZ into the Add Liquidity Module**\
\- Part of the $XYZ will be deposited into the Basic Vault to generate $XYZ-C (Short Call Basic Vault LP Token), with $XYZ-C being Boosted in the Lending Market.\
\- Part of the $XYZ will be deposited into the $XYZ/$XYZ-C liquidity pool on Uniswap v3.

**If a user has a bullish bias, a user can deposit $USDC into the Add Liquidity Module**\
\- Part of the $USDC will be deposited into the Basic Vault to generate $XYZ-P (Short Put Basic Vault LP Token), with $XYZ-P being Boosted in the Lending Market.\
\- Part of the $USDC will be deposited into the $XYZ-P/$USDC liquidity pool on Uniswap v3.


---

# 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.thetanuts.finance/legacy-v3/automated-market-maker.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.
