Skip to content

Commit 0aafbe4

Browse files
authored
Merge pull request #22 from drift-labs/evan/isolated-pools-doc
add isolated pools docs page
2 parents ca163a4 + 87be65b commit 0aafbe4

File tree

6 files changed

+149
-0
lines changed

6 files changed

+149
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ Then, run `pnpm dev` to start the development server and visit localhost:3000.
1111
## License
1212

1313
This project is licensed under the MIT License.
14+
15+
## Deployment
16+
17+
Before deploying to vercel, run yarn and commit the package-lock.json file. This is necessary for new navigation routes to show up in the build output.

package-lock.json

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
import { Callout } from "nextra-theme-docs";
2+
3+
# Isolated Pools
4+
5+
Drift's isolated pools allow users to trade or provide liquidity with specific risks confined to a particular pool. Each isolated pool is segregated, meaning that the risks associated with one pool do not impact other pools on Drift.
6+
7+
### What's the difference between Isolated and Cross-collateral pools?
8+
9+
Cross collateral (default accounts for Drift) shares a single collateral pool across multiple positions, allowing all assets in the account to back each other. This method spreads risk and increases margin efficiency but exposes the entire account to liquidation if risks are not managed. Isolated pools, however, keep collateral and risk confined to a single pool or position. Losses or liquidation in one pool do not impact the rest of the platform or the user's other positions.
10+
11+
| **Feature** | **Cross Collateral** | **Isolated Pools** |
12+
| --- | --- | --- |
13+
| **Risk Sharing** | Shared across all positions | Confined to a single pool |
14+
| **Account Health** | Determined by total account collateral | Customized per pool |
15+
| **Liquidation Impact** | All positions at risk if account health fails | Only the affected pool is liquidated |
16+
| **Margin Efficiency** | High (collateral supports all positions) | Low (collateral is pool-specific) |
17+
| **Use Case** | Suitable for traders/stakers managing multiple positions and want to optimise capital efficiency | Ideal for stakers/traders who are only focused on one position and containing risk to a limited set of tokens |
18+
19+
### Example - Cross Collateral Pool
20+
21+
1. **Deposit Collateral**: Deposit 1000 JLP into your account.
22+
2. **Open a BTC Long Position**: Use some of the JLP as collateral to open a leveraged SOL long position.
23+
3. **Open a USDC Borrow Position**: Simultaneously borrow USDC using the same JLP collateral.
24+
4. **Risk Management**:
25+
- Both positions rely on the same JLP collateral.
26+
- If JLP's value drops significantly, both the SOL and USDC positions may face liquidation.
27+
28+
### Example - Isolated Pool
29+
30+
1. **Choose an Isolated Pool**: Select a JLP/USDC pool
31+
2. **Deposit Collateral**: Deposit 1000 JLP into the pool.
32+
3. **Open a Leveraged Position**: Borrow USDC and swap into JLP. Borrow more USDC based on the new deposit of JLP and swap into JLP, creating a leveraged exposure to JLP. You can now earn higher yield on your initial deposit of 1000 JLP
33+
4. **Risk Management**:
34+
- If JLP’s price drops, only this pool’s position is at risk of liquidation.
35+
- Other pools or positions you hold remain unaffected. At the same time, you’ll not be able to use the token deposited in isolated pool for other positions.
36+
- Isolated pools can potentially offer higher LTV as the risk exposure is contained
37+
38+
### Supported Pools
39+
40+
| **Pool** | **Assets** |
41+
| --- | --- |
42+
| JLP Isolated Pool | JLP, USDC |
43+
44+
### How to deposit into an isolated pool
45+
46+
**Step 1:** Find the isolated pool markets at the bottom of the [borrow/lend page](https://app.drift.trade/earn/borrow-lend)
47+
48+
![Isolated Pool](public/assets/isolated-pool.png)
49+
50+
**Step 2:** Select Deposit into the isolated pool
51+
52+
![Select Isolated Pool](public/assets/isolated-pool-select.png)
53+
54+
**Step 3:** Enter the amount and select deposit and create account
55+
56+
![Deposit Into Isolated Pool](public/assets/deposit-isolated-pool.png)
57+
58+
You have now created an Isolated pool account, and can borrow and lend within the isolated pool
59+
60+
*Reminder: Please take note of account health and risk of liquidation while exposed to isolated pools*
61+
305 KB
Loading
144 KB
Loading

public/assets/isolated-pool.png

143 KB
Loading

0 commit comments

Comments
 (0)