@gmx-io/sdk 1.8.0 → 1.9.1

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 (127) hide show
  1. package/README.md +1 -1
  2. package/build/cjs/scripts/subsquid-codegen.js +1 -1
  3. package/build/cjs/src/abis/ArbSys.js +11 -0
  4. package/build/cjs/src/abis/index.js +2 -0
  5. package/build/cjs/src/clients/v1/testUtil.js +1 -1
  6. package/build/cjs/src/clients/v2/index.js +8 -1
  7. package/build/cjs/src/codegen/prebuilt/hashedKinkModelMarketRatesKeys.json +16 -88
  8. package/build/cjs/src/codegen/prebuilt/hashedMarketConfigKeys.json +136 -748
  9. package/build/cjs/src/codegen/prebuilt/hashedMarketValuesKeys.json +30 -165
  10. package/build/cjs/src/configs/__tests__/markets.spec.js +1 -16
  11. package/build/cjs/src/configs/api.js +10 -1
  12. package/build/cjs/src/configs/contracts.js +2 -0
  13. package/build/cjs/src/configs/dataStore.js +13 -3
  14. package/build/cjs/src/configs/express.js +1 -0
  15. package/build/cjs/src/configs/markets.js +14 -77
  16. package/build/cjs/src/configs/tokens.js +22 -90
  17. package/build/cjs/src/test/fixtures/arbitrumMarkets.json +0 -72
  18. package/build/cjs/src/test/mock.js +12 -1
  19. package/build/cjs/src/utils/__tests__/fees.spec.js +36 -0
  20. package/build/cjs/src/utils/__tests__/markets.spec.js +233 -0
  21. package/build/cjs/src/utils/__tests__/positionPnlCap.spec.js +30 -3
  22. package/build/cjs/src/utils/__tests__/positions.spec.js +5 -5
  23. package/build/cjs/src/utils/__tests__/prices.spec.js +97 -0
  24. package/build/cjs/src/utils/express/utils/gelatoRelayUtils.js +2 -0
  25. package/build/cjs/src/utils/express/utils/gmxRelayUtils.js +145 -0
  26. package/build/cjs/src/utils/express/utils/gmxRelayUtils.spec.js +163 -0
  27. package/build/cjs/src/utils/express/utils/index.js +1 -0
  28. package/build/cjs/src/utils/fees/index.js +8 -5
  29. package/build/cjs/src/utils/fees/priceImpact.js +4 -9
  30. package/build/cjs/src/utils/markets/utils.js +57 -1
  31. package/build/cjs/src/utils/numbers/index.js +1 -0
  32. package/build/cjs/src/utils/numbers/prbMath.js +154 -0
  33. package/build/cjs/src/utils/positions/utils.js +66 -43
  34. package/build/cjs/src/utils/prices/utils.js +28 -1
  35. package/build/cjs/src/utils/stats/__tests__/api.spec.js +100 -0
  36. package/build/cjs/src/utils/stats/api.js +32 -0
  37. package/build/cjs/src/utils/stats/types.js +4 -0
  38. package/build/cjs/src/utils/trade/__tests__/increase.spec.js +580 -0
  39. package/build/cjs/src/utils/trade/__tests__/increaseInvariants.spec.js +258 -0
  40. package/build/cjs/src/utils/trade/__tests__/increaseMarginCheck.spec.js +837 -0
  41. package/build/cjs/src/utils/trade/increase.js +255 -32
  42. package/build/cjs/src/utils/trade/increaseMarginCheck.js +179 -0
  43. package/build/cjs/src/utils/trade/index.js +1 -0
  44. package/build/cjs/src/utils/trade/trade.js +11 -1
  45. package/build/cjs/src/utils/tradeHistory/utils.js +3 -0
  46. package/build/cjs/src/utils/yield/api.js +9 -1
  47. package/build/esm/scripts/subsquid-codegen.js +1 -1
  48. package/build/esm/src/abis/ArbSys.js +9 -0
  49. package/build/esm/src/abis/index.js +2 -0
  50. package/build/esm/src/clients/v1/testUtil.js +1 -1
  51. package/build/esm/src/clients/v2/index.js +5 -1
  52. package/build/esm/src/codegen/prebuilt/hashedKinkModelMarketRatesKeys.json +16 -88
  53. package/build/esm/src/codegen/prebuilt/hashedMarketConfigKeys.json +136 -748
  54. package/build/esm/src/codegen/prebuilt/hashedMarketValuesKeys.json +30 -165
  55. package/build/esm/src/configs/__tests__/markets.spec.js +2 -17
  56. package/build/esm/src/configs/api.js +8 -0
  57. package/build/esm/src/configs/contracts.js +2 -0
  58. package/build/esm/src/configs/dataStore.js +8 -0
  59. package/build/esm/src/configs/express.js +1 -0
  60. package/build/esm/src/configs/markets.js +14 -77
  61. package/build/esm/src/configs/tokens.js +22 -90
  62. package/build/esm/src/test/fixtures/arbitrumMarkets.json +0 -72
  63. package/build/esm/src/test/mock.js +10 -0
  64. package/build/esm/src/utils/__tests__/fees.spec.js +37 -1
  65. package/build/esm/src/utils/__tests__/markets.spec.js +234 -1
  66. package/build/esm/src/utils/__tests__/positionPnlCap.spec.js +30 -3
  67. package/build/esm/src/utils/__tests__/positions.spec.js +5 -5
  68. package/build/esm/src/utils/__tests__/prices.spec.js +98 -1
  69. package/build/esm/src/utils/express/utils/gelatoRelayUtils.js +2 -0
  70. package/build/esm/src/utils/express/utils/gmxRelayUtils.js +137 -0
  71. package/build/esm/src/utils/express/utils/gmxRelayUtils.spec.js +161 -0
  72. package/build/esm/src/utils/express/utils/index.js +1 -0
  73. package/build/esm/src/utils/fees/index.js +8 -5
  74. package/build/esm/src/utils/fees/priceImpact.js +5 -10
  75. package/build/esm/src/utils/markets/utils.js +57 -2
  76. package/build/esm/src/utils/numbers/index.js +1 -0
  77. package/build/esm/src/utils/numbers/prbMath.js +149 -0
  78. package/build/esm/src/utils/positions/utils.js +63 -42
  79. package/build/esm/src/utils/prices/utils.js +25 -0
  80. package/build/esm/src/utils/stats/__tests__/api.spec.js +98 -0
  81. package/build/esm/src/utils/stats/api.js +26 -0
  82. package/build/esm/src/utils/stats/types.js +1 -0
  83. package/build/esm/src/utils/trade/__tests__/increase.spec.js +578 -0
  84. package/build/esm/src/utils/trade/__tests__/increaseInvariants.spec.js +256 -0
  85. package/build/esm/src/utils/trade/__tests__/increaseMarginCheck.spec.js +835 -0
  86. package/build/esm/src/utils/trade/increase.js +243 -20
  87. package/build/esm/src/utils/trade/increaseMarginCheck.js +173 -0
  88. package/build/esm/src/utils/trade/index.js +1 -0
  89. package/build/esm/src/utils/trade/trade.js +10 -1
  90. package/build/esm/src/utils/tradeHistory/utils.js +3 -0
  91. package/build/esm/src/utils/yield/api.js +7 -0
  92. package/build/tsconfig.tsbuildinfo +1 -1
  93. package/build/types/src/abis/ArbSys.d.ts +12 -0
  94. package/build/types/src/abis/index.d.ts +11 -0
  95. package/build/types/src/clients/v2/index.d.ts +6 -3
  96. package/build/types/src/codegen/prebuilt/index.d.ts +170 -989
  97. package/build/types/src/configs/api.d.ts +1 -0
  98. package/build/types/src/configs/contracts.d.ts +2 -0
  99. package/build/types/src/configs/dataStore.d.ts +4 -0
  100. package/build/types/src/configs/express.d.ts +1 -0
  101. package/build/types/src/test/mock.d.ts +2 -0
  102. package/build/types/src/utils/buildUrl/utils.d.ts +1 -1
  103. package/build/types/src/utils/buyback/types.d.ts +7 -0
  104. package/build/types/src/utils/express/utils/gelatoRelayUtils.d.ts +2 -0
  105. package/build/types/src/utils/express/utils/gmxRelayUtils.d.ts +61 -0
  106. package/build/types/src/utils/express/utils/gmxRelayUtils.spec.d.ts +1 -0
  107. package/build/types/src/utils/express/utils/index.d.ts +1 -0
  108. package/build/types/src/utils/fees/index.d.ts +1 -1
  109. package/build/types/src/utils/markets/utils.d.ts +7 -0
  110. package/build/types/src/utils/numbers/index.d.ts +1 -0
  111. package/build/types/src/utils/numbers/prbMath.d.ts +7 -0
  112. package/build/types/src/utils/positions/utils.d.ts +9 -0
  113. package/build/types/src/utils/prices/utils.d.ts +10 -0
  114. package/build/types/src/utils/stats/__tests__/api.spec.d.ts +1 -0
  115. package/build/types/src/utils/stats/api.d.ts +11 -0
  116. package/build/types/src/utils/stats/types.d.ts +106 -0
  117. package/build/types/src/utils/trade/__tests__/increase.spec.d.ts +1 -0
  118. package/build/types/src/utils/trade/__tests__/increaseInvariants.spec.d.ts +1 -0
  119. package/build/types/src/utils/trade/__tests__/increaseMarginCheck.spec.d.ts +1 -0
  120. package/build/types/src/utils/trade/increase.d.ts +3 -0
  121. package/build/types/src/utils/trade/increaseMarginCheck.d.ts +61 -0
  122. package/build/types/src/utils/trade/index.d.ts +1 -0
  123. package/build/types/src/utils/trade/trade.d.ts +2 -0
  124. package/build/types/src/utils/tradeHistory/types.d.ts +2 -1
  125. package/build/types/src/utils/yield/api.d.ts +4 -1
  126. package/build/types/src/utils/yield/types.d.ts +18 -0
  127. package/package.json +3 -3
@@ -227,21 +227,6 @@
227
227
  "shortInterestInTokensUsingLongToken": "0x6570bb9e35dc0380a652327489dfeea94b924dc573726977c34befd986bdb12f",
228
228
  "shortInterestInTokensUsingShortToken": "0xba86d4caf44d73e34588ef62ab32457683cb57759a939fa0dfa1bae385cf562a"
229
229
  },
230
- "0xe2fEDb9e6139a182B98e7C2688ccFa3e9A53c665": {
231
- "longPoolAmount": "0xa9acacc99cc90fa39007d837520e15f8323406ea0a829ce6f5012d06c6746d43",
232
- "shortPoolAmount": "0x059c06af790ad9eb203678b948e568626fcb07907755bd64dc78931f8dcffe37",
233
- "positionImpactPoolAmount": "0x02a3d575aa6fe383513b3a09358667a76891c821c0e7ccea13fc840511aed705",
234
- "swapImpactPoolAmountLong": "0x15618de121a1dbe0850b9821ef214538bb217ee0e2ee226621391e7ae74a3c2b",
235
- "swapImpactPoolAmountShort": "0xa40beb6ca63512c28671631a2569fb26f0b76a5bb5b28f6fed65319643c32e46",
236
- "longInterestUsingLongToken": "0x85f4666cde674480f8804c88d7f9344fd31663cd0c2dd78c7d58a1244b80120c",
237
- "longInterestUsingShortToken": "0x4e7b98b5f79eb70f826cadb8b12c6eeb331247f15187bc93391d608547d2ff43",
238
- "shortInterestUsingLongToken": "0x8ad928c59d546dac3d3e46422593f530cbcb414ab1ddbe701dd2128120c6772e",
239
- "shortInterestUsingShortToken": "0x1ea0d312ed28393ead1176939e9d94c6667785701548810ef2b28bd14d61e6d9",
240
- "longInterestInTokensUsingLongToken": "0x2ccfeac1731442a03584eba916545e7768bceb377152a02818959bfacdddfa89",
241
- "longInterestInTokensUsingShortToken": "0x1736eac5aafda0c04bb3f998ab3543d157d0cd0c2dbf9b8288982e8cfa2393d5",
242
- "shortInterestInTokensUsingLongToken": "0xf9d50cf5c0cff3d2119e0be527e60796710905050511bee8b1bf939ae4b67078",
243
- "shortInterestInTokensUsingShortToken": "0xd9b5776dead40b190447976a4bc11f3900a504898f7f816f6edb363ee99af383"
244
- },
245
230
  "0x0CCB4fAa6f1F1B30911619f1184082aB4E25813c": {
246
231
  "longPoolAmount": "0x162e128ed7d7e87a743e0a07745c4861b3f1a52133825ddd86c4f40cc178c535",
247
232
  "shortPoolAmount": "0x9f5fd95e5680a30f8f6eef52e2c6d9b02dd47b2503d24f5e96d7115f083e98e7",
@@ -707,21 +692,6 @@
707
692
  "shortInterestInTokensUsingLongToken": "0x7fe74e59d085e3bfbdd5213d5b701124601a057276caece5b6f67837da248497",
708
693
  "shortInterestInTokensUsingShortToken": "0x22fa75d056087860d450b7041ac6b53bfbc1071ec51fb3aa1ffc1bddd995dcbd"
709
694
  },
710
- "0x15c6eBD4175ffF9EE3c2615c556fCf62D2d9499c": {
711
- "longPoolAmount": "0x1cd545c92a01cf6f7610f44d0b130abd0d18db5f62d25803c51c81bdb1a10ba0",
712
- "shortPoolAmount": "0xd3c4f1b65e57fa4b1e3bf550bdec44aafd35d1137fcb2277ffb1a93b24fba0cc",
713
- "positionImpactPoolAmount": "0x9c20fa6331ed8865e71ac6eced5007f953c78fdeb3fab05648282fa64da27574",
714
- "swapImpactPoolAmountLong": "0x4080dfade389ee13df35eb4921f8b71276625a9f32ea78ff30f16f56c41e4b67",
715
- "swapImpactPoolAmountShort": "0xd99446ec75b48edfe9721181b974c3184623985c8f94bbb429c1c52fac8ea6d1",
716
- "longInterestUsingLongToken": "0x2969b08330c934afadc9a40142f927cf387000be3f281defbfaa9e3e5322222f",
717
- "longInterestUsingShortToken": "0xfe292a85a29b5c208218744fa8e196584f67a5dab648fcf02dde50cbdfcf7724",
718
- "shortInterestUsingLongToken": "0xb8b0f50ca8f165880ce1c6540c806e9b678725434a57e9e172b57e42126d1c2b",
719
- "shortInterestUsingShortToken": "0x6c28d3ba5c3de878a1bcf7d61e595c2e998bd94c8face807d186e06fd4454c51",
720
- "longInterestInTokensUsingLongToken": "0x4a76085b1b592d7af8b87255fff361001fb6047e1266684a1c895fcc4dc0a54c",
721
- "longInterestInTokensUsingShortToken": "0xd37bf995a9b64aa42c1a5d90ff3fb46a283d3f8f7ad38227b71e41302e885fb9",
722
- "shortInterestInTokensUsingLongToken": "0xec03ed0c527f0f91fbd6be3038d9d989e17d551d3f7c43d7a51020990db759c7",
723
- "shortInterestInTokensUsingShortToken": "0x2c2476051043229fd2198ee6a970789b72a1bc488cb13bc4c7554f9673a11612"
724
- },
725
695
  "0x872b5D567a2469Ed92D252eaCB0EB3BB0769e05b": {
726
696
  "longPoolAmount": "0xb70c1d8189f9287ce2c45b58fa581319252d073df36204681ba746d118a866c3",
727
697
  "shortPoolAmount": "0x4504d3557219b31e3d988f78c7e2da8d025c52f74f973673e2fccbe139fd8f47",
@@ -1022,21 +992,6 @@
1022
992
  "shortInterestInTokensUsingLongToken": "0xcf86f3b4d131437311906ed2d208eca8ed56411d2e654f28de2d8be3e138bce8",
1023
993
  "shortInterestInTokensUsingShortToken": "0xd26d263362d6035fa3b019af2e662c8b46321fc9b1a5c8d842b4c77b8985770d"
1024
994
  },
1025
- "0x12fD1A4BdB96219E637180Ff5293409502b2951D": {
1026
- "longPoolAmount": "0xb32821fbf7feea34f18a6d23f5ee93a22c6f7101fbde0cc43acda7ed44b96a67",
1027
- "shortPoolAmount": "0xcfc4fb3d09178d1acdd43c646c3b6e5c248e643feb946bdc62d36072292f35ae",
1028
- "positionImpactPoolAmount": "0x081c97ecd9ea2f3edfbda30123b798a0ae15d024c89b491e23f33a37bc4ce426",
1029
- "swapImpactPoolAmountLong": "0x7f5f9bb45b9c275449ddaa5297b5ec384dfa838c2fc538308037bb2c8dd592f1",
1030
- "swapImpactPoolAmountShort": "0x72c2063dc100ba3837ac224e5135809efc8aa8e37367d59d9eec7ddfdb5c3541",
1031
- "longInterestUsingLongToken": "0x21f1d65e9cfcec6d7667a1dd0dfa05989dd55fc64dad2244b8a3ffaeede093cc",
1032
- "longInterestUsingShortToken": "0x7953f65c97266237a3bebba6edce9a73ca602ad98fa5b1af3ef8136924e0c5af",
1033
- "shortInterestUsingLongToken": "0xa1516716703fd8c2ae82cd9ced3220cf71c6e2e25f57c6793508337fa65ed98a",
1034
- "shortInterestUsingShortToken": "0xdfcf7133df28eb2582ccd3a0e5f89245a4c2127636ef05f1565ded7feb27ff5d",
1035
- "longInterestInTokensUsingLongToken": "0xb4b49b1f78b0b34846ca02c6bc47b2b00a88ccff7a2a5e1af36c535e4993eb69",
1036
- "longInterestInTokensUsingShortToken": "0x9d44a10613913549df27a04a2144c70dd7c090271a73325afc94d1e63df9a71a",
1037
- "shortInterestInTokensUsingLongToken": "0xb650ecfd1aeb7e38c21a0e52f55efcd9affd3fdb5b44bb9eb4a75e182a50e7a8",
1038
- "shortInterestInTokensUsingShortToken": "0xe76983281c0ac239e1ed1c3879c40e3db42233cdf621337bb90fb5ece9250b23"
1039
- },
1040
995
  "0x9F159014CC218e942E9E9481742fE5BFa9ac5A2C": {
1041
996
  "longPoolAmount": "0x33696a1cc2e509be5f638ae154be5aa7ed6021392cd06b16ce6737b3dc3667ab",
1042
997
  "shortPoolAmount": "0x3a1da24e86cb6e6a6282396e80ee211c9b8aa2af9349433abc9cc0e464b8f655",
@@ -1052,21 +1007,6 @@
1052
1007
  "shortInterestInTokensUsingLongToken": "0x4ee4b14ea376789f2c13b2ebf2b0553aafa93f1a474fdff95729bec79634e7d1",
1053
1008
  "shortInterestInTokensUsingShortToken": "0x873b3434e1f40be00cdf1cd2bd632668797937ac8a1cd3a156cba0117eb09910"
1054
1009
  },
1055
- "0xD60f1BA6a76979eFfE706BF090372Ebc0A5bF169": {
1056
- "longPoolAmount": "0x2e968dbe5c24230a2ae86ab00aa28dd1712b36f05d23320cbe25706772f4ad93",
1057
- "shortPoolAmount": "0x2dcab505f325fb5e2310545b45e04cb7c6a3b7b67d2b922e8a8d28a4677af662",
1058
- "positionImpactPoolAmount": "0xa956c5480a4f53b7da50d2d81de36f48f2f827cf473306af15e5fd995472ac11",
1059
- "swapImpactPoolAmountLong": "0x0450082403a659c37528274fe2e231ddd22e6c85f4d9784831d3c60cdaea28db",
1060
- "swapImpactPoolAmountShort": "0xa6902c562648855ce1d987543ae32445ed24bc460b7ff277acfc37804e08aee0",
1061
- "longInterestUsingLongToken": "0x36c25110e5077ab5c9d19ab0d71d11c29bd91ab36ba9a66f47b7f02da5490279",
1062
- "longInterestUsingShortToken": "0x994a83db58be8742a09f5831298539040027096f21a5d16c2166aad193c353cd",
1063
- "shortInterestUsingLongToken": "0x972b87c9d1a4cf74bcb6876cc13bfaf1109c91707be51d597da1c48125629c4e",
1064
- "shortInterestUsingShortToken": "0xaf485bdb8468e4b6e2336ce459251452d8dd2af7aa24307c2af29f603896c29e",
1065
- "longInterestInTokensUsingLongToken": "0x802436cd7e36c7b74a5b8e7b398097eb6c7a479858534cf3db3428acf6b2f23a",
1066
- "longInterestInTokensUsingShortToken": "0x9cd8e29a7237ddc1ec549a9c860c7111910efd39adf613f40a7b0db6b36d5665",
1067
- "shortInterestInTokensUsingLongToken": "0xf62a5afb7091a2f8b12570cec798f32c2c1c6fbcb4f367171682acf97f646114",
1068
- "shortInterestInTokensUsingShortToken": "0x76e3acce664d64e0976a5a18709a885eda1d43524c5ba0ca74657fe86cff7e68"
1069
- },
1070
1010
  "0x5707673D95a8fD317e2745C4217aCD64ca021B68": {
1071
1011
  "longPoolAmount": "0x0239025aeebf914b0bc76d79686a3e338719dd1829da3cd814c237c7b038a05a",
1072
1012
  "shortPoolAmount": "0x34c9704179a5340d35deb5e35fa5cc42efe572759d28c8910e37f3257a493c56",
@@ -1262,36 +1202,6 @@
1262
1202
  "shortInterestInTokensUsingLongToken": "0x06dacf93505d858cec6992dd5c4cefe66fb149ffbd94be45df205c479facd2a8",
1263
1203
  "shortInterestInTokensUsingShortToken": "0x02e949736baad7cc7f5127fde0eaead9aa0de07bf0b828fcf6aadc8b009d3b5c"
1264
1204
  },
1265
- "0x2aE5c5Cd4843cf588AA8D1289894318130acc823": {
1266
- "longPoolAmount": "0xc7f28df1562852f8059fe8b7e1b69fed717c6d50f7a68f297e79b0c21c4f9ff3",
1267
- "shortPoolAmount": "0x0b26bc1198c073902a00ba5c4c28a0e8ddb66056fda1390cd47b1f05ce9d411e",
1268
- "positionImpactPoolAmount": "0x6ae737720e9d284531c3259e002f8dad42d8b781259254131e042ebf269a821d",
1269
- "swapImpactPoolAmountLong": "0xee3e138941f6e353cdf1dcea2c898fe358a8d733ecd8498b9aaf082afabcbefd",
1270
- "swapImpactPoolAmountShort": "0x71c38d8d78cb223b2eb7df5d662d939be2a7cf7eb1eada606a72cd73be51b814",
1271
- "longInterestUsingLongToken": "0xff7bfb678c9be6ded2c40a216fb582605fec90da18106ac661d5eb89eafcb607",
1272
- "longInterestUsingShortToken": "0x00b0ace751f24f702b5405f33d3efc08a4aeab5dbf2a4a70774e9b643e5e6b2a",
1273
- "shortInterestUsingLongToken": "0xbffb6c8af18c3a72a321268cf3ada1e18539b361138a628cffdf172b94209e9b",
1274
- "shortInterestUsingShortToken": "0x1f5408cc30e817317ecd807c5146178ebace720b6e4e85bc72f4b7ed22541fed",
1275
- "longInterestInTokensUsingLongToken": "0x81d6599e211c56176e9932d672575926243e26929621a7a43f23086564a284fc",
1276
- "longInterestInTokensUsingShortToken": "0x03e915541a958950bbe282dceeeca0396c6857eae41d8a0b976c61180ece8b7b",
1277
- "shortInterestInTokensUsingLongToken": "0xc4450d0bbd5070380cc1b241dc29a8349f8b973a09548b5f4a81a5b9caef276e",
1278
- "shortInterestInTokensUsingShortToken": "0xc919cf1a06ccc7a389591a7e2f65a3fffa7fde1b628952e176a57b5ffd20569a"
1279
- },
1280
- "0x89EB78679921499632fF16B1be3ee48295cfCD91": {
1281
- "longPoolAmount": "0xe2a0e67aafe2b69bff2a5ceae09fb53c98f45c9797c3d9deba786897ec8a3d80",
1282
- "shortPoolAmount": "0x15eb9d564e30e06a60601e8f5010f18f6474c55eec72ce99379b8590c592fda4",
1283
- "positionImpactPoolAmount": "0x89cf2776d628b2014e579c411325d36c1c185103552cf834ea5a0b4d17a46cee",
1284
- "swapImpactPoolAmountLong": "0x42ec584181a2f0d5d07cfc400a26c8ec13864c8f8eb9ba3f6d0b0b523b0f189a",
1285
- "swapImpactPoolAmountShort": "0xef2251dbccf1dc4d3aeea18fd2ceea579d7d67e714d83d83d4d02c8599c154af",
1286
- "longInterestUsingLongToken": "0x5f9083f617235c0d1a89cc7423adb6f23770327d80bbd6c8430f446885462594",
1287
- "longInterestUsingShortToken": "0x41f7cacb654bcadfae817cb23db92551bbdeb04402370682884259a9ac580675",
1288
- "shortInterestUsingLongToken": "0x70ae5a178fdb86f171f574faf5d50e85f42f2dc32b66cee960113d5cb824bd14",
1289
- "shortInterestUsingShortToken": "0xc7043969dc824642b49a6e995ecb01cafd7f1706d55b5be414048d1ff957cd9a",
1290
- "longInterestInTokensUsingLongToken": "0x26843df34ffb8ca5bb0c6ea2770114fa446de655bb3db5579674dcb5f61e94b9",
1291
- "longInterestInTokensUsingShortToken": "0x6f542fdc6addee4e75891c4bfb8860c6232b10e35d2cf34d56a31f6e37a073a4",
1292
- "shortInterestInTokensUsingLongToken": "0xbe1d49d8de9f15dd608c0ec6671808b8204838b14e8d31769b30489ee71e6e8e",
1293
- "shortInterestInTokensUsingShortToken": "0xb19e3d111bcebca624cd2077e9c21d2f53f98e22648b3625c51cdcaf1ca09ddd"
1294
- },
1295
1205
  "0x4D3Eb91efd36C2b74181F34B111bc1E91a0d0cb4": {
1296
1206
  "longPoolAmount": "0xcfdeeee75cef8de81f3e98bc2ee46390b1ebb489016a64e945f8df208913cd15",
1297
1207
  "shortPoolAmount": "0x819197d0e2f89533aaf9f8f682459b4a9632d54904ec9e5a550c76963ae99f8b",
@@ -1367,21 +1277,6 @@
1367
1277
  "shortInterestInTokensUsingLongToken": "0x09467669e73c2ebad9ae4ce2aa06ca52348ae5da2d25be4c35b608e4dff0e2bc",
1368
1278
  "shortInterestInTokensUsingShortToken": "0x4f4bacd66cdf5d93d6c55dd2c019d75653b63183bef9db11f98764fdd8cc60c7"
1369
1279
  },
1370
- "0x39AC3C494950A4363D739201BA5A0861265C9ae5": {
1371
- "longPoolAmount": "0x8b35db61cf1d679856d17037bff17b6d5909ef3d237ec5fddb6e9c45a2553c95",
1372
- "shortPoolAmount": "0x74b22e46171010c4d6867a3420af82b00c739ec3bbeb295a4cf625bcdbfe07b5",
1373
- "positionImpactPoolAmount": "0x9435975a828122df0431350d47a44d4700715d393c9d5f55a4fe7d1972f1d95f",
1374
- "swapImpactPoolAmountLong": "0x9113211843bb2a4695cb03f9350950920a54e63b8a69010a2a9b440fc41d6ef8",
1375
- "swapImpactPoolAmountShort": "0xa9a4df803ab35db2d17f39f87fd42b18a2830e58416f919391481f6d2e31a3c2",
1376
- "longInterestUsingLongToken": "0x4e71590171ab7ef030cafac110a7385d65ce24f61c6c2edb04898654f04ec898",
1377
- "longInterestUsingShortToken": "0x915ae07505869779440f15749260d59c6ea24880abd0d72c343b52d2b86b8f40",
1378
- "shortInterestUsingLongToken": "0x829c7683ed83c5cff99e9e5313aff403cd26085ba4a43964d011d6bd4977efcd",
1379
- "shortInterestUsingShortToken": "0xd193c75ba20a56756011040cfd14a59b30a569e75a1ac818c598210db4459c52",
1380
- "longInterestInTokensUsingLongToken": "0x30d45feb138a7c16fa2eb74acaee67e95e1c60bc1e10c30301d3762b64883834",
1381
- "longInterestInTokensUsingShortToken": "0x270eaf7ded63283fe668107dae6e74b2f65611f2ce8ac93f7587aa42690e726a",
1382
- "shortInterestInTokensUsingLongToken": "0xba25770c0d2c19cb82136ca008f7f59e3f0a6273159a121852ef001e7fcf5cd4",
1383
- "shortInterestInTokensUsingShortToken": "0x434a95fd250b7b15239714a1a92599a7706c946310e7cc999a66202318a3b9d5"
1384
- },
1385
1280
  "0x4C0Bb704529Fa49A26bD854802d70206982c6f1B": {
1386
1281
  "longPoolAmount": "0xc996bc9829549ec431dc6686d166b850c834ca57d6d13eef76878eb034346f49",
1387
1282
  "shortPoolAmount": "0x73576063b41f5bfab75ba59775beae18756d9a05d1934205cd5c1c8ba136c37f",
@@ -1637,36 +1532,6 @@
1637
1532
  "shortInterestInTokensUsingLongToken": "0x5685c9c3cedc76f7f4eb9a550a783ba3d1a51e0b83624559df6f18ecd2395abe",
1638
1533
  "shortInterestInTokensUsingShortToken": "0xa029faf66a0c6d3862e25e5f180756e6552e04c2c95193785e0848191c045ded"
1639
1534
  },
1640
- "0x2347EbB8645Cc2EA0Ba92D1EC59704031F2fCCf4": {
1641
- "longPoolAmount": "0xe6b0f43e7615e46a90205e63d63e43687c7e578e404fca321711f427f7f0c8b1",
1642
- "shortPoolAmount": "0x34aaea7b406618de19385f819b0ab9caa7debb9713c44c14e495efb4f73d6a73",
1643
- "positionImpactPoolAmount": "0xfdd324af6053708576054f97c7a56b0be5d67603503335d7f9f182705b94e70e",
1644
- "swapImpactPoolAmountLong": "0x5452823907a822ac7742924415616dfe23a07a931ceaa50fd28b9470067f0bfe",
1645
- "swapImpactPoolAmountShort": "0x377e578ba634d7cc4b1e874e640c005c3f80ba45d59060e4ea1ab0115905c743",
1646
- "longInterestUsingLongToken": "0xe2fc113ed7c4e1413282c85d324137ab9c9e9b067954c71c313acf36b05c498c",
1647
- "longInterestUsingShortToken": "0x69d46c6d0f72f52d4c6e9a31dde0d1280d82b349b42dfa7c3708c43213524c93",
1648
- "shortInterestUsingLongToken": "0xfefdadf4b69a4dc1789be717ca1db60bedf0435c3e1c4b27f9f670a44ef01d6f",
1649
- "shortInterestUsingShortToken": "0x0eeca8196e7d5b7d6321eb72ee60d9716e0eedaefdd54c1a1a671bf3e734647c",
1650
- "longInterestInTokensUsingLongToken": "0x0e36a6eda64ca5fac6eae3ef799ffcbfbd61c737850cb101f76da735137ba816",
1651
- "longInterestInTokensUsingShortToken": "0x1ff50c1b1d847765805fc064151fd0dd0cc5a70e3ccae18692296216c566dba4",
1652
- "shortInterestInTokensUsingLongToken": "0x84f2e6f5d63becd425968f24d9eafa3e629fa6c1e802a36531fdf7942131fcf1",
1653
- "shortInterestInTokensUsingShortToken": "0xf2974ad3b0355d5e21d9f0bb876e1362ed876460902b71d2127c86c885f96a00"
1654
- },
1655
- "0x970b730b5dD18de53A230eE8F4af088dBC3a6F8d": {
1656
- "longPoolAmount": "0x2074b61829fcf7b862ae5c3223d153de801b23339b8374400e2e8213093b6a18",
1657
- "shortPoolAmount": "0x5a3614bfa81e48f54a7f6100a645c25a462f4480753c2d4e4d5a786237b1bddb",
1658
- "positionImpactPoolAmount": "0xbb409d625315501ca3bba1121ff2ce3a900f33c1aba3214b199092d9bb3b3385",
1659
- "swapImpactPoolAmountLong": "0x4328c52288d787d6d4b589e491e8e6983158093c50b0bb11da95f6b37cb351e1",
1660
- "swapImpactPoolAmountShort": "0x8d0c46a62c3b46830e14eb6ea4fe27bc6d866a012d6ef44523a9d9455e3a94d8",
1661
- "longInterestUsingLongToken": "0x7bdd24656d6e7283136eb29a6e644572d522d604508a5a725030da8eaa9b7cd0",
1662
- "longInterestUsingShortToken": "0x0a4383191500c1e2d03c0683f2cd6cc9957b3b9a2e4c7800388d4bcc43d9aaa8",
1663
- "shortInterestUsingLongToken": "0x9041c450c8d60ae1506392dee5aed5dec60803e44796a6407b3c72114af4e7e3",
1664
- "shortInterestUsingShortToken": "0xee6e6e245711037e3c2af2140f3eb362a3732ad5102ad1ea1e53dedc38d308f3",
1665
- "longInterestInTokensUsingLongToken": "0x7db65b1da1abf0b73347231e24d410d3a5543ce9d97ffc13c9304514496811a5",
1666
- "longInterestInTokensUsingShortToken": "0xc878d10a8130a00570cfd5333ac4c18adf56c91ef3affde6e322ce9f64db0e7a",
1667
- "shortInterestInTokensUsingLongToken": "0x8ddc36db16d4f8f01735e858ae65019db693976a2dbc7a4f66980433c9442515",
1668
- "shortInterestInTokensUsingShortToken": "0x292d9c867cc5b7c6523ef886096f73156f6dc9fd79354d3ea3d6c8d90911b135"
1669
- },
1670
1535
  "0xac484106d935f0f20F1485b631fA6F65AeEff550": {
1671
1536
  "longPoolAmount": "0x88696a34708a024c1647d4d45821c07bab167934cd8eddfd8af9d89ec159f2b3",
1672
1537
  "shortPoolAmount": "0x8553503522a91d714af79909806c49105800c77639440e66c0affbde881da9c8",
@@ -1937,21 +1802,6 @@
1937
1802
  "shortInterestInTokensUsingLongToken": "0x6ab7a7ae8ef78d66eb7a6ca76d7ff649371dc62c54b8f508b3500300b7b32092",
1938
1803
  "shortInterestInTokensUsingShortToken": "0x8e1c3bfa64049ac133fea2eb5087a2e924d3631243fa4cadfbe29fe8eadb6514"
1939
1804
  },
1940
- "0x5ff52BE1968107D7886a8E9A64874A45c8F5D96a": {
1941
- "longPoolAmount": "0x024907819809cd43c72a6a4833f33b1869840bd76bec0e31ab2cf08d0f19ff0b",
1942
- "shortPoolAmount": "0x8e42ed2ba273e13d3c8e6c11381728642b01d4ab62f37acf94ea3ebdb57740e8",
1943
- "positionImpactPoolAmount": "0xc33c916b124dbf517fb0bfb710757c27dc6ec1e4b03efc2bcde5c1b4aa1c3b72",
1944
- "swapImpactPoolAmountLong": "0x83665ca0edbf1565f2f133280f5c73934f00433c57f6d6c304e9c16832d1f772",
1945
- "swapImpactPoolAmountShort": "0xaf9bfce6eb82448e84e37277210d83e0fc1524db9c0a03531acf7728f1c18e85",
1946
- "longInterestUsingLongToken": "0xd940c419b28f864e3b162fc087831785096ba12b653181637f8d8dc0830242fe",
1947
- "longInterestUsingShortToken": "0x5f8c26d4bcc28b308b2443fba71efb9b72184934393fefe650bbadd6618f4b67",
1948
- "shortInterestUsingLongToken": "0x34270c9a363217c8a4b0cc117207b58fd0bd2aa08d39a6c5fbc2497ae7c75877",
1949
- "shortInterestUsingShortToken": "0xe27ef4a387cd77b6830adf276ef939af126a4a2366f827e6d29c547bcd4b318b",
1950
- "longInterestInTokensUsingLongToken": "0x7eff661f177aca8caa364bfa03b55ac5ba27df637f2fd4d8c066d575e1c8849f",
1951
- "longInterestInTokensUsingShortToken": "0x304a988d2a21904b0de78f1e71fb803b4a070e4072eba7a2b7ca9c0e4f99bcbd",
1952
- "shortInterestInTokensUsingLongToken": "0x529852b72b88323b98314e361c5fb21846b2c64fc5f9cf7ab9b92cd6d23a9f36",
1953
- "shortInterestInTokensUsingShortToken": "0xd8b7ef7743b28c9a6b650fc6015d93312c5030d7b96cc8ee073e3ada0d08cab4"
1954
- },
1955
1805
  "0x45F0331a6e175B556Bc7d28E0A1c349525006d4E": {
1956
1806
  "longPoolAmount": "0x4567b372c6f4c2c76ef5405e4363b49d47708f4cc92f643274ee5fb57a4579c2",
1957
1807
  "shortPoolAmount": "0x7e8c6c3f3a0e0a055d8f5c425d93bcd4c2145ba9720c66c4481efd98749bdd49",
@@ -2072,6 +1922,36 @@
2072
1922
  "shortInterestInTokensUsingLongToken": "0x2bdcec38c2d0016c12d50e0ac27709d4856c2d27ffe78e58753e58d3f1ce7570",
2073
1923
  "shortInterestInTokensUsingShortToken": "0x8695147e4efe6f8ad95dee38bd50f33fb632c55e6119ee65d8716e8bf683dacd"
2074
1924
  },
1925
+ "0x1C132E43029efCd57435eE79ceA98006C6227A6f": {
1926
+ "longPoolAmount": "0x04ba28c1d428785ca8d559f4c65bba05f6161f7dc7958e1ff3a0df890905a72e",
1927
+ "shortPoolAmount": "0xd4a47150ce31a15f022d758a047cf6d8b3c6aceb74437daae43803226bab074d",
1928
+ "positionImpactPoolAmount": "0x4f997c29cc527cf304106ff0903bced0655526ac2df98fa8192f8746ec50f462",
1929
+ "swapImpactPoolAmountLong": "0xd554b3f62ab7aaebbfe68636a413aeb59a6e2fbe4809acef84235ed53ba53a5c",
1930
+ "swapImpactPoolAmountShort": "0x69664a77aad4e26a8e352fc68c9680a3e663daf87282ad49b237c1b99875fc54",
1931
+ "longInterestUsingLongToken": "0xd8cb5755efb2d90d3403d160f2a8caa2b11d977afbb6c890a6d545f22cb7b39a",
1932
+ "longInterestUsingShortToken": "0x3005a9261e358bdc1ca36dabeeb5483985bb94ce71c6f750236aa546c25f0afe",
1933
+ "shortInterestUsingLongToken": "0x3f5dc4bb359a09f1e3409a323b390c9a197aea00d94eaedf6cf30dd1809ecfd9",
1934
+ "shortInterestUsingShortToken": "0x0044f5c9783a74ee4cba0472609718500309e4852eb9f0cf2787017ef9bd06f0",
1935
+ "longInterestInTokensUsingLongToken": "0xb2eacce2fe90a3a5a526230d8e3850e127b3d23a9f008e390323eaa4a895078c",
1936
+ "longInterestInTokensUsingShortToken": "0x5b0ad3fd8de57c88043c7f7b4fa6c5f0efb2f892eb253c7cc521af0667082221",
1937
+ "shortInterestInTokensUsingLongToken": "0xa45dbf6fdb6ba5ad4ff6540224ce765ce2f1541566e25248e2838df6bd659f8a",
1938
+ "shortInterestInTokensUsingShortToken": "0xe87739b6ba68ae3083e1feb5e65bfdae2d1385877ef200fac7e8d09ce37267f4"
1939
+ },
1940
+ "0xcBd4c1b0c89D50793c5A3e8d96d98FcB4f1B1c47": {
1941
+ "longPoolAmount": "0x21c300622c857740cf8a1f319be07b34a1c2a8e3716b842d0e61ddb4de882691",
1942
+ "shortPoolAmount": "0x937d0c760fb4468b954dc9d0cb125a484ab3e5633f7dac271743a5076dd4c6f8",
1943
+ "positionImpactPoolAmount": "0x7e9834d4551dd40bbb82871b26ef7b3dbe829957021f60584b7e39128e824ae4",
1944
+ "swapImpactPoolAmountLong": "0x57144f158bc50b9bbd12758050686be066bcc727f134538e798c2182c51c6d42",
1945
+ "swapImpactPoolAmountShort": "0x7669f2cf4a1f0ce1efbea920e743f19c26ab687e46bf8813af1510f04af3c0d2",
1946
+ "longInterestUsingLongToken": "0x5efe8d6475f96229c37a178a891d8655c0ea9c04462b130ff0cabfa6592da605",
1947
+ "longInterestUsingShortToken": "0x0b0adac4bd44e82b2de9684906a68272282f415a794f5a49ff3d913c72993183",
1948
+ "shortInterestUsingLongToken": "0x14e85b654d64f5aa143e37fea0819dc368f56c326916f2a3c33804c4d8fbb448",
1949
+ "shortInterestUsingShortToken": "0x381d813ff82e2f5baee1ee364a029d13ced94f2b6b33af405bfa3bf09ef46548",
1950
+ "longInterestInTokensUsingLongToken": "0x04480faed28cd2f6f45616ef4560f875108caf003a7b8fcf76210ca6579b6da1",
1951
+ "longInterestInTokensUsingShortToken": "0x1021a26812ae0cd8bc36f8b1aafce4bacdbfb9b28b4f1f716e772ef02bd1a0ea",
1952
+ "shortInterestInTokensUsingLongToken": "0xfaf10fdae0820360c9a66c6055e0122f4eb59d93af838e3bb0f741a82aabf695",
1953
+ "shortInterestInTokensUsingShortToken": "0x65ad9cf74745de0de4ee7c5cef91cbb13cb093a61d1e1642c359f2db0fc313b5"
1954
+ },
2075
1955
  "0xE26E7b91143f367445f1c0a5dCf4f4aC8EaDcDb1": {
2076
1956
  "longPoolAmount": "0x265452d70a411300a2535b1c9c212a3dcea8eb2793c66aec2fcd595776ba2c0b",
2077
1957
  "shortPoolAmount": "0x24f88d54e73a74c9c029fff00404272e44a15d9f931be2df1433f43ef5e5e428",
@@ -2526,21 +2406,6 @@
2526
2406
  "shortInterestInTokensUsingLongToken": "0x407be4ffb112593c1403da3e73160b4501304c727d3bd91b31eedfd9d653db30",
2527
2407
  "shortInterestInTokensUsingShortToken": "0x1faa819022fc74d1c3e17cc95b4e51b00f9670b7bb9b584c0c93c957b8ae3980"
2528
2408
  },
2529
- "0xDf8c9BD26e7C1A331902758Eb013548B2D22ab3b": {
2530
- "longPoolAmount": "0x68a80300672e2b226ab3a9ce944b02978d998c8b4ff06090d9f2631a7a9a1d0a",
2531
- "shortPoolAmount": "0x575b96ad077f1dd1842b927b6f135bdfd4d22024cb259dad11890dc8bc05bce6",
2532
- "positionImpactPoolAmount": "0x8f80c1f6fb60a0097805d078f3f7fc36ba4f8ba3fba721361202a9d04644c55b",
2533
- "swapImpactPoolAmountLong": "0xa5efca8f6ba190b7cb51ffac97c05bf793775c4eb6562d0f73dc729cb96ca53c",
2534
- "swapImpactPoolAmountShort": "0x069199a6be24e87023b67854516bb9f0f38d57136e0f43f96fd92521b657f773",
2535
- "longInterestUsingLongToken": "0xd014a09bcfd92ba7937f63e2469eefed5e603b853ddb6043b5e175ea18fe258b",
2536
- "longInterestUsingShortToken": "0x952cce536203c3b3c85030a54fc3ac96d02a8decd54243312f1234509cf519d5",
2537
- "shortInterestUsingLongToken": "0x4ab2ce14b07c12b840c6e841c988ce457047531a30d241d22546c59cf0e62428",
2538
- "shortInterestUsingShortToken": "0x8e36c4cfb37bafaae24a84cbda0aa27e26a44c622d18035f0e49bc0a6e1e9219",
2539
- "longInterestInTokensUsingLongToken": "0x2d7557227fca93651958b2338080f195a195ac2a2b5093621e7b359be4cbd67e",
2540
- "longInterestInTokensUsingShortToken": "0xd7a8bdf7dfc036834452f9ea434341d02f90af321a91b287d149463c9a2e0921",
2541
- "shortInterestInTokensUsingLongToken": "0x907b9b4299b042832511059aa90ce22b6a1d73ed5521147af3765c0cd30f7b1b",
2542
- "shortInterestInTokensUsingShortToken": "0xd44076881044ab891106ffefe0d090d1db08d9011d77a0e672da3ce97bd5531a"
2543
- },
2544
2409
  "0xD1cf931fa12783c1dd5AbB77a0706c27CF352f25": {
2545
2410
  "longPoolAmount": "0xfc5154bb1205943a6a3e7be6f56b7fa07e3ca961166bc5a018cbe6052f6c8ec9",
2546
2411
  "shortPoolAmount": "0xe3d8b45013aec3076f050e63b7f686746868d9670ec2576fac99082501bbe949",
@@ -5,22 +5,7 @@ const vitest_1 = require("vitest");
5
5
  const chains_1 = require("../chains");
6
6
  const markets_1 = require("../markets");
7
7
  const oracleKeeper_1 = require("../oracleKeeper");
8
- const SKIPPED_KEEPER_MARKETS = {
9
- [chains_1.ARBITRUM]: new Set([
10
- // OM/USD [WBTC-USDC]
11
- "0x89EB78679921499632fF16B1be3ee48295cfCD91",
12
- // WELL/USD [WETH-USDC]
13
- "0x2347EbB8645Cc2EA0Ba92D1EC59704031F2fCCf4",
14
- // AI16Z/USD [WBTC.e-USDC]
15
- "0xD60f1BA6a76979eFfE706BF090372Ebc0A5bF169",
16
- // SWAP-ONLY [USDC-DAI]
17
- "0xe2fEDb9e6139a182B98e7C2688ccFa3e9A53c665",
18
- ]),
19
- [chains_1.AVALANCHE]: new Set([
20
- // SWAP-ONLY [USDC-DAI.e]
21
- "0xDf8c9BD26e7C1A331902758Eb013548B2D22ab3b",
22
- ]),
23
- };
8
+ const SKIPPED_KEEPER_MARKETS = {};
24
9
  const getKeeperMarkets = async (chainId) => {
25
10
  const res = await fetch(`${(0, oracleKeeper_1.getOracleKeeperUrl)(chainId)}/markets`);
26
11
  const data = (await res.json());
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isApiSupported = exports.getApiFallbackUrls = exports.getApiUrl = void 0;
3
+ exports.getStatsApiUrl = exports.isApiSupported = exports.getApiFallbackUrls = exports.getApiUrl = void 0;
4
4
  const chains_1 = require("./chains");
5
5
  const API_URLS = {
6
6
  production: {
@@ -46,3 +46,12 @@ function isApiSupported(chainId, environment = "production") {
46
46
  return getApiUrl(chainId, environment) !== undefined;
47
47
  }
48
48
  exports.isApiSupported = isApiSupported;
49
+ // Stats are chain-agnostic, so one deployment per environment serves them for every network
50
+ const STATS_API_URLS = {
51
+ production: API_URLS.production[chains_1.ARBITRUM],
52
+ test: API_URLS.test[chains_1.ARBITRUM],
53
+ };
54
+ function getStatsApiUrl(environment = "production") {
55
+ return STATS_API_URLS[environment];
56
+ }
57
+ exports.getStatsApiUrl = getStatsApiUrl;
@@ -67,6 +67,7 @@ exports.CONTRACTS = {
67
67
  KyberSwapRouter: "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5",
68
68
  Multicall: "0xe79118d6D92a4b23369ba356C90b9A7ABf1CB961",
69
69
  ArbitrumNodeInterface: "0x00000000000000000000000000000000000000C8",
70
+ ArbSys: "0x0000000000000000000000000000000000000064",
70
71
  LayerZeroEndpoint: "0x1a44076050125825900e736c501f859c50fE728c",
71
72
  GelatoRelayAddress: "0xaBcC9b596420A9E9172FD5938620E265a0f9Df92",
72
73
  },
@@ -302,6 +303,7 @@ exports.CONTRACTS = {
302
303
  NATIVE_TOKEN: "0x980B62Da83eFf3D4576C647993b0c1D7faf17c73",
303
304
  LayerZeroEndpoint: "0x6EDCE65403992e310A62460808c4b910D972f10f",
304
305
  ArbitrumNodeInterface: "0x00000000000000000000000000000000000000C8",
306
+ ArbSys: "0x0000000000000000000000000000000000000064",
305
307
  GelatoRelayAddress: "0xaBcC9b596420A9E9172FD5938620E265a0f9Df92",
306
308
  ExternalHandler: viem_1.zeroAddress,
307
309
  GLP: viem_1.zeroAddress,
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.POSITION_IMPACT_POOL_AMOUNT_KEY = exports.LENT_POSITION_IMPACT_POOL_AMOUNT_KEY = exports.MAX_LENDABLE_IMPACT_FACTOR_FOR_WITHDRAWALS_KEY = exports.MAX_LENDABLE_IMPACT_USD_KEY = exports.MAX_LENDABLE_IMPACT_FACTOR_KEY = exports.CLAIMABLE_COLLATERAL_TIME_DIVISOR_KEY = exports.CLAIMABLE_COLLATERAL_REDUCTION_FACTOR_KEY = exports.CLAIMABLE_COLLATERAL_DELAY_KEY = exports.MAX_POSITION_IMPACT_FACTOR_FOR_LIQUIDATIONS_KEY = exports.MAX_PNL_FACTOR_FOR_TRADERS_KEY = exports.MAX_PNL_FACTOR_FOR_DEPOSITS_KEY = exports.MAX_PNL_FACTOR_FOR_WITHDRAWALS_KEY = exports.MAX_PNL_FACTOR_KEY = exports.THRESHOLD_FOR_DECREASE_FUNDING = exports.THRESHOLD_FOR_STABLE_FUNDING = exports.MAX_FUNDING_FACTOR_PER_SECOND = exports.MIN_FUNDING_FACTOR_PER_SECOND = exports.FUNDING_DECREASE_FACTOR_PER_SECOND = exports.MIN_FUNDING_INCREASE_RATE_PER_SECOND = exports.FUNDING_INCREASE_FACTOR_PER_SECOND = exports.FUNDING_EXPONENT_FACTOR_KEY = exports.FUNDING_FACTOR_KEY = exports.TOTAL_BORROWING_KEY = exports.CUMULATIVE_BORROWING_FACTOR_KEY = exports.BORROWING_EXPONENT_FACTOR_KEY = exports.BORROWING_FACTOR_KEY = exports.NONCE_KEY = exports.MAX_COLLATERAL_SUM_KEY = exports.MAX_OPEN_INTEREST_KEY = exports.OPEN_INTEREST_RESERVE_FACTOR_KEY = exports.RESERVE_FACTOR_KEY = exports.MAX_POOL_AMOUNT_KEY = exports.MAX_POOL_USD_FOR_DEPOSIT_KEY = exports.POOL_AMOUNT_KEY = exports.OPEN_INTEREST_IN_TOKENS_KEY = exports.OPEN_INTEREST_KEY = exports.FEE_RECEIVER_POSITION_FACTOR_KEY = exports.FEE_RECEIVER_SWAP_FACTOR_KEY = exports.FEE_RECEIVER_WITHDRAWAL_FACTOR_KEY = exports.BORROWING_FEE_RECEIVER_FACTOR_KEY = exports.FEE_RECEIVER_DEPOSIT_FACTOR_KEY = exports.WITHDRAWAL_FEE_FACTOR_KEY = exports.ATOMIC_SWAP_FEE_FACTOR_KEY = exports.SWAP_FEE_FACTOR_KEY = exports.SWAP_IMPACT_EXPONENT_FACTOR_KEY = exports.SWAP_IMPACT_FACTOR_KEY = exports.POSITION_FEE_FACTOR_KEY = exports.POSITION_IMPACT_EXPONENT_FACTOR_KEY = exports.MAX_POSITION_IMPACT_FACTOR_KEY = exports.POSITION_IMPACT_FACTOR_KEY = void 0;
4
- exports.OPTIMAL_USAGE_FACTOR = exports.MAX_AUTO_CANCEL_ORDERS_KEY = exports.GLV_PER_MARKET_GAS_LIMIT = exports.GLV_WITHDRAWAL_GAS_LIMIT = exports.GLV_DEPOSIT_GAS_LIMIT = exports.GLV_SHIFT_MIN_INTERVAL = exports.GLV_SHIFT_LAST_EXECUTED_AT = exports.IS_GLV_MARKET_DISABLED = exports.GLV_MAX_MARKET_TOKEN_BALANCE_AMOUNT = exports.MIN_COLLATERAL_FACTOR_FOR_LIQUIDATION_KEY = exports.GLV_MAX_MARKET_TOKEN_BALANCE_USD = exports.SUBACCOUNT_AUTO_TOP_UP_AMOUNT = exports.SUBACCOUNT_INTEGRATION_ID = exports.SUBACCOUNT_ORDER_ACTION = exports.SUBACCOUNT_ACTION_COUNT = exports.MAX_ALLOWED_SUBACCOUNT_ACTION_COUNT = exports.SUBACCOUNT_LIST_KEY = exports.UI_FEE_FACTOR = exports.IS_MARKET_DISABLED_KEY = exports.AFFILIATE_REWARD_KEY = exports.VIRTUAL_INVENTORY_FOR_SWAPS_KEY = exports.VIRTUAL_INVENTORY_FOR_POSITIONS_IN_TOKENS_KEY = exports.VIRTUAL_INVENTORY_FOR_POSITIONS_KEY = exports.VIRTUAL_MARKET_ID_KEY = exports.VIRTUAL_TOKEN_ID_KEY = exports.CLAIMABLE_FUNDING_AMOUNT = exports.ACCOUNT_ORDER_LIST_KEY = exports.ORDER_LIST_KEY = exports.POSITION_LIST_KEY = exports.MARKET_LIST_KEY = exports.ESTIMATED_GAS_FEE_MULTIPLIER_FACTOR = exports.ESTIMATED_GAS_FEE_PER_ORACLE_PRICE = exports.ESTIMATED_GAS_FEE_BASE_AMOUNT_V2_1 = exports.NATIVE_TOKEN_TRANSFER_GAS_LIMIT_KEY = exports.TOKEN_TRANSFER_GAS_LIMIT_KEY = exports.SINGLE_SWAP_GAS_LIMIT_KEY = exports.SHIFT_GAS_LIMIT_KEY = exports.SWAP_ORDER_GAS_LIMIT_KEY = exports.DECREASE_ORDER_GAS_LIMIT_KEY = exports.INCREASE_ORDER_GAS_LIMIT_KEY = exports.WITHDRAWAL_GAS_LIMIT_KEY = exports.DEPOSIT_GAS_LIMIT_KEY = exports.MAX_LEVERAGE_KEY = exports.MIN_POSITION_SIZE_USD_KEY = exports.MIN_COLLATERAL_FACTOR_FOR_OPEN_INTEREST_MULTIPLIER_KEY = exports.MIN_COLLATERAL_FACTOR_KEY = exports.MIN_COLLATERAL_USD_KEY = exports.SWAP_IMPACT_POOL_AMOUNT_KEY = exports.POSITION_IMPACT_POOL_DISTRIBUTION_RATE_KEY = exports.MIN_POSITION_IMPACT_POOL_AMOUNT_KEY = void 0;
5
- exports.minPositionImpactPoolAmountKey = exports.positionImpactPoolAmountKey = exports.maxPnlFactorKey = exports.thresholdForDecreaseFundingKey = exports.thresholdForStableFundingKey = exports.maxFundingFactorPerSecondKey = exports.minFundingFactorPerSecondKey = exports.fundingDecreaseFactorPerSecondKey = exports.minFundingIncreaseRatePerSecondKey = exports.fundingIncreaseFactorPerSecondKey = exports.fundingExponentFactorKey = exports.fundingFactorKey = exports.totalBorrowingKey = exports.cumulativeBorrowingFactorKey = exports.borrowingExponentFactorKey = exports.borrowingFactorKey = exports.maxCollateralSumKey = exports.maxOpenInterestKey = exports.openInterestReserveFactorKey = exports.reserveFactorKey = exports.poolAmountKey = exports.openInterestInTokensKey = exports.openInterestKey = exports.withdrawalFeeFactorKey = exports.atomicSwapFeeFactorKey = exports.swapFeeFactorKey = exports.swapImpactExponentFactorKey = exports.swapImpactFactorKey = exports.positionFeeFactorKey = exports.maxPositionImpactFactorKey = exports.positionImpactExponentFactorKey = exports.positionImpactFactorKey = exports.isGlvDisabledKey = exports.glvMaxMarketTokenBalanceAmountKey = exports.glvMaxMarketTokenBalanceUsdKey = exports.glvShiftMinIntervalKey = exports.glvShiftLastExecutedAtKey = exports.subaccountExpiresAtKey = exports.USE_OPEN_INTEREST_IN_TOKENS_FOR_BALANCE = exports.GENERAL_CLAIM_FEATURE_DISABLED = exports.CLAIM_TERMS_KEY = exports.GMX_SIMULATION_ORIGIN = exports.REQUEST_EXPIRATION_TIME_KEY = exports.GELATO_RELAY_FEE_MULTIPLIER_FACTOR_KEY = exports.GASLESS_FEATURE_DISABLED_KEY = exports.PRICE_FEED_KEY = exports.MULTICHAIN_BALANCE = exports.SUBACCOUNT_EXPIRES_AT = exports.ABOVE_OPTIMAL_USAGE_BORROWING_FACTOR = exports.BASE_BORROWING_FACTOR = void 0;
6
- exports.claimsDisabledKey = exports.claimTermsKey = exports.gaslessFeatureDisabledKey = exports.priceFeedKey = exports.multichainBalanceKey = exports.subaccountAutoTopUpAmountKey = exports.subaccountIntegrationIdKey = exports.maxLendableImpactUsdKey = exports.maxLendableImpactFactorForWithdrawalsKey = exports.maxLendableImpactFactorKey = exports.subaccountActionCountKey = exports.maxAllowedSubaccountActionCountKey = exports.subaccountListKey = exports.uiFeeFactorKey = exports.maxPoolAmountKey = exports.maxPoolUsdForDepositKey = exports.isMarketDisabledKey = exports.affiliateRewardKey = exports.virtualInventoryForPositionsInTokensKey = exports.virtualInventoryForPositionsKey = exports.virtualInventoryForSwapsKey = exports.virtualMarketIdKey = exports.virtualTokenIdKey = exports.claimableFundingAmountKey = exports.hashedPositionKey = exports.minCollateralFactorForOpenInterest = exports.minCollateralFactorForLiquidationKey = exports.minCollateralFactorKey = exports.accountOrderListKey = exports.swapOrderGasLimitKey = exports.decreaseOrderGasLimitKey = exports.increaseOrderGasLimitKey = exports.singleSwapGasLimitKey = exports.shiftGasLimitKey = exports.withdrawalGasLimitKey = exports.depositGasLimitKey = exports.orderKey = exports.swapImpactPoolAmountKey = exports.maxPositionImpactFactorForLiquidationsKey = exports.positionImpactPoolDistributionRateKey = void 0;
4
+ exports.GLV_PER_MARKET_GAS_LIMIT = exports.GLV_WITHDRAWAL_GAS_LIMIT = exports.GLV_DEPOSIT_GAS_LIMIT = exports.GLV_SHIFT_MIN_INTERVAL = exports.GLV_SHIFT_LAST_EXECUTED_AT = exports.IS_GLV_MARKET_DISABLED = exports.GLV_MAX_MARKET_TOKEN_BALANCE_AMOUNT = exports.MIN_COLLATERAL_FACTOR_FOR_LIQUIDATION_KEY = exports.GLV_MAX_MARKET_TOKEN_BALANCE_USD = exports.SUBACCOUNT_AUTO_TOP_UP_AMOUNT = exports.SUBACCOUNT_INTEGRATION_ID = exports.SUBACCOUNT_ORDER_ACTION = exports.SUBACCOUNT_ACTION_COUNT = exports.MAX_ALLOWED_SUBACCOUNT_ACTION_COUNT = exports.SUBACCOUNT_LIST_KEY = exports.UI_FEE_FACTOR = exports.IS_MARKET_DISABLED_KEY = exports.AFFILIATE_REWARD_KEY = exports.VIRTUAL_INVENTORY_FOR_SWAPS_KEY = exports.VIRTUAL_INVENTORY_FOR_POSITIONS_IN_TOKENS_KEY = exports.VIRTUAL_INVENTORY_FOR_POSITIONS_KEY = exports.VIRTUAL_MARKET_ID_KEY = exports.VIRTUAL_TOKEN_ID_KEY = exports.CLAIMABLE_FUNDING_AMOUNT = exports.ACCOUNT_ORDER_LIST_KEY = exports.ORDER_LIST_KEY = exports.POSITION_LIST_KEY = exports.MARKET_LIST_KEY = exports.ESTIMATED_GAS_FEE_MULTIPLIER_FACTOR = exports.ESTIMATED_GAS_FEE_PER_ORACLE_PRICE = exports.ESTIMATED_GAS_FEE_BASE_AMOUNT_V2_1 = exports.NATIVE_TOKEN_TRANSFER_GAS_LIMIT_KEY = exports.TOKEN_TRANSFER_GAS_LIMIT_KEY = exports.SINGLE_SWAP_GAS_LIMIT_KEY = exports.SHIFT_GAS_LIMIT_KEY = exports.SWAP_ORDER_GAS_LIMIT_KEY = exports.DECREASE_ORDER_GAS_LIMIT_KEY = exports.INCREASE_ORDER_GAS_LIMIT_KEY = exports.WITHDRAWAL_GAS_LIMIT_KEY = exports.DEPOSIT_GAS_LIMIT_KEY = exports.MAX_LEVERAGE_KEY = exports.MIN_POSITION_SIZE_USD_KEY = exports.MIN_COLLATERAL_FACTOR_FOR_OPEN_INTEREST_MULTIPLIER_KEY = exports.MIN_COLLATERAL_FACTOR_KEY = exports.PRO_DISCOUNT_FACTOR_KEY = exports.PRO_TRADER_TIER_KEY = exports.MIN_COLLATERAL_USD_KEY = exports.SWAP_IMPACT_POOL_AMOUNT_KEY = exports.POSITION_IMPACT_POOL_DISTRIBUTION_RATE_KEY = exports.MIN_POSITION_IMPACT_POOL_AMOUNT_KEY = void 0;
5
+ exports.maxPnlFactorKey = exports.thresholdForDecreaseFundingKey = exports.thresholdForStableFundingKey = exports.maxFundingFactorPerSecondKey = exports.minFundingFactorPerSecondKey = exports.fundingDecreaseFactorPerSecondKey = exports.minFundingIncreaseRatePerSecondKey = exports.fundingIncreaseFactorPerSecondKey = exports.fundingExponentFactorKey = exports.fundingFactorKey = exports.totalBorrowingKey = exports.cumulativeBorrowingFactorKey = exports.borrowingExponentFactorKey = exports.borrowingFactorKey = exports.maxCollateralSumKey = exports.maxOpenInterestKey = exports.openInterestReserveFactorKey = exports.reserveFactorKey = exports.poolAmountKey = exports.openInterestInTokensKey = exports.openInterestKey = exports.withdrawalFeeFactorKey = exports.atomicSwapFeeFactorKey = exports.swapFeeFactorKey = exports.swapImpactExponentFactorKey = exports.swapImpactFactorKey = exports.positionFeeFactorKey = exports.maxPositionImpactFactorKey = exports.positionImpactExponentFactorKey = exports.positionImpactFactorKey = exports.isGlvDisabledKey = exports.glvMaxMarketTokenBalanceAmountKey = exports.glvMaxMarketTokenBalanceUsdKey = exports.glvShiftMinIntervalKey = exports.glvShiftLastExecutedAtKey = exports.subaccountExpiresAtKey = exports.USE_OPEN_INTEREST_IN_TOKENS_FOR_BALANCE = exports.GENERAL_CLAIM_FEATURE_DISABLED = exports.CLAIM_TERMS_KEY = exports.GMX_SIMULATION_ORIGIN = exports.REQUEST_EXPIRATION_TIME_KEY = exports.GELATO_RELAY_FEE_MULTIPLIER_FACTOR_KEY = exports.GASLESS_FEATURE_DISABLED_KEY = exports.PRICE_FEED_KEY = exports.MULTICHAIN_BALANCE = exports.SUBACCOUNT_EXPIRES_AT = exports.ABOVE_OPTIMAL_USAGE_BORROWING_FACTOR = exports.BASE_BORROWING_FACTOR = exports.OPTIMAL_USAGE_FACTOR = exports.MAX_AUTO_CANCEL_ORDERS_KEY = void 0;
6
+ exports.claimsDisabledKey = exports.claimTermsKey = exports.gaslessFeatureDisabledKey = exports.priceFeedKey = exports.multichainBalanceKey = exports.subaccountAutoTopUpAmountKey = exports.subaccountIntegrationIdKey = exports.maxLendableImpactUsdKey = exports.maxLendableImpactFactorForWithdrawalsKey = exports.maxLendableImpactFactorKey = exports.subaccountActionCountKey = exports.maxAllowedSubaccountActionCountKey = exports.subaccountListKey = exports.uiFeeFactorKey = exports.maxPoolAmountKey = exports.maxPoolUsdForDepositKey = exports.isMarketDisabledKey = exports.affiliateRewardKey = exports.virtualInventoryForPositionsInTokensKey = exports.virtualInventoryForPositionsKey = exports.virtualInventoryForSwapsKey = exports.virtualMarketIdKey = exports.virtualTokenIdKey = exports.claimableFundingAmountKey = exports.hashedPositionKey = exports.minCollateralFactorForOpenInterest = exports.minCollateralFactorForLiquidationKey = exports.proDiscountFactorKey = exports.proTraderTierKey = exports.minCollateralFactorKey = exports.accountOrderListKey = exports.swapOrderGasLimitKey = exports.decreaseOrderGasLimitKey = exports.increaseOrderGasLimitKey = exports.singleSwapGasLimitKey = exports.shiftGasLimitKey = exports.withdrawalGasLimitKey = exports.depositGasLimitKey = exports.orderKey = exports.swapImpactPoolAmountKey = exports.maxPositionImpactFactorForLiquidationsKey = exports.positionImpactPoolDistributionRateKey = exports.minPositionImpactPoolAmountKey = exports.positionImpactPoolAmountKey = void 0;
7
7
  const hash_1 = require("../utils/hash");
8
8
  exports.POSITION_IMPACT_FACTOR_KEY = (0, hash_1.hashString)("POSITION_IMPACT_FACTOR");
9
9
  exports.MAX_POSITION_IMPACT_FACTOR_KEY = (0, hash_1.hashString)("MAX_POSITION_IMPACT_FACTOR");
@@ -59,6 +59,8 @@ exports.MIN_POSITION_IMPACT_POOL_AMOUNT_KEY = (0, hash_1.hashString)("MIN_POSITI
59
59
  exports.POSITION_IMPACT_POOL_DISTRIBUTION_RATE_KEY = (0, hash_1.hashString)("POSITION_IMPACT_POOL_DISTRIBUTION_RATE");
60
60
  exports.SWAP_IMPACT_POOL_AMOUNT_KEY = (0, hash_1.hashString)("SWAP_IMPACT_POOL_AMOUNT");
61
61
  exports.MIN_COLLATERAL_USD_KEY = (0, hash_1.hashString)("MIN_COLLATERAL_USD");
62
+ exports.PRO_TRADER_TIER_KEY = (0, hash_1.hashString)("PRO_TRADER_TIER");
63
+ exports.PRO_DISCOUNT_FACTOR_KEY = (0, hash_1.hashString)("PRO_DISCOUNT_FACTOR");
62
64
  exports.MIN_COLLATERAL_FACTOR_KEY = (0, hash_1.hashString)("MIN_COLLATERAL_FACTOR");
63
65
  exports.MIN_COLLATERAL_FACTOR_FOR_OPEN_INTEREST_MULTIPLIER_KEY = (0, hash_1.hashString)("MIN_COLLATERAL_FACTOR_FOR_OPEN_INTEREST_MULTIPLIER");
64
66
  exports.MIN_POSITION_SIZE_USD_KEY = (0, hash_1.hashString)("MIN_POSITION_SIZE_USD");
@@ -321,6 +323,14 @@ function minCollateralFactorKey(market) {
321
323
  return (0, hash_1.hashData)(["bytes32", "address"], [exports.MIN_COLLATERAL_FACTOR_KEY, market]);
322
324
  }
323
325
  exports.minCollateralFactorKey = minCollateralFactorKey;
326
+ function proTraderTierKey(account) {
327
+ return (0, hash_1.hashData)(["bytes32", "address"], [exports.PRO_TRADER_TIER_KEY, account]);
328
+ }
329
+ exports.proTraderTierKey = proTraderTierKey;
330
+ function proDiscountFactorKey(proTier) {
331
+ return (0, hash_1.hashData)(["bytes32", "uint256"], [exports.PRO_DISCOUNT_FACTOR_KEY, proTier]);
332
+ }
333
+ exports.proDiscountFactorKey = proDiscountFactorKey;
324
334
  function minCollateralFactorForLiquidationKey(market) {
325
335
  return (0, hash_1.hashData)(["bytes32", "address"], [exports.MIN_COLLATERAL_FACTOR_FOR_LIQUIDATION_KEY, market]);
326
336
  }
@@ -12,6 +12,7 @@ exports.DEFAULT_SUBACCOUNT_MAX_ALLOWED_COUNT = 90;
12
12
  exports.DEFAULT_PERMIT_DEADLINE_DURATION = (0, time_1.periodToSeconds)(1, "1h");
13
13
  exports.DEFAULT_EXPRESS_ORDER_DEADLINE_DURATION = (0, time_1.periodToSeconds)(1, "1h");
14
14
  exports.MIN_RELAYER_FEE_USD = 5n ** BigInt(numbers_1.USD_DECIMALS - 1); // 0.5$
15
+ /** @deprecated Gelato shuts its relay services down on 2026-09-01; use GMX Relay (`sendToGmxRelay`). */
15
16
  exports.GELATO_API_KEYS = {
16
17
  [chains_1.ARBITRUM]: "6dE6kOa9pc1ap4dQQC2iaK9i6nBFp8eYxQlm00VreWc_",
17
18
  [chains_1.AVALANCHE]: "FalsQh9loL6V0rwPy4gWgnQPR6uTHfWjSVT2qlTzUq4_",
@@ -88,13 +88,6 @@ exports.MARKETS = {
88
88
  longTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
89
89
  shortTokenAddress: "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
90
90
  },
91
- // SWAP-ONLY [USDC-DAI]
92
- "0xe2fEDb9e6139a182B98e7C2688ccFa3e9A53c665": {
93
- marketTokenAddress: "0xe2fEDb9e6139a182B98e7C2688ccFa3e9A53c665",
94
- indexTokenAddress: "0x0000000000000000000000000000000000000000",
95
- longTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
96
- shortTokenAddress: "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",
97
- },
98
91
  // XRP/USD [WETH-USDC]
99
92
  "0x0CCB4fAa6f1F1B30911619f1184082aB4E25813c": {
100
93
  marketTokenAddress: "0x0CCB4fAa6f1F1B30911619f1184082aB4E25813c",
@@ -312,13 +305,6 @@ exports.MARKETS = {
312
305
  longTokenAddress: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
313
306
  shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
314
307
  },
315
- // TON/USD [WETH-USDC]
316
- "0x15c6eBD4175ffF9EE3c2615c556fCf62D2d9499c": {
317
- marketTokenAddress: "0x15c6eBD4175ffF9EE3c2615c556fCf62D2d9499c",
318
- indexTokenAddress: "0xB2f7cefaeEb08Aa347705ac829a7b8bE2FB560f3",
319
- longTokenAddress: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
320
- shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
321
- },
322
308
  // WLD/USD [WETH-USDC]
323
309
  "0x872b5D567a2469Ed92D252eaCB0EB3BB0769e05b": {
324
310
  marketTokenAddress: "0x872b5D567a2469Ed92D252eaCB0EB3BB0769e05b",
@@ -459,13 +445,6 @@ exports.MARKETS = {
459
445
  longTokenAddress: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
460
446
  shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
461
447
  },
462
- // MELANIA/USD [WETH-USDC]
463
- "0x12fD1A4BdB96219E637180Ff5293409502b2951D": {
464
- marketTokenAddress: "0x12fD1A4BdB96219E637180Ff5293409502b2951D",
465
- indexTokenAddress: "0xfa4F8E582214eBCe1A08eB2a65e08082053E441F",
466
- longTokenAddress: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
467
- shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
468
- },
469
448
  // ENA/USD [WETH-USDC]
470
449
  "0x9F159014CC218e942E9E9481742fE5BFa9ac5A2C": {
471
450
  marketTokenAddress: "0x9F159014CC218e942E9E9481742fE5BFa9ac5A2C",
@@ -473,13 +452,6 @@ exports.MARKETS = {
473
452
  longTokenAddress: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
474
453
  shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
475
454
  },
476
- // AI16Z/USD [WBTC.e-USDC]
477
- "0xD60f1BA6a76979eFfE706BF090372Ebc0A5bF169": {
478
- marketTokenAddress: "0xD60f1BA6a76979eFfE706BF090372Ebc0A5bF169",
479
- indexTokenAddress: "0xBb69bd9dc152C2c0F083507641a46193d2B61EBb",
480
- longTokenAddress: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",
481
- shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
482
- },
483
455
  // ANIME/USD [ANIME-USDC]
484
456
  "0x5707673D95a8fD317e2745C4217aCD64ca021B68": {
485
457
  marketTokenAddress: "0x5707673D95a8fD317e2745C4217aCD64ca021B68",
@@ -571,20 +543,6 @@ exports.MARKETS = {
571
543
  longTokenAddress: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",
572
544
  shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
573
545
  },
574
- // MKR/USD [WETH-USDC]
575
- "0x2aE5c5Cd4843cf588AA8D1289894318130acc823": {
576
- marketTokenAddress: "0x2aE5c5Cd4843cf588AA8D1289894318130acc823",
577
- indexTokenAddress: "0x8904De84c3bB3B7D2383F934Af40FcB3Ef82F28b",
578
- longTokenAddress: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
579
- shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
580
- },
581
- // OM/USD [WBTC-USDC]
582
- "0x89EB78679921499632fF16B1be3ee48295cfCD91": {
583
- marketTokenAddress: "0x89EB78679921499632fF16B1be3ee48295cfCD91",
584
- indexTokenAddress: "0x1f3407Ea067DfBDF6dEb6bBFdA4869215fB0ab77",
585
- longTokenAddress: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",
586
- shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
587
- },
588
546
  // DOLO/USD [WETH-USDC]
589
547
  "0x4D3Eb91efd36C2b74181F34B111bc1E91a0d0cb4": {
590
548
  marketTokenAddress: "0x4D3Eb91efd36C2b74181F34B111bc1E91a0d0cb4",
@@ -620,13 +578,6 @@ exports.MARKETS = {
620
578
  longTokenAddress: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",
621
579
  shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
622
580
  },
623
- // PI/USD [WBTC-USDC]
624
- "0x39AC3C494950A4363D739201BA5A0861265C9ae5": {
625
- marketTokenAddress: "0x39AC3C494950A4363D739201BA5A0861265C9ae5",
626
- indexTokenAddress: "0xd1738d37401a0A71f7E382d2cFeCD3ab69687017",
627
- longTokenAddress: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",
628
- shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
629
- },
630
581
  // PUMP/USD [WBTC-USDC]
631
582
  "0x4C0Bb704529Fa49A26bD854802d70206982c6f1B": {
632
583
  marketTokenAddress: "0x4C0Bb704529Fa49A26bD854802d70206982c6f1B",
@@ -746,20 +697,6 @@ exports.MARKETS = {
746
697
  longTokenAddress: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
747
698
  shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
748
699
  },
749
- // WELL/USD [WETH-USDC]
750
- "0x2347EbB8645Cc2EA0Ba92D1EC59704031F2fCCf4": {
751
- marketTokenAddress: "0x2347EbB8645Cc2EA0Ba92D1EC59704031F2fCCf4",
752
- indexTokenAddress: "0x465A31E5bA29b8EAcC860d499D714a6f07e56E85",
753
- longTokenAddress: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
754
- shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
755
- },
756
- // KTA/USD [WETH-USDC]
757
- "0x970b730b5dD18de53A230eE8F4af088dBC3a6F8d": {
758
- marketTokenAddress: "0x970b730b5dD18de53A230eE8F4af088dBC3a6F8d",
759
- indexTokenAddress: "0x96Ee343E36E8642627FAEa235D57a9FEC8a6e34f",
760
- longTokenAddress: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
761
- shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
762
- },
763
700
  // ZORA/USD [WETH-USDC]
764
701
  "0xac484106d935f0f20F1485b631fA6F65AeEff550": {
765
702
  marketTokenAddress: "0xac484106d935f0f20F1485b631fA6F65AeEff550",
@@ -886,13 +823,6 @@ exports.MARKETS = {
886
823
  longTokenAddress: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
887
824
  shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
888
825
  },
889
- // IP/USD [WBTC-USDC]
890
- "0x5ff52BE1968107D7886a8E9A64874A45c8F5D96a": {
891
- marketTokenAddress: "0x5ff52BE1968107D7886a8E9A64874A45c8F5D96a",
892
- indexTokenAddress: "0xe7304E9F4ca383BD6312a5179cdC7B40B96A6F5a",
893
- longTokenAddress: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",
894
- shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
895
- },
896
826
  // CC/USD [WBTC-USDC]
897
827
  "0x45F0331a6e175B556Bc7d28E0A1c349525006d4E": {
898
828
  marketTokenAddress: "0x45F0331a6e175B556Bc7d28E0A1c349525006d4E",
@@ -949,6 +879,20 @@ exports.MARKETS = {
949
879
  longTokenAddress: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
950
880
  shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
951
881
  },
882
+ // QQQ/USD [WETH-USDC]
883
+ "0x1C132E43029efCd57435eE79ceA98006C6227A6f": {
884
+ marketTokenAddress: "0x1C132E43029efCd57435eE79ceA98006C6227A6f",
885
+ indexTokenAddress: "0xfe71D55D0080b6995Ec2C3f48b7702c86e200766",
886
+ longTokenAddress: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
887
+ shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
888
+ },
889
+ // SPY/USD [WETH-USDC]
890
+ "0xcBd4c1b0c89D50793c5A3e8d96d98FcB4f1B1c47": {
891
+ marketTokenAddress: "0xcBd4c1b0c89D50793c5A3e8d96d98FcB4f1B1c47",
892
+ indexTokenAddress: "0x0315441076FF6d3eA09814a2F90a1f980cF03e9e",
893
+ longTokenAddress: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
894
+ shortTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
895
+ },
952
896
  // MEGA/USD [WETH-USDC]
953
897
  "0xE26E7b91143f367445f1c0a5dCf4f4aC8EaDcDb1": {
954
898
  marketTokenAddress: "0xE26E7b91143f367445f1c0a5dCf4f4aC8EaDcDb1",
@@ -1021,13 +965,6 @@ exports.MARKETS = {
1021
965
  longTokenAddress: "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
1022
966
  shortTokenAddress: "0xc7198437980c041c805A1EDcbA50c1Ce5db95118",
1023
967
  },
1024
- // SWAP-ONLY [USDC-DAI.e]
1025
- "0xDf8c9BD26e7C1A331902758Eb013548B2D22ab3b": {
1026
- marketTokenAddress: "0xDf8c9BD26e7C1A331902758Eb013548B2D22ab3b",
1027
- indexTokenAddress: "0x0000000000000000000000000000000000000000",
1028
- longTokenAddress: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
1029
- shortTokenAddress: "0xd586E7F844cEa2F87f50152665BCbc2C279D8d70",
1030
- },
1031
968
  // XRP/USD [WAVAX-USDC]
1032
969
  "0xD1cf931fa12783c1dd5AbB77a0706c27CF352f25": {
1033
970
  marketTokenAddress: "0xD1cf931fa12783c1dd5AbB77a0706c27CF352f25",