# Provide Liquidity

Providing liquidity on **Soroswap** allows users to earn rewards by depositing two assets into a liquidity pool. Liquidity providers (LPs) facilitate asset swaps for other users, and in return, they earn a share of the trading fees collected by the protocol.

### How to Provide Liquidity

1. **Access the app**\
   Go to [soroswap.finance](https://soroswap.finance/) and click **Launch App**.
2. **Connect your wallet**\
   Use a Stellar/Soroban-compatible wallet. Make sure you have enough XLM for transaction fees.
3. **Navigate to the Liquidity section**\
   In the app, select **Liquidity** to view existing pools

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

4. **Deposit both assets**

* Enter the amounts of each asset you want to deposit.
* The ratio must match the current pool price (or, when creating a new pool, you set the initial price).

5. **Receive pool tokens**\
   After a successful deposit, you’ll receive pool tokens that represent your share of the pool’s liquidity.

### Key Notes

* **Initial liquidity providers** set the initial price of a new pool.
* **All liquidity pools follow the formula**: `x * y = k`, where `k` is constant.
* **Removing liquidity**: You can withdraw your assets at any time by burning your pool tokens, receiving your share of the assets plus accumulated fees.

***

> 📘 Need a full walkthrough? Check\
> [Adding Liquidity](https://docs.soroswap.finance/05-tutorial/04-adding-liquidity) l [Remove Liquidity](https://docs.soroswap.finance/05-tutorial/06-remove-liquidity)


---

# 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.soroswap.finance/readme/getting-started/provide-liquidity.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.
