# Move contracts (/docs/developer/contracts) Volo publishes both Move packages in its smart contract repository. The repository README lists the original package IDs and the deployed versions. Each package’s `Published.toml` records deployment details. | Product | Source | | --- | --- | | Liquid staking and vSUI | [Liquid staking package](https://github.com/Sui-Volo/volo-smart-contracts/tree/main/liquid_staking) | | Volo Vaults | [Vault package](https://github.com/Sui-Volo/volo-smart-contracts/tree/main/volo-vault) | The vSUI coin type uses the **original** liquid staking package ID, followed by `::cert::CERT`. The V2 [Move API reference](/docs/developer/liquid-staking-token/staking-api) identifies the upgraded package used for calls. These IDs serve different purposes. Use the repository’s deployment table to find the version you are integrating. The audit directory links reports for the reviewed packages. [Deployment table](https://github.com/Sui-Volo/volo-smart-contracts#volo-smart-contracts) · [Audit reports](https://github.com/Sui-Volo/volo-smart-contracts/tree/main/audit) # Build with Volo (/docs/developer) Volo offers two building blocks on Sui: **vSUI**, a reward-bearing liquid staking token, and **Volo Vaults**, managed strategies users deposit a single coin into. Both are used through Sui programmable transactions that your users sign with their own wallets; nothing is custodied, and every transaction can be simulated before it is signed. ```mermaid flowchart TD App[Your app or backend] -->|rates, vaults, positions| APIs[Volo stats API and NAVI open API] App -->|unsigned transaction| Wallet[User wallet] Wallet -->|signed transaction| Chain[Sui: StakePool and vault contracts] ``` Stake SUI for vSUI and redeem it from your own PTBs. Move calls with `@mysten/sui` List vaults, read positions and build deposits and withdrawals. `@naviprotocol/vault` ## Choose an entry point [#entry-points] | You are building | Start with | | --- | --- | | A wallet or dApp that stakes SUI | [Liquid staking quickstart](/docs/developer/liquid-staking-token/quickstart), then [Stake SUI](/docs/developer/liquid-staking-token/stake) | | A protocol that accepts or prices vSUI | [Token and objects](/docs/developer/liquid-staking-token#token-reference) and [Read vSUI data](/docs/developer/liquid-staking-token/data) | | Vault deposits and withdrawals in your app | [Vault quickstart](/docs/developer/vault/quickstart), then [Deposit](/docs/developer/vault/deposit) | | An integration that reads contracts directly | [Move contracts](/docs/developer/contracts) and the [liquid staking Move API](/docs/developer/liquid-staking-token/staking-api) | ## Build with AI [#build-with-ai] Install the NAVI SDK skills so your coding agent (Claude Code, Cursor, Codex, Windsurf) knows `@naviprotocol/vault` before it writes code: ```bash npx skills add naviprotocol/skills --skill navi-sdk ``` Every page here has a Markdown version for coding assistants: add `.md` to the URL, or use **Copy Markdown** at the top of the page. [`/llms.txt`](/llms.txt) indexes all pages and [`/llms-full.txt`](/llms-full.txt) contains them in one file. ## Current releases [#current-releases] These docs are written and tested against the versions below. Every code sample lives in the repository’s `examples/` folder: it is type-checked against these versions, and the read-only parts are run against mainnet. **Latest on npm** is read from the registry and refreshed hourly; when it is newer, the docs have not been verified against it yet. Full API references are on the [SDK site](https://sdk.naviprotocol.io/vault). ## Audits and support [#support] - Read the audit reports for [liquid staking](/docs/developer/staking-audits) and [Volo Vaults](/docs/developer/vault-audits). - [Contact Volo](/docs/guides/contact) for partnerships and integration questions. - When reporting a problem, include the transaction digest, the package or SDK version and the address involved. # Read vSUI data (/docs/developer/liquid-staking-token/data) The figures below are fetched from the stats API in your browser and refresh every 30 seconds. ## Query the stats API [#query-the-stats-api] The endpoint needs no API key or wallet and allows requests from any origin, so you can call it from a backend or directly from a web app. ```sh curl --fail --silent --show-error https://open-api.naviprotocol.io/api/volo/stats ``` ```ts title="read-data.ts" type VoloStats = { exchangeRate: number; // SUI per vSUI apy: number; // decimal fraction: 0.012 is 1.2% totalStaked: string; // SUI, decimal string totalSupply: string; // vSUI, decimal string totalStakers: number; currentEpoch: string; maxInstantUnstake: string; // SUI available for instant unstaking validators: { name: string; address: string; assigned_weight: string; apy: string }[]; lastUpdated: number; // Unix ms }; export async function getVoloStats(): Promise { const response = await fetch('https://open-api.naviprotocol.io/api/volo/stats'); if (!response.ok) throw new Error(`Volo stats request failed: ${response.status}`); const { data } = (await response.json()) as { data: VoloStats }; if (Date.now() - data.lastUpdated > 10 * 60_000) throw new Error('Volo stats are stale'); return data; } const stats = await getVoloStats(); console.log(`1 vSUI = ${stats.exchangeRate} SUI, APY ${(stats.apy * 100).toFixed(2)}%`); console.log(`12.5 vSUI is worth about ${(12.5 * stats.exchangeRate).toFixed(4)} SUI`); ``` The response wraps the result in a `data` object. Token amounts are decimal strings in whole SUI or vSUI, not base units. | Field under `data` | Meaning | | --- | --- | | `exchangeRate` | SUI represented by one vSUI, before any transaction-specific fee | | `apy` | Annualized staking yield as a fraction. Multiply by 100 for a percentage. | | `totalStaked` | SUI staked through the pool | | `totalSupply` | vSUI in circulation | | `totalStakers` | Number of staking addresses | | `currentEpoch` | Sui epoch reported by the service, as a string | | `validators` | Validators in the pool, each with `name`, `address`, `totalStaked`, `assigned_weight` (percentage of new stake) and `apy` | | `maxInstantUnstake` | SUI currently available for instant unstaking | | `lastUpdated` | Unix timestamp in milliseconds | Check `lastUpdated` before displaying the data. If the request fails or the data is stale, show the time of the last successful response or mark the figures as unavailable. ## Read on-chain instead [#on-chain] The API is for display. Inside a transaction, or when you need the exact figure at a given checkpoint, call the view functions on the `StakePool`: | Function | Returns | | --- | --- | | `get_ratio_reverse` | SUI per vSUI, with 9 decimals of precision | | `get_amount_out` | The output of a stake (`sui2lst: true`) or unstake (`false`) after fees | | `total_sui_supply`, `total_lst_supply` | Pool totals behind the exchange rate | See the [Move API reference](/docs/developer/liquid-staking-token/staking-api#id-3.-view-functions) for signatures. # Errors and limits (/docs/developer/liquid-staking-token/errors) A failed stake or unstake aborts the whole transaction, so no coin changes hands. The abort code tells you why. In a simulation it appears in `status.error`; on an executed transaction it appears in the effects. ## Common aborts [#common-aborts] | Code | Name | Cause | What to do | | --- | --- | --- | --- | | `30003` | `EUnderMinAmount` | Stake or unstake below 0.1 SUI | Raise the amount to at least `100_000_000` MIST | | `30000` | `EZeroMintAmount` | The amount would mint zero vSUI | Raise the amount | | `40000` | `ENotEnoughSuiInSuiPool` | Not enough SUI for an instant unstake | Check `maxInstantUnstake`, unstake less or try later | | `50001` | `EIncompatibleVersion` | The call went to an outdated package | Use the latest package from the [deployment table](/docs/developer/contracts) | | `50002` | `EIncompatiblePaused` | The pool is paused | Retry later | The full list, including operator and admin errors, is in the [Move API reference](/docs/developer/liquid-staking-token/staking-api#error-codes). ## Limits and fees [#limits] | Limit | Value | | --- | --- | | Minimum stake or unstake | 0.1 SUI | | Stake fee | Set by the pool, at most 5% | | Unstake fee | Set by the pool, at most 5% | | Reward fee | A share of staking rewards, taken before they reach the exchange rate | The [staking app](https://www.volosui.com/stake) shows the current fees. The [liquid staking FAQ](/docs/guides/staking-faq#volo-staking-fees) explains them for users. ## Stats API failures [#api-failures] The stats API is a read-only display source. Treat a non-2xx response, a network error or a `lastUpdated` older than a few minutes as “data unavailable”. Never use it to decide amounts inside a transaction; use `get_amount_out` on-chain instead. # Liquid Staking (/docs/developer/liquid-staking-token) vSUI is the liquid staking token minted by Volo’s staking pool. The pool delegates staked SUI across a set of Sui validators and mints vSUI for the depositor. vSUI is a standard Sui `Coin`, so you can hold it, transfer it or pass it straight into another protocol in the same [programmable transaction block](https://docs.sui.io/concepts/transactions/prog-txn-blocks) (PTB). ## How staking works [#how-staking-works] ```mermaid sequenceDiagram participant App as Your app participant Wallet as User wallet participant Pool as Volo StakePool participant Validators as Sui validators App->>Wallet: PTB calling stake_pool::stake(SUI) Wallet->>Pool: signed transaction Pool->>Validators: delegate SUI by validator weight Pool-->>Wallet: vSUI minted at the exchange rate Note over Pool,Validators: rewards accrue every epoch and raise the rate Wallet->>Pool: stake_pool::unstake(vSUI) Pool-->>Wallet: SUI at the current rate, instantly while liquidity allows ``` | Step | Where it runs | What happens | | --- | --- | --- | | Stake | `stake_pool::stake` | Takes a `Coin`, charges any stake fee and returns a `Coin` (vSUI) at the current exchange rate. | | Earn | Sui validators | Staking rewards accrue to the pool each epoch. Your vSUI balance stays the same; each vSUI becomes worth more SUI. | | Unstake | `stake_pool::unstake` | Burns vSUI and returns `Coin` at the current rate, less any unstake fee. Redemption is instant while the pool holds enough SUI. | vSUI is **reward-bearing**, not rebasing. Its value comes from the exchange rate: $$ \text{Exchange Rate} = \frac{\text{Total SUI (Principal + Rewards)}}{\text{Total vSUI Supply}} $$ ## Token and objects [#token-reference] | Item | Value | | --- | --- | | Name and symbol | Volo Staked SUI, `vSUI` | | Decimals | `9` (1 vSUI = 1,000,000,000 base units) | | Coin type | `0x549e8b69270defbfafd4f94e17ec44cdbdd99820b33bda2278dea3b9a32d3f55::cert::CERT` | | Coin metadata | `0x8b0a4eab0d51cd298b87c2f26a5b20ccd70a0628dae2a38655d67405d20c3356` | | Package to call (V2) | `0x68d22cf8bdbcd11ecba1e094922873e4080d4d11133e2443fddda0bfd11dae20` | | `StakePool` (shared) | `0x2d914e23d82fedef1b5f56a32d5c64bdcc3087ccfea2b4d6ea51a71f587840e5` | | `Metadata` (shared) | `0x680cd26af32b2bde8d3361e804c53ec1d1cfe24c7f039eb7f549e8dfde389a60` | | Sui system state | `0x5` | The examples in this section share these IDs: ```ts title="constants.ts" export const VOLO = { // Latest package: Move calls go here. Changes when the contracts are upgraded. packageId: '0x68d22cf8bdbcd11ecba1e094922873e4080d4d11133e2443fddda0bfd11dae20', // Shared objects passed to stake and unstake stakePool: '0x2d914e23d82fedef1b5f56a32d5c64bdcc3087ccfea2b4d6ea51a71f587840e5', metadata: '0x680cd26af32b2bde8d3361e804c53ec1d1cfe24c7f039eb7f549e8dfde389a60', // Coin type: always the original package ID vsuiType: '0x549e8b69270defbfafd4f94e17ec44cdbdd99820b33bda2278dea3b9a32d3f55::cert::CERT', } as const; ``` The coin type always uses the **original** package ID. Move calls go to the **latest** package, which changes when the contracts are upgraded; check the [deployment table](/docs/developer/contracts) before you ship. ## Ways to integrate [#ways-to-integrate] | Option | Use it when | Entry points | | --- | --- | --- | | Move calls in a PTB | You stake or unstake from a dApp or backend, or compose vSUI with other protocols. | [`stake`](/docs/developer/liquid-staking-token/stake), [`unstake`](/docs/developer/liquid-staking-token/unstake) | | Stats API | You display the rate, APY or pool size, in any language. | [`GET /api/volo/stats`](/docs/developer/liquid-staking-token/data) | | Swap routing | You want vSUI at market price instead of minting it. | The Astros aggregator SDK routes through the `vSui` liquidity source. | ## Core Move functions [#core-functions] | Function | Purpose | | --- | --- | | `stake(pool, metadata, system, Coin): Coin` | Stake SUI and return vSUI to the PTB. | | `unstake(pool, metadata, system, Coin): Coin` | Redeem vSUI and return SUI to the PTB. | | `stake_entry` / `unstake_entry` | Same, but transfer the result to the sender. | | `get_amount_out(pool, metadata, amount_in, sui2lst): u64` | Quote the output after fees. | | `get_ratio_reverse(pool, metadata): u64` | SUI per vSUI, with 9 decimals of precision. | Every function, event and error code is in the [Move API reference](/docs/developer/liquid-staking-token/staking-api). ## Requirements [#requirements] - `@mysten/sui` 2.x. The examples use 2.39.1 with the gRPC client. - An ES module environment: Node.js with `"type": "module"` or a bundler. - No API key. The stats API and the Move calls are public. Stake 1 SUI and simulate it before signing. A reusable builder that returns the vSUI coin. Check instant liquidity and redeem for SUI. Live rate, APY and validators from the stats API. # Liquid staking quickstart (/docs/developer/liquid-staking-token/quickstart) This script reads the current exchange rate, builds a transaction that stakes 1 SUI and simulates it against mainnet. It never signs, so you can run it with any address that holds at least 1 SUI. Install the Sui TypeScript SDK. The examples use ES modules and top-level `await`. ```npm npm install @mysten/sui@2.39.1 ``` `packageId` is the package Move calls go to; `stakePool` and `metadata` are the shared objects every stake and unstake call takes. See [Token and objects](/docs/developer/liquid-staking-token#token-reference) for where each ID comes from. The gRPC client is used for simulation. `sender` is the address that will own the SUI and sign later. The [stats API](/docs/developer/liquid-staking-token/data) returns the exchange rate in SUI per vSUI, so 1 SUI buys about `1 / exchangeRate` vSUI before fees. Amounts in transactions are base units: SUI has 9 decimals, so 1 SUI is `1_000_000_000` MIST. The minimum stake is 0.1 SUI. Split the amount from the gas coin, call `stake_pool::stake` and transfer the vSUI it returns. Because `stake` returns the coin to the PTB, you could pass it to another protocol here instead. Pass the system state as `tx.object('0x5')`. With `@mysten/sui`’s gRPC transaction resolver, `tx.object.system()` can fail to build. `simulateTransaction` runs the transaction against current chain state without submitting it. A failed simulation returns `FailedTransaction` with the Move abort in `status.error`. Compare the simulated vSUI with the estimate. Then sign and execute the same `tx` with your wallet adapter or keypair. ```ts title="stake.ts" import { SuiGrpcClient } from '@mysten/sui/grpc'; import { Transaction } from '@mysten/sui/transactions'; const VOLO = { packageId: '0x68d22cf8bdbcd11ecba1e094922873e4080d4d11133e2443fddda0bfd11dae20', stakePool: '0x2d914e23d82fedef1b5f56a32d5c64bdcc3087ccfea2b4d6ea51a71f587840e5', metadata: '0x680cd26af32b2bde8d3361e804c53ec1d1cfe24c7f039eb7f549e8dfde389a60', vsuiType: '0x549e8b69270defbfafd4f94e17ec44cdbdd99820b33bda2278dea3b9a32d3f55::cert::CERT', }; const client = new SuiGrpcClient({ network: 'mainnet', baseUrl: 'https://fullnode.mainnet.sui.io:443', }); // The address that will sign. It must hold at least 1 SUI plus gas. const sender = process.env.SUI_ADDRESS!; // Read the current exchange rate to estimate the output const stats = await fetch('https://open-api.naviprotocol.io/api/volo/stats'); const { data } = (await stats.json()) as { data: { exchangeRate: number } }; const amount = 1_000_000_000n; // 1 SUI in MIST const tx = new Transaction(); tx.setSender(sender); const [sui] = tx.splitCoins(tx.gas, [amount]); const [vsui] = tx.moveCall({ target: `${VOLO.packageId}::stake_pool::stake`, arguments: [tx.object(VOLO.stakePool), tx.object(VOLO.metadata), tx.object('0x5'), sui], }); tx.transferObjects([vsui], sender); const result = await client.core.simulateTransaction({ transaction: tx, include: { balanceChanges: true }, }); if (result.$kind === 'FailedTransaction') { throw new Error(`Simulation failed: ${result.FailedTransaction.status.error?.message}`); } const received = result.Transaction.balanceChanges.find( (change) => change.address === sender && change.coinType === VOLO.vsuiType, ); console.log('Estimated vSUI:', Number(amount) / 1e9 / data.exchangeRate); console.log('Simulated vSUI:', Number(received?.amount ?? 0) / 1e9); ``` ## Run it [#run-it] ```bash SUI_ADDRESS=0xYOUR_ADDRESS npx tsx stake.ts ``` Sample output, verified on December 1, 2026. The estimate uses the API rate and the simulation applies any stake fee: ```text Estimated vSUI: 0.9342138639054488 Simulated vSUI: 0.934213863 ``` The amount is below the 0.1 SUI minimum. Stake at least `100_000_000` MIST. `50001` (`EIncompatibleVersion`) means the call went to an outdated package; use the latest package from the [deployment table](/docs/developer/contracts). `50002` (`EIncompatiblePaused`) means the pool is paused; try again later. The transaction used `tx.object.system()`. Pass `tx.object('0x5')` instead. ## Next steps [#next-steps] Wrap the call in a reusable builder. Redeem vSUI for SUI. Handle aborts, minimums and fees. # Stake SUI (/docs/developer/liquid-staking-token/stake) `stake_pool::stake` takes a `Coin` and returns the minted vSUI as a `Coin`. Wrapping it in a small builder keeps the object IDs in one place and lets you decide what happens to the vSUI. ```ts title="stake.ts" import { Transaction, type TransactionObjectArgument } from '@mysten/sui/transactions'; import { VOLO } from './constants'; const MIN_STAKE = 100_000_000n; // 0.1 SUI /** Appends a stake call and returns the minted vSUI coin. */ export function stakeSui(tx: Transaction, sui: TransactionObjectArgument) { const [vsui] = tx.moveCall({ target: `${VOLO.packageId}::stake_pool::stake`, arguments: [tx.object(VOLO.stakePool), tx.object(VOLO.metadata), tx.object('0x5'), sui], }); return vsui; } /** Stakes `amount` MIST from the gas coin and sends the vSUI to `owner`. */ export function buildStake(owner: string, amount: bigint) { if (amount < MIN_STAKE) throw new Error('Stake at least 0.1 SUI'); const tx = new Transaction(); tx.setSender(owner); const [sui] = tx.splitCoins(tx.gas, [amount]); const vsui = stakeSui(tx, sui); tx.transferObjects([vsui], owner); return tx; } ``` `VOLO` comes from [`constants.ts`](/docs/developer/liquid-staking-token#token-reference). Sign and execute the returned transaction with your wallet adapter or keypair. ## Use the vSUI in the same transaction [#compose] `stakeSui` returns the vSUI coin as a transaction result. Instead of transferring it, pass it to any Move call that accepts `Coin`, such as a lending deposit or a liquidity position. Every call then succeeds or fails together. To stake a coin other than the gas coin, for example SUI produced by an earlier call, pass that coin as `sui`. ## Rules [#rules] | Rule | Detail | | --- | --- | | Minimum | 0.1 SUI (`100_000_000` MIST) per call. Smaller amounts abort with `EUnderMinAmount` (30003). | | Output | About `amount / exchangeRate` vSUI, less any stake fee. Quote it exactly with `get_amount_out`. | | Fees | The stake fee is set by the pool and capped at 5% in the contract. | | Paused pool | Staking aborts with `EIncompatiblePaused` (50002) while the pool is paused. | | Entry variant | `stake_entry` does the same and transfers the vSUI to the sender. Use `stake` when you need the coin later in the PTB. | See [Errors and limits](/docs/developer/liquid-staking-token/errors) for every abort you are likely to meet. # Liquid staking Move API (/docs/developer/liquid-staking-token/staking-api) ## Volo Staking API Reference [#volo-staking-api-reference] **Source Code**: [https://github.com/Sui-Volo/volo-smart-contracts/tree/main/liquid_staking](https://github.com/Sui-Volo/volo-smart-contracts/tree/main/liquid_staking) **V2 mainnet package**: `0x68d22cf8bdbcd11ecba1e094922873e4080d4d11133e2443fddda0bfd11dae20` The vSUI coin type ends in `::cert::CERT`. Check the [deployment table](/docs/developer/contracts) for the original package ID and deployed version before integrating. For live pool data and tested stake and unstake PTBs, see [Liquid Staking](/docs/developer/liquid-staking-token). *** ### Table of Contents [#table-of-contents] 1. [Data Structures](#id-1.-data-structures) 2. [User Functions](#id-2.-user-functions) 3. [View Functions](#id-3.-view-functions) 4. [Admin Functions](#id-4.-admin-functions) 5. [Operator Functions](#id-5.-operator-functions) 6. [Events](#id-6.-events) 7. [Constants & Error Codes](#id-7.-constants-and-error-codes) *** ### 1. Data Structures [#id-1.-data-structures] #### StakePool [#stakepool] ```move public struct StakePool has key, store { id: UID, fee_config: FeeConfig, fees: Balance, boosted_balance: Balance, boosted_reward_amount: u64, accrued_reward_fees: u64, validator_pool: ValidatorPool, manage: Manage, extra_fields: Bag } ``` | Field | Type | Description | | ----------------------- | --------------- | ------------------------------------------------ | | `fee_config` | `FeeConfig` | Fee configuration | | `fees` | `Balance` | Accumulated protocol fees (stake + unstake fees) | | `boosted_balance` | `Balance` | Deposited boosted reward balance | | `boosted_reward_amount` | `u64` | Amount to distribute per epoch | | `accrued_reward_fees` | `u64` | Accumulated reward fees (not yet collected) | | `validator_pool` | `ValidatorPool` | Validator management | | `manage` | `Manage` | Version and pause state | *** #### ValidatorPool [#validatorpool] ```move public struct ValidatorPool has store { sui_pool: Balance, validator_infos: vector, total_sui_supply: u64, last_refresh_epoch: u64, total_weight: u64, manage: Manage, extra_fields: Bag } ``` | Field | Type | Description | | -------------------- | ----------------------- | ------------------------------------------ | | `sui_pool` | `Balance` | Buffer for stake/unstake operations | | `validator_infos` | `vector` | All validator information | | `total_sui_supply` | `u64` | Total SUI managed (sui\_pool + all stakes) | | `last_refresh_epoch` | `u64` | Last epoch when pool was refreshed | | `total_weight` | `u64` | Sum of all validator weights | *** #### ValidatorInfo [#validatorinfo] ```move public struct ValidatorInfo has store { staking_pool_id: ID, validator_address: address, active_stake: Option, inactive_stake: Option, exchange_rate: PoolTokenExchangeRate, total_sui_amount: u64, assigned_weight: u64, last_refresh_epoch: u64, extra_fields: Bag } ``` | Field | Type | Description | | ------------------- | --------------------------- | ---------------------------------- | | `staking_pool_id` | `ID` | Validator's staking pool ID | | `validator_address` | `address` | Validator address | | `active_stake` | `Option` | Active stake (earning rewards) | | `inactive_stake` | `Option` | Inactive stake (first epoch) | | `exchange_rate` | `PoolTokenExchangeRate` | Current exchange rate | | `total_sui_amount` | `u64` | Total SUI staked to this validator | | `assigned_weight` | `u64` | Weight for allocation | *** #### FeeConfig [#feeconfig] ```move public struct FeeConfig has store { stake_fee_bps: u64, unstake_fee_bps: u64, reward_fee_bps: u64, unstake_fee_redistribution_bps: u64, extra_fields: Bag } ``` | Field | Type | Max Value | Description | | -------------------------------- | ----- | ------------ | --------------------------------------- | | `stake_fee_bps` | `u64` | 500 (5%) | Fee on staking | | `unstake_fee_bps` | `u64` | 500 (5%) | Fee on unstaking | | `reward_fee_bps` | `u64` | 10000 (100%) | Performance fee on rewards | | `unstake_fee_redistribution_bps` | `u64` | 10000 (100%) | Portion of unstake fee returned to pool | *** #### Metadata\ [#metadata-less-than-cert-greater-than] ```move public struct Metadata has key, store { id: UID, version: u64, total_supply: Supply, } ``` Shared object storing the vSUI minting authority. *** #### Capability Structs [#capability-structs] ```move public struct AdminCap has key, store { id: UID } public struct OperatorCap has key, store { id: UID } ``` *** ### 2. User Functions [#id-2.-user-functions] #### stake\_entry [#stake_entry] Stake SUI and receive vSUI. ```move public entry fun stake_entry( self: &mut StakePool, metadata: &mut Metadata, system_state: &mut SuiSystemState, sui: Coin, ctx: &mut TxContext ) ``` **Parameters:** | Name | Type | Description | | -------------- | --------------------- | ----------------------------- | | `self` | `&mut StakePool` | The stake pool object | | `metadata` | `&mut Metadata` | vSUI metadata (shared object) | | `system_state` | `&mut SuiSystemState` | Sui system state (`0x5`) | | `sui` | `Coin` | SUI coin to stake | **Requirements:** * Pool must not be paused * SUI amount >= 0.1 SUI (100,000,000 MIST) **Emits:** `StakeEventExt` **TypeScript Example:** ```typescript import { Transaction } from '@mysten/sui/transactions'; const PACKAGE_ID = '0x68d22cf8bdbcd11ecba1e094922873e4080d4d11133e2443fddda0bfd11dae20'; const STAKE_POOL = ''; const CERT_METADATA = ''; const SUI_SYSTEM_STATE = '0x5'; async function stake(suiAmount: bigint) { const tx = new Transaction(); const [coin] = tx.splitCoins(tx.gas, [suiAmount]); tx.moveCall({ target: `${PACKAGE_ID}::stake_pool::stake_entry`, arguments: [ tx.object(STAKE_POOL), tx.object(CERT_METADATA), tx.object(SUI_SYSTEM_STATE), coin, ], }); return tx; } ``` *** #### stake [#stake] Non-entry version that returns the minted vSUI. ```move public fun stake( self: &mut StakePool, metadata: &mut Metadata, system_state: &mut SuiSystemState, sui: Coin, ctx: &mut TxContext ): Coin ``` **Returns:** `Coin` - The minted vSUI coin *** #### unstake\_entry [#unstake_entry] Redeem vSUI for SUI. ```move public entry fun unstake_entry( self: &mut StakePool, metadata: &mut Metadata, system_state: &mut SuiSystemState, cert: Coin, ctx: &mut TxContext ) ``` **Parameters:** | Name | Type | Description | | ------ | ------------ | ------------------- | | `cert` | `Coin` | vSUI coin to redeem | **Requirements:** * Pool must not be paused * vSUI amount >= 0.1 SUI equivalent **Emits:** `UnstakeEventExt` **TypeScript Example:** ```typescript async function unstake(vsuiObjectId: string) { const tx = new Transaction(); tx.moveCall({ target: `${PACKAGE_ID}::stake_pool::unstake_entry`, arguments: [ tx.object(STAKE_POOL), tx.object(CERT_METADATA), tx.object(SUI_SYSTEM_STATE), tx.object(vsuiObjectId), ], }); return tx; } ``` *** #### unstake [#unstake] Non-entry version that returns the redeemed SUI. ```move public fun unstake( self: &mut StakePool, metadata: &mut Metadata, system_state: &mut SuiSystemState, lst: Coin, ctx: &mut TxContext ): Coin ``` **Returns:** `Coin` - The redeemed SUI coin *** #### delegate\_stake\_entry [#delegate_stake_entry] Stake SUI with a preferred validator. ```move public entry fun delegate_stake_entry( self: &mut StakePool, metadata: &mut Metadata, system_state: &mut SuiSystemState, sui: Coin, v_address: address, ctx: &mut TxContext ) ``` **Parameters:** | Name | Type | Description | | ----------- | --------- | --------------------------- | | `v_address` | `address` | Preferred validator address | **Emits:** `DelegateStakeEvent` **Note:** This function behaves identically to `stake_entry` but additionally emits a `DelegateStakeEvent` with the validator address. The backend uses this event to adjust validator weights. *** #### rebalance [#rebalance] Rebalance stakes across validators according to weights. This is a permissionless function. ```move public fun rebalance( self: &mut StakePool, metadata: &mut Metadata, system_state: &mut SuiSystemState, ctx: &mut TxContext ) ``` **Emits:** `RebalanceEvent` **TypeScript Example:** ```typescript async function rebalance() { const tx = new Transaction(); tx.moveCall({ target: `${PACKAGE_ID}::stake_pool::rebalance`, arguments: [ tx.object(STAKE_POOL), tx.object(CERT_METADATA), tx.object(SUI_SYSTEM_STATE), ], }); return tx; } ``` *** #### refresh [#refresh] Update pool state if epoch has changed. Called automatically by stake/unstake. ```move public fun refresh( self: &mut StakePool, metadata: &Metadata, system_state: &mut SuiSystemState, ctx: &mut TxContext ): bool ``` **Returns:** `bool` - `true` if epoch rolled over and state was updated **Emits:** `EpochChangedEvent` (if epoch changed) *** ### 3. View Functions [#id-3.-view-functions] #### get\_ratio [#get_ratio] Returns how many vSUI you get per 1 SUI (in 1e9 precision). ```move public fun get_ratio(self: &StakePool, metadata: &Metadata): u64 ``` **Returns:** Ratio in 1e9 precision **Example:** If returns `950_000_000`, then 1 SUI = 0.95 vSUI *** #### get\_ratio\_reverse [#get_ratio_reverse] Returns how many SUI you get per 1 vSUI (in 1e9 precision). ```move public fun get_ratio_reverse(self: &StakePool, metadata: &Metadata): u64 ``` **Returns:** Ratio in 1e9 precision **Example:** If returns `1_052_631_579`, then 1 vSUI ≈ 1.053 SUI *** #### publish\_ratio [#publish_ratio] Emit ratio in V1 format (1e18 precision) for compatibility. ```move public fun publish_ratio(self: &StakePool, metadata: &Metadata) ``` *** #### get\_amount\_out [#get_amount_out] Calculate output amount after fees. ```move public fun get_amount_out( self: &StakePool, metadata: &Metadata, amount_in: u64, sui2lst: bool ): u64 ``` **Parameters:** | Name | Type | Description | | ----------- | ------ | ----------------------------------------- | | `amount_in` | `u64` | Input amount in MIST | | `sui2lst` | `bool` | `true` for SUI→vSUI, `false` for vSUI→SUI | **Returns:** Output amount after fees *** #### sui\_amount\_to\_lst\_amount [#sui_amount_to_lst_amount] Convert SUI amount to vSUI amount (no fees). ```move public fun sui_amount_to_lst_amount( self: &StakePool, metadata: &Metadata, sui_amount: u64 ): u64 ``` *** #### lst\_amount\_to\_sui\_amount [#lst_amount_to_sui_amount] Convert vSUI amount to SUI amount (no fees). ```move public fun lst_amount_to_sui_amount( self: &StakePool, metadata: &Metadata, lst_amount: u64 ): u64 ``` *** #### total\_sui\_supply [#total_sui_supply] Returns total SUI managed by the pool. ```move public fun total_sui_supply(self: &StakePool): u64 ``` *** #### total\_lst\_supply [#total_lst_supply] Returns total vSUI supply. ```move public fun total_lst_supply(metadata: &Metadata): u64 ``` *** #### validator\_pool [#validator_pool] Get reference to validator pool. ```move public fun validator_pool(self: &StakePool): &ValidatorPool ``` *** #### fee\_config [#fee_config] Get reference to fee configuration. ```move public fun fee_config(self: &StakePool): &FeeConfig ``` *** #### total\_fees [#total_fees] Returns total accumulated fees (stake fees + unstake fees + reward fees). ```move public fun total_fees(self: &StakePool): u64 ``` *** #### accrued\_reward\_fees [#accrued_reward_fees] Returns accumulated reward fees not yet collected. ```move public fun accrued_reward_fees(self: &StakePool): u64 ``` *** #### boosted\_balance [#boosted_balance] Returns remaining boosted reward balance. ```move public fun boosted_balance(self: &StakePool): u64 ``` *** #### ValidatorPool View Functions [#validatorpool-view-functions] ```move public fun sui_pool(self: &ValidatorPool): &Balance public fun validators(self: &ValidatorPool): &vector public fun total_weight(self: &ValidatorPool): u64 public fun validator_weights(self: &ValidatorPool): VecMap public fun validator_stake_amounts(self: &ValidatorPool): (VecMap, VecMap) public fun total_sui_supply(self: &ValidatorPool): u64 public fun last_refresh_epoch(self: &ValidatorPool): u64 public fun find_validator_index_by_address(self: &ValidatorPool, addr: address): Option ``` *** #### FeeConfig View Functions [#feeconfig-view-functions] ```move public fun stake_fee_bps(fees: &FeeConfig): u64 public fun unstake_fee_bps(fees: &FeeConfig): u64 public fun reward_fee_bps(fees: &FeeConfig): u64 public fun unstake_fee_redistribution_bps(fees: &FeeConfig): u64 ``` *** ### 4. Admin Functions [#id-4.-admin-functions] All admin functions require `AdminCap`. #### set\_paused [#set_paused] Pause or unpause the pool. ```move public fun set_paused(self: &mut StakePool, _: &AdminCap, paused: bool) ``` **Emits:** `SetPausedEvent` *** #### migrate\_version [#migrate_version] Migrate pool to current version. ```move public fun migrate_version(self: &mut StakePool, _: &AdminCap) ``` *** #### update\_stake\_fee [#update_stake_fee] Update stake fee. ```move public fun update_stake_fee(self: &mut StakePool, _: &AdminCap, fee: u64) ``` **Parameters:** * `fee`: Fee in BPS (max 500) **Emits:** `FeeUpdateEvent` *** #### update\_unstake\_fee [#update_unstake_fee] Update unstake fee. ```move public fun update_unstake_fee(self: &mut StakePool, _: &AdminCap, fee: u64) ``` **Parameters:** * `fee`: Fee in BPS (max 500) **Emits:** `FeeUpdateEvent` *** #### update\_reward\_fee [#update_reward_fee] Update reward fee (performance fee). ```move public fun update_reward_fee(self: &mut StakePool, _: &AdminCap, fee: u64) ``` **Parameters:** * `fee`: Fee in BPS (max 10000) **Emits:** `FeeUpdateEvent` *** #### update\_unstake\_fee\_redistribution [#update_unstake_fee_redistribution] Update unstake fee redistribution percentage. ```move public fun update_unstake_fee_redistribution(self: &mut StakePool, _: &AdminCap, fee: u64) ``` **Parameters:** * `fee`: Percentage in BPS (max 10000) **Emits:** `FeeUpdateEvent` *** #### update\_boosted\_reward\_amount [#update_boosted_reward_amount] Set the amount of boosted rewards to distribute per epoch. ```move public fun update_boosted_reward_amount(self: &mut StakePool, _: &AdminCap, amount: u64) ``` **Emits:** `BoostedRewardAmountUpdateEvent` *** #### collect\_fees [#collect_fees] Collect accumulated protocol fees. ```move public fun collect_fees( self: &mut StakePool, metadata: &mut Metadata, system_state: &mut SuiSystemState, _: &AdminCap, ctx: &mut TxContext ): Coin ``` **Returns:** `Coin` - All accumulated fees **Emits:** `CollectFeesEvent` *** #### mint\_operator\_cap [#mint_operator_cap] Mint a new OperatorCap. ```move public fun mint_operator_cap( self: &mut StakePool, _: &AdminCap, recipient: address, ctx: &mut TxContext ) ``` **Emits:** `MintOperatorCapEvent` *** ### 5. Operator Functions [#id-5.-operator-functions] All operator functions require `OperatorCap`. #### set\_validator\_weights [#set_validator_weights] Set validator weight allocation. ```move public fun set_validator_weights( self: &mut StakePool, metadata: &mut Metadata, system_state: &mut SuiSystemState, _: &OperatorCap, validator_weights: VecMap, ctx: &mut TxContext ) ``` **Parameters:** | Name | Type | Description | | ------------------- | ---------------------- | ---------------------------------- | | `validator_weights` | `VecMap` | Map of validator address to weight | **Constraints:** * Maximum 50 validators * Total weight <= 10,000 **Emits:** `ValidatorWeightsUpdateEvent` **TypeScript Example:** ```typescript import { bcs } from '@mysten/sui/bcs'; async function setValidatorWeights(weights: [string, number][]) { const tx = new Transaction(); // Serialize VecMap as vector of (address, u64) tuples const serialized = bcs.vector( bcs.tuple([bcs.Address, bcs.u64()]) ).serialize(weights); tx.moveCall({ target: `${PACKAGE_ID}::stake_pool::set_validator_weights`, arguments: [ tx.object(STAKE_POOL), tx.object(CERT_METADATA), tx.object(SUI_SYSTEM_STATE), tx.object(OPERATOR_CAP), tx.pure(serialized), ], }); return tx; } // Usage const weights: [string, number][] = [ ['0xvalidator1...', 5000], ['0xvalidator2...', 3000], ['0xvalidator3...', 2000], ]; await setValidatorWeights(weights); ``` *** #### deposit\_boosted\_balance [#deposit_boosted_balance] Deposit SUI as boosted rewards. ```move public fun deposit_boosted_balance( self: &mut StakePool, _: &OperatorCap, coin: &mut Coin, amount: u64, ctx: &mut TxContext ) ``` **Parameters:** | Name | Type | Description | | -------- | ---------------- | ------------------------ | | `coin` | `&mut Coin` | SUI coin to deposit from | | `amount` | `u64` | Amount to deposit | **Emits:** `DepositBoostedBalanceEvent` *** ### 6. Events [#id-6.-events] #### StakeEventExt [#stakeeventext] ```move public struct StakeEventExt has copy, drop { sui_amount_in: u64, // SUI staked lst_amount_out: u64, // vSUI received fee_amount: u64 // Stake fee charged } ``` #### UnstakeEventExt [#unstakeeventext] ```move public struct UnstakeEventExt has copy, drop { lst_amount_in: u64, // vSUI burned sui_amount_out: u64, // SUI received fee_amount: u64, // Unstake fee (to protocol) redistribution_amount: u64 // Unstake fee (returned to pool) } ``` #### EpochChangedEvent [#epochchangedevent] ```move public struct EpochChangedEvent has copy, drop { old_sui_supply: u64, // Previous total SUI new_sui_supply: u64, // New total SUI (after rewards) boosted_reward_amount: u64, // Boosted rewards distributed lst_supply: u64, // Current vSUI supply reward_fee: u64 // Reward fee charged } ``` #### DelegateStakeEvent [#delegatestakeevent] ```move public struct DelegateStakeEvent has copy, drop { v_address: address, // Preferred validator sui_amount_in: u64, // SUI staked lst_amount_out: u64 // vSUI received } ``` #### ValidatorWeightsUpdateEvent [#validatorweightsupdateevent] ```move public struct ValidatorWeightsUpdateEvent has copy, drop { validator_weights: VecMap } ``` #### RebalanceEvent [#rebalanceevent] ```move public struct RebalanceEvent has copy, drop { is_epoch_rolled_over: bool, // Whether epoch changed sender: address // Who triggered rebalance } ``` #### FeeUpdateEvent [#feeupdateevent] ```move public struct FeeUpdateEvent has copy, drop { field: String, // Fee field name old_value: u64, // Previous value new_value: u64 // New value } ``` #### CollectFeesEvent [#collectfeesevent] ```move public struct CollectFeesEvent has copy, drop { amount: u64 // Total fees collected } ``` #### SetPausedEvent [#setpausedevent] ```move public struct SetPausedEvent has copy, drop { paused: bool } ``` #### MintOperatorCapEvent [#mintoperatorcapevent] ```move public struct MintOperatorCapEvent has copy, drop { recipient: address } ``` #### DepositBoostedBalanceEvent [#depositboostedbalanceevent] ```move public struct DepositBoostedBalanceEvent has copy, drop { before_balance: u64, after_balance: u64 } ``` #### BoostedRewardAmountUpdateEvent [#boostedrewardamountupdateevent] ```move public struct BoostedRewardAmountUpdateEvent has copy, drop { old_value: u64, new_value: u64 } ``` *** ### 7. Constants & Error Codes [#id-7.-constants-and-error-codes] #### Constants [#constants] These are V2 contract constants. The [staking interface](/docs/guides/staking-faq#sui-staking-limits) can enforce a higher minimum. | Constant | Value | Description | | ----------------------- | ------------- | ----------------------------------- | | `SUI_MIST` | 1,000,000,000 | 1 SUI in MIST | | `MIN_STAKE_AMOUNT` | 100,000,000 | Minimum stake/unstake (0.1 SUI) | | `MIN_STAKE_THRESHOLD` | 1,000,000,000 | Minimum stake per validator (1 SUI) | | `MAX_VALIDATORS` | 50 | Maximum validators | | `MAX_TOTAL_WEIGHT` | 10,000 | Maximum sum of weights | | `DEFAULT_WEIGHT` | 100 | Default weight for new validators | | `MAX_STAKE_FEE_BPS` | 500 | Maximum stake fee (5%) | | `MAX_UNSTAKE_FEE_BPS` | 500 | Maximum unstake fee (5%) | | `MAX_BPS` | 10,000 | Maximum reward fee (100%) | | `BPS_MULTIPLIER` | 10,000 | Basis points multiplier | | `VERSION` | 2 | Current contract version | | `ACCEPTABLE_MIST_ERROR` | 10 | Allowed rounding error | #### Error Codes [#error-codes] | Module | Code | Name | Description | | ---------------- | ----- | ---------------------------- | --------------------------- | | `fee_config` | 20001 | `EInvalidFee` | Fee exceeds maximum | | `stake_pool` | 30000 | `EZeroMintAmount` | Cannot mint zero vSUI | | `stake_pool` | 30001 | `ERatio` | Ratio invariant violated | | `stake_pool` | 30002 | `EZeroSupply` | Zero supply error | | `stake_pool` | 30003 | `EUnderMinAmount` | Below minimum amount | | `validator_pool` | 40000 | `ENotEnoughSuiInSuiPool` | Insufficient SUI | | `validator_pool` | 40001 | `ENotActiveValidator` | Validator not active | | `validator_pool` | 40002 | `ETooManyValidators` | Exceeds max validators | | `validator_pool` | 40003 | `EValidatorAlreadyExists` | Validator exists | | `validator_pool` | 40004 | `EValidatorNotFound` | Validator not found | | `validator_pool` | 40005 | `EInvalidValidatorWeight` | Invalid weight | | `validator_pool` | 40006 | `EInvalidValidatorWeightSum` | Weight sum mismatch | | `validator_pool` | 40007 | `EInvalidValidatorSize` | Invalid validator size | | `validator_pool` | 40008 | `EMaxTotalWeight` | Total weight exceeds max | | `validator_pool` | 40009 | `ETotalSuiSupplyChanged` | Supply changed unexpectedly | | `manage` | 50001 | `EIncompatibleVersion` | Version mismatch | | `manage` | 50002 | `EIncompatiblePaused` | Pool is paused | | `cert` | 1 | `E_INCOMPATIBLE_VERSION` | Metadata version mismatch | # Staking pool design (/docs/developer/liquid-staking-token/staking-design) *** ### 1. Introduction [#id-1.-introduction] Volo Liquid Staking provides a decentralized liquid staking solution on Sui. Key features include: * **Instant Unstaking**: Immediate redemption of staked SUI with no unbonding period * **Decentralized Rewards**: Fully on-chain reward calculation * **Fee Rebate Mechanism**: Redistributable unstaking fees that benefit remaining stakers * **Weight-Based Delegation**: Flexible validator management through weight allocation *** ### 2. How It Works [#id-2.-how-it-works] #### User Actions [#user-actions] Users interact with Volo Staking through two simple actions: | Action | Input | Output | | ----------- | ----- | ------ | | **Stake** | SUI | vSUI | | **Unstake** | vSUI | SUI | #### Yield Source [#yield-source] Volo Staking generates yield from **native Sui validator staking rewards**. The protocol delegates user deposits to a set of validators on the Sui network, which earn staking rewards each epoch. #### Reward Mechanism [#reward-mechanism] vSUI is a **reward-bearing token**. Instead of distributing rewards directly, the value of vSUI increases over time relative to SUI through the `Exchange_Rate`: $$ \text{Exchange Rate} = \frac{\text{Total SUI (Principal + Rewards)}}{\text{Total vSUI Supply}} $$ **Example:** * Day 1: Exchange rate = 1.00 → 1 vSUI = 1 SUI * Day 30: Exchange rate = 1.02 → 1 vSUI = 1.02 SUI In this example, one vSUI represents 1.02 SUI on day 30, before any redemption fee. The realized amount depends on the exchange rate and fees at redemption. *** ### 3. Key Features [#id-3.-key-features] #### 3.1 Instant Liquidity [#id-3.1-instant-liquidity] SIP-33 supports redemption within the current epoch. The actual transaction is subject to the state and liquidity of the pool. #### 3.2 Decentralized Reward Calculation [#id-3.2-decentralized-reward-calculation] Rewards are calculated entirely on-chain by reading validator exchange rates directly from the Sui system state. #### 3.3 Validator Weight Management [#id-3.3-validator-weight-management] The protocol distributes SUI across multiple validators based on configurable weights: * Maximizes decentralization and security * Allows dynamic rebalancing based on validator performance * Supports up to 50 validators #### 3.4 Fee Structure [#id-3.4-fee-structure] | Fee Type | Description | | ----------- | ---------------------------------- | | Stake Fee | Fee charged when staking SUI | | Unstake Fee | Fee charged when redeeming vSUI | | Reward Fee | Performance fee on staking rewards | A portion of the unstake fee can be redistributed back to the pool, generating extra yield for remaining stakers. #### 3.5 Boosted Rewards [#id-3.5-boosted-rewards] The protocol can deposit additional SUI as boosted rewards to provide extra APY beyond the base staking yield. #### 3.6 Slashing Protection [#id-3.6-slashing-protection] In Sui's staking mechanism, a validator who receives a score of 0 from two-thirds of its peers will have its rewards slashed. Causes for slashing include: * Low operational performance * Malicious behavior * Poor community membership **Volo strictly monitors validator selection and status to minimize slashing risk.** The protocol continuously evaluates validator performance and adjusts weights accordingly to protect user funds. *** ### 4. Architecture Overview [#id-4.-architecture-overview] ``` ┌─────────────────────────────────────────────────────────────┐ │ StakePool │ │ │ │ ┌─────────────────────────────────────────────────────┐ │ │ │ ValidatorPool │ │ │ │ │ │ │ │ Validator A ──┬── Weight: 40% │ │ │ │ Validator B ──┼── Weight: 35% │ │ │ │ Validator C ──┴── Weight: 25% │ │ │ │ │ │ │ └─────────────────────────────────────────────────────┘ │ │ │ │ Fee Config │ Boosted Rewards │ Protocol Fees │ └─────────────────────────────────────────────────────────────┘ │ │ ▼ ▼ ┌─────────────────┐ ┌─────────────────┐ │ Metadata │ │ SuiSystemState │ │ (vSUI Supply) │ │ (Validators) │ └─────────────────┘ └─────────────────┘ ``` *** ### 5. Access Control [#id-5.-access-control] | Role | Permissions | | ------------ | ------------------------------------------------- | | **User** | Stake, Unstake, Trigger Rebalance | | **Operator** | Set validator weights, Deposit boosted rewards | | **Admin** | Update fees, Pause/unpause, Collect protocol fees | *** See the [liquid staking Move API](/docs/developer/liquid-staking-token/staking-api) for types, functions, events and error codes. # Unstake vSUI (/docs/developer/liquid-staking-token/unstake) `stake_pool::unstake` burns a `Coin` and returns SUI as a `Coin` at the current exchange rate. Redemption is instant while the pool holds enough SUI, which the stats API reports as `maxInstantUnstake`. ```ts title="unstake.ts" import { Transaction, coinWithBalance, type TransactionObjectArgument } from '@mysten/sui/transactions'; import { VOLO } from './constants'; /** Appends an unstake call and returns the redeemed SUI coin. */ export function unstakeVsui(tx: Transaction, vsui: TransactionObjectArgument) { const [sui] = tx.moveCall({ target: `${VOLO.packageId}::stake_pool::unstake`, arguments: [tx.object(VOLO.stakePool), tx.object(VOLO.metadata), tx.object('0x5'), vsui], }); return sui; } /** Redeems `amount` vSUI base units from `owner` and sends the SUI back. */ export async function buildUnstake(owner: string, amount: bigint) { // Redemption is instant only while the pool holds enough SUI const response = await fetch('https://open-api.naviprotocol.io/api/volo/stats'); const { data } = (await response.json()) as { data: { exchangeRate: number; maxInstantUnstake: string } }; const expectedSui = (Number(amount) / 1e9) * data.exchangeRate; if (expectedSui > Number(data.maxInstantUnstake)) throw new Error('Not enough instant liquidity'); const tx = new Transaction(); tx.setSender(owner); // coinWithBalance selects and merges the owner's vSUI coins const vsui = coinWithBalance({ type: VOLO.vsuiType, balance: amount }); const sui = unstakeVsui(tx, vsui); tx.transferObjects([sui], owner); return tx; } ``` `coinWithBalance` selects and merges the owner’s vSUI coins at build time, which is why the transaction needs a sender. To unstake a vSUI coin produced earlier in the same PTB, pass that coin to `unstakeVsui` instead. ## Rules [#rules] | Rule | Detail | | --- | --- | | Minimum | Each unstake must be worth at least 0.1 SUI. | | Output | About `amount × exchangeRate` SUI, less any unstake fee. Quote it exactly with `get_amount_out`. | | Fees | The unstake fee is capped at 5% in the contract. Part of it can be returned to the pool for the remaining stakers. | | Liquidity | If the pool cannot cover the amount, the call aborts with `ENotEnoughSuiInSuiPool` (40000). Unstake less, or try later. | | Paused pool | Unstaking aborts with `EIncompatiblePaused` (50002) while the pool is paused. | | Entry variant | `unstake_entry` does the same and transfers the SUI to the sender. | Users who only want to exit a position can also [unstake in the Volo app](/docs/guides/stake-and-unstake#unstake-sui). # Liquid staking audit reports (/docs/developer/staking-audits) ## Reports [#reports] | Auditor | Date | Scope | Report | | --- | --- | --- | --- | | Veridise | May 2025 | Liquid staking V2 increment | [PDF](/audits/Volo_V2_Increment_Veridise_2025.pdf) | | MoveBit | May 2025 | Liquid staking V2 increment | [PDF](/audits/Volo_V2_Increment_Movebit_2025.pdf) | The [contract repository audit index](https://github.com/Sui-Volo/volo-smart-contracts/blob/main/audit/README.md) lists the scope and package reviewed. See the [contract reference](/docs/developer/contracts) for deployment versions. For the Volo Vault contracts, see the [vault audit reports](/docs/developer/vault-audits). # Vault audit reports (/docs/developer/vault-audits) | Auditor | Review date | Scope | Report | | --- | --- | --- | --- | | Veridise | July 2025 | Full vault review at commit `48b4fedc9b99cb378fe3237b80f10611fcb3d0fe` | [PDF](/audits/Vault_Full_Audit_Veridise_2025.pdf) | | Certora | 2025 | Full review of the Volo Vault package | [PDF](/audits/Vault_Full_Audit_Certora_2025.pdf) | | Veridise | 25–31 March 2026, report V3 dated 27 July 2026 | V1.3 withdraw-and-swap requests and deposit cap. A separate review of PR #27 covers multi-market NAVI positions. | [PDF](/audits/Vault_V1.3_Audit_Veridise_2026.pdf) | The V1.3 report covers the release that preceded the September 2026 migration to the Pyth oracle. The [contract repository audit index](https://github.com/Sui-Volo/volo-smart-contracts/blob/main/audit/README.md) records the precise audit scope. Compare it with the [deployed version](/docs/developer/contracts). For the vSUI contracts, see the [liquid staking audit reports](/docs/developer/staking-audits). # Vault architecture (/docs/developer/vault/architecture) A curator configures the strategy for a vault. The vault contracts account for its assets and shares as the curator allocates or rebalances positions. ![Original Volo diagram connecting the vault’s deposit and withdrawal flow to vault state and strategy operations](/gitbook/16f694d406-image-1-.png) On Sui, a programmable transaction block (PTB) can combine several Move calls in one transaction. The design uses PTBs to compose strategy-specific operations. ![Original transaction diagram showing operations grouped in a programmable transaction block](/gitbook/462e0973a5-image-2-.png) Follow the [vault operations reference](/docs/developer/vault/operations) to see how deposit and withdrawal requests are submitted, cancelled and settled on-chain. The [Move package reference](/docs/developer/contracts) points to the deployment records. # Deposit (/docs/developer/vault/deposit) A Volo deposit is a request. The coin moves into the vault when the user signs, and shares are issued at the share price when the operator settles the request. ```ts title="deposit.ts" import { Transaction } from '@mysten/sui/transactions'; import { depositPTB, getVault, isVaultSdkError, type Vault } from '@naviprotocol/vault'; export async function buildDeposit(vaultId: string, owner: string, amount: string) { const vault: Vault = await getVault(vaultId); if (vault.source !== 'volo') throw new Error('Not a Volo vault'); const tx = new Transaction(); tx.setSender(owner); try { // amount is a decimal string in the deposit coin, for example '25.5' const { requestId } = await depositPTB(tx, vault, owner, amount); return { tx, requestId }; } catch (error) { if (isVaultSdkError(error) && error.code === 'DEPOSIT_BELOW_MINIMUM') { throw new Error(`Deposit at least ${vault.minInvestment} ${vault.assets.baseCoin.symbol}`); } throw error; } } ``` ## What depositPTB does [#what-it-does] 1. Checks the vault is open (`VAULT_NOT_OPEN`), the amount is at least `minInvestment` (`DEPOSIT_BELOW_MINIMUM`) and within the remaining capacity (`DEPOSIT_CAP_EXCEEDED`). No transaction is built if a check fails. 2. Selects and merges the owner’s coins of the deposit type. 3. Adds the deposit request and transfers the receipt, and any change coin, back to the owner. 4. Returns `{ receipt, requestId, charge }` as transaction handles. ## Compose a deposit [#compose] | Need | Option | | --- | --- | | Deposit a coin produced earlier in the PTB | Pass the coin as `amount` together with `{ coin }`; the amount is then raw base units. | | Route the receipt yourself | Pass `{ disableAutoTransfer: true }` and transfer or use `receipt` and the change coin `charge`. | | Pay from the gas coin | Pass `{ useGasCoin: true }` for SUI deposits. | ## What the user should know [#user-facing] - The deposit is pending until settlement and earns nothing until then. It can be [cancelled](/docs/developer/vault/pending-requests) after a short lock. - A deposit fee, if the vault charges one, is deducted at settlement. See [fees](/docs/guides/vault-user-guide#fees). - A new deposit restarts the receipt’s withdrawal lock. # Errors (/docs/developer/vault/errors) Every SDK failure throws a `VaultSdkError` with a stable `code`, a `message` and a `details` object. The message is for logs and can change; branch on `code`. ```ts title="errors.ts" import { Transaction } from '@mysten/sui/transactions'; import { depositPTB, isVaultSdkError, type Vault } from '@naviprotocol/vault'; export async function tryDeposit(vault: Vault, owner: string, amount: string) { try { const tx = new Transaction(); await depositPTB(tx, vault, owner, amount); return { ok: true as const, tx }; } catch (error) { if (!isVaultSdkError(error)) throw error; switch (error.code) { case 'DEPOSIT_BELOW_MINIMUM': case 'DEPOSIT_CAP_EXCEEDED': case 'INSUFFICIENT_BALANCE': return { ok: false as const, reason: 'Choose a different amount', code: error.code }; case 'VAULT_NOT_OPEN': return { ok: false as const, reason: 'Deposits are closed', code: error.code }; case 'RATE_LIMITED': case 'API_REQUEST_FAILED': case 'CHAIN_QUERY_FAILED': return { ok: false as const, reason: 'Temporary failure, retry later', code: error.code }; default: throw error; } } } ``` ## Error codes [#codes] | Group | Codes | What to do | | --- | --- | --- | | Temporary | `RATE_LIMITED`, `API_REQUEST_FAILED`, `CHAIN_QUERY_FAILED` | Retry with backoff | | State | `VAULT_NOT_OPEN`, `RECEIPT_UNAVAILABLE`, `SLIPPAGE_EXCEEDED` | Retry after the vault or receipt state changes | | Input | `INVALID_AMOUNT`, `INVALID_ARGUMENT`, `INVALID_REQUEST_TYPE`, `VAULT_NOT_FOUND`, `VAULT_UNSUPPORTED`, `INSUFFICIENT_BALANCE`, `DEPOSIT_BELOW_MINIMUM`, `DEPOSIT_CAP_EXCEEDED` | Fix the request | | Unexpected | `VAULT_CONFIG_INVALID`, `CHAIN_DATA_INVALID`, `API_RESPONSE_INVALID`, `UNSUPPORTED_CONFIG_VERSION` | Report it | `details` can include `vaultId`, `owner`, `amount`, `uncoveredShares` and `excludedReceipts`, depending on the error. ## Move aborts [#move-aborts] A transaction that fails on-chain, for example a cancellation the operator beat to settlement, aborts with a Move code. Pass the error to `parseMoveAbort` to read the module and name, or to `asVaultSdkError` to map it to a `VaultSdkError` code. For example, `5022` (`ERR_VAULT_NOT_NORMAL`) becomes `VAULT_NOT_OPEN`. The vault contract’s request rules and events are in the [vault operations reference](/docs/developer/vault/operations). # Vault (/docs/developer/vault) [`@naviprotocol/vault`](https://www.npmjs.com/package/@naviprotocol/vault) is the TypeScript SDK for Volo Vaults and NAVI vaults on Sui. It finds vaults, reads positions and builds deposit, withdrawal and cancellation transactions as [programmable transaction blocks](https://docs.sui.io/concepts/transactions/prog-txn-blocks) (PTBs). Your application signs them with the user’s wallet; the SDK never signs or executes anything. ## How a Volo vault settles [#how-volo-vaults-settle] Volo vaults are **request-based**. A deposit or withdrawal creates a request on the vault, and an operator executes pending requests together during the vault’s settlement window. ```mermaid sequenceDiagram participant App as Your app participant Wallet as User wallet participant Vault as Volo vault participant Operator as Vault operator App->>Wallet: PTB from depositPTB or withdrawPTB Wallet->>Vault: signed transaction creates a request Note over Vault: pending: cancellable after a short lock Operator->>Vault: settle requests in the window Vault-->>Wallet: shares to the receipt, or the asset to the owner ``` | | Volo vaults | NAVI vaults | | --- | --- | --- | | Deposit | Creates a request that settles later | Settles in the same transaction | | Withdraw | Returns request IDs; the asset arrives at settlement | Returns the withdrawn coin | | Share price | Set when the operator executes the request | Known at execution | | Cancel | Possible while pending, after a short lock | Not applicable | Each position is a number of vault shares recorded against a **receipt** object in the user’s wallet. A wallet can hold several receipts for one vault, and the SDK spreads deposits and withdrawals across them. The [vault operations reference](/docs/developer/vault/operations) shows the Move calls and events behind each step, and [how a deposit request settles](/docs/guides/vault-user-guide#deposit-requests) explains it from the user’s side. Every vault has a `source` (`'navi' | 'volo'`), which decides the code path and Move package, and a `protocol` (`'navi' | 'volo' | 'astros'`), which only labels the strategy provider. They can differ: on mainnet, `SUI LST NAVI SINGLE LOOP` is a Volo-source vault with `protocol: 'navi'`. Always branch on `source`. ## Core functions [#core-functions] | Function | Purpose | | --- | --- | | `getVaults(options?)` / `getVault(id)` | List vaults, or load one, from the NAVI open API. | | `getPositions(owner, options?)` | The owner’s shares and estimated balance in each vault. | | `depositPTB(tx, vault, owner, amount, options?)` | Add a deposit to `tx`. For Volo vaults it returns `{ receipt, requestId }`. | | `withdrawPTB(tx, vault, owner, target, options?)` | Add a withdrawal. For Volo vaults it returns `{ requestIds }`. | | `getPendingRequests(owner, options?)` | Deposits and withdrawals waiting for settlement. | | `cancelPendingDepositPTB` / `cancelPendingWithdrawPTB` | Cancel a pending request. | | `isVaultSdkError(error)` | Narrow an error to `VaultSdkError` and read its stable `code`. | Full signatures and the lower-level `volo.*` builders are in the [SDK reference](https://sdk.naviprotocol.io/vault) and [TypeDoc](https://sdk.naviprotocol.io/typedoc/modules/_naviprotocol_vault.html). ## Units [#units] | Where | Unit | | --- | --- | | `depositPTB` amount, `withdrawPTB` `{ kind: 'amount' }` | Decimal string in coin units, such as `'1.5'` | | `withdrawPTB` `{ kind: 'shares' }`, `VaultPosition.shares` | Raw share count | | `minAmountOut` | Raw base units, as `bigint` | | `apy`, `apr` | Decimal fraction: `0.0807` is 8.07% | Install the NAVI SDK skill, which includes the [`vault` sub-skill](https://github.com/naviprotocol/skills/tree/main/skills/navi-sdk/vault) for `@naviprotocol/vault`: `npx skills add naviprotocol/skills --skill navi-sdk`. ## Requirements [#requirements] - `@mysten/sui` 2.16 or later as a peer dependency. The examples use 2.39.1 with the gRPC client. - An ES module environment: Node.js with `"type": "module"` or a bundler. - No API key. Find a vault, build a deposit and simulate it. Check limits and create a deposit request. Request a withdrawal with a payout floor. List and cancel unsettled requests. # Vault operations (/docs/developer/vault/operations) ## Request lifecycle [#id-1.-system-overview] A user never moves assets into a strategy directly. Each deposit or withdrawal is stored on the vault as a request, and the vault operator settles pending requests together during the vault’s settlement window. Submitting a request and settling it are separate transactions. | Step | Called by | Deposit | Withdrawal | | --- | --- | --- | --- | | Request | User | `DepositRequested` | `WithdrawRequested` | | Cancel, while still pending | User | `DepositCancelled` | `WithdrawCancelled` | | Settle | Vault operator | `DepositExecuted` | `WithdrawExecuted` | A request that has been cancelled or settled is removed from the vault’s request buffer, so each `request_id` ends in exactly one cancelled or executed event. ## Public entry functions [#user-entry-functions] The user-facing functions live in the `volo_vault::user_entry` module. They are `public` functions rather than `entry` functions, so call them from a Sui programmable transaction block (PTB). Locate the package in the [contract reference](/docs/developer/contracts). | Function | Purpose | | --- | --- | | `deposit` / `deposit_with_auto_transfer` | Split `amount` from the coin and record a deposit request. Pass `option::none()` for the first deposit to be issued a new `Receipt`, or pass an existing receipt to add to that position. Returns the `request_id`. The `_with_auto_transfer` variant sends the receipt and the remaining coin back to the sender. | | `cancel_deposit` / `cancel_deposit_with_auto_transfer` | Cancel a pending deposit request and return the full coin amount. | | `withdraw` / `withdraw_with_auto_transfer` | Request the redemption of `shares` from a receipt. With auto transfer, the principal is sent to the sender at settlement. Without it, the principal is held as claimable for the receipt. | | `withdraw_with_swap` | Request a withdrawal that the operator settles in `TargetAssetType` instead of the principal coin, within `slippage_bps`. Also emits `WithdrawSwapRequested`. The operator can still settle it as a plain withdrawal, which emits `WithdrawSwapRequestDropped`. | | `cancel_withdraw` | Cancel a pending withdrawal request and return the shares to the receipt. | | `claim_claimable_principal` | Take principal from a settled withdrawal that was not auto-transferred. | ### Request rules [#request-rules] * **Slippage bounds.** A deposit carries `expected_shares` and a withdrawal carries `expected_amount`. Settlement aborts if the vault would issue fewer shares or pay out less than requested. * **Cancellation.** A request can be cancelled only after the vault’s `locking_time_for_cancel_request` has passed since it was submitted, and not while the operator is running a settlement. Changes to the window emit `LockingTimeForCancelRequestChanged`. * **Withdrawal lock.** A withdrawal can be requested only after `locking_time_for_withdraw` has passed since the receipt’s last deposit. Read it with `check_locking_time_for_withdraw`. Changes emit `LockingTimeForWithdrawChanged`. * **Fees.** The deposit fee and withdrawal fee are deducted at settlement, not at request time. Read the current rates, in basis points, with `deposit_fee_rate` and `withdraw_fee_rate`. Changes emit `DepositFeeChanged` and `WithdrawFeeChanged`. ## Settlement [#settlement] During the settlement window the operator updates the value of the vault’s assets and then executes the pending requests. * **Deposits.** The vault deducts the deposit fee, converts the rest to shares at the current share ratio and emits `DepositExecuted` with the shares issued. * **Withdrawals.** The vault converts the shares to principal at the current share ratio, deducts the withdrawal fee and emits `WithdrawExecuted` with the amount paid. A swapped withdrawal also emits `WithdrawWithSwapExecuted`. Strategy operations that take assets out of the vault are bracketed by `OperationStarted` and `OperationEnded`. When they finish, the vault compares its value before and after and emits `OperationValueUpdateChecked`. The transaction aborts if the accumulated loss for the current period exceeds the vault’s loss tolerance. ## Strategy-specific work [#id-4.-vault-types-and-strategies] ### Lending vaults [#id-4.1-lending-related-vaults-e.g.-xbtc-wbtc-strategies] The xBTC and wBTC examples use BTC-backed collateral. The operator monitors collateral and debt as their relative values change. ### DEX vaults [#id-4.2-dex-vaults-e.g.-mmt-stable-vault] In the Momentum stablecoin example, the operator allocates deposits to trading pools and adjusts liquidity ranges. See the [strategy guide](/docs/guides/vault-strategies) for the income and costs associated with these positions. ## Further reading [#id-6.-risk-management-and-mitigation-strategies] For contract boundaries see the [architecture diagrams](/docs/developer/vault/architecture). For an independent review, see the [vault audits](/docs/developer/vault-audits). The security section describes [transaction screening](/docs/guides/security-risk-control), [settlement checks](/docs/guides/security-settlement) and [on-chain monitoring](/docs/guides/security-monitoring). For the user-facing view of the same cycle, see [how a deposit request settles](/docs/guides/vault-user-guide#deposit-requests). # Pending requests (/docs/developer/vault/pending-requests) Until the operator settles a request, the user can cancel it: a cancelled deposit returns the coin, and a cancelled withdrawal returns the shares to the receipt. ```ts title="pending-requests.ts" import { Transaction } from '@mysten/sui/transactions'; import { cancelPendingDepositPTB, cancelPendingWithdrawPTB, getPendingRequests } from '@naviprotocol/vault'; export async function buildCancelAll(owner: string, vaultId?: string) { const pending = await getPendingRequests(owner, vaultId ? { vault: vaultId } : undefined); // The cancellation lock must have passed; the operator may still settle first const cancellable = pending.filter((request) => new Date(request.executeTime).getTime() <= Date.now()); const tx = new Transaction(); tx.setSender(owner); for (const request of cancellable) { if (request.type === 'deposit') { // The refunded deposit coin must be transferred or used const refund = await cancelPendingDepositPTB(tx, request); tx.transferObjects([refund], owner); } else { // The shares return to the receipt; nothing to transfer await cancelPendingWithdrawPTB(tx, request); } } return { tx, pending, cancelled: cancellable.length }; } ``` ## Request fields [#fields] | Field | Meaning | | --- | --- | | `type` | `'deposit'` or `'withdraw'` | | `vaultId`, `receiptId`, `requestId` | Which vault, receipt and on-chain request | | `amount`, `amountUsd`, `shares` | Size of the request, as decimal strings | | `executeTime` | ISO 8601 time after which the request can be cancelled | | `txId` | The transaction that created the request | `getPendingRequests` reads the NAVI open API and is not cached, so it reflects new requests quickly. ## Cancellation rules [#rules] - A request can be cancelled only after its cancellation lock, shown as `executeTime`. Earlier attempts abort. - The operator can settle a request at any time in the window. If it does so first, the cancellation aborts. Read the list again after executing. - `cancelPendingDepositPTB` returns the refunded coin, which must be transferred or used, or the transaction fails. `cancelPendingWithdrawPTB` returns nothing to handle. - Passing a request of the wrong type throws `INVALID_REQUEST_TYPE`. Volo vaults have no separate reward ledger: returns accrue in the share price, so there is nothing to claim. `getVaultRewards` returns an empty list for Volo vaults. # Vault quickstart (/docs/developer/vault/quickstart) This script lists vaults, picks an open Volo vault that accepts SUI, builds a deposit request for its minimum and simulates it against mainnet. It never signs, so you can run it with any address that holds the minimum plus gas. Install the vault SDK and the Sui TypeScript SDK it builds on. The examples use ES modules and top-level `await`. ```npm npm install @naviprotocol/vault@0.1.0 @mysten/sui@2.39.1 ``` The gRPC client is used for simulation. `owner` is the address that holds the deposit coin, receives the receipt and signs later. `getVaults` reads every vault from the NAVI open API. Keep Volo-source vaults that are `open` and accept SUI. `minInvestment` is the smallest deposit the vault accepts, in coin units. Pass the amount as a decimal string in units of the deposit coin. `depositPTB` selects the owner’s coins, adds the request and transfers the receipt back to the owner. For a Volo vault it returns a `requestId` handle instead of shares, because shares are only issued at settlement. The SDK checks the vault is open and the amount is within its minimum and capacity before it builds anything. `simulateTransaction` runs the transaction against current chain state without submitting it. Then sign and execute the same `tx` with the user’s wallet. The deposit stays pending until the vault’s settlement window. ```ts title="deposit.ts" import { SuiGrpcClient } from '@mysten/sui/grpc'; import { Transaction } from '@mysten/sui/transactions'; import { depositPTB, getVaults } from '@naviprotocol/vault'; const client = new SuiGrpcClient({ network: 'mainnet', baseUrl: 'https://fullnode.mainnet.sui.io:443', }); // The address that will sign. It must hold the deposit amount plus gas. const owner = process.env.SUI_ADDRESS!; // Volo vaults that accept SUI and are open for deposits const vaults = await getVaults(); const vault = vaults.find( (v) => v.source === 'volo' && v.status === 'open' && v.assets.baseCoin.symbol === 'SUI', ); if (!vault) throw new Error('No open Volo SUI vault'); console.log(vault.name, 'minimum', vault.minInvestment, 'SUI'); // Build a deposit request for the vault's minimum, in SUI const tx = new Transaction(); tx.setSender(owner); const { requestId } = await depositPTB(tx, vault, owner, String(vault.minInvestment)); const result = await client.core.simulateTransaction({ transaction: tx }); if (result.$kind === 'FailedTransaction') { throw new Error(`Simulation failed: ${result.FailedTransaction.status.error?.message}`); } console.log('Deposit request simulated; requestId handle:', Boolean(requestId)); ``` ## Run it [#run-it] ```bash SUI_ADDRESS=0xYOUR_ADDRESS npx tsx deposit.ts ``` Sample output, verified on December 1, 2026. The first open Volo SUI vault returned by the API can change: ```text SUI LST NAVI SINGLE LOOP minimum 3 SUI Deposit request simulated; requestId handle: true ``` The amount is below `minInvestment` or above the vault’s remaining capacity. Choose a different amount. See [Errors](/docs/developer/vault/errors). The owner does not hold enough of the deposit coin. Check the address and the vault’s `assets.baseCoin.coinType`. The vault is not accepting deposits right now, for example during a fixed-term lockup. Pick a vault whose `status` is `open`. ## Next steps [#next-steps] Handle limits and compose deposits. Request a withdrawal with a payout floor. List and cancel unsettled requests. # Withdraw (/docs/developer/vault/withdraw) A Volo withdrawal is also a request, one for each receipt it draws from. The shares keep earning until the operator settles the request; then the vault converts them at the current share price, deducts any withdrawal fee and sends the asset to the owner. ```ts title="withdraw.ts" import { Transaction } from '@mysten/sui/transactions'; import { getPositions, getVault, isVaultSdkError, withdrawPTB } from '@naviprotocol/vault'; export async function buildWithdrawAll(owner: string, vaultId: string, slippage = 0.01) { const vault = await getVault(vaultId); const [position] = await getPositions(owner, { vaults: [vault.id] }); if (!position?.shares || position.tokenBalance === null) throw new Error('No position in this vault'); // Floor: the position's estimated value minus `slippage`, in raw base units const { decimals } = vault.assets.baseCoin; const estimate = BigInt(Math.floor(position.tokenBalance * 10 ** decimals)); const minAmountOut = (estimate * BigInt(Math.round((1 - slippage) * 10_000))) / 10_000n; const tx = new Transaction(); tx.setSender(owner); try { // Request exactly the shares the floor was computed for. `{ kind: 'all' }` would // skip locked receipts and leave the floor too high for what is withdrawn. const target = { kind: 'shares', shares: position.shares } as const; const { requestIds } = await withdrawPTB(tx, vault, owner, target, { minAmountOut }); return { tx, requests: requestIds?.length ?? 0 }; } catch (error) { if (isVaultSdkError(error) && error.code === 'INSUFFICIENT_BALANCE') { // Some receipts are locked after a recent deposit or already have a pending withdrawal console.log('Not withdrawable yet:', error.details?.excludedReceipts); } throw error; } } ``` ## Choose a target [#targets] | Target | Use it when | | --- | --- | | `{ kind: 'amount', amount: '1.5' }` | The user enters an amount in coin units. For Volo vaults it is converted to shares from an API snapshot, so it is an estimate. | | `{ kind: 'shares', shares }` | You need an exact burn. Use the raw count from `VaultPosition.shares`. | | `{ kind: 'all' }` | The user exits everything that is currently eligible. Skipped receipts stay in the position, so do not pair it with a floor based on the whole position. | ## Set a payout floor [#min-amount-out] `minAmountOut` is the least the user accepts, in raw base units. The SDK splits it across the requests, and settlement fails rather than pay out less, leaving the request pending until it is cancelled. The example derives the floor from the position’s estimated value minus 1%, so it requests exactly the position’s shares with `{ kind: 'shares' }`. Do not combine a floor computed from the whole position with `{ kind: 'all' }`. That target skips ineligible receipts, so it can withdraw fewer shares than the floor assumes, and every request would then fail at settlement. ## Eligible receipts [#eligible-receipts] A receipt is skipped while it already has a pending withdrawal, or while it is inside the withdrawal lock after its last deposit. If the eligible receipts do not hold enough shares, `withdrawPTB` throws `INSUFFICIENT_BALANCE` with the skipped receipts in `details.excludedReceipts`, each with a `reason`. # BTC-backed vault design (/docs/guides/btcfi) ## Lending against BTC-backed collateral [#generating-additional-yields-for-btc-lrt-btc-holders-with-minimal-risk] The BTCFi design used BTC-backed tokens as collateral on Sui. In its LBTC example, the vault supplied LBTC to NAVI, borrowed SUI, staked it for vSUI and supplied the vSUI back to the lending market. | Assumption in the original example | Value | | --- | --- | | LBTC supply APR | 2.52% | | Assumed APR of the SUI/vSUI loop | 20% | | Assumed loan-to-value ratio | 40% | | Illustrated combined APR | 2.52% + (20% × 40%) = 10.52% | ![Historical LBTC vault description showing the steps in its lending strategy](/gitbook/36b2b84daf-image.png) These inputs illustrate the calculation. Rates, collateral limits and the relative prices of the assets can change. See [vault risks](/docs/guides/vault-risks). ## Allocating liquidity for a new BTC asset [#one-stop-solution-to-onboard-btc-assets] The design also proposed splitting deposits between a trading pool and a lending strategy. The trading allocation supplies market liquidity for the asset, while the lending allocation uses it as collateral. ![Original diagram splitting a BTC asset between a DEX and a lending market](/gitbook/891aa86292-image.png) Consult the [live vault directory](https://www.volosui.com/vaults) for the assets and strategies currently offered. # Official links and partners (/docs/guides/contact) ## Volo Platforms & Channels [#volo-platforms-and-channels] | Platform | Link | | --------- | ---------------------------------------------------------------------------------------------------------------- | | Website | [https://www.volosui.com/](https://www.volosui.com/) | | Stake | [Volo staking](https://www.volosui.com/stake) | | Contracts | [Volo smart contracts](https://github.com/Sui-Volo/volo-smart-contracts) | | Twitter | [https://twitter.com/volo_sui](https://twitter.com/volo_sui) | | Medium | [https://medium.com/@volosui](https://medium.com/@volosui) | | Docs | [Volo Docs](/docs) | | Discord | [https://discord.com/invite/volo-1074826764645314621](https://discord.com/invite/volo-1074826764645314621) | | Telegram | [https://t.me/volosui](https://t.me/volosui) | ## Ecosystem partners [#strategic-partners] These projects have worked with Volo. Check the individual product or vault for its current integrations. ![Volo ecosystem partner logos](/gitbook/9e4a9903ce-partners-01.png) | Project | Website | Twitter | | --------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------- | | Cetus | [cetus.zone](https://www.cetus.zone/) | [twitter.com/cetusprotocol](https://twitter.com/cetusprotocol) | | Scallop | [scallop.io](https://www.scallop.io/) | [twitter.com/Scallop\_io](https://twitter.com/Scallop_io) | | NAVI Protocol | [naviprotocol.io](https://www.naviprotocol.io/) | [twitter.com/navi\_protocol](https://twitter.com/navi_protocol) | | Turbos Finance | [turbos.finance](https://turbos.finance/) | [twitter.com/Turbos\_finance](https://twitter.com/Turbos_finance) | | Ankr | [ankr.com](https://www.ankr.com/) | [twitter.com/ankr](https://twitter.com/ankr) | | Surf Wallet | [surf.tech](https://surf.tech/) | [twitter.com/surf\_wallet](https://twitter.com/surf_wallet) | | Bucket Protocol | [bucketprotocol.io](https://bucketprotocol.io/) | [twitter.com/bucket\_protocol](https://twitter.com/bucket_protocol) | | SupraOracles | [supraoracles.com](https://supraoracles.com/) | [twitter.com/SupraOracles](https://twitter.com/SupraOracles) | | Pyth Network | [pyth.network](https://pyth.network/) | [twitter.com/PythNetwork](https://twitter.com/PythNetwork) | | OtterSec | [osec.io](https://osec.io/) | [twitter.com/osec\_io](https://twitter.com/osec_io) | | MoveBit | [movebit.xyz](https://www.movebit.xyz/) | [twitter.com/movebit\_](https://twitter.com/movebit_) | | Hacken | [hacken.io](https://hacken.io/) | [twitter.com/hackenclub](https://twitter.com/hackenclub) | # Governance proposal (/docs/guides/governance) ## Governance tokens [#understanding-governance-tokens] The original proposal described a token through which holders could participate in protocol decisions. Follow the [Volo token page](/docs/guides/volo-token) for the status of token information. ## What holders would vote on [#active-community-participation] The proposal identified protocol improvements, development priorities and parameter changes as possible matters for a community vote. ## How decisions would be recorded [#decentralized-decision-making] The proposed model weighted votes by tokens held and used smart contracts to record the outcome. The published proposal supplies no voting contract address, quorum or deployment schedule. Consult [Volo’s official channels](/docs/guides/contact) for announcements. # Volo guide (/docs/guides) ## Liquid staking [#liquid-staking] Start with [how vSUI works](/docs/guides/liquid-staking), choose a [supported wallet](/docs/guides/wallets) and follow the [staking and unstaking guide](/docs/guides/stake-and-unstake). ## Vaults [#vaults] Explore [Volo Vaults](/docs/guides/vaults), compare their [strategies](/docs/guides/vault-strategies) and [risks](/docs/guides/vault-risks), then follow the [vault user guide](/docs/guides/vault-user-guide). ## Security [#security] Read about [contract reviews, transaction controls and settlement safeguards](/docs/guides/security). ## Support [#support] Find Volo’s community channels on the [contact page](/docs/guides/contact). # Liquid staking (/docs/guides/liquid-staking) Volo delegates pooled SUI to validators. Your wallet receives vSUI when you stake. Rewards accrue to the pool, so their effect is visible in the **SUI value per vSUI**. Your token count can stay the same as the exchange rate changes. | Your goal | Where to go | | --- | --- | | Stake SUI for the first time | [Connect a wallet and stake](/docs/guides/stake-and-unstake) | | Redeem vSUI held in your wallet | [Unstake and verify the SUI received](/docs/guides/stake-and-unstake#unstake-sui) | | Understand a quote or fee | [Liquid staking FAQ](/docs/guides/staking-faq) | | Check how Volo delegates or accounts for rewards | [Staking pool design](/docs/developer/liquid-staking-token/staking-design) and [staking audits](/docs/developer/staking-audits) | You can also transfer vSUI to applications that accept it. Supplying it to a lending market or a liquidity pool creates a position in that application, with its own withdrawal conditions and risks. [Open Volo staking](https://www.volosui.com/stake) # Audits and code review (/docs/guides/security-audits) The first layer of protection is the code itself. Volo’s contracts are reviewed by independent security firms, and all protocol-related code is also reviewed by Claude Mythos, Anthropic’s most capable model, so that changes made between audits are checked too. ## Independent contract audits [#independent-contract-audits] Developer Docs lists the auditor, date, scope and PDF for each published report. See the [liquid staking audit reports](/docs/developer/staking-audits) and [vault audit reports](/docs/developer/vault-audits). Earlier versions of the liquid staking contracts were reviewed by Hacken, MoveBit and OtterSec in 2023. ### Match an audit to the deployed code [#match-an-audit] An audit applies to the code version it reviewed. Compare the deployed package in the [contract reference](/docs/developer/contracts) with the scope of the report for that package. ## AI code review with Claude Mythos [#ai-assisted-code-review] An audit is a snapshot of one version. Code keeps changing afterwards, so Volo adds a continuous review layer powered by **Claude Mythos, Anthropic’s most capable model**. All protocol-related code, including the Move contracts and the services that prepare and settle fund movements, is reviewed by Mythos. Volo uses the strongest model available for this layer on purpose. Security review rewards depth: following funds across modules, reasoning about every caller of a privileged function and spotting the rare path where accounting goes wrong. That is where the most capable model makes the biggest difference. * **Between audits.** Code reviewed by Mythos includes changes made after the last external audit, so issues can be caught while they are still cheap to fix. * **Security-focused.** The review looks for the classes of bug that matter most for a vault: broken access control, accounting and rounding errors, unchecked external input, unsafe upgrade paths and ways a transaction could move funds somewhere unintended. * **Beyond the contracts.** Off-chain services that build and sign protocol transactions are reviewed too, because a correct contract can still be called incorrectly. * **A complement, not a replacement.** Mythos review adds to independent audits rather than replacing them. Even audited and reviewed code can contain mistakes. The next layer, [contract safeguards](/docs/guides/security-contract-controls), limits what any transaction can do regardless of who sends it. # Contract safeguards (/docs/guides/security-contract-controls) Some protections do not depend on people or services at all. They are written into the Move contracts, so every transaction has to satisfy them. A Sui transaction is all-or-nothing: if any check fails, the whole transaction aborts and no balance or share changes. ## Access control [#access-control] Every privileged action requires a specific capability object. Holding the wrong one, or none, means the call is rejected. | Safeguard | What it does | | --- | --- | | Capability-based roles | Admin, operator and curator actions each require their own capability object. A user’s receipt grants access only to that user’s own position. | | Operator freeze | An administrator can freeze an operator capability immediately, revoking its ability to run vault operations. | | Per-vault pairing | Operators and curators can be paired to specific vaults and positions, so a capability for one vault cannot act on another. | | Version checks | Each shared object records its package version. Calls through an outdated package are rejected after an upgrade. | ## Accounting and pricing [#accounting-and-pricing] A vault is only as safe as its share price. These checks keep the valuation honest even when an operator is moving assets between strategies. | Safeguard | What it does | | --- | --- | | Loss tolerance | Each vault caps how much value its operations may lose in a period, 0.1% by default. A transaction that would exceed the limit aborts. | | Fresh valuations | The vault refuses to price shares unless every asset it holds was revalued in the same transaction. | | Oracle checks | Prices come from Pyth. The contracts reject prices that are stale, carry a future timestamp or fall outside valid bounds. | | Health-factor limits | Lending positions on NAVI can be required to stay above a minimum health factor after each operation. | | Curator value windows | Values reported for externally managed positions expire and cannot be refreshed more often than a minimum interval. | ## User protection [#user-protection] These rules apply to every deposit and withdrawal request, whoever settles it. | Safeguard | What it does | | --- | --- | | Slippage bounds | Each request records the minimum shares or amount you accept. Settlement aborts rather than give you less. | | Fee caps | Deposit and withdrawal fees are capped at 5% each in the contract, whatever the configured rate. | | Deposit cap and minimum | A vault can cap the total principal it accepts and set a minimum deposit to control how much capital enters a strategy. | | Request timing | A request can be cancelled only after a short wait, and a withdrawal can be requested only after a lock period following your last deposit. | | Vault status | A vault can be disabled to stop new requests while an issue is investigated. Requests can’t be cancelled while a settlement is running. | | Staking pause | An authorized administrator can pause the liquid staking pool. | ## Verify the rules [#verify-the-rules] Sources and deployed versions are listed in the [Move contract reference](/docs/developer/contracts). The [vault operations reference](/docs/developer/vault/operations) shows how these rules apply to each request and which events record them. The administrator capabilities that can change these settings are themselves protected by [multisignature control](/docs/guides/security-multisig). # On-chain monitoring (/docs/guides/security-monitoring) ![Diagram of Sui events flowing into detection rules, raising an alert and triggering a response](/security/monitoring.svg) The last layer watches the protocol as it runs. Volo monitors vault and staking activity on Sui in real time, so anything unusual that gets past the other layers is spotted and handled quickly. ## What is monitored [#what-is-monitored] | Signal | Examples | | --- | --- | | Fund movements | Outflows to unexpected addresses, or amounts outside normal ranges | | Vault health | Sudden changes in share price, losses approaching the loss tolerance, lending positions nearing their health-factor limit | | Operations | Failed transactions, settlements that stall or diverge from on-chain events, low gas on operating accounts | | Configuration | Changes to fees, operators, oracle feeds or other parameters | ## How Volo responds [#how-volo-responds] When a rule fires, the team is alerted and investigates the affected transactions. Where needed, it uses the controls built into the contracts while the cause is found and fixed: | Action | Effect | | --- | --- | | Freeze an operator | The operator capability can no longer run vault operations. | | Disable a vault | The vault stops accepting new requests. | | Pause staking | Operations on the liquid staking pool are paused. | These are the same [contract safeguards](/docs/guides/security-contract-controls) described earlier, used as an emergency brake. ## Report something you notice [#report-something] If you see activity you think is wrong, contact the team through the [support channels](/docs/guides/contact). To report a vulnerability, use the [bug bounty program](/docs/guides/security#report-a-vulnerability). # Multisignature control (/docs/guides/security-multisig) ![Diagram of a fund movement proposal that executes only after enough independent signers approve it](/security/multisig.svg) User funds are controlled by multisignature wallets rather than by any single key. A privileged action on vault funds executes only after enough independent signers have reviewed and approved it. ## Why multisignature [#why-multisignature] * **No single point of failure.** One lost, stolen or misused key cannot move vault funds on its own. * **Independent review.** Each signer checks the proposal before approving, so a mistake has to get past several people. * **Visible on-chain.** Multisignature transactions settle on Sui like any other transaction, so the approvals and the resulting changes can be inspected after the fact. ## How an action is approved [#how-an-action-is-approved] 1. **Proposal.** A privileged action, such as moving vault funds, is prepared as a transaction. 2. **Review.** Each signer checks what the transaction does before approving it. 3. **Threshold.** The transaction can execute only once the required number of signers has approved it. 4. **Execution.** The approved transaction runs on Sui, where it is still subject to every [contract safeguard](/docs/guides/security-contract-controls). ## What stays in your control [#what-stays-in-your-control] You always authorize your own deposits, withdrawal requests and cancellations from your wallet. They need your vault receipt, which only you hold, so nobody else can submit them on your behalf. Protocol operations that move funds also pass [transaction screening](/docs/guides/security-risk-control) before they are signed. # Transaction screening (/docs/guides/security-risk-control) ![Diagram of a proposed transaction passing an allowlist check and an AI review before it is signed](/security/risk-control.svg) Every protocol-initiated on-chain operation that involves funds goes through Volo’s risk-control system before it is signed. Only operations inside the allowlist that also pass an AI review reach the chain. ## How a transaction is screened [#how-a-transaction-is-screened] 1. **Proposal.** A rebalance, settlement or reward claim is built as a transaction and simulated, so its real effect on balances is known before anything is signed. 2. **Allowlist check.** The contracts it calls, the functions it uses and the addresses that receive funds must all be on an allowlist. Anything else is rejected outright. 3. **AI review.** An AI reviewer compares the simulated effect with the stated purpose of the operation and flags anything that does not match, such as an unexpected recipient or an unusually large amount. 4. **Signing.** Only a transaction that passes both checks is signed and submitted to Sui. A blocked transaction is escalated to the team for investigation. ## Why two checks [#why-two-checks] The two checks catch different problems. | Check | Catches | | --- | --- | | Allowlist | Calls to unknown contracts or functions, and transfers to addresses outside the protocol. It is strict and predictable: anything not explicitly approved is refused. | | AI review | Transactions that use approved calls in an unexpected way, such as the wrong amount or an operation that does not match its purpose. | Even a screened transaction is still bound by the [contract safeguards](/docs/guides/security-contract-controls), and it is watched by [on-chain monitoring](/docs/guides/security-monitoring) once it executes. # Settlement (/docs/guides/security-settlement) Deposits and withdrawals are requests that the vault settles together during its settlement window. The settlement system makes sure each batch is processed with the right numbers and that every result matches what happened on-chain. ## How a settlement runs [#how-a-settlement-runs] * **Step-by-step execution.** Each settlement moves through defined steps, from updating asset values through executing requests to confirming the results. The current step, status and any error are recorded for every run. * **Preview before execution.** Operators check a settlement preview, including the share price and fees, before requests are executed. * **Reconciliation.** Results are reconciled with the confirmed `DepositExecuted` and `WithdrawExecuted` events on Sui, and discrepancies are raised for investigation. * **Errors surfaced, not hidden.** A failed step is shown on the settlement console with its error for follow-up. ![Volo settlement console showing the status and current step of sample settlements](/security/settlement-console.webp) *Volo settlement console. Timestamps, amounts and rates are obscured.* ## Protections that apply at settlement [#protections-at-settlement] Settlement transactions are screened like any other protocol operation, and the contracts check each request as it is executed: * Your request is settled only if you receive at least the shares or amount you accepted when you submitted it. * Deposit and withdrawal fees cannot exceed the caps written into the contract. * Shares are priced only from asset values updated in the same transaction. See [contract safeguards](/docs/guides/security-contract-controls) for the full list. ## What it means for your position [#what-it-means-for-you] See [how a deposit request settles](/docs/guides/vault-user-guide#deposit-requests) for what happens to your funds while a request is pending, and the [settlement window](/docs/guides/vault-user-guide#rewards-and-withdrawal-cooldown) for timing. # Security overview (/docs/guides/security) ![Illustration of multisignature approvals, transaction screening and live monitoring](/security/security-controls.webp) Volo protects deposits with defense in depth: six independent layers, each built on the one below it. Every layer assumes the others might fail, so a problem has to get past all of them before it can affect user funds. ![Diagram of six stacked security layers protecting user deposits: audits and code review at the base, then contract safeguards, multisignature control, transaction screening, settlement and on-chain monitoring at the top](/security/defense-layers.svg) The layers start with the contract code and work up to the systems that watch the protocol in real time. ## 1. Audits and code review [#audits-and-code-review] The foundation is the code itself. Volo’s Move contracts have been reviewed by independent firms including Veridise, Certora and MoveBit, and every report is published with the code version it covers. All protocol-related code, including the services that move funds, is also reviewed by **Claude Mythos, Anthropic’s most capable model**, so changes made between audits are checked to the same high standard. **Protects against:** design and implementation flaws. **Verify:** the [liquid staking audit reports](/docs/developer/staking-audits) and [vault audit reports](/docs/developer/vault-audits). [Read more about audits and code review](/docs/guides/security-audits). ## 2. Contract safeguards [#contract-safeguards] Some rules do not depend on people at all. The vault contracts enforce role-based permissions, a cap on losses per period, fresh oracle prices, slippage bounds and fee caps. A transaction that breaks any rule aborts, and nothing changes. **Protects against:** operator mistakes, bad prices and unexpected losses. **Verify:** the [Move contract reference](/docs/developer/contracts). [Read more about contract safeguards](/docs/guides/security-contract-controls). ## 3. Multisignature control [#multisignature-control] User funds are controlled by multisignature wallets. A privileged action on vault funds executes only after enough independent signers have approved it, so no single lost or misused key can move funds. **Protects against:** a single compromised or careless key. **Verify:** multisignature transactions on Sui. [Read more about multisignature control](/docs/guides/security-multisig). ## 4. Transaction screening [#transaction-screening] Before any protocol-initiated transaction that involves funds is signed, Volo’s risk-control system checks that its contracts, functions and destinations are on an allowlist, and an AI review checks that its effect matches its purpose. Anything else is blocked and escalated. **Protects against:** unapproved calls and destinations. **Verify:** protocol transactions on a Sui explorer. [Read more about transaction screening](/docs/guides/security-risk-control). ## 5. Settlement [#settlement] Deposits and withdrawals are settled in tracked batches. Each run moves through defined steps, is previewed before execution and is reconciled with the events confirmed on Sui. Errors are surfaced on the settlement console for follow-up. **Protects against:** incorrect share accounting and stuck requests. **Verify:** `DepositExecuted` and `WithdrawExecuted` events. [Read more about settlement](/docs/guides/security-settlement). ## 6. On-chain monitoring [#on-chain-monitoring] The top layer watches vault and staking activity on Sui in real time. Unusual fund movements, failed operations or configuration changes raise an alert, and the team can respond with the contracts’ own controls: freezing an operator, disabling a vault or pausing staking. **Protects against:** anomalies that slip past the other layers. **Verify:** vault events on a Sui explorer. [Read more about on-chain monitoring](/docs/guides/security-monitoring). ## What you can check yourself [#what-you-can-check] * Use the official app at [volosui.com](https://www.volosui.com) and check the address before connecting your wallet. * Read the wallet request before signing. A Volo deposit or withdrawal calls the Volo vault package and moves only the amount you entered. * Compare the package you are calling with the [contract reference](/docs/developer/contracts). * Review a vault’s [strategy](/docs/guides/vault-strategies) and [risks](/docs/guides/vault-risks) before depositing. Security controls reduce operational risk but do not remove market, protocol or counterparty risk. ## Report a vulnerability [#report-a-vulnerability] Use Volo’s [HackenProof bug bounty program](https://hackenproof.com/programs/volo-smart-contracts) for the disclosure process, rewards and current scope. Please do not disclose a vulnerability publicly before it has been fixed. # Stake SUI and redeem vSUI (/docs/guides/stake-and-unstake) ## Connect your wallet [#connect-your-wallet] Open [Volo staking](https://www.volosui.com/stake) and select **Log In**. Choose your [Sui wallet](/docs/guides/wallets) and confirm the account you want to use. For a first stake, fund that Sui address with SUI and leave some SUI available for gas. ![Public Volo staking form with Stake and Unstake tabs, the SUI amount field and the vSUI receive field](/product/stake.webp) *Volo staking, signed out, 30 November 2026.* ## Stake SUI [#stake-sui] 1. Select **Stake** and choose **SUI** as the input. Enter an amount and check the estimated vSUI under **Receive**. The [exchange rate](/docs/guides/staking-faq#vsui-value-discrepancy) explains why the two amounts can differ. 2. Choose **Stake** to receive vSUI in your wallet. The separate **Stake & Supply in Navi** action also supplies the resulting vSUI to NAVI Lending. 3. Review the transaction in your wallet. After it succeeds, check the vSUI balance of the account you used. If you also supplied to NAVI, check the lending position there. ## Redeem vSUI for SUI [#unstake-sui] 1. Open **Unstake** in the same form. Enter the amount of vSUI held in your wallet. 2. Check the estimated SUI, exchange rate and applicable fee. Submit **Unstake** and review the wallet request. 3. After confirmation, open the transaction in your wallet and verify the SUI received. If your vSUI is in another protocol, first make it available in your wallet.
Earlier interface screenshots ![Original staking form before connecting a wallet](/gitbook/c2a009da3c-image.png) ![Wallet picker in the original Volo interface](/gitbook/c58c8d3b2c-image.png) ![Original form with the SUI amount entered](/gitbook/56cb08f77b-image.png) ![Wallet approval showing the staking transaction](/gitbook/4ea9e9dab8-image.png) ![Original Unstake tab with a vSUI input and SUI output](/gitbook/36f35305a3-image.png)
# How liquid staking works (/docs/guides/staking-basics) ## Staking on Sui [#what_is_staking] SUI holders can delegate stake to validators that participate in network consensus. The rewards depend on the validator and the network epoch. ## Liquid staking [#what_is_liquid_staking] Volo delegates pooled SUI and issues vSUI to represent each holder’s share. The exchange rate between those assets reflects changes in the pool’s backing. ## Compare the two positions [#traditional_staking_vs._liquid_staking] | | Native delegation | Volo liquid staking | | --- | --- | --- | | What you hold | A stake position delegated to a validator | vSUI held in a Sui wallet | | Rewards | Earned on the delegated stake | Reflected in the SUI value of each vSUI | | Using the position | Managed through the native staking flow | Transferable to applications that accept vSUI | | Exposure | Network and validator performance | Network and validator performance, plus the liquid staking contracts | ## What you can do with vSUI [#benefits_of_liquid_staking] ### Hold, transfer or redeem [#hold-transfer-or-redeem] vSUI can be sent to another Sui address. To exit through Volo, [redeem vSUI](/docs/guides/stake-and-unstake#unstake-sui) and review the quoted SUI amount and fee. ### Use it in another protocol [#composability-in-defi] A lending market may accept vSUI as collateral. A liquidity pool may pair it with another asset and distribute trading fees. Each position introduces the other protocol’s contracts, liquidity requirements and exit rules. ### Delegate through the pool [#outsource-infrastructure-requirements] Volo allocates pooled stake across validators according to configurable weights. You can hold vSUI without operating validator infrastructure. Read the [staking design](/docs/developer/liquid-staking-token/staking-design) for the delegation model and reward accounting. # Liquid staking FAQ (/docs/guides/staking-faq) ## What is Volo? [#what-is-volo] Volo offers liquid staking and managed vaults on Sui. This FAQ covers liquid staking. See [Volo Vaults](/docs/guides/vaults) for vault deposits and withdrawals. ## What is vSUI? [#what-is-vsui] vSUI represents a share of the SUI held in Volo’s staking pool. Its exchange rate reflects the pool’s backing per token. ## How can I use vSUI? [#how-can-i-use-vsui] Hold or transfer it, redeem it through Volo, or use it in a Sui application that supports the vSUI coin type. A lending deposit or a liquidity position has separate fees and risks. ## How do I connect a wallet? [#documentation-and-wallet-setup] Choose a [Sui wallet](/docs/guides/wallets), then follow the [staking walkthrough](/docs/guides/stake-and-unstake). ## How much can I stake or redeem? [#sui-staking-limits] The original FAQ lists a minimum of 1 SUI to stake and 1 vSUI to redeem, with no stated staking maximum. Check the minimum shown by the [staking form](https://www.volosui.com/stake) for your transaction. Leave enough SUI for gas. ## When do I receive SUI after redeeming? [#unstaking-timeframe] The staking pool supports instant redemption through SIP-33. Check the quote and confirm the transaction succeeded before relying on the balance. A [vault withdrawal](/docs/guides/vault-user-guide#rewards-and-withdrawal-cooldown) follows the schedule of the selected vault. ## Where do rewards go? [#earning-rewards] Validator rewards accrue to the pooled SUI backing vSUI. You can see their effect in the exchange rate. ## How often does the pool account for rewards? [#rewards-distribution] The pool reads validator exchange rates as the network moves between epochs. It accounts for rewards on-chain. See the [staking design](/docs/developer/liquid-staking-token/staking-design#reward-mechanism). ## Which fees apply? [#volo-staking-fees] The Move pool distinguishes stake, unstake and reward fees. The original FAQ quoted 10% of staking rewards. The [staking app](https://www.volosui.com/stake) lists the performance and unstaking fees in its FAQ. Gas is paid separately in SUI. ## What risks do holders take? [#risks-involved] Returns depend on validator performance. Token holders are also exposed to faults in the staking contracts and to the liquidity available when they exit. The [staking audit reports](/docs/developer/staking-audits) identify the scope of each review. ## Where can I find liquidity? [#liquidity-options] Compare a redemption quote in Volo with a swap quote on a venue that supports vSUI. Fees, pool depth and price impact can change the SUI you receive. ## Why does my vSUI balance differ from the SUI I staked? [#vsui-value-discrepancy] Before fees, the vSUI output is the amount staked divided by the exchange rate. The rate is expressed as SUI per vSUI. $$ \text{Exchange Rate} = \frac{\text{Total SUI (Principal + Rewards)}}{\text{Total vSUI Supply}} $$ ## Where can I ask for help? [#need-help] Use the channels in the [official Volo directory](/docs/guides/contact). Open them from the directory when seeking support. # How vaults deploy deposits (/docs/guides/vault-design) A Volo vault pools deposits so that users can participate in a strategy through a single position. The original design brought together incentives that had previously required users to manage several lending or liquidity operations themselves. 1. **Deposit.** A user chooses a vault that accepts their asset. The vault records their participation in the pool. 2. **Deploy.** The curator uses the vault’s strategy to allocate assets to supported protocols. A lending strategy might borrow against collateral, while a liquidity strategy enters a trading pool. 3. **Manage.** Operators monitor positions, rebalance them and account for rewards. Changes in asset prices, borrowing costs and protocol incentives affect the result. 4. **Exit.** The vault processes the withdrawal according to its own schedule. Readers choosing a product can [compare vaults](/docs/guides/vaults) or [make a deposit](/docs/guides/vault-user-guide). The [architecture diagrams](/docs/developer/vault/architecture) and [operations reference](/docs/developer/vault/operations) describe how the contracts support the process. # Vault risks (/docs/guides/vault-risks) ## Underlying protocols [#risk-1-protocol-risk] Depositors are exposed to the vault contracts and to the contracts where the strategy deploys its assets. A fault or incident in an underlying lending market or exchange can affect the position. ### Review the contracts [#remediation-1-code-audit-in-underlying-protocols] Read the [vault audit reports](/docs/developer/vault-audits). Compare their dates and scope with the vault or upgrade being used. A review of Volo’s contracts covers only part of a strategy’s dependencies. ### Trace the dependencies [#remediation-2-reduce-the-complexity-of-strategies] The original design limited how many external protocols a strategy used. Follow the description on the individual vault to identify its current dependencies. ## Asset prices and depegging [#risk-2-depegging-and-market-risk] A loop can supply one asset and borrow another, such as vSUI against SUI or one stablecoin against another. If their relative prices diverge, the collateral may become insufficient and the position may face liquidation. Liquidity pools can also incur losses as their asset mix changes. ### Identify the assets [#remediation-1-careful-selection-of-assets] Identify the issuer, bridge and available liquidity for each asset. The design describes asset screening and coordination with ecosystem partners. Residual depeg risk remains with the position. ## Borrowing costs and negative yield [#risk-3-negative-yield-and-solvency-risk] A loop earns a positive spread only while income exceeds borrowing and execution costs. Higher utilization can raise the borrowing rate. A leveraged position amplifies losses when the spread turns negative. ### Monitor the position [#remediation-1-smart-position-management] The original design describes simulations, allocation caps and alerts for changes in yield. Check the vault’s [strategy](/docs/guides/vault-strategies) and [withdrawal window](/docs/guides/vault-user-guide#rewards-and-withdrawal-cooldown) to understand the exposure you retain while an exit is pending. # Curated vault strategies (/docs/guides/vault-strategies) Curators allocate vault deposits across strategies. The deposit asset determines what you put in, but the underlying positions determine where returns and risks come from. The examples below follow the allocations and strategy descriptions published on each vault’s detail page. Check **Strategy Allocation** and **Unstake Schedule** there for current terms. | Vault | Deposit asset | Strategy mix | Withdrawal schedule | | --- | --- | --- | --- | | [Volo SUI Prime](#sui-prime) | SUI | ZO SLP and Suilend | Weekly | | [Volo Premium Stable Vault](#premium-stable) | USDC | Sui DeFi, Nexus and Zivoe | Weekly | | [XAUm Vault](#xaum) | XAUm | XAUm lending through NAVI | Daily | | [Dowsure Stable Vault #2](#dowsure-stable-2) | USDC | E-commerce receivables and credit lines | Fixed term with a withdrawal notice deadline | ## Volo SUI Prime [#sui-prime] The curator splits the SUI strategy between the ZO SLP pool and a Suilend lending loop. The SLP allocation earns from market-making fees and incentives. The Suilend allocation uses sSUI and SUI in a leveraged lending position, where changes in borrowing costs and the relative price of sSUI can affect the result. [See the SUI Prime allocation and schedule](https://www.volosui.com/vaults/0x9e5f6de2bbef99ab554c064765e762483a6babab1eac6b8ef328c521c01a266c) ## Volo Premium Stable Vault [#premium-stable] The curator allocates USDC across a Sui DeFi lending loop, Nexus’s delta-neutral market-making strategy, and Zivoe private credit lending. The first allocation depends on lending spreads. The Nexus allocation earns through trading and carries execution risk. Zivoe adds exposure to borrower repayment and credit risk. [See the Premium Stable allocation and schedule](https://www.volosui.com/vaults/0xd27fad0f910c9601c697c50aa5839d476fb9d2434809600c19eb93f3260898f2) ## XAUm Vault [#xaum] This vault accepts XAUm, a token linked to gold. The published allocation lists a NAVI lending strategy under NAVI / Slush Wallet. Lending income is earned on a position whose value also depends on XAUm’s market price and the liquidity available when exiting. [See the XAUm allocation and daily schedule](https://www.volosui.com/vaults/0xc4814e8cf6bf3f2bdb1f1f90113af5810200556ec2556ab843877ffb9624a38a) ## Dowsure Stable Vault #2 [#dowsure-stable-2] Dowsure allocates USDC to real-world credit that finances Amazon merchants through payment-linked receivables and lines of credit. Returns depend on repayments. The vault has a fixed term, and a withdrawal request must be made before the notice deadline to qualify for that cycle’s distribution. [See the Dowsure strategy, timeline and proof of receipt](https://www.volosui.com/vaults/0x11fc786c0f0a1fde06510f710ac27410e8ec6185add014391cf49e598518ce7e) Before depositing, review [vault risks](/docs/guides/vault-risks) and the [deposit and withdrawal guide](/docs/guides/vault-user-guide). # Deposit into a vault and withdraw (/docs/guides/vault-user-guide) ## Choose a vault [#volo-vaults-platform-overview] Open [Volo Vaults](https://www.volosui.com/vaults). **All Vaults** lists strategies, deposit assets and target APRs. Select a vault to see its details. A vault marked deprecated may still matter to an existing depositor. ![Public Volo Vaults directory with asset filters and the target APR, total staked and action for each vault](/product/vaults.webp) *Vault directory, signed out, 30 November 2026. Rates in the image are a snapshot.* ### Read the vault details [#vault-page-overview] Check the strategy, capacity, underlying protocols and whether deposits are open. A target APR is an estimate. Read the [strategy examples](/docs/guides/vault-strategies) and [vault risks](/docs/guides/vault-risks) before choosing a position. ### Check the deposit asset [#asset-characteristics] Use the token and network shown by the vault. The original xBTC and wBTC vaults accepted their respective BTC-backed tokens. Stablecoin vaults may accept USDC, USDT or a particular representation. Check the minimum in the selected form. The original guide illustrated 0.00001 BTC-backed tokens and a $1 stablecoin minimum. ### Understand how earnings accrue [#auto-compounding] Some strategies reinvest earnings. In a simplified example, a 10 xBTC position earning a total return of 10% over one year ended at 11 xBTC. Actual returns depend on the strategy, market rates and fees. ## Fees [#fees] A vault can charge the following fees. Rates differ from vault to vault and can change, so check the vault page and the amounts in your wallet request before you sign. | Fee | When it applies | | --- | --- | | Performance fee | A share of the yield the vault earns. It is taken from the vault’s growth, so the position value you see is already net of it. | | Deposit fee | A percentage of the amount deposited, deducted when your deposit request is settled. | | Withdrawal fee | A percentage of the amount withdrawn, deducted when your withdrawal request is settled. | | Swap fee | Charged by the trading pool when assets are converted: for example, when a liquidity strategy swaps part of a deposit into the other asset in the pair, or when you withdraw in an asset other than the one the vault holds. A swap can also lose value to price impact and slippage. | Each underlying protocol also has its own costs, such as interest on borrowed assets in a lending strategy. These are included in the vault’s returns rather than charged to you separately. ## Deposit [#staking-assets-in-volo-vaults] ### Before you start [#prerequisites] Connect a Sui wallet holding the accepted asset. Keep SUI available for gas and check the withdrawal terms before approving the deposit. ### Submit a deposit request [#guide] 1. Open the vault and select **Stake**. Choose the deposit token if the form offers several. 2. Enter the amount. Check the asset, fees and position details in the app and in the wallet request. 3. Confirm in your wallet. This submits a deposit request; it does not add you to the strategy straight away. Open **Your Positions** with the same account to see the request while it is pending. ### How a deposit request settles [#deposit-requests] A vault does not put each deposit to work the moment it arrives. It collects requests and settles them together during its settlement window. 1. **Requested.** Your wallet transaction moves the deposit into the vault and records a pending request. Your funds are held by the vault contract but are not yet in the strategy and do not earn its yield. 2. **Pending.** Until settlement starts you can cancel the request and get the full amount back. The vault may require a short wait after you submit before a cancellation is accepted, and cancellations are refused while a settlement is in progress. 3. **Settled.** During the settlement window the vault deducts any deposit fee, issues vault shares for the rest at the current share value and deploys the assets into the strategy. From this point the request can no longer be cancelled and your position earns the vault’s yield. The shares you receive depend on the share value at settlement, not at the time you submitted the request. A vault can also lock new deposits for a period after settlement before they can be withdrawn. ## Withdraw [#withdrawing-assets-from-volo-vaults] 1. Under **Your Positions**, open the vault you deposited into. Choose **Unstake** and enter the amount you want to withdraw if partial withdrawals are available. 2. Review the amount before signing. The position-list shortcut in the original interface requested the **entire position**. For a partial withdrawal, use the amount field on the vault detail page. 3. Confirm the request in your wallet. Check **Your Positions → Withdrawals** for pending requests, then verify the received asset in your wallet after settlement. A withdrawal is also a request. Your shares stay in the strategy until the request settles, at which point the vault converts them at the current share value, deducts any withdrawal fee and sends you the asset. Like a deposit, a pending withdrawal can be cancelled before settlement starts. ### Check the settlement window [#rewards-and-withdrawal-cooldown] Each vault sets its own settlement schedule, and the schedule can change. Check the vault page for its current schedule before you submit a request, rather than relying on a fixed time of day. Fixed-term products can have an advance notice deadline and a later distribution date. [Dowsure Stable Vault #2](https://www.volosui.com/vaults/0x11fc786c0f0a1fde06510f710ac27410e8ec6185add014391cf49e598518ce7e) publishes its own timeline.
Earlier interface screenshots ![Original vaults dashboard showing suggested vaults and totals](/gitbook/42d1a88d78-image.png) ![Vault directory with a highlighted strategy in the original interface](/gitbook/9a41b887cd-image.png) ![Wallet selection for the original vault walkthrough](/gitbook/e7fdafd325-image.png) ![Stablecoin vault selected in the original list](/gitbook/21fb20c4b1-image.png) ![Deposit token and amount in the original inline form](/gitbook/314bd4aef8-image.png) ![Confirmation after the example deposit](/gitbook/0939a9dd95-image.png) ![Deposited vault under Your Positions](/gitbook/add36adfd3-image.png) ![Original vault detail page with its transaction form](/gitbook/9922876643-image.png) ![Original position-list shortcut for withdrawing a full position](/gitbook/8b71028977-image.png)
# Volo Vaults (/docs/guides/vaults) A vault pools deposits and deploys them according to a strategy. Two vaults that accept similar assets can use different protocols and have different exit windows. | When comparing vaults | What to look for | | --- | --- | | Asset | The exact deposit token, including its issuer or bridge, and the asset returned on withdrawal | | Yield source | Lending interest, staking rewards, trading fees or a partner incentive. Leveraged strategies also pay borrowing costs. | | Availability | Deposit status, remaining capacity and minimum deposit | | Fees | Performance, deposit and withdrawal fees, plus any swap fee. See [fees](/docs/guides/vault-user-guide#fees). | | Exit | When you can request a withdrawal and when assets are expected to reach your wallet | Use the [live vault directory](https://www.volosui.com/vaults) for current terms. To understand a strategy, start with [vault strategies](/docs/guides/vault-strategies), [risk factors](/docs/guides/vault-risks) or the [BTCFi design example](/docs/guides/btcfi). **Ready to use a vault?** [Make a deposit](/docs/guides/vault-user-guide#staking-assets-in-volo-vaults) or [withdraw from a position](/docs/guides/vault-user-guide#withdrawing-assets-from-volo-vaults). The [vault audit reports](/docs/developer/vault-audits) list the contracts and upgrades reviewed. # Volo Token (/docs/guides/volo-token) Volo has published a [governance proposal](/docs/guides/governance) outlining how token holders could vote on protocol changes. The proposal does not provide a token contract address or launch date. Follow [Volo’s official channels](/docs/guides/contact) for confirmed token announcements. # Connect a Sui wallet (/docs/guides/wallets) Open [Volo staking](https://www.volosui.com/stake) and select **Log In** to see the connection options for your device. Select the account that holds your funds on Sui mainnet. Keep some SUI in that account for network gas. The original guide listed the following wallets. Each provider publishes its current installation options. ## Slush [#slush-wallet] Slush is the successor to Sui Wallet. [Get Slush](https://slush.app/). ## Nightly [#nightly] Select the Sui account in your multi-chain wallet. [Get Nightly](https://wallet.nightly.app/). ## OneKey [#onekey] If you use a hardware wallet, have the device available to review and approve the request. [Get OneKey](https://www.onekey.so/). ## Surf Wallet [#surf-wallet] Use the installation link provided for your device. [Get Surf Wallet](https://surf.tech/). Once connected, you can [stake SUI](/docs/guides/stake-and-unstake) or [deposit into a vault](/docs/guides/vault-user-guide). # Volo Documentation (/docs) ## Product guides [#product-guides] - [Liquid staking](/docs/guides/liquid-staking) - [Volo Vaults](/docs/guides/vaults) - [All guides](/docs/guides) ## Common tasks [#common-tasks] - [Stake and unstake SUI](/docs/guides/stake-and-unstake) - [Deposit into a vault](/docs/guides/vault-user-guide#staking-assets-in-volo-vaults) - [Withdraw from a vault](/docs/guides/vault-user-guide#withdrawing-assets-from-volo-vaults) - [Explore Volo security](/docs/guides/security) ## Developer docs [#developer-docs] - [Integrate vSUI](/docs/developer/liquid-staking-token) - [Liquid staking Move API](/docs/developer/liquid-staking-token/staking-api) - [Vault architecture](/docs/developer/vault/architecture) - [All developer docs](/docs/developer)