@gmx-io/sdk 1.1.2 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/src/abis/StBTC.json +1225 -0
- package/build/cjs/src/abis/SyntheticsReader.json +480 -19
- package/build/cjs/src/configs/__tests__/tokens.spec.js +1 -0
- package/build/cjs/src/configs/chains.js +57 -6
- package/build/cjs/src/configs/contracts.js +64 -68
- package/build/cjs/src/configs/dataStore.js +4 -3
- package/build/cjs/src/configs/express.js +2 -1
- package/build/cjs/src/configs/markets.js +37 -0
- package/build/cjs/src/configs/oracleKeeper.js +1 -0
- package/build/cjs/src/configs/tokens.js +130 -1
- package/build/cjs/src/modules/orders/helpers.js +12 -13
- package/build/cjs/src/modules/positions/positions.js +9 -0
- package/build/cjs/src/prebuilt/hashedKinkModelMarketRatesKeys.json +42 -0
- package/build/cjs/src/prebuilt/hashedMarketConfigKeys.json +257 -0
- package/build/cjs/src/prebuilt/hashedMarketValuesKeys.json +77 -0
- package/build/cjs/src/types/subsquid.js +103 -1
- package/build/cjs/src/utils/__tests__/numbers.spec.js +17 -9
- package/build/cjs/src/utils/__tests__/orderTransactions/decreaseOrders.spec.js +2 -0
- package/build/cjs/src/utils/__tests__/orderTransactions/increaseOrders.spec.js +2 -0
- package/build/cjs/src/utils/__tests__/orderTransactions/swapOrders.spec.js +1 -0
- package/build/cjs/src/utils/__tests__/prices.spec.js +3 -2
- package/build/cjs/src/utils/__tests__/uiFeeReceiver.spec.js +9 -0
- package/build/cjs/src/utils/errors/transactionsErrors.js +2 -1
- package/build/cjs/src/utils/fees/executionFee.js +9 -1
- package/build/cjs/src/utils/numbers.js +52 -34
- package/build/cjs/src/utils/orderTransactions.js +3 -0
- package/build/cjs/src/utils/orders.js +8 -2
- package/build/cjs/src/utils/prices.js +1 -1
- package/build/cjs/src/utils/swap/swapValues.js +40 -0
- package/build/cjs/src/utils/tokens.js +10 -1
- package/build/cjs/src/utils/twap/uiFeeReceiver.js +26 -6
- package/build/esm/src/abis/StBTC.json +1225 -0
- package/build/esm/src/abis/SyntheticsReader.json +480 -19
- package/build/esm/src/configs/__tests__/tokens.spec.js +2 -1
- package/build/esm/src/configs/chains.js +56 -5
- package/build/esm/src/configs/contracts.js +65 -69
- package/build/esm/src/configs/dataStore.js +1 -0
- package/build/esm/src/configs/express.js +4 -3
- package/build/esm/src/configs/markets.js +38 -1
- package/build/esm/src/configs/oracleKeeper.js +2 -1
- package/build/esm/src/configs/tokens.js +131 -2
- package/build/esm/src/modules/orders/helpers.js +12 -13
- package/build/esm/src/modules/positions/positions.js +9 -0
- package/build/esm/src/prebuilt/hashedKinkModelMarketRatesKeys.json +42 -0
- package/build/esm/src/prebuilt/hashedMarketConfigKeys.json +257 -0
- package/build/esm/src/prebuilt/hashedMarketValuesKeys.json +77 -0
- package/build/esm/src/types/subsquid.js +102 -0
- package/build/esm/src/utils/__tests__/numbers.spec.js +18 -10
- package/build/esm/src/utils/__tests__/orderTransactions/decreaseOrders.spec.js +2 -0
- package/build/esm/src/utils/__tests__/orderTransactions/increaseOrders.spec.js +2 -0
- package/build/esm/src/utils/__tests__/orderTransactions/swapOrders.spec.js +1 -0
- package/build/esm/src/utils/__tests__/prices.spec.js +3 -2
- package/build/esm/src/utils/__tests__/uiFeeReceiver.spec.js +9 -0
- package/build/esm/src/utils/errors/transactionsErrors.js +2 -1
- package/build/esm/src/utils/fees/executionFee.js +11 -3
- package/build/esm/src/utils/numbers.js +50 -31
- package/build/esm/src/utils/orderTransactions.js +3 -0
- package/build/esm/src/utils/orders.js +8 -2
- package/build/esm/src/utils/prices.js +1 -1
- package/build/esm/src/utils/swap/swapValues.js +41 -1
- package/build/esm/src/utils/tokens.js +7 -0
- package/build/esm/src/utils/twap/uiFeeReceiver.js +24 -5
- package/build/types/src/configs/chains.d.ts +20 -37
- package/build/types/src/configs/contracts.d.ts +60 -63
- package/build/types/src/configs/dataStore.d.ts +1 -0
- package/build/types/src/configs/markets.d.ts +2 -1
- package/build/types/src/configs/oracleKeeper.d.ts +1 -1
- package/build/types/src/configs/tokens.d.ts +1 -0
- package/build/types/src/index.d.ts +1 -1
- package/build/types/src/modules/base.d.ts +1 -1
- package/build/types/src/modules/orders/helpers.d.ts +10 -2
- package/build/types/src/modules/orders/orders.d.ts +10 -1
- package/build/types/src/types/orders.d.ts +1 -1
- package/build/types/src/types/sdk.d.ts +2 -1
- package/build/types/src/types/subsquid.d.ts +388 -0
- package/build/types/src/types/tokens.d.ts +1 -0
- package/build/types/src/types/trade.d.ts +1 -0
- package/build/types/src/utils/multicall.d.ts +1 -1
- package/build/types/src/utils/numbers.d.ts +8 -3
- package/build/types/src/utils/orderTransactions.d.ts +2 -3
- package/build/types/src/utils/prices.d.ts +1 -1
- package/build/types/src/utils/tokens.d.ts +2 -0
- package/build/types/src/utils/twap/uiFeeReceiver.d.ts +13 -0
- package/package.json +1 -1
|
@@ -1,4 +1,108 @@
|
|
|
1
1
|
{
|
|
2
|
+
"3637": {
|
|
3
|
+
"0x6682BB60590a045A956541B1433f016Ed22E361d": {
|
|
4
|
+
"isDisabled": "0x3d55f7974525cd741933a7186e9a94c1c4487633e482fb2b5d373be0d62ed264",
|
|
5
|
+
"maxLongPoolAmount": "0x9e6c1bd0ddfc11aeb615ef5bfe45fbff2f7990f19ed2121fca3c337b14a157e0",
|
|
6
|
+
"maxShortPoolAmount": "0x9e6c1bd0ddfc11aeb615ef5bfe45fbff2f7990f19ed2121fca3c337b14a157e0",
|
|
7
|
+
"maxLongPoolUsdForDeposit": "0x35fc0eea75eac98f81bada4885b906c3d1712da20eab960d1ed7036a18e9b66b",
|
|
8
|
+
"maxShortPoolUsdForDeposit": "0x35fc0eea75eac98f81bada4885b906c3d1712da20eab960d1ed7036a18e9b66b",
|
|
9
|
+
"longPoolAmountAdjustment": "0x2f5eb334e2d63b490428a2c894148cbab55638c28f5139dfcad774e04d99c43e",
|
|
10
|
+
"shortPoolAmountAdjustment": "0x2f5eb334e2d63b490428a2c894148cbab55638c28f5139dfcad774e04d99c43e",
|
|
11
|
+
"reserveFactorLong": "0x52cc66676cf0564a00d6381240725a00bea4efc226e693dcbfe56d74fa96c7e1",
|
|
12
|
+
"reserveFactorShort": "0x6e3893b66c4b4808b05fa668c2798f32edc4272887973f5d74bd095553ddca1b",
|
|
13
|
+
"openInterestReserveFactorLong": "0x0db424b730817efdd449a3efc33d03f985a9a6068cd24759821702eb87c24333",
|
|
14
|
+
"openInterestReserveFactorShort": "0xdfd759f163b74b987e08cf287a549abc78ae8ba10ae8e9cc0b9af367eb210963",
|
|
15
|
+
"maxOpenInterestLong": "0x236abae8e432ea183038102c2503f642e085d216fbe7bd27b8731ba63eb87734",
|
|
16
|
+
"maxOpenInterestShort": "0xf96ba95eeae1dbf7f8d644feca7088eec422218a82c48a4711f3fd8c0ab5cec0",
|
|
17
|
+
"minPositionImpactPoolAmount": "0xb80478fd242df48903aab560d5ca3737544b0bb066248ca1bddeaaa3811eb573",
|
|
18
|
+
"positionImpactPoolDistributionRate": "0x4b780be673ba896e1d434d83567b3baa1c81df5a334b7ca493fcb1544a60792e",
|
|
19
|
+
"borrowingFactorLong": "0xb2529abec3c904f9807e19969849552af7e4f40b07edc717ccc4df6f003e0b0d",
|
|
20
|
+
"borrowingFactorShort": "0x2d38837766d17609b901e24027eac88ee7f927f945525aad00054b752f1ac22d",
|
|
21
|
+
"borrowingExponentFactorLong": "0x6a32ea6e2836d08704af2ff6f2ee51754540285022bc911cb226e4f0af631a6b",
|
|
22
|
+
"borrowingExponentFactorShort": "0xab8319c244b0f949a90354c2a235caaaef7d9be4c1e394bd333fbee797220cf9",
|
|
23
|
+
"fundingFactor": "0xc87297974cfce7b9fe4cdbbfb73810b80132272fe7816df6a3f814ebae341ae8",
|
|
24
|
+
"fundingExponentFactor": "0x234a76ffcb4ccc045707ed3981718440028958d2c24bab91d61f2b09d5138828",
|
|
25
|
+
"fundingIncreaseFactorPerSecond": "0x63bee042a1ed12be345331348c8061b5fbc8f6971fb5084bb8854314b0dbc179",
|
|
26
|
+
"fundingDecreaseFactorPerSecond": "0xcef99b035323d48fd79d2555e60b4bf0fe41e8b28b9129705dd64b9b45f4f822",
|
|
27
|
+
"thresholdForStableFunding": "0xe73182554665812c9c2a31fba3a15ec86b7ad0bbd21f94becd7d69c8ee7c8a34",
|
|
28
|
+
"thresholdForDecreaseFunding": "0xac8252681b1c7bc56211350e686c8c2bff36313de016de9deac4f8db5b3b2a8d",
|
|
29
|
+
"minFundingFactorPerSecond": "0x9e341157834bf89fd5572a8c15124cf91e9a7016628be675766cf756ba2e1653",
|
|
30
|
+
"maxFundingFactorPerSecond": "0xf880113d343712cab3812feabf11130764ad8d4ce146fcbff76f6351565d2f17",
|
|
31
|
+
"maxPnlFactorForTradersLong": "0x18de6c5527ecbd4cdcb5e91185c0b31d6a725508c3f6c07d1104e3d30618bce6",
|
|
32
|
+
"maxPnlFactorForTradersShort": "0xdc6d824c4b03495ea4fd0d98b1f6a57069b5ad662490a91d6f44166e0d33c48d",
|
|
33
|
+
"positionFeeFactorForPositiveImpact": "0xf9d4c5d5fa290d04bf7b517af61f419cc12f0c591c15f8a0956cbd3fc5ff6bb0",
|
|
34
|
+
"positionFeeFactorForNegativeImpact": "0xfd0c7ba47ba7bdd1f03ab209f90075b4b97bd978f952e1f296658e93010823fa",
|
|
35
|
+
"positionImpactFactorPositive": "0xa4239fa93c7d5c36884e2bfeb9fbfbaec17026758f959bafd260799080ae5541",
|
|
36
|
+
"positionImpactFactorNegative": "0x19cfb0f7abb434cc833aa334e452092610e3ce15814c4458fcaa27bfdb521f16",
|
|
37
|
+
"maxPositionImpactFactorPositive": "0xfc5bed622848c4e3e455c308358b9909d5c8b565bebb2874dffd1d4f54eaad2b",
|
|
38
|
+
"maxPositionImpactFactorNegative": "0x6be447408c855216316c492f3f14b036eea188f1b5e003014c0dcd607382cc04",
|
|
39
|
+
"maxPositionImpactFactorForLiquidations": "0xcb99d885f7f3f027e0358eb5ec14e6191d1138e3fbdef65a26ed61fb60102f20",
|
|
40
|
+
"minCollateralFactor": "0x7ed8bbc84a504f7593aeb499af806615332528c198809a44c6e5dba3e0d72e88",
|
|
41
|
+
"minCollateralFactorForOpenInterestLong": "0xf6af02901769f5d0431c90ada09d6c367624e1076786532fd2ce8e6d717667a2",
|
|
42
|
+
"minCollateralFactorForOpenInterestShort": "0xaa5c6a876f5b9214f7f2ab110afac5d785b3fe106ac7cd7a0d18984414c5b6d6",
|
|
43
|
+
"positionImpactExponentFactor": "0xc803b8cb75cba8e65bcdb755850a3b00ed19f35a17433db4d7b00c0ff8d3c3c6",
|
|
44
|
+
"swapFeeFactorForPositiveImpact": "0xd2f7a87d5d57a855fe4a2f329dc1e09ace6cb08c7e2836429f1d102e810972f0",
|
|
45
|
+
"swapFeeFactorForNegativeImpact": "0x08f90c2709ec73ef9e0fcb703ea79aba37782b5569c8d8382a4028b876a4baf6",
|
|
46
|
+
"atomicSwapFeeFactor": "0xd150b7f649c4be53a26b4b617b831c4f675acdd63f8b8974388503c3560ddb6d",
|
|
47
|
+
"swapImpactFactorPositive": "0xa3eb1cf6b16b64b67753729439ad7f9a154facab21aaa09cadea6e51ed69fe47",
|
|
48
|
+
"swapImpactFactorNegative": "0x96fdadeb1e61115c586f2886fa40f103f462d1a508917578820872f807d214bf",
|
|
49
|
+
"swapImpactExponentFactor": "0xb4bf08b3260bb5825adc61b0687ebe04c39f9e2991a2019fac11bdd22a3a6de9",
|
|
50
|
+
"virtualMarketId": "0x35d3376aa74136175cfddaef4f2f591d8e9f39213a61994f9a00549c6bc04520",
|
|
51
|
+
"virtualLongTokenId": "0xe47cf033d5b118f5fcbd7eac09913b24cfc4b2782f90e71a8dd0fe7aa4f92e7d",
|
|
52
|
+
"virtualShortTokenId": "0xe47cf033d5b118f5fcbd7eac09913b24cfc4b2782f90e71a8dd0fe7aa4f92e7d"
|
|
53
|
+
},
|
|
54
|
+
"0x2f95a2529328E427d3204555F164B1102086690E": {
|
|
55
|
+
"isDisabled": "0xa5d68e9ca1430de8b7547d8e76a8af2263443d58c5268fc5d7951d7a2d017aa9",
|
|
56
|
+
"maxLongPoolAmount": "0x0df5109e027347751ec75740cad914fcdf4f56c99957efd894fe565cd5540653",
|
|
57
|
+
"maxShortPoolAmount": "0xd197e9ffcc4bb7ad241307d84d97e23ea8f99db8e75555da273eb557038ca7e9",
|
|
58
|
+
"maxLongPoolUsdForDeposit": "0x3808bc29403b6ac98cc711a3b18834b556e3d49c9ede22acb6b6f8a4c6058cc4",
|
|
59
|
+
"maxShortPoolUsdForDeposit": "0x46cff86409ac994cffb17f34dd0e50e4a44f3b908c1bad57c4379cea5228e60d",
|
|
60
|
+
"longPoolAmountAdjustment": "0x6218a389d661d40a1212995e02d62c02b9d6a8fb1791155296f35a164cabc776",
|
|
61
|
+
"shortPoolAmountAdjustment": "0x3bcf69f3d14fa4819af04851d9e4a3e848715863cb046d7a2b21f6e256618ad3",
|
|
62
|
+
"reserveFactorLong": "0xaea7150d6795f993986bba93c83082900730d0f68f967ddc1a961d675ad9359e",
|
|
63
|
+
"reserveFactorShort": "0xee715188057a7239a71c0970438bc6ce3ba2b03dc0b6c89ca2ff3874f6853db2",
|
|
64
|
+
"openInterestReserveFactorLong": "0x5aed369e56460e85709c8498f42b96e876384d17830c4a087717356197863a9f",
|
|
65
|
+
"openInterestReserveFactorShort": "0x1e7e067a5a1c22a74730b008f74958610ff64f6c5db6a3b5c267caba1383645c",
|
|
66
|
+
"maxOpenInterestLong": "0x9af6755ebf3446860a63e123b5cd1fc40f12d12f4588c4672f31119d9515fd6b",
|
|
67
|
+
"maxOpenInterestShort": "0x474450c9bf48c6bb8dfa3bd2785c1a891a9a2a8321ee156863dd861952d907f8",
|
|
68
|
+
"minPositionImpactPoolAmount": "0x32f12883f34ccae3cefd4d0064ed2d0413c6b2f45d928ef0c1a86d266fd8c723",
|
|
69
|
+
"positionImpactPoolDistributionRate": "0x2f4cf8e502a7d3ee91e7339b6bb751b9c2dd85792a1d0d04e822151cee52df89",
|
|
70
|
+
"borrowingFactorLong": "0x1df1061eabdf79ac4a85e9c4997260f09ac38831046818cdd3352b5b401cc1b9",
|
|
71
|
+
"borrowingFactorShort": "0x528dc382b47150767d36ada5582539d0b293e30eab97ce8212823b3daf77c56f",
|
|
72
|
+
"borrowingExponentFactorLong": "0xce4946aa505a4ce985f7d1d5f2edbca8fef5d790a280ba87bec5e400dc9cfc65",
|
|
73
|
+
"borrowingExponentFactorShort": "0xf9d26bf3021b500d8c006928c0d30388bcd31085af2d269d82daf2bec82ea93c",
|
|
74
|
+
"fundingFactor": "0x7c51fd945ceb3fa8ad0deaacda576e02cf889091a3428585c6193fecb4994059",
|
|
75
|
+
"fundingExponentFactor": "0xcba0a23da2d9a222ad306fdd480a6a7bbb39519f2ef34edfa8ca456e65b98037",
|
|
76
|
+
"fundingIncreaseFactorPerSecond": "0xcece4296349961be633a61514fac255232e537e5cd1dc0be55ec3bc2148b6ac9",
|
|
77
|
+
"fundingDecreaseFactorPerSecond": "0x4a842021359b25eb1d12b9d4f68de248662e025046591360dffa524b66096b9e",
|
|
78
|
+
"thresholdForStableFunding": "0xc7cd91e39df08bf4d63f8b3909989bf226246c9fbafff22455dd4c20423be21d",
|
|
79
|
+
"thresholdForDecreaseFunding": "0xf0089038c3ef050413706ae6d104bf5ae69baf83573ae6e041d6dcfcf066f84a",
|
|
80
|
+
"minFundingFactorPerSecond": "0x75263e6f913ee229cf0afe08f3a1c64e725c5d2ebcb2c908bbb3d35ba39d47ba",
|
|
81
|
+
"maxFundingFactorPerSecond": "0xfcfc49fdb6d57ddb08658d6d6d25c53a4f3d500e69c6e6049722b593ac53f76d",
|
|
82
|
+
"maxPnlFactorForTradersLong": "0x6d7460d4543897cfb4373a1d5eaeec93a5032f39f573a936a205a6fbd6594ca4",
|
|
83
|
+
"maxPnlFactorForTradersShort": "0x58542f1aec8f133258f6c8474548a8812815c7d182f79962a59893ae18b38c54",
|
|
84
|
+
"positionFeeFactorForPositiveImpact": "0x4af350796a03809751c38802108bc15fb788c0233254797527d79743603199fa",
|
|
85
|
+
"positionFeeFactorForNegativeImpact": "0x1e56383917330162ee938d9d6e4567c417bcbb84e75ef46a71f07c2e2994d810",
|
|
86
|
+
"positionImpactFactorPositive": "0x8301e78d67eae4dcd2dfda129a7805f3bddeba3b2ac08087241568595926eb1c",
|
|
87
|
+
"positionImpactFactorNegative": "0x7f8eab1f73f4ef7822d1b98fdb0e8ab427f134e2cfd8741e6ef4dc9ca9c6b621",
|
|
88
|
+
"maxPositionImpactFactorPositive": "0xc646aeff6a40d8e58e806be1d4cb09a381114176f0d41d24c0c84bd48985aeab",
|
|
89
|
+
"maxPositionImpactFactorNegative": "0xaba0b2684cc102be8fd5f7b30a5a6145685486fcf0716a940f38a819b5e4ef05",
|
|
90
|
+
"maxPositionImpactFactorForLiquidations": "0xce239b525e44abc42127078a80acc0ca884808425048ab0d2121cebe16e7f98c",
|
|
91
|
+
"minCollateralFactor": "0xbd15bc48a477042fe084c278c9596a903cb537c13f134405e2e59ca977784a0d",
|
|
92
|
+
"minCollateralFactorForOpenInterestLong": "0x9d952e960da486bb07fd5da270a9f38c80dd0c394d4fb940d08357e82f052e73",
|
|
93
|
+
"minCollateralFactorForOpenInterestShort": "0xc4f39f26f1ebe2c2b425c07a1bd72b91ec14e54bdff50e69cd84cb57cfe9964f",
|
|
94
|
+
"positionImpactExponentFactor": "0xb3eecb6e2939f73b7f6ce67479385071d99057835f8b6d5cff1255c57424cbf0",
|
|
95
|
+
"swapFeeFactorForPositiveImpact": "0x4bb062bfb969a41fb8ac9a3338dcca06a312d60aa511535de9b290de56008e6d",
|
|
96
|
+
"swapFeeFactorForNegativeImpact": "0x4ea0ffd481b6caa50138a2c69d320b236cadb1c69536683ef92e93454acaba84",
|
|
97
|
+
"atomicSwapFeeFactor": "0xd7a0acca1804516a01dd5e0058950cb3911bed3405408adeb025867ccecf1da7",
|
|
98
|
+
"swapImpactFactorPositive": "0x849e771df499463b3a5aa83b5bc195e882c5a28bf0ec0d3f060d82ddb3fc2024",
|
|
99
|
+
"swapImpactFactorNegative": "0xaca989b67d45cf4d4a0e9d12ad35b0e21a61196eff7882388a0d164c646c9499",
|
|
100
|
+
"swapImpactExponentFactor": "0x20c976853f23f3c0844cbee8733addcad9a4e2d8a57dc7729ef21eee841a1266",
|
|
101
|
+
"virtualMarketId": "0x3a05f8c8f61bf8c5c62929f1d68a9975fdaf88e589d39e6c70bdba44933c7ca5",
|
|
102
|
+
"virtualLongTokenId": "0xe47cf033d5b118f5fcbd7eac09913b24cfc4b2782f90e71a8dd0fe7aa4f92e7d",
|
|
103
|
+
"virtualShortTokenId": "0x7bb231dec6009cf7c97d392e1a14075f34e82077fd9c20cab34ffae7bd46e869"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
2
106
|
"42161": {
|
|
3
107
|
"0x47c031236e19d024b42f8AE6780E44A573170703": {
|
|
4
108
|
"isDisabled": "0xe8b3327a4f36a032e9c4b5c62bd478f8f7dcb358be17e031c08af181054f89e9",
|
|
@@ -4436,6 +4540,108 @@
|
|
|
4436
4540
|
"virtualMarketId": "0x4d20cfc9516de2a8e7c84f7eda56eda0c266f196478fb425a0bef534bc05a279",
|
|
4437
4541
|
"virtualLongTokenId": "0xa59040b7efb6b7122a74cb318a192ebc6732849dff5332ee3ba40b90dfa0a04f",
|
|
4438
4542
|
"virtualShortTokenId": "0xd5258cb84f0039be58306488e8df941c05f3cf4f219e92aacb6561c736bbb960"
|
|
4543
|
+
},
|
|
4544
|
+
"0x4C0Bb704529Fa49A26bD854802d70206982c6f1B": {
|
|
4545
|
+
"isDisabled": "0xeca5e5e326184f809f89d9420a1c3e9fbe205a56977d4343f375c0d594ce8ef6",
|
|
4546
|
+
"maxLongPoolAmount": "0x206a8f73a58b1489ea55d7f055999d7e6eea616bacfda349b499d8341b3e5734",
|
|
4547
|
+
"maxShortPoolAmount": "0x131b3ff2353105c286a95e93e26c245640f9b3417997836689a91df3d1af5942",
|
|
4548
|
+
"maxLongPoolUsdForDeposit": "0xc85a1e47e93ab6eab8b2566df237eb739fe01b3d296e8c5f89f43fdeb2dc4e6f",
|
|
4549
|
+
"maxShortPoolUsdForDeposit": "0xeffe072a8c71be2a22e6d1093c1c90e81bfd6b21cb32dbeab7b75acb19c36a55",
|
|
4550
|
+
"longPoolAmountAdjustment": "0x26480c8b98de8e179b05d08b43465b52e8fab475827ba6987c8f30e3be60d23e",
|
|
4551
|
+
"shortPoolAmountAdjustment": "0x6ee420c8738e03a48c1964bf0989c895f70ca8d35ab07c103d6b5069addf15ed",
|
|
4552
|
+
"reserveFactorLong": "0x5ccd01b6246b5e77bb154ca1e49591d1d4fe051f9b6cd041a9c1ea1e14c6f07b",
|
|
4553
|
+
"reserveFactorShort": "0x5c49479ab2c5dfd3ee3e5262b03a5e996a06347a30a2419f2265d74181354871",
|
|
4554
|
+
"openInterestReserveFactorLong": "0xde87ebb3eeaf4a62a7c71dd6acd14922613632b824b1987f58b7ef621b58bdbf",
|
|
4555
|
+
"openInterestReserveFactorShort": "0x205d8bf157cbba50bf65fe8734b05c4e6a5a039548534bfef85b4ed227f5d1e6",
|
|
4556
|
+
"maxOpenInterestLong": "0x6737debac3c24380c04d81403096b9ce16535cf39d9f5c92a504a9d8b6016024",
|
|
4557
|
+
"maxOpenInterestShort": "0x94a77667e8809a00230ec7d688c9205e31eb341691ab514b9d93ed7e86d1f884",
|
|
4558
|
+
"minPositionImpactPoolAmount": "0x9c5bd9f3f0166cb4ad00f3d0ea194a0826405b88e9f342cb6648758d671f91b3",
|
|
4559
|
+
"positionImpactPoolDistributionRate": "0x84d4d8e5b369d8151354f62765010b12c5e4869b4d773b6d72a380b9558ca6df",
|
|
4560
|
+
"borrowingFactorLong": "0x293b6ada1d31fc1f8d8ba088e1b077f14cf919a11d626802afd750da41e17717",
|
|
4561
|
+
"borrowingFactorShort": "0x79c3fb3365595e87e2a30d212ea90ca828fd2cc0494e97bf95a953c8e82f4780",
|
|
4562
|
+
"borrowingExponentFactorLong": "0x91bee18eeca13466e503bd10e956b1dc2fe84304b678e5a5c0e1c1c7ebbb4d4c",
|
|
4563
|
+
"borrowingExponentFactorShort": "0xe9e4446a826b8abe7f31e116ecde17206d6eda262067202f6ba39ac3565fc49e",
|
|
4564
|
+
"fundingFactor": "0xe118a4950171fc43ebbd2267884b3cbe47e2614c9e54622a8434d71b17c9841d",
|
|
4565
|
+
"fundingExponentFactor": "0x89a40c17f588f76173287c337203fab3a8c875c0a42ee97449d2187dd7abfebf",
|
|
4566
|
+
"fundingIncreaseFactorPerSecond": "0xc5132dc9bf0f1f570e4f84f4b2601f42a25a1e663dd6132443f0348f5e160a6a",
|
|
4567
|
+
"fundingDecreaseFactorPerSecond": "0xa45c74eaff7f498c0c3c6deacc4e28d469f4700f76aa65f89d4496e609bd2314",
|
|
4568
|
+
"thresholdForStableFunding": "0xc8a11c5635442ed607b4c54b1c4a14f7b2a22e570424a0224e250cacdfe3d8cd",
|
|
4569
|
+
"thresholdForDecreaseFunding": "0xfbf837388159c2be59e9c0add9415607431879b22c0a2c01ca510f8ff7efa44a",
|
|
4570
|
+
"minFundingFactorPerSecond": "0xd72f4fc95031cc590ba40892ac33804e3842a57afc3d10ea092bb6a3f7e29e65",
|
|
4571
|
+
"maxFundingFactorPerSecond": "0x2a180f41a8c4af0bf330505095cd046467771b23957c3896707338976ad8ba26",
|
|
4572
|
+
"maxPnlFactorForTradersLong": "0x73d77d7c52833b1e8b72d2b87c03a954b582f3d7889e56d3bab5c6ef8c94f85e",
|
|
4573
|
+
"maxPnlFactorForTradersShort": "0xc098c5553674aeb8cd0ab776ee7f44b18caf5c9c3a7eaec8fa78ea4660624e24",
|
|
4574
|
+
"positionFeeFactorForPositiveImpact": "0xd5275ca6176b6f72af90745716e086778de82d015357f16baf310d0f704e8178",
|
|
4575
|
+
"positionFeeFactorForNegativeImpact": "0x882f4679e77e4c52f383e53786ab6563d3a1ce41584498e3db3975e6c1b626e1",
|
|
4576
|
+
"positionImpactFactorPositive": "0xee9618317d95068cfa01f27051b43663135a3267f556f9fc39c444130d03d789",
|
|
4577
|
+
"positionImpactFactorNegative": "0x9d75badb56f42cc0ce64cd93cac78531fe3367324bac64c3003df3a601f2a657",
|
|
4578
|
+
"maxPositionImpactFactorPositive": "0xe8592d9bc55e18be4a49c8938a1f4ec60a13de62065d4951c9b8dcb968689176",
|
|
4579
|
+
"maxPositionImpactFactorNegative": "0x8d34d5799c99dbf0f3f2eab70aee41faedccd92ece8d3078f9cbf9124e1f9659",
|
|
4580
|
+
"maxPositionImpactFactorForLiquidations": "0x1e5e430e83f4b42f50a9e51552c788f4eebf8994e68ea332efa2bd06dc860125",
|
|
4581
|
+
"minCollateralFactor": "0x8add9b807058f0efe927f8dcd209f053d49a4831121c5ff1df617c0aaac42fca",
|
|
4582
|
+
"minCollateralFactorForOpenInterestLong": "0xb053e44f2c73e33aca860160ad83dbae4c866151a88752a096ccbfc939ee4f34",
|
|
4583
|
+
"minCollateralFactorForOpenInterestShort": "0x9fb05f1825674751848bb279e1cf48b08f1f14a3b67e0a3ee96d3b205d19317c",
|
|
4584
|
+
"positionImpactExponentFactor": "0x69ae7b3841a987747052ea2f11ea3220e78baeabd7a874e37bbbedae08219fff",
|
|
4585
|
+
"swapFeeFactorForPositiveImpact": "0xcac43dbcf0982c139a541622f069cffb4bbf7ea35038dd0e0e1774e68d651ac4",
|
|
4586
|
+
"swapFeeFactorForNegativeImpact": "0x44e45b505ea06e2dbd3b023457dbcf31fa94e16db1c9163282a8ab43da206bbc",
|
|
4587
|
+
"atomicSwapFeeFactor": "0x257fb617aa6332d157ba1a605067b1e5c4c977a630ffce70b44a35e07bcaf599",
|
|
4588
|
+
"swapImpactFactorPositive": "0x783b2e4266df71eb217aae14be4eb9048958ede5620cb605a584fe56ffd31d5f",
|
|
4589
|
+
"swapImpactFactorNegative": "0x90d6976cdb86e2983cf7c8bef8d922c7484275d6a7ad3511a5c6083dd00363b2",
|
|
4590
|
+
"swapImpactExponentFactor": "0x017ceefc4d7ac3c3767827541c967ca7649960bdca7b3fd74d66398a585d3140",
|
|
4591
|
+
"virtualMarketId": "0xfb87b127d4425b91d7ce98276f4f83c0fbc729931ac9970b70bcfdf75e9c92b0",
|
|
4592
|
+
"virtualLongTokenId": "0xa59040b7efb6b7122a74cb318a192ebc6732849dff5332ee3ba40b90dfa0a04f",
|
|
4593
|
+
"virtualShortTokenId": "0xd5258cb84f0039be58306488e8df941c05f3cf4f219e92aacb6561c736bbb960"
|
|
4594
|
+
},
|
|
4595
|
+
"0x672fEA44f4583DdaD620d60C1Ac31021F47558Cb": {
|
|
4596
|
+
"isDisabled": "0xad66f9938aa162203ac512a6fbeb5d5a477e6fde64ac54b710f04bcec91ef0df",
|
|
4597
|
+
"maxLongPoolAmount": "0xcd11796bd6d8efb902d2d680cb6aaa185762e4a3363ef3203b4a64d5b8705a37",
|
|
4598
|
+
"maxShortPoolAmount": "0xcd11796bd6d8efb902d2d680cb6aaa185762e4a3363ef3203b4a64d5b8705a37",
|
|
4599
|
+
"maxLongPoolUsdForDeposit": "0x41bbf7e9fa92bc1fa0adbd708fad2733703cd54292bc8918d7a92ba1b38bb015",
|
|
4600
|
+
"maxShortPoolUsdForDeposit": "0x41bbf7e9fa92bc1fa0adbd708fad2733703cd54292bc8918d7a92ba1b38bb015",
|
|
4601
|
+
"longPoolAmountAdjustment": "0xcc6503e59bc1fd405e1fbbba231bded1c8302678c53b9ecce57d867259eac21b",
|
|
4602
|
+
"shortPoolAmountAdjustment": "0xcc6503e59bc1fd405e1fbbba231bded1c8302678c53b9ecce57d867259eac21b",
|
|
4603
|
+
"reserveFactorLong": "0x00ca128c81161b52e421d1a2874cceb4784ed57c30921a8bd2e14da0087cc590",
|
|
4604
|
+
"reserveFactorShort": "0x31a5f37fff18491c052c8efc056d5399c5face6ac5b87058773f64f96474f593",
|
|
4605
|
+
"openInterestReserveFactorLong": "0x84ebaecbdbb2725d046ade1d02ebbce86822ade1b43cadec02f888961d78ea28",
|
|
4606
|
+
"openInterestReserveFactorShort": "0x84d7067d5983f944aa30dd3dba0ed338d2126b3ee41490299966b66cbe02ea09",
|
|
4607
|
+
"maxOpenInterestLong": "0xa259ea0e143c3da7f7dc9417e3e6972439e231729e4bd36cf253ae6974e938e9",
|
|
4608
|
+
"maxOpenInterestShort": "0xb217da759750053725b382bac604897e9ff8f8e2c371dc8a3df460638776f4cb",
|
|
4609
|
+
"minPositionImpactPoolAmount": "0x9a16991083fd437b4c10925baccb5601777ff287d2378b3577be0a1704f33127",
|
|
4610
|
+
"positionImpactPoolDistributionRate": "0x923b692220114f1fe99fb31acab300ea2a9ade4b5424437d918341ba7bd596d4",
|
|
4611
|
+
"borrowingFactorLong": "0x7fd453452ce8c3fb9d91817937051f5e3b9c704f70e235e37e2a38a0bb6f3add",
|
|
4612
|
+
"borrowingFactorShort": "0x993cc41430b1495193c44786dae4fddca8bc987d7f01634a852a0df9d937d945",
|
|
4613
|
+
"borrowingExponentFactorLong": "0x4cd338e051aeba5d0a467c2af58a4f5dc5204734c7a701b68ef20972bdf210e1",
|
|
4614
|
+
"borrowingExponentFactorShort": "0xa01443f0399cc09103c48d37454be156186388ece9d86186c92eee72a1b0bf4f",
|
|
4615
|
+
"fundingFactor": "0x6e527c9735848cb68d9868fb71f25662089b281c96ccc7a60fc15d02280769f0",
|
|
4616
|
+
"fundingExponentFactor": "0x724d31e0411d4e508f5776fe9b114dc7fc26871d56f8f20b7d24f4d08946f048",
|
|
4617
|
+
"fundingIncreaseFactorPerSecond": "0x2dd1e8a7c5e7f35a2037b281f32ae0c9ed8b580ca93f12bd47ce2a625bc7f7a2",
|
|
4618
|
+
"fundingDecreaseFactorPerSecond": "0x2fc918ac35584b9ffc33564a7ec4014f537bea5975ebe5c05c94b7b9fc27c955",
|
|
4619
|
+
"thresholdForStableFunding": "0xc500d3ac15e692d7cd61aa8e55a7a6d94bff929739a79cef2b214a5ca932ebcc",
|
|
4620
|
+
"thresholdForDecreaseFunding": "0x2c3a063d1bbae02e50afcb51fe7c67df7b846fb6a8ba7f34f11264f13e42ea2e",
|
|
4621
|
+
"minFundingFactorPerSecond": "0xbc03d2dc16cdde5146e0e911d3c189a3c1dd50a62bd002bd9204c6b9e63ed256",
|
|
4622
|
+
"maxFundingFactorPerSecond": "0xee834c43c0cf755e67ffa6e7b768764b494a836bbdce12a1a4f097eb152dae95",
|
|
4623
|
+
"maxPnlFactorForTradersLong": "0x548318e5ca63f4ec2e4a6e9bbe28de40c637787b9a495812ffec99838e4630df",
|
|
4624
|
+
"maxPnlFactorForTradersShort": "0xaf1613e97d5f393e3ee604108a3788616475670f1f04197fad4abf4261ad1d1b",
|
|
4625
|
+
"positionFeeFactorForPositiveImpact": "0xdeb4cf4c718552a7758a149c3fe2ce51bc1766094f05f58375a80a120db39c4a",
|
|
4626
|
+
"positionFeeFactorForNegativeImpact": "0xff92969b970823a7e917ff8c7c341e98cf98ca743ccce1f7f22bc2f3bb32bfc4",
|
|
4627
|
+
"positionImpactFactorPositive": "0xb7265148a953af3163464bb026391010b221ac00ea70c76e794db487e85fffc8",
|
|
4628
|
+
"positionImpactFactorNegative": "0xa54ea45edf9314474ec0afeb829af3239b1203876ffdb8e708386874e455604a",
|
|
4629
|
+
"maxPositionImpactFactorPositive": "0x8506da81af1e6ffae09575bd6579f6c9f2b36b78f9e469de3c117d7bc436554b",
|
|
4630
|
+
"maxPositionImpactFactorNegative": "0x0019da4ff4b882ad2992f2a68b37612355e53734211625d04179daf8ecd3484a",
|
|
4631
|
+
"maxPositionImpactFactorForLiquidations": "0xc8439eff03ba20bac9469b7399670162ffaa3c662e5794c5b84542efaa5a17c2",
|
|
4632
|
+
"minCollateralFactor": "0xbc7fc702ef6aaf9068cc0ed4435b3176394694d6737540ec0a9c001b764bfeff",
|
|
4633
|
+
"minCollateralFactorForOpenInterestLong": "0x0d6d3a35635ecae509baf03a4bb1d7cad458d3bfd2980159e523bea0d6ea36c4",
|
|
4634
|
+
"minCollateralFactorForOpenInterestShort": "0xf090c034ca785ab99c12d5ae9fbdc732314f990a1821df63431eda6c9df58a8d",
|
|
4635
|
+
"positionImpactExponentFactor": "0x6a7b0300adeb1279e72e90b8afd18a03b01d904a230a6116d1a3dce3bdda711c",
|
|
4636
|
+
"swapFeeFactorForPositiveImpact": "0xb90a30595a23271996d72f1b7bc8f2b216242596bd1f66ee8e23c7a899460ff6",
|
|
4637
|
+
"swapFeeFactorForNegativeImpact": "0xa7968fd876b4080577b846dbe984e4127995ca0e8bae0fd202ed896c64c7302f",
|
|
4638
|
+
"atomicSwapFeeFactor": "0x3684560ccb2c25d736f4092efa5f8dcd091fa6305a45791a05db22943ad479b0",
|
|
4639
|
+
"swapImpactFactorPositive": "0x92c1d29cd0ab89f325ad3b7e195fe5eaaa8f81e3f77e4e828a740710755ed9b4",
|
|
4640
|
+
"swapImpactFactorNegative": "0xda142786efd0995a5c792b7ab292fbe984014b7ff1b0c01b57c8702fbf092c70",
|
|
4641
|
+
"swapImpactExponentFactor": "0x609a7ba5e4455d511a629ef21e614f2ce5d45e87a21d2b58dc542ca9acf25dd5",
|
|
4642
|
+
"virtualMarketId": "0xcc54dd35697602e276f35d33885783e1b5046e3a2a18cfaac0859856e3f93098",
|
|
4643
|
+
"virtualLongTokenId": "0xd75a55ed2ecea1a03f2ca36bf769ceee55b3fcaa9c02f4cf863518485ed4918c",
|
|
4644
|
+
"virtualShortTokenId": "0xd75a55ed2ecea1a03f2ca36bf769ceee55b3fcaa9c02f4cf863518485ed4918c"
|
|
4439
4645
|
}
|
|
4440
4646
|
},
|
|
4441
4647
|
"43113": {
|
|
@@ -6276,6 +6482,57 @@
|
|
|
6276
6482
|
"virtualMarketId": "0xba31ac4f17f85fe1d4f13f98606a4d6795476499126baf4091154165b41ba171",
|
|
6277
6483
|
"virtualLongTokenId": "0xe7ad78f733831866f62141bd25f6d75da98498ad5783721686716dce5043e520",
|
|
6278
6484
|
"virtualShortTokenId": "0xb315f0a55a09b93c77ef9d370a2278b19027c88ccc7afd8b899b98bb033ffed6"
|
|
6485
|
+
},
|
|
6486
|
+
"0x94cE6F65188a92F297C7f0A5A7B3cAd9013450F8": {
|
|
6487
|
+
"isDisabled": "0x89bcc04282bcd72f274dbbf5c69a218672a3c992739968c54377a846aff11f7e",
|
|
6488
|
+
"maxLongPoolAmount": "0x3188f2dca2e5f3c71df00a93d8c8d3a1e3753fa8a879f3878f5243199a367b69",
|
|
6489
|
+
"maxShortPoolAmount": "0x4003a7a22a73accac8f7962d259bb5771ee8eb59a7112305b153df938bb2fde0",
|
|
6490
|
+
"maxLongPoolUsdForDeposit": "0x75e474aafee5000be82f183609236d05dbec67d943e7cfe146f47fea6d32842c",
|
|
6491
|
+
"maxShortPoolUsdForDeposit": "0x408f7129b2e243d5e659ea97d05c76d4eb0bdc25af291d63942b3725aa4e0e87",
|
|
6492
|
+
"longPoolAmountAdjustment": "0x7ad29bfa54753d283ca13c5eebb287ffa67770d4ac45ed5de90eb38e5fd24d2c",
|
|
6493
|
+
"shortPoolAmountAdjustment": "0x2c51e1c48aa7ee0183e9a810e17ad1a745f129c2716a3b4b7b6937069cdf784b",
|
|
6494
|
+
"reserveFactorLong": "0x23dbce0dd7be42904e2a91abaca8e1047216ba71fe638a21223be900e0eaebe8",
|
|
6495
|
+
"reserveFactorShort": "0xc441cd48637a20b188f4fc9ebea48594bed51eb8aef1257d4f6cd46dc5dc3e49",
|
|
6496
|
+
"openInterestReserveFactorLong": "0x83fb822355b440c8b1509f722733397ced67a7273e1276ced0880de3a363c6c9",
|
|
6497
|
+
"openInterestReserveFactorShort": "0x23b126e49498ac81568aab25e0b8c675c3884697fe4417f7c6ab704538db150b",
|
|
6498
|
+
"maxOpenInterestLong": "0xa6738e0e75f66e1351d631e3f59089f1dffac08e015fba80666731e3b8c3def0",
|
|
6499
|
+
"maxOpenInterestShort": "0xdb557209e9acb4504749b3a590dfa535e2440fb4c0d309f6ca8f5d04e26a86a8",
|
|
6500
|
+
"minPositionImpactPoolAmount": "0x399e109204381ae342b5a49e8bfab7786f7bf38efd6fe637cd7ecfddf52fff8b",
|
|
6501
|
+
"positionImpactPoolDistributionRate": "0x3e4892bbd57899e78063b0d9c3fbf64ac5a6877018fc2196492605665ed15276",
|
|
6502
|
+
"borrowingFactorLong": "0xe64c44664e4c47891d52e67037e0cc550dcbd7fef3b9d87e57e15052f8a9e702",
|
|
6503
|
+
"borrowingFactorShort": "0x8c30ddfc9f7b957106905e0e2c2a85d24b5b25237274482146be4998c22751ed",
|
|
6504
|
+
"borrowingExponentFactorLong": "0xfd68db6e367e61198ae7700e62c0f41d231c3e7690e8e76a30a0407ce339a503",
|
|
6505
|
+
"borrowingExponentFactorShort": "0xe19aa0a3089a9ca63bc36d717a3ca7796ba6f5e80a67f970018e6bc43f35e42e",
|
|
6506
|
+
"fundingFactor": "0x37f459ce8ceed4cbaa4fb55f66ca5a9952b8d05a6e8e406ed30591dc14fc8498",
|
|
6507
|
+
"fundingExponentFactor": "0xb888cf52dfb2a4dca622eb8849006ec145b580c20fddc269fe59bfbb178f526d",
|
|
6508
|
+
"fundingIncreaseFactorPerSecond": "0x0977b1b2de3552728bce1b0298653e7f6bdaf6426d7739d5829080caa8037847",
|
|
6509
|
+
"fundingDecreaseFactorPerSecond": "0x23f4c707e58772f50ffa63d78aae2344259eb4dacb87e3b136db2c2b1a8a8dba",
|
|
6510
|
+
"thresholdForStableFunding": "0x3d18f11bb3c78643b234340317555905fa7444104440dd9a60f8e572269a004a",
|
|
6511
|
+
"thresholdForDecreaseFunding": "0x431801f691f5a4e18605d819ec51de2ee97b030251b2a9e96a3653848389467a",
|
|
6512
|
+
"minFundingFactorPerSecond": "0x83bef73f02089f667467971e42c4ab6c0b86b76b6770ad5bc89eee7eeb89917e",
|
|
6513
|
+
"maxFundingFactorPerSecond": "0x3d879373a6dbc474117188678af6b54c7b754d7349a778a272952be0055cd801",
|
|
6514
|
+
"maxPnlFactorForTradersLong": "0x1d4b3905266555bf208c7e91f0df10c6e90f04866f4c12524c458ddb8e46e544",
|
|
6515
|
+
"maxPnlFactorForTradersShort": "0x8800492fed366a35684b184acff0e9017122a2f1f170d0c02b8687f895deede7",
|
|
6516
|
+
"positionFeeFactorForPositiveImpact": "0xa50c13baccb97ab048c4ead7cd94dfe2695883e1d3a197cf448032ea3c93a375",
|
|
6517
|
+
"positionFeeFactorForNegativeImpact": "0xe4f900a5f09daf553661a9bd0fdae509b97500b0866865182ade55accc608e68",
|
|
6518
|
+
"positionImpactFactorPositive": "0xa6e9f0c5c0b0d06ae6c7277beb6df5fb688e0f4283e201acd07822cf2af06ceb",
|
|
6519
|
+
"positionImpactFactorNegative": "0x52b0b5ca35497485a83e29a44f88bf5c84e307f6279e296af1a81f24d5a108c3",
|
|
6520
|
+
"maxPositionImpactFactorPositive": "0x5d467c9f907e36c18b5409da7f1644855e816266fdc8a8d4a2675737253055b0",
|
|
6521
|
+
"maxPositionImpactFactorNegative": "0x682266750b3120e1ef54690fb33594543a790242cf65f4fa4acb058416de4e08",
|
|
6522
|
+
"maxPositionImpactFactorForLiquidations": "0x6b484552e98fb266ce6eadc47c4f48f3749cd5d2624591a4c6815c55e6d8121e",
|
|
6523
|
+
"minCollateralFactor": "0x1adace9e32dddc011e401ada4d5ee58e76ceb2fac5990dac9ff8d1c8d1666049",
|
|
6524
|
+
"minCollateralFactorForOpenInterestLong": "0x522166a0e6ac5a421bc8346f41d2ffbeace0d26930dbd211138e25646df6b4f0",
|
|
6525
|
+
"minCollateralFactorForOpenInterestShort": "0x7ddb336108bda726fb332947360b0a11f8c33b983801dbbdddd318a9ab55f11d",
|
|
6526
|
+
"positionImpactExponentFactor": "0xad96faefa227e00036c010d351a3ebbcb3ec721b49800ef99607f862b21c281f",
|
|
6527
|
+
"swapFeeFactorForPositiveImpact": "0xf1433913b0de4e70f155241c318905ddf54f866c643995a74fc783abba5b5b0c",
|
|
6528
|
+
"swapFeeFactorForNegativeImpact": "0x072e62bab56c7ea4e91c5ecf1e66732e65b6a95d193631133a001763b30943c8",
|
|
6529
|
+
"atomicSwapFeeFactor": "0xd44cce6933c88884874d99321734dd2823da1495a6bea0020272a18028cf4b9e",
|
|
6530
|
+
"swapImpactFactorPositive": "0xa9bdf476dc12be080747e58c4aa34606357476853c4dc0e1d805569a12fb9bc0",
|
|
6531
|
+
"swapImpactFactorNegative": "0xe62da899f3cd8b0bb237665e81fa32f29cf80a4952c3756a33a3b8fe15c27023",
|
|
6532
|
+
"swapImpactExponentFactor": "0x049d9cff2da901aca1737a4881a54b31c685dc4235e9967f04a5dc4e7864a27f",
|
|
6533
|
+
"virtualMarketId": "0x01ac8acc7ef4e6616b090638328c05814c2ce047f4f286659cca62cef1b6ea7d",
|
|
6534
|
+
"virtualLongTokenId": "0xe7ad78f733831866f62141bd25f6d75da98498ad5783721686716dce5043e520",
|
|
6535
|
+
"virtualShortTokenId": "0xb315f0a55a09b93c77ef9d370a2278b19027c88ccc7afd8b899b98bb033ffed6"
|
|
6279
6536
|
}
|
|
6280
6537
|
}
|
|
6281
6538
|
}
|
|
@@ -1,4 +1,36 @@
|
|
|
1
1
|
{
|
|
2
|
+
"3637": {
|
|
3
|
+
"0x6682BB60590a045A956541B1433f016Ed22E361d": {
|
|
4
|
+
"longPoolAmount": "0x69a00ee30c22f748c1aa54b8f77a5b786c365e817497322cea18cba5e12f8446",
|
|
5
|
+
"shortPoolAmount": "0x69a00ee30c22f748c1aa54b8f77a5b786c365e817497322cea18cba5e12f8446",
|
|
6
|
+
"positionImpactPoolAmount": "0xe72b2da1beeaa2cde5f5861b60f1adb27ed581864c6e39ecb37f8794e03e174d",
|
|
7
|
+
"swapImpactPoolAmountLong": "0x02603eac1d091c38978f864769361f985169348da32b431d4c0ee7c8559fddc1",
|
|
8
|
+
"swapImpactPoolAmountShort": "0x02603eac1d091c38978f864769361f985169348da32b431d4c0ee7c8559fddc1",
|
|
9
|
+
"longInterestUsingLongToken": "0x214be68b117ab3421e08bccb2521f805f76ae486dc92f1464abb3d7ed9ce907c",
|
|
10
|
+
"longInterestUsingShortToken": "0x214be68b117ab3421e08bccb2521f805f76ae486dc92f1464abb3d7ed9ce907c",
|
|
11
|
+
"shortInterestUsingLongToken": "0x44a1c0cc7e5e724918f78b1ae77c240bc1dec8098ddefd9fb15dfb4e06f58b39",
|
|
12
|
+
"shortInterestUsingShortToken": "0x44a1c0cc7e5e724918f78b1ae77c240bc1dec8098ddefd9fb15dfb4e06f58b39",
|
|
13
|
+
"longInterestInTokensUsingLongToken": "0xddc7e3aefe087c9ff970def36636c36cefa45ea75bf9d99c2747b921d46e3936",
|
|
14
|
+
"longInterestInTokensUsingShortToken": "0xddc7e3aefe087c9ff970def36636c36cefa45ea75bf9d99c2747b921d46e3936",
|
|
15
|
+
"shortInterestInTokensUsingLongToken": "0x85a20a5a323d16c5f5ecbc2d6352b4f47dc7921eef88e4cc987b3c8022e6a87f",
|
|
16
|
+
"shortInterestInTokensUsingShortToken": "0x85a20a5a323d16c5f5ecbc2d6352b4f47dc7921eef88e4cc987b3c8022e6a87f"
|
|
17
|
+
},
|
|
18
|
+
"0x2f95a2529328E427d3204555F164B1102086690E": {
|
|
19
|
+
"longPoolAmount": "0xecf9656e2b727f8d13f37e55d2400a942dccac9d6381148f77d902fcbe2cf7ee",
|
|
20
|
+
"shortPoolAmount": "0xcfec2d18f35126352a2ce695309d775bbee4fafefe3413f7042939145a8b0573",
|
|
21
|
+
"positionImpactPoolAmount": "0xf6f96ba2726dd8a85b2e9405309d1d848df3d96880d59321dcc218ef8d980668",
|
|
22
|
+
"swapImpactPoolAmountLong": "0x357c18aaf9d45a361d90863904ade24e17fb77c64a416ece27086f31a0d8b054",
|
|
23
|
+
"swapImpactPoolAmountShort": "0xbbb05a1d798d61588b2c44b94b16386d41137dbe373c187371d86d997a9147e1",
|
|
24
|
+
"longInterestUsingLongToken": "0x129ec5ddb1853ff59fe335e75bd2fcfa6bbb9269fdc499282cf18e2f4d5964c9",
|
|
25
|
+
"longInterestUsingShortToken": "0x3f654d7efcfe4f6cb7c83aa01e873c16e5af513cc4f87adf6eed255042a258fc",
|
|
26
|
+
"shortInterestUsingLongToken": "0x1f410105f8be87f75b58b9cdee8d74667aced7496bb99a82f07f68db7ed1beb4",
|
|
27
|
+
"shortInterestUsingShortToken": "0x51765c7340efd23bef0fef20734bbc293d17b324540a253b57bd0337038c7668",
|
|
28
|
+
"longInterestInTokensUsingLongToken": "0x7f172a05ae40ac360e65ac522e8714499e4695d2250d219b96a6cf33fdbc083b",
|
|
29
|
+
"longInterestInTokensUsingShortToken": "0xc34e82056451cf4f589cdb5609780092eef55a11937ecb6b97120c6425979ea4",
|
|
30
|
+
"shortInterestInTokensUsingLongToken": "0xdfc2472d4b9b2c6f4b2754c1ade2bef5e4fe747aa61d86922f62b34d4f9b09bb",
|
|
31
|
+
"shortInterestInTokensUsingShortToken": "0x3eff00ec29f463c99b6b378801ecb7b167366433326231573f74fa7ae20bbe20"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
2
34
|
"42161": {
|
|
3
35
|
"0x47c031236e19d024b42f8AE6780E44A573170703": {
|
|
4
36
|
"longPoolAmount": "0xc97d6ba9e3cbf19c2bdb3eb671109e97cbbb0c4684ac5ea9b34fffbf3fff84fb",
|
|
@@ -1304,6 +1336,36 @@
|
|
|
1304
1336
|
"longInterestInTokensUsingShortToken": "0x270eaf7ded63283fe668107dae6e74b2f65611f2ce8ac93f7587aa42690e726a",
|
|
1305
1337
|
"shortInterestInTokensUsingLongToken": "0xba25770c0d2c19cb82136ca008f7f59e3f0a6273159a121852ef001e7fcf5cd4",
|
|
1306
1338
|
"shortInterestInTokensUsingShortToken": "0x434a95fd250b7b15239714a1a92599a7706c946310e7cc999a66202318a3b9d5"
|
|
1339
|
+
},
|
|
1340
|
+
"0x4C0Bb704529Fa49A26bD854802d70206982c6f1B": {
|
|
1341
|
+
"longPoolAmount": "0xc996bc9829549ec431dc6686d166b850c834ca57d6d13eef76878eb034346f49",
|
|
1342
|
+
"shortPoolAmount": "0x73576063b41f5bfab75ba59775beae18756d9a05d1934205cd5c1c8ba136c37f",
|
|
1343
|
+
"positionImpactPoolAmount": "0x336c51bf0ded13ba7909d73214583e37c9b26efea4938aceda45c44e8a3daf11",
|
|
1344
|
+
"swapImpactPoolAmountLong": "0x82459c6efac2e94161ec6d0598601585325eef90f2af9881301f2278fee5099f",
|
|
1345
|
+
"swapImpactPoolAmountShort": "0x9f0dbc64c99da086cb864d7e695f4e7f266ca1440f08ec043ff6ed3665184d81",
|
|
1346
|
+
"longInterestUsingLongToken": "0x7994ea7561117141e087e7af8aa01cf4051b35e85120e52501d1e5796828d4b9",
|
|
1347
|
+
"longInterestUsingShortToken": "0xb5d3a077dd57f1759a6d816686fbf4107a01d451800b80f4ac2355fa60c2310f",
|
|
1348
|
+
"shortInterestUsingLongToken": "0xb28ff06b21c5927f46a4156fee083f0c7441fd5c53971d47344678e9ef9cf0ae",
|
|
1349
|
+
"shortInterestUsingShortToken": "0xf2729a78f904139a3e33a1278c11af17d3b46e5f5ca6223c397814f052e5d019",
|
|
1350
|
+
"longInterestInTokensUsingLongToken": "0xaeeeb61d7d9544320d5c9223f4d671475bfb227124129ec581bdd1c9427961b0",
|
|
1351
|
+
"longInterestInTokensUsingShortToken": "0x3f8f433c8c804ca8bc6c5c383e9201516559ee81f67de93db9ce8b2c2ee2403b",
|
|
1352
|
+
"shortInterestInTokensUsingLongToken": "0xf8b11af0ad2d1ab5f63791944792e3d3c96e5973b7f003dd86bd4314a25dcda9",
|
|
1353
|
+
"shortInterestInTokensUsingShortToken": "0x4ed2301ae42565af0bc559a51c13c60223d0159f349ccc0efc2f080d3a467298"
|
|
1354
|
+
},
|
|
1355
|
+
"0x672fEA44f4583DdaD620d60C1Ac31021F47558Cb": {
|
|
1356
|
+
"longPoolAmount": "0xd88d77f52c0605af9087b8ac011f7ce71651f30489699ab476eaaf49fe3169be",
|
|
1357
|
+
"shortPoolAmount": "0xd88d77f52c0605af9087b8ac011f7ce71651f30489699ab476eaaf49fe3169be",
|
|
1358
|
+
"positionImpactPoolAmount": "0xc7f1c4797976d4aa2d9af5b9b4bac9af3820775e22a642a5f882d0040e30d7e4",
|
|
1359
|
+
"swapImpactPoolAmountLong": "0x10f2963890a8ae4e833e0f611420b6c41136c2ff83a764654cddfcb185ce39ec",
|
|
1360
|
+
"swapImpactPoolAmountShort": "0x10f2963890a8ae4e833e0f611420b6c41136c2ff83a764654cddfcb185ce39ec",
|
|
1361
|
+
"longInterestUsingLongToken": "0x5ebd54efa4eec2c74d89f7fdbbad947ed4ade7a369f87b940aa4c455a8140f8f",
|
|
1362
|
+
"longInterestUsingShortToken": "0x5ebd54efa4eec2c74d89f7fdbbad947ed4ade7a369f87b940aa4c455a8140f8f",
|
|
1363
|
+
"shortInterestUsingLongToken": "0x300b925f106354291a9776ac37a374aa7149da134418f5f8bdc2b59739fa7829",
|
|
1364
|
+
"shortInterestUsingShortToken": "0x300b925f106354291a9776ac37a374aa7149da134418f5f8bdc2b59739fa7829",
|
|
1365
|
+
"longInterestInTokensUsingLongToken": "0x8ff57a652cd892eade9757b138549656bc9f8dc00d9eeeb3fc4f9bd6f2cc2bd4",
|
|
1366
|
+
"longInterestInTokensUsingShortToken": "0x8ff57a652cd892eade9757b138549656bc9f8dc00d9eeeb3fc4f9bd6f2cc2bd4",
|
|
1367
|
+
"shortInterestInTokensUsingLongToken": "0x81b4fc3022e9cb293b10549fa7ff90ca91abec03ca725ded69a4b35c09858ddf",
|
|
1368
|
+
"shortInterestInTokensUsingShortToken": "0x81b4fc3022e9cb293b10549fa7ff90ca91abec03ca725ded69a4b35c09858ddf"
|
|
1307
1369
|
}
|
|
1308
1370
|
},
|
|
1309
1371
|
"43113": {
|
|
@@ -1848,6 +1910,21 @@
|
|
|
1848
1910
|
"longInterestInTokensUsingShortToken": "0xaf01e4f4a7b0884f217695d374acc70a5904db6d460bc5c5d31591557300f689",
|
|
1849
1911
|
"shortInterestInTokensUsingLongToken": "0x562b9a09cca894aa54f6d4b17a72fe7e9c4ddc4686516dcfd15a597f3eec7ee3",
|
|
1850
1912
|
"shortInterestInTokensUsingShortToken": "0xc563cc005593b275e1c8e42f993a0b8df38c5d1634f6867ece778bea7be36823"
|
|
1913
|
+
},
|
|
1914
|
+
"0x94cE6F65188a92F297C7f0A5A7B3cAd9013450F8": {
|
|
1915
|
+
"longPoolAmount": "0x0cfc5b6a91f7d200cae8e17385f5c1fd9b500ba6919cbf2e8cec407444011762",
|
|
1916
|
+
"shortPoolAmount": "0xb6914e1bc1f98f7ccb5bd8c45a6f66837aaa99b2dd99cce7445612f34d61159b",
|
|
1917
|
+
"positionImpactPoolAmount": "0xdee53ff0bba09c25e3b7b789306f2f0748efb7192065f1e8f7048e202dd961a6",
|
|
1918
|
+
"swapImpactPoolAmountLong": "0x80a076262b69e244f998a5e5223c9be6a98454c49f5035e917e980745aedb3c1",
|
|
1919
|
+
"swapImpactPoolAmountShort": "0x0ef33099e30c494475f3538713b9d743ef7d10110336e09a076dba073c1d50c2",
|
|
1920
|
+
"longInterestUsingLongToken": "0xb7bd39bc06702cd6a32bb1f032526ef3eccbfe167f07f613fe092b0407dfbc2f",
|
|
1921
|
+
"longInterestUsingShortToken": "0xa4f7b789a5352e3e7647a57749c1c429c988f01e0418f452cff7ffac89a1ab31",
|
|
1922
|
+
"shortInterestUsingLongToken": "0xc535618ec842c32b50e86466a8d22286ad738227af317ce4d50dcb098780b650",
|
|
1923
|
+
"shortInterestUsingShortToken": "0x4de2b3fa042fd5b54999ab452e6fb1080a078f2ccf6e19c933ad1414defb3730",
|
|
1924
|
+
"longInterestInTokensUsingLongToken": "0x3c9e0baac56e2818c4a3eb98924f340b2f65d5fec4afe3238d2744be64c62406",
|
|
1925
|
+
"longInterestInTokensUsingShortToken": "0xd0ce682e37dcac3e21bfb60546f612310ddc6d55cde3010a03f39c8254c58c9e",
|
|
1926
|
+
"shortInterestInTokensUsingLongToken": "0xe4a0a086a57e5ebf93c02996173518a25df8280b48bfaab22ddad851d5d5f279",
|
|
1927
|
+
"shortInterestInTokensUsingShortToken": "0x459afc07ae83faa216fe9bcbbb75a032a0557d866842476547540f230077ab76"
|
|
1851
1928
|
}
|
|
1852
1929
|
}
|
|
1853
1930
|
}
|
|
@@ -339,6 +339,75 @@ export var CollectedFeesInfoOrderByInput;
|
|
|
339
339
|
CollectedFeesInfoOrderByInput["timestampGroup_DESC_NULLS_FIRST"] = "timestampGroup_DESC_NULLS_FIRST";
|
|
340
340
|
CollectedFeesInfoOrderByInput["timestampGroup_DESC_NULLS_LAST"] = "timestampGroup_DESC_NULLS_LAST";
|
|
341
341
|
})(CollectedFeesInfoOrderByInput || (CollectedFeesInfoOrderByInput = {}));
|
|
342
|
+
export var CumulativePnlOrderByInput;
|
|
343
|
+
(function (CumulativePnlOrderByInput) {
|
|
344
|
+
CumulativePnlOrderByInput["address_ASC"] = "address_ASC";
|
|
345
|
+
CumulativePnlOrderByInput["address_ASC_NULLS_FIRST"] = "address_ASC_NULLS_FIRST";
|
|
346
|
+
CumulativePnlOrderByInput["address_ASC_NULLS_LAST"] = "address_ASC_NULLS_LAST";
|
|
347
|
+
CumulativePnlOrderByInput["address_DESC"] = "address_DESC";
|
|
348
|
+
CumulativePnlOrderByInput["address_DESC_NULLS_FIRST"] = "address_DESC_NULLS_FIRST";
|
|
349
|
+
CumulativePnlOrderByInput["address_DESC_NULLS_LAST"] = "address_DESC_NULLS_LAST";
|
|
350
|
+
CumulativePnlOrderByInput["cumulativeRealizedPnlLong_ASC"] = "cumulativeRealizedPnlLong_ASC";
|
|
351
|
+
CumulativePnlOrderByInput["cumulativeRealizedPnlLong_ASC_NULLS_FIRST"] = "cumulativeRealizedPnlLong_ASC_NULLS_FIRST";
|
|
352
|
+
CumulativePnlOrderByInput["cumulativeRealizedPnlLong_ASC_NULLS_LAST"] = "cumulativeRealizedPnlLong_ASC_NULLS_LAST";
|
|
353
|
+
CumulativePnlOrderByInput["cumulativeRealizedPnlLong_DESC"] = "cumulativeRealizedPnlLong_DESC";
|
|
354
|
+
CumulativePnlOrderByInput["cumulativeRealizedPnlLong_DESC_NULLS_FIRST"] = "cumulativeRealizedPnlLong_DESC_NULLS_FIRST";
|
|
355
|
+
CumulativePnlOrderByInput["cumulativeRealizedPnlLong_DESC_NULLS_LAST"] = "cumulativeRealizedPnlLong_DESC_NULLS_LAST";
|
|
356
|
+
CumulativePnlOrderByInput["cumulativeRealizedPnlShort_ASC"] = "cumulativeRealizedPnlShort_ASC";
|
|
357
|
+
CumulativePnlOrderByInput["cumulativeRealizedPnlShort_ASC_NULLS_FIRST"] = "cumulativeRealizedPnlShort_ASC_NULLS_FIRST";
|
|
358
|
+
CumulativePnlOrderByInput["cumulativeRealizedPnlShort_ASC_NULLS_LAST"] = "cumulativeRealizedPnlShort_ASC_NULLS_LAST";
|
|
359
|
+
CumulativePnlOrderByInput["cumulativeRealizedPnlShort_DESC"] = "cumulativeRealizedPnlShort_DESC";
|
|
360
|
+
CumulativePnlOrderByInput["cumulativeRealizedPnlShort_DESC_NULLS_FIRST"] = "cumulativeRealizedPnlShort_DESC_NULLS_FIRST";
|
|
361
|
+
CumulativePnlOrderByInput["cumulativeRealizedPnlShort_DESC_NULLS_LAST"] = "cumulativeRealizedPnlShort_DESC_NULLS_LAST";
|
|
362
|
+
CumulativePnlOrderByInput["cumulativeUnrealizedPnlLong_ASC"] = "cumulativeUnrealizedPnlLong_ASC";
|
|
363
|
+
CumulativePnlOrderByInput["cumulativeUnrealizedPnlLong_ASC_NULLS_FIRST"] = "cumulativeUnrealizedPnlLong_ASC_NULLS_FIRST";
|
|
364
|
+
CumulativePnlOrderByInput["cumulativeUnrealizedPnlLong_ASC_NULLS_LAST"] = "cumulativeUnrealizedPnlLong_ASC_NULLS_LAST";
|
|
365
|
+
CumulativePnlOrderByInput["cumulativeUnrealizedPnlLong_DESC"] = "cumulativeUnrealizedPnlLong_DESC";
|
|
366
|
+
CumulativePnlOrderByInput["cumulativeUnrealizedPnlLong_DESC_NULLS_FIRST"] = "cumulativeUnrealizedPnlLong_DESC_NULLS_FIRST";
|
|
367
|
+
CumulativePnlOrderByInput["cumulativeUnrealizedPnlLong_DESC_NULLS_LAST"] = "cumulativeUnrealizedPnlLong_DESC_NULLS_LAST";
|
|
368
|
+
CumulativePnlOrderByInput["cumulativeUnrealizedPnlShort_ASC"] = "cumulativeUnrealizedPnlShort_ASC";
|
|
369
|
+
CumulativePnlOrderByInput["cumulativeUnrealizedPnlShort_ASC_NULLS_FIRST"] = "cumulativeUnrealizedPnlShort_ASC_NULLS_FIRST";
|
|
370
|
+
CumulativePnlOrderByInput["cumulativeUnrealizedPnlShort_ASC_NULLS_LAST"] = "cumulativeUnrealizedPnlShort_ASC_NULLS_LAST";
|
|
371
|
+
CumulativePnlOrderByInput["cumulativeUnrealizedPnlShort_DESC"] = "cumulativeUnrealizedPnlShort_DESC";
|
|
372
|
+
CumulativePnlOrderByInput["cumulativeUnrealizedPnlShort_DESC_NULLS_FIRST"] = "cumulativeUnrealizedPnlShort_DESC_NULLS_FIRST";
|
|
373
|
+
CumulativePnlOrderByInput["cumulativeUnrealizedPnlShort_DESC_NULLS_LAST"] = "cumulativeUnrealizedPnlShort_DESC_NULLS_LAST";
|
|
374
|
+
CumulativePnlOrderByInput["entityType_ASC"] = "entityType_ASC";
|
|
375
|
+
CumulativePnlOrderByInput["entityType_ASC_NULLS_FIRST"] = "entityType_ASC_NULLS_FIRST";
|
|
376
|
+
CumulativePnlOrderByInput["entityType_ASC_NULLS_LAST"] = "entityType_ASC_NULLS_LAST";
|
|
377
|
+
CumulativePnlOrderByInput["entityType_DESC"] = "entityType_DESC";
|
|
378
|
+
CumulativePnlOrderByInput["entityType_DESC_NULLS_FIRST"] = "entityType_DESC_NULLS_FIRST";
|
|
379
|
+
CumulativePnlOrderByInput["entityType_DESC_NULLS_LAST"] = "entityType_DESC_NULLS_LAST";
|
|
380
|
+
CumulativePnlOrderByInput["id_ASC"] = "id_ASC";
|
|
381
|
+
CumulativePnlOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
|
|
382
|
+
CumulativePnlOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
|
|
383
|
+
CumulativePnlOrderByInput["id_DESC"] = "id_DESC";
|
|
384
|
+
CumulativePnlOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
|
|
385
|
+
CumulativePnlOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
|
|
386
|
+
CumulativePnlOrderByInput["isSnapshot_ASC"] = "isSnapshot_ASC";
|
|
387
|
+
CumulativePnlOrderByInput["isSnapshot_ASC_NULLS_FIRST"] = "isSnapshot_ASC_NULLS_FIRST";
|
|
388
|
+
CumulativePnlOrderByInput["isSnapshot_ASC_NULLS_LAST"] = "isSnapshot_ASC_NULLS_LAST";
|
|
389
|
+
CumulativePnlOrderByInput["isSnapshot_DESC"] = "isSnapshot_DESC";
|
|
390
|
+
CumulativePnlOrderByInput["isSnapshot_DESC_NULLS_FIRST"] = "isSnapshot_DESC_NULLS_FIRST";
|
|
391
|
+
CumulativePnlOrderByInput["isSnapshot_DESC_NULLS_LAST"] = "isSnapshot_DESC_NULLS_LAST";
|
|
392
|
+
CumulativePnlOrderByInput["lastUnrealizedPnlLong_ASC"] = "lastUnrealizedPnlLong_ASC";
|
|
393
|
+
CumulativePnlOrderByInput["lastUnrealizedPnlLong_ASC_NULLS_FIRST"] = "lastUnrealizedPnlLong_ASC_NULLS_FIRST";
|
|
394
|
+
CumulativePnlOrderByInput["lastUnrealizedPnlLong_ASC_NULLS_LAST"] = "lastUnrealizedPnlLong_ASC_NULLS_LAST";
|
|
395
|
+
CumulativePnlOrderByInput["lastUnrealizedPnlLong_DESC"] = "lastUnrealizedPnlLong_DESC";
|
|
396
|
+
CumulativePnlOrderByInput["lastUnrealizedPnlLong_DESC_NULLS_FIRST"] = "lastUnrealizedPnlLong_DESC_NULLS_FIRST";
|
|
397
|
+
CumulativePnlOrderByInput["lastUnrealizedPnlLong_DESC_NULLS_LAST"] = "lastUnrealizedPnlLong_DESC_NULLS_LAST";
|
|
398
|
+
CumulativePnlOrderByInput["lastUnrealizedPnlShort_ASC"] = "lastUnrealizedPnlShort_ASC";
|
|
399
|
+
CumulativePnlOrderByInput["lastUnrealizedPnlShort_ASC_NULLS_FIRST"] = "lastUnrealizedPnlShort_ASC_NULLS_FIRST";
|
|
400
|
+
CumulativePnlOrderByInput["lastUnrealizedPnlShort_ASC_NULLS_LAST"] = "lastUnrealizedPnlShort_ASC_NULLS_LAST";
|
|
401
|
+
CumulativePnlOrderByInput["lastUnrealizedPnlShort_DESC"] = "lastUnrealizedPnlShort_DESC";
|
|
402
|
+
CumulativePnlOrderByInput["lastUnrealizedPnlShort_DESC_NULLS_FIRST"] = "lastUnrealizedPnlShort_DESC_NULLS_FIRST";
|
|
403
|
+
CumulativePnlOrderByInput["lastUnrealizedPnlShort_DESC_NULLS_LAST"] = "lastUnrealizedPnlShort_DESC_NULLS_LAST";
|
|
404
|
+
CumulativePnlOrderByInput["snapshotTimestamp_ASC"] = "snapshotTimestamp_ASC";
|
|
405
|
+
CumulativePnlOrderByInput["snapshotTimestamp_ASC_NULLS_FIRST"] = "snapshotTimestamp_ASC_NULLS_FIRST";
|
|
406
|
+
CumulativePnlOrderByInput["snapshotTimestamp_ASC_NULLS_LAST"] = "snapshotTimestamp_ASC_NULLS_LAST";
|
|
407
|
+
CumulativePnlOrderByInput["snapshotTimestamp_DESC"] = "snapshotTimestamp_DESC";
|
|
408
|
+
CumulativePnlOrderByInput["snapshotTimestamp_DESC_NULLS_FIRST"] = "snapshotTimestamp_DESC_NULLS_FIRST";
|
|
409
|
+
CumulativePnlOrderByInput["snapshotTimestamp_DESC_NULLS_LAST"] = "snapshotTimestamp_DESC_NULLS_LAST";
|
|
410
|
+
})(CumulativePnlOrderByInput || (CumulativePnlOrderByInput = {}));
|
|
342
411
|
export var CumulativePoolValueOrderByInput;
|
|
343
412
|
(function (CumulativePoolValueOrderByInput) {
|
|
344
413
|
CumulativePoolValueOrderByInput["address_ASC"] = "address_ASC";
|
|
@@ -1318,6 +1387,39 @@ export var OrderStatus;
|
|
|
1318
1387
|
OrderStatus["Executed"] = "Executed";
|
|
1319
1388
|
OrderStatus["Frozen"] = "Frozen";
|
|
1320
1389
|
})(OrderStatus || (OrderStatus = {}));
|
|
1390
|
+
export var PnlAprSnapshotOrderByInput;
|
|
1391
|
+
(function (PnlAprSnapshotOrderByInput) {
|
|
1392
|
+
PnlAprSnapshotOrderByInput["address_ASC"] = "address_ASC";
|
|
1393
|
+
PnlAprSnapshotOrderByInput["address_ASC_NULLS_FIRST"] = "address_ASC_NULLS_FIRST";
|
|
1394
|
+
PnlAprSnapshotOrderByInput["address_ASC_NULLS_LAST"] = "address_ASC_NULLS_LAST";
|
|
1395
|
+
PnlAprSnapshotOrderByInput["address_DESC"] = "address_DESC";
|
|
1396
|
+
PnlAprSnapshotOrderByInput["address_DESC_NULLS_FIRST"] = "address_DESC_NULLS_FIRST";
|
|
1397
|
+
PnlAprSnapshotOrderByInput["address_DESC_NULLS_LAST"] = "address_DESC_NULLS_LAST";
|
|
1398
|
+
PnlAprSnapshotOrderByInput["apr_ASC"] = "apr_ASC";
|
|
1399
|
+
PnlAprSnapshotOrderByInput["apr_ASC_NULLS_FIRST"] = "apr_ASC_NULLS_FIRST";
|
|
1400
|
+
PnlAprSnapshotOrderByInput["apr_ASC_NULLS_LAST"] = "apr_ASC_NULLS_LAST";
|
|
1401
|
+
PnlAprSnapshotOrderByInput["apr_DESC"] = "apr_DESC";
|
|
1402
|
+
PnlAprSnapshotOrderByInput["apr_DESC_NULLS_FIRST"] = "apr_DESC_NULLS_FIRST";
|
|
1403
|
+
PnlAprSnapshotOrderByInput["apr_DESC_NULLS_LAST"] = "apr_DESC_NULLS_LAST";
|
|
1404
|
+
PnlAprSnapshotOrderByInput["entityType_ASC"] = "entityType_ASC";
|
|
1405
|
+
PnlAprSnapshotOrderByInput["entityType_ASC_NULLS_FIRST"] = "entityType_ASC_NULLS_FIRST";
|
|
1406
|
+
PnlAprSnapshotOrderByInput["entityType_ASC_NULLS_LAST"] = "entityType_ASC_NULLS_LAST";
|
|
1407
|
+
PnlAprSnapshotOrderByInput["entityType_DESC"] = "entityType_DESC";
|
|
1408
|
+
PnlAprSnapshotOrderByInput["entityType_DESC_NULLS_FIRST"] = "entityType_DESC_NULLS_FIRST";
|
|
1409
|
+
PnlAprSnapshotOrderByInput["entityType_DESC_NULLS_LAST"] = "entityType_DESC_NULLS_LAST";
|
|
1410
|
+
PnlAprSnapshotOrderByInput["id_ASC"] = "id_ASC";
|
|
1411
|
+
PnlAprSnapshotOrderByInput["id_ASC_NULLS_FIRST"] = "id_ASC_NULLS_FIRST";
|
|
1412
|
+
PnlAprSnapshotOrderByInput["id_ASC_NULLS_LAST"] = "id_ASC_NULLS_LAST";
|
|
1413
|
+
PnlAprSnapshotOrderByInput["id_DESC"] = "id_DESC";
|
|
1414
|
+
PnlAprSnapshotOrderByInput["id_DESC_NULLS_FIRST"] = "id_DESC_NULLS_FIRST";
|
|
1415
|
+
PnlAprSnapshotOrderByInput["id_DESC_NULLS_LAST"] = "id_DESC_NULLS_LAST";
|
|
1416
|
+
PnlAprSnapshotOrderByInput["snapshotTimestamp_ASC"] = "snapshotTimestamp_ASC";
|
|
1417
|
+
PnlAprSnapshotOrderByInput["snapshotTimestamp_ASC_NULLS_FIRST"] = "snapshotTimestamp_ASC_NULLS_FIRST";
|
|
1418
|
+
PnlAprSnapshotOrderByInput["snapshotTimestamp_ASC_NULLS_LAST"] = "snapshotTimestamp_ASC_NULLS_LAST";
|
|
1419
|
+
PnlAprSnapshotOrderByInput["snapshotTimestamp_DESC"] = "snapshotTimestamp_DESC";
|
|
1420
|
+
PnlAprSnapshotOrderByInput["snapshotTimestamp_DESC_NULLS_FIRST"] = "snapshotTimestamp_DESC_NULLS_FIRST";
|
|
1421
|
+
PnlAprSnapshotOrderByInput["snapshotTimestamp_DESC_NULLS_LAST"] = "snapshotTimestamp_DESC_NULLS_LAST";
|
|
1422
|
+
})(PnlAprSnapshotOrderByInput || (PnlAprSnapshotOrderByInput = {}));
|
|
1321
1423
|
export var PositionChangeOrderByInput;
|
|
1322
1424
|
(function (PositionChangeOrderByInput) {
|
|
1323
1425
|
PositionChangeOrderByInput["account_ASC"] = "account_ASC";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describe, expect, it } from "vitest";
|
|
2
2
|
import { BASIS_POINTS_DIVISOR_BIGINT, USD_DECIMALS } from "../../configs/factors";
|
|
3
3
|
const ONE_USD = 1000000000000000000000000000000n;
|
|
4
|
-
import { applyFactor, basisPointsToFloat, bigintToNumber, BN_NEGATIVE_ONE, BN_ONE, BN_ZERO, expandDecimals, formatAmount, formatAmountHuman, formatBalanceAmount,
|
|
4
|
+
import { applyFactor, basisPointsToFloat, bigintToNumber, BN_NEGATIVE_ONE, BN_ONE, BN_ZERO, expandDecimals, formatAmount, formatAmountHuman, formatBalanceAmount, formatFactor, formatPercentage, formatUsdPrice, getBasisPoints, numberToBigint, PERCENT_PRECISION_DECIMALS, PRECISION, PRECISION_DECIMALS, roundWithDecimals, roundUpMagnitudeDivision, toBigNumberWithDecimals, } from "../numbers";
|
|
5
5
|
describe("numbers utils", () => {
|
|
6
6
|
it("constants", () => {
|
|
7
7
|
// Just to confirm they exist and have no unexpected changes
|
|
@@ -232,7 +232,7 @@ describe("formatBalanceAmount", () => {
|
|
|
232
232
|
it("should display balance amount", () => {
|
|
233
233
|
expect(formatBalanceAmount(ONE_USD * 1000n, USD_DECIMALS)).toBe("1,000.0000");
|
|
234
234
|
expect(formatBalanceAmount(0n, USD_DECIMALS)).toBe("-");
|
|
235
|
-
expect(formatBalanceAmount(0n, USD_DECIMALS, undefined, true)).toBe("0.0000");
|
|
235
|
+
expect(formatBalanceAmount(0n, USD_DECIMALS, undefined, { showZero: true })).toBe("0.0000");
|
|
236
236
|
expect(formatBalanceAmount(ONE_USD * 1n, USD_DECIMALS)).toBe("1.0000");
|
|
237
237
|
expect(formatBalanceAmount(ONE_USD / 10n, USD_DECIMALS)).toBe("0.10000");
|
|
238
238
|
expect(formatBalanceAmount(ONE_USD / 100n, USD_DECIMALS)).toBe("0.010000");
|
|
@@ -248,14 +248,22 @@ describe("formatBalanceAmount", () => {
|
|
|
248
248
|
});
|
|
249
249
|
it("should display balance amount with symbol", () => {
|
|
250
250
|
expect(formatBalanceAmount(ONE_USD, USD_DECIMALS, "USDC")).toBe("1.0000 USDC");
|
|
251
|
-
expect(formatBalanceAmount(0n, USD_DECIMALS, "USDC", true)).toBe("0.0000 USDC");
|
|
252
|
-
expect(formatBalanceAmount(0n, USD_DECIMALS, "USDC", false)).toBe("-");
|
|
253
|
-
});
|
|
254
|
-
it("should display balance
|
|
255
|
-
expect(
|
|
256
|
-
expect(
|
|
257
|
-
expect(
|
|
258
|
-
expect(
|
|
251
|
+
expect(formatBalanceAmount(0n, USD_DECIMALS, "USDC", { showZero: true })).toBe("0.0000 USDC");
|
|
252
|
+
expect(formatBalanceAmount(0n, USD_DECIMALS, "USDC", { showZero: false })).toBe("-");
|
|
253
|
+
});
|
|
254
|
+
it("should display balance of stable token correctly", () => {
|
|
255
|
+
expect(formatBalanceAmount(ONE_USD, USD_DECIMALS, undefined, { isStable: true })).toBe("1.00");
|
|
256
|
+
expect(formatBalanceAmount(ONE_USD / 10n, USD_DECIMALS, undefined, { isStable: true })).toBe("0.100");
|
|
257
|
+
expect(formatBalanceAmount(ONE_USD / 100n, USD_DECIMALS, undefined, { isStable: true })).toBe("0.0100");
|
|
258
|
+
expect(formatBalanceAmount(ONE_USD / 1000n, USD_DECIMALS, undefined, { isStable: true })).toBe("0.00100");
|
|
259
|
+
expect(formatBalanceAmount(ONE_USD / 10000n, USD_DECIMALS, undefined, { isStable: true })).toBe("0.00010000");
|
|
260
|
+
expect(formatBalanceAmount(ONE_USD / 100000n, USD_DECIMALS, undefined, { isStable: true })).toBe("0.00001000");
|
|
261
|
+
expect(formatBalanceAmount(ONE_USD / 1000000n, USD_DECIMALS, undefined, { isStable: true })).toBe("0.00000100");
|
|
262
|
+
expect(formatBalanceAmount(ONE_USD / 10000000n, USD_DECIMALS, undefined, { isStable: true })).toBe("0.00000010");
|
|
263
|
+
expect(formatBalanceAmount(ONE_USD / 100000000n, USD_DECIMALS, undefined, { isStable: true })).toBe("0.00000001");
|
|
264
|
+
expect(formatBalanceAmount(ONE_USD / 1000000000n, USD_DECIMALS, undefined, { isStable: true })).toBe("1.00e-9");
|
|
265
|
+
expect(formatBalanceAmount(0n, USD_DECIMALS, undefined, { isStable: true, showZero: true })).toBe("0.00");
|
|
266
|
+
expect(formatBalanceAmount(0n, USD_DECIMALS, undefined, { isStable: true, showZero: false })).toBe("-");
|
|
259
267
|
});
|
|
260
268
|
});
|
|
261
269
|
describe("formatFactor", () => {
|
|
@@ -368,6 +368,7 @@ describe("Decrease Order Payloads", () => {
|
|
|
368
368
|
expect(decoded).toEqual({
|
|
369
369
|
twapId: "8000",
|
|
370
370
|
numberOfParts: twapParams.numberOfParts,
|
|
371
|
+
isExpress: false,
|
|
371
372
|
});
|
|
372
373
|
return {
|
|
373
374
|
orderPayload: {
|
|
@@ -460,6 +461,7 @@ describe("Decrease Order Payloads", () => {
|
|
|
460
461
|
const uiFeeReceiver = `0xff00000000000000000000000000000004800001`;
|
|
461
462
|
const decoded = decodeTwapUiFeeReceiver(uiFeeReceiver);
|
|
462
463
|
expect(decoded).toEqual({
|
|
464
|
+
isExpress: false,
|
|
463
465
|
twapId: "8000",
|
|
464
466
|
numberOfParts: twapParams.numberOfParts,
|
|
465
467
|
});
|
|
@@ -532,6 +532,7 @@ describe("Increase Order Payloads", () => {
|
|
|
532
532
|
const uiFeeReceiver = `0xff00000000000000000000000000000004800001`;
|
|
533
533
|
const decoded = decodeTwapUiFeeReceiver(uiFeeReceiver);
|
|
534
534
|
expect(decoded).toEqual({
|
|
535
|
+
isExpress: false,
|
|
535
536
|
twapId: "8000",
|
|
536
537
|
numberOfParts: twapParams.numberOfParts,
|
|
537
538
|
});
|
|
@@ -626,6 +627,7 @@ describe("Increase Order Payloads", () => {
|
|
|
626
627
|
const uiFeeReceiver = `0xff00000000000000000000000000000004800001`;
|
|
627
628
|
const decoded = decodeTwapUiFeeReceiver(uiFeeReceiver);
|
|
628
629
|
expect(decoded).toEqual({
|
|
630
|
+
isExpress: false,
|
|
629
631
|
twapId: "8000",
|
|
630
632
|
numberOfParts: twapParams.numberOfParts,
|
|
631
633
|
});
|