@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.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
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
|
|
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
|
};
|