# Position Management

## Where to manage

* Open **Dashboard page** and locate your position card.<br>

  <figure><img src="https://2164669523-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvo4y92EukVo5jeASAueL%2Fuploads%2Fqw0uVFOh7bCM8LyWeXZH%2FCleanShot%202025-09-14%20at%2014.36.30%402x.png?alt=media&#x26;token=d65b0b47-b09a-4957-a4cc-f76c52334cc9" alt="" width="375"><figcaption></figcaption></figure>
* Click **Manage** on the position card.<br>

  <figure><img src="https://2164669523-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvo4y92EukVo5jeASAueL%2Fuploads%2F7bBHxgOxR5lXMwUWsAAW%2FCleanShot%202025-09-14%20at%2014.36.53%402x.png?alt=media&#x26;token=70c49b34-8f60-4f8e-9b1f-cc6866473818" alt="" width="375"><figcaption></figcaption></figure>
* In the Manage panel, use the tabs:
  * **Deposit**
  * **Withdraw**
  * **Borrow**
  * **Repay**
    * **Repay with USDB**
    * **Repay with collateral**

<figure><img src="https://2164669523-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvo4y92EukVo5jeASAueL%2Fuploads%2FOgj2CftrMVArpBIzNpXJ%2FCleanShot%202025-09-14%20at%2014.37.59%402x.png?alt=media&#x26;token=a1852f91-a004-418f-9a8a-4ba66bb2a179" alt="" width="188"><figcaption></figcaption></figure>

***

## What the position card shows

* **Collateral amount & value**, **Debt**, and fixed **interest rate.**
* **CR (Collateral Ratio)** with a **health bar**
* **Market Price** and **Liquidation Price**<br>

  <figure><img src="https://2164669523-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvo4y92EukVo5jeASAueL%2Fuploads%2FtpdiyXCvyVWTK7EtB2J6%2FCleanShot%202025-09-14%20at%2014.44.01%402x.png?alt=media&#x26;token=f5b5c67c-1dbb-415f-a856-da3defbbcf8d" alt="" width="270"><figcaption></figcaption></figure>

**Health bar colors:**

* **Green** = conservative
* **White** = normal
* **Yellow** = aggressive
* **Red** = very risky
* Liquidation label = Minimal Collateral Ratio of the Collateral type<br>

<figure><img src="https://2164669523-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvo4y92EukVo5jeASAueL%2Fuploads%2FGm3BTvNhKHamBlInpK6D%2FCleanShot%202025-09-14%20at%2014.44.39%402x.png?alt=media&#x26;token=ac5eac17-672d-489c-bcad-7d15ba7c224b" alt="" width="313"><figcaption></figcaption></figure>

***

## Actions

> The after-action simulation appears on every tab to preview CR and Liquidation Price before you confirm.

### Deposit(add collateral)

1. Go to **Deposit** and enter the amount to add.
2. Review the after-action **CR** and **Liquidation Price**.
3. Confirm(Deposit).

**Effect:** CR increases; Liquidation Price moves lower (safer).

<figure><img src="https://2164669523-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvo4y92EukVo5jeASAueL%2Fuploads%2FOHkuiXVaHZ6EiEbcREwS%2FCleanShot%202025-09-14%20at%2014.46.48%402x.png?alt=media&#x26;token=bce6351c-d2f4-4cc9-877b-b53458fa7774" alt="" width="373"><figcaption></figcaption></figure>

***

### Borrow more USDB

1. Go to **Borrow** and enter the amount of **USDB** you want to borrow.
2. Review the after-action **CR** and **Liquidation Price (CR must remain ≥ MCR(Liquidation)**.
3. Confirm(Borrow).

**Effect:** Debt increases; CR decreases; Liquidation Price moves higher (riskier). *Fixed interest rate is based on debt amount*

<figure><img src="https://2164669523-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvo4y92EukVo5jeASAueL%2Fuploads%2Fo0oCxPT02C9pcrw5YWkZ%2FCleanShot%202025-09-14%20at%2014.53.04%402x.png?alt=media&#x26;token=54be8450-5a46-4358-ab55-041a47ac2c3f" alt="" width="373"><figcaption></figcaption></figure>

***

### Withdraw collateral(partially)

1. Go to **Withdraw** and enter the amount to take out.
2. Review the after-action **CR** and **Liquidation Price (CR must remain ≥ MCR(Liquidation)**.
3. Confirm(Withdraw).

**Max withdraw note:** the UI shows a **max-withdraw estimate** that trends your CR close to the MCR line.

**Effect:** CR decreases; Liquidation Price moves higher (riskier).

<figure><img src="https://2164669523-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvo4y92EukVo5jeASAueL%2Fuploads%2Fc8sKYkQKMoFKE2hc2LTA%2FCleanShot%202025-09-14%20at%2014.54.49%402x.png?alt=media&#x26;token=ffeae2d5-1bfb-42fe-ade0-870c1e60e5eb" alt="" width="375"><figcaption></figcaption></figure>

***

### Repay debts

#### ***Repay with USDB***

* Enter the amount of **USDB** to repay and confirm.
* **Max repay** behavior:
  * If wallet USDB balance ≥ total debt, Max fills the **entire outstanding debt** (including real-time interest).
  * Otherwise, Max uses your **full wallet balance**.
* **Partial repay** is supported.

**Effect:** Debt decreases; collateral remain the same. CR increase(Safer).

<figure><img src="https://2164669523-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvo4y92EukVo5jeASAueL%2Fuploads%2FDk9mFULEKXCi6uIPkIPA%2FCleanShot%202025-09-14%20at%2014.58.05%402x.png?alt=media&#x26;token=df5b9a1c-13e3-467f-8bf8-9011cc13c394" alt="" width="374"><figcaption></figcaption></figure>

***Repay with collateral***

* For supported assets, sell a portion of collateral into **USDB** and repay in one flow.
* The modal previews: **collateral to sell → USDB repaid → new CR**.
* Under the hood, the protocol routes the steps atomically; availability depends on on-chain DEX liquidity.

**Effect:** Debt decreases; collateral also decreases. CR typically **improves** if the debt reduction is proportionally larger than collateral sold.

<figure><img src="https://2164669523-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvo4y92EukVo5jeASAueL%2Fuploads%2FVnzRl57ev9Q5yufwbCUA%2FCleanShot%202025-09-14%20at%2014.58.46%402x.png?alt=media&#x26;token=371ce2fb-29ff-4588-a8a6-4c8116702adb" alt="" width="375"><figcaption></figcaption></figure>

***

### Close position

**Close** fully repays the position and returns all remaining collateral to your wallet in a single transaction. Choose one of the two paths:

* **Close — Repay with USDB**
  * **Requirement:** your wallet’s USDB balance must be **≥ total debt**.
  * **What happens:** repays the **entire** debt using your USDB and withdraws **100% of the collateral** back to your wallet.

<figure><img src="https://2164669523-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvo4y92EukVo5jeASAueL%2Fuploads%2Few9uS9gr8Ai5EyWTAFcu%2FCleanShot%202025-09-14%20at%2015.04.46%402x.png?alt=media&#x26;token=620a00bb-af99-4c7d-8911-455a802bb5b8" alt="" width="374"><figcaption></figcaption></figure>

* **Close — Repay with collateral**
  * **Availability:** always available(Slippage < your setting).
  * **What happens:** sells a **portion of collateral** into USDB, repays **all** debt, then withdraws the **remaining collateral** to your wallet.
  * The modal shows a preview: **collateral used(to sell) → USDB repaid → collateral left**.

<figure><img src="https://2164669523-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvo4y92EukVo5jeASAueL%2Fuploads%2FMlBoUhGgUziinfgvd0Cx%2FCleanShot%202025-09-14%20at%2015.05.16%402x.png?alt=media&#x26;token=d1b3dccf-b9dc-4914-9378-a727ece832ba" alt="" width="375"><figcaption></figcaption></figure>

***

### Examples

**Shared assumptions**

* Collateral: **1,000 SUI**
* Market price: **$5.00** per SUI → Collateral Value **$5,000**
* Debt: **4,000 USDB**
* **MCR (Liquidation) = 110% (1.10)**
* Baseline: **CR = 5,000 / 4,000 = 1.25 (125%)**
* Liquidation Price = (1.10 × 4,000) / 1,000(SUI) = $4.40 per SUI

**A) Deposit 200 SUI**

* New collateral = **1,200 SUI** (value **$6,000**)
* New **CR = 6,000 / 4,000 = 1.50 (150%)**
* New Liquidation Price = (1.10 × 4,000) / 1,200(SUI) ≈ $3.67 per SUI

**B) Repay with collateral 500 USDB**

* At $5.00/SUI (ignoring routing fees), sell **\~100 SUI** → **\~500 USDB** to repay.
* New collateral = **900 SUI** (value **$4,500**); New Debt = **3,500 USDB**
* New **CR = 4,500 / 3,500 ≈ 1.286 (128.6%)**
* New Liquidation Price = (1.10 × 3,500) / 900 ≈ $4.28 per SUI
