> For the complete documentation index, see [llms.txt](https://doppi-finance.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doppi-finance.gitbook.io/docs/readme/simulations/lp.md). Agents can also search and read this documentation through its [MCP server](https://doppi-finance.gitbook.io/docs/~gitbook/mcp).

# LP

### Scenario :

1. LP provides $100,000 USDT and 1 BTC to the DUAL pool for the market making bot.
2. The opportunity bot take advantage of the market volatility to make alpha returns based on each orders at different strike price.
3. The settlement bot also capture the profit as a market maker perspective.
4. The profit made during the cycle is the source of the APR generated for the traders.
5. No delta hedging applied in this simulation.
6. Simulation running from February till June using hourly BTC-USDT pricing mechanism.

### LP Initial Position

<table data-full-width="false"><thead><tr><th width="108"></th><th width="146" align="center">USDT</th><th width="117" align="center">BTC</th></tr></thead><tbody><tr><td>LP</td><td align="center">100,000</td><td align="center">1.0</td></tr></tbody></table>

### LP Result

<div align="left"><figure><img src="https://3407503094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZWnLCFJLW4FIyI20sfj2%2Fuploads%2Fgit-blob-99e5cbb8f56ccd606aa8428459bf388132d2c29c%2Fimage%20(5).png?alt=media" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}
Net profit = Total LP earned - Total Interest Paid
{% endhint %}

<figure><img src="https://3407503094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZWnLCFJLW4FIyI20sfj2%2Fuploads%2Fgit-blob-f94859a0a1342a2f23e53fbfc16e97e32b1af766%2Fimage%20(10).png?alt=media" alt=""><figcaption></figcaption></figure>

### Total LP Earned Attribution

The following capture the total LP earned from

1. Market making settlement in USDT and BTC during the expiry. Profit are kept in the local tokens
2. Opportunity profit in USDT and BTC orders made in between the start and expiry date. Profit are kept in the local tokens

{% hint style="info" %}
Total LP earned = Total Earned Settlement + Total Earned Opportunity
{% endhint %}

{% hint style="info" %}
Total Earned Opportunity (USDT) = oppProfitUSDT + oppUnwindProfitUSDT + settleProfitUSDT
{% endhint %}

{% hint style="info" %}
Total Earned Opportunity (BTC) = oppProfitBTC + oppUnwindProfitBTC + settleProfitBTC
{% endhint %}

<figure><img src="https://3407503094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZWnLCFJLW4FIyI20sfj2%2Fuploads%2Fgit-blob-8911d10d91543ae49b6c98adfb41c83544c59742%2Fimage%20(12).png?alt=media" alt=""><figcaption></figcaption></figure>
