flash-sdk 3.2.2-alpha.1 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/MarketAccount.d.ts +1 -1
- package/dist/PerpetualsClient.d.ts +202 -184
- package/dist/PerpetualsClient.js +307 -141
- package/dist/PoolConfig.d.ts +0 -1
- package/dist/PoolConfig.json +0 -78
- package/dist/PositionAccount.d.ts +2 -3
- package/dist/PositionAccount.js +0 -4
- package/dist/idl/perpetuals.d.ts +536 -37
- package/dist/idl/perpetuals.js +536 -37
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.js +2 -2
- package/package.json +1 -1
package/dist/PoolConfig.d.ts
CHANGED
package/dist/PoolConfig.json
CHANGED
@@ -208,7 +208,6 @@
|
|
208
208
|
"collateralCustody": "BjzZ33nMnbXZ7rw3Uy9Uu1W7BDCzzugqkiZoamJHRKF7",
|
209
209
|
"side": "long",
|
210
210
|
"maxLev": 100,
|
211
|
-
"degenMaxLev": 500,
|
212
211
|
"targetCustodyId": 1,
|
213
212
|
"collateralCustodyId": 1,
|
214
213
|
"targetMint": "So11111111111111111111111111111111111111112",
|
@@ -223,7 +222,6 @@
|
|
223
222
|
"collateralCustody": "5N2St2e1BdgWsJiXxfetwWKkHS1BYochAp1ruPFJUfgY",
|
224
223
|
"side": "short",
|
225
224
|
"maxLev": 100,
|
226
|
-
"degenMaxLev": 500,
|
227
225
|
"targetCustodyId": 1,
|
228
226
|
"collateralCustodyId": 0,
|
229
227
|
"targetMint": "So11111111111111111111111111111111111111112",
|
@@ -238,7 +236,6 @@
|
|
238
236
|
"collateralCustody": "Ghi8YvZeDEzPAGvve7we3Rthquk84CULra6ERkGQF1Rv",
|
239
237
|
"side": "long",
|
240
238
|
"maxLev": 100,
|
241
|
-
"degenMaxLev": 500,
|
242
239
|
"targetCustodyId": 2,
|
243
240
|
"collateralCustodyId": 2,
|
244
241
|
"targetMint": "3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh",
|
@@ -253,7 +250,6 @@
|
|
253
250
|
"collateralCustody": "5N2St2e1BdgWsJiXxfetwWKkHS1BYochAp1ruPFJUfgY",
|
254
251
|
"side": "short",
|
255
252
|
"maxLev": 100,
|
256
|
-
"degenMaxLev": 500,
|
257
253
|
"targetCustodyId": 2,
|
258
254
|
"collateralCustodyId": 0,
|
259
255
|
"targetMint": "3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh",
|
@@ -268,7 +264,6 @@
|
|
268
264
|
"collateralCustody": "4oX9yQW5oW4MEjphzMuUV9gn5VQvjCL1LwkBqrSLscQ9",
|
269
265
|
"side": "long",
|
270
266
|
"maxLev": 100,
|
271
|
-
"degenMaxLev": 500,
|
272
267
|
"targetCustodyId": 3,
|
273
268
|
"collateralCustodyId": 3,
|
274
269
|
"targetMint": "7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",
|
@@ -283,7 +278,6 @@
|
|
283
278
|
"collateralCustody": "5N2St2e1BdgWsJiXxfetwWKkHS1BYochAp1ruPFJUfgY",
|
284
279
|
"side": "short",
|
285
280
|
"maxLev": 100,
|
286
|
-
"degenMaxLev": 500,
|
287
281
|
"targetCustodyId": 3,
|
288
282
|
"collateralCustodyId": 0,
|
289
283
|
"targetMint": "7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",
|
@@ -298,7 +292,6 @@
|
|
298
292
|
"collateralCustody": "BA4Au3RCBQyZf3f55RQBsxbaHpE32qLnoGoYJYwkCQPg",
|
299
293
|
"side": "long",
|
300
294
|
"maxLev": 100,
|
301
|
-
"degenMaxLev": 500,
|
302
295
|
"targetCustodyId": 1,
|
303
296
|
"collateralCustodyId": 4,
|
304
297
|
"targetMint": "So11111111111111111111111111111111111111112",
|
@@ -524,7 +517,6 @@
|
|
524
517
|
"collateralCustody": "9yANuRkTRxb9jjxnG1h3xcUz2kM8fJgDbdYJV4PfZ7dy",
|
525
518
|
"side": "long",
|
526
519
|
"maxLev": 100,
|
527
|
-
"degenMaxLev": 500,
|
528
520
|
"targetCustodyId": 1,
|
529
521
|
"collateralCustodyId": 0,
|
530
522
|
"targetMint": "XAUfcdPHmEBnj78YnZ5YxqdwBmgbwoY5VfrRwETnKuQ",
|
@@ -539,7 +531,6 @@
|
|
539
531
|
"collateralCustody": "9yANuRkTRxb9jjxnG1h3xcUz2kM8fJgDbdYJV4PfZ7dy",
|
540
532
|
"side": "short",
|
541
533
|
"maxLev": 100,
|
542
|
-
"degenMaxLev": 500,
|
543
534
|
"targetCustodyId": 1,
|
544
535
|
"collateralCustodyId": 0,
|
545
536
|
"targetMint": "XAUfcdPHmEBnj78YnZ5YxqdwBmgbwoY5VfrRwETnKuQ",
|
@@ -554,7 +545,6 @@
|
|
554
545
|
"collateralCustody": "9yANuRkTRxb9jjxnG1h3xcUz2kM8fJgDbdYJV4PfZ7dy",
|
555
546
|
"side": "long",
|
556
547
|
"maxLev": 100,
|
557
|
-
"degenMaxLev": 500,
|
558
548
|
"targetCustodyId": 2,
|
559
549
|
"collateralCustodyId": 0,
|
560
550
|
"targetMint": "XAGLictSZUYkCHgBWoPitFCDJECNZx1DVTzV74iM9dP",
|
@@ -569,7 +559,6 @@
|
|
569
559
|
"collateralCustody": "9yANuRkTRxb9jjxnG1h3xcUz2kM8fJgDbdYJV4PfZ7dy",
|
570
560
|
"side": "short",
|
571
561
|
"maxLev": 100,
|
572
|
-
"degenMaxLev": 500,
|
573
562
|
"targetCustodyId": 2,
|
574
563
|
"collateralCustodyId": 0,
|
575
564
|
"targetMint": "XAGLictSZUYkCHgBWoPitFCDJECNZx1DVTzV74iM9dP",
|
@@ -584,7 +573,6 @@
|
|
584
573
|
"collateralCustody": "9yANuRkTRxb9jjxnG1h3xcUz2kM8fJgDbdYJV4PfZ7dy",
|
585
574
|
"side": "long",
|
586
575
|
"maxLev": 100,
|
587
|
-
"degenMaxLev": 500,
|
588
576
|
"targetCustodyId": 3,
|
589
577
|
"collateralCustodyId": 0,
|
590
578
|
"targetMint": "EURPnveVbdoJkGs7qYqsEWBcCH4ZHChKEBbDGaQx4rUK",
|
@@ -599,7 +587,6 @@
|
|
599
587
|
"collateralCustody": "9yANuRkTRxb9jjxnG1h3xcUz2kM8fJgDbdYJV4PfZ7dy",
|
600
588
|
"side": "short",
|
601
589
|
"maxLev": 100,
|
602
|
-
"degenMaxLev": 500,
|
603
590
|
"targetCustodyId": 3,
|
604
591
|
"collateralCustodyId": 0,
|
605
592
|
"targetMint": "EURPnveVbdoJkGs7qYqsEWBcCH4ZHChKEBbDGaQx4rUK",
|
@@ -614,7 +601,6 @@
|
|
614
601
|
"collateralCustody": "9yANuRkTRxb9jjxnG1h3xcUz2kM8fJgDbdYJV4PfZ7dy",
|
615
602
|
"side": "long",
|
616
603
|
"maxLev": 100,
|
617
|
-
"degenMaxLev": 500,
|
618
604
|
"targetCustodyId": 4,
|
619
605
|
"collateralCustodyId": 0,
|
620
606
|
"targetMint": "GBPvXsT3uQVBmipvhhU5NW1JfhMJ2maYqLAbPzUq5NnY",
|
@@ -629,7 +615,6 @@
|
|
629
615
|
"collateralCustody": "9yANuRkTRxb9jjxnG1h3xcUz2kM8fJgDbdYJV4PfZ7dy",
|
630
616
|
"side": "short",
|
631
617
|
"maxLev": 100,
|
632
|
-
"degenMaxLev": 500,
|
633
618
|
"targetCustodyId": 4,
|
634
619
|
"collateralCustodyId": 0,
|
635
620
|
"targetMint": "GBPvXsT3uQVBmipvhhU5NW1JfhMJ2maYqLAbPzUq5NnY",
|
@@ -644,7 +629,6 @@
|
|
644
629
|
"collateralCustody": "9yANuRkTRxb9jjxnG1h3xcUz2kM8fJgDbdYJV4PfZ7dy",
|
645
630
|
"side": "long",
|
646
631
|
"maxLev": 50,
|
647
|
-
"degenMaxLev": 100,
|
648
632
|
"targetCustodyId": 6,
|
649
633
|
"collateralCustodyId": 0,
|
650
634
|
"targetMint": "o1Lw5djE8o6wMbPXU7U8Us8a6DJhWJc9WrWWUc1LHAo",
|
@@ -659,7 +643,6 @@
|
|
659
643
|
"collateralCustody": "9yANuRkTRxb9jjxnG1h3xcUz2kM8fJgDbdYJV4PfZ7dy",
|
660
644
|
"side": "short",
|
661
645
|
"maxLev": 50,
|
662
|
-
"degenMaxLev": 100,
|
663
646
|
"targetCustodyId": 6,
|
664
647
|
"collateralCustodyId": 0,
|
665
648
|
"targetMint": "o1Lw5djE8o6wMbPXU7U8Us8a6DJhWJc9WrWWUc1LHAo",
|
@@ -885,7 +868,6 @@
|
|
885
868
|
"collateralCustody": "GvxrQuz7tHxqiyfJNnGKh4GAPYycZ3cvqgmwifduiBCf",
|
886
869
|
"side": "long",
|
887
870
|
"maxLev": 50,
|
888
|
-
"degenMaxLev": 100,
|
889
871
|
"targetCustodyId": 1,
|
890
872
|
"collateralCustodyId": 1,
|
891
873
|
"targetMint": "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",
|
@@ -900,7 +882,6 @@
|
|
900
882
|
"collateralCustody": "6fiadNoZVTha5NdaktZgJ3PHm7bncZpiqGvFbCsrUv72",
|
901
883
|
"side": "short",
|
902
884
|
"maxLev": 50,
|
903
|
-
"degenMaxLev": 100,
|
904
885
|
"targetCustodyId": 1,
|
905
886
|
"collateralCustodyId": 0,
|
906
887
|
"targetMint": "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",
|
@@ -915,7 +896,6 @@
|
|
915
896
|
"collateralCustody": "A8SKWb3pwbFUtxLQhnpUTfy7CkxBpWGvTLYyJyWHCMWv",
|
916
897
|
"side": "long",
|
917
898
|
"maxLev": 50,
|
918
|
-
"degenMaxLev": 100,
|
919
899
|
"targetCustodyId": 2,
|
920
900
|
"collateralCustodyId": 2,
|
921
901
|
"targetMint": "HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3",
|
@@ -930,7 +910,6 @@
|
|
930
910
|
"collateralCustody": "6fiadNoZVTha5NdaktZgJ3PHm7bncZpiqGvFbCsrUv72",
|
931
911
|
"side": "short",
|
932
912
|
"maxLev": 50,
|
933
|
-
"degenMaxLev": 100,
|
934
913
|
"targetCustodyId": 2,
|
935
914
|
"collateralCustodyId": 0,
|
936
915
|
"targetMint": "HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3",
|
@@ -945,7 +924,6 @@
|
|
945
924
|
"collateralCustody": "43f5Y7ysVysbkwqnRSjggCPPj4gvuaVnmgz9MkPUk88L",
|
946
925
|
"side": "long",
|
947
926
|
"maxLev": 50,
|
948
|
-
"degenMaxLev": 100,
|
949
927
|
"targetCustodyId": 3,
|
950
928
|
"collateralCustodyId": 3,
|
951
929
|
"targetMint": "jtojtomepa8beP8AuQc6eXt5FriJwfFMwQx2v2f9mCL",
|
@@ -960,7 +938,6 @@
|
|
960
938
|
"collateralCustody": "6fiadNoZVTha5NdaktZgJ3PHm7bncZpiqGvFbCsrUv72",
|
961
939
|
"side": "short",
|
962
940
|
"maxLev": 50,
|
963
|
-
"degenMaxLev": 100,
|
964
941
|
"targetCustodyId": 3,
|
965
942
|
"collateralCustodyId": 0,
|
966
943
|
"targetMint": "jtojtomepa8beP8AuQc6eXt5FriJwfFMwQx2v2f9mCL",
|
@@ -975,7 +952,6 @@
|
|
975
952
|
"collateralCustody": "AuzpQGWBNTYKXj4pe5WPoT95dc2T7ouMWpjcriF9t4XS",
|
976
953
|
"side": "long",
|
977
954
|
"maxLev": 50,
|
978
|
-
"degenMaxLev": 100,
|
979
955
|
"targetCustodyId": 5,
|
980
956
|
"collateralCustodyId": 5,
|
981
957
|
"targetMint": "4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R",
|
@@ -990,7 +966,6 @@
|
|
990
966
|
"collateralCustody": "6fiadNoZVTha5NdaktZgJ3PHm7bncZpiqGvFbCsrUv72",
|
991
967
|
"side": "short",
|
992
968
|
"maxLev": 50,
|
993
|
-
"degenMaxLev": 100,
|
994
969
|
"targetCustodyId": 5,
|
995
970
|
"collateralCustodyId": 0,
|
996
971
|
"targetMint": "4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R",
|
@@ -1005,7 +980,6 @@
|
|
1005
980
|
"collateralCustody": "5JtPiHFmkb1nv1Qvs3sryLgXmjs8p5iQexAseC2Ljjzg",
|
1006
981
|
"side": "long",
|
1007
982
|
"maxLev": 50,
|
1008
|
-
"degenMaxLev": 100,
|
1009
983
|
"targetCustodyId": 6,
|
1010
984
|
"collateralCustodyId": 6,
|
1011
985
|
"targetMint": "KMNo3nJsBXfcpJTVhZcXLW7RmTwTt4GVFE7suUBo9sS",
|
@@ -1020,7 +994,6 @@
|
|
1020
994
|
"collateralCustody": "6fiadNoZVTha5NdaktZgJ3PHm7bncZpiqGvFbCsrUv72",
|
1021
995
|
"side": "short",
|
1022
996
|
"maxLev": 50,
|
1023
|
-
"degenMaxLev": 100,
|
1024
997
|
"targetCustodyId": 6,
|
1025
998
|
"collateralCustodyId": 0,
|
1026
999
|
"targetMint": "KMNo3nJsBXfcpJTVhZcXLW7RmTwTt4GVFE7suUBo9sS",
|
@@ -1190,7 +1163,6 @@
|
|
1190
1163
|
"collateralCustody": "7gfDTeMREaKcg3SMfrgVP7fjrstmrzzAeYCAcVaHTV9h",
|
1191
1164
|
"side": "long",
|
1192
1165
|
"maxLev": 25,
|
1193
|
-
"degenMaxLev": 50,
|
1194
1166
|
"targetCustodyId": 1,
|
1195
1167
|
"collateralCustodyId": 1,
|
1196
1168
|
"targetMint": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
|
@@ -1205,7 +1177,6 @@
|
|
1205
1177
|
"collateralCustody": "qFFbK8PHbNt4433AUTHHDsmDuQGTQhixc8t4sCzugG4",
|
1206
1178
|
"side": "short",
|
1207
1179
|
"maxLev": 25,
|
1208
|
-
"degenMaxLev": 50,
|
1209
1180
|
"targetCustodyId": 1,
|
1210
1181
|
"collateralCustodyId": 0,
|
1211
1182
|
"targetMint": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
|
@@ -1220,7 +1191,6 @@
|
|
1220
1191
|
"collateralCustody": "Gw81Uk5LarYkoCtwY95b1uT8tqTyzYQf3WM3yvgi9N43",
|
1221
1192
|
"side": "long",
|
1222
1193
|
"maxLev": 25,
|
1223
|
-
"degenMaxLev": 50,
|
1224
1194
|
"targetCustodyId": 2,
|
1225
1195
|
"collateralCustodyId": 2,
|
1226
1196
|
"targetMint": "2zMMhcVQEXDtdE6vsFS7S7D5oUodfJHE8vd1gnBouauv",
|
@@ -1235,7 +1205,6 @@
|
|
1235
1205
|
"collateralCustody": "qFFbK8PHbNt4433AUTHHDsmDuQGTQhixc8t4sCzugG4",
|
1236
1206
|
"side": "short",
|
1237
1207
|
"maxLev": 25,
|
1238
|
-
"degenMaxLev": 50,
|
1239
1208
|
"targetCustodyId": 2,
|
1240
1209
|
"collateralCustodyId": 0,
|
1241
1210
|
"targetMint": "2zMMhcVQEXDtdE6vsFS7S7D5oUodfJHE8vd1gnBouauv",
|
@@ -1250,7 +1219,6 @@
|
|
1250
1219
|
"collateralCustody": "GJGqjUBB6QDiHJ5wMfhRR9CCcDRatLdwxsVih3J5uYPx",
|
1251
1220
|
"side": "long",
|
1252
1221
|
"maxLev": 25,
|
1253
|
-
"degenMaxLev": 50,
|
1254
1222
|
"targetCustodyId": 3,
|
1255
1223
|
"collateralCustodyId": 3,
|
1256
1224
|
"targetMint": "pumpCmXqMfrsAkQ5r49WcJnRayYRqmXz6ae8H7H9Dfn",
|
@@ -1265,7 +1233,6 @@
|
|
1265
1233
|
"collateralCustody": "qFFbK8PHbNt4433AUTHHDsmDuQGTQhixc8t4sCzugG4",
|
1266
1234
|
"side": "short",
|
1267
1235
|
"maxLev": 25,
|
1268
|
-
"degenMaxLev": 50,
|
1269
1236
|
"targetCustodyId": 3,
|
1270
1237
|
"collateralCustodyId": 0,
|
1271
1238
|
"targetMint": "pumpCmXqMfrsAkQ5r49WcJnRayYRqmXz6ae8H7H9Dfn",
|
@@ -1379,7 +1346,6 @@
|
|
1379
1346
|
"collateralCustody": "AMAea38ijDJuoq14mwxzQkGEyZEnjw69eqrMQ9uHPdyP",
|
1380
1347
|
"side": "long",
|
1381
1348
|
"maxLev": 25,
|
1382
|
-
"degenMaxLev": 50,
|
1383
1349
|
"targetCustodyId": 1,
|
1384
1350
|
"collateralCustodyId": 1,
|
1385
1351
|
"targetMint": "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm",
|
@@ -1394,7 +1360,6 @@
|
|
1394
1360
|
"collateralCustody": "EtLnmKsmbTPH1mUhZSNU5ErEoFrSgYoxoKX8BSzEZmnn",
|
1395
1361
|
"side": "short",
|
1396
1362
|
"maxLev": 25,
|
1397
|
-
"degenMaxLev": 50,
|
1398
1363
|
"targetCustodyId": 1,
|
1399
1364
|
"collateralCustodyId": 0,
|
1400
1365
|
"targetMint": "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm",
|
@@ -1508,7 +1473,6 @@
|
|
1508
1473
|
"collateralCustody": "ArnD1faZVVkkewX4HUSoDuht46egAtVvhDTFMJn3DkFo",
|
1509
1474
|
"side": "long",
|
1510
1475
|
"maxLev": 10,
|
1511
|
-
"degenMaxLev": 20,
|
1512
1476
|
"targetCustodyId": 1,
|
1513
1477
|
"collateralCustodyId": 1,
|
1514
1478
|
"targetMint": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
|
@@ -1523,7 +1487,6 @@
|
|
1523
1487
|
"collateralCustody": "888zpafZJEtPYp15HJocz45rw7kTr8BnEM9Hvcd7opy3",
|
1524
1488
|
"side": "short",
|
1525
1489
|
"maxLev": 10,
|
1526
|
-
"degenMaxLev": 20,
|
1527
1490
|
"targetCustodyId": 1,
|
1528
1491
|
"collateralCustodyId": 0,
|
1529
1492
|
"targetMint": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
|
@@ -1637,7 +1600,6 @@
|
|
1637
1600
|
"collateralCustody": "EHzgXgb2azBXG9bgPT2GEPfe6FtyQwiJtPxMUwny4WFe",
|
1638
1601
|
"side": "long",
|
1639
1602
|
"maxLev": 25,
|
1640
|
-
"degenMaxLev": 50,
|
1641
1603
|
"targetCustodyId": 2,
|
1642
1604
|
"collateralCustodyId": 2,
|
1643
1605
|
"targetMint": "9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump",
|
@@ -1652,7 +1614,6 @@
|
|
1652
1614
|
"collateralCustody": "B1b3WnCbwrQC8yk6o5rVLGGJFD7BdQBLyaWsRw4Lqgp2",
|
1653
1615
|
"side": "short",
|
1654
1616
|
"maxLev": 25,
|
1655
|
-
"degenMaxLev": 50,
|
1656
1617
|
"targetCustodyId": 2,
|
1657
1618
|
"collateralCustodyId": 0,
|
1658
1619
|
"targetMint": "9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump",
|
@@ -1862,7 +1823,6 @@
|
|
1862
1823
|
"collateralCustody": "8BHHyTJKvZXQkjCeigdkH7hAFcnfX5ecXwysjLnG18FT",
|
1863
1824
|
"side": "long",
|
1864
1825
|
"maxLev": 100,
|
1865
|
-
"degenMaxLev": 500,
|
1866
1826
|
"targetCustodyId": 1,
|
1867
1827
|
"collateralCustodyId": 1,
|
1868
1828
|
"targetMint": "So11111111111111111111111111111111111111112",
|
@@ -1877,7 +1837,6 @@
|
|
1877
1837
|
"collateralCustody": "AqZSmo7tVgPrZ72kSpRugN8pTCBTHovw65qPikP15dmK",
|
1878
1838
|
"side": "short",
|
1879
1839
|
"maxLev": 100,
|
1880
|
-
"degenMaxLev": 500,
|
1881
1840
|
"targetCustodyId": 1,
|
1882
1841
|
"collateralCustodyId": 0,
|
1883
1842
|
"targetMint": "So11111111111111111111111111111111111111112",
|
@@ -1892,7 +1851,6 @@
|
|
1892
1851
|
"collateralCustody": "F8peHuGzRwLAgRXm9CGQNKqpWkxTkJQVZw6uLJPx12TV",
|
1893
1852
|
"side": "long",
|
1894
1853
|
"maxLev": 100,
|
1895
|
-
"degenMaxLev": 500,
|
1896
1854
|
"targetCustodyId": 2,
|
1897
1855
|
"collateralCustodyId": 2,
|
1898
1856
|
"targetMint": "B8DYqbh57aEPRbUq7reyueY6jaYoN75js5YsiM84tFfP",
|
@@ -1907,7 +1865,6 @@
|
|
1907
1865
|
"collateralCustody": "AqZSmo7tVgPrZ72kSpRugN8pTCBTHovw65qPikP15dmK",
|
1908
1866
|
"side": "short",
|
1909
1867
|
"maxLev": 100,
|
1910
|
-
"degenMaxLev": 500,
|
1911
1868
|
"targetCustodyId": 2,
|
1912
1869
|
"collateralCustodyId": 0,
|
1913
1870
|
"targetMint": "B8DYqbh57aEPRbUq7reyueY6jaYoN75js5YsiM84tFfP",
|
@@ -1922,7 +1879,6 @@
|
|
1922
1879
|
"collateralCustody": "4Xtj4GEPwHjeXeDRmcAyAoZyPH4bsEQ4qFyhcK8bBGgy",
|
1923
1880
|
"side": "long",
|
1924
1881
|
"maxLev": 100,
|
1925
|
-
"degenMaxLev": 500,
|
1926
1882
|
"targetCustodyId": 3,
|
1927
1883
|
"collateralCustodyId": 3,
|
1928
1884
|
"targetMint": "BA17bkYW78GvnirtgRHcceQxZdwkhpzbvrwDU6voUXRz",
|
@@ -1937,7 +1893,6 @@
|
|
1937
1893
|
"collateralCustody": "AqZSmo7tVgPrZ72kSpRugN8pTCBTHovw65qPikP15dmK",
|
1938
1894
|
"side": "short",
|
1939
1895
|
"maxLev": 100,
|
1940
|
-
"degenMaxLev": 500,
|
1941
1896
|
"targetCustodyId": 3,
|
1942
1897
|
"collateralCustodyId": 0,
|
1943
1898
|
"targetMint": "BA17bkYW78GvnirtgRHcceQxZdwkhpzbvrwDU6voUXRz",
|
@@ -1952,7 +1907,6 @@
|
|
1952
1907
|
"collateralCustody": "ATbBmmYoe8boViFtxYV2QLkX6b194sHMG54gFu9pNCWa",
|
1953
1908
|
"side": "long",
|
1954
1909
|
"maxLev": 100,
|
1955
|
-
"degenMaxLev": 500,
|
1956
1910
|
"targetCustodyId": 1,
|
1957
1911
|
"collateralCustodyId": 4,
|
1958
1912
|
"targetMint": "So11111111111111111111111111111111111111112",
|
@@ -2178,7 +2132,6 @@
|
|
2178
2132
|
"collateralCustody": "8DrHPGQq4dBrSYV2oy8oDi3sQDSgeCaAe1jq3s9tSh42",
|
2179
2133
|
"side": "long",
|
2180
2134
|
"maxLev": 200,
|
2181
|
-
"degenMaxLev": 400,
|
2182
2135
|
"targetCustodyId": 1,
|
2183
2136
|
"collateralCustodyId": 0,
|
2184
2137
|
"targetMint": "xaucSYSxjZF4EbsLqAGRvPcuD1uXAj9awmsxYkUAavx",
|
@@ -2193,7 +2146,6 @@
|
|
2193
2146
|
"collateralCustody": "8DrHPGQq4dBrSYV2oy8oDi3sQDSgeCaAe1jq3s9tSh42",
|
2194
2147
|
"side": "short",
|
2195
2148
|
"maxLev": 200,
|
2196
|
-
"degenMaxLev": 400,
|
2197
2149
|
"targetCustodyId": 1,
|
2198
2150
|
"collateralCustodyId": 0,
|
2199
2151
|
"targetMint": "xaucSYSxjZF4EbsLqAGRvPcuD1uXAj9awmsxYkUAavx",
|
@@ -2208,7 +2160,6 @@
|
|
2208
2160
|
"collateralCustody": "8DrHPGQq4dBrSYV2oy8oDi3sQDSgeCaAe1jq3s9tSh42",
|
2209
2161
|
"side": "long",
|
2210
2162
|
"maxLev": 200,
|
2211
|
-
"degenMaxLev": 400,
|
2212
2163
|
"targetCustodyId": 2,
|
2213
2164
|
"collateralCustodyId": 0,
|
2214
2165
|
"targetMint": "xagGMhSCG8WDsf3zFep6sGtvyY1D78roKCHTJtEWg4Z",
|
@@ -2223,7 +2174,6 @@
|
|
2223
2174
|
"collateralCustody": "8DrHPGQq4dBrSYV2oy8oDi3sQDSgeCaAe1jq3s9tSh42",
|
2224
2175
|
"side": "short",
|
2225
2176
|
"maxLev": 200,
|
2226
|
-
"degenMaxLev": 400,
|
2227
2177
|
"targetCustodyId": 2,
|
2228
2178
|
"collateralCustodyId": 0,
|
2229
2179
|
"targetMint": "xagGMhSCG8WDsf3zFep6sGtvyY1D78roKCHTJtEWg4Z",
|
@@ -2238,7 +2188,6 @@
|
|
2238
2188
|
"collateralCustody": "8DrHPGQq4dBrSYV2oy8oDi3sQDSgeCaAe1jq3s9tSh42",
|
2239
2189
|
"side": "long",
|
2240
2190
|
"maxLev": 200,
|
2241
|
-
"degenMaxLev": 400,
|
2242
2191
|
"targetCustodyId": 3,
|
2243
2192
|
"collateralCustodyId": 0,
|
2244
2193
|
"targetMint": "eurExbEMAz5jq8r31EGc3gg9ddu7ftBJWg8A6hYsvng",
|
@@ -2253,7 +2202,6 @@
|
|
2253
2202
|
"collateralCustody": "8DrHPGQq4dBrSYV2oy8oDi3sQDSgeCaAe1jq3s9tSh42",
|
2254
2203
|
"side": "short",
|
2255
2204
|
"maxLev": 200,
|
2256
|
-
"degenMaxLev": 400,
|
2257
2205
|
"targetCustodyId": 3,
|
2258
2206
|
"collateralCustodyId": 0,
|
2259
2207
|
"targetMint": "eurExbEMAz5jq8r31EGc3gg9ddu7ftBJWg8A6hYsvng",
|
@@ -2268,7 +2216,6 @@
|
|
2268
2216
|
"collateralCustody": "8DrHPGQq4dBrSYV2oy8oDi3sQDSgeCaAe1jq3s9tSh42",
|
2269
2217
|
"side": "long",
|
2270
2218
|
"maxLev": 200,
|
2271
|
-
"degenMaxLev": 400,
|
2272
2219
|
"targetCustodyId": 4,
|
2273
2220
|
"collateralCustodyId": 0,
|
2274
2221
|
"targetMint": "gbpLV6AqxQGSMFsuSfcutvWnfjLUqKq63GoXLAHXXKV",
|
@@ -2283,7 +2230,6 @@
|
|
2283
2230
|
"collateralCustody": "8DrHPGQq4dBrSYV2oy8oDi3sQDSgeCaAe1jq3s9tSh42",
|
2284
2231
|
"side": "short",
|
2285
2232
|
"maxLev": 200,
|
2286
|
-
"degenMaxLev": 400,
|
2287
2233
|
"targetCustodyId": 4,
|
2288
2234
|
"collateralCustodyId": 0,
|
2289
2235
|
"targetMint": "gbpLV6AqxQGSMFsuSfcutvWnfjLUqKq63GoXLAHXXKV",
|
@@ -2298,7 +2244,6 @@
|
|
2298
2244
|
"collateralCustody": "8DrHPGQq4dBrSYV2oy8oDi3sQDSgeCaAe1jq3s9tSh42",
|
2299
2245
|
"side": "long",
|
2300
2246
|
"maxLev": 50,
|
2301
|
-
"degenMaxLev": 100,
|
2302
2247
|
"targetCustodyId": 6,
|
2303
2248
|
"collateralCustodyId": 0,
|
2304
2249
|
"targetMint": "oi1DkCGa5CVm379ZuznLMevqjg7KGWnDDFB96JXAi7a",
|
@@ -2313,7 +2258,6 @@
|
|
2313
2258
|
"collateralCustody": "8DrHPGQq4dBrSYV2oy8oDi3sQDSgeCaAe1jq3s9tSh42",
|
2314
2259
|
"side": "short",
|
2315
2260
|
"maxLev": 50,
|
2316
|
-
"degenMaxLev": 100,
|
2317
2261
|
"targetCustodyId": 6,
|
2318
2262
|
"collateralCustodyId": 0,
|
2319
2263
|
"targetMint": "oi1DkCGa5CVm379ZuznLMevqjg7KGWnDDFB96JXAi7a",
|
@@ -2539,7 +2483,6 @@
|
|
2539
2483
|
"collateralCustody": "D5FjET7npedKke6fxyqonk7Fr3iDpHEsWMTtdnArFewp",
|
2540
2484
|
"side": "long",
|
2541
2485
|
"maxLev": 50,
|
2542
|
-
"degenMaxLev": 100,
|
2543
2486
|
"targetCustodyId": 1,
|
2544
2487
|
"collateralCustodyId": 1,
|
2545
2488
|
"targetMint": "jupFZJoi1GKLMyt2J2Ui13BNTNh47XQtYPpNucbMAF4",
|
@@ -2554,7 +2497,6 @@
|
|
2554
2497
|
"collateralCustody": "4BwjABgU78jqjKeyCemyCCLwEtFdZ8JSeP9ogPMQS8Zg",
|
2555
2498
|
"side": "short",
|
2556
2499
|
"maxLev": 50,
|
2557
|
-
"degenMaxLev": 100,
|
2558
2500
|
"targetCustodyId": 1,
|
2559
2501
|
"collateralCustodyId": 0,
|
2560
2502
|
"targetMint": "jupFZJoi1GKLMyt2J2Ui13BNTNh47XQtYPpNucbMAF4",
|
@@ -2569,7 +2511,6 @@
|
|
2569
2511
|
"collateralCustody": "BsWPLoGv392eTqtgCyqV9VLuTs2KhkhfzgMtFVF587oA",
|
2570
2512
|
"side": "long",
|
2571
2513
|
"maxLev": 50,
|
2572
|
-
"degenMaxLev": 100,
|
2573
2514
|
"targetCustodyId": 2,
|
2574
2515
|
"collateralCustodyId": 2,
|
2575
2516
|
"targetMint": "pythwankpPj8tfCtBEW6BBE6oVC6ZFWF8tjyLPRSr45",
|
@@ -2584,7 +2525,6 @@
|
|
2584
2525
|
"collateralCustody": "4BwjABgU78jqjKeyCemyCCLwEtFdZ8JSeP9ogPMQS8Zg",
|
2585
2526
|
"side": "short",
|
2586
2527
|
"maxLev": 50,
|
2587
|
-
"degenMaxLev": 100,
|
2588
2528
|
"targetCustodyId": 2,
|
2589
2529
|
"collateralCustodyId": 0,
|
2590
2530
|
"targetMint": "pythwankpPj8tfCtBEW6BBE6oVC6ZFWF8tjyLPRSr45",
|
@@ -2599,7 +2539,6 @@
|
|
2599
2539
|
"collateralCustody": "Du9y3QF4DRuBqNaTSobJ8a84HXnzgA8hf5Qgbgh4nviu",
|
2600
2540
|
"side": "long",
|
2601
2541
|
"maxLev": 50,
|
2602
|
-
"degenMaxLev": 100,
|
2603
2542
|
"targetCustodyId": 3,
|
2604
2543
|
"collateralCustodyId": 3,
|
2605
2544
|
"targetMint": "jtoLsU5JqXTYzPzRwGK7UmsNgy1EN6BwNRr6KMJKcXi",
|
@@ -2614,7 +2553,6 @@
|
|
2614
2553
|
"collateralCustody": "4BwjABgU78jqjKeyCemyCCLwEtFdZ8JSeP9ogPMQS8Zg",
|
2615
2554
|
"side": "short",
|
2616
2555
|
"maxLev": 50,
|
2617
|
-
"degenMaxLev": 100,
|
2618
2556
|
"targetCustodyId": 3,
|
2619
2557
|
"collateralCustodyId": 0,
|
2620
2558
|
"targetMint": "jtoLsU5JqXTYzPzRwGK7UmsNgy1EN6BwNRr6KMJKcXi",
|
@@ -2629,7 +2567,6 @@
|
|
2629
2567
|
"collateralCustody": "4t4CxpF8cjtgdiVKNgpsM5i7K3C1zUpvUcbG4hCToNfD",
|
2630
2568
|
"side": "long",
|
2631
2569
|
"maxLev": 50,
|
2632
|
-
"degenMaxLev": 100,
|
2633
2570
|
"targetCustodyId": 5,
|
2634
2571
|
"collateralCustodyId": 5,
|
2635
2572
|
"targetMint": "ray4PVwCwoM4ADM3qKar3Wy6v7eA2zcMtHWv7LAPGe8",
|
@@ -2644,7 +2581,6 @@
|
|
2644
2581
|
"collateralCustody": "4BwjABgU78jqjKeyCemyCCLwEtFdZ8JSeP9ogPMQS8Zg",
|
2645
2582
|
"side": "short",
|
2646
2583
|
"maxLev": 50,
|
2647
|
-
"degenMaxLev": 100,
|
2648
2584
|
"targetCustodyId": 5,
|
2649
2585
|
"collateralCustodyId": 0,
|
2650
2586
|
"targetMint": "ray4PVwCwoM4ADM3qKar3Wy6v7eA2zcMtHWv7LAPGe8",
|
@@ -2659,7 +2595,6 @@
|
|
2659
2595
|
"collateralCustody": "DHaP6PyLpgugW3NumW8GpMddbwNKpnckhet9ec92qE5p",
|
2660
2596
|
"side": "long",
|
2661
2597
|
"maxLev": 50,
|
2662
|
-
"degenMaxLev": 100,
|
2663
2598
|
"targetCustodyId": 6,
|
2664
2599
|
"collateralCustodyId": 6,
|
2665
2600
|
"targetMint": "kmnooU2T6dYeVvPcwFjtNwDdgfNtAY6qs8tnxacZQxb",
|
@@ -2674,7 +2609,6 @@
|
|
2674
2609
|
"collateralCustody": "4BwjABgU78jqjKeyCemyCCLwEtFdZ8JSeP9ogPMQS8Zg",
|
2675
2610
|
"side": "short",
|
2676
2611
|
"maxLev": 50,
|
2677
|
-
"degenMaxLev": 100,
|
2678
2612
|
"targetCustodyId": 6,
|
2679
2613
|
"collateralCustodyId": 0,
|
2680
2614
|
"targetMint": "kmnooU2T6dYeVvPcwFjtNwDdgfNtAY6qs8tnxacZQxb",
|
@@ -2844,7 +2778,6 @@
|
|
2844
2778
|
"collateralCustody": "DtmPaayiEidB5VQEZXCv5g54F5aaTguCQXck13wfE7Sp",
|
2845
2779
|
"side": "long",
|
2846
2780
|
"maxLev": 25,
|
2847
|
-
"degenMaxLev": 50,
|
2848
2781
|
"targetCustodyId": 1,
|
2849
2782
|
"collateralCustodyId": 1,
|
2850
2783
|
"targetMint": "bonkmzC5QamYYD9LE73evR6UH49ojDxsFt9Juwqsx7h",
|
@@ -2859,7 +2792,6 @@
|
|
2859
2792
|
"collateralCustody": "9ikjiYhjcNhGF7t6zfsDpXh2MwCT2ydm5rFsB4yN3XEs",
|
2860
2793
|
"side": "short",
|
2861
2794
|
"maxLev": 25,
|
2862
|
-
"degenMaxLev": 50,
|
2863
2795
|
"targetCustodyId": 1,
|
2864
2796
|
"collateralCustodyId": 0,
|
2865
2797
|
"targetMint": "bonkmzC5QamYYD9LE73evR6UH49ojDxsFt9Juwqsx7h",
|
@@ -2874,7 +2806,6 @@
|
|
2874
2806
|
"collateralCustody": "D3o8xWXiaCx3JfWAFn2PGtGVChXUM2NtA7zLLZ7jSY4Z",
|
2875
2807
|
"side": "long",
|
2876
2808
|
"maxLev": 25,
|
2877
|
-
"degenMaxLev": 50,
|
2878
2809
|
"targetCustodyId": 2,
|
2879
2810
|
"collateralCustodyId": 2,
|
2880
2811
|
"targetMint": "pguzpUxEhB5Rd3dUhioFBQd8RTkQzrkE4JBenyC86ZU",
|
@@ -2889,7 +2820,6 @@
|
|
2889
2820
|
"collateralCustody": "9ikjiYhjcNhGF7t6zfsDpXh2MwCT2ydm5rFsB4yN3XEs",
|
2890
2821
|
"side": "short",
|
2891
2822
|
"maxLev": 25,
|
2892
|
-
"degenMaxLev": 50,
|
2893
2823
|
"targetCustodyId": 2,
|
2894
2824
|
"collateralCustodyId": 0,
|
2895
2825
|
"targetMint": "pguzpUxEhB5Rd3dUhioFBQd8RTkQzrkE4JBenyC86ZU",
|
@@ -2904,7 +2834,6 @@
|
|
2904
2834
|
"collateralCustody": "Bv7YRye9mwbiCV9xyb2atMtTsCn2Uba47GYUscM9hgC7",
|
2905
2835
|
"side": "long",
|
2906
2836
|
"maxLev": 10,
|
2907
|
-
"degenMaxLev": 20,
|
2908
2837
|
"targetCustodyId": 3,
|
2909
2838
|
"collateralCustodyId": 3,
|
2910
2839
|
"targetMint": "pmp57jCjZ4iLnerDjsUc9gT1HUwcUG6Fbq3CriowiCm",
|
@@ -2919,7 +2848,6 @@
|
|
2919
2848
|
"collateralCustody": "9ikjiYhjcNhGF7t6zfsDpXh2MwCT2ydm5rFsB4yN3XEs",
|
2920
2849
|
"side": "short",
|
2921
2850
|
"maxLev": 10,
|
2922
|
-
"degenMaxLev": 20,
|
2923
2851
|
"targetCustodyId": 3,
|
2924
2852
|
"collateralCustodyId": 0,
|
2925
2853
|
"targetMint": "pmp57jCjZ4iLnerDjsUc9gT1HUwcUG6Fbq3CriowiCm",
|
@@ -3033,7 +2961,6 @@
|
|
3033
2961
|
"collateralCustody": "8Z94RGNLFuAxxgi3e4TQ2mxsmD4JJypxFTVaTw5BANC7",
|
3034
2962
|
"side": "long",
|
3035
2963
|
"maxLev": 25,
|
3036
|
-
"degenMaxLev": 50,
|
3037
2964
|
"targetCustodyId": 1,
|
3038
2965
|
"collateralCustodyId": 1,
|
3039
2966
|
"targetMint": "wif1hWbc3yHA6ij5iPLhnMV19EDFcN6WETVP3QV16dQ",
|
@@ -3048,7 +2975,6 @@
|
|
3048
2975
|
"collateralCustody": "6nMH1Yz7dDgqE4qiFP7FESD233zDBexuBsefGSshAJnM",
|
3049
2976
|
"side": "short",
|
3050
2977
|
"maxLev": 25,
|
3051
|
-
"degenMaxLev": 50,
|
3052
2978
|
"targetCustodyId": 1,
|
3053
2979
|
"collateralCustodyId": 0,
|
3054
2980
|
"targetMint": "wif1hWbc3yHA6ij5iPLhnMV19EDFcN6WETVP3QV16dQ",
|
@@ -3162,7 +3088,6 @@
|
|
3162
3088
|
"collateralCustody": "F5JkHhc88PgvtPMdQfgZUZzbKDvbJPvSeDkZ2r2QL1P7",
|
3163
3089
|
"side": "long",
|
3164
3090
|
"maxLev": 10,
|
3165
|
-
"degenMaxLev": 20,
|
3166
3091
|
"targetCustodyId": 1,
|
3167
3092
|
"collateralCustodyId": 1,
|
3168
3093
|
"targetMint": "samcjumzkf9RJcLpEKgLoNcznnXBX2Zsgg3jmYdXyoi",
|
@@ -3177,7 +3102,6 @@
|
|
3177
3102
|
"collateralCustody": "AJWCQ8atLYkjKDQ2mBvRx2kUqwkADghZaWwJyk5rq86g",
|
3178
3103
|
"side": "short",
|
3179
3104
|
"maxLev": 10,
|
3180
|
-
"degenMaxLev": 20,
|
3181
3105
|
"targetCustodyId": 1,
|
3182
3106
|
"collateralCustodyId": 0,
|
3183
3107
|
"targetMint": "samcjumzkf9RJcLpEKgLoNcznnXBX2Zsgg3jmYdXyoi",
|
@@ -3291,7 +3215,6 @@
|
|
3291
3215
|
"collateralCustody": "EbH7fBbcTojR5P8kPDEFeUnFRGr5SXKWaavqtCgpH9G4",
|
3292
3216
|
"side": "long",
|
3293
3217
|
"maxLev": 25,
|
3294
|
-
"degenMaxLev": 50,
|
3295
3218
|
"targetCustodyId": 2,
|
3296
3219
|
"collateralCustodyId": 2,
|
3297
3220
|
"targetMint": "fartpRHniUMJ2dG3AFkFcmvDHptBSqBbttYwE3hKv5t",
|
@@ -3306,7 +3229,6 @@
|
|
3306
3229
|
"collateralCustody": "FheNnJ2RmuVCJFvHbhADFHwfQwnCX9nMhdsay1hxSmkv",
|
3307
3230
|
"side": "short",
|
3308
3231
|
"maxLev": 25,
|
3309
|
-
"degenMaxLev": 50,
|
3310
3232
|
"targetCustodyId": 2,
|
3311
3233
|
"collateralCustodyId": 0,
|
3312
3234
|
"targetMint": "fartpRHniUMJ2dG3AFkFcmvDHptBSqBbttYwE3hKv5t",
|
@@ -18,8 +18,8 @@ export declare class PositionAccount implements Position {
|
|
18
18
|
unsettledAmount: BN;
|
19
19
|
unsettledFeesUsd: BN;
|
20
20
|
cumulativeLockFeeSnapshot: BN;
|
21
|
-
|
22
|
-
|
21
|
+
takeProfitPrice: ContractOraclePrice;
|
22
|
+
stopLossPrice: ContractOraclePrice;
|
23
23
|
sizeDecimals: number;
|
24
24
|
lockedDecimals: number;
|
25
25
|
collateralDecimals: number;
|
@@ -28,5 +28,4 @@ export declare class PositionAccount implements Position {
|
|
28
28
|
static from(publicKey: PublicKey, parseData: Position): PositionAccount;
|
29
29
|
clone(): PositionAccount;
|
30
30
|
updatePositionData(position: Position): void;
|
31
|
-
isDegenMode(): boolean;
|
32
31
|
}
|
package/dist/PositionAccount.js
CHANGED
@@ -12,7 +12,6 @@ var __assign = (this && this.__assign) || function () {
|
|
12
12
|
};
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
14
14
|
exports.PositionAccount = void 0;
|
15
|
-
var anchor_1 = require("@coral-xyz/anchor");
|
16
15
|
var PositionAccount = (function () {
|
17
16
|
function PositionAccount(publicKey, parseData) {
|
18
17
|
this.publicKey = publicKey;
|
@@ -27,9 +26,6 @@ var PositionAccount = (function () {
|
|
27
26
|
PositionAccount.prototype.updatePositionData = function (position) {
|
28
27
|
Object.assign(this, __assign({}, position));
|
29
28
|
};
|
30
|
-
PositionAccount.prototype.isDegenMode = function () {
|
31
|
-
return this.degenSizeUsd.gt(new anchor_1.BN(0));
|
32
|
-
};
|
33
29
|
return PositionAccount;
|
34
30
|
}());
|
35
31
|
exports.PositionAccount = PositionAccount;
|