@gainsnetwork/sdk 0.2.12-rc3 → 0.2.12-rc4

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.
@@ -15,7 +15,7 @@ const getLiquidationPrice = (trade, fee, initialAccFees, context) => {
15
15
  if (((_a = context === null || context === void 0 ? void 0 : context.liquidationParams) === null || _a === void 0 ? void 0 : _a.maxLiqSpreadP) !== undefined &&
16
16
  context.liquidationParams.maxLiqSpreadP > 0) {
17
17
  const closingSpreadP = (0, spread_1.getSpreadP)(context.pairSpreadP, true, context.liquidationParams);
18
- liqPriceDistance += trade.openPrice * closingSpreadP;
18
+ liqPriceDistance -= trade.openPrice * closingSpreadP;
19
19
  }
20
20
  return trade.long
21
21
  ? Math.max(trade.openPrice - liqPriceDistance, 0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gainsnetwork/sdk",
3
- "version": "0.2.12-rc3",
3
+ "version": "0.2.12-rc4",
4
4
  "description": "Gains Network SDK",
5
5
  "main": "./lib/index.js",
6
6
  "files": [