@orderly.network/ui-scaffold 2.10.2-alpha.0 → 2.11.0-alpha.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.js CHANGED
@@ -1675,7 +1675,7 @@ var calculateAccountValue = (holdings, unsettlePnl, indexPrices) => {
1675
1675
  if (!price) {
1676
1676
  return acc;
1677
1677
  }
1678
- return acc + new utils.Decimal(holding2.holding).times(price).toNumber();
1678
+ return new utils.Decimal(holding2.holding).times(price).add(holding2.isolated_margin ?? 0).add(acc).toNumber();
1679
1679
  }, 0);
1680
1680
  return holding + unsettlePnl;
1681
1681
  };