@gmx-io/sdk 1.4.1 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/src/configs/markets.js +35 -0
- package/build/cjs/src/configs/tokens.js +48 -169
- package/build/cjs/src/modules/orders/helpers.js +2 -0
- package/build/cjs/src/prebuilt/hashedKinkModelMarketRatesKeys.json +40 -0
- package/build/cjs/src/prebuilt/hashedMarketConfigKeys.json +285 -0
- package/build/cjs/src/prebuilt/hashedMarketValuesKeys.json +75 -0
- package/build/cjs/src/utils/multicall.js +2 -2
- package/build/cjs/src/utils/swap/__tests__/findSwapPathsBetweenTokens.spec.js +22 -0
- package/build/cjs/src/utils/swap/__tests__/mockRouting.spec.js +257 -0
- package/build/cjs/src/utils/swap/buildSwapStrategy.js +12 -4
- package/build/cjs/src/utils/swap/findSwapPathsBetweenTokens.js +8 -4
- package/build/cjs/src/utils/swap/swapValues.js +13 -6
- package/build/cjs/src/utils/trade/increase.js +3 -0
- package/build/esm/src/configs/markets.js +35 -0
- package/build/esm/src/configs/tokens.js +48 -169
- package/build/esm/src/modules/orders/helpers.js +2 -0
- package/build/esm/src/prebuilt/hashedKinkModelMarketRatesKeys.json +40 -0
- package/build/esm/src/prebuilt/hashedMarketConfigKeys.json +285 -0
- package/build/esm/src/prebuilt/hashedMarketValuesKeys.json +75 -0
- package/build/esm/src/utils/multicall.js +2 -2
- package/build/esm/src/utils/swap/__tests__/findSwapPathsBetweenTokens.spec.js +22 -0
- package/build/esm/src/utils/swap/__tests__/mockRouting.spec.js +257 -0
- package/build/esm/src/utils/swap/buildSwapStrategy.js +13 -5
- package/build/esm/src/utils/swap/findSwapPathsBetweenTokens.js +8 -4
- package/build/esm/src/utils/swap/swapValues.js +14 -7
- package/build/esm/src/utils/trade/increase.js +3 -0
- package/build/types/src/types/tokens.d.ts +0 -3
- package/build/types/src/utils/multicall.d.ts +2 -2
- package/build/types/src/utils/swap/buildSwapStrategy.d.ts +4 -2
- package/build/types/src/utils/swap/swapValues.d.ts +2 -0
- package/package.json +10 -4
|
@@ -208,6 +208,7 @@ export async function swap(sdk, params) {
|
|
|
208
208
|
marketsInfoData,
|
|
209
209
|
chainId: sdk.chainId,
|
|
210
210
|
externalSwapQuoteParams: undefined,
|
|
211
|
+
allowSameTokenSwap: true,
|
|
211
212
|
});
|
|
212
213
|
}
|
|
213
214
|
else {
|
|
@@ -224,6 +225,7 @@ export async function swap(sdk, params) {
|
|
|
224
225
|
marketsInfoData,
|
|
225
226
|
chainId: sdk.chainId,
|
|
226
227
|
externalSwapQuoteParams: undefined,
|
|
228
|
+
allowSameTokenSwap: true,
|
|
227
229
|
});
|
|
228
230
|
}
|
|
229
231
|
if (!swapAmounts) {
|
|
@@ -961,6 +961,46 @@
|
|
|
961
961
|
"baseBorrowingFactorShort": "0x751c8941b4092c9a3ad24fed4204fd80472691e95370bd1fbef865e86da75d77",
|
|
962
962
|
"aboveOptimalUsageBorrowingFactorLong": "0x55e15ee294aa6f6b23491893e6b067805930a7fe5e98629675738761cf1d1f6f",
|
|
963
963
|
"aboveOptimalUsageBorrowingFactorShort": "0xcc46958a3873436f86a9484b826b92d81745e593f5550b125002610d7fd431b1"
|
|
964
|
+
},
|
|
965
|
+
"0xfa19f7d23a475575BD0270AE7de4FC6852442945": {
|
|
966
|
+
"optimalUsageFactorLong": "0xe56e1a5f25e3fde9ab55f2afc98de3e0bbf3c68b73ce29c8300bb73cdd8218ad",
|
|
967
|
+
"optimalUsageFactorShort": "0xe49cbf0642c83b1bc807b64460ce9bee59b03d3032b8cf3d5240aa61b2118b50",
|
|
968
|
+
"baseBorrowingFactorLong": "0x7bd74bc367b9eb27d459b49785dd96931c1991364e43354d9380d17b8adb05e4",
|
|
969
|
+
"baseBorrowingFactorShort": "0x0857392ab7a0d083569781de2ff69953fb40a67c880b75948124fd93620ab78b",
|
|
970
|
+
"aboveOptimalUsageBorrowingFactorLong": "0xdafaf5ce6fe3c38458f7f9bc5ca7164b815a7af01d3afd69607894efc1b121a7",
|
|
971
|
+
"aboveOptimalUsageBorrowingFactorShort": "0x2149107fec7c12c4b5c9f1126f6a9a6fef2680e3f31eaca701bcb6b975381005"
|
|
972
|
+
},
|
|
973
|
+
"0x728Ff0679c89267434D6EF1824c8C8eED4aC3DBC": {
|
|
974
|
+
"optimalUsageFactorLong": "0xfdadc2897ff05bdb6337e026a70ad35af0803aa954010bbfb41773c8b6d36b66",
|
|
975
|
+
"optimalUsageFactorShort": "0xc4f39dc4760532e0f59fe45df41d57692e73ac7c0da811b5dc64476e886a1ef9",
|
|
976
|
+
"baseBorrowingFactorLong": "0xb7ef00c3352f485280af2e6e6505f0287940d9f79d68d015318adebef17ecd37",
|
|
977
|
+
"baseBorrowingFactorShort": "0xecca91241bff674b42c524ff5a59df745ef106d1812626a2172d5f34232a9934",
|
|
978
|
+
"aboveOptimalUsageBorrowingFactorLong": "0x71c5cb6903d3b241683bed22daaf3b16cb001e958474e526c8e23141ec5c0b70",
|
|
979
|
+
"aboveOptimalUsageBorrowingFactorShort": "0x86aa1a35ac789383357cafbf9b028d4d08e37f4a9c7afcc5c9564b5152058379"
|
|
980
|
+
},
|
|
981
|
+
"0x3B4689d69516b9D4b1aaf7545c6fC4d3ED70b70b": {
|
|
982
|
+
"optimalUsageFactorLong": "0x249c4ae823325f30b15976abfd032488c4a21c3b5d882be8b6cfb200ee23374b",
|
|
983
|
+
"optimalUsageFactorShort": "0xc1b48f3e354ddc517cac17dbdefb2829a60e73ca83bc66251629abf779d1ff52",
|
|
984
|
+
"baseBorrowingFactorLong": "0xba01524bd8057031f031bfcc69bfdc8cc98e5db0308a49baa7fc8b7612ac8d21",
|
|
985
|
+
"baseBorrowingFactorShort": "0x70acea79b8572678ff9075a06eef982387913e6c8db4199bb331d5a40a391521",
|
|
986
|
+
"aboveOptimalUsageBorrowingFactorLong": "0x4c77077de23e4043ca40de5f38a1c42422bc8070f8d99333242d1f6c69b60ada",
|
|
987
|
+
"aboveOptimalUsageBorrowingFactorShort": "0x187efc110e0af5d5d5261f226515e7cf4298241009b60a0f1cdf701404a09dcb"
|
|
988
|
+
},
|
|
989
|
+
"0x8965e821c7C8c09c6eB3Cb9cCf7Eb6f386441EA2": {
|
|
990
|
+
"optimalUsageFactorLong": "0xa73c96906c7c6c667dede422cbf696c5721a923e94349ddc3434ec9b7afddee0",
|
|
991
|
+
"optimalUsageFactorShort": "0xc82e2d16723870369bba6a01e2164600a87dc0346ffe91f3045372ea55187d4e",
|
|
992
|
+
"baseBorrowingFactorLong": "0x30608dfea0101864be5ee22793cb4ea41a62e8c9ff82b5191789afa2aed7cd5a",
|
|
993
|
+
"baseBorrowingFactorShort": "0xe349eec53189464af1336f60a07328052a3466a4d9148ca27a5813f41c07da88",
|
|
994
|
+
"aboveOptimalUsageBorrowingFactorLong": "0xe823865d0dca006e6966ea7805f17d22f4b6f355c2bf1efac89d2c9956fa35dc",
|
|
995
|
+
"aboveOptimalUsageBorrowingFactorShort": "0x9ff808498d6fd073384f8961e0ab3e69badb5625f9f150dd31f00145b3dcc0fe"
|
|
996
|
+
},
|
|
997
|
+
"0x3600592DdEd7e6E0B05029DfB637fFc5A85D6f6B": {
|
|
998
|
+
"optimalUsageFactorLong": "0x5a927fd21912410b14458c4e57f22b5957e3a5bbc959a4f790fee4e6482e06ba",
|
|
999
|
+
"optimalUsageFactorShort": "0x8591e79bf6f2dc147224ca1b4a730fe011d727ae4d781c18fe2e0e3686fb6bf8",
|
|
1000
|
+
"baseBorrowingFactorLong": "0xc34abc93fac7aeb6f5b176b63da61665d45b9f1ec69430c997db0e06e7fcbb83",
|
|
1001
|
+
"baseBorrowingFactorShort": "0x933c6fd4c00cf204a5dd89da7d9a1fc42250c2871d054d8f4212a84103b123c5",
|
|
1002
|
+
"aboveOptimalUsageBorrowingFactorLong": "0x7423eb29097c16fa9d217ac13e48608a6e6ccbed20a7b213b9e5c96a6d4fcb9f",
|
|
1003
|
+
"aboveOptimalUsageBorrowingFactorShort": "0x93e5817e0667fabbbbca6c9047a7fc132a5f6d131e07966e1708b6d9f855b75b"
|
|
964
1004
|
}
|
|
965
1005
|
},
|
|
966
1006
|
"43113": {
|
|
@@ -6841,6 +6841,291 @@
|
|
|
6841
6841
|
"virtualMarketId": "0x29d0856f1f93b7379ccb047a97f9c040c0eeba0b56cfe885fefbf17cd08c5dcc",
|
|
6842
6842
|
"virtualLongTokenId": "0xaab37f889b9680dda34f58a689de3023cb22f7ae14d32a3c1d45798a973db1f5",
|
|
6843
6843
|
"virtualShortTokenId": "0xd5258cb84f0039be58306488e8df941c05f3cf4f219e92aacb6561c736bbb960"
|
|
6844
|
+
},
|
|
6845
|
+
"0xfa19f7d23a475575BD0270AE7de4FC6852442945": {
|
|
6846
|
+
"isDisabled": "0xd5e8e99903d1982ff2f0aba73d43f3147e49859ab324b93754bbe3a8d4e0bd18",
|
|
6847
|
+
"maxLongPoolAmount": "0xa2202520e24528b697fd0a585d61e8ff2ef6ff773272553d3d6fc6b1d4f37e9f",
|
|
6848
|
+
"maxShortPoolAmount": "0x0ef5e1c146eb47a40b09c13e5bc1424cfbd0964d4351591f6bcfe829dbb23d3b",
|
|
6849
|
+
"maxLongPoolUsdForDeposit": "0xc9743a9f1c8fc8309a3708e9989f2c00089ce6c4194154b4dccc57dc85e96e56",
|
|
6850
|
+
"maxShortPoolUsdForDeposit": "0xe62ef6b7962a06d4a1617f870e0e0f1052d134def6badf75fcc7b9955d6c1a75",
|
|
6851
|
+
"reserveFactorLong": "0x620e26d53f8f7e6b05ae162196778239aa6e84c58f262307ca12da9e344df231",
|
|
6852
|
+
"reserveFactorShort": "0x235b8e593ae705c4ed7f6bda09b23b6ae92bf2bc202cacb3f542274ab9043173",
|
|
6853
|
+
"openInterestReserveFactorLong": "0xb581454711311d0c006aa8865bf61fea3b6b1e336813417574ffc01ad05285b9",
|
|
6854
|
+
"openInterestReserveFactorShort": "0x8fff399ded7ecb649c133b63641d6946f20b1ee0f84c02f434babfa04b702e26",
|
|
6855
|
+
"maxOpenInterestLong": "0xe40cee9911e9fa24e37778f80ca292a397b1d35f3c472c7aec980f828c73b544",
|
|
6856
|
+
"maxOpenInterestShort": "0xce0149bcc98acb7071b33d6b7bb0251d886f6da38e490f3aa554a909171f1f70",
|
|
6857
|
+
"minPositionImpactPoolAmount": "0x930df6864a5f9a0fcafb4f2c11810c174a00bad90034aa7b5743e35f83208d56",
|
|
6858
|
+
"positionImpactPoolDistributionRate": "0xa8df2a71ee5c773d44d01c8a6baa65433a7dd4a77b2ab8d1c1373f6cd02eda51",
|
|
6859
|
+
"borrowingFactorLong": "0x09d9d0ef4ca5ede613a1ce1cc1e017284da69f0ab97a916f6dfa948bb87c4505",
|
|
6860
|
+
"borrowingFactorShort": "0x1557c62c7ed32c456c4618d6e9b1caee61f01f76782d7d1241f997b264439996",
|
|
6861
|
+
"borrowingExponentFactorLong": "0x98c46b7cbc21068b7de90510cb9aa2627dbfbf94d845d188671f7f3adc88301b",
|
|
6862
|
+
"borrowingExponentFactorShort": "0x9f7a0a3e1fe4986b0fb2b2760943fe035df89c44af8c0228b677a15e6b46bf8e",
|
|
6863
|
+
"fundingFactor": "0x10c60267741e2ef993e2507e3b5024e126ddc3ef51099e3d4fc482f87d483eaa",
|
|
6864
|
+
"fundingExponentFactor": "0xf641f785aa8769483aaad5aad662a71034f092f6bc3db69a23d359618da5ec5d",
|
|
6865
|
+
"fundingIncreaseFactorPerSecond": "0xa9b29dfc5f94ff2d153424541c72ffaebb50b6a3bb0b3bfa4e7902469c9a7390",
|
|
6866
|
+
"fundingDecreaseFactorPerSecond": "0x8d075d81bb8240a8660e865e569bbd8494331893d5756864a4f9eabf56b7f278",
|
|
6867
|
+
"thresholdForStableFunding": "0x9da49f83985f2faafbe252d0a56335fa423dc3d94a4a67ac2020e5fd08f1d095",
|
|
6868
|
+
"thresholdForDecreaseFunding": "0xad6af882638705490c8d04088aeb7e42aef8ba347abb10b4e4c26c1cc687f44b",
|
|
6869
|
+
"minFundingFactorPerSecond": "0xfd964a3a29fd424d7311a4786af02acf183b322db770989652382df7eb79c27c",
|
|
6870
|
+
"maxFundingFactorPerSecond": "0xdb6dd86d16d888da748656220c63ae92a5cc3fd6a6194a4d554400774d6afaae",
|
|
6871
|
+
"maxPnlFactorForTradersLong": "0x4c6b0712ce919d6bfd40cdb7b44a0626834cdded8ff7d62e6f13a7b37539a3ec",
|
|
6872
|
+
"maxPnlFactorForTradersShort": "0x7a036a74b7f2d5b0de6664548cb1f0e024eb3ad9d53ac45a78760d9d0f1e6cb9",
|
|
6873
|
+
"positionFeeFactorForBalanceWasImproved": "0x6660243175177b85fd48e65e1244f37572795637397bba063123ea360e5a5c5b",
|
|
6874
|
+
"positionFeeFactorForBalanceWasNotImproved": "0xb60397cd8ad1d71c9dfc16f41435e052cde83256e6b5880dba330c4105dfc82e",
|
|
6875
|
+
"positionImpactFactorPositive": "0xf842ad333dda146aeba1e5e9e4fb92ee0dbaea6f15dcbf42cdcb1220e587df13",
|
|
6876
|
+
"positionImpactFactorNegative": "0x58928bb0a4feb981ad70e012a093481289b1a37e40cf3e73cc94e9be0140f582",
|
|
6877
|
+
"maxPositionImpactFactorPositive": "0xefff39677d312cc3f0ca2906c3261831c47e80c301ca7d8f3622b3605304a5fe",
|
|
6878
|
+
"maxPositionImpactFactorNegative": "0x10c1b26a7fa0be0087f098496ff25cf4d97ce2f01473be115b264364bc275c16",
|
|
6879
|
+
"maxPositionImpactFactorForLiquidations": "0x7567eeea7476254dd0927fe2eaf2e0e70c4bd023f7326e487195e1f64a176c7c",
|
|
6880
|
+
"maxLendableImpactFactor": "0x8788593a098636f3ea848abe5d68cfc082c5cf1f07bea795021bf90262e04c1b",
|
|
6881
|
+
"maxLendableImpactFactorForWithdrawals": "0xa375149ade8e9a09eaa2611518071a5e500602170c72b6b60687c9734783800e",
|
|
6882
|
+
"maxLendableImpactUsd": "0x85b6175fb88dc9e634170d7f79074742cd30d453c7a8144d7479ea8487155ecb",
|
|
6883
|
+
"lentPositionImpactPoolAmount": "0x29f93bcafe5b965c799d12daf4da6b16d57735f0fef150cc341b8214fe2c59f0",
|
|
6884
|
+
"minCollateralFactor": "0x4e740b8bbbb18eacbe5a698ae895b047098a052c5c3a345abb94f5dcf8160ffb",
|
|
6885
|
+
"minCollateralFactorForLiquidation": "0xf821ca416c334937aad973b4f66c503a66f436b02f1a58006cda3490b6221cb2",
|
|
6886
|
+
"minCollateralFactorForOpenInterestLong": "0x496ede699192830a13f59e9f59b75bc80c980380d0518a9699227326b900c59a",
|
|
6887
|
+
"minCollateralFactorForOpenInterestShort": "0x091c1e021dfc4201a8f5bb9bf9beb778369ee56e7bae2e89d9439b9f681b5d3d",
|
|
6888
|
+
"positionImpactExponentFactorPositive": "0x92a3eecd803e5d8b5804ffa4fa9cbf4b5222436e7aa19595ae59ca4f160d8b2f",
|
|
6889
|
+
"positionImpactExponentFactorNegative": "0xce312f9476c39d5332c932ac3a5f8f17a315621fc2f0e98077294b1096e1e3b8",
|
|
6890
|
+
"swapFeeFactorForBalanceWasImproved": "0x33e6b4f6fd5753a8687a70c01cb7c4d83e63c09af7a6951fbf2dddfa3ad19f91",
|
|
6891
|
+
"swapFeeFactorForBalanceWasNotImproved": "0x175c296e249535a7e8a54867958f88787a2b78dd1bdbdfc000e633ddd4266bdc",
|
|
6892
|
+
"atomicSwapFeeFactor": "0x89e54dc6fdd123c1f9307b504f787cb6cd949a0f06fc65fffa6128ff77876077",
|
|
6893
|
+
"swapImpactFactorPositive": "0x9ee7bc76e5eb44d9bb0d6fa6a6a5cee3c542d5dce6949b35dd01cd55bb445429",
|
|
6894
|
+
"swapImpactFactorNegative": "0xa4bdd4537072f9bb0f9878a4cf85ef22e17585e6f3336cc2a4b6da06cdb128e5",
|
|
6895
|
+
"swapImpactExponentFactor": "0x79adf0f2914fdac816c5c1838afe70302db4da430c87d737ba137f275155ffde",
|
|
6896
|
+
"withdrawalFeeFactorBalanceWasImproved": "0xf9a01e0d42a4b2122d6ea74eccdfa9d97e016cffd55b487cff522e41cecf21bf",
|
|
6897
|
+
"withdrawalFeeFactorBalanceWasNotImproved": "0x2eb49baa316249d31b76d8bc7cb9508f2990f9289c36565df394821e4bcccf00",
|
|
6898
|
+
"virtualMarketId": "0xf2e55d7f8d06ca77e66806915651699ab539b969f3006bda6e38e92d215ca48b",
|
|
6899
|
+
"virtualLongTokenId": "0xa59040b7efb6b7122a74cb318a192ebc6732849dff5332ee3ba40b90dfa0a04f",
|
|
6900
|
+
"virtualShortTokenId": "0xd5258cb84f0039be58306488e8df941c05f3cf4f219e92aacb6561c736bbb960"
|
|
6901
|
+
},
|
|
6902
|
+
"0x728Ff0679c89267434D6EF1824c8C8eED4aC3DBC": {
|
|
6903
|
+
"isDisabled": "0x70de91b53a1934aa462917d6aa24257bf4d87b9b37b221802f7eb0464f4717b8",
|
|
6904
|
+
"maxLongPoolAmount": "0x83c69bf4e33e4384abe6eb915bebf6b34b657cb8f1d2156947778a525ccc5bd8",
|
|
6905
|
+
"maxShortPoolAmount": "0x2feff46ea77e7c4dd80ecb78437e5ce4e92642243d00201eac112a60f344d674",
|
|
6906
|
+
"maxLongPoolUsdForDeposit": "0x315c7e813f1accb339e256089a50fa25c4333d0e8cbf231fc876a8791f6151e9",
|
|
6907
|
+
"maxShortPoolUsdForDeposit": "0xa97c12bf04505c00cfa6f0103998e7d1eec49fbd8328be93f7a5379b828fbb22",
|
|
6908
|
+
"reserveFactorLong": "0x27b121b177d25cdc789be676d4007546b9270bce344610a7cd0cc14bd1e8eced",
|
|
6909
|
+
"reserveFactorShort": "0x427354ac44421fa2066d11f765b15e9dd58216c1073b27998e0921abb768a15b",
|
|
6910
|
+
"openInterestReserveFactorLong": "0xbb93359bf1731a0a15bbb14137ee69859b3397f72983d7ed292dcfe326b70bab",
|
|
6911
|
+
"openInterestReserveFactorShort": "0xa227c5473ecc94a200978b022dce4aa05c4bd2f4d75b8f54a18619159340fcfc",
|
|
6912
|
+
"maxOpenInterestLong": "0x00943337e3c3d6b4d768eb2edfdcddf694306ca45ccc77ba0602b316551852b5",
|
|
6913
|
+
"maxOpenInterestShort": "0x993b73451a60adb37385d0c6041d1d539ae20ec2d53f94c6c5473c3a46243fb4",
|
|
6914
|
+
"minPositionImpactPoolAmount": "0x69c7ac77ba8f268f9ebae7b7204839cf0d9b4eb38277b8eaa768bb6df6387cba",
|
|
6915
|
+
"positionImpactPoolDistributionRate": "0xa11c3177cdada7ed51439cad267e4dbde153affab9b55e33de8ecf6283e26a70",
|
|
6916
|
+
"borrowingFactorLong": "0x94f296bd09b822cc927cd6d232109ee0a9c1a6e25abb5cf6ee71522737daf318",
|
|
6917
|
+
"borrowingFactorShort": "0x68a5a9f03ec16775df8511de1600783afca89ef1b1cb0e10ba45b75503168993",
|
|
6918
|
+
"borrowingExponentFactorLong": "0x338c89a4a0cf06859425ef4c9353a20e9e3081c123cffe681c0256097edb6262",
|
|
6919
|
+
"borrowingExponentFactorShort": "0xdca7e1ab5bf64ffaca9d0667566fa998b53353d056ba3bc3dbc5434d7e9c0acb",
|
|
6920
|
+
"fundingFactor": "0xc31d7be53e98aed1f5142755b8aea4e843aba4935314c0b03d2d70f6e6ec777a",
|
|
6921
|
+
"fundingExponentFactor": "0x0cf314284361fdbe833f2e5e1138ef1cfe5da057e737018f6631222fb716b786",
|
|
6922
|
+
"fundingIncreaseFactorPerSecond": "0x6160415f6e23b49e56fe132cb7a6a68c4749974e54a39223aa0fdea71808c715",
|
|
6923
|
+
"fundingDecreaseFactorPerSecond": "0x2c91b6083a90fa62714cc17dc2fa03d6c407949257724768240ba2024e30507f",
|
|
6924
|
+
"thresholdForStableFunding": "0x1177162fc7a00382876ca5e394121a9a77e446e588ee93db1de51f0cf01c1cce",
|
|
6925
|
+
"thresholdForDecreaseFunding": "0x332634d54b35228b50bfc97911c0f723afbd0121b7b01b314678ab950e8365bf",
|
|
6926
|
+
"minFundingFactorPerSecond": "0x58f484c817a49b11b50a38c89439f226178aede34d74049b7962d45bee3ee4dd",
|
|
6927
|
+
"maxFundingFactorPerSecond": "0x106c1aadfbd3fc1b49e56fb9069429e143ad8828fb13e0398c5783c3cebf5bf9",
|
|
6928
|
+
"maxPnlFactorForTradersLong": "0x9339a5663da393291a2a1b3bf52928903960ccc4178555a1598dede3a192c819",
|
|
6929
|
+
"maxPnlFactorForTradersShort": "0x419e632bea5daaba9fd0348056db4cbbaad7350e03b5ee00c30e03fcfa59e01b",
|
|
6930
|
+
"positionFeeFactorForBalanceWasImproved": "0x17350baa4219e0a8824cc80acf3b8b0afc8d3498c0aea535614567b9af8e0815",
|
|
6931
|
+
"positionFeeFactorForBalanceWasNotImproved": "0xf96849d122eaaea447f70ce4945e2baef78fe2a8f66d2617cabc255532f94f7f",
|
|
6932
|
+
"positionImpactFactorPositive": "0x9aed3a45fb7a97bec6d2cef49bbecaf2357e1cc3a7a022b7cdc2ad96d7dc9057",
|
|
6933
|
+
"positionImpactFactorNegative": "0x597f3ba76a793f677baa72f892738ac28ecbe2cae7124213d165d5280a1367fb",
|
|
6934
|
+
"maxPositionImpactFactorPositive": "0x75ed394aece4523cb6c4efd2eb58b40805cd8f87a3708d37259895061c4a10df",
|
|
6935
|
+
"maxPositionImpactFactorNegative": "0x9e8a2be607db00fe7cc9a216860ad595216f6a384bfd798e103b22d48fa10cef",
|
|
6936
|
+
"maxPositionImpactFactorForLiquidations": "0xf89da578fff364716d1e90e9bfdd9eb0ec9567996dee0c899946862664b4cb6c",
|
|
6937
|
+
"maxLendableImpactFactor": "0x9d4e2046acc7f32e21a1ae69f3910612a28a4040522fcd59503ed190e8e6e724",
|
|
6938
|
+
"maxLendableImpactFactorForWithdrawals": "0xce9dcc91ccb27a635517cb76ec9f9c1045f708dc5bb054291583d2d7f499a0a7",
|
|
6939
|
+
"maxLendableImpactUsd": "0xc93f46fdda86565e4b3585a561143c4790a86c6274d7df3ec09bf8e312bd7366",
|
|
6940
|
+
"lentPositionImpactPoolAmount": "0xdd70e5f3b2a1804887d983bede73967f45100144a44cf62200b6d8b6f4080521",
|
|
6941
|
+
"minCollateralFactor": "0x91db5bfec4dd26ed41bda2e716e2ee62a6e599f0442271d800a025305b7c5b86",
|
|
6942
|
+
"minCollateralFactorForLiquidation": "0x7045dad6c0614066012493aee9751576547b19f371519339989f1ff036d66d94",
|
|
6943
|
+
"minCollateralFactorForOpenInterestLong": "0x44729ff6da0b28ddf6e0c17fe00fd325d77f46122166fa231ed2ecd1eac8800d",
|
|
6944
|
+
"minCollateralFactorForOpenInterestShort": "0x0ff2f958ab14d0ca729ddb7eceac1a63e1e5fd66796d7b5096a1b2b5a7d52417",
|
|
6945
|
+
"positionImpactExponentFactorPositive": "0x235c4008238097757e20dd21338bf2040c4afd16eda0bdba7b71c410e8878f49",
|
|
6946
|
+
"positionImpactExponentFactorNegative": "0x82136a23c8005eaa1255397749ae751f282369b6dd5a88a83ce2c02a679b7cee",
|
|
6947
|
+
"swapFeeFactorForBalanceWasImproved": "0x335c54b4296c7717b3da22c577d34f1463c33b8356b4ac872611de8d73396617",
|
|
6948
|
+
"swapFeeFactorForBalanceWasNotImproved": "0x3adb8305cebbc8dee9591fa11bfeb0511843be67b2052c28b21bade3e1fb9257",
|
|
6949
|
+
"atomicSwapFeeFactor": "0x9b2db91336bb744fe730244408fb7b7b81ba08b130660c78efb136c5ed708495",
|
|
6950
|
+
"swapImpactFactorPositive": "0x67c57c197e27e8c046f195c25d1109fed6a00d63585ecaff60b0d16d6956b406",
|
|
6951
|
+
"swapImpactFactorNegative": "0xee3a76b26129dbae8b4e730fd77ca5a770cf5b9b26757b8fe97a8be643af8b5c",
|
|
6952
|
+
"swapImpactExponentFactor": "0xb7cc12ee3ae1ff6221c71bf8609d5164bbd92b7c437fa43f0df9cb3ea4f33c01",
|
|
6953
|
+
"withdrawalFeeFactorBalanceWasImproved": "0xfb149a72f73efb7d86ef3993d8336d68cdf49bad916ea492d1f5e370ac5fe05a",
|
|
6954
|
+
"withdrawalFeeFactorBalanceWasNotImproved": "0xdfc322fbd3fc5c4e5e7b8bac9e70b4d96133814122cb00971e18a528516cfd1f",
|
|
6955
|
+
"virtualMarketId": "0x1c3c6978286d02d913d36e5ef0e9a1720594f40ee13a58a33a53963423e89bb6",
|
|
6956
|
+
"virtualLongTokenId": "0xa59040b7efb6b7122a74cb318a192ebc6732849dff5332ee3ba40b90dfa0a04f",
|
|
6957
|
+
"virtualShortTokenId": "0xd5258cb84f0039be58306488e8df941c05f3cf4f219e92aacb6561c736bbb960"
|
|
6958
|
+
},
|
|
6959
|
+
"0x3B4689d69516b9D4b1aaf7545c6fC4d3ED70b70b": {
|
|
6960
|
+
"isDisabled": "0xeb6dc50e0b391f50e8b3e5607816ab325bfac4d751d238cafec85b586f72d42a",
|
|
6961
|
+
"maxLongPoolAmount": "0xb1939230afa46351eb2fad54a51aa2f196239b898ef3eea907010993bc2c5018",
|
|
6962
|
+
"maxShortPoolAmount": "0xc96ca68bb7fa5a48b0085b7fc3d5bd2ec36d8d2ff6ea81d1a1749e19e4acbdee",
|
|
6963
|
+
"maxLongPoolUsdForDeposit": "0xd98c3b04e91b92c6b03ca49c53d081bdfcb4ff7c6baaffc7645cf17304682a80",
|
|
6964
|
+
"maxShortPoolUsdForDeposit": "0xd15b1ebb74bf56745e26f1bd29fb2998d99f9b564a57c355af7d9f91742b3315",
|
|
6965
|
+
"reserveFactorLong": "0x718830b0ed8bc0e991aad9faded468c0ed44487e2c7c7096442558733e0a3c15",
|
|
6966
|
+
"reserveFactorShort": "0xfeb95f028671d1f174f32b4bb51d8a1d32234537f1614294117920e48855c6fa",
|
|
6967
|
+
"openInterestReserveFactorLong": "0x1f113928b17b711427ebe1d9f32ab52a73536b78e04841d6b3349142c5ab8173",
|
|
6968
|
+
"openInterestReserveFactorShort": "0xfa0282bdb86d089703b934383927d4e65c66fd69347d74641d992532907752d8",
|
|
6969
|
+
"maxOpenInterestLong": "0x0de48af48ef8449f3b4377876e0738f9be498e69c2100dfaa49a013f72a61acc",
|
|
6970
|
+
"maxOpenInterestShort": "0x28d1487b317050092284b3aca922574b7484c08919bfc90be285f9419ce254ea",
|
|
6971
|
+
"minPositionImpactPoolAmount": "0x6b5e33bf6c4d4b8eddc7656f9d0e5622537d286f134cde4c958a3678abc4c4cd",
|
|
6972
|
+
"positionImpactPoolDistributionRate": "0x86c19e3e733c7b8ab6440cede0f2f8c80992117535269bdfaf5f632c044a959d",
|
|
6973
|
+
"borrowingFactorLong": "0xf9372e70b835889a4eaadbce0a12b6f7b7f384252196ddf827029ddf2d4165a6",
|
|
6974
|
+
"borrowingFactorShort": "0x57b29f3eadb84c21c98005659ce7fe80e45e0d0e5e2e664a7a633f005b2952f3",
|
|
6975
|
+
"borrowingExponentFactorLong": "0x8b50d845f90fdcd56abf0b9006414dff11f816e034e6fd7a25c8a13b9bf7b61e",
|
|
6976
|
+
"borrowingExponentFactorShort": "0x975a2c9ba69259837d64609e2b70969f9eff8527824a9ead6930c1d8a9271f2e",
|
|
6977
|
+
"fundingFactor": "0xf48ad4a28097c244228f7696376686974851c6220e5f18a582b69fdb7195d6ee",
|
|
6978
|
+
"fundingExponentFactor": "0x3621a311f877a4d567d70f598ec8e9707ddb6c5271e306ae6fb1ce6d106cd290",
|
|
6979
|
+
"fundingIncreaseFactorPerSecond": "0x1e865193e452b2f67fae7dd8cb88b2f407251f5ba1d7ddbd41c888cd25921448",
|
|
6980
|
+
"fundingDecreaseFactorPerSecond": "0xb99734abdca8c116e20f97cad8aba55ca80b0ac3424e9a168f43d4d21d932485",
|
|
6981
|
+
"thresholdForStableFunding": "0x467c86ad87e2c9805153b9259d710f76aeda9461a96ed9e52be473f7fa1f4a82",
|
|
6982
|
+
"thresholdForDecreaseFunding": "0xbef0ee3c130853bb8ab1bebb452f31f0e00a09c2e050983b79d333bf0255d786",
|
|
6983
|
+
"minFundingFactorPerSecond": "0x7f0527996045a222a4deefc9ad5a53b3dcb33e7e6f662a8df9aa4ae4378d772f",
|
|
6984
|
+
"maxFundingFactorPerSecond": "0x43df0c88f8c0e125e81ff173f567aec54fce5e15c021b15721ba685b6fc4524b",
|
|
6985
|
+
"maxPnlFactorForTradersLong": "0xb263460050c4e7b041521bb01aeae878690bcac47f8738a237b37a964205d935",
|
|
6986
|
+
"maxPnlFactorForTradersShort": "0xfe4b19d8a75ebf2be379c287f869c0982a0d98022a35540756af6cb35acda5c7",
|
|
6987
|
+
"positionFeeFactorForBalanceWasImproved": "0x03993da92585905fc5a6a608f2ec097b415b688e6c477b2960cd1c64b13fbdca",
|
|
6988
|
+
"positionFeeFactorForBalanceWasNotImproved": "0xd7df052da016d0b4ac34197e282839387e8150c83769362b8a5782b8d57e2e06",
|
|
6989
|
+
"positionImpactFactorPositive": "0x6f3012140026a3df963c18bfe65bb32a00a5e1dd17d76f0a679f7560e0ac33b8",
|
|
6990
|
+
"positionImpactFactorNegative": "0x195621ce27d276f9275a3372501c2dc58258766b7ee39bd109878bba49f5b039",
|
|
6991
|
+
"maxPositionImpactFactorPositive": "0x12675ce9de381210024e9c471506e5809ecdbdbd60b8a5abd03b76492294eb7a",
|
|
6992
|
+
"maxPositionImpactFactorNegative": "0xbc687d895e7acc02856de799533b883f0361264bc979798d07e59d44d12591a1",
|
|
6993
|
+
"maxPositionImpactFactorForLiquidations": "0x74567bd83a74dcec3f945f24c9d3d0e4128af161c52cd3e29d348771486e4d9a",
|
|
6994
|
+
"maxLendableImpactFactor": "0x0036c680733e841dfc25caffffcd1df282045d881322d11b41d848177cd2c593",
|
|
6995
|
+
"maxLendableImpactFactorForWithdrawals": "0xb5f2e2cb647cf162cccac2cf4bd56d2a44f17f89ad0bc60aefcd1f8b26c9735f",
|
|
6996
|
+
"maxLendableImpactUsd": "0x760f26b9e49a822da39a16610f1721963d429939c4506e295b76fa4aedf3dadf",
|
|
6997
|
+
"lentPositionImpactPoolAmount": "0x6e1e1226056a1ac4456a6aa086409579bd8740c819fe2f7bdf3640f377dc64bb",
|
|
6998
|
+
"minCollateralFactor": "0xe7a22c1ef9dd2449a55bc81f95aab5cc558b0f0578939ed931a08d5d66d1359b",
|
|
6999
|
+
"minCollateralFactorForLiquidation": "0x1c901a1574da770a7dad655c1dbe529c2cd0f2d9aecdb5ac622af0a6bb8d22be",
|
|
7000
|
+
"minCollateralFactorForOpenInterestLong": "0x5c9fdf06346ac113fb71a18a61a6234b8f27116aee07aec1edaa592a1d50596f",
|
|
7001
|
+
"minCollateralFactorForOpenInterestShort": "0x11988d657950a220cab26f5b9c63940f04bb00ecdedc4855c011b16ecac7048f",
|
|
7002
|
+
"positionImpactExponentFactorPositive": "0xe466968d2d9faebca2eeb99aa40799f8b5eb7369f4bdaf4235f4bac4a0c081e9",
|
|
7003
|
+
"positionImpactExponentFactorNegative": "0x1d597b773c69527916f97494658599a5c10a00b4332bff27fc8a38c99112414c",
|
|
7004
|
+
"swapFeeFactorForBalanceWasImproved": "0x615c73a8565974226cca26612a8ba378fac45992bdb959ad96baf17d5413677d",
|
|
7005
|
+
"swapFeeFactorForBalanceWasNotImproved": "0xd96c1d4a7fc9e00c6db80d7649e5435c4e8d115b3f8f6ec8031976c88de56bed",
|
|
7006
|
+
"atomicSwapFeeFactor": "0x42290097b4cf8e5e3a7bee1727f33a8e0124c11a3563ffc40298dad36d77e557",
|
|
7007
|
+
"swapImpactFactorPositive": "0xb47d5bc76b340aad1672ad411626ff0bf40cb4a78edaf8b0e5cf719589dc1fc2",
|
|
7008
|
+
"swapImpactFactorNegative": "0xaafc438d18210312abf86dfd410d5371571c8bbe1ab4fdf7024bba8254ac6eb4",
|
|
7009
|
+
"swapImpactExponentFactor": "0x4a456ec09bd6ff7d262a65cc8800ef18c3d4c3b875d3985d2379547c9d8b4fce",
|
|
7010
|
+
"withdrawalFeeFactorBalanceWasImproved": "0x18aee05a0674e86387f01986495c5a822b0082721d105151248168e261b0eafd",
|
|
7011
|
+
"withdrawalFeeFactorBalanceWasNotImproved": "0xc2743392729f14dfc9d475e9f5d63ce61aae4a8b4c24bf655f94ca25d17f1873",
|
|
7012
|
+
"virtualMarketId": "0xcefcccb17b721181e3fd4e3051bda14b562b8c889f97e774cffd4485adda7b92",
|
|
7013
|
+
"virtualLongTokenId": "0xa59040b7efb6b7122a74cb318a192ebc6732849dff5332ee3ba40b90dfa0a04f",
|
|
7014
|
+
"virtualShortTokenId": "0xd5258cb84f0039be58306488e8df941c05f3cf4f219e92aacb6561c736bbb960"
|
|
7015
|
+
},
|
|
7016
|
+
"0x8965e821c7C8c09c6eB3Cb9cCf7Eb6f386441EA2": {
|
|
7017
|
+
"isDisabled": "0x72da1255d5a5e539391a86d5c64df7a32ae77974f206c87c0fd5633a8b9620db",
|
|
7018
|
+
"maxLongPoolAmount": "0x62aff0731010e38295bbfcb385da983120f0cc510fcfd7abd2ab495545e275f2",
|
|
7019
|
+
"maxShortPoolAmount": "0x827162628b043cfc8cb2f2408daf282125038db151c8247683015fcb4c7d26ab",
|
|
7020
|
+
"maxLongPoolUsdForDeposit": "0x84133df0d4d0bdcb490031484c51cd7f8b606843fa698d0296cecf9c3a55458a",
|
|
7021
|
+
"maxShortPoolUsdForDeposit": "0xd56342eeb01e3b1ddd1519b2760f4a6c8ee9ad034447c40117ad751cabe37241",
|
|
7022
|
+
"reserveFactorLong": "0xa66031fe7f5e929cc3325c4802e98d2931770d99386c1c50eda7508fa930e688",
|
|
7023
|
+
"reserveFactorShort": "0x9dc7b7e5057323daefa57c5089b538b77a0c85ef6e14a46737cd76ce0dc8e263",
|
|
7024
|
+
"openInterestReserveFactorLong": "0x18dfa8d82417e716c88cde44beba5b71570ed06c65824b4bc615e6c1f27d6c5c",
|
|
7025
|
+
"openInterestReserveFactorShort": "0xfb6ea271cb85a8411b2b95b115af559b14a5c45cd1b6b66e923ad5e3c6d44329",
|
|
7026
|
+
"maxOpenInterestLong": "0xb68c26a0163ae38b4cadafe8ed92d6cc3b1f58b98abcabc8faa369e340d6dfc4",
|
|
7027
|
+
"maxOpenInterestShort": "0xf6051d1ca997724baa8576ccc68ee8d7d3bfd91a9dca7ff2952acefd5199260a",
|
|
7028
|
+
"minPositionImpactPoolAmount": "0x0677a53537cf26fc5beafecc288cd395a9c6ed082998e7fa2f006cc4220abdab",
|
|
7029
|
+
"positionImpactPoolDistributionRate": "0x998ae7f53081f4a4afc260e13d7dbc2d8f23a7ccbc02b1307eee0d5c4f4b4086",
|
|
7030
|
+
"borrowingFactorLong": "0x04a1e0e8ecffa2d30f984062e62e0916fdf07e69a021ae5bc202e8a2ff5a0413",
|
|
7031
|
+
"borrowingFactorShort": "0x065885842a14df30e4b6d4ed04dfb5ca15d4ba98c5cb48a9e7375fc44491d70c",
|
|
7032
|
+
"borrowingExponentFactorLong": "0x9489f4a51e9ef639c7079a0f57ac0b51210b3b4ae43f886e4c16ec25a8c7ef60",
|
|
7033
|
+
"borrowingExponentFactorShort": "0x8677fcb70a548652bea1a23647061f1c860096f1de9eea67bc3b7750f5dcf1e8",
|
|
7034
|
+
"fundingFactor": "0x76b644a99300975463ded5c668242c7c09596facd1be47cd50b4694e951471ff",
|
|
7035
|
+
"fundingExponentFactor": "0x2063edc4a98d83c8832bd3d8b1a53260aa913805b38027e386d5303da8f7992f",
|
|
7036
|
+
"fundingIncreaseFactorPerSecond": "0x6ae2f409d869e14b6f599068ad28565f14abbf02a59dc9d48cf68156fe9394ab",
|
|
7037
|
+
"fundingDecreaseFactorPerSecond": "0x3dfb5fe327591354f4654d317c1907295526a7651a82eabb9ffdb432bd12778a",
|
|
7038
|
+
"thresholdForStableFunding": "0xc7ace667521a757074f607331138563dd7d2a4067dc8ee3735a0532930a2ea52",
|
|
7039
|
+
"thresholdForDecreaseFunding": "0x803ca9eb7d9d265aba53ca3bf3bbb542060cc9b4281d51847cc0843ee6438ea3",
|
|
7040
|
+
"minFundingFactorPerSecond": "0xedc37288af3ca8b35634a4e2f7d3a1e1f967cc17b288a2f8f767b049e97c299d",
|
|
7041
|
+
"maxFundingFactorPerSecond": "0x5217407ecdcf0e08eb5347857d9d09e185d5852d6863f880c61cd4a426445aae",
|
|
7042
|
+
"maxPnlFactorForTradersLong": "0x93154a300e1352bf7944507fc70053da6d60ee6465552452d83dcc3380dc097d",
|
|
7043
|
+
"maxPnlFactorForTradersShort": "0x5717a0eb3d19d541a591a42d865d115a93a07c52e1b5c6f740e80438cf7444a8",
|
|
7044
|
+
"positionFeeFactorForBalanceWasImproved": "0x16a16151867d6063de6c4bc626bb1ae4e497a76ead666e67a9f2d727339b06e3",
|
|
7045
|
+
"positionFeeFactorForBalanceWasNotImproved": "0x695e690795f3c52a7837ba9e4bfafbd42443f5806173dadd506f1ccae14ed6e6",
|
|
7046
|
+
"positionImpactFactorPositive": "0xe30cc600d8b1917ebdb5a710b865d7c0ba60285efece4c36e5902dce9c43a564",
|
|
7047
|
+
"positionImpactFactorNegative": "0xe2f576ce2b09a132cf10e103c27179d8ef266ebd5180b029bf34a241979fba33",
|
|
7048
|
+
"maxPositionImpactFactorPositive": "0x18a396dced1fbd6e30a7019e493a54ee43e72937ebd6a6ad1c4adee7e40f07a5",
|
|
7049
|
+
"maxPositionImpactFactorNegative": "0x8f529ebd643ab367c55ed9aa0dbb79d88264b8e40d992228371781e3b392faba",
|
|
7050
|
+
"maxPositionImpactFactorForLiquidations": "0x92c76e74584eb00dd11fc34b679a63b1cdddae048b872a6db12c4280850fad70",
|
|
7051
|
+
"maxLendableImpactFactor": "0xd00d17cc231ccd2eb250a2e02449e1a1db6711dcefcb7da3c2a297a446b33fd9",
|
|
7052
|
+
"maxLendableImpactFactorForWithdrawals": "0x539d703bb6ee60a2e8dc971af936311ff22ad3861e416f373a36c0895b78c374",
|
|
7053
|
+
"maxLendableImpactUsd": "0x320ef78c9983027394d66967ed0dba8ee6b5eeb8405422dc23e40d68d9fa8514",
|
|
7054
|
+
"lentPositionImpactPoolAmount": "0x586502dfa1fbf23983033660d252b77504e039c2ffd843271afa76419e87a8e6",
|
|
7055
|
+
"minCollateralFactor": "0x738291f1def73c84284a322c6c57e05ec564a6250ded680bd655e4bfdba441b9",
|
|
7056
|
+
"minCollateralFactorForLiquidation": "0xdde2b79b728f542ec732cfdb7bb60d57e16376e8ca9ed008d94d6bfc0b72445a",
|
|
7057
|
+
"minCollateralFactorForOpenInterestLong": "0x1f6e3fe057516297aaf25615c9726b5eda400f4968dae71207e5293cbdd3ab2e",
|
|
7058
|
+
"minCollateralFactorForOpenInterestShort": "0x054002a12c33de0db3b7f2d720e626c8051c5803f630769bcc033a2c59d23624",
|
|
7059
|
+
"positionImpactExponentFactorPositive": "0x67c986caa3cafb1a21ac44d32656579d800d4a51150c89d3de5be8fbda4df81c",
|
|
7060
|
+
"positionImpactExponentFactorNegative": "0x9b6013de37bf3ec4d6a7d8781b9afdb3e19a043ff55c5d44fd05248b8f8f421e",
|
|
7061
|
+
"swapFeeFactorForBalanceWasImproved": "0x7445dbe41cb013ed694d8a97ba2b12f216796a627d7b3f504fc01ca7b741139f",
|
|
7062
|
+
"swapFeeFactorForBalanceWasNotImproved": "0x41851e16614d05350548dd9481cc03006528a108f1079eb93e2fa9e75dabc3f4",
|
|
7063
|
+
"atomicSwapFeeFactor": "0x83602ca6c635dc3f42269642dbfa105058637f660d81fa381d494f9cabbf79ee",
|
|
7064
|
+
"swapImpactFactorPositive": "0x1287d127bf96ce555208d89dd9203b4d0701f9f0ab8df224882b05695e4e1597",
|
|
7065
|
+
"swapImpactFactorNegative": "0x12bfec1d60c95ccfc1641b6999ef9038f2410daa2353752c403f353423b9f5fe",
|
|
7066
|
+
"swapImpactExponentFactor": "0x7a8280d5f7ad4bc9c8923d18752d7560ef52f0de115ae5fdeac0907135c3c2a0",
|
|
7067
|
+
"withdrawalFeeFactorBalanceWasImproved": "0xc28141869117ef19086e5130378d7044e643baaf5e301279d3cb21d2a0cf05f5",
|
|
7068
|
+
"withdrawalFeeFactorBalanceWasNotImproved": "0x4479172b83c305678b2210535629b939a230ad970097356288eeb1cb1859ff02",
|
|
7069
|
+
"virtualMarketId": "0x53431e894dfb40c8915ba5fa60dc99c8b9050441e012dbc68769ca1169ef1dfb",
|
|
7070
|
+
"virtualLongTokenId": "0xaab37f889b9680dda34f58a689de3023cb22f7ae14d32a3c1d45798a973db1f5",
|
|
7071
|
+
"virtualShortTokenId": "0xd5258cb84f0039be58306488e8df941c05f3cf4f219e92aacb6561c736bbb960"
|
|
7072
|
+
},
|
|
7073
|
+
"0x3600592DdEd7e6E0B05029DfB637fFc5A85D6f6B": {
|
|
7074
|
+
"isDisabled": "0xc35048e8e441ee5c8539bf335bd8fa8e1740456ef828058fc7b79c44e83b6313",
|
|
7075
|
+
"maxLongPoolAmount": "0x247c18cda79f004a1721cd2fcd3f1216c7388fb631fcde053a243dc6118331b6",
|
|
7076
|
+
"maxShortPoolAmount": "0xc7566818a233dcf2a0212f947afc7a173ff18aec4e24b312c877168d0c5967d3",
|
|
7077
|
+
"maxLongPoolUsdForDeposit": "0xa6bba228d2544bb282a1519324d4f32d92b8333908b2fbcfc3632a044db1d2ea",
|
|
7078
|
+
"maxShortPoolUsdForDeposit": "0xd8410df1de7df460afa1a09422b127057d7ec8a501cb10711fca2dbf529124f4",
|
|
7079
|
+
"reserveFactorLong": "0xae5a7b3795d8610abdf74d42b08b8f93f6fb36de20893907deca58e9fc34c298",
|
|
7080
|
+
"reserveFactorShort": "0x756b4b5b10bb1debe002d40d849569ee3371e6601ff16d12a33f54ab3c1a711d",
|
|
7081
|
+
"openInterestReserveFactorLong": "0xfd0d51647a1e8e30efbf7c915f783b1a6c87386136b5cdd98971efb59b5de002",
|
|
7082
|
+
"openInterestReserveFactorShort": "0x678a615cf16a71ab6035e057a9c6a8052ab89ec1d9b246160fd7295f2c0b19dc",
|
|
7083
|
+
"maxOpenInterestLong": "0x66e657f9435e809cb5e3b3689fc1c7a85e1511c28aff6602b68b684b0110b627",
|
|
7084
|
+
"maxOpenInterestShort": "0xba9899e904ec0ee9866b2a8586f2edae0625ed51419f304a558f68ec902da9d6",
|
|
7085
|
+
"minPositionImpactPoolAmount": "0x04c0c1a7d1b8975159f23f5578364cb82e78d6eb01674e3139e23dacd1368f2b",
|
|
7086
|
+
"positionImpactPoolDistributionRate": "0xbe8738159c6ce4881b9d64e785acc6368c441c44bf639b36a5bfdfe8f4dd9c59",
|
|
7087
|
+
"borrowingFactorLong": "0x623390d943b1ff0d90640bd58d99f22c9bf2368805df5a4b7c4025a3f1b8a3bd",
|
|
7088
|
+
"borrowingFactorShort": "0x3e4f08038a413a23f9c7d23cc61cad00f62b675a56e434958f1c374284e6f716",
|
|
7089
|
+
"borrowingExponentFactorLong": "0x7fd0d026aa5f9d84c5a824cf7d66aa068a5e9ce38eceb2f3d46229cc728869ef",
|
|
7090
|
+
"borrowingExponentFactorShort": "0x8696f8a9381005c0e5121c13705158491bbd4102bb777ab85f408b2e6f6a7f91",
|
|
7091
|
+
"fundingFactor": "0x3fe83286047d8140a745f8a8706d558da91911de1ce1c39ee0e59cfa5832ab38",
|
|
7092
|
+
"fundingExponentFactor": "0xa899775a16d5376eec0bfe0465d9dc277be519896423012ff8279fc6f5324ea9",
|
|
7093
|
+
"fundingIncreaseFactorPerSecond": "0xb76840fc1e5b0e165fb87778706fdb717b4a7333c30034c6635e957ccf701932",
|
|
7094
|
+
"fundingDecreaseFactorPerSecond": "0x83b66f6eb58bc515e0a209fd23fce2e3a1117805f584d99f83f97f16420b655d",
|
|
7095
|
+
"thresholdForStableFunding": "0x51cbed590545adea5db1686e37b6c8d576a88f5572327aa04795586cb18cdcc9",
|
|
7096
|
+
"thresholdForDecreaseFunding": "0x68ba2b4d598e2e044aae54e2cddcf5b0edf8560dd1f06b5edfb76b66b0bb88f4",
|
|
7097
|
+
"minFundingFactorPerSecond": "0x25ae4068b34ee414e89cd2f8c3fdbd9b253cf11301a153aca6f554450aea80e6",
|
|
7098
|
+
"maxFundingFactorPerSecond": "0x0335ab98df3a1a7a2fa37eb6e1a1406bbdb57ffca44d2dcefaa81052d17309a9",
|
|
7099
|
+
"maxPnlFactorForTradersLong": "0xd9af1aee0f0fd100e117563f535156328eb899182082b76aaaab5c2140308695",
|
|
7100
|
+
"maxPnlFactorForTradersShort": "0x7a0be271600c95d1aca2eaec1289797bd29ed79379fa0a2bcaf7b5205bf5b92c",
|
|
7101
|
+
"positionFeeFactorForBalanceWasImproved": "0x0cff67f3b4dc2e4679f215f3a90fbeb24418ba1e67fd6cde5e2d82f55d7c1ecd",
|
|
7102
|
+
"positionFeeFactorForBalanceWasNotImproved": "0x1988fade66183c2573ff3323123301a159ab9227c07afe4f7e94655e19803f27",
|
|
7103
|
+
"positionImpactFactorPositive": "0x35b463a141dcd2bad37faca3ddaefc98c14e7d616dea33f209cfffb1201369af",
|
|
7104
|
+
"positionImpactFactorNegative": "0x63300684deb3ad972af29c6f1bbbd9a44bab0c307933a711bed34a7d80bdaa97",
|
|
7105
|
+
"maxPositionImpactFactorPositive": "0xda8934682740b2fa518d962fc6ea9c75e4555c1eef5ffa80ae3256029005bf54",
|
|
7106
|
+
"maxPositionImpactFactorNegative": "0x592ce7799597234aeb52fb7b12875c21f66114eb3ea04ee57e143da88dbb69d0",
|
|
7107
|
+
"maxPositionImpactFactorForLiquidations": "0x5ef91c82c64217c4a651734e7379d78101c4ea77b0175f1e4db7bc7155214de3",
|
|
7108
|
+
"maxLendableImpactFactor": "0x6ca2b38863b5b816a60e14b6cb6f934332cf0b516c122feaf875b076e1657870",
|
|
7109
|
+
"maxLendableImpactFactorForWithdrawals": "0x7fe66cd03d94e6843634bf25cc8a2be8def94a0b6800e07d230080dc2a604fcb",
|
|
7110
|
+
"maxLendableImpactUsd": "0x0d6c2697cd6e12154d1065faa5e762bc1a413011b843e1ea4bda8f5a359c4147",
|
|
7111
|
+
"lentPositionImpactPoolAmount": "0x7a3a94d071073ab7388019687bb15af4ff32da47912e007638f182eca5f0cdec",
|
|
7112
|
+
"minCollateralFactor": "0x34d113d77a39a4190b2537176067b4048293b4960c7ee813694d0b50f80ceb86",
|
|
7113
|
+
"minCollateralFactorForLiquidation": "0x05e1b2237e7dab569d254c94e63a0464930b118c513bc5123b40af573798d628",
|
|
7114
|
+
"minCollateralFactorForOpenInterestLong": "0xd10861a2f97531298d2882a9e6e157378ffb210f774c2a080d6865e34583c898",
|
|
7115
|
+
"minCollateralFactorForOpenInterestShort": "0x44477c5813bbf6f218776371e318733482a48bd78ca0bd054a50a0dfea42acdc",
|
|
7116
|
+
"positionImpactExponentFactorPositive": "0xc100ec178ec72f262f8d47c9b49fc0c0141c65107e6f68740d04ece9c1da52cd",
|
|
7117
|
+
"positionImpactExponentFactorNegative": "0xaab425d48b00c0f92e5fae8fb0a779a6a71af680b57916b9d790569a13f87ce8",
|
|
7118
|
+
"swapFeeFactorForBalanceWasImproved": "0x6b7acc9ed048128f9b56a034dfaf61a9909f1fccee3b54a69d500f788591c20c",
|
|
7119
|
+
"swapFeeFactorForBalanceWasNotImproved": "0xb1f5b23400042df011c392bd57042e5ab782d10a3588775056ea137a58c54b35",
|
|
7120
|
+
"atomicSwapFeeFactor": "0x4e2dfc287d1aee6ca96f7f48cbcad4102c573338af866cac44ebc45feeb734a9",
|
|
7121
|
+
"swapImpactFactorPositive": "0x0720e9e1a8474bf25f8972134f07976745f535ee955605ca21b70e75577b666d",
|
|
7122
|
+
"swapImpactFactorNegative": "0xd49bb85fdeae145e76e5ddeef32e10698bdcb202889eed44679d301fe96e16cc",
|
|
7123
|
+
"swapImpactExponentFactor": "0x94c9a51254fb3f91c7e73ed7936b85d6fc3c088e3a40376b5635d361dbddee2b",
|
|
7124
|
+
"withdrawalFeeFactorBalanceWasImproved": "0x090ace464da5ac0394fdb90421848aaa6118749ec9cf4dfc90f81e47c92daffc",
|
|
7125
|
+
"withdrawalFeeFactorBalanceWasNotImproved": "0x4cdd01f9df78ff8c14b193c09a6eaab8c291ff3392657c2cb274517a785e5261",
|
|
7126
|
+
"virtualMarketId": "0x841882a446312167f062b94703f31d90437c94aeb0f26da7966c9f8064afb2e7",
|
|
7127
|
+
"virtualLongTokenId": "0xaab37f889b9680dda34f58a689de3023cb22f7ae14d32a3c1d45798a973db1f5",
|
|
7128
|
+
"virtualShortTokenId": "0xd5258cb84f0039be58306488e8df941c05f3cf4f219e92aacb6561c736bbb960"
|
|
6844
7129
|
}
|
|
6845
7130
|
},
|
|
6846
7131
|
"43113": {
|
|
@@ -1801,6 +1801,81 @@
|
|
|
1801
1801
|
"longInterestInTokensUsingShortToken": "0x10be684d3b02317e078f4c9f561ad313cbdf6701163346bb271543b58a6cfcc7",
|
|
1802
1802
|
"shortInterestInTokensUsingLongToken": "0x74b8efa44465155c5fc9951e7518290fba4cbed2741539562502e86745b04058",
|
|
1803
1803
|
"shortInterestInTokensUsingShortToken": "0x344592d78feae63ecf187af3a66c1e0d1b24afc5abdd978cf47dc7fca9928e97"
|
|
1804
|
+
},
|
|
1805
|
+
"0xfa19f7d23a475575BD0270AE7de4FC6852442945": {
|
|
1806
|
+
"longPoolAmount": "0x769b2651dfd9ff67fd2e120c87e1652e4863ad9d1ea31a933380ba783dba54a5",
|
|
1807
|
+
"shortPoolAmount": "0xbed82a81070b1ab45a407cef21f962f701deb420921c73a5069b28256a2b5225",
|
|
1808
|
+
"positionImpactPoolAmount": "0xac5163fefc03ca42b5823258cb610e0ae35abb3eea3b6fb62c17cf423c63d0fa",
|
|
1809
|
+
"swapImpactPoolAmountLong": "0x9571bde89a2343aec021e1a8a511542e608fa1d0a39b8c5188d4820620e57632",
|
|
1810
|
+
"swapImpactPoolAmountShort": "0x2be194b6240863c6bddfd264f3e6f754a454b3ac6b76c52193e82cb54fded9ed",
|
|
1811
|
+
"longInterestUsingLongToken": "0x7a535299a4d0299c912f9e346db03a833b0db7d3deccae48e9bc7a905d21b59b",
|
|
1812
|
+
"longInterestUsingShortToken": "0x3499a85f002f9f15f4a7e2de7fecfebe9956bb7d11895642996f25364cfbadb5",
|
|
1813
|
+
"shortInterestUsingLongToken": "0x541b372595b60ed62c865ec7372d6ae9d2ae79dbf068f3bfc877e3d794a2564e",
|
|
1814
|
+
"shortInterestUsingShortToken": "0xeef7fcbeed3bbefa8f4c5cfafc45fb839a8b6a9022b91bd53d484f7946e9bc1f",
|
|
1815
|
+
"longInterestInTokensUsingLongToken": "0x8a70cf1f1fcd6f797dbc54614a64f3ebc3943e1ee03a59d879aff5db4f06d23f",
|
|
1816
|
+
"longInterestInTokensUsingShortToken": "0x45009651c58ab1a8b57e58cdbacb1582880b02b1fb611b02ec70cd2c80e2b9a1",
|
|
1817
|
+
"shortInterestInTokensUsingLongToken": "0x6fb34e78ef0a17cb11997a13703c97b31a5a7caf40ca5fce0489a0c45ef20f83",
|
|
1818
|
+
"shortInterestInTokensUsingShortToken": "0xf3c401cbeaa5338350dc9a9b7d5c7d86b7c818712598ff1ae8d2e0ed9e87ab78"
|
|
1819
|
+
},
|
|
1820
|
+
"0x728Ff0679c89267434D6EF1824c8C8eED4aC3DBC": {
|
|
1821
|
+
"longPoolAmount": "0x8979b875f2cd668c03a6eeb4c7cb1c85e5bd7ef67bc71b187e4db592b2b4abeb",
|
|
1822
|
+
"shortPoolAmount": "0x010804628d49699c77e2af9acc6a74af43c2e0a35ee9a6f89a4f54c6fdc0d353",
|
|
1823
|
+
"positionImpactPoolAmount": "0xdb1fa0ad6859b4db39a7bed43e8c8bb60affc0fc13ae93384d735999d72a3e54",
|
|
1824
|
+
"swapImpactPoolAmountLong": "0xaf99ec074c87574b6f977edfad3626dd4e7c73933a564b7c552fbef7cd86482a",
|
|
1825
|
+
"swapImpactPoolAmountShort": "0xd3ec47bbf27d70ccd98a4a150fcde17ada195f4e216a8fd1785029f262ab3fa3",
|
|
1826
|
+
"longInterestUsingLongToken": "0xfb3098cd3f646a599404948ec43125a5a6006d5d608b90ad120c55dd7346b318",
|
|
1827
|
+
"longInterestUsingShortToken": "0x1bf2ea7f64430bf9d2acdbaf17071819a4ea4ab8bc8fdc03dabb36d48806511e",
|
|
1828
|
+
"shortInterestUsingLongToken": "0x5ec33cf714ea01ce18a026b33cecc5c8850e4a84069905614bcb322fe8b5608c",
|
|
1829
|
+
"shortInterestUsingShortToken": "0x8d67de51d82871c9465d5258916733392f1ace6f953f6d700f2bda8de06638fe",
|
|
1830
|
+
"longInterestInTokensUsingLongToken": "0x22701602701a07a786dad6f414d252f0bd9954f6e0253d35de3136b4762f5fda",
|
|
1831
|
+
"longInterestInTokensUsingShortToken": "0x258b4030ed7c58b4a6e3bbd6ebd647bb00b8f8095ca68b498542f45cc16f092b",
|
|
1832
|
+
"shortInterestInTokensUsingLongToken": "0xcfea4b65f382ac5c5f6f664bbe35c58e2980f0c3b8c690fc637323b0e5d6417e",
|
|
1833
|
+
"shortInterestInTokensUsingShortToken": "0xb2db20fe0f91b03004bcfc9495c138715913e79f6b5b044862fcdde38a7cf58c"
|
|
1834
|
+
},
|
|
1835
|
+
"0x3B4689d69516b9D4b1aaf7545c6fC4d3ED70b70b": {
|
|
1836
|
+
"longPoolAmount": "0x859662ec513e44158ee0ccf5a94d120305a12348a9dbddd5ccd206b177cdf4eb",
|
|
1837
|
+
"shortPoolAmount": "0xb46fc4659eb29cdb837e8fcc935210c77e42fcb8a583179df17ae04debf80d89",
|
|
1838
|
+
"positionImpactPoolAmount": "0xb228ecb1939e901d51f21798d9d6b8557ae6f235a0975715a3991e06700c85d7",
|
|
1839
|
+
"swapImpactPoolAmountLong": "0x7ef60434ad174496a492e5b9ace2ae6ee22b017a336e75d334c1d8c9e7814016",
|
|
1840
|
+
"swapImpactPoolAmountShort": "0x6c3dafe20f5e8c7a321b0e0e8fa6a988e6a5a4aadf5c61f2205093b0e0b31d82",
|
|
1841
|
+
"longInterestUsingLongToken": "0xe8f4b28bc33ceb87f02d0e177873b9091fcf87e46716312348d152b1d8a9b4b5",
|
|
1842
|
+
"longInterestUsingShortToken": "0x4b8631f0ea309d974664c44b27fb09cbe96b76778b3ddcdaf7525676b5541ff5",
|
|
1843
|
+
"shortInterestUsingLongToken": "0xe4c5de8cf12381a14d65c5365a68e6633716bd2dd4405e02af710d2d30a787f4",
|
|
1844
|
+
"shortInterestUsingShortToken": "0x34224448ae12e28a09f00339d1b5f64ca76b00fbf3c474ccd9e172ef3e9cd4fc",
|
|
1845
|
+
"longInterestInTokensUsingLongToken": "0x09ff271595434f54483367c25e9d1207348ceb4b63585c39ec4ee0a3c22d4a4f",
|
|
1846
|
+
"longInterestInTokensUsingShortToken": "0xbc29e7c6ca04597e9d15181e93cdaa6ba363a958d55f0e62f7fe5ef507d2c94c",
|
|
1847
|
+
"shortInterestInTokensUsingLongToken": "0x594e7e708b5fa4f6f4c87ee055dc894ddfec6017e2f52c885278a8f2ec1ac8b7",
|
|
1848
|
+
"shortInterestInTokensUsingShortToken": "0x960c34b07813fb70855820dfb601ee4b76897109d5c3a2dd1d30fae8712555a0"
|
|
1849
|
+
},
|
|
1850
|
+
"0x8965e821c7C8c09c6eB3Cb9cCf7Eb6f386441EA2": {
|
|
1851
|
+
"longPoolAmount": "0xb6d889395a9d64218892ea61d11c7174637e0f94a99ca67da71109d1bcc7bcf3",
|
|
1852
|
+
"shortPoolAmount": "0x440e08650f5ec7138b1d2776eab730f2ca4975f6f41eddbda38d85aa526bc7d5",
|
|
1853
|
+
"positionImpactPoolAmount": "0xab8a4c4147176530c89b9a3f39c33a9a4fa5afc44c0e5a9050bbdf0089d52c61",
|
|
1854
|
+
"swapImpactPoolAmountLong": "0xa9259e1d5ae5a703af9afc82f0d3f410696af0089d7070b4f9ca8ad6206dcb3d",
|
|
1855
|
+
"swapImpactPoolAmountShort": "0x8e601e1818c6698cc9671b03e9d9a902ea712d307c7ec6eba62118f12395ed83",
|
|
1856
|
+
"longInterestUsingLongToken": "0xb59330e96e848a4d8e8569d021e6632dc1c315331b8ba7ff7ae8a6945d73a222",
|
|
1857
|
+
"longInterestUsingShortToken": "0x3fdfae07e54ab044da2db02e0de0160ed9671226991be877fe833d82a1d9a872",
|
|
1858
|
+
"shortInterestUsingLongToken": "0x196229caa3dfdf1e7adb24d742b422b6f1b072a38a9f07938e899f2a24fbd6bd",
|
|
1859
|
+
"shortInterestUsingShortToken": "0x7c4cc952a9892b3fa804923021517f88ceac512d1fa430efd5f8dfbb5017ee49",
|
|
1860
|
+
"longInterestInTokensUsingLongToken": "0xfeb9915fc6eab71e687974ff896833fd8133748bf3c8858847c1f5547c623db4",
|
|
1861
|
+
"longInterestInTokensUsingShortToken": "0xb7216cb22e3d88515c66240afbe7270af82c56662fbe02175cdb8a4c536bb653",
|
|
1862
|
+
"shortInterestInTokensUsingLongToken": "0xb1f03517e53f64ea61c2c020ea83b65d1f285917d6f740ce7bb7904e8e783c20",
|
|
1863
|
+
"shortInterestInTokensUsingShortToken": "0x711ef4606c1e48b3454a208e31088d694917c745893c54ee39f0a011ba2410bf"
|
|
1864
|
+
},
|
|
1865
|
+
"0x3600592DdEd7e6E0B05029DfB637fFc5A85D6f6B": {
|
|
1866
|
+
"longPoolAmount": "0x668ee8f6776025dbda07f90d5b7477e0535d09f923c862e11119c2190b4cea3b",
|
|
1867
|
+
"shortPoolAmount": "0xb666179d743eb811335cd7b70c756eac867214b684c4ca27757c7a0552ff7365",
|
|
1868
|
+
"positionImpactPoolAmount": "0x41c353f4e81e3fd7f01e1b1f01778bfe13fd5f94ed982f49862fec78af45dfb8",
|
|
1869
|
+
"swapImpactPoolAmountLong": "0x231927a1820c359ec257c6e3fc4e3b6659f562417b37465802fe60c99174f2cf",
|
|
1870
|
+
"swapImpactPoolAmountShort": "0x41f8fde1d6545da3fa3be39508b35e31ecc9f8e03f8775d85384af53fdf508ba",
|
|
1871
|
+
"longInterestUsingLongToken": "0x59f608056e5b384ceebe52810464d60ad32fc408b7d694509b6f3e55c2b4b8ba",
|
|
1872
|
+
"longInterestUsingShortToken": "0x0e99a19843cfde40ef0736f377392cf7ea7893b4a6a93be7abd142cb14e07fc7",
|
|
1873
|
+
"shortInterestUsingLongToken": "0x2497df001e1741822c0d4f646596f0d1ed9e70f5dbd90ff4236a06a09132d50b",
|
|
1874
|
+
"shortInterestUsingShortToken": "0x4e5400c0395037b7c640c88360bda543229ee50d0e33883ef2aae2ae96ceb7d0",
|
|
1875
|
+
"longInterestInTokensUsingLongToken": "0x9649688da2dd7172e852d091969f6ed87dcda9fb2c6537d6ae35f665ef1868aa",
|
|
1876
|
+
"longInterestInTokensUsingShortToken": "0x2dc01b3b85d756baf87d00c973daa5407d890d823b6d0c3e3319969af87c09a7",
|
|
1877
|
+
"shortInterestInTokensUsingLongToken": "0xbdc14076a36f44c7f3a721b002fbe90479cef53c30049cf42365a196f962978d",
|
|
1878
|
+
"shortInterestInTokensUsingShortToken": "0x4807b52cfdf6c2cebdc1e028aa6e5ea81dc95ff2d40ac3888f859c3973fdfe1b"
|
|
1804
1879
|
}
|
|
1805
1880
|
},
|
|
1806
1881
|
"43113": {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { abis as allAbis } from "../abis";
|
|
2
2
|
import { sleep } from "./common";
|
|
3
3
|
export const MAX_TIMEOUT = 40000;
|
|
4
|
-
export const MAX_CALLS_PER_BATCH =
|
|
5
|
-
export const MAX_CONCURRENT_BATCHES =
|
|
4
|
+
export const MAX_CALLS_PER_BATCH = 1000;
|
|
5
|
+
export const MAX_CONCURRENT_BATCHES = 1;
|
|
6
6
|
export class Multicall {
|
|
7
7
|
static async getInstance(sdk) {
|
|
8
8
|
const chainId = sdk.chainId;
|
|
@@ -35,12 +35,26 @@ describe("findSwapPathsBetweenTokens", () => {
|
|
|
35
35
|
const result = findSwapPathsBetweenTokens(graph);
|
|
36
36
|
expect(result).toEqual({
|
|
37
37
|
BTC: {
|
|
38
|
+
BTC: [
|
|
39
|
+
["ETH", "USDC"],
|
|
40
|
+
["USDC", "ETH"],
|
|
41
|
+
],
|
|
38
42
|
ETH: [[], ["USDC"]],
|
|
39
43
|
USDC: [[], ["ETH"]],
|
|
40
44
|
},
|
|
41
45
|
ETH: {
|
|
46
|
+
ETH: [
|
|
47
|
+
["USDC", "BTC"],
|
|
48
|
+
["BTC", "USDC"],
|
|
49
|
+
],
|
|
42
50
|
USDC: [[], ["BTC"]],
|
|
43
51
|
},
|
|
52
|
+
USDC: {
|
|
53
|
+
USDC: [
|
|
54
|
+
["ETH", "BTC"],
|
|
55
|
+
["BTC", "ETH"],
|
|
56
|
+
],
|
|
57
|
+
},
|
|
44
58
|
});
|
|
45
59
|
});
|
|
46
60
|
it("should handle multiple markets between same tokens", () => {
|
|
@@ -55,8 +69,12 @@ describe("findSwapPathsBetweenTokens", () => {
|
|
|
55
69
|
const result = findSwapPathsBetweenTokens(graph);
|
|
56
70
|
expect(result).toEqual({
|
|
57
71
|
ETH: {
|
|
72
|
+
ETH: [["USDC"]],
|
|
58
73
|
USDC: [[], ["USDC", "ETH"]],
|
|
59
74
|
},
|
|
75
|
+
USDC: {
|
|
76
|
+
USDC: [["ETH"]],
|
|
77
|
+
},
|
|
60
78
|
});
|
|
61
79
|
});
|
|
62
80
|
it("should not include self-loops", () => {
|
|
@@ -137,12 +155,16 @@ describe("findSwapPathsBetweenTokens", () => {
|
|
|
137
155
|
const result = findSwapPathsBetweenTokens(graph);
|
|
138
156
|
expect(result).toEqual({
|
|
139
157
|
A: {
|
|
158
|
+
A: [["USDC"]],
|
|
140
159
|
B: [["USDC"]],
|
|
141
160
|
USDC: [[], ["USDC", "A"]],
|
|
142
161
|
},
|
|
143
162
|
B: {
|
|
144
163
|
USDC: [[], ["USDC", "A"]],
|
|
145
164
|
},
|
|
165
|
+
USDC: {
|
|
166
|
+
USDC: [["A"]],
|
|
167
|
+
},
|
|
146
168
|
});
|
|
147
169
|
});
|
|
148
170
|
});
|