@orderly.network/ui-scaffold 2.10.2 → 2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1668,7 +1668,7 @@ var calculateAccountValue = (holdings, unsettlePnl, indexPrices) => {
1668
1668
  if (!price) {
1669
1669
  return acc;
1670
1670
  }
1671
- return acc + new Decimal(holding2.holding).times(price).toNumber();
1671
+ return new Decimal(holding2.holding).times(price).add(holding2.isolated_margin ?? 0).add(acc).toNumber();
1672
1672
  }, 0);
1673
1673
  return holding + unsettlePnl;
1674
1674
  };