Skip to main content
Use getUserBalances to check what funds are available in your orderbook escrow and understand how to access each type.

Usage

Understanding Each Balance

stakedYt represents YT locked in active sell orders. Remove those orders first with ixWrapperRemoveOffer — the YT will move to yt, which is then withdrawable.
staged interest must be collected via ixWrapperCollectInterest — it cannot be withdrawn with ixWrapperWithdrawFunds. Interest is paid in SY tokens.

Parameters

Returns

Returns an object with the following string fields (token amounts as strings):
  • pt — PT tokens from filled buy orders, available for withdrawal
  • yt — YT tokens from filled or removed orders, available for withdrawal
  • sy — SY tokens from filled sell orders, available for withdrawal
  • stakedYt — YT locked in active sell orders (not directly withdrawable)
  • staged — Accrued interest from YT in orders (collect separately)