@gainsnetwork/sdk 0.1.19-rc7 → 0.1.20-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.
- package/lib/constants.d.ts +2 -1
- package/lib/constants.js +6 -5
- package/lib/contracts/types/generated/GNSBorrowingFeesV6_3_2.d.ts +979 -0
- package/lib/contracts/types/generated/GNSBorrowingFeesV6_3_2.js +2 -0
- package/lib/contracts/types/generated/GNSBorrowingFeesV6_4.d.ts +1058 -0
- package/lib/contracts/types/generated/GNSBorrowingFeesV6_4.js +2 -0
- package/lib/contracts/types/generated/GNSPairInfosV6_1.d.ts +911 -0
- package/lib/contracts/types/generated/GNSPairInfosV6_1.js +2 -0
- package/lib/contracts/types/generated/GNSPairsStorageV6.d.ts +660 -0
- package/lib/contracts/types/generated/GNSPairsStorageV6.js +2 -0
- package/lib/contracts/types/generated/GNSTradingCallbacksV6_3_2.d.ts +806 -0
- package/lib/contracts/types/generated/GNSTradingCallbacksV6_3_2.js +2 -0
- package/lib/contracts/types/generated/GNSTradingCallbacksV6_4.d.ts +821 -0
- package/lib/contracts/types/generated/GNSTradingCallbacksV6_4.js +2 -0
- package/lib/contracts/types/generated/GTokenV6_3_2.d.ts +1838 -0
- package/lib/contracts/types/generated/GTokenV6_3_2.js +2 -0
- package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_3_2__factory.d.ts +88 -0
- package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_3_2__factory.js +1654 -0
- package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_4__factory.d.ts +113 -0
- package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_4__factory.js +1742 -0
- package/lib/contracts/types/generated/factories/GNSPairInfosV6_1__factory.d.ts +98 -0
- package/lib/contracts/types/generated/factories/GNSPairInfosV6_1__factory.js +1485 -0
- package/lib/contracts/types/generated/factories/GNSPairsStorageV6__factory.d.ts +117 -0
- package/lib/contracts/types/generated/factories/GNSPairsStorageV6__factory.js +1265 -0
- package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_3_2__factory.d.ts +82 -0
- package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_3_2__factory.js +1273 -0
- package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_4__factory.d.ts +82 -0
- package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_4__factory.js +1326 -0
- package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.d.ts +110 -0
- package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.js +2682 -0
- package/lib/contracts/utils/pairs.js +2 -1
- package/lib/markets/forex.js +1 -2
- package/lib/trade/fees/tiers/index.js +2 -1
- package/lib/trade/types.d.ts +2 -1
- package/lib/trade/types.js +2 -1
- package/package.json +1 -1
|
@@ -320,5 +320,6 @@ const PAIR_INDEX_TO_DESCRIPTION = {
|
|
|
320
320
|
[types_1.PairIndex.ONDOUSD]: "Ondo to US Dollar",
|
|
321
321
|
[types_1.PairIndex.MNTUSD]: "Mantle to US Dollar",
|
|
322
322
|
[types_1.PairIndex.KASUSD]: "Kaspa to US Dollar",
|
|
323
|
-
[types_1.PairIndex.
|
|
323
|
+
[types_1.PairIndex.RONINUSD]: "Ronin to US Dollar",
|
|
324
|
+
[types_1.PairIndex.ENAUSD]: "Ethena to US Dollar",
|
|
324
325
|
};
|
package/lib/markets/forex.js
CHANGED
|
@@ -36,8 +36,7 @@ const isForexLowLiquidity = (timestampToCheck, pair) => {
|
|
|
36
36
|
// CHF minor pairs: increase low liquidity window by additional 30 mins
|
|
37
37
|
const pairIndex = pair === null || pair === void 0 ? void 0 : pair.pairIndex;
|
|
38
38
|
if (pairIndex && chfMinorPairIds.includes(+pairIndex)) {
|
|
39
|
-
return ((isInDST &&
|
|
40
|
-
((hour == 15 && minute >= 15) || (hour >= 16 && hour < 19))) ||
|
|
39
|
+
return ((isInDST && ((hour == 15 && minute >= 15) || (hour >= 16 && hour < 19))) ||
|
|
41
40
|
(!isInDST && ((hour == 16 && minute >= 15) || (hour >= 17 && hour < 20))));
|
|
42
41
|
}
|
|
43
42
|
return ((isInDST && ((hour == 15 && minute >= 45) || (hour >= 16 && hour < 19))) ||
|
|
@@ -7,8 +7,9 @@ exports.MAX_FEE_TIERS = 8;
|
|
|
7
7
|
const getCurrentDay = () => Math.floor(Date.now() / 1000 / 60 / 60 / 24);
|
|
8
8
|
exports.getCurrentDay = getCurrentDay;
|
|
9
9
|
const getFeeTiersCount = (feeTiers) => {
|
|
10
|
+
var _a;
|
|
10
11
|
for (let i = exports.MAX_FEE_TIERS; i > 0; --i) {
|
|
11
|
-
if (feeTiers[i - 1].feeMultiplier > 0) {
|
|
12
|
+
if (((_a = feeTiers[i - 1]) === null || _a === void 0 ? void 0 : _a.feeMultiplier) > 0) {
|
|
12
13
|
return i;
|
|
13
14
|
}
|
|
14
15
|
}
|
package/lib/trade/types.d.ts
CHANGED
package/lib/trade/types.js
CHANGED
|
@@ -232,5 +232,6 @@ var PairIndex;
|
|
|
232
232
|
PairIndex[PairIndex["ONDOUSD"] = 215] = "ONDOUSD";
|
|
233
233
|
PairIndex[PairIndex["MNTUSD"] = 216] = "MNTUSD";
|
|
234
234
|
PairIndex[PairIndex["KASUSD"] = 217] = "KASUSD";
|
|
235
|
-
PairIndex[PairIndex["
|
|
235
|
+
PairIndex[PairIndex["RONINUSD"] = 218] = "RONINUSD";
|
|
236
|
+
PairIndex[PairIndex["ENAUSD"] = 219] = "ENAUSD";
|
|
236
237
|
})(PairIndex = exports.PairIndex || (exports.PairIndex = {}));
|