> 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.krystal.app/products/liquidity-management/lp-transactions/auto-compound.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
