# Auto-Compounder

<figure><img src="/files/CL6UhlX4IyFPEsu67986" alt=""><figcaption></figcaption></figure>

The Auto-Compounder Hook is a mechanism designed to automate the reinvestment of earned rewards or yields back into a user's principal position. This process, known as compounding, enhances optimizes yield growth by continually increasing the investment base without requiring manual intervention.

How does this work? As users participate in yield-generating activities (e.g., staking, liquidity provision), they earn rewards over time. The Auto-Compounder Hook periodically collects these accumulated rewards. Collected rewards are converted into the original investment asset, if necessary. The converted rewards are automatically reinvested into the user's principal position, increasing the overall amount of assets generating yield. This cycle repeats at regular intervals, ensuring that earnings are consistently reinvested to maximize compound interest over time.

### **Benefits**

**Enhanced Returns:** By automatically reinvesting earnings, users can achieve higher returns through the power of compound interest.

**Time Efficiency:** Eliminates the need for manual intervention, allowing users to benefit from compounding without active management.

**Cost Savings:** Automated processes can reduce transaction fees associated with manual reinvestment.

**User-Friendly Experience:** Simplifies the re-investment process, making it more accessible to users who may not be familiar with manual compounding strategies.


---

# 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.tren.finance/protocol/hooks/auto-compounder.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.
