# OLP token

## Minting

LPs deposit USDC into the LP MM Vault. The protocol **mints** the equivalent number of OLP tokens, at the deposit entry time price, and sends tokens to the same wallet used to deposit. However, if the user deposits with a lockup period, they receive an NFT representing the OLP tokens, which are held in the vault until the lockup period ends and the user unlocks the tokens.

## Burning

Once the withdrawal process is completed, the protocol burns OLP tokens and sends the equivalent USDC amount to the LP.

## Rewards

The MM Vault accumulates these fees from trading activity (diagram [here](https://ostium-labs.gitbook.io/ostium-docs/vault/broken-reference)):

* 30% of [protocol opening fee](https://ostium-labs.gitbook.io/ostium-docs/ostium-trading-engine/opening-trades#protocol-opening-fee)
* 100% of [liquidation reward](https://ostium-labs.gitbook.io/ostium-docs/ostium-trading-engine/closing-trades#liquidation-reward)
* 100% of [rollover fee](https://ostium-labs.gitbook.io/ostium-docs/vault/broken-reference) if the collateralization ratio is below 100%

By depositing capital into the MM Vault, LPs earn rewards, with fees generated from trading activity. Depositors can estimate their potential earnings through the projected APY displayed on the User Interface or manually derivation through observed protocol flows.

## Pricing & Example

Fee flows are compounded directly into the vault, and as a result, any OLP token holdings. Sample flow:

* Alice deposits 100 USDC into the MM Vault at time t, at which time 1 OLP = 1 USDC. She now has 100 OLP in her wallet.
* At time t+1, the value of the MM Vault has grown programmatically as a result of compounding trading and liquidation fees. Now, 1 OLP = 1.10 USDC.
* Alice requests to withdraw from the vault at time t+1, which in practice means burning her 100 OLP and redeeming them for their USDC value.
* Alice receives 110 USDC, effectively posting a gain of 10%. Alice does not lock in her conversion price when she requests a withdrawal; she receives 110 USDC based on the conversion rate at the actual time of withdrawal itself.

## APR Calculation

To standardize yield reporting and align with best practices used by leading DEXes, we calculate the **Annual Percentage Rate (APR)** based on the **price change of the OLP over the past 30 days**.

$$
APR (%) = 12 \cdot R\_{30d} \cdot 100
$$

{% hint style="info" %}
We apply a **non-negative floor** to ensure the APR only reflects positive performance. This approach is consistent with vault designs that avoid extrapolating or compounding negative returns.
{% endhint %}

R\_30d is the last 30 days' OLP price return:

$$
R\_{30d} = \dfrac{ P\_t - P\_{t-30} }{ P\_{t-30} }
$$

* **P\_t**: OLP price today
* **P\_t-30**: OLP price 30 days ago&#x20;

This APR represents a **forward-looking extrapolation** of recent performance, helping users evaluate yield potential based on actual OLP price behavior.


---

# 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://ostium-labs.gitbook.io/ostium-docs/vault/olp-token.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.
