> For the complete documentation index, see [llms.txt](https://docs.kyberswap.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kyberswap.com/~/changes/1kQEhDNzHMDf7SwOE6Yu/liquidity-solutions/kyberswap-elastic/user-guides/elastic-fee-collection.md).

# Elastic Fee Collection

Reaping Your Auto-Compounded Yields

## Introduction

Whenever your active position goes into supporting trades, the market making fees are automatically reinvested into the pool. Consequently, fees are automatically compounded and accrued to your position. KyberSwap Elastic provides LPs the option to independently collect their accrued fees without affecting the underlying liquidity position. This means that LPs are able to reap the benefits of their auto-compounded yields at any time.

<details>

<summary>Liquidity Provider Flow</summary>

Still deciding on which solution suits you best?&#x20;

* **Overview**: [Earn Yield By Contributing Liquidity](/~/changes/1kQEhDNzHMDf7SwOE6Yu/kyberswap-solutions/kyberswap-interface/user-guides/earn-yield-by-contributing-liquidity.md)
* **Detailed comparison**:  [Classic vs Elastic](/~/changes/1kQEhDNzHMDf7SwOE6Yu/liquidity-solutions/classic-vs-elastic.md)&#x20;

#### Next steps

1. [Connect Your Wallet](/~/changes/1kQEhDNzHMDf7SwOE6Yu/kyberswap-solutions/kyberswap-interface/user-guides/connect-your-wallet.md)
2. [Switching Networks](/~/changes/1kQEhDNzHMDf7SwOE6Yu/kyberswap-solutions/kyberswap-interface/user-guides/selecting-preferred-network.md)
3. [Elastic Pool Creation ](/~/changes/1kQEhDNzHMDf7SwOE6Yu/liquidity-solutions/kyberswap-elastic/user-guides/elastic-pool-creation.md)
4. [Add Liquidity To An Existing Elastic Pool ](/~/changes/1kQEhDNzHMDf7SwOE6Yu/liquidity-solutions/kyberswap-elastic/user-guides/add-liquidity-to-an-existing-elastic-pool.md)
5. [Increasing Liquidity On Elastic](/~/changes/1kQEhDNzHMDf7SwOE6Yu/liquidity-solutions/kyberswap-elastic/user-guides/increasing-liquidity-on-elastic.md)&#x20;
6. **Elastic Fee Collection <-**
7. [Yield Farming On Elastic](/~/changes/1kQEhDNzHMDf7SwOE6Yu/liquidity-solutions/kyberswap-elastic/user-guides/yield-farming-on-elastic.md)
8. [Removing Liquidity On Elastic](/~/changes/1kQEhDNzHMDf7SwOE6Yu/liquidity-solutions/kyberswap-elastic/user-guides/removing-liquidity-on-elastic.md)

</details>

## Collecting your auto-compounded fees

### Step 1: Select position&#x20;

From the My Pools page, choose the position from which to collect fees. You will be able to view the total fees which your position has earned on the position card.

<figure><img src="https://1368568567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw1XgQJc40kVeGUIxgI7c%2Fuploads%2F5YpQbNvb2UW4a2NoxRxm%2Fimage.png?alt=media&amp;token=f3db4f4c-704f-4c96-8e63-4753af4a51a2" alt=""><figcaption><p>Elastic pools dashboard</p></figcaption></figure>

### Step 2: Collect the fees

Click on the "Collect Fees" button and you will prompted to confirm this action in Metamask. Note that this will remove 100% of the accrued fees.

<figure><img src="https://1368568567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw1XgQJc40kVeGUIxgI7c%2Fuploads%2FpieoqsVCzT37v9JV4y8J%2Fimage.png?alt=media&amp;token=44928817-86d9-40d6-b9cf-1b145e9aa54c" alt=""><figcaption><p>Confirm fee collection</p></figcaption></figure>

#### Step 3: Fees collected

KyberSwap will notify you of the fee collection success upon confirmation of the trnasction.

<figure><img src="https://1368568567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw1XgQJc40kVeGUIxgI7c%2Fuploads%2FWdICjme8HUYC2vU4ui7k%2Fimage.png?alt=media&amp;token=71c8466a-4aaa-4e26-8091-080f66d8082c" alt=""><figcaption><p>KyberSwap notification</p></figcaption></figure>

Notice that the fees have also been removed from your position.

<figure><img src="https://1368568567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw1XgQJc40kVeGUIxgI7c%2Fuploads%2FyyoyJwr9cFpQDqV6N0QT%2Fimage.png?alt=media&amp;token=e4c7eeee-953a-4522-afd9-c2832d721bd8" alt=""><figcaption><p>Position summary</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.kyberswap.com/~/changes/1kQEhDNzHMDf7SwOE6Yu/liquidity-solutions/kyberswap-elastic/user-guides/elastic-fee-collection.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
