import { PublicKey } from "@solana/web3.js";
const balances = orderbook.getUserBalances(wallet.publicKey);
// These can be withdrawn directly with ixWrapperWithdrawFunds
console.log("Withdrawable PT:", balances.pt);
console.log("Withdrawable YT:", balances.yt);
console.log("Withdrawable SY:", balances.sy);
// This requires ixWrapperCollectInterest first
console.log("Staged interest (collect separately):", balances.staged);
// This is locked in active sell orders
console.log("Staked YT (in open orders):", balances.stakedYt);