@gmx-io/sdk 2.3.1 → 2.4.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.
Files changed (64) hide show
  1. package/build/cjs/src/codegen/prebuilt/hashedKinkModelMarketRatesKeys.json +32 -0
  2. package/build/cjs/src/codegen/prebuilt/hashedMarketConfigKeys.json +272 -0
  3. package/build/cjs/src/codegen/prebuilt/hashedMarketValuesKeys.json +60 -0
  4. package/build/cjs/src/configs/chains.js +13 -1
  5. package/build/cjs/src/configs/markets.js +40 -7
  6. package/build/cjs/src/configs/tokens.js +12 -7
  7. package/build/cjs/src/utils/__tests__/numbers.spec.js +24 -0
  8. package/build/cjs/src/utils/__tests__/parseError.spec.js +61 -0
  9. package/build/cjs/src/utils/errors/parseError.js +10 -0
  10. package/build/cjs/src/utils/errors/transactionsErrors.js +6 -0
  11. package/build/cjs/src/utils/markets/__tests__/multicall.spec.js +27 -0
  12. package/build/cjs/src/utils/markets/multicall.js +5 -7
  13. package/build/cjs/src/utils/numbers/utils.js +7 -1
  14. package/build/cjs/src/utils/orders/utils.js +8 -1
  15. package/build/cjs/src/utils/paxos/__tests__/api.spec.js +23 -3
  16. package/build/cjs/src/utils/paxos/api.js +6 -0
  17. package/build/cjs/src/utils/swap/preparedSwapData.js +6 -4
  18. package/build/cjs/src/utils/swap/swapPath.js +1 -1
  19. package/build/cjs/src/utils/trade/__tests__/decreaseMarginCheck.spec.js +224 -0
  20. package/build/cjs/src/utils/trade/__tests__/getMaxWithdrawAmount.spec.js +128 -9
  21. package/build/cjs/src/utils/trade/decrease.js +198 -33
  22. package/build/cjs/src/utils/trade/decreaseMarginCheck.js +157 -0
  23. package/build/cjs/src/utils/trade/increaseMarginCheck.js +27 -15
  24. package/build/cjs/src/utils/trade/index.js +1 -0
  25. package/build/esm/src/codegen/prebuilt/hashedKinkModelMarketRatesKeys.json +32 -0
  26. package/build/esm/src/codegen/prebuilt/hashedMarketConfigKeys.json +272 -0
  27. package/build/esm/src/codegen/prebuilt/hashedMarketValuesKeys.json +60 -0
  28. package/build/esm/src/configs/chains.js +11 -0
  29. package/build/esm/src/configs/markets.js +41 -8
  30. package/build/esm/src/configs/tokens.js +13 -8
  31. package/build/esm/src/utils/__tests__/numbers.spec.js +25 -1
  32. package/build/esm/src/utils/__tests__/parseError.spec.js +62 -1
  33. package/build/esm/src/utils/errors/parseError.js +11 -1
  34. package/build/esm/src/utils/errors/transactionsErrors.js +6 -0
  35. package/build/esm/src/utils/markets/__tests__/multicall.spec.js +25 -0
  36. package/build/esm/src/utils/markets/multicall.js +5 -7
  37. package/build/esm/src/utils/numbers/utils.js +5 -0
  38. package/build/esm/src/utils/orders/utils.js +6 -0
  39. package/build/esm/src/utils/paxos/__tests__/api.spec.js +23 -3
  40. package/build/esm/src/utils/paxos/api.js +6 -0
  41. package/build/esm/src/utils/swap/preparedSwapData.js +6 -4
  42. package/build/esm/src/utils/swap/swapPath.js +2 -2
  43. package/build/esm/src/utils/trade/__tests__/decreaseMarginCheck.spec.js +222 -0
  44. package/build/esm/src/utils/trade/__tests__/getMaxWithdrawAmount.spec.js +129 -10
  45. package/build/esm/src/utils/trade/decrease.js +195 -32
  46. package/build/esm/src/utils/trade/decreaseMarginCheck.js +152 -0
  47. package/build/esm/src/utils/trade/increaseMarginCheck.js +25 -14
  48. package/build/esm/src/utils/trade/index.js +1 -0
  49. package/build/tsconfig.tsbuildinfo +1 -1
  50. package/build/types/src/codegen/prebuilt/index.d.ts +364 -0
  51. package/build/types/src/configs/chains.d.ts +6 -2
  52. package/build/types/src/configs/markets.d.ts +4 -4
  53. package/build/types/src/utils/markets/__tests__/multicall.spec.d.ts +1 -0
  54. package/build/types/src/utils/numbers/utils.d.ts +1 -0
  55. package/build/types/src/utils/orderTransactions/api.d.ts +1 -0
  56. package/build/types/src/utils/orders/utils.d.ts +1 -0
  57. package/build/types/src/utils/paxos/types.d.ts +2 -0
  58. package/build/types/src/utils/trade/__tests__/decreaseMarginCheck.spec.d.ts +1 -0
  59. package/build/types/src/utils/trade/decrease.d.ts +18 -0
  60. package/build/types/src/utils/trade/decreaseMarginCheck.d.ts +52 -0
  61. package/build/types/src/utils/trade/increaseMarginCheck.d.ts +11 -1
  62. package/build/types/src/utils/trade/index.d.ts +1 -0
  63. package/build/types/src/utils/trade/types.d.ts +1 -0
  64. package/package.json +1 -1
@@ -0,0 +1,157 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getTriggerDecreaseRemainingPositionMarginState = exports.getDecreaseResultingPositionMarginState = void 0;
4
+ const bigmath_1 = require("../bigmath");
5
+ const fees_1 = require("../fees");
6
+ const markets_1 = require("../markets");
7
+ const numbers_1 = require("../numbers");
8
+ const positions_1 = require("../positions");
9
+ const tokens_1 = require("../tokens");
10
+ const decrease_1 = require("./decrease");
11
+ const increaseMarginCheck_1 = require("./increaseMarginCheck");
12
+ /**
13
+ * Mirrors the gates of `DecreasePositionUtils.decreasePosition` from the gmx-synthetics build deployed on
14
+ * Arbitrum (release_2.2.1 @ 23c9d160) for a market decrease, a trigger decrease at `indexPriceForEvaluation`
15
+ * or a collateral withdrawal that leaves a position open.
16
+ */
17
+ function getDecreaseResultingPositionMarginState(p) {
18
+ const { isLong, position, sizeDeltaUsd, sizeDeltaInTokens, payedRemainingCollateralAmount, priceImpactDiffUsd, minCollateralUsd, minPositionSizeUsd, userReferralInfo, proDiscountFactor, } = p;
19
+ const { marketInfo, collateralToken } = (0, increaseMarginCheck_1.getMarketInfoAtIndexPrice)({
20
+ marketInfo: p.marketInfo,
21
+ collateralToken: p.collateralToken,
22
+ indexPrice: p.indexPriceForEvaluation,
23
+ });
24
+ const { indexToken } = marketInfo;
25
+ if (position.sizeInUsd <= 0n || position.sizeInTokens <= 0n || sizeDeltaUsd < 0n) {
26
+ return undefined;
27
+ }
28
+ if (sizeDeltaUsd >= position.sizeInUsd) {
29
+ return undefined;
30
+ }
31
+ if (indexToken.prices.minPrice <= 0n || indexToken.prices.maxPrice <= 0n || collateralToken.prices.minPrice <= 0n) {
32
+ return undefined;
33
+ }
34
+ let collateralDeltaAmount = bigmath_1.bigMath.min(p.collateralDeltaAmount, position.collateralAmount);
35
+ if (collateralDeltaAmount < 0n) {
36
+ collateralDeltaAmount = 0n;
37
+ }
38
+ const estimatedPositionPnlUsd = (0, positions_1.getPositionPnlUsd)({
39
+ marketInfo,
40
+ sizeInUsd: position.sizeInUsd,
41
+ sizeInTokens: position.sizeInTokens,
42
+ markPrice: (0, markets_1.getPriceForPnl)(indexToken.prices, isLong, false),
43
+ isLong,
44
+ });
45
+ const estimatedRealizedPnlUsd = bigmath_1.bigMath.mulDiv(estimatedPositionPnlUsd, sizeDeltaUsd, position.sizeInUsd);
46
+ const estimatedRemainingPnlUsd = estimatedPositionPnlUsd - estimatedRealizedPnlUsd;
47
+ const nextSizeInUsd = position.sizeInUsd - sizeDeltaUsd;
48
+ let estimatedRemainingCollateralUsd = (0, tokens_1.convertToUsd)(position.collateralAmount - collateralDeltaAmount, collateralToken.decimals, collateralToken.prices.minPrice);
49
+ if (estimatedRealizedPnlUsd < 0n) {
50
+ estimatedRemainingCollateralUsd += estimatedRealizedPnlUsd;
51
+ }
52
+ const minCollateralFactorMultiplier = isLong
53
+ ? marketInfo.minCollateralFactorForOpenInterestLong
54
+ : marketInfo.minCollateralFactorForOpenInterestShort;
55
+ let minCollateralFactorForOpenInterest = (0, numbers_1.applyFactor)((0, markets_1.getOpenInterestUsd)(marketInfo, isLong) - sizeDeltaUsd, minCollateralFactorMultiplier);
56
+ if (marketInfo.minCollateralFactor > minCollateralFactorForOpenInterest) {
57
+ minCollateralFactorForOpenInterest = marketInfo.minCollateralFactor;
58
+ }
59
+ const minCollateralUsdForOpenInterest = (0, numbers_1.applyFactor)(nextSizeInUsd, minCollateralFactorForOpenInterest);
60
+ const willCollateralBeSufficient = estimatedRemainingCollateralUsd >= 0n && estimatedRemainingCollateralUsd >= minCollateralUsdForOpenInterest;
61
+ let isCollateralWithdrawalCancelled = false;
62
+ if (!willCollateralBeSufficient || estimatedRemainingCollateralUsd + estimatedRemainingPnlUsd < minCollateralUsd) {
63
+ if (sizeDeltaUsd === 0n) {
64
+ return {
65
+ isLiquidatable: true,
66
+ reason: increaseMarginCheck_1.PositionMarginFailureReason.UnableToWithdrawCollateral,
67
+ remainingCollateralUsd: estimatedRemainingCollateralUsd,
68
+ minCollateralUsd,
69
+ minCollateralUsdForLeverage: minCollateralUsdForOpenInterest,
70
+ isCollateralWithdrawalCancelled: false,
71
+ };
72
+ }
73
+ isCollateralWithdrawalCancelled = collateralDeltaAmount > 0n;
74
+ estimatedRemainingCollateralUsd += (0, tokens_1.convertToUsd)(collateralDeltaAmount, collateralToken.decimals, collateralToken.prices.minPrice);
75
+ collateralDeltaAmount = 0n;
76
+ }
77
+ if (estimatedRemainingCollateralUsd + estimatedRemainingPnlUsd < minCollateralUsd) {
78
+ return undefined;
79
+ }
80
+ if (nextSizeInUsd < minPositionSizeUsd) {
81
+ return undefined;
82
+ }
83
+ const { proportionalPendingImpactDeltaAmount } = (0, fees_1.getProportionalPendingImpactValues)({
84
+ sizeInUsd: position.sizeInUsd,
85
+ pendingImpactAmount: position.pendingImpactAmount,
86
+ sizeDeltaUsd,
87
+ indexToken,
88
+ });
89
+ const collateralAfterCostsAmount = position.collateralAmount - payedRemainingCollateralAmount;
90
+ collateralDeltaAmount = (0, decrease_1.getCollateralDeltaAmountAfterPriceImpactDiff)({
91
+ collateralDeltaAmount,
92
+ priceImpactDiffUsd,
93
+ collateralToken,
94
+ });
95
+ if (collateralDeltaAmount > collateralAfterCostsAmount) {
96
+ collateralDeltaAmount = collateralAfterCostsAmount > 0n ? collateralAfterCostsAmount : 0n;
97
+ }
98
+ const nextCollateralAmount = collateralAfterCostsAmount - collateralDeltaAmount;
99
+ const marginState = (0, increaseMarginCheck_1.getResultingPositionMarginState)({
100
+ marketInfo: (0, markets_1.getMarketInfoWithOpenInterestDelta)({
101
+ marketInfo,
102
+ collateralToken,
103
+ isLong,
104
+ sizeDeltaUsd: -sizeDeltaUsd,
105
+ sizeDeltaInTokens: -sizeDeltaInTokens,
106
+ }),
107
+ collateralToken,
108
+ sizeInUsd: nextSizeInUsd,
109
+ sizeInTokens: position.sizeInTokens - sizeDeltaInTokens,
110
+ collateralAmount: nextCollateralAmount < 0n ? 0n : nextCollateralAmount,
111
+ pendingImpactAmount: position.pendingImpactAmount - proportionalPendingImpactDeltaAmount,
112
+ minCollateralUsd,
113
+ isLong,
114
+ userReferralInfo,
115
+ proDiscountFactor,
116
+ shouldValidateMinCollateralUsd: false,
117
+ });
118
+ return { ...marginState, isCollateralWithdrawalCancelled };
119
+ }
120
+ exports.getDecreaseResultingPositionMarginState = getDecreaseResultingPositionMarginState;
121
+ /**
122
+ * The same gates for a Take-Profit or Stop-Loss at its trigger price: `decreaseAmounts` are its amounts at that
123
+ * price and `collateralDeltaAmount` is the collateral withdrawal the order stores.
124
+ */
125
+ function getTriggerDecreaseRemainingPositionMarginState(p) {
126
+ const { marketInfo, collateralToken, isLong, position, decreaseAmounts } = p;
127
+ const { triggerPrice } = decreaseAmounts;
128
+ if (decreaseAmounts.isFullClose || triggerPrice === undefined || triggerPrice <= 0n) {
129
+ return undefined;
130
+ }
131
+ const isProfitKeptInPnlToken = (0, decrease_1.getIsProfitKeptInPnlToken)({
132
+ pnlToken: isLong ? marketInfo.longToken : marketInfo.shortToken,
133
+ collateralToken,
134
+ decreaseSwapType: decreaseAmounts.decreaseSwapType,
135
+ });
136
+ const costsPaidFromProfitAmount = isProfitKeptInPnlToken
137
+ ? (0, tokens_1.convertToTokenAmount)(decreaseAmounts.payedOutputUsd, collateralToken.decimals, decreaseAmounts.collateralPrice) ??
138
+ 0n
139
+ : 0n;
140
+ return getDecreaseResultingPositionMarginState({
141
+ marketInfo,
142
+ collateralToken,
143
+ isLong,
144
+ position,
145
+ sizeDeltaUsd: decreaseAmounts.sizeDeltaUsd,
146
+ sizeDeltaInTokens: decreaseAmounts.sizeDeltaInTokens,
147
+ collateralDeltaAmount: p.collateralDeltaAmount,
148
+ payedRemainingCollateralAmount: bigmath_1.bigMath.min(decreaseAmounts.payedRemainingCollateralAmount + costsPaidFromProfitAmount, position.collateralAmount),
149
+ priceImpactDiffUsd: decreaseAmounts.priceImpactDiffUsd,
150
+ minCollateralUsd: p.minCollateralUsd,
151
+ minPositionSizeUsd: p.minPositionSizeUsd,
152
+ userReferralInfo: p.userReferralInfo,
153
+ proDiscountFactor: p.proDiscountFactor,
154
+ indexPriceForEvaluation: triggerPrice,
155
+ });
156
+ }
157
+ exports.getTriggerDecreaseRemainingPositionMarginState = getTriggerDecreaseRemainingPositionMarginState;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getIncreaseResultingPositionState = exports.getIncreaseResultingPositionMarginState = exports.getResultingPositionMarginState = exports.getIsMaxLeverageMarginReason = exports.PositionMarginFailureReason = void 0;
3
+ exports.getIncreaseResultingPositionState = exports.getIncreaseResultingPositionMarginState = exports.getMarketInfoAtIndexPrice = exports.getResultingPositionMarginState = exports.getIsMaxLeverageMarginReason = exports.PositionMarginFailureReason = void 0;
4
4
  const fees_1 = require("../fees");
5
5
  const markets_1 = require("../markets");
6
6
  const numbers_1 = require("../numbers");
@@ -12,6 +12,7 @@ var PositionMarginFailureReason;
12
12
  PositionMarginFailureReason["NonPositiveRemainingMargin"] = "< 0";
13
13
  PositionMarginFailureReason["MinCollateralForLeverage"] = "min collateral for leverage";
14
14
  PositionMarginFailureReason["InsufficientCollateralUsd"] = "insufficient collateral usd";
15
+ PositionMarginFailureReason["UnableToWithdrawCollateral"] = "unable to withdraw collateral";
15
16
  PositionMarginFailureReason["MaxAllowedLeverage"] = "max allowed leverage";
16
17
  })(PositionMarginFailureReason || (exports.PositionMarginFailureReason = PositionMarginFailureReason = {}));
17
18
  function getIsMaxLeverageMarginReason(reason) {
@@ -24,10 +25,10 @@ exports.getIsMaxLeverageMarginReason = getIsMaxLeverageMarginReason;
24
25
  * Port of `PositionUtils.isPositionLiquidatable` from the gmx-synthetics build deployed on Arbitrum
25
26
  * (release_2.2.1 @ 23c9d160: release-v2.2c plus MarketUtils.getPositivePnl in the per-position pnl cap)
26
27
  * for a position whose pending fees have just been settled — the state the contract validates right
27
- * after an increase.
28
+ * after an increase or a decrease.
28
29
  */
29
30
  function getResultingPositionMarginState(p) {
30
- const { marketInfo, collateralToken, sizeInUsd, sizeInTokens, collateralAmount, pendingImpactAmount, minCollateralUsd, isLong, userReferralInfo, proDiscountFactor, } = p;
31
+ const { marketInfo, collateralToken, sizeInUsd, sizeInTokens, collateralAmount, pendingImpactAmount, minCollateralUsd, isLong, userReferralInfo, proDiscountFactor, shouldValidateMinCollateralUsd = true, } = p;
31
32
  const { indexToken } = marketInfo;
32
33
  const positionPnlUsd = (0, positions_1.getPositionPnlUsd)({
33
34
  marketInfo,
@@ -80,7 +81,7 @@ function getResultingPositionMarginState(p) {
80
81
  minCollateralUsd,
81
82
  minCollateralUsdForLeverage,
82
83
  };
83
- if (remainingCollateralUsd < minCollateralUsd) {
84
+ if (shouldValidateMinCollateralUsd && remainingCollateralUsd < minCollateralUsd) {
84
85
  return { ...state, isLiquidatable: true, reason: PositionMarginFailureReason.MinCollateral };
85
86
  }
86
87
  if (remainingCollateralUsd <= 0) {
@@ -98,6 +99,23 @@ function withPriceOverride(token, indexToken, price) {
98
99
  }
99
100
  return { ...token, prices: { minPrice: price, maxPrice: price } };
100
101
  }
102
+ function getMarketInfoAtIndexPrice(p) {
103
+ const { marketInfo, collateralToken, indexPrice } = p;
104
+ if (indexPrice === undefined || indexPrice <= 0n) {
105
+ return { marketInfo, collateralToken };
106
+ }
107
+ const { indexToken } = marketInfo;
108
+ return {
109
+ marketInfo: {
110
+ ...marketInfo,
111
+ indexToken: withPriceOverride(indexToken, indexToken, indexPrice),
112
+ longToken: withPriceOverride(marketInfo.longToken, indexToken, indexPrice),
113
+ shortToken: withPriceOverride(marketInfo.shortToken, indexToken, indexPrice),
114
+ },
115
+ collateralToken: withPriceOverride(collateralToken, indexToken, indexPrice),
116
+ };
117
+ }
118
+ exports.getMarketInfoAtIndexPrice = getMarketInfoAtIndexPrice;
101
119
  /**
102
120
  * Mirrors the post-increase gates of `IncreasePositionUtils.increasePosition` from the gmx-synthetics
103
121
  * build deployed on Arbitrum (release_2.2.1 @ 23c9d160: release-v2.2c plus MarketUtils.getPositivePnl
@@ -110,20 +128,14 @@ function getIncreaseResultingPositionMarginState(p) {
110
128
  exports.getIncreaseResultingPositionMarginState = getIncreaseResultingPositionMarginState;
111
129
  function getIncreaseResultingPositionState(p) {
112
130
  const { isLong, existingPosition, sizeDeltaUsd, sizeDeltaInTokens, collateralDeltaAmount, minCollateralUsd, userReferralInfo, proDiscountFactor, indexPriceForEvaluation, } = p;
113
- let { marketInfo, collateralToken } = p;
114
131
  if (sizeDeltaUsd <= 0n || sizeDeltaInTokens <= 0n) {
115
132
  return undefined;
116
133
  }
117
- if (indexPriceForEvaluation !== undefined && indexPriceForEvaluation > 0n) {
118
- const originalIndexToken = marketInfo.indexToken;
119
- marketInfo = {
120
- ...marketInfo,
121
- indexToken: withPriceOverride(marketInfo.indexToken, originalIndexToken, indexPriceForEvaluation),
122
- longToken: withPriceOverride(marketInfo.longToken, originalIndexToken, indexPriceForEvaluation),
123
- shortToken: withPriceOverride(marketInfo.shortToken, originalIndexToken, indexPriceForEvaluation),
124
- };
125
- collateralToken = withPriceOverride(collateralToken, originalIndexToken, indexPriceForEvaluation);
126
- }
134
+ const { marketInfo, collateralToken } = getMarketInfoAtIndexPrice({
135
+ marketInfo: p.marketInfo,
136
+ collateralToken: p.collateralToken,
137
+ indexPrice: indexPriceForEvaluation,
138
+ });
127
139
  const { indexToken } = marketInfo;
128
140
  if (indexToken.prices.minPrice <= 0n || indexToken.prices.maxPrice <= 0n || collateralToken.prices.minPrice <= 0n) {
129
141
  return undefined;
@@ -18,5 +18,6 @@ __exportStar(require("./types"), exports);
18
18
  __exportStar(require("./increase"), exports);
19
19
  __exportStar(require("./increaseMarginCheck"), exports);
20
20
  __exportStar(require("./decrease"), exports);
21
+ __exportStar(require("./decreaseMarginCheck"), exports);
21
22
  __exportStar(require("./decreaseOutputs"), exports);
22
23
  __exportStar(require("./trade"), exports);
@@ -1041,6 +1041,38 @@
1041
1041
  "baseBorrowingFactorShort": "0xa29c72f001fb4499f2f7528aef52e5820967aeb048d44cb2bc52b388f7059aee",
1042
1042
  "aboveOptimalUsageBorrowingFactorLong": "0x3d966e2b52c75168e1d1466bf99f4d28bb706288d917a5c103cd6d69f8585675",
1043
1043
  "aboveOptimalUsageBorrowingFactorShort": "0x99ae17d8442e29c266e1d4b0576efd0bb4e2afeaff94da351ac2856f4384fb9e"
1044
+ },
1045
+ "0x54bc430A788DFFD4ae35e751E10899489f5a953f": {
1046
+ "optimalUsageFactorLong": "0xbed03091e692905b6e59752b50c8441d45f18935838c29e55bb4f4e880e5198e",
1047
+ "optimalUsageFactorShort": "0x0dff074ff545c0435ed338b7f987c82454c476c1342941a83a5c3962c6debf23",
1048
+ "baseBorrowingFactorLong": "0x670d5735c2228c956155341c2a63980e0116e74ad2d6ea4425761d3481621586",
1049
+ "baseBorrowingFactorShort": "0x3f5b10bedc9a1ef60f175ff0298d7a806b7d64ca8c96ae8dbea49b2fafc4cec9",
1050
+ "aboveOptimalUsageBorrowingFactorLong": "0xb6a8074093bffa7839571b64a9c070e853c8490e6624aa325e9a425b5bf8cdff",
1051
+ "aboveOptimalUsageBorrowingFactorShort": "0xfc88aaacc95fc9acc060267ae4b2b94169b8c81de07285309eabeeb7fdf22b5d"
1052
+ },
1053
+ "0xc9ED746D613eEfC0F196658f6030e90482593004": {
1054
+ "optimalUsageFactorLong": "0xd29b133b8ad6ece9b64eb368f1f33151130e7a0301b4aa825e1fa0dba037a295",
1055
+ "optimalUsageFactorShort": "0xd5813751c9912ec824540102b89b627ba7dcc67e07676c0a59b391030886d950",
1056
+ "baseBorrowingFactorLong": "0x96ba081aa94bc1dee49a9c1d9a692a885fbfc94d52d1059f85e4c6518fe7c745",
1057
+ "baseBorrowingFactorShort": "0xb668dfb1b9c379a014fd77cec15da351db7968b2ae3b3fa66913c705bc0538e1",
1058
+ "aboveOptimalUsageBorrowingFactorLong": "0x70d5550cd5b46400e2ce17d78105da9993e61924fea89ae52a6e3e340e6e7dad",
1059
+ "aboveOptimalUsageBorrowingFactorShort": "0xb3dae3db55bdf2d4a118e3c0e8d7e8f7feb786545d066288a0269c6a8830fd58"
1060
+ },
1061
+ "0x2CeEafcA180B07C9d1d2f1086f8f59AAFd282832": {
1062
+ "optimalUsageFactorLong": "0x516610e2cb18945b8a516940d4537bfe0e59e4a721bd7f0790e6299cb080fe1c",
1063
+ "optimalUsageFactorShort": "0x6e24d758847ec60c463fda2e69bfd508eedbd24216acd78edf444c1774b1e0bc",
1064
+ "baseBorrowingFactorLong": "0xc6f6432e3c0476e1d2af0b9ae3f02c6a273725cdf86e5a74fc3705e59013d770",
1065
+ "baseBorrowingFactorShort": "0xdca26d40a3b6ea976bd61c0658a1dd65e24027be95d64ad1841e83c0ad065a52",
1066
+ "aboveOptimalUsageBorrowingFactorLong": "0x532a36f9b68c2c2035ff888e1b3b5abe0c74752d7a2e7e542c7981e10a18704e",
1067
+ "aboveOptimalUsageBorrowingFactorShort": "0xbde5f7976a35accbe19921e91b42a07b7cebcb07047ed7713920abaf4ba29b37"
1068
+ },
1069
+ "0x162C091263fBb3dfAf1D55DCC979533EB341DA5f": {
1070
+ "optimalUsageFactorLong": "0x8f7579903577ef62db0d360826704883c3267f6963a342bad3417172ca2b0f95",
1071
+ "optimalUsageFactorShort": "0x844e98da18a6e8f9af212a8e27134abb3956cf41dd8c972c90938300e39b20af",
1072
+ "baseBorrowingFactorLong": "0x6e8090e041b56ff7371bc82f6c497c6571108c7eeda8121b5b0160b203f4cfac",
1073
+ "baseBorrowingFactorShort": "0x9dd7673b798f0c8b453e337adcb7ef5a0d23f813526f82dd7ef5673b4e612a74",
1074
+ "aboveOptimalUsageBorrowingFactorLong": "0x9bb1b42cfa1305695993d8331ef3dfa8b3bc2f8ff6cf51a64f0d6094be7c89be",
1075
+ "aboveOptimalUsageBorrowingFactorShort": "0xc121327ac6b36d75c67f6435b4527df43fa0fbbccc8147d30aaed82831d36669"
1044
1076
  }
1045
1077
  },
1046
1078
  "43113": {
@@ -8841,6 +8841,278 @@
8841
8841
  "virtualMarketId": "0xa118f04df7f8b17480c501cec836849dd71f4e34886c96d55084a13612da33a1",
8842
8842
  "virtualLongTokenId": "0xd5258cb84f0039be58306488e8df941c05f3cf4f219e92aacb6561c736bbb960",
8843
8843
  "virtualShortTokenId": "0xa23e8bac741d48df65c35bd65583e85813c7f27e9d8075d75ad9a9e4dd0b72bb"
8844
+ },
8845
+ "0x54bc430A788DFFD4ae35e751E10899489f5a953f": {
8846
+ "isDisabled": "0x63cdcae73a622f9723c171bfb6a9cc6c9fd7ff57f48779dab3f6d41d93a5873d",
8847
+ "maxLongPoolAmount": "0xe0c2f6d51b2eb81d6a81304ec7e0b69c6cccc01cd88eaa7038fde4e489c7d2d9",
8848
+ "maxShortPoolAmount": "0xe0c2f6d51b2eb81d6a81304ec7e0b69c6cccc01cd88eaa7038fde4e489c7d2d9",
8849
+ "maxLongPoolUsdForDeposit": "0x98d53c0a65e72e6480c0a257f92b1817a1fdc9437a8b2603c8d430b2c37d8f30",
8850
+ "maxShortPoolUsdForDeposit": "0x98d53c0a65e72e6480c0a257f92b1817a1fdc9437a8b2603c8d430b2c37d8f30",
8851
+ "reserveFactorLong": "0x0e1ff6c6297886b59e89bebf33141942cf242d9ec1682902b06c8a6dc0ebee63",
8852
+ "reserveFactorShort": "0x2df6229f4d4b05ae8703aed1fb510cb90a3e80e03e717917c306275ea1af8b58",
8853
+ "openInterestReserveFactorLong": "0x522418e766f544f30c795f00082bcd77698abc7d05d78538fe60b672e94cb928",
8854
+ "openInterestReserveFactorShort": "0x234db98c56f90b23c2405980b4505014263f395c94b9d6ef2a862a49563797aa",
8855
+ "maxOpenInterestLong": "0x5dec343b14d56d81041f6380f2706483c9f2239b6ee757d2cc809358927f4bcc",
8856
+ "maxOpenInterestShort": "0x79523d72f999477bf917b21c4eb0d62368a9039ed37c1fb6ad0c04b026185dbf",
8857
+ "maxCollateralSumLongTokenLong": "0xed98cf6e66fabab070f8b0fad59c8ea54b4e21509446f641ae7399f27ea9acde",
8858
+ "maxCollateralSumLongTokenShort": "0x446cdd28a33a6b5f07799c46f2886ec09e7e1dd184d643f8c27a8b708db77d3d",
8859
+ "maxCollateralSumShortTokenLong": "0xed98cf6e66fabab070f8b0fad59c8ea54b4e21509446f641ae7399f27ea9acde",
8860
+ "maxCollateralSumShortTokenShort": "0x446cdd28a33a6b5f07799c46f2886ec09e7e1dd184d643f8c27a8b708db77d3d",
8861
+ "minPositionImpactPoolAmount": "0xba9e4d66b4d55a81d88b1af0537f2d8fdbd429d1a08c80f412a187b95f8d41c4",
8862
+ "positionImpactPoolDistributionRate": "0x2d5112d59ae0cf91450810cb45a1209f5fb456d654443fbe79b92d8c6b0f2431",
8863
+ "borrowingFactorLong": "0x02aa83aebcd342a5d50761771b26d5d6f9773df4c279e87f4f04987d1f624b4e",
8864
+ "borrowingFactorShort": "0xa6303f05568c28cee58d6292128d67dff0ffca11d04f6acbe4102c7961420bef",
8865
+ "borrowingExponentFactorLong": "0x44ede217c083eed69aee8f2a6644c12ef85c92f7d2e102fefd0dfe8fdd4f291a",
8866
+ "borrowingExponentFactorShort": "0x5bef1cbbc72c27bdf87ac259cd887da1601dabdd4acbd73ff4f23141e21506be",
8867
+ "fundingFactor": "0x1dd9d65f071944a199b4f6514551baff8418f99c60d2b7a91a8beea99fa9b6d7",
8868
+ "fundingExponentFactor": "0x6e96657bf7ffaf886957c7aa716d871e64903ce659841abf732926f713f9d4b7",
8869
+ "fundingIncreaseFactorPerSecond": "0xcfdc2be1934feb7ec28db163a0d2651e592721c3f5554748d4547f175d1d3660",
8870
+ "minFundingIncreaseRatePerSecond": "0xb2e49fa8839d42eeea5d91b78dc4f3bae39cec74b9431fbc77d4170b8587e032",
8871
+ "fundingDecreaseFactorPerSecond": "0x0f7f49c39a138b40aef734101faba72750ca6a42e33770c2b3c4bee369ce122c",
8872
+ "thresholdForStableFunding": "0x1dbcb97a7323f57180b324c69e906f058b44080f1b8c162ae89e849fc45824bf",
8873
+ "thresholdForDecreaseFunding": "0xd3afefc62034cd9cf63eb0969576404f6c48b6e77037f63dd684a58005aedbdf",
8874
+ "minFundingFactorPerSecondLong": "0xce86b4b087f9def873e491c6ab136bc8b539982cc90f66ad2bda9b2de90529ef",
8875
+ "minFundingFactorPerSecondShort": "0x315006cb272b2c4bf4a58726fc6d742e0a2488d25f36683344fe6dd05f1df053",
8876
+ "maxFundingFactorPerSecondLong": "0x6cdb39dc5dbf0c893a1deca34b8df3cfb528ca3e45466d0a85541cf2e28b5eeb",
8877
+ "maxFundingFactorPerSecondShort": "0x9bc8d9fcecc1df20f735b4336be750737d9b7c9e5b11d66370ffebb9ac8d8903",
8878
+ "maxPnlFactorForTradersLong": "0x27614401d648a4df1a9b43e4f986353e3e182aacd9e55f608b1e3dd35653642e",
8879
+ "maxPnlFactorForTradersShort": "0xea0e3e996c647cc3db91d32d93ef6338c5e22b539e0fb02c9d8d4081e9fa78b0",
8880
+ "maxPnlFactorForDepositsLong": "0x31dd76cb1a01c1683aa984781dc931e8fa69fb4919c9dc16541784668681739c",
8881
+ "maxPnlFactorForDepositsShort": "0xfc8c43fe6b820c705a9d529d39ebff5d32716bbaaffcd23d14640200bc27a9b8",
8882
+ "maxPnlFactorForWithdrawalsLong": "0x7e84add4d1e25c3c51caf68ede7278a2daca31e4fdeeb7dfb95e4160d5e47e44",
8883
+ "maxPnlFactorForWithdrawalsShort": "0x3ae4ddd5ad1476103088ac6c5758c0d311809fed459c45af1a3df242516cd604",
8884
+ "positionFeeFactorForBalanceWasImproved": "0x44d879d66f9c5ebefa745f981662d074f5378f5205ad4a5761724b16dcbea3a6",
8885
+ "positionFeeFactorForBalanceWasNotImproved": "0xf100c52988c98e06ae9b7509ca91d2db0aceaf8410722b1a83953ae4e54f8a85",
8886
+ "positionImpactFactorPositive": "0x1a1515d8748276d1a8d8ab95d8a05af13b7554c589c6d4a48d68a7cd1302dc1b",
8887
+ "positionImpactFactorNegative": "0xceb5d29df722ed15aaa8874b1e3edf7aec226e681a3b3f324fda05fefd095872",
8888
+ "maxPositionImpactFactorPositive": "0xee1c3cd82668f2076982a1c46d07b884260671e687644983c976e09846e53a79",
8889
+ "maxPositionImpactFactorNegative": "0xe1cc73609b6c01b0b0726f4361aab7bfa10880fcd82ac15c3600c9c42330b02c",
8890
+ "maxPositionImpactFactorForLiquidations": "0x0bf0ebf6384c703d0a230bc703aebbbdb6d4da04f793f224b83d1b76e05fc7de",
8891
+ "maxLendableImpactFactor": "0xb12a5b4f97a8c27a3ce4716ca342a34814daceac88abf7c021d46f9fff4da831",
8892
+ "maxLendableImpactFactorForWithdrawals": "0xadf089454a9c8b065dfb7bed1d34c45d93b33992e22f85105c68995573ced2b4",
8893
+ "maxLendableImpactUsd": "0x2ea1ab903dabd3fbcdd15b0522a5f6cc67fd38f00898a9ee26481bdee55fba1f",
8894
+ "lentPositionImpactPoolAmount": "0xb2b4f76d7d116d8f218c3a8736601f373904c8067ebeb2c5220d486f7079f08a",
8895
+ "minCollateralFactor": "0x45dedaf764aad79ef49d27146bb25b5f52f4e5ec63e84727aebec365b5eb438d",
8896
+ "minCollateralFactorForLiquidation": "0x75e734b333011de69c9120ce7b6f3f88cf37234fcd67f50db8ba7d0be36b42b2",
8897
+ "minCollateralFactorForOpenInterestLong": "0x84ddf374a664bba07aa7318b2e3ce1c60c225290c5131e7c028438b5f3f289bb",
8898
+ "minCollateralFactorForOpenInterestShort": "0x772b9935d02ec1ea322d332180f4ae611e628e1c5552d9352675d50c7e173a3b",
8899
+ "positionImpactExponentFactorPositive": "0x85786af4dd5dc25f44926a9bafda7e37aaea0d55b539139186f432c644fe5425",
8900
+ "positionImpactExponentFactorNegative": "0x54fae9ce7f30ac885a261f266cccf4acd594f12e6625befdeebc413c82272605",
8901
+ "swapFeeFactorForBalanceWasImproved": "0x5e1103e6d5cfda47ada748332ec865ad3b5c9eacff3b009b3d22f10478ef2d5c",
8902
+ "swapFeeFactorForBalanceWasNotImproved": "0xd698fd9db0f106a0ad25bcf77a8f2d8a99c65fd4be51268fa4639c857a0a38d7",
8903
+ "atomicSwapFeeFactor": "0x8ec219f8540e4ee5086599fd0ce6a194a5eedfdcfc3cdcbcfd4623b3442ad4b0",
8904
+ "swapImpactFactorPositive": "0x47cbe854aeaf8c982f576cdd85a847634cb9eb0180fd752f76093e7099e38c6e",
8905
+ "swapImpactFactorNegative": "0xccee8b2c0d9e6599f3ba8a214ff8c4ba2bbf8c766d224b18af43fa7e0c029586",
8906
+ "swapImpactExponentFactor": "0x3ff158607095451c315c65826db99dd354aeefb74343ca15dc65077ce9a1fd27",
8907
+ "withdrawalFeeFactorBalanceWasImproved": "0x99a42a6a9a77c70a03ef5f1a088f56d4c6a30dfaf2ec0cba57d75fe76ece3238",
8908
+ "withdrawalFeeFactorBalanceWasNotImproved": "0x7b1038b149cc3b64f7957fdca1bbcdccb7500bbbadb38a1809cd8abb4fd3c32f",
8909
+ "virtualMarketId": "0x3261efd19dc1279e3d04bc460dbf428ff97de963458494e8045b50b926bdb3e1",
8910
+ "virtualLongTokenId": "0xa23e8bac741d48df65c35bd65583e85813c7f27e9d8075d75ad9a9e4dd0b72bb",
8911
+ "virtualShortTokenId": "0xa23e8bac741d48df65c35bd65583e85813c7f27e9d8075d75ad9a9e4dd0b72bb"
8912
+ },
8913
+ "0xc9ED746D613eEfC0F196658f6030e90482593004": {
8914
+ "isDisabled": "0x13c929a3bace6d7121e283f44dc0c283cd762df1d811502e5cb278ade34ccad8",
8915
+ "maxLongPoolAmount": "0x65ba465e139ef639c05a8817075c0b92da29efb6fa22a0d324ecc5d7b8d0a4d6",
8916
+ "maxShortPoolAmount": "0x65ba465e139ef639c05a8817075c0b92da29efb6fa22a0d324ecc5d7b8d0a4d6",
8917
+ "maxLongPoolUsdForDeposit": "0xa634db863113bf538a8973b5c20ecc2bb9188140ee2e9167077f6e1789235d32",
8918
+ "maxShortPoolUsdForDeposit": "0xa634db863113bf538a8973b5c20ecc2bb9188140ee2e9167077f6e1789235d32",
8919
+ "reserveFactorLong": "0x753f33517fcf7f30bb1c895159c79b96e06e0c3dc7df08991782447bfe0ed5b7",
8920
+ "reserveFactorShort": "0xcab75e1915ffc2911fa214e24b25ef80cfbfeda268bcf003be72499169d89005",
8921
+ "openInterestReserveFactorLong": "0x9bc7be2f845d15ad85be2951b8ba9dcd3ede7f3a1bb1c4c625ab1fdb12ea54a7",
8922
+ "openInterestReserveFactorShort": "0xe449918ee3b14ced53b4d493e34e9873b342131c2ac6af300a38c3b8d11dffb4",
8923
+ "maxOpenInterestLong": "0xe4486d8842d9d917af844fa90a4d164e9dd918bc270b8bd2ef24c4cb55c7c87b",
8924
+ "maxOpenInterestShort": "0x2f528ea480dc2a15d43abb7cdd33e81ff5fb4f3c6cf3feb69628c367ff7af326",
8925
+ "maxCollateralSumLongTokenLong": "0xfc223d9aba266833c256b23a71713e79ef831bffb0230a96f459fcfef8bb4afd",
8926
+ "maxCollateralSumLongTokenShort": "0x58eef398a94518c4fecbd49952741c2cfaf8b83b859e9845cc1add685ecb4774",
8927
+ "maxCollateralSumShortTokenLong": "0xfc223d9aba266833c256b23a71713e79ef831bffb0230a96f459fcfef8bb4afd",
8928
+ "maxCollateralSumShortTokenShort": "0x58eef398a94518c4fecbd49952741c2cfaf8b83b859e9845cc1add685ecb4774",
8929
+ "minPositionImpactPoolAmount": "0x76cec0bab3969d06ffe3ec590d4f6242acc5f75d6ca1287a699b4d1a4e04c1ba",
8930
+ "positionImpactPoolDistributionRate": "0x5acc4090b8533cded1d3700e5bb37d156deb32a6d6caaae70a0d1f0fd516d3ed",
8931
+ "borrowingFactorLong": "0x9061a0d8d43d3b12db266bbf2e42f1e6748260842f7a0b792de25e1bb93a939e",
8932
+ "borrowingFactorShort": "0x144569e538095d596489eea1b31e6d6c9a7b8db4e44063c13afffaf9ac3f5822",
8933
+ "borrowingExponentFactorLong": "0x315e416bd4dcff9ef95bd540985512d80375da1af5a9d147f6bc4247dd87be1a",
8934
+ "borrowingExponentFactorShort": "0xcdbfe23b4fc26d03f8e2c866fcefc0d6ce69aae838a61003391455c7a4b2064e",
8935
+ "fundingFactor": "0x01297f029affda20556df291e31a06aef77b192598173af77e668cfcd783b7e3",
8936
+ "fundingExponentFactor": "0xf456834a73a77e293e18d5ae56a7d9aca4bee39753d266de68e10f1dda49d05a",
8937
+ "fundingIncreaseFactorPerSecond": "0x9abad9893cb8d30f8b0318e5fafdbb5a6c091af04c3a503a55dff1de4a1331b4",
8938
+ "minFundingIncreaseRatePerSecond": "0x7d436183258498c7c85a82dab183f2ed208e53709c7f2e2e87cf38bddd78d0cf",
8939
+ "fundingDecreaseFactorPerSecond": "0xb3e42d2216d058725bd0288f0a90fa1d30bedfc43fc07fe0b2a30d757e6526b2",
8940
+ "thresholdForStableFunding": "0x9aed6c08c8bcd2eccb7f70485615075f6d6ef19a70fb6d68297eb0ba07cb7fa7",
8941
+ "thresholdForDecreaseFunding": "0x14eddd2d1b34e9039dc0a0ef4baf16cec47aa8fe174062fdc3b0b4e15d57091a",
8942
+ "minFundingFactorPerSecondLong": "0x602ebeead83c306ee18df4ee13898146de5c29b8392b3dbccf108110e0dad41f",
8943
+ "minFundingFactorPerSecondShort": "0xffaf48793beb1009834fe6acf70c9b507f045601681ae8edaf46d49de221a649",
8944
+ "maxFundingFactorPerSecondLong": "0xc241d990541568ad28e44ffba4dbb1b0f22b99e2f1540f4e82c462cf21413d13",
8945
+ "maxFundingFactorPerSecondShort": "0xd3680742c068c2e105285a6d7f094d41b5dd373291411158bc7b904efe17e186",
8946
+ "maxPnlFactorForTradersLong": "0x10cccac22cae653e17004bb7c85fc1b6356ba8c915229b28f31cfe5ced16e5b8",
8947
+ "maxPnlFactorForTradersShort": "0x9ffb78518837317c5ed953e3674493be7b07144851ce40b2822983e51b72003a",
8948
+ "maxPnlFactorForDepositsLong": "0x28acd296d6238c2a0c90868ddf973353de99b531bbe1185d786fcd3afb9f112e",
8949
+ "maxPnlFactorForDepositsShort": "0xf523e62eb9164a4819a5c68a71832e63ad7731fe5a356af8bb6db4ecabc73476",
8950
+ "maxPnlFactorForWithdrawalsLong": "0x7fd638021a01671559da90863aa81ce501e1a0488e8fb93af35d6f9b8ebb2a4b",
8951
+ "maxPnlFactorForWithdrawalsShort": "0x91b2e7b5ff817b5d99d24aae5af908bb5979bf1f5c2b9e601120ca161d0fef1b",
8952
+ "positionFeeFactorForBalanceWasImproved": "0xcf626ebadfb778768c7bb6fa9a61a767702c6ac2341fbc90b5e68d4604ac3391",
8953
+ "positionFeeFactorForBalanceWasNotImproved": "0x06b4b9f7ed31d690ed7854ecfa20fe2d869cd8d7ae1da91cebebee04486c7e2c",
8954
+ "positionImpactFactorPositive": "0x0c2561867bc365da31613a293ef039e42bebf082c38570e35446e1b2f546cf7b",
8955
+ "positionImpactFactorNegative": "0x6718d33039f14b82ec9fad5799943b9af1fe4ce91a7f19de9f69f1fcfb564de9",
8956
+ "maxPositionImpactFactorPositive": "0xbb0912457766b3d635e8ff30bd0c074c8e610b5e2feba3a4bc8f4a49bd5d3906",
8957
+ "maxPositionImpactFactorNegative": "0x0df950ff9935a1ca28f12082bd24f63cae7c89a66cc2fb63e284b31a67b9e327",
8958
+ "maxPositionImpactFactorForLiquidations": "0x0f0f2c380bf94f7f5e9ed7d5cfd01b12c7b4b4835d065178bdeabe702f5401ee",
8959
+ "maxLendableImpactFactor": "0x388558b1202bfd8a6be22c959b2a010be72b4c205714fdc570bbecde1fefb660",
8960
+ "maxLendableImpactFactorForWithdrawals": "0xbda87e29887386230b09a8467fd602a45320fb5431fa9a0c3883ce024204f094",
8961
+ "maxLendableImpactUsd": "0x04e1445f9b5036c3150099b34d10f70a7c6bfe7dda846c1fb3f9cf057d7ff682",
8962
+ "lentPositionImpactPoolAmount": "0x4b371644894dfaa3c192db16faf1eb2916b15bd79ab47ddd1728cb8cfabf54c3",
8963
+ "minCollateralFactor": "0xc4ddbd3953924fcc48f49f0f160733227c271a32bfc0abff994eb5c33ae9268d",
8964
+ "minCollateralFactorForLiquidation": "0x517b16fee818b3ca2befe96a9527d3bc33f9fe12a8b788fcbcd6c2f2c9fbecca",
8965
+ "minCollateralFactorForOpenInterestLong": "0x39acfb1cdae8904cd507c5d42bfdf859d0796fff08eb1f41c75a3f2ea12237bb",
8966
+ "minCollateralFactorForOpenInterestShort": "0x387297281e38f05ca2f562c724a5eb6a7c2e6183aaab5789f7a0afa5c9e1ce93",
8967
+ "positionImpactExponentFactorPositive": "0x5d45473619c25bf53e94c4707ea4725a0ea07ef23b2f8405da390ac5f4a8ce74",
8968
+ "positionImpactExponentFactorNegative": "0xcc735c8062726f605dc8623513d59db04fc75e60bec2ef95d4e20677051a1eea",
8969
+ "swapFeeFactorForBalanceWasImproved": "0xb1b921d384a66e24be2c76dca399111187eaca0d2dcc4d7439852d9d84fa3b7e",
8970
+ "swapFeeFactorForBalanceWasNotImproved": "0xa22aef8e5042eb9c2a6bd7fafd88400497b5da2b2a335c63d6dff1bb6a3941d5",
8971
+ "atomicSwapFeeFactor": "0x97a3fcae0c51546b293f0ae0e1f16b4c9163103909c2b2e28e5c65bd192fd4ff",
8972
+ "swapImpactFactorPositive": "0x43206841cb804a103f01a947ab5051949174c0bf803eb7ae1b38ba51b0aa80ad",
8973
+ "swapImpactFactorNegative": "0xd6c5cbd6f9ff2504375941c6d22b1d1633d6658f0d914a67e6a4b0b8bf79d236",
8974
+ "swapImpactExponentFactor": "0xfe0d3c447e8528ba6f702971bd766c4fcd184df6f7c86e220989920c4cc5005c",
8975
+ "withdrawalFeeFactorBalanceWasImproved": "0x87703515c22678f338ec08d99ac3b84f4dc634f46adc43cd542224874175e9c7",
8976
+ "withdrawalFeeFactorBalanceWasNotImproved": "0xa8b8ed326a1524309665b4b70ecdf4ee8612bd7f7e04a13ab5f76f072cdab36a",
8977
+ "virtualMarketId": "0x460be2c11ee3ce9a0234908102429fb333d2676e2be33fd55cc6429ff408b402",
8978
+ "virtualLongTokenId": "0xa23e8bac741d48df65c35bd65583e85813c7f27e9d8075d75ad9a9e4dd0b72bb",
8979
+ "virtualShortTokenId": "0xa23e8bac741d48df65c35bd65583e85813c7f27e9d8075d75ad9a9e4dd0b72bb"
8980
+ },
8981
+ "0x2CeEafcA180B07C9d1d2f1086f8f59AAFd282832": {
8982
+ "isDisabled": "0x9792b644c00cc63f91f00c0d2a017f231b29064d52e856b8bbfda264a3a0fdd8",
8983
+ "maxLongPoolAmount": "0x41f1bed0cf030dabef2c4d73b5e81e5f86d464c6da941ef10991d7d1ca424369",
8984
+ "maxShortPoolAmount": "0x41f1bed0cf030dabef2c4d73b5e81e5f86d464c6da941ef10991d7d1ca424369",
8985
+ "maxLongPoolUsdForDeposit": "0xee7227795080ede307392db6831ab934fbd9d738a5de0910bf44e4daf4204c9a",
8986
+ "maxShortPoolUsdForDeposit": "0xee7227795080ede307392db6831ab934fbd9d738a5de0910bf44e4daf4204c9a",
8987
+ "reserveFactorLong": "0x8af6f4bd7754f89fd170c5fd1c3a9026e6c3207e2154bd87e7528e4649bb3b4e",
8988
+ "reserveFactorShort": "0x12c73a72ddfc67cef195f62c017c4774a822c42bbd1766dad633cfc548ee8b47",
8989
+ "openInterestReserveFactorLong": "0x06fc5b0fd7d10ab8f61cd16d53952e1bdec2aa4a32e22b0ebcf829fe14cef222",
8990
+ "openInterestReserveFactorShort": "0x703df92a6ad75ecb518f4f90023829f3d25c5c1fba5e734ba33cca6604285698",
8991
+ "maxOpenInterestLong": "0xde2fd66cc957bd76460fb45b6838d9fe7cf8a8e7c8a90c6c4461a3349824a9c1",
8992
+ "maxOpenInterestShort": "0xd464f280124da22430dde3ac6ca6f7c5252576dd75c520d9a68b3357954cf4a2",
8993
+ "maxCollateralSumLongTokenLong": "0xe8e97f6744c7815a792d0211ef7387a7447ecd235f4f8acce4df65811a700d97",
8994
+ "maxCollateralSumLongTokenShort": "0xbfd6f65079c2204be17bb3c104180f04e50487e240739df3aebafbccf6403a79",
8995
+ "maxCollateralSumShortTokenLong": "0xe8e97f6744c7815a792d0211ef7387a7447ecd235f4f8acce4df65811a700d97",
8996
+ "maxCollateralSumShortTokenShort": "0xbfd6f65079c2204be17bb3c104180f04e50487e240739df3aebafbccf6403a79",
8997
+ "minPositionImpactPoolAmount": "0x6e80f3386519bbf62d04c347a0f04a087f9dec02ec273c200ee14e7a55a5405f",
8998
+ "positionImpactPoolDistributionRate": "0xcb220aac9095ce77efdf8311d3a5af7ed41009844d2895c69e5c97b0a70b74db",
8999
+ "borrowingFactorLong": "0x33b59fcb6fcc63eeb9914c4b5fc4d384c37c21a13de8381ddb2e36609d3351ad",
9000
+ "borrowingFactorShort": "0xf8626738352ac8748eb02698956cb4258e048657e05466cefe8ac4267dec2550",
9001
+ "borrowingExponentFactorLong": "0x86fb3cc992d38c24264c340eca0005a4a297682f89271d4780e1bba597bffeb7",
9002
+ "borrowingExponentFactorShort": "0xdb2a3e81cc3ea93b559554a65c433fd24cf12983a6079130ccbc44d7956edab2",
9003
+ "fundingFactor": "0xae3f105483a0196f6803f0d164014162f251980a12b1aa1aaca9bb6effae1e05",
9004
+ "fundingExponentFactor": "0x732d3e9d901d365100e5e84ea49fa8e23cfd2ecb42831168c1b486044c153335",
9005
+ "fundingIncreaseFactorPerSecond": "0xb3419448503443e6871b17edd0c02c32af08381cccce6ef0c52050cffc4dcc9f",
9006
+ "minFundingIncreaseRatePerSecond": "0xef64996504c0271454aa0f35b551abcc525d41e4fb0d9147fa8aca85314fece8",
9007
+ "fundingDecreaseFactorPerSecond": "0xef1d21a8c524b887602e8cedb6bcd3c9f2978e679372cb0873f9c2ac965f038c",
9008
+ "thresholdForStableFunding": "0x53b01248b55fd0a9d303810c1fcd9aa44662204ef096df382964b04ebd02485f",
9009
+ "thresholdForDecreaseFunding": "0x75424d7790afa5c0006aa75863f047fb189e956ee863f68cac05b00c1fc90733",
9010
+ "minFundingFactorPerSecondLong": "0xaeb950d17d66cc2a005fe6e481f453b89936d4c70f800939001d3c4eb50fce12",
9011
+ "minFundingFactorPerSecondShort": "0xfa6301188784c329ec0f59b4b7861426653590c8e569be837051a4592f627130",
9012
+ "maxFundingFactorPerSecondLong": "0xb2637e1a92809080868d3552e6c7a8cc0b4f8547656d361abde39bf60550cc73",
9013
+ "maxFundingFactorPerSecondShort": "0x6933fec1ac9de73114a7f334df1b3f88ecdfb7e3979b33d0af7b385eb539ec6f",
9014
+ "maxPnlFactorForTradersLong": "0x5070ac648530a89c0b8313650ec46a32ec787f999d4259e58982690743448430",
9015
+ "maxPnlFactorForTradersShort": "0x9f64dc9463b321dd205a1bce5ee7443c6afd73457da1f506abc2a5cd370cf190",
9016
+ "maxPnlFactorForDepositsLong": "0xafdf4e0c9fad3bb2be56aa0203837d1123eef760afae8a9869476b2182071fc5",
9017
+ "maxPnlFactorForDepositsShort": "0x1353bb59ac530fb2d8efa4ada887ff36dedefbc11ebc0f2b46a3beec3b493009",
9018
+ "maxPnlFactorForWithdrawalsLong": "0x3cca13ef7e5500fd76afd4e65addee724b742197f237f50529f9ba816bab5321",
9019
+ "maxPnlFactorForWithdrawalsShort": "0x82373ea55b5220954a2aee544eb0834e27045f692a966ee86ed12112eaf35f23",
9020
+ "positionFeeFactorForBalanceWasImproved": "0x90845d0cc68c6cbdcfddf928016ccae470cebe0492fca49d8567513241176656",
9021
+ "positionFeeFactorForBalanceWasNotImproved": "0x31ad5870f7a95a4824bbb11a74af2df63fc5ae8d926ac4ecf8ebba7a39fcd05a",
9022
+ "positionImpactFactorPositive": "0xdc059f70692240cd79a2aa9cafde516f17cc94a7709db2ecc1fdd5dad6c5c3f4",
9023
+ "positionImpactFactorNegative": "0x0d29023eeb35fb3993037e9cc458d363ab7bab9280576ef7be1abf23964cc8bd",
9024
+ "maxPositionImpactFactorPositive": "0xc09e80044eddcd50db3865d4cff6ab0fd5c4fe4bd2162b1694637721db6c0ca7",
9025
+ "maxPositionImpactFactorNegative": "0xc3b626b601b0398896e56f10860291440c3ce4215b430ffeaebfa1948905a7bd",
9026
+ "maxPositionImpactFactorForLiquidations": "0xd27de3058f121cefedc30b48f26cc94665922c406a988cafacd1f3f07f56f82d",
9027
+ "maxLendableImpactFactor": "0x11d3ca22228bb39606c451cea3d2ce6c207881510f1244bb26137b75bdccb449",
9028
+ "maxLendableImpactFactorForWithdrawals": "0xef266f23845bd2d18d7d9b737581af8ee2479af1f3e1beb8a7b19da70177b626",
9029
+ "maxLendableImpactUsd": "0x1b9567a9dcb79eb4aa7d755bfe12fbe0d2eba6c7d90cf1e68ffd19c0cc03abb6",
9030
+ "lentPositionImpactPoolAmount": "0xdec5d4adc56e62122dcccd029fbf6d3f2a57132edad377ec4c3e2175bceb01af",
9031
+ "minCollateralFactor": "0x8349f5481e2c6d92430a24943de148b3f2eea7959c5f00f43d28c4f53ed5fd7b",
9032
+ "minCollateralFactorForLiquidation": "0xf4e6d3e1490c159a28dafbcadfad28b85d980cefd725529a5dd249aaf3613ed4",
9033
+ "minCollateralFactorForOpenInterestLong": "0xd5471ec414b895165896bfd22e9f16420b7f8078a03417af7b5259d35c331e96",
9034
+ "minCollateralFactorForOpenInterestShort": "0x6a83b2976ab55af11d49859955a9365dba0e3e1650a57c157d9a8b5e55b0946d",
9035
+ "positionImpactExponentFactorPositive": "0xab9b68ba3deeec530375cf0d86a6ca36e7d82db52f8785650fe02818f532378b",
9036
+ "positionImpactExponentFactorNegative": "0xfe15a5b43f1de666fb8210e6fc56713db22e1244522abb12e11a42fa72fd5c28",
9037
+ "swapFeeFactorForBalanceWasImproved": "0x4c0e45b52aca85111f2da2a154f325e1598cf6a72f87d13d288b0caf0e701d70",
9038
+ "swapFeeFactorForBalanceWasNotImproved": "0x15d90e14cacc604d4ec069bf64c123af61dd7f06b2475bccb782ebce40aa4085",
9039
+ "atomicSwapFeeFactor": "0x1025d6eff93a9063843c6fc10e038725dd60e56fc01c6d4cb1dfa2b15f557df5",
9040
+ "swapImpactFactorPositive": "0x154064eecb818691256a9415a0a52071c7ac165ac7b8324ae4e1fa1b250c0162",
9041
+ "swapImpactFactorNegative": "0xc3b9dbb819c5617033e1c6ebb330c210a5df6610b07ae4e8e2d896210e1cee78",
9042
+ "swapImpactExponentFactor": "0xba5ab7e54b0b9ac02c5fed61fee860aa88fedc534ce30e13f3e7a9441734dfd7",
9043
+ "withdrawalFeeFactorBalanceWasImproved": "0xd9cb807f23ac204b9f61270ce134ecaae2d59f400bfa9ea55fe9c6c9ca3f8202",
9044
+ "withdrawalFeeFactorBalanceWasNotImproved": "0x54ea30e60ad146b39d75ace2aea3afb5163b91c6079b43dc19909ea995956f01",
9045
+ "virtualMarketId": "0x7d244607822d528d802bd6775bae0fd805e73e8c284a607c70dc16b6a8ac897c",
9046
+ "virtualLongTokenId": "0xa23e8bac741d48df65c35bd65583e85813c7f27e9d8075d75ad9a9e4dd0b72bb",
9047
+ "virtualShortTokenId": "0xa23e8bac741d48df65c35bd65583e85813c7f27e9d8075d75ad9a9e4dd0b72bb"
9048
+ },
9049
+ "0x162C091263fBb3dfAf1D55DCC979533EB341DA5f": {
9050
+ "isDisabled": "0xb6cefccdad2081d08d215e5805fccacfa0d7e52c4d6f731360af7c5ae47e9648",
9051
+ "maxLongPoolAmount": "0x3cb61ab6aa38650499c718cf3ade1b1250ed58b08a462ceec8bfddf3c07ee6b5",
9052
+ "maxShortPoolAmount": "0x3cb61ab6aa38650499c718cf3ade1b1250ed58b08a462ceec8bfddf3c07ee6b5",
9053
+ "maxLongPoolUsdForDeposit": "0x1876358fad3cdcb39ddd60f9e44244d133530cd3d22393f35e07ac2fddcf39db",
9054
+ "maxShortPoolUsdForDeposit": "0x1876358fad3cdcb39ddd60f9e44244d133530cd3d22393f35e07ac2fddcf39db",
9055
+ "reserveFactorLong": "0x2d5b2b97a9ede2dfe9df91a1ac1373b75b9d678bfa672c44dc4e3bc527a9a345",
9056
+ "reserveFactorShort": "0x3a334f7af4b3bb83c289087d76d7435be4e3bdeb25a5e6b0107a475de857b8b5",
9057
+ "openInterestReserveFactorLong": "0xe037be26ad33381fea594b5d249919118a13997361f6023a6f5dc14cce9738b4",
9058
+ "openInterestReserveFactorShort": "0xe93e274da082ddf1e7cfdc480efc710bb8b7a0f386b75bd0b199ee9a08e61d18",
9059
+ "maxOpenInterestLong": "0xe7641064b8632b909d95f581d8f852f369f6017e0483fdb033d7fb7de32cae05",
9060
+ "maxOpenInterestShort": "0x5aa4d1d379d77bb0ad6c923b62f94755ceffa52d255d9fa20d13ba35d2600eab",
9061
+ "maxCollateralSumLongTokenLong": "0xcab1a4c300e88e1df3168d6b71e8cbe1916ec2a337525fc56c632acd0235361a",
9062
+ "maxCollateralSumLongTokenShort": "0x5fdbd432fee57178bd6c8362f14e096b926eff931b8bc32e3615cdcee4e9509e",
9063
+ "maxCollateralSumShortTokenLong": "0xcab1a4c300e88e1df3168d6b71e8cbe1916ec2a337525fc56c632acd0235361a",
9064
+ "maxCollateralSumShortTokenShort": "0x5fdbd432fee57178bd6c8362f14e096b926eff931b8bc32e3615cdcee4e9509e",
9065
+ "minPositionImpactPoolAmount": "0x883c8e89ffa86be8593ba83919c220cd980e91a6ae5b17e3bf9fde426810ae77",
9066
+ "positionImpactPoolDistributionRate": "0xddcf6dfae2e7a6654f9848af2d964dd9a113de94a9c67b1617aa4b9ec9488c53",
9067
+ "borrowingFactorLong": "0x8e30fba5e046201c8ef7c4814f333256f064dcb2b9e4931edb019311bf9c305d",
9068
+ "borrowingFactorShort": "0xc37ac51ff43d9a99b68404458f051da6ebe2625ab5c13497b3d38acd11e55fb3",
9069
+ "borrowingExponentFactorLong": "0xd4f3877f6886fd6e9007e76035c7739aad9905f8f11de323eb6170f936178870",
9070
+ "borrowingExponentFactorShort": "0x09678b7205bc88c2171d2232e76037e94dd16883c265f3e5259b9574978d8d5e",
9071
+ "fundingFactor": "0x08cf2969260e1adcd52bd493cf363a47dca906bb52f04be23616795c85d97ee8",
9072
+ "fundingExponentFactor": "0x9c321423be59de5ee3214f00121fe907e59e858af335515b9fff94a09cc1fcc0",
9073
+ "fundingIncreaseFactorPerSecond": "0x6a2007b78ce01b3333531d0bcc845602637f0b484bfc30faf2f6955608d2d866",
9074
+ "minFundingIncreaseRatePerSecond": "0xb5a3841944b404886e874662b62ee14c9e58d82b1b0854f45dc0dd7ccc0afa8a",
9075
+ "fundingDecreaseFactorPerSecond": "0xb802027fb47119bccbc2667f073baf84a6c107f2fbacba12eda95b138ac367be",
9076
+ "thresholdForStableFunding": "0xefe0e8708be4b04c67115b72a99680c9fc11af965c3bcf657bffb7303c907ad7",
9077
+ "thresholdForDecreaseFunding": "0xdc8467bc4c779526d2af89f078d13bbeece2401fd74f915c6e6e10c56e751ab3",
9078
+ "minFundingFactorPerSecondLong": "0xed0778f4944e82e42100aa201c0761f0caa0a5a3e11d3dfbd92ae30de9458036",
9079
+ "minFundingFactorPerSecondShort": "0x92700b2f052a15cb3da531798c38c4e14c26d5d428750824b3303cd1a5316110",
9080
+ "maxFundingFactorPerSecondLong": "0x443d29bf782c8ce4c35db25d03881a4f418b1753d36e8d6990708829a48f9f3a",
9081
+ "maxFundingFactorPerSecondShort": "0xec4067afe4a93cc4bd9fbf1effdac6494af90c50e7e593e71f8b15604261e2b1",
9082
+ "maxPnlFactorForTradersLong": "0xdc2983a394f978a40ffc6b12477ebf0e907e9853b3da2166feb2618268de34b9",
9083
+ "maxPnlFactorForTradersShort": "0x187d9949ccc352d1e546ac18972ace260b4741f07c042edf13a0734e5f3cea66",
9084
+ "maxPnlFactorForDepositsLong": "0x1a3b5af482729bc7967b426c6680db17d14fa750f2d1708e915b78f27bef5016",
9085
+ "maxPnlFactorForDepositsShort": "0xb6c9db5e3105a18be7d310132730744f1455a2b408a7670266bf4cc0944bd741",
9086
+ "maxPnlFactorForWithdrawalsLong": "0x91dec2ad3e37be1fd4d913907431c496fd2a12be9960e6d0108c9ef96571edba",
9087
+ "maxPnlFactorForWithdrawalsShort": "0x6603466b7481c85316c67812a3a0e9bdf261cf8dd218a6ae8b850ed7ad5d5983",
9088
+ "positionFeeFactorForBalanceWasImproved": "0xe6574f771ac64453dd1d5bf770b494f562b13398b8a439d8260b357febc568d3",
9089
+ "positionFeeFactorForBalanceWasNotImproved": "0x314ea7963b7f3f4b0471d31decb5de25d7210cea0e9612c3d62bcdac0baa5743",
9090
+ "positionImpactFactorPositive": "0xe85af6348dc677dc3aff1cdf41a59a516c3af50a77ff8bd572ae258b46d514bf",
9091
+ "positionImpactFactorNegative": "0x5fc0b24838510dda103ce44eaa85158a619a6316d2aa08b06e981808dd37adc3",
9092
+ "maxPositionImpactFactorPositive": "0xd449eeb00a69371117bed3d62ebb233f57f68b047234cb86e2f8afb9ed740dd1",
9093
+ "maxPositionImpactFactorNegative": "0x24ef6a7c8b665c9e3de6c17bb614b2003d4d20e5711747d7f770657d451e25c9",
9094
+ "maxPositionImpactFactorForLiquidations": "0x370ee7374746f4e9b966fa0d574d06095d8e3c528c42b938e2ed201a42637f8e",
9095
+ "maxLendableImpactFactor": "0xa1f105dc2c06d547283160c23bafe19467e26a5ae94b3649420c7e6b47eb0e00",
9096
+ "maxLendableImpactFactorForWithdrawals": "0xe3d6efad501bb56498ab700e837f667ce8ec989bc35aff51945f3b16a8418d7d",
9097
+ "maxLendableImpactUsd": "0x5eb3b3ff5cc45c3dcb2dde2efb1aec7e00356167538e1f15bc203c0d7daa37ce",
9098
+ "lentPositionImpactPoolAmount": "0x329d68d1384b8c787fe171f99434459840b4bbc3fdc83101af9ff7f574057890",
9099
+ "minCollateralFactor": "0x302ed479a4f716fe9c106e1bd74607ab7a47837b4502930f195c37022ea4f8ad",
9100
+ "minCollateralFactorForLiquidation": "0x6a5b1eeaca6afa4c9f69e159d5f910bcbf3e45981b675e6c9e7638cf52eb01ca",
9101
+ "minCollateralFactorForOpenInterestLong": "0x9e50b5a22b286a8341f06ed723a080a619ab0322686f017071926eacc296327f",
9102
+ "minCollateralFactorForOpenInterestShort": "0xf5ab4e21ea9b1912285a0bf687cd40bab533d0b0ad22fe88c38933f170b942e5",
9103
+ "positionImpactExponentFactorPositive": "0x4707d2bce2ca7e9cc544dba3b5f747bad7d09eeda838b57637b27cca9b5afac5",
9104
+ "positionImpactExponentFactorNegative": "0xdfeca73cb32db67d8b187826298347ed7cc5b0f040c446aa375f4af683c04f69",
9105
+ "swapFeeFactorForBalanceWasImproved": "0xbc64c108a03893f8846e14cc753a9220ce38fde5ffda042fec6e7c5f2a067e2d",
9106
+ "swapFeeFactorForBalanceWasNotImproved": "0x62b4a88ed02df66556148929d173e3b0ed37674402aa3ec44781a1ed133efde7",
9107
+ "atomicSwapFeeFactor": "0xaced0a08462d231cdbba2507f83cef9690d7da4cddd2492acde7d9b1717f83ac",
9108
+ "swapImpactFactorPositive": "0xe030cb9f28d6f171a92473d7dba84e799499c467da4a060486f6a56cf3a66521",
9109
+ "swapImpactFactorNegative": "0x25919e8627bdd944c56779088aee55b0010f1fb365336695156c0612cc9b56ac",
9110
+ "swapImpactExponentFactor": "0x596687a2cb9b0037e366b54ae0e55d9dd92fd1bb0e96d2ff1814e56a9716bae3",
9111
+ "withdrawalFeeFactorBalanceWasImproved": "0x4329f400226bd4149b1f5109984a68cffcf043f98a788bc862772670f6ff75dc",
9112
+ "withdrawalFeeFactorBalanceWasNotImproved": "0xd717f18ba4b3b23d010d215ba3f7475bd84cf11dd08c6d6d07ee578b19a4e5a6",
9113
+ "virtualMarketId": "0xb861f944075f93e1b934e72fc4adf680e947ed99bfbb7c9137f37400f2c3a169",
9114
+ "virtualLongTokenId": "0xa23e8bac741d48df65c35bd65583e85813c7f27e9d8075d75ad9a9e4dd0b72bb",
9115
+ "virtualShortTokenId": "0xa23e8bac741d48df65c35bd65583e85813c7f27e9d8075d75ad9a9e4dd0b72bb"
8844
9116
  }
8845
9117
  },
8846
9118
  "43113": {