> For the complete documentation index, see [llms.txt](https://firefly-2.gitbook.io/firefly-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://firefly-2.gitbook.io/firefly-docs/using-firefly/providing-liquidity.md).

# Providing Liquidity

Welcome to the Liquidity Provider (LP) Guide for FireFly.&#x20;

As an essential part of our ecosystem, your contribution as a liquidity provider facilitates token swaps by adding to our liquidity pools.&#x20;

This tutorial guides you through the steps to become a Liquidity Provider, understand the rewards system, and effectively manage your liquidity positions.

## Becoming a Liquidity Provider <a href="#becoming-a-liquidity-provider" id="becoming-a-liquidity-provider"></a>

**FireFly offers two ways to provide liquidity:** by depositing a pair of tokens or by adding single-sided liquidity.

You may notice that when you add liquidity on firefly, you'll be asked a few things- what **fee tier** you want (ie: 0.05%, 0.03%, etc.), what **price range** of your tokens is acceptable, and **how much** of each token to provide.  firefly has Concentrated Liquidity which means you choose the range of prices you want to LP for.

### **Providing Liquidity with a Pair of Tokens**

1. **Selecting a Pool**: Choose a suitable token pair you would like to provide liquidity for. Consider the pool size, trading volumes, and token stability.
2. **Providing Liquidity**

* Visit the 'Pool' tab on the FireFly DEX interface.

<figure><img src="https://3574364452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcCwYWiw1t9QdK7cp37u%2Fuploads%2FyTrDwQawzOwanU1z2klq%2Fphoto_2024-04-25_17-17-32%20(3).jpg?alt=media&amp;token=af3a76ba-93ee-4cb6-a054-fe3a919cd590" alt="" width="563"><figcaption></figcaption></figure>

* Deposit Tokens: Select your token pair and specify the amounts you want to deposit.
* Approve and Confirm: Approve the transaction in your wallet and confirm the deposit.

3. **Setting Your Price Range for Liquidity**

* **Choose the Fee Tier:** the interface will tell you which option (0.05%, 0.3%, 1%) is the most common for that trading pair.  That is usually a safe option.  Generally 0.05% is for stable pairs (ie: USDC-USDT), 0.3% fee tier is for most pairs, such as variable pairs (ETH-USDC).  1% fee tier is rare but is sometimes used for highly variable tokens such as meme coins.
* **Choose Your Price Range**: Decide on the specific range within which you want to provide liquidity. You can opt for a particular range or cover the entire price spectrum.
* **Enter Token Amount**: Specify the amount of tokens for deposit or select “Max” for the maximum available amount.

<figure><img src="https://3574364452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcCwYWiw1t9QdK7cp37u%2Fuploads%2FnwrKNHP8upn9bQ1QQ1ZJ%2Fphoto_2024-04-25_17-17-33.jpg?alt=media&amp;token=41f57f0b-e840-41c0-9cf8-86cd5d567cfe" alt="" width="563"><figcaption></figcaption></figure>

* **Approve Token Use**: Approve your tokens for liquidity provision in your wallet. This action involves a network transaction cost.
* **Preview and Add Liquidity**: Review your liquidity position details, then select “Add”.

<figure><img src="https://3574364452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcCwYWiw1t9QdK7cp37u%2Fuploads%2FQCGoUeDVrPYAZFBWu1mY%2Fphoto_2024-04-25_17-17-32%20(2).jpg?alt=media&amp;token=89eb9f47-64f5-4d2b-9c36-6fd0ee5d988b" alt="" width="563"><figcaption></figcaption></figure>

* **Confirm Transaction**: Finalize the process by confirming the transaction in your wallet.

<figure><img src="https://3574364452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcCwYWiw1t9QdK7cp37u%2Fuploads%2F9rqFTwO2NJcGrWi6p1id%2Fphoto_2024-04-25_17-17-32.jpg?alt=media&amp;token=acace366-3c34-449b-935d-04383adf07b8" alt="" width="563"><figcaption></figcaption></figure>

* Once your transaction is completed, you can monitor and adjust your liquidity position directly from the V3 Pool page.

### **More Explanation**

* By narrowing the defined price range of your position, you'll earn a higher APR since there's a higher density of your tokens where the tokens are trading. BUT, if the token prices move outside of your set range, *you will not be earning LP fees until you shift the price range of your LP accordingly.*&#x20;
* The amount of each token that you provide for your position will not necessarily be 50%-50%. It depends on the price range you set for the position.

To help you understand how it all works, *we've provided a few helpful links to YouTube videos that will simplify this if you find it confusing.*  Our Pools system at firefly is identical to Uniswap's. The videos below will refer to Uniswap but the same approach will work on firefly.

The videos will explain things like: how to pick a fee tier, how to choose how many tokens to supply, and how to select price ranges. &#x20;

***YouTube Videos on Concentrated Liquidity***

\
[**Basic Guide of Concentrated Liquidity LP** ](https://youtu.be/5nww6Zn1Ev4?si=q87nj2aY5SHHbNFV\&t=120)

[**More Advanced Guide of Concentrated Liquidity LP**](https://www.youtube.com/watch?v=XLqxe0fP8rg)

[**Detailed breakdown of how Setting Price Ranges in LP's work**](https://www.youtube.com/watch?v=WGJOzd9wvx8)<br>

### Providing Single-Sided Liquidity

Single-sided liquidity is an exclusive feature of the FireFly DEX, setting us apart from competitors. It offers unparalleled flexibility, allowing you to provide liquidity with just one token from a token pair.&#x20;

This unique approach is ideal for those who hold only one type of token but still want to participate in liquidity provision.

**How to Provide Single-Sided Liquidity:**

1. **Navigate to Pools:** Go to the 'Pool' tab on the FireFly DEX interface.<br>

   <figure><img src="https://3574364452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcCwYWiw1t9QdK7cp37u%2Fuploads%2FyTrDwQawzOwanU1z2klq%2Fphoto_2024-04-25_17-17-32%20(3).jpg?alt=media&amp;token=af3a76ba-93ee-4cb6-a054-fe3a919cd590" alt="" width="563"><figcaption></figcaption></figure>
2. **Add Liquidity:** Select 'Add Liquidity' to start the process.
3. **Set Your Price Range:** Define a price range for your token that is outside the current market price. This will determine when your liquidity becomes active in the pool.

<figure><img src="https://3574364452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcCwYWiw1t9QdK7cp37u%2Fuploads%2FEOB6cfhaai3hOiRYSrRk%2F3.jpg?alt=media&amp;token=7ca14b4b-3a06-4884-a365-5141819abd8b" alt="" width="563"><figcaption></figcaption></figure>

4. **Preview and Add:** Review your liquidity details in the 'Preview' step, then proceed by selecting 'Add' to add your liquidity to the pool.

<figure><img src="https://3574364452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcCwYWiw1t9QdK7cp37u%2Fuploads%2FGj7pebO4qvCqBIkBk6HA%2F4.jpg?alt=media&amp;token=a158e63f-d50e-49b5-9603-3739f32693ee" alt="" width="563"><figcaption></figcaption></figure>

5. **Confirm the Transaction:** Confirm the transaction in your wallet to finalize your liquidity provision.

<figure><img src="https://3574364452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhcCwYWiw1t9QdK7cp37u%2Fuploads%2F3lFyNLDdrGN3hksJgCd4%2F5.jpg?alt=media&amp;token=d87061dc-552d-4089-8827-4f345db0f953" alt="" width="563"><figcaption></figcaption></figure>

### Understanding Liquidity Rewards <a href="#understanding-liquidity-rewards" id="understanding-liquidity-rewards"></a>

**Swap Fees**

* As an LP, you earn a portion of the swap fees from the trading activity in your pool.
* Fee Distribution: 100% of swap fees are distributed to liquidity providers.
* Fee Tiers: Fees vary based on the token pair's volatility and liquidity needs, ranging from 0.05% to 1%.

**Reward Mechanism**

As a Liquidity Provider, your rewards are seamlessly integrated with your investment in the liquidity pool, automatically compounding for an enhanced experience. For example, if you invest $10,000 in the USDC/USDT pool with a 20% APR, you would withdraw $12,000 after a year. This amount includes your original $10,000 plus the $2,000 earned as rewards, maximizing your earnings without separate claims or processes.

### Managing Your Liquidity Position <a href="#managing-your-liquidity-position" id="managing-your-liquidity-position"></a>

* Be aware of "impermanent loss," which occurs when the price ratio of your tokens shifts post-liquidity provision.
* You have the flexibility to add more liquidity or withdraw some of your liquidity anytime.
* To do this, go to your current position in the "Pool" section and choose "Increase Liquidity" or "Remove Liquidity."
