> ## Documentation Index
> Fetch the complete documentation index at: https://docs.n0ir.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# How It Works

> Automated concentrated liquidity on Aerodrome.

LP Vaults are automated concentrated liquidity positions on Aerodrome Slipstream pools. Users deposit USDC and a keeper service manages the underlying CL position — handling rebalancing, compounding, and staking automatically.

***

## How It Works

### 1. Deposit

Deposit USDC into an LP vault. You receive internal vault shares representing your pro-rata ownership of the vault's position.

### 2. Position Management

The keeper manages a single concentrated liquidity position per vault:

* **Splits USDC** into the two pool tokens at the optimal ratio based on the current price
* **Mints a CL position** within the configured tick range
* **Stakes in the Aerodrome gauge** to earn AERO emissions

### 3. Auto-Rebalancing

When the pool price moves outside the position's tick range, the keeper:

1. Unstakes from the gauge
2. Removes all liquidity
3. Swaps tokens back to USDC
4. Recalculates the optimal range around the current price
5. Mints a new position and re-stakes

This ensures the vault is always earning trading fees and gauge rewards.

### 4. Auto-Compounding

When accumulated AERO rewards exceed the compound threshold:

1. Claims AERO gauge rewards
2. Takes **10% performance fee** (sent to treasury as USDC)
3. Swaps remaining AERO to USDC
4. Collects any trading fees from the position
5. Adds all idle USDC back into the position as additional liquidity

When idle USDC accumulates from new deposits or trading fees, it's automatically added to the position without waiting for AERO rewards.

### 5. Withdrawal

Withdraw USDC at any time. The vault:

1. Calculates your share of `totalAssets`
2. Removes proportional liquidity from the position if needed
3. Swaps non-USDC tokens back to USDC
4. Transfers USDC to your wallet

***

## Fees

| Fee Type                | Amount                    |
| ----------------------- | ------------------------- |
| Deposit                 | 0%                        |
| Withdrawal              | 0%                        |
| Trading fee compounding | 0%                        |
| AERO reward compounding | **10%** (performance fee) |

90% of the AERO performance fee is used to buy \$N0IR.

***

## Slippage Protection

All swaps within the vault use **on-chain slippage protection** calculated from the pool's current spot price. Each swap has a minimum output enforced based on the vault's tick spacing:

| Tick Spacing | Slippage Tolerance |
| ------------ | ------------------ |
| CL1          | 0.5%               |
| CL10         | 0.5%               |
| CL50         | 1%                 |
| CL100        | 1.5%               |
| CL200        | 2%                 |

This protects deposits, withdrawals, compounds, and rebalances from sandwich attacks and excessive price impact.
