@gainsnetwork/sdk 0.2.12-rc1 → 0.2.12-rc11
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/lib/constants.d.ts +4 -0
- package/lib/constants.js +5 -1
- package/lib/contracts/types/generated/GNSMultiCollatDiamond.d.ts +349 -175
- package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.d.ts +63 -22
- package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.js +787 -308
- package/lib/contracts/types/index.d.ts +4 -0
- package/lib/contracts/types/index.js +6 -1
- package/lib/contracts/utils/openTrades.js +5 -3
- package/lib/contracts/utils/pairs.d.ts +0 -1
- package/lib/contracts/utils/pairs.js +5 -18
- package/lib/trade/fees/index.d.ts +1 -1
- package/lib/trade/fees/index.js +6 -3
- package/lib/trade/liquidation.d.ts +10 -2
- package/lib/trade/liquidation.js +38 -4
- package/lib/trade/pnl.d.ts +5 -2
- package/lib/trade/pnl.js +6 -3
- package/lib/trade/spread.d.ts +5 -1
- package/lib/trade/spread.js +23 -3
- package/lib/trade/types.d.ts +12 -1
- package/lib/trade/types.js +4 -0
- package/package.json +1 -1
package/lib/constants.d.ts
CHANGED
|
@@ -250,6 +250,10 @@ export declare const pairs: {
|
|
|
250
250
|
"CORE/USD": string;
|
|
251
251
|
"JASMY/USD": string;
|
|
252
252
|
"DAR/USD": string;
|
|
253
|
+
"MEW/USD": string;
|
|
254
|
+
"DEGEN/USD": string;
|
|
255
|
+
"SLERF/USD": string;
|
|
256
|
+
"UXLINK/USD": string;
|
|
253
257
|
};
|
|
254
258
|
export declare const getAssetClassFromGroupIndex: (groupIndex: number) => string | undefined;
|
|
255
259
|
export declare const tickerChanges: {
|
package/lib/constants.js
CHANGED
|
@@ -258,6 +258,10 @@ exports.pairs = {
|
|
|
258
258
|
"CORE/USD": CRYPTO,
|
|
259
259
|
"JASMY/USD": CRYPTO,
|
|
260
260
|
"DAR/USD": CRYPTO,
|
|
261
|
+
"MEW/USD": CRYPTO,
|
|
262
|
+
"DEGEN/USD": CRYPTO,
|
|
263
|
+
"SLERF/USD": CRYPTO,
|
|
264
|
+
"UXLINK/USD": CRYPTO,
|
|
261
265
|
};
|
|
262
266
|
const getAssetClassFromGroupIndex = (groupIndex) => {
|
|
263
267
|
switch (groupIndex) {
|
|
@@ -292,7 +296,7 @@ exports.delistedPairIxs = new Set([
|
|
|
292
296
|
6, 31, 36, 42, 45, 48, 51, 54, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,
|
|
293
297
|
70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88,
|
|
294
298
|
89, 97, 99, 101, 106, 108, 52, 131, 147, 160, 179, 182, 183, 190, 229, 163,
|
|
295
|
-
155, 15, 170, 239,
|
|
299
|
+
155, 15, 170, 239, 251, 252, 253, 254,
|
|
296
300
|
]);
|
|
297
301
|
exports.delistedGroupsIxs = new Set([6, 7]);
|
|
298
302
|
exports.DEFAULT_PROTECTION_CLOSE_FACTOR = 1;
|