# Rebalancing the LOF

### **Rebalancing the LOFwith PLP buying and selling**

To preserve the desired asset allocation within the index, each constituent asset is assigned a target weight. When users mint or redeem PLP tokens, they are charged a fee that dynamically adjusts based on their transaction's impact on the overall index balance.

If a user's minting or redemption would skew the index composition away from the target weights, a higher fee is imposed to disincentivize such imbalancing actions. Conversely, transactions that help rebalance the index towards the desired weightings incur a lower fee, incentivizing users to maintain the intended asset allocation.

This dynamic fee structure ensures that the balanced index remains well-diversified and adheres to its predefined asset allocation strategy, fostering stability and mitigating concentration risks within the underlying basket of assets.

To reflect the same level of risk and avoid exposing Liquidity Providers to assets they might not want exposure to, several PLP pools collateralized by a different basket of assets are available:&#x20;

* Classic cPLP: BTC, ETH, USDC
* Alts aPLP: to be updated

For the Classic and Alts pools, the target weight of each asset is set by the protocol’s decentralized governance and adjusted over time.&#x20;

### Fees in practice

The initial allocation of the pool's assets is as follows: USDC is set at 50%, while ETH and BTC each have a 25% share. This distribution is designed to ensure a balanced availability of both put and call options for users, while simultaneously maintaining a significant exposure to volatile assets.

At any given time, the current deviation of the pool from the target weights can be calculated using the following formula:

$$
D\_{current}\text{(t)} = |a\_{USDC} - a\_t| + |b\_{BTC} - b\_t| + |c\_{ETH} - c\_t| \\
$$

When a new deposit or withdrawal is made, the protocol calculates the updated deviation based on the future composition of the pool:

$$
D\_{new}= |a\_{USDC} - a\_{new}| + |b\_{BTC} - b\_{new}| + |c\_{ETH} - c\_{new}| \\
$$

By calculating the difference between the new deviation and the current deviation, Polarity can evaluate the positive or negative impact of a transaction on the pool.

$$
\Delta = D\_{\text{new}} - D\_{\text{current}}\text{(t)}
$$

If Δ is less than 0, it indicates that the transaction is helping to rebalance the pool. Conversely, if Δ is greater than 0, it suggests that the transaction is causing the pool to become further unbalanced.

Based on the value of Δ, a fee is applied to incentivize the balancing of the pool, following this formula:

$$
\begin{cases}
\text{Fee} = \text{Basic Fee} & \text{if } \Delta < 0 \\
\text{Fee} = e^{α\Delta} - 1 + \text{Basic Fee} & \text{if } \Delta \geq 0
\end{cases}
$$

We can use the Taylor series expansion for the exponential function. The Taylor series for exponential around 0 is given by:

$$
e^x = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \frac{x^4}{4!} + \dots
$$

For small values of x, higher-order terms become negligible. Therefore, the approximation can be expressed as:

$$
e^{αx} \approx 1 + αx
$$

Hence:

$$
\begin{cases}
\text{Fee} = \text{Basic Fee} & \text{if } \Delta < 0 \\
\text{Fee} = α\Delta + \text{Basic Fee} & \text{if } \Delta \geq 0
\end{cases}
$$

Fee is caped at Maximum Fee.

The initial parameters are established according to the values presented in the table below. These parameters will be subject to adjustment over time through the protocol's decentralized governance mechanism.

<table data-header-hidden><thead><tr><th width="199"></th><th width="104"></th></tr></thead><tbody><tr><td><strong>Parameter</strong></td><td><strong>Value</strong></td></tr><tr><td>Basic Fee</td><td>0.05%</td></tr><tr><td>Maximum Fee</td><td>2%</td></tr><tr><td>α</td><td>0.25</td></tr></tbody></table>


---

# 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.polarity.finance/intro/liquid-options-facility-lof/rebalancing-the-lof.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.
