Signature
Parameters
Returns
A comprehensive breakdown of the user’s assets, separated into active positions and idle (stale) balances.Return Type
Portfolio Calculation
To calculate the total Portfolio Value, you must consider both active and idle funds:Total Portfolio Value = Active Positions + Stale Balances
positions: Represents capital that has been successfully deployed by the Zyfai agent into liquidity pools or vaults. These assets are actively earning yield.staleBalances: Represents “latent” funds that are sitting in the user’s Safe Smart Wallet but have not yet been allocated to a strategy (e.g., recently deposited funds or funds awaiting the next rebalance cycle).
Example
Notes
- The
underlyingAmountis provided in the token’s least decimal units. staleBalancesare automatically picked up by the agent during the next optimization/rebalance window.