flash-sdk 2.0.22 → 2.0.24

Sign up to get free protection for your applications and to get access to all the features.
@@ -1078,771 +1078,6 @@ export declare class PerpetualsClient {
1078
1078
  referralRebateUsd: BN;
1079
1079
  };
1080
1080
  }>;
1081
- getCustodyOracleAccountKey: (poolName: string, tokenMint: PublicKey) => Promise<PublicKey>;
1082
- getCustodyTestOracleAccountKey: (poolName: string, tokenMint: PublicKey) => PublicKey;
1083
- getCustody: (poolName: string, tokenMint: PublicKey) => Promise<{
1084
- pool: PublicKey;
1085
- mint: PublicKey;
1086
- tokenAccount: PublicKey;
1087
- decimals: number;
1088
- isStable: boolean;
1089
- depegAdjustment: boolean;
1090
- isVirtual: boolean;
1091
- distributeRewards: boolean;
1092
- oracle: {
1093
- oracleAccount: PublicKey;
1094
- customOracleAccount: PublicKey;
1095
- oracleType: {
1096
- none?: Record<string, never>;
1097
- custom?: Record<string, never>;
1098
- pyth?: Record<string, never>;
1099
- };
1100
- maxDivergenceBps: BN;
1101
- maxConfBps: BN;
1102
- maxPriceAgeSec: BN;
1103
- };
1104
- pricing: {
1105
- tradeSpreadLong: BN;
1106
- tradeSpreadShort: BN;
1107
- swapSpread: BN;
1108
- minInitialLeverage: BN;
1109
- maxInitialLeverage: BN;
1110
- maxLeverage: BN;
1111
- minCollateralUsd: BN;
1112
- delaySeconds: BN;
1113
- maxUtilization: BN;
1114
- maxPositionLockedUsd: BN;
1115
- maxTotalLockedUsd: BN;
1116
- };
1117
- permissions: {
1118
- allowSwap: boolean;
1119
- allowAddLiquidity: boolean;
1120
- allowRemoveLiquidity: boolean;
1121
- allowOpenPosition: boolean;
1122
- allowClosePosition: boolean;
1123
- allowCollateralWithdrawal: boolean;
1124
- allowSizeChange: boolean;
1125
- allowLiquidation: boolean;
1126
- allowFlpStaking: boolean;
1127
- allowFeeDistribution: boolean;
1128
- allowUngatedTrading: boolean;
1129
- allowFeeDiscounts: boolean;
1130
- allowReferralRebates: boolean;
1131
- } | {
1132
- allowOpenPosition: boolean;
1133
- allowClosePosition: boolean;
1134
- allowCollateralWithdrawal: boolean;
1135
- allowSizeChange: boolean;
1136
- };
1137
- fees: {
1138
- mode: {
1139
- fixed?: Record<string, never>;
1140
- linear?: Record<string, never>;
1141
- };
1142
- swapIn: {
1143
- minFee: BN;
1144
- targetFee: BN;
1145
- maxFee: BN;
1146
- };
1147
- swapOut: {
1148
- minFee: BN;
1149
- targetFee: BN;
1150
- maxFee: BN;
1151
- };
1152
- stableSwapIn: {
1153
- minFee: BN;
1154
- targetFee: BN;
1155
- maxFee: BN;
1156
- };
1157
- stableSwapOut: {
1158
- minFee: BN;
1159
- targetFee: BN;
1160
- maxFee: BN;
1161
- };
1162
- addLiquidity: {
1163
- minFee: BN;
1164
- targetFee: BN;
1165
- maxFee: BN;
1166
- };
1167
- removeLiquidity: {
1168
- minFee: BN;
1169
- targetFee: BN;
1170
- maxFee: BN;
1171
- };
1172
- openPosition: BN;
1173
- closePosition: BN;
1174
- removeCollateral: BN;
1175
- };
1176
- borrowRate: {
1177
- baseRate: BN;
1178
- slope1: BN;
1179
- slope2: BN;
1180
- optimalUtilization: BN;
1181
- };
1182
- rewardThreshold: BN;
1183
- assets: {
1184
- collateral: BN;
1185
- owned: BN;
1186
- locked: BN;
1187
- };
1188
- feesStats: {
1189
- accrued: BN;
1190
- distributed: BN;
1191
- paid: BN;
1192
- rewardPerLpStaked: BN;
1193
- protocolFee: BN;
1194
- };
1195
- borrowRateState: {
1196
- currentRate: BN;
1197
- cumulativeLockFee: BN;
1198
- lastUpdate: BN;
1199
- };
1200
- bump: number;
1201
- tokenAccountBump: number;
1202
- owner: PublicKey;
1203
- stakeStats: {
1204
- pendingActivation: BN;
1205
- activeAmount: BN;
1206
- pendingDeactivation: BN;
1207
- deactivatedAmount: BN;
1208
- };
1209
- rewardSnapshot: BN;
1210
- unclaimedRewards: BN;
1211
- feeShareBps: BN;
1212
- isInitialized: boolean;
1213
- targetCustody: PublicKey;
1214
- collateralCustody: PublicKey;
1215
- side: {
1216
- none?: Record<string, never>;
1217
- long?: Record<string, never>;
1218
- short?: Record<string, never>;
1219
- };
1220
- correlation: boolean;
1221
- maxPayoffBps: BN;
1222
- openInterest: BN;
1223
- collectivePosition: {
1224
- openPositions: BN;
1225
- updateTime: BN;
1226
- averageEntryPrice: {
1227
- price: BN;
1228
- exponent: number;
1229
- };
1230
- sizeAmount: BN;
1231
- sizeUsd: BN;
1232
- lockedAmount: BN;
1233
- lockedUsd: BN;
1234
- collateralAmount: BN;
1235
- collateralUsd: BN;
1236
- unsettledFeeUsd: BN;
1237
- cumulativeLockFeeSnapshot: BN;
1238
- sizeDecimals: number;
1239
- lockedDecimals: number;
1240
- collateralDecimals: number;
1241
- };
1242
- targetCustodyId: BN;
1243
- collateralCustodyId: BN;
1244
- numSigners: number;
1245
- numSigned: number;
1246
- minSignatures: number;
1247
- instructionAccountsLen: number;
1248
- instructionDataLen: number;
1249
- instructionHash: BN;
1250
- signers: PublicKey[];
1251
- signed: number[];
1252
- price: BN;
1253
- expo: number;
1254
- conf: BN;
1255
- ema: BN;
1256
- publishTime: BN;
1257
- pools: PublicKey[];
1258
- collections: PublicKey[];
1259
- voltageMultiplier: {
1260
- volume: BN;
1261
- rewards: BN;
1262
- rebates: BN;
1263
- };
1264
- tradingDiscount: BN[];
1265
- referralRebate: BN[];
1266
- referralDiscount: BN;
1267
- inceptionTime: BN;
1268
- transferAuthorityBump: number;
1269
- perpetualsBump: number;
1270
- name: string;
1271
- flpMint: PublicKey;
1272
- oracleAuthority: PublicKey;
1273
- flpTokenAccount: PublicKey;
1274
- rewardCustody: PublicKey;
1275
- custodies: PublicKey[];
1276
- ratios: {
1277
- target: BN;
1278
- min: BN;
1279
- max: BN;
1280
- }[];
1281
- markets: PublicKey[];
1282
- maxAumUsd: BN;
1283
- aumUsd: BN;
1284
- totalStaked: {
1285
- pendingActivation: BN;
1286
- activeAmount: BN;
1287
- pendingDeactivation: BN;
1288
- deactivatedAmount: BN;
1289
- };
1290
- stakingFeeShareBps: BN;
1291
- flpMintBump: number;
1292
- flpTokenAccountBump: number;
1293
- market: PublicKey;
1294
- delegate: PublicKey;
1295
- openTime: BN;
1296
- updateTime: BN;
1297
- entryPrice: {
1298
- price: BN;
1299
- exponent: number;
1300
- };
1301
- sizeAmount: BN;
1302
- sizeUsd: BN;
1303
- lockedAmount: BN;
1304
- lockedUsd: BN;
1305
- collateralAmount: BN;
1306
- collateralUsd: BN;
1307
- unsettledAmount: BN;
1308
- unsettledFeesUsd: BN;
1309
- cumulativeLockFeeSnapshot: BN;
1310
- takeProfitPrice: {
1311
- price: BN;
1312
- exponent: number;
1313
- };
1314
- stopLossPrice: {
1315
- price: BN;
1316
- exponent: number;
1317
- };
1318
- sizeDecimals: number;
1319
- lockedDecimals: number;
1320
- collateralDecimals: number;
1321
- refererTradingAccount: PublicKey;
1322
- padding: BN[] | BN[];
1323
- nftMint: PublicKey;
1324
- level: number;
1325
- voltagePoints: BN;
1326
- stats: {
1327
- volumeUsd: BN;
1328
- lpRewardsUsd: BN;
1329
- referralRebateUsd: BN;
1330
- };
1331
- snapshot: {
1332
- volumeUsd: BN;
1333
- lpRewardsUsd: BN;
1334
- referralRebateUsd: BN;
1335
- };
1336
- }>;
1337
- getCustodies: (poolName: string) => Promise<{
1338
- pool: PublicKey;
1339
- mint: PublicKey;
1340
- tokenAccount: PublicKey;
1341
- decimals: number;
1342
- isStable: boolean;
1343
- depegAdjustment: boolean;
1344
- isVirtual: boolean;
1345
- distributeRewards: boolean;
1346
- oracle: {
1347
- oracleAccount: PublicKey;
1348
- customOracleAccount: PublicKey;
1349
- oracleType: {
1350
- none?: Record<string, never>;
1351
- custom?: Record<string, never>;
1352
- pyth?: Record<string, never>;
1353
- };
1354
- maxDivergenceBps: BN;
1355
- maxConfBps: BN;
1356
- maxPriceAgeSec: BN;
1357
- };
1358
- pricing: {
1359
- tradeSpreadLong: BN;
1360
- tradeSpreadShort: BN;
1361
- swapSpread: BN;
1362
- minInitialLeverage: BN;
1363
- maxInitialLeverage: BN;
1364
- maxLeverage: BN;
1365
- minCollateralUsd: BN;
1366
- delaySeconds: BN;
1367
- maxUtilization: BN;
1368
- maxPositionLockedUsd: BN;
1369
- maxTotalLockedUsd: BN;
1370
- };
1371
- permissions: {
1372
- allowSwap: boolean;
1373
- allowAddLiquidity: boolean;
1374
- allowRemoveLiquidity: boolean;
1375
- allowOpenPosition: boolean;
1376
- allowClosePosition: boolean;
1377
- allowCollateralWithdrawal: boolean;
1378
- allowSizeChange: boolean;
1379
- allowLiquidation: boolean;
1380
- allowFlpStaking: boolean;
1381
- allowFeeDistribution: boolean;
1382
- allowUngatedTrading: boolean;
1383
- allowFeeDiscounts: boolean;
1384
- allowReferralRebates: boolean;
1385
- } | {
1386
- allowOpenPosition: boolean;
1387
- allowClosePosition: boolean;
1388
- allowCollateralWithdrawal: boolean;
1389
- allowSizeChange: boolean;
1390
- };
1391
- fees: {
1392
- mode: {
1393
- fixed?: Record<string, never>;
1394
- linear?: Record<string, never>;
1395
- };
1396
- swapIn: {
1397
- minFee: BN;
1398
- targetFee: BN;
1399
- maxFee: BN;
1400
- };
1401
- swapOut: {
1402
- minFee: BN;
1403
- targetFee: BN;
1404
- maxFee: BN;
1405
- };
1406
- stableSwapIn: {
1407
- minFee: BN;
1408
- targetFee: BN;
1409
- maxFee: BN;
1410
- };
1411
- stableSwapOut: {
1412
- minFee: BN;
1413
- targetFee: BN;
1414
- maxFee: BN;
1415
- };
1416
- addLiquidity: {
1417
- minFee: BN;
1418
- targetFee: BN;
1419
- maxFee: BN;
1420
- };
1421
- removeLiquidity: {
1422
- minFee: BN;
1423
- targetFee: BN;
1424
- maxFee: BN;
1425
- };
1426
- openPosition: BN;
1427
- closePosition: BN;
1428
- removeCollateral: BN;
1429
- };
1430
- borrowRate: {
1431
- baseRate: BN;
1432
- slope1: BN;
1433
- slope2: BN;
1434
- optimalUtilization: BN;
1435
- };
1436
- rewardThreshold: BN;
1437
- assets: {
1438
- collateral: BN;
1439
- owned: BN;
1440
- locked: BN;
1441
- };
1442
- feesStats: {
1443
- accrued: BN;
1444
- distributed: BN;
1445
- paid: BN;
1446
- rewardPerLpStaked: BN;
1447
- protocolFee: BN;
1448
- };
1449
- borrowRateState: {
1450
- currentRate: BN;
1451
- cumulativeLockFee: BN;
1452
- lastUpdate: BN;
1453
- };
1454
- bump: number;
1455
- tokenAccountBump: number;
1456
- owner: PublicKey;
1457
- stakeStats: {
1458
- pendingActivation: BN;
1459
- activeAmount: BN;
1460
- pendingDeactivation: BN;
1461
- deactivatedAmount: BN;
1462
- };
1463
- rewardSnapshot: BN;
1464
- unclaimedRewards: BN;
1465
- feeShareBps: BN;
1466
- isInitialized: boolean;
1467
- targetCustody: PublicKey;
1468
- collateralCustody: PublicKey;
1469
- side: {
1470
- none?: Record<string, never>;
1471
- long?: Record<string, never>;
1472
- short?: Record<string, never>;
1473
- };
1474
- correlation: boolean;
1475
- maxPayoffBps: BN;
1476
- openInterest: BN;
1477
- collectivePosition: {
1478
- openPositions: BN;
1479
- updateTime: BN;
1480
- averageEntryPrice: {
1481
- price: BN;
1482
- exponent: number;
1483
- };
1484
- sizeAmount: BN;
1485
- sizeUsd: BN;
1486
- lockedAmount: BN;
1487
- lockedUsd: BN;
1488
- collateralAmount: BN;
1489
- collateralUsd: BN;
1490
- unsettledFeeUsd: BN;
1491
- cumulativeLockFeeSnapshot: BN;
1492
- sizeDecimals: number;
1493
- lockedDecimals: number;
1494
- collateralDecimals: number;
1495
- };
1496
- targetCustodyId: BN;
1497
- collateralCustodyId: BN;
1498
- numSigners: number;
1499
- numSigned: number;
1500
- minSignatures: number;
1501
- instructionAccountsLen: number;
1502
- instructionDataLen: number;
1503
- instructionHash: BN;
1504
- signers: PublicKey[];
1505
- signed: number[];
1506
- price: BN;
1507
- expo: number;
1508
- conf: BN;
1509
- ema: BN;
1510
- publishTime: BN;
1511
- pools: PublicKey[];
1512
- collections: PublicKey[];
1513
- voltageMultiplier: {
1514
- volume: BN;
1515
- rewards: BN;
1516
- rebates: BN;
1517
- };
1518
- tradingDiscount: BN[];
1519
- referralRebate: BN[];
1520
- referralDiscount: BN;
1521
- inceptionTime: BN;
1522
- transferAuthorityBump: number;
1523
- perpetualsBump: number;
1524
- name: string;
1525
- flpMint: PublicKey;
1526
- oracleAuthority: PublicKey;
1527
- flpTokenAccount: PublicKey;
1528
- rewardCustody: PublicKey;
1529
- custodies: PublicKey[];
1530
- ratios: {
1531
- target: BN;
1532
- min: BN;
1533
- max: BN;
1534
- }[];
1535
- markets: PublicKey[];
1536
- maxAumUsd: BN;
1537
- aumUsd: BN;
1538
- totalStaked: {
1539
- pendingActivation: BN;
1540
- activeAmount: BN;
1541
- pendingDeactivation: BN;
1542
- deactivatedAmount: BN;
1543
- };
1544
- stakingFeeShareBps: BN;
1545
- flpMintBump: number;
1546
- flpTokenAccountBump: number;
1547
- market: PublicKey;
1548
- delegate: PublicKey;
1549
- openTime: BN;
1550
- updateTime: BN;
1551
- entryPrice: {
1552
- price: BN;
1553
- exponent: number;
1554
- };
1555
- sizeAmount: BN;
1556
- sizeUsd: BN;
1557
- lockedAmount: BN;
1558
- lockedUsd: BN;
1559
- collateralAmount: BN;
1560
- collateralUsd: BN;
1561
- unsettledAmount: BN;
1562
- unsettledFeesUsd: BN;
1563
- cumulativeLockFeeSnapshot: BN;
1564
- takeProfitPrice: {
1565
- price: BN;
1566
- exponent: number;
1567
- };
1568
- stopLossPrice: {
1569
- price: BN;
1570
- exponent: number;
1571
- };
1572
- sizeDecimals: number;
1573
- lockedDecimals: number;
1574
- collateralDecimals: number;
1575
- refererTradingAccount: PublicKey;
1576
- padding: BN[] | BN[];
1577
- nftMint: PublicKey;
1578
- level: number;
1579
- voltagePoints: BN;
1580
- stats: {
1581
- volumeUsd: BN;
1582
- lpRewardsUsd: BN;
1583
- referralRebateUsd: BN;
1584
- };
1585
- snapshot: {
1586
- volumeUsd: BN;
1587
- lpRewardsUsd: BN;
1588
- referralRebateUsd: BN;
1589
- };
1590
- }[]>;
1591
- getCustodyMetas: (poolName: string) => Promise<any[]>;
1592
- getMultisig: () => Promise<{
1593
- pool: PublicKey;
1594
- mint: PublicKey;
1595
- tokenAccount: PublicKey;
1596
- decimals: number;
1597
- isStable: boolean;
1598
- depegAdjustment: boolean;
1599
- isVirtual: boolean;
1600
- distributeRewards: boolean;
1601
- oracle: {
1602
- oracleAccount: PublicKey;
1603
- customOracleAccount: PublicKey;
1604
- oracleType: {
1605
- none?: Record<string, never>;
1606
- custom?: Record<string, never>;
1607
- pyth?: Record<string, never>;
1608
- };
1609
- maxDivergenceBps: BN;
1610
- maxConfBps: BN;
1611
- maxPriceAgeSec: BN;
1612
- };
1613
- pricing: {
1614
- tradeSpreadLong: BN;
1615
- tradeSpreadShort: BN;
1616
- swapSpread: BN;
1617
- minInitialLeverage: BN;
1618
- maxInitialLeverage: BN;
1619
- maxLeverage: BN;
1620
- minCollateralUsd: BN;
1621
- delaySeconds: BN;
1622
- maxUtilization: BN;
1623
- maxPositionLockedUsd: BN;
1624
- maxTotalLockedUsd: BN;
1625
- };
1626
- permissions: {
1627
- allowSwap: boolean;
1628
- allowAddLiquidity: boolean;
1629
- allowRemoveLiquidity: boolean;
1630
- allowOpenPosition: boolean;
1631
- allowClosePosition: boolean;
1632
- allowCollateralWithdrawal: boolean;
1633
- allowSizeChange: boolean;
1634
- allowLiquidation: boolean;
1635
- allowFlpStaking: boolean;
1636
- allowFeeDistribution: boolean;
1637
- allowUngatedTrading: boolean;
1638
- allowFeeDiscounts: boolean;
1639
- allowReferralRebates: boolean;
1640
- } | {
1641
- allowOpenPosition: boolean;
1642
- allowClosePosition: boolean;
1643
- allowCollateralWithdrawal: boolean;
1644
- allowSizeChange: boolean;
1645
- };
1646
- fees: {
1647
- mode: {
1648
- fixed?: Record<string, never>;
1649
- linear?: Record<string, never>;
1650
- };
1651
- swapIn: {
1652
- minFee: BN;
1653
- targetFee: BN;
1654
- maxFee: BN;
1655
- };
1656
- swapOut: {
1657
- minFee: BN;
1658
- targetFee: BN;
1659
- maxFee: BN;
1660
- };
1661
- stableSwapIn: {
1662
- minFee: BN;
1663
- targetFee: BN;
1664
- maxFee: BN;
1665
- };
1666
- stableSwapOut: {
1667
- minFee: BN;
1668
- targetFee: BN;
1669
- maxFee: BN;
1670
- };
1671
- addLiquidity: {
1672
- minFee: BN;
1673
- targetFee: BN;
1674
- maxFee: BN;
1675
- };
1676
- removeLiquidity: {
1677
- minFee: BN;
1678
- targetFee: BN;
1679
- maxFee: BN;
1680
- };
1681
- openPosition: BN;
1682
- closePosition: BN;
1683
- removeCollateral: BN;
1684
- };
1685
- borrowRate: {
1686
- baseRate: BN;
1687
- slope1: BN;
1688
- slope2: BN;
1689
- optimalUtilization: BN;
1690
- };
1691
- rewardThreshold: BN;
1692
- assets: {
1693
- collateral: BN;
1694
- owned: BN;
1695
- locked: BN;
1696
- };
1697
- feesStats: {
1698
- accrued: BN;
1699
- distributed: BN;
1700
- paid: BN;
1701
- rewardPerLpStaked: BN;
1702
- protocolFee: BN;
1703
- };
1704
- borrowRateState: {
1705
- currentRate: BN;
1706
- cumulativeLockFee: BN;
1707
- lastUpdate: BN;
1708
- };
1709
- bump: number;
1710
- tokenAccountBump: number;
1711
- owner: PublicKey;
1712
- stakeStats: {
1713
- pendingActivation: BN;
1714
- activeAmount: BN;
1715
- pendingDeactivation: BN;
1716
- deactivatedAmount: BN;
1717
- };
1718
- rewardSnapshot: BN;
1719
- unclaimedRewards: BN;
1720
- feeShareBps: BN;
1721
- isInitialized: boolean;
1722
- targetCustody: PublicKey;
1723
- collateralCustody: PublicKey;
1724
- side: {
1725
- none?: Record<string, never>;
1726
- long?: Record<string, never>;
1727
- short?: Record<string, never>;
1728
- };
1729
- correlation: boolean;
1730
- maxPayoffBps: BN;
1731
- openInterest: BN;
1732
- collectivePosition: {
1733
- openPositions: BN;
1734
- updateTime: BN;
1735
- averageEntryPrice: {
1736
- price: BN;
1737
- exponent: number;
1738
- };
1739
- sizeAmount: BN;
1740
- sizeUsd: BN;
1741
- lockedAmount: BN;
1742
- lockedUsd: BN;
1743
- collateralAmount: BN;
1744
- collateralUsd: BN;
1745
- unsettledFeeUsd: BN;
1746
- cumulativeLockFeeSnapshot: BN;
1747
- sizeDecimals: number;
1748
- lockedDecimals: number;
1749
- collateralDecimals: number;
1750
- };
1751
- targetCustodyId: BN;
1752
- collateralCustodyId: BN;
1753
- numSigners: number;
1754
- numSigned: number;
1755
- minSignatures: number;
1756
- instructionAccountsLen: number;
1757
- instructionDataLen: number;
1758
- instructionHash: BN;
1759
- signers: PublicKey[];
1760
- signed: number[];
1761
- price: BN;
1762
- expo: number;
1763
- conf: BN;
1764
- ema: BN;
1765
- publishTime: BN;
1766
- pools: PublicKey[];
1767
- collections: PublicKey[];
1768
- voltageMultiplier: {
1769
- volume: BN;
1770
- rewards: BN;
1771
- rebates: BN;
1772
- };
1773
- tradingDiscount: BN[];
1774
- referralRebate: BN[];
1775
- referralDiscount: BN;
1776
- inceptionTime: BN;
1777
- transferAuthorityBump: number;
1778
- perpetualsBump: number;
1779
- name: string;
1780
- flpMint: PublicKey;
1781
- oracleAuthority: PublicKey;
1782
- flpTokenAccount: PublicKey;
1783
- rewardCustody: PublicKey;
1784
- custodies: PublicKey[];
1785
- ratios: {
1786
- target: BN;
1787
- min: BN;
1788
- max: BN;
1789
- }[];
1790
- markets: PublicKey[];
1791
- maxAumUsd: BN;
1792
- aumUsd: BN;
1793
- totalStaked: {
1794
- pendingActivation: BN;
1795
- activeAmount: BN;
1796
- pendingDeactivation: BN;
1797
- deactivatedAmount: BN;
1798
- };
1799
- stakingFeeShareBps: BN;
1800
- flpMintBump: number;
1801
- flpTokenAccountBump: number;
1802
- market: PublicKey;
1803
- delegate: PublicKey;
1804
- openTime: BN;
1805
- updateTime: BN;
1806
- entryPrice: {
1807
- price: BN;
1808
- exponent: number;
1809
- };
1810
- sizeAmount: BN;
1811
- sizeUsd: BN;
1812
- lockedAmount: BN;
1813
- lockedUsd: BN;
1814
- collateralAmount: BN;
1815
- collateralUsd: BN;
1816
- unsettledAmount: BN;
1817
- unsettledFeesUsd: BN;
1818
- cumulativeLockFeeSnapshot: BN;
1819
- takeProfitPrice: {
1820
- price: BN;
1821
- exponent: number;
1822
- };
1823
- stopLossPrice: {
1824
- price: BN;
1825
- exponent: number;
1826
- };
1827
- sizeDecimals: number;
1828
- lockedDecimals: number;
1829
- collateralDecimals: number;
1830
- refererTradingAccount: PublicKey;
1831
- padding: BN[] | BN[];
1832
- nftMint: PublicKey;
1833
- level: number;
1834
- voltagePoints: BN;
1835
- stats: {
1836
- volumeUsd: BN;
1837
- lpRewardsUsd: BN;
1838
- referralRebateUsd: BN;
1839
- };
1840
- snapshot: {
1841
- volumeUsd: BN;
1842
- lpRewardsUsd: BN;
1843
- referralRebateUsd: BN;
1844
- };
1845
- }>;
1846
1081
  getMarketPk(targetCustody: PublicKey, collateralCustody: PublicKey, side: Side): PublicKey;
1847
1082
  getPositionKey(owner: PublicKey, targetCustody: PublicKey, collateralCustody: PublicKey, side: Side): PublicKey;
1848
1083
  getPosition: (postionKey: PublicKey) => Promise<{
@@ -2904,8 +2139,8 @@ export declare class PerpetualsClient {
2904
2139
  addCustody: (poolName: string, tokenMint: PublicKey, isStable: boolean, isVirtual: boolean, oracle: OracleParams, pricing: PricingParams, permissions: Permissions, fees: Fees, borrowRate: BorrowRateParams, ratios: TokenRatios[], depegAdjustment: boolean) => Promise<void>;
2905
2140
  editCustody: (poolName: string, tokenMint: PublicKey, isStable: boolean, oracle: OracleParams, pricing: PricingParams, permissions: Permissions, fees: Fees, borrowRate: BorrowRateParams, ratios: TokenRatios[]) => Promise<void>;
2906
2141
  removeCustody: (poolName: string, tokenMint: PublicKey, ratios: TokenRatios[]) => Promise<void>;
2907
- getLiquidationState: (wallet: PublicKey, poolName: string, tokenMint: PublicKey, collateralMint: PublicKey, side: Side, poolConfig: PoolConfig) => Promise<any>;
2908
- liquidate: (positionAccount: PublicKey, poolName: string, tokenMint: PublicKey, collateralMint: PublicKey, marketPk: PublicKey) => Promise<string>;
2142
+ getLiquidationState: (positionAccount: PublicKey, poolName: string, tokenMint: PublicKey, collateralMint: PublicKey, poolConfig: PoolConfig) => Promise<any>;
2143
+ liquidate: (positionAccount: PublicKey, poolConfig: PoolConfig, tokenMint: PublicKey, collateralMint: PublicKey, marketPk: PublicKey) => Promise<TransactionInstruction>;
2909
2144
  getAddLiquidityAmountAndFeeSync: (amountIn: BN, poolAccount: PoolAccount, inputTokenPrice: OraclePrice, inputTokenEmaPrice: OraclePrice, inputTokenCustodyAccount: CustodyAccount, lpTokenSupplyAmount: BN, poolAumUsdMax: BN, poolConfig: PoolConfig) => AddLiquidityAmountAndFee;
2910
2145
  getRemoveLiquidityAmountAndFeeSync: (lpAmountIn: BN, poolAccount: PoolAccount, outputTokenPrice: OraclePrice, outputTokenEmaPrice: OraclePrice, outputTokenCustodyAccount: CustodyAccount, lpTokenSupply: BN, poolAumUsdMax: BN, poolConfig: PoolConfig) => RemoveLiquidityAmountAndFee;
2911
2146
  private getNewRatioHelper;
@@ -3036,22 +2271,6 @@ export declare class PerpetualsClient {
3036
2271
  instructions: TransactionInstruction[];
3037
2272
  additionalSigners: Signer[];
3038
2273
  }>;
3039
- activeStake: (rewardSymbol: string, poolName: string, poolConfig: PoolConfig) => Promise<{
3040
- instructions: TransactionInstruction[];
3041
- additionalSigners: Signer[];
3042
- }>;
3043
- unstakeRequest: (unstakeAmount: BN, poolName: string, poolConfig: PoolConfig) => Promise<{
3044
- instructions: TransactionInstruction[];
3045
- additionalSigners: Signer[];
3046
- }>;
3047
- deactiveStake: (rewardSymbol: string, poolName: string, poolConfig: PoolConfig) => Promise<{
3048
- instructions: TransactionInstruction[];
3049
- additionalSigners: Signer[];
3050
- }>;
3051
- withdrawStake: (withdrawAmount: BN, poolName: string, poolConfig: PoolConfig) => Promise<{
3052
- instructions: TransactionInstruction[];
3053
- additionalSigners: Signer[];
3054
- }>;
3055
2274
  setPoolConfig: (permissions: Permissions, oracleAuthority: PublicKey, maxAumUsd: BN, stakingFeeShareBps: BN, poolConfig: PoolConfig) => Promise<{
3056
2275
  instructions: TransactionInstruction[];
3057
2276
  additionalSigners: Signer[];