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