# PnL Compensator

**P\&L Balancer Engine**

The P\&L Balancer Engine is a unique feature that offers support to the losing side (LP/Traders) on the PEX platform. By distributing xPEX tokens from the emission based on a mathematical formula that considers last week, the AEE aims to minimize the impact of losses and encourage more trading activity.

**Mechanism**

The PnL Compensator not only helps to reduce traders'/LP providers' losses but also brings them into the $PEX ecosystem, offering additional incentives for them to hold and engage with the token. As a result, this feature can boost user retention and stimulate further trading on the platform, ultimately leading to higher trading volumes and a more robust ecosystem.

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

As shown in the formula, when traders' performance is better than the LP providers, a PnL compensation is to be distributed to LP providers. Vice versa. If the traders' and LP providers' performance meets the equilibrium, a premium reward will be distributed to the PEX holder as awarding of the PEX holder's contribution to the equilibrium ecosystem

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

**Benefit**

1. Reduce the trader’s/LP provider's loss

The PnL Compensator mechanism helps alleviate the financial burden of trading losses for users on the PEX platform. By offering support through the distribution of $PEX tokens, traders are more likely to remain engaged with the platform and maintain their trading activities, even during challenging market conditions.

2. Bring traders/LP providers into the $PEX ecosystem

By awarding $PEX tokens to losing traders, the platform incentivizes these users to explore and engage with the various features and services offered within the $PEX ecosystem. This increased involvement can lead to stronger community growth, fostering a more active and interconnected user base.

3. Encourage users to trade more

The P\&L Balancer Engine's support system can instil confidence in traders to continue their activities on the platform. As the impact of losses is minimized, traders may be more inclined to refine their strategies, experiment with new markets, and trade more frequently. This can result in higher trading volumes, which benefit the platform and the $PEX ecosystem by attracting new users and creating a more robust market environment.


---

# 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://whitepapercrypto.gitbook.io/pex/auto-equilibrium-engine-aee/aee-mechanism/pnl-compensator.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.
