# Stake & Unstake

### STAKE

<div data-with-frame="true"><figure><img src="/files/W4F4mO26v4j8ZL1wih5r" alt=""><figcaption></figcaption></figure></div>

#### **How staking works**

You deposit SUI. The protocol calculates how much stSUI to mint based on the current exchange rate.

```
stSUI minted = SUI deposited × (total stSUI / total SUI in pool)
```

At launch, the ratio is 1:1. After rewards accrue, you get slightly less than 1 stSUI per SUI — because each stSUI is now worth more.

#### **The exchange rate**

```
exchange_rate = total SUI in pool / total stSUI supply
```

At launch: 1 stSUI = 1 SUI.

After a year of rewards: 1 stSUI ≈ 1.03 SUI (depending on network APR).

Your stSUI count stays the same after staking. Its value in SUI grows.

#### **Stake Flow**

1. Connect your Sui wallet at [alphafi.xyz/stsui](https://alphafi.xyz/stsui).
2. Enter the amount of SUI to stake.
3. Review the exchange rate and expected stSUI.
4. Click **Stake** and sign.
5. stSUI lands in your wallet instantly. Rewards start accruing the next epoch.

### UNSTAKE

<div data-with-frame="true"><figure><img src="/files/prR8GQZ0SAwBLsAc1tV4" alt=""><figcaption></figcaption></figure></div>

#### **How instant unstaking works**

You return stSUI. The protocol calculates how much SUI to give back, sends it, and burns the stSUI:

```
SUI returned = stSUI returned × exchange_rate − redeem fee
```

The SUI comes from a liquidity buffer the protocol maintains, plus withdrawals from staked positions when needed. All in one transaction.

#### **Why no waiting period**

Normal Sui staking has a cooldown — usually one or more epochs. stSUI skips this by keeping a liquidity buffer and using Sui's native staking flows atomically.

The 0.01% redeem fee partly funds this.

#### **Unstake Flow**

1. Open [alphafi.xyz/stsui](https://alphafi.xyz/stsui).
2. Switch to the **Unstake** tab.
3. Enter the amount of stSUI.
4. Review the expected SUI received (after redeem fee).
5. Click **Unstake** and sign.
6. SUI arrives in the same transaction.

### Flash Staking

Flash staking is for developers building DeFi protocols.

**What is flash staking?**

A normal stake: deposit SUI → receive stSUI.

A flash stake reverses the order:

1. The protocol mints stSUI to the caller.
2. The caller uses the stSUI in the same transaction.
3. Before the transaction ends, the caller returns the equivalent SUI plus a flash stake fee.

If the SUI isn't returned, the whole transaction reverts. Nothing changes.

**Use cases**

* **Open an LP position in one transaction** without sourcing stSUI from the market first.
* **Atomic position switches** — swap a SUI position for a stSUI position in a single tx.
* **Yield strategies and aggregators** that compose stSUI minting into larger flows.

Most users won't touch flash staking. Regular stake and unstake cover normal use.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.alphafi.xyz/stsui-lst/stake-and-unstake.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
