Skip to content
Docs
Open app
Skip to Content

Liquid Staking

Stake SUI for vSUI, Volo’s reward-bearing liquid staking token, from your own programmable transactions.

  • @mysten/sui 2.39.1npm 3.0.1
  • TypeScript, ESM
  • Sui mainnet

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 (PTB).

How staking works

PTB callingstake_pool::stake(SUI)signed transactiondelegate SUI byvalidator weightvSUI minted at the exchange ratestake_pool::unstake(vSUI)SUI at the current rate, instantlywhile liquidity allowsrewards accrue every epochand raise the rateYour appUser walletVolo StakePoolSui validatorsYour appUser walletVolo StakePoolSui validators
PTBcallingstake_pool::stake(SUI)signedtransactiondelegateSUI byvalidatorweightvSUIminted attheexchangeratestake_pool::unstake(vSUI)SUI at thecurrentrate,instantlywhileliquidityallowsrewards accrueevery epoch andraise the rateYourappUserwalletVoloStakePoolSuivalidatorsYourappUserwalletVoloStakePoolSuivalidators
StepWhere it runsWhat happens
Stakestake_pool::stakeTakes a Coin<SUI>, charges any stake fee and returns a Coin<CERT> (vSUI) at the current exchange rate.
EarnSui validatorsStaking rewards accrue to the pool each epoch. Your vSUI balance stays the same; each vSUI becomes worth more SUI.
Unstakestake_pool::unstakeBurns vSUI and returns Coin<SUI> 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:

Exchange Rate=Total SUI (Principal + Rewards)Total vSUI Supply\text{Exchange Rate} = \frac{\text{Total SUI (Principal + Rewards)}}{\text{Total vSUI Supply}}

Token and objects

ItemValue
Name and symbolVolo Staked SUI, vSUI
Decimals9 (1 vSUI = 1,000,000,000 base units)
Coin type0x549e8b69270defbfafd4f94e17ec44cdbdd99820b33bda2278dea3b9a32d3f55::cert::CERT
Coin metadata0x8b0a4eab0d51cd298b87c2f26a5b20ccd70a0628dae2a38655d67405d20c3356
Package to call (V2)0x68d22cf8bdbcd11ecba1e094922873e4080d4d11133e2443fddda0bfd11dae20
StakePool (shared)0x2d914e23d82fedef1b5f56a32d5c64bdcc3087ccfea2b4d6ea51a71f587840e5
Metadata<CERT> (shared)0x680cd26af32b2bde8d3361e804c53ec1d1cfe24c7f039eb7f549e8dfde389a60
Sui system state0x5

The examples in this section share these IDs:

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 before you ship.

Ways to integrate

OptionUse it whenEntry points
Move calls in a PTBYou stake or unstake from a dApp or backend, or compose vSUI with other protocols.stake, unstake
Stats APIYou display the rate, APY or pool size, in any language.GET /api/volo/stats
Swap routingYou want vSUI at market price instead of minting it.The Astros aggregator SDK routes through the vSui liquidity source.

Core Move functions

FunctionPurpose
stake(pool, metadata, system, Coin<SUI>): Coin<CERT>Stake SUI and return vSUI to the PTB.
unstake(pool, metadata, system, Coin<CERT>): Coin<SUI>Redeem vSUI and return SUI to the PTB.
stake_entry / unstake_entrySame, but transfer the result to the sender.
get_amount_out(pool, metadata, amount_in, sui2lst): u64Quote the output after fees.
get_ratio_reverse(pool, metadata): u64SUI per vSUI, with 9 decimals of precision.

Every function, event and error code is in the Move API reference.

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.

On this page