> For the complete documentation index, see [llms.txt](https://docs.krystal.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.krystal.app/products/liquidity-management/lp-transactions/auto-compound.md).

# Auto-Compound

> **Auto-Compound automatically reinvests your earnings from liquidity pools to maximize returns through compounding, saving you time and boosting your overall earnings.**

**Step 1: Pick a position and access Auto-Compound feature**

You can set up Auto-Compound for your LP positions on the “Automation” page:

* From the "Automation" page, click "New Setup" and choose the position you want to set up Auto-Compound

<figure><img src="https://github.com/KrystalDeFi/docs-gitbook/blob/main/docs/liquidity-farming/.gitbook/assets/image%20(175).png" alt=""><figcaption></figcaption></figure>

**Step 2: Configure Auto Compound Parameters and confirm the setup**

* In the Compound Trigger section, you can set up the Trigger by Time or Fee:
  * Fee: Compound when a specific fee threshold is reached.
  * Time: Compound at set time intervals.

<figure><img src="https://github.com/KrystalDeFi/docs-gitbook/blob/main/docs/liquidity-farming/.gitbook/assets/image%20(176).png" alt=""><figcaption></figcaption></figure>

* In the Settings section:
  * Gas Fee Ceiling: The maximum amount of gas fee you are willing to pay for a compound transaction. If the cost is higher than the Gas Fee Ceiling, the transaction won't be initiated. The maximum value is 30% of your Earned Fees.
  * Pool Slippage and Swap Slippage help protect you by reverting the transaction if there's any unfavorable price movement.

**Step 3: Track your Auto-Compound Strategy on the Automation Tab**

<figure><img src="https://github.com/KrystalDeFi/docs-gitbook/blob/main/docs/liquidity-farming/.gitbook/assets/image%20(177).png" alt=""><figcaption></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.krystal.app/products/liquidity-management/lp-transactions/auto-compound.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.
