> For the complete documentation index, see [llms.txt](https://docs.hyperhive.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hyperhive.finance/hyperhive-vaults/auto-compounding-engine.md).

# Auto-Compounding Engine

Compounding by hand means deciding, every time, whether a claim is worth the gas and where to swap. The engine does it on a fixed schedule for the whole pool, so a small deposit compounds at the same rate as a large one.

#### Harvest

**Trigger** — a keeper network calls harvest() on a fixed schedule, with the function left permissionless so it can also be triggered manually as a fallback.

**Claim & swap** — each strategy’s accrued rewards (interest, staking, funding) are claimed and swapped back into the underlying asset through the best available venue.

**Fee & reinvest** — a \[**10**]% performance fee routes to the treasury; the remainder is reinvested with weights rebalanced by current APY, TVL headroom, and health factor.

#### Distribution

**Exchange rate** — every harvest lifts totalAssets, which lifts the exchange rate (totalAssets / totalSupply) shared across all hhToken holders.

**No claim step** — each hhToken redeems for a larger share of the vault without its balance ever changing; there’s no airdrop or manual claim.

**High-water mark** — redemptions settle at the current rate, with an optional vault-level mark applying fees only above the prior peak.

<br>


---

# 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.hyperhive.finance/hyperhive-vaults/auto-compounding-engine.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.
