getUserBalances to check what funds are available in your order book 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.Parameters
Returns
Returns an object with the following string fields (token amounts as strings):pt— PT tokens from filled buy orders, available for withdrawalyt— YT tokens from filled or removed orders, available for withdrawalsy— SY tokens from filled sell orders, available for withdrawalstakedYt— YT locked in active sell orders (not directly withdrawable)staged— Accrued interest from YT in orders (collect separately)