hoodchain - v0.1.0
    Preparing search index...

    Function getPortfolio

    • Read every registry Stock Token balance for owner in one multicall sweep and value the non-zero holdings.

      Correctness notes (the two mistakes generic trackers make):

      1. USD value is balance × feed price — the Robinhood Chainlink feeds are already multiplier-adjusted, so applying uiMultiplier to the value double-counts corporate actions.
      2. Share-equivalent units are balance × uiMultiplier ÷ 1e18 — raw token balances understate positions after splits/dividends. Both numbers are exposed per position, and shareEquivalent is cross-checkable on-chain against the token's own balanceOfUI().

      Parameters

      Returns Promise<Portfolio>