# Performance Fee

### Principles

* Performance fee is paid after a period of constant share supply. Share supply changes on the following actions:
  * buy shares
  * redeem shares
  * claim fees
* Performance fee is only paid if the share price at the end of a share period is larger than the high watermark.
* Only the wealth created for the share price above high watermark is taken into account.
* Performance fee is paid out in shares, as all other fees.
* Order of fee registrations: Management Fee, Performance Fee, Entrance Fees, Exit Fees

### Formulas

* Call `totalSupply` = $$TS\_i$$ i.e. totalSupply before minting or burning shares for the action)
* Read `highWatermark` from storage (this is the share price after the previous performance fee calculation, see below), $$hwm$$
* Current gross share price $$g\_i = GAV\_i / TS\_i$$
* Wealth created during period: $$W\_i = max(g\_i - hwm, 0) \cdot TS\_i$$
* Value of performance fee during period $$F\_i = W\_i \cdot x%$$, where $$x$$is the performance fee percentage
* Performance fee shares (dilute existing shares): $$f\_i = \frac{F\_i \cdot TS\_i}{GAV\_i - F\_i}$$
* Calculate share price (after all fees have been minted or burnt): $$g\_i^\prime = GAV\_i / TS\_i^\prime$$ where $$TS^\prime\_i$$ is the new total supply after all fees have been settled. If $$g^\prime\_i > hwm$$ (i.e. also $$W\_i$$ and $$F\_i$$ will be larger than zero), then update storage $$hwm = g^\prime\_i$$.

{% hint style="info" %}
On Sulu(v4) we removed the crystallisation period. Without a "crystallisation period", the manager can potentially earn more performance fees through continuous accrual instead of quarterly or yearly accrual. Managers should, therefore, set the rate for the new simplified performance fee lower than the rate of the previously used performance fee.
{% endhint %}


---

# 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.enzyme.finance/enzyme-blue-protocol/fee-formulas/performance-fee.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.
