> For the complete documentation index, see [llms.txt](https://about.partnr.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://about.partnr.xyz/main-functions.md).

# Main Functions

### For Creators <a href="#getting-started" id="getting-started"></a>

1. **Create Vault**

* **Input Parameters**:
  * **Network and Base Token (Underlying)**: Currently supports only Solana and stablecoins USDC, USDT (fixed after creation).
  * **Protocol**: Allows all protocols available on the selected network.
  * **Profit Share %**: Portion of realized profits allocated to the Creator (default 10%).
  * **Initial Deposit**: Minimum 500 USDC/USDT.
* **Flow**: The Creator configures the vault in the UI → confirms parameters → signs the on-chain vault creation transaction → vault becomes visible in the explorer.

<figure><img src="https://1061331656-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIhUcI5yosbpVfS2IPA8T%2Fuploads%2FVYwVTystQVWSNbiTS3Oe%2Fimage%20(8).png?alt=media&amp;token=f9b6b484-3bf2-403a-908d-e2c07ea97987" alt=""><figcaption></figcaption></figure>

2. **Manage Strategy via AI Chat**

* **Interaction**: The Creator issues strategy commands in natural language.
* **AI Role**:
  * Parse intent.
  * Generate a **transaction preview**: route, amounts, fees, slippage, estimated PnL, and impact on profit share.
  * Require the **Creator’s signature** before execution.
* **Supported Actions**: Swap, add/remove LP, trade, stake/unstake, borrow/lend, claim rewards.
* **Gas Tank**: Transaction fees are deducted from the vault’s Gas Tank; low-balance alerts are provided.

<figure><img src="https://1061331656-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIhUcI5yosbpVfS2IPA8T%2Fuploads%2FLDEf0MFOthL6xwmHCgPe%2Fimage%20(9).png?alt=media&amp;token=56e0389c-495b-4f83-8668-cfba72407ceb" alt=""><figcaption></figcaption></figure>

3. **Monitor Performance**

* View **TVL, APR (age-aware)**, realized/unrealized PnL, and allocation.
* Time-range filters: 24H, 7D, 30D, 90D, All-time (filters are hidden if vault age is insufficient).
* Activity log associated with each vault.

<figure><img src="https://1061331656-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIhUcI5yosbpVfS2IPA8T%2Fuploads%2F1OvUUeGKTFWZc1CntBXl%2Fimage%20(10).png?alt=media&amp;token=231fb09b-29f8-4df8-aca3-c02218183d0b" alt=""><figcaption></figcaption></figure>

4. **Fee Earned (Profit Share)**

* **Trigger**: When closing a profitable position or claiming/unstaking rewards.
* If multiple tokens are involved, the system swaps just enough into the underlying token to match the profit share.
* **Flow**: Earnings become “Claimable” → Creator signs the claim transaction → funds are transferred to the Creator’s wallet.

<figure><img src="https://1061331656-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIhUcI5yosbpVfS2IPA8T%2Fuploads%2FHYvTga6Qaz79pdWprDH1%2Fimage%20(11).png?alt=media&amp;token=9e0cc1ef-38da-4e76-bb77-38b8083a6563" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1061331656-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIhUcI5yosbpVfS2IPA8T%2Fuploads%2FcL3NHGEvoueXOOnhVF10%2Fimage%20(12).png?alt=media&amp;token=48519ee4-9bad-4104-8e2e-da1c8c6997cc" alt=""><figcaption></figcaption></figure>

***

### For Depositors

1. **Deposit**

* Select a vault → enter the deposit amount in the underlying token → sign the transaction.
* Receive vault share tokens representing proportional ownership; allocation updates after confirmation.

<figure><img src="https://1061331656-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIhUcI5yosbpVfS2IPA8T%2Fuploads%2F1aUAQ4PKbpBKUpdg5Aoh%2Fimage%20(13).png?alt=media&amp;token=0bba6722-162a-44cc-8f86-0fffeb4f1b74" alt=""><figcaption></figcaption></figure>

2. **Withdraw**

* Choose a partial or full withdrawal.
* If the vault has open positions, the withdrawal may require partial position closure or waiting for available liquidity.
* Sign the transaction → burn share tokens → receive the underlying token.

<figure><img src="https://1061331656-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIhUcI5yosbpVfS2IPA8T%2Fuploads%2FmaiZzkFbYuOTgE1c9khR%2Fimage%20(14).png?alt=media&amp;token=f6ef3c1c-1f32-4ff6-84bf-58f6fab29dbf" alt=""><figcaption></figcaption></figure>

3. **Track Performance**

* **My Allocation**: Historical allocation chart (hourly/daily snapshots depending on vault age).
* **PnL & APR**:
  * PnL = (Current value + withdrawals – deposits – initial value) ÷ initial value.
  * APR is annualized from the period ROI; hidden for very new vaults to avoid misleading results.

<figure><img src="https://1061331656-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIhUcI5yosbpVfS2IPA8T%2Fuploads%2FVkGXDJMpywMzj4FSwZKE%2Fimage%20(15).png?alt=media&amp;token=41cedadb-966d-4b4d-b79a-d4f317871a3b" alt=""><figcaption></figcaption></figure>
