@gainsnetwork/sdk 0.2.43-rc4 → 0.2.44-rc1

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.
@@ -300,6 +300,12 @@ export declare const pairs: {
300
300
  "STORJ/USD": string;
301
301
  "RAY/USD": string;
302
302
  "BTCDEGEN/USD": string;
303
+ "PNUT/USD": string;
304
+ "ACT/USD": string;
305
+ "GRASS/USD": string;
306
+ "ZEN/USD": string;
307
+ "LUMIA/USD": string;
308
+ "ALPH/USD": string;
303
309
  };
304
310
  export declare const syntheticPairs: Set<string>;
305
311
  export declare const parentToSyntheticPairMap: Map<string, string>;
package/lib/constants.js CHANGED
@@ -308,6 +308,12 @@ exports.pairs = {
308
308
  "STORJ/USD": CRYPTO,
309
309
  "RAY/USD": CRYPTO,
310
310
  "BTCDEGEN/USD": CRYPTO,
311
+ "PNUT/USD": CRYPTO,
312
+ "ACT/USD": CRYPTO,
313
+ "GRASS/USD": CRYPTO,
314
+ "ZEN/USD": CRYPTO,
315
+ "LUMIA/USD": CRYPTO,
316
+ "ALPH/USD": CRYPTO,
311
317
  };
312
318
  exports.syntheticPairs = new Set(["BTCDEGEN/USD"]);
313
319
  exports.parentToSyntheticPairMap = new Map([["BTC/USD", "BTCDEGEN/USD"]]);
@@ -346,7 +352,7 @@ exports.delistedPairIxs = new Set([
346
352
  6, 31, 36, 45, 48, 51, 54, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
347
353
  71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
348
354
  97, 99, 101, 106, 108, 52, 131, 147, 160, 179, 182, 183, 190, 229, 163, 15,
349
- 170, 239, 254, 230, 4, 275, 290, 296,
355
+ 170, 239, 254, 230, 4, 275, 290, 296, 301, 302, 303, 304, 305, 306,
350
356
  ]);
351
357
  exports.delistedGroupsIxs = new Set([6, 7]);
352
358
  exports.DEFAULT_PROTECTION_CLOSE_FACTOR = 1;
@@ -406,4 +406,10 @@ const PAIR_INDEX_TO_DESCRIPTION = {
406
406
  [types_1.PairIndex.STORJUSD]: "Storj to US Dollar",
407
407
  [types_1.PairIndex.RAYUSD]: "Raydium to US Dollar",
408
408
  [types_1.PairIndex.BTCDEGEN]: "Bitcoin to US Dollar",
409
+ [types_1.PairIndex.PNUTUSD]: "Peanut the Squirrel to US Dollar",
410
+ [types_1.PairIndex.ACTUSD]: "The AI Prophecy to US Dollar",
411
+ [types_1.PairIndex.GRASSUSD]: "Grass to US Dollar",
412
+ [types_1.PairIndex.ZENUSD]: "Horizen to US Dollar",
413
+ [types_1.PairIndex.LUMIAUSD]: "Lumia to US Dollar",
414
+ [types_1.PairIndex.ALPHUSD]: "Alephium to US Dollar",
409
415
  };
@@ -41,6 +41,9 @@ const getLiqPnlThresholdP = (liquidationParams, leverage) => {
41
41
  if (leverage > liquidationParams.endLeverage) {
42
42
  return liquidationParams.endLiqThresholdP;
43
43
  }
44
+ if (liquidationParams.startLiqThresholdP === liquidationParams.endLiqThresholdP) {
45
+ return liquidationParams.endLiqThresholdP;
46
+ }
44
47
  return (liquidationParams.startLiqThresholdP -
45
48
  ((leverage - liquidationParams.startLeverage) *
46
49
  (liquidationParams.startLiqThresholdP -
@@ -519,5 +519,11 @@ export declare enum PairIndex {
519
519
  HOTUSD = 297,
520
520
  STORJUSD = 298,
521
521
  RAYUSD = 299,
522
- BTCDEGEN = 300
522
+ BTCDEGEN = 300,
523
+ PNUTUSD = 301,
524
+ ACTUSD = 302,
525
+ GRASSUSD = 303,
526
+ ZENUSD = 304,
527
+ LUMIAUSD = 305,
528
+ ALPHUSD = 306
523
529
  }
@@ -330,4 +330,10 @@ var PairIndex;
330
330
  PairIndex[PairIndex["STORJUSD"] = 298] = "STORJUSD";
331
331
  PairIndex[PairIndex["RAYUSD"] = 299] = "RAYUSD";
332
332
  PairIndex[PairIndex["BTCDEGEN"] = 300] = "BTCDEGEN";
333
+ PairIndex[PairIndex["PNUTUSD"] = 301] = "PNUTUSD";
334
+ PairIndex[PairIndex["ACTUSD"] = 302] = "ACTUSD";
335
+ PairIndex[PairIndex["GRASSUSD"] = 303] = "GRASSUSD";
336
+ PairIndex[PairIndex["ZENUSD"] = 304] = "ZENUSD";
337
+ PairIndex[PairIndex["LUMIAUSD"] = 305] = "LUMIAUSD";
338
+ PairIndex[PairIndex["ALPHUSD"] = 306] = "ALPHUSD";
333
339
  })(PairIndex = exports.PairIndex || (exports.PairIndex = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gainsnetwork/sdk",
3
- "version": "0.2.43-rc4",
3
+ "version": "0.2.44-rc1",
4
4
  "description": "Gains Network SDK",
5
5
  "main": "./lib/index.js",
6
6
  "files": [