Skip to main content
Retrieve the current active DeFi positions and idle balances for the user across all configured chains. This method provides a view of the user’s positions, including deployed capital and latent funds. For a more accurate and detailed portfolio view, see getPortfolio.

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 underlyingAmount is provided in the token’s least decimal units.
  • staleBalances are automatically picked up by the agent during the next optimization/rebalance window.