# Auto Compound

<br>

<figure><img src="https://cdn-images-1.medium.com/max/720/1*9hH1CTJveMmbBg896Ghzng@2x.png" alt=""><figcaption></figcaption></figure>

**High level:** You can setup auto-compounding to reinvest your fees back into your position for compounded returns.&#x20;

**Value Add:** Aperture will auto-compound your position at an optimal interval based on fees earned vs. gas costs for rebalancing. Aperture also performs the perfect swap required to ensure 100% of your fees make it back into the position. If you’ve ever attempted to manually compound fees you’ll know that you can’t simply zap them back into the position at the perfect ratio — you must first swap some of the fees to get the perfect ratio needed. Aperture takes care of this for you.&#x20;

**Example:** Auto-compound WETH-USDC fees whenever the total unclaimed fee revenue is greater than $250 and gas is less than $50.&#x20;

1. Click on the position you wish to turn on auto-compounding for and locate the Auto-Compound button in the “Unclaimed Fees” section.
2. Toggle the Auto-Compound button on and input the minimum fee amount and maximum gas amount in dollars or percentage of position.
3. Click the “Auto” button!&#x20;

<figure><img src="https://cdn-images-1.medium.com/max/720/1*9hLxpU7RnJP_N4v3KohVnA@2x.png" alt=""><figcaption></figcaption></figure>

<br>


---

# 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.aperture.finance/docs/liquidity-intents/auto-compound.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.
