flash-sdk 2.3.0 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -2156,7 +2156,7 @@ export declare class PerpetualsClient {
|
|
2156
2156
|
getAddLiquidityAmountAndFeeSync: (amountIn: BN, poolAccount: PoolAccount, inputTokenPrice: OraclePrice, inputTokenEmaPrice: OraclePrice, inputTokenCustodyAccount: CustodyAccount, lpTokenSupplyAmount: BN, poolAumUsdMax: BN, poolConfig: PoolConfig) => AddLiquidityAmountAndFee;
|
2157
2157
|
getRemoveLiquidityAmountAndFeeSync: (lpAmountIn: BN, poolAccount: PoolAccount, outputTokenPrice: OraclePrice, outputTokenEmaPrice: OraclePrice, outputTokenCustodyAccount: CustodyAccount, lpTokenSupply: BN, poolAumUsdMax: BN, poolConfig: PoolConfig) => RemoveLiquidityAmountAndFee;
|
2158
2158
|
private getNewRatioHelper;
|
2159
|
-
getFeeHelper: (action: FeesAction, amountAdd: BN, amountRemove: BN, inputTokenCustodyAccount: CustodyAccount,
|
2159
|
+
getFeeHelper: (action: FeesAction, amountAdd: BN, amountRemove: BN, inputTokenCustodyAccount: CustodyAccount, maxOraclePrice: OraclePrice, poolAumUsdMax: BN, poolAccount: PoolAccount, poolConfig: PoolConfig) => {
|
2160
2160
|
feeBps: BN;
|
2161
2161
|
feeAmount: BN;
|
2162
2162
|
};
|
@@ -2170,8 +2170,7 @@ export declare class PerpetualsClient {
|
|
2170
2170
|
getLeverageSync: (sizeUsd: BN, collateralAmount: BN, collateralMinOraclePrice: OraclePrice, collateralTokenDecimals: number, pnlUsd: BN) => BN;
|
2171
2171
|
getLeverageAtAmountEntryWithSwapSync: (positionAccount: PositionAccount | null, inputDeltaAmount: BN, sizeDeltaAmount: BN, side: Side, poolAccount: PoolAccount, inputTokenPrice: OraclePrice, inputTokenEmaPrice: OraclePrice, inputTokenCustodyAccount: CustodyAccount, swapOutTokenPrice: OraclePrice, swapOutTokenEmaPrice: OraclePrice, swapOutTokenCustodyAccount: CustodyAccount, collateralTokenPrice: OraclePrice, collateralTokenEmaPrice: OraclePrice, collateralTokenCustodyAccount: CustodyAccount, targetTokenPrice: OraclePrice, targetTokenEmaPrice: OraclePrice, targetTokenCustodyAccount: CustodyAccount, swapPoolAumUsdMax: BN, poolConfigPosition: PoolConfig, poolConfigSwap: PoolConfig, pnlUsd: BN) => BN;
|
2172
2172
|
getEntryPriceAndFeeSync: (positionAccount: PositionAccount | null, marketCorrelation: boolean, collateralDeltaAmount: BN, sizeDeltaAmount: BN, side: Side, targetPrice: OraclePrice, targetEmaPrice: OraclePrice, targetCustodyAccount: CustodyAccount, collateralPrice: OraclePrice, collateralEmaPrice: OraclePrice, collateralCustodyAccount: CustodyAccount, currentTimestamp: BN, discountBps?: BN) => EntryPriceAndFee;
|
2173
|
-
getEntryPriceUsdSync: (side: Side, targetPrice: OraclePrice, targetEmaPrice: OraclePrice, targetCustodyAccount: CustodyAccount) =>
|
2174
|
-
getPriceAfterSlippageOld(isEntry: boolean, slippageBps: BN, targetPrice: OraclePrice, targetEmaPrice: OraclePrice, side: Side, custody: CustodyAccount): ContractOraclePrice;
|
2173
|
+
getEntryPriceUsdSync: (side: Side, targetPrice: OraclePrice, targetEmaPrice: OraclePrice, targetCustodyAccount: CustodyAccount) => OraclePrice;
|
2175
2174
|
getPriceAfterSlippage(isEntry: boolean, slippageBps: BN, targetPrice: OraclePrice, side: Side): ContractOraclePrice;
|
2176
2175
|
getExitFeeSync: (positionAccount: PositionAccount, targetCustody: CustodyAccount, collateralCustodyAccount: CustodyAccount, collateralPrice: OraclePrice, collateralEmaPrice: OraclePrice, discountBps?: BN) => {
|
2177
2176
|
exitFeeAmount: BN;
|
@@ -2192,8 +2191,8 @@ export declare class PerpetualsClient {
|
|
2192
2191
|
getMaxWithdrawableAmountSync: (positionAccount: PositionAccount, targetPrice: OraclePrice, targetEmaPrice: OraclePrice, targetCustodyAccount: CustodyAccount, collateralPrice: OraclePrice, collateralEmaPrice: OraclePrice, collateralCustodyAccount: CustodyAccount, currentTimestamp: BN, poolConfig: PoolConfig, errorBandwidthPercentageUi?: number) => BN;
|
2193
2192
|
getCumulativeLockFeeSync: (custodyAccount: CustodyAccount, currentTimestamp: BN) => BN;
|
2194
2193
|
getLockFeeAndUnsettledUsdForPosition: (position: PositionAccount, collateralCustodyAccount: CustodyAccount, currentTimestamp: BN) => BN;
|
2195
|
-
getLiquidationPriceSync: (collateralAmount: BN, sizeAmount: BN,
|
2196
|
-
getMaxProfitPriceSync: (
|
2194
|
+
getLiquidationPriceSync: (collateralAmount: BN, sizeAmount: BN, entryOraclePrice: OraclePrice, lockAndUnsettledFeeUsd: BN, marketCorrelation: boolean, side: Side, custodyAccount: CustodyAccount, collateralPrice: OraclePrice, collateralEmaPrice: OraclePrice, collateralCustodyAccount: CustodyAccount, positionAccount: PositionAccount) => OraclePrice;
|
2195
|
+
getMaxProfitPriceSync: (entryPrice: OraclePrice, marketCorrelation: boolean, side: Side, positionAccount: PositionAccount) => BN | OraclePrice;
|
2197
2196
|
getPnlSync: (positionAccount: PositionAccount, targetTokenPrice: OraclePrice, targetTokenEmaPrice: OraclePrice, targetCustodyAccount: CustodyAccount, collateralPrice: OraclePrice, collateralEmaPrice: OraclePrice, collateralCustodyAccount: CustodyAccount, currentTimestamp: BN, delay: BN, poolConfig: PoolConfig) => {
|
2198
2197
|
profitUsd: BN;
|
2199
2198
|
lossUsd: BN;
|
package/dist/PerpetualsClient.js
CHANGED
@@ -584,7 +584,7 @@ var PerpetualsClient = (function () {
|
|
584
584
|
throw new Error("exponent mistach");
|
585
585
|
}
|
586
586
|
var minMaxPrice = _this.getMinAndMaxOraclePriceSync(inputTokenPrice, inputTokenEmaPrice, inputTokenCustodyAccount);
|
587
|
-
var fee = _this.getFeeHelper(types_1.FeesAction.AddLiquidity, amountIn, constants_1.BN_ZERO, inputTokenCustodyAccount, minMaxPrice.max
|
587
|
+
var fee = _this.getFeeHelper(types_1.FeesAction.AddLiquidity, amountIn, constants_1.BN_ZERO, inputTokenCustodyAccount, minMaxPrice.max, poolAumUsdMax, poolAccount, poolConfig).feeAmount;
|
588
588
|
var tokenAmountUsd = minMaxPrice.min.getAssetAmountUsd((amountIn.sub(fee)), inputTokenCustodyAccount.decimals);
|
589
589
|
var lpTokenOut;
|
590
590
|
if (poolAumUsdMax.isZero()) {
|
@@ -612,13 +612,13 @@ var PerpetualsClient = (function () {
|
|
612
612
|
else {
|
613
613
|
removeAmount = minMaxPrice.max.getTokenAmount(removeAmountUsd, outputTokenCustodyAccount.decimals);
|
614
614
|
}
|
615
|
-
var fee = _this.getFeeHelper(types_1.FeesAction.RemoveLiquidity, constants_1.BN_ZERO, removeAmount, outputTokenCustodyAccount, minMaxPrice.max
|
615
|
+
var fee = _this.getFeeHelper(types_1.FeesAction.RemoveLiquidity, constants_1.BN_ZERO, removeAmount, outputTokenCustodyAccount, minMaxPrice.max, poolAumUsdMax, poolAccount, poolConfig).feeAmount;
|
616
616
|
return {
|
617
617
|
tokenAmountOut: removeAmount.sub(fee),
|
618
618
|
fee: fee,
|
619
619
|
};
|
620
620
|
};
|
621
|
-
this.getFeeHelper = function (action, amountAdd, amountRemove, inputTokenCustodyAccount,
|
621
|
+
this.getFeeHelper = function (action, amountAdd, amountRemove, inputTokenCustodyAccount, maxOraclePrice, poolAumUsdMax, poolAccount, poolConfig) {
|
622
622
|
var fees;
|
623
623
|
switch (action) {
|
624
624
|
case types_1.FeesAction.AddLiquidity:
|
@@ -637,7 +637,7 @@ var PerpetualsClient = (function () {
|
|
637
637
|
if (inputTokenCustodyAccount.fees.mode == types_1.FeesMode.Fixed) {
|
638
638
|
return { feeBps: fees.minFee, feeAmount: anchor_1.BN.max(amountAdd, amountRemove).mul(fees.minFee).div(new anchor_1.BN(constants_1.RATE_POWER)) };
|
639
639
|
}
|
640
|
-
var newRatio = _this.getNewRatioHelper(amountAdd, amountRemove, inputTokenCustodyAccount,
|
640
|
+
var newRatio = _this.getNewRatioHelper(amountAdd, amountRemove, inputTokenCustodyAccount, maxOraclePrice, poolAumUsdMax);
|
641
641
|
var inputCustodyConfig = poolConfig.custodies.find(function (i) { return i.custodyAccount.equals(inputTokenCustodyAccount.publicKey); });
|
642
642
|
var index = inputCustodyConfig.custodyId;
|
643
643
|
var ratios = poolAccount.ratios[index];
|
@@ -800,11 +800,10 @@ var PerpetualsClient = (function () {
|
|
800
800
|
finalCollateralAmount = swapAmountOut;
|
801
801
|
}
|
802
802
|
}
|
803
|
-
var
|
803
|
+
var entryOraclePrice = _this.getEntryPriceUsdSync(side, targetTokenPrice, targetTokenEmaPrice, targetTokenCustodyAccount);
|
804
804
|
var openFeeUsd = constants_1.BN_ZERO;
|
805
805
|
if (sizeDeltaAmount != constants_1.BN_ZERO) {
|
806
|
-
var
|
807
|
-
var sizeDeltaUsd = newEntryPriceOracle.getAssetAmountUsd(sizeDeltaAmount, targetTokenCustodyAccount.decimals);
|
806
|
+
var sizeDeltaUsd = entryOraclePrice.getAssetAmountUsd(sizeDeltaAmount, targetTokenCustodyAccount.decimals);
|
808
807
|
openFeeUsd = sizeDeltaUsd.mul(targetTokenCustodyAccount.fees.openPosition).div(new anchor_1.BN(constants_1.RATE_POWER));
|
809
808
|
}
|
810
809
|
if (positionAccount === null) {
|
@@ -820,14 +819,13 @@ var PerpetualsClient = (function () {
|
|
820
819
|
timestamp: constants_1.BN_ZERO
|
821
820
|
})
|
822
821
|
.scale_to_exponent(new anchor_1.BN(-1 * constants_1.USD_DECIMALS));
|
823
|
-
|
822
|
+
entryOraclePrice.price = _this.getAveragePriceSync(positionEntryPrice.price, positionAccount.sizeAmount, entryOraclePrice.price, sizeDeltaAmount);
|
824
823
|
}
|
825
824
|
var collateralMinOraclePrice = _this.getMinAndMaxOraclePriceSync(collateralTokenPrice, collateralTokenEmaPrice, collateralTokenCustodyAccount).min;
|
826
825
|
var collateralAmount = positionAccount.collateralAmount.add(finalCollateralAmount);
|
827
826
|
var currentCollateralUsd = collateralMinOraclePrice.getAssetAmountUsd(collateralAmount, collateralTokenCustodyAccount.decimals);
|
828
827
|
var currentCollateralUsdIncludingPnl = currentCollateralUsd.add(pnlUsd).sub(openFeeUsd);
|
829
828
|
var sizeAmount = positionAccount.sizeAmount.add(sizeDeltaAmount);
|
830
|
-
var entryOraclePrice = new OraclePrice_1.OraclePrice({ price: entryPriceUsdBN, exponent: new anchor_1.BN(constants_1.USD_DECIMALS).neg(), confidence: targetTokenPrice.confidence, timestamp: targetTokenPrice.timestamp });
|
831
829
|
var sizeAmountUsd = entryOraclePrice.getAssetAmountUsd(sizeAmount, targetTokenCustodyAccount.decimals);
|
832
830
|
if (currentCollateralUsdIncludingPnl.gt(constants_1.BN_ZERO)) {
|
833
831
|
return sizeAmountUsd.mul(new anchor_1.BN(constants_1.BPS_POWER)).div(currentCollateralUsdIncludingPnl);
|
@@ -841,12 +839,11 @@ var PerpetualsClient = (function () {
|
|
841
839
|
if (collateralDeltaAmount.isNeg() || sizeDeltaAmount.isNeg()) {
|
842
840
|
throw new Error("Delta Amounts cannot be negative.");
|
843
841
|
}
|
844
|
-
var
|
845
|
-
var oracleEntryPrice = OraclePrice_1.OraclePrice.from({ price: entryPriceUsdBN, exponent: new anchor_1.BN(-1 * constants_1.USD_DECIMALS), confidence: constants_1.BN_ZERO, timestamp: constants_1.BN_ZERO });
|
842
|
+
var entryOraclePrice = _this.getEntryPriceUsdSync(side, targetPrice, targetEmaPrice, targetCustodyAccount);
|
846
843
|
if (positionAccount === null) {
|
847
844
|
var data = __assign({}, types_1.DEFAULT_POSITION);
|
848
845
|
positionAccount = PositionAccount_1.PositionAccount.from(web3_js_1.PublicKey.default, data);
|
849
|
-
var sizeUsd =
|
846
|
+
var sizeUsd = entryOraclePrice.getAssetAmountUsd(sizeDeltaAmount, targetCustodyAccount.decimals);
|
850
847
|
positionAccount.sizeUsd = sizeUsd;
|
851
848
|
positionAccount.sizeDecimals = targetCustodyAccount.decimals;
|
852
849
|
positionAccount.collateralDecimals = collateralCustodyAccount.decimals;
|
@@ -861,15 +858,14 @@ var PerpetualsClient = (function () {
|
|
861
858
|
timestamp: constants_1.BN_ZERO
|
862
859
|
})
|
863
860
|
.scale_to_exponent(new anchor_1.BN(-1 * constants_1.USD_DECIMALS));
|
864
|
-
|
865
|
-
var sizeDeltaUsd =
|
861
|
+
entryOraclePrice.price = _this.getAveragePriceSync(positionEntryPrice.price, positionAccount.sizeAmount, entryOraclePrice.price, sizeDeltaAmount);
|
862
|
+
var sizeDeltaUsd = entryOraclePrice.getAssetAmountUsd(sizeDeltaAmount, targetCustodyAccount.decimals);
|
866
863
|
positionAccount.sizeUsd = positionAccount.sizeUsd.add(sizeDeltaUsd);
|
867
864
|
}
|
868
865
|
positionAccount.collateralAmount = positionAccount.collateralAmount.add(collateralDeltaAmount);
|
869
866
|
positionAccount.sizeAmount = positionAccount.sizeAmount.add(sizeDeltaAmount);
|
870
867
|
var lockFeeUsd = _this.getLockFeeAndUnsettledUsdForPosition(positionAccount, collateralCustodyAccount, currentTimestamp);
|
871
|
-
var liquidationPrice = _this.getLiquidationPriceSync(positionAccount.collateralAmount, positionAccount.sizeAmount,
|
872
|
-
var entryOraclePrice = new OraclePrice_1.OraclePrice({ price: entryPriceUsdBN, exponent: new anchor_1.BN(constants_1.USD_DECIMALS).neg(), confidence: targetPrice.confidence, timestamp: targetPrice.timestamp });
|
868
|
+
var liquidationPrice = _this.getLiquidationPriceSync(positionAccount.collateralAmount, positionAccount.sizeAmount, entryOraclePrice, lockFeeUsd, marketCorrelation, side, targetCustodyAccount, collateralPrice, collateralEmaPrice, collateralCustodyAccount, positionAccount);
|
873
869
|
var sizeAmountUsd = entryOraclePrice.getAssetAmountUsd(sizeDeltaAmount, targetCustodyAccount.decimals);
|
874
870
|
var collateralTokenMinOraclePrice = _this.getMinAndMaxOraclePriceSync(collateralPrice, collateralEmaPrice, collateralCustodyAccount).min;
|
875
871
|
var feeUsd = constants_1.BN_ZERO;
|
@@ -892,7 +888,7 @@ var PerpetualsClient = (function () {
|
|
892
888
|
}
|
893
889
|
}
|
894
890
|
return {
|
895
|
-
|
891
|
+
entryOraclePrice: entryOraclePrice,
|
896
892
|
feeUsd: feeUsd,
|
897
893
|
feeAmount: feeAmount,
|
898
894
|
feeUsdAfterDiscount: feeUsdAfterDiscount,
|
@@ -901,11 +897,12 @@ var PerpetualsClient = (function () {
|
|
901
897
|
};
|
902
898
|
};
|
903
899
|
this.getEntryPriceUsdSync = function (side, targetPrice, targetEmaPrice, targetCustodyAccount) {
|
904
|
-
var _a = _this.
|
900
|
+
var _a = _this.getMinAndMaxOraclePriceSync(targetPrice, targetEmaPrice, targetCustodyAccount), minPrice = _a.min, maxPrice = _a.max;
|
905
901
|
var entryPriceBN = (0, types_1.isVariant)(side, 'long') === types_1.Side.Long ?
|
906
|
-
maxPrice.add(maxPrice.mul(targetCustodyAccount.pricing.tradeSpreadLong).div(new anchor_1.BN(constants_1.BPS_POWER))) :
|
907
|
-
minPrice.sub(minPrice.mul(targetCustodyAccount.pricing.tradeSpreadShort).div(new anchor_1.BN(constants_1.BPS_POWER)));
|
908
|
-
|
902
|
+
maxPrice.price.add(maxPrice.price.mul(targetCustodyAccount.pricing.tradeSpreadLong).div(new anchor_1.BN(constants_1.BPS_POWER))) :
|
903
|
+
minPrice.price.sub(minPrice.price.mul(targetCustodyAccount.pricing.tradeSpreadShort).div(new anchor_1.BN(constants_1.BPS_POWER)));
|
904
|
+
var entryOraclePrice = OraclePrice_1.OraclePrice.from({ price: entryPriceBN, exponent: maxPrice.exponent, confidence: maxPrice.confidence, timestamp: maxPrice.timestamp });
|
905
|
+
return entryOraclePrice;
|
909
906
|
};
|
910
907
|
this.getExitFeeSync = function (positionAccount, targetCustody, collateralCustodyAccount, collateralPrice, collateralEmaPrice, discountBps) {
|
911
908
|
if (discountBps === void 0) { discountBps = constants_1.BN_ZERO; }
|
@@ -953,9 +950,8 @@ var PerpetualsClient = (function () {
|
|
953
950
|
var positionEntryOraclePrice = new OraclePrice_1.OraclePrice({
|
954
951
|
price: positionAccount.entryPrice.price, exponent: new anchor_1.BN(positionAccount.entryPrice.exponent), confidence: constants_1.BN_ZERO, timestamp: constants_1.BN_ZERO
|
955
952
|
}).scale_to_exponent(new anchor_1.BN(-1 * constants_1.USD_DECIMALS));
|
956
|
-
var positionEntryPriceUsd = positionEntryOraclePrice.price;
|
957
953
|
resultingPositionAccount.sizeUsd = positionEntryOraclePrice.getAssetAmountUsd(resultingPositionAccount.sizeAmount, targetCustodyAccount.decimals);
|
958
|
-
var liquidationPrice = _this.getLiquidationPriceSync(resultingPositionAccount.collateralAmount, resultingPositionAccount.sizeAmount,
|
954
|
+
var liquidationPrice = _this.getLiquidationPriceSync(resultingPositionAccount.collateralAmount, resultingPositionAccount.sizeAmount, positionEntryOraclePrice, lockAndUnsettledFeeUsd, marketCorrelation, side, targetCustodyAccount, collateralPrice, collateralEmaPrice, collateralCustodyAccount, positionAccount);
|
959
955
|
return {
|
960
956
|
exitPrice: exitOraclePrice.scale_to_exponent(new anchor_1.BN(-1 * constants_1.USD_DECIMALS)).price,
|
961
957
|
borrowFeeUsd: lockAndUnsettledFeeUsd,
|
@@ -987,8 +983,8 @@ var PerpetualsClient = (function () {
|
|
987
983
|
if (discountBps === void 0) { discountBps = constants_1.BN_ZERO; }
|
988
984
|
var collateralTokenMinPrice = _this.getMinAndMaxPriceSync(collateralPrice, collateralEmaPrice, collateralCustodyAccount).min;
|
989
985
|
var collateralTokenMinPriceUi = new bignumber_js_1.default(collateralTokenMinPrice.toString()).dividedBy(Math.pow(10, constants_1.USD_DECIMALS));
|
990
|
-
var
|
991
|
-
var entryPriceUsdUi = new bignumber_js_1.default(
|
986
|
+
var entryOraclePrice = _this.getEntryPriceUsdSync(side, targetPrice, targetEmaPrice, targetCustodyAccount);
|
987
|
+
var entryPriceUsdUi = new bignumber_js_1.default(entryOraclePrice.toUiPrice(constants_1.ORACLE_EXPONENT));
|
992
988
|
var collateralAmtMinUsdUi = new bignumber_js_1.default(collateralAmtWithFee.toString()).dividedBy(Math.pow(10, collateralToken.decimals))
|
993
989
|
.multipliedBy(collateralTokenMinPriceUi);
|
994
990
|
var openPosFeeRateUi = new bignumber_js_1.default(targetCustodyAccount.fees.openPosition.toString()).dividedBy(Math.pow(10, constants_1.RATE_DECIMALS));
|
@@ -1014,8 +1010,8 @@ var PerpetualsClient = (function () {
|
|
1014
1010
|
}
|
1015
1011
|
var collateralTokenMinPrice = _this.getMinAndMaxPriceSync(collateralTokenPrice, collateralTokenEmaPrice, collateralTokenCustodyAccount).min;
|
1016
1012
|
var collateralTokenMinPriceUi = new bignumber_js_1.default(collateralTokenMinPrice.toString()).dividedBy(Math.pow(10, constants_1.USD_DECIMALS));
|
1017
|
-
var
|
1018
|
-
var entryPriceUsdUi = new bignumber_js_1.default(
|
1013
|
+
var entryOraclePrice = _this.getEntryPriceUsdSync(side, targetTokenPrice, targetTokenEmaPrice, targetTokenCustodyAccount);
|
1014
|
+
var entryPriceUsdUi = new bignumber_js_1.default(entryOraclePrice.toUiPrice(constants_1.ORACLE_EXPONENT));
|
1019
1015
|
var collateralAmtMinUsdUi = new bignumber_js_1.default(finalCollateralAmount.toString()).dividedBy(Math.pow(10, collateralTokenCustodyAccount.decimals))
|
1020
1016
|
.multipliedBy(collateralTokenMinPriceUi);
|
1021
1017
|
var openPosFeeRateUi = new bignumber_js_1.default(targetTokenCustodyAccount.fees.openPosition.toString()).dividedBy(Math.pow(10, constants_1.RATE_DECIMALS));
|
@@ -1032,8 +1028,8 @@ var PerpetualsClient = (function () {
|
|
1032
1028
|
if (discountBps === void 0) { discountBps = constants_1.BN_ZERO; }
|
1033
1029
|
var collateralTokenMinPrice = _this.getMinAndMaxPriceSync(collateralPrice, collateralEmaPrice, collateralCustodyAccount).min;
|
1034
1030
|
var collateralTokenMinPriceUi = new bignumber_js_1.default(collateralTokenMinPrice.toString()).dividedBy(Math.pow(10, constants_1.USD_DECIMALS));
|
1035
|
-
var
|
1036
|
-
var entryPriceUsdUi = new bignumber_js_1.default(
|
1031
|
+
var entryOraclePrice = _this.getEntryPriceUsdSync(side, targetPrice, targetEmaPrice, targetCustodyAccount);
|
1032
|
+
var entryPriceUsdUi = new bignumber_js_1.default(entryOraclePrice.toUiPrice(constants_1.ORACLE_EXPONENT));
|
1037
1033
|
var openPosFeeRateUi = new bignumber_js_1.default(targetCustodyAccount.fees.openPosition.toString()).dividedBy(Math.pow(10, constants_1.RATE_DECIMALS));
|
1038
1034
|
if (!discountBps.isZero()) {
|
1039
1035
|
var discountBpsUi = new bignumber_js_1.default(discountBps.toString()).dividedBy(Math.pow(10, constants_1.BPS_DECIMALS));
|
@@ -1048,8 +1044,8 @@ var PerpetualsClient = (function () {
|
|
1048
1044
|
this.getCollateralAmountWithSwapSync = function (sizeAmount, leverage, side, poolAccount, inputTokenPrice, inputTokenEmaPrice, inputTokenCustodyAccount, swapOutTokenPrice, swapOutTokenEmaPrice, swapOutTokenCustodyAccount, collateralTokenPrice, collateralTokenEmaPrice, collateralTokenCustodyAccount, targetTokenPrice, targetTokenEmaPrice, targetTokenCustodyAccount, swapPoolAumUsdMax, poolConfigPosition, poolConfigSwap) {
|
1049
1045
|
var collateralTokenMinPrice = _this.getMinAndMaxPriceSync(collateralTokenPrice, collateralTokenEmaPrice, collateralTokenCustodyAccount).min;
|
1050
1046
|
var collateralTokenMinPriceUi = new bignumber_js_1.default(collateralTokenMinPrice.toString()).dividedBy(Math.pow(10, constants_1.USD_DECIMALS));
|
1051
|
-
var
|
1052
|
-
var entryPriceUsdUi = new bignumber_js_1.default(
|
1047
|
+
var entryOraclePrice = _this.getEntryPriceUsdSync(side, targetTokenPrice, targetTokenEmaPrice, targetTokenCustodyAccount);
|
1048
|
+
var entryPriceUsdUi = new bignumber_js_1.default(entryOraclePrice.toUiPrice(constants_1.ORACLE_EXPONENT));
|
1053
1049
|
var openPosFeeRateUi = new bignumber_js_1.default(targetTokenCustodyAccount.fees.openPosition.toString()).dividedBy(Math.pow(10, constants_1.RATE_DECIMALS));
|
1054
1050
|
var sizeAmountUi = new bignumber_js_1.default(sizeAmount.toString()).dividedBy(Math.pow(10, targetTokenCustodyAccount.decimals));
|
1055
1051
|
var sizeUsdUi = entryPriceUsdUi.multipliedBy(sizeAmountUi);
|
@@ -1156,7 +1152,7 @@ var PerpetualsClient = (function () {
|
|
1156
1152
|
newPosition.collateralUsd = collateralMinMaxPrice.min.getAssetAmountUsd(newPosition.collateralAmount, collateralCustodyAccount.decimals);
|
1157
1153
|
var entryPrice = OraclePrice_1.OraclePrice.from({ price: newPosition.entryPrice.price, exponent: new anchor_1.BN(newPosition.entryPrice.exponent), confidence: constants_1.BN_ZERO, timestamp: constants_1.BN_ZERO });
|
1158
1154
|
var finalInterestUsd = _this.getLockFeeAndUnsettledUsdForPosition(newPosition, collateralCustodyAccount, currentTimestamp);
|
1159
|
-
var finalLiquidationPrice = _this.getLiquidationPriceSync(newPosition.collateralAmount, newPosition.sizeAmount, entryPrice
|
1155
|
+
var finalLiquidationPrice = _this.getLiquidationPriceSync(newPosition.collateralAmount, newPosition.sizeAmount, entryPrice, finalInterestUsd, marketCorrelation, side, targetCustodyAccount, collateralPrice, collateralEmaPrice, collateralCustodyAccount, newPosition);
|
1160
1156
|
var finalPnl = _this.getPnlSync(newPosition, targetPrice, targetEmaPrice, targetCustodyAccount, collateralPrice, collateralEmaPrice, collateralCustodyAccount, currentTimestamp, targetCustodyAccount.pricing.delaySeconds, poolConfig);
|
1161
1157
|
var finalPnlUsd = finalPnl.profitUsd.sub(finalPnl.lossUsd);
|
1162
1158
|
var newExitFee = _this.getExitFeeSync(newPosition, targetCustodyAccount, collateralCustodyAccount, collateralPrice, collateralEmaPrice);
|
@@ -1176,7 +1172,7 @@ var PerpetualsClient = (function () {
|
|
1176
1172
|
else {
|
1177
1173
|
var entryPrice = OraclePrice_1.OraclePrice.from({ price: newPosition.entryPrice.price, exponent: new anchor_1.BN(newPosition.entryPrice.exponent), confidence: constants_1.BN_ZERO, timestamp: constants_1.BN_ZERO });
|
1178
1174
|
var finalInterestUsd = _this.getLockFeeAndUnsettledUsdForPosition(newPosition, collateralCustodyAccount, currentTimestamp);
|
1179
|
-
var finalLiquidationPrice = _this.getLiquidationPriceSync(newPosition.collateralAmount, newPosition.sizeAmount, entryPrice
|
1175
|
+
var finalLiquidationPrice = _this.getLiquidationPriceSync(newPosition.collateralAmount, newPosition.sizeAmount, entryPrice, finalInterestUsd, marketCorrelation, side, targetCustodyAccount, collateralPrice, collateralEmaPrice, collateralCustodyAccount, newPosition);
|
1180
1176
|
var finalPnl = _this.getPnlSync(newPosition, targetPrice, targetEmaPrice, targetCustodyAccount, collateralPrice, collateralEmaPrice, collateralCustodyAccount, currentTimestamp, targetCustodyAccount.pricing.delaySeconds, poolConfig);
|
1181
1177
|
var finalPnlUsd = finalPnl.profitUsd.sub(finalPnl.lossUsd);
|
1182
1178
|
var exitFee = _this.getExitFeeSync(newPosition, targetCustodyAccount, collateralCustodyAccount, collateralPrice, collateralEmaPrice);
|
@@ -1277,73 +1273,133 @@ var PerpetualsClient = (function () {
|
|
1277
1273
|
lockFeeUsd = lockFeeUsd.add(position.unsettledFeesUsd);
|
1278
1274
|
return lockFeeUsd;
|
1279
1275
|
};
|
1280
|
-
this.getLiquidationPriceSync = function (collateralAmount, sizeAmount,
|
1276
|
+
this.getLiquidationPriceSync = function (collateralAmount, sizeAmount, entryOraclePrice, lockAndUnsettledFeeUsd, marketCorrelation, side, custodyAccount, collateralPrice, collateralEmaPrice, collateralCustodyAccount, positionAccount) {
|
1277
|
+
var zeroOraclePrice = OraclePrice_1.OraclePrice.from({
|
1278
|
+
price: constants_1.BN_ZERO,
|
1279
|
+
exponent: constants_1.BN_ZERO,
|
1280
|
+
confidence: constants_1.BN_ZERO,
|
1281
|
+
timestamp: constants_1.BN_ZERO
|
1282
|
+
});
|
1281
1283
|
if (collateralAmount.isZero() || sizeAmount.isZero()) {
|
1282
|
-
return
|
1284
|
+
return zeroOraclePrice;
|
1285
|
+
}
|
1286
|
+
if (positionAccount.entryPrice.exponent && !entryOraclePrice.exponent.eq(new anchor_1.BN(positionAccount.entryPrice.exponent))) {
|
1287
|
+
throw new Error("Exponent mismatch");
|
1283
1288
|
}
|
1284
1289
|
var exitFeeUsd = positionAccount.sizeUsd.mul(custodyAccount.fees.closePosition).div(new anchor_1.BN(constants_1.RATE_POWER));
|
1285
1290
|
var unsettledLossUsd = exitFeeUsd.add(lockAndUnsettledFeeUsd);
|
1286
|
-
var
|
1287
|
-
var
|
1288
|
-
|
1289
|
-
|
1290
|
-
if (currentCollateralUsd.gt(liablityThresholdUsd)) {
|
1291
|
-
nominalSolvency = true;
|
1292
|
-
}
|
1293
|
-
else {
|
1294
|
-
nominalSolvency = false;
|
1295
|
-
}
|
1296
|
-
var remainingMarginUsd, requiredMarginUsd;
|
1297
|
-
if (nominalSolvency) {
|
1298
|
-
remainingMarginUsd = currentCollateralUsd.sub(liablityThresholdUsd);
|
1299
|
-
requiredMarginUsd = constants_1.BN_ZERO;
|
1291
|
+
var liablitiesUsd = positionAccount.sizeUsd.mul(new anchor_1.BN(constants_1.BPS_POWER)).div(custodyAccount.pricing.maxLeverage).add(unsettledLossUsd);
|
1292
|
+
var assetsUsd = constants_1.BN_ZERO;
|
1293
|
+
if (marketCorrelation) {
|
1294
|
+
assetsUsd = positionAccount.collateralUsd;
|
1300
1295
|
}
|
1301
1296
|
else {
|
1302
|
-
|
1303
|
-
|
1297
|
+
var collateralMinPriceOracle = _this.getMinAndMaxOraclePriceSync(collateralPrice, collateralEmaPrice, collateralCustodyAccount).min;
|
1298
|
+
assetsUsd = collateralMinPriceOracle.getAssetAmountUsd(collateralAmount, collateralCustodyAccount.decimals);
|
1304
1299
|
}
|
1305
|
-
var liquidationPrice
|
1306
|
-
if ((0, types_1.isVariant)(side, 'long')) {
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1313
|
-
}
|
1314
|
-
|
1315
|
-
var pricePremium = (requiredMarginUsd.mul(new anchor_1.BN(10).pow(new anchor_1.BN(positionAccount.sizeDecimals)))).div(sizeAmount);
|
1316
|
-
liquidationPrice = entryPriceUsd.add(pricePremium);
|
1317
|
-
}
|
1300
|
+
var liquidationPrice;
|
1301
|
+
if (marketCorrelation && (0, types_1.isVariant)(side, 'long')) {
|
1302
|
+
var lp = OraclePrice_1.OraclePrice.from({
|
1303
|
+
price: (positionAccount.sizeUsd.add(liablitiesUsd)).mul(new anchor_1.BN(Math.pow(10, (positionAccount.sizeDecimals + 3))))
|
1304
|
+
.div(sizeAmount.add(positionAccount.collateralAmount)),
|
1305
|
+
exponent: new anchor_1.BN(-1 * constants_1.RATE_DECIMALS),
|
1306
|
+
confidence: constants_1.BN_ZERO,
|
1307
|
+
timestamp: constants_1.BN_ZERO
|
1308
|
+
});
|
1309
|
+
liquidationPrice = lp.scale_to_exponent(new anchor_1.BN(positionAccount.entryPrice.exponent));
|
1318
1310
|
}
|
1319
1311
|
else {
|
1320
|
-
if (
|
1321
|
-
var
|
1322
|
-
|
1312
|
+
if (assetsUsd.gte(liablitiesUsd)) {
|
1313
|
+
var priceDiffLossOracle = OraclePrice_1.OraclePrice.from({
|
1314
|
+
price: (assetsUsd.sub(liablitiesUsd)).mul(new anchor_1.BN(Math.pow(10, (positionAccount.sizeDecimals + 3))))
|
1315
|
+
.div(positionAccount.sizeAmount),
|
1316
|
+
exponent: new anchor_1.BN(-1 * constants_1.RATE_DECIMALS),
|
1317
|
+
confidence: constants_1.BN_ZERO,
|
1318
|
+
timestamp: constants_1.BN_ZERO
|
1319
|
+
}).scale_to_exponent(new anchor_1.BN(positionAccount.entryPrice.exponent));
|
1320
|
+
if ((0, types_1.isVariant)(side, 'long')) {
|
1321
|
+
liquidationPrice = OraclePrice_1.OraclePrice.from({
|
1322
|
+
price: entryOraclePrice.price.sub(priceDiffLossOracle.price),
|
1323
|
+
exponent: new anchor_1.BN(entryOraclePrice.exponent),
|
1324
|
+
confidence: constants_1.BN_ZERO,
|
1325
|
+
timestamp: constants_1.BN_ZERO
|
1326
|
+
});
|
1327
|
+
}
|
1328
|
+
else {
|
1329
|
+
liquidationPrice = OraclePrice_1.OraclePrice.from({
|
1330
|
+
price: entryOraclePrice.price.add(priceDiffLossOracle.price),
|
1331
|
+
exponent: new anchor_1.BN(entryOraclePrice.exponent),
|
1332
|
+
confidence: constants_1.BN_ZERO,
|
1333
|
+
timestamp: constants_1.BN_ZERO
|
1334
|
+
});
|
1335
|
+
}
|
1323
1336
|
}
|
1324
1337
|
else {
|
1325
|
-
var
|
1326
|
-
|
1338
|
+
var priceDiffProfitOracle = OraclePrice_1.OraclePrice.from({
|
1339
|
+
price: (liablitiesUsd.sub(assetsUsd)).mul(new anchor_1.BN(Math.pow(10, (positionAccount.sizeDecimals + 3))))
|
1340
|
+
.div(positionAccount.sizeAmount),
|
1341
|
+
exponent: new anchor_1.BN(-1 * constants_1.RATE_DECIMALS),
|
1342
|
+
confidence: constants_1.BN_ZERO,
|
1343
|
+
timestamp: constants_1.BN_ZERO
|
1344
|
+
}).scale_to_exponent(new anchor_1.BN(positionAccount.entryPrice.exponent));
|
1345
|
+
if ((0, types_1.isVariant)(side, 'long')) {
|
1346
|
+
liquidationPrice = OraclePrice_1.OraclePrice.from({
|
1347
|
+
price: entryOraclePrice.price.add(priceDiffProfitOracle.price),
|
1348
|
+
exponent: new anchor_1.BN(entryOraclePrice.exponent),
|
1349
|
+
confidence: constants_1.BN_ZERO,
|
1350
|
+
timestamp: constants_1.BN_ZERO
|
1351
|
+
});
|
1352
|
+
}
|
1353
|
+
else {
|
1354
|
+
liquidationPrice = OraclePrice_1.OraclePrice.from({
|
1355
|
+
price: entryOraclePrice.price.sub(priceDiffProfitOracle.price),
|
1356
|
+
exponent: new anchor_1.BN(entryOraclePrice.exponent),
|
1357
|
+
confidence: constants_1.BN_ZERO,
|
1358
|
+
timestamp: constants_1.BN_ZERO
|
1359
|
+
});
|
1360
|
+
}
|
1327
1361
|
}
|
1328
1362
|
}
|
1329
|
-
return liquidationPrice.isNeg() ?
|
1363
|
+
return liquidationPrice.price.isNeg() ? zeroOraclePrice : liquidationPrice;
|
1330
1364
|
};
|
1331
|
-
this.getMaxProfitPriceSync = function (
|
1365
|
+
this.getMaxProfitPriceSync = function (entryPrice, marketCorrelation, side, positionAccount) {
|
1366
|
+
var zeroOraclePrice = OraclePrice_1.OraclePrice.from({
|
1367
|
+
price: constants_1.BN_ZERO,
|
1368
|
+
exponent: constants_1.BN_ZERO,
|
1369
|
+
confidence: constants_1.BN_ZERO,
|
1370
|
+
timestamp: constants_1.BN_ZERO
|
1371
|
+
});
|
1332
1372
|
if (positionAccount.sizeAmount.isZero()) {
|
1333
|
-
return
|
1373
|
+
return zeroOraclePrice;
|
1334
1374
|
}
|
1335
|
-
var priceDiffProfit =
|
1336
|
-
|
1375
|
+
var priceDiffProfit = OraclePrice_1.OraclePrice.from({
|
1376
|
+
price: positionAccount.lockedUsd.mul(new anchor_1.BN(10).pow(new anchor_1.BN(positionAccount.sizeDecimals + 3)))
|
1377
|
+
.div(positionAccount.sizeAmount),
|
1378
|
+
exponent: new anchor_1.BN(-1 * constants_1.RATE_DECIMALS),
|
1379
|
+
confidence: constants_1.BN_ZERO,
|
1380
|
+
timestamp: constants_1.BN_ZERO
|
1381
|
+
}).scale_to_exponent(new anchor_1.BN(positionAccount.entryPrice.exponent));
|
1382
|
+
var maxProfitPrice;
|
1337
1383
|
if ((0, types_1.isVariant)(side, 'long')) {
|
1338
1384
|
if (marketCorrelation) {
|
1339
1385
|
return constants_1.BN_ZERO;
|
1340
1386
|
}
|
1341
|
-
maxProfitPrice =
|
1387
|
+
maxProfitPrice = OraclePrice_1.OraclePrice.from({
|
1388
|
+
price: entryPrice.price.add(priceDiffProfit.price),
|
1389
|
+
exponent: new anchor_1.BN(-1 * constants_1.RATE_DECIMALS),
|
1390
|
+
confidence: constants_1.BN_ZERO,
|
1391
|
+
timestamp: constants_1.BN_ZERO
|
1392
|
+
});
|
1342
1393
|
}
|
1343
1394
|
else {
|
1344
|
-
maxProfitPrice =
|
1395
|
+
maxProfitPrice = OraclePrice_1.OraclePrice.from({
|
1396
|
+
price: entryPrice.price.sub(priceDiffProfit.price),
|
1397
|
+
exponent: new anchor_1.BN(-1 * constants_1.RATE_DECIMALS),
|
1398
|
+
confidence: constants_1.BN_ZERO,
|
1399
|
+
timestamp: constants_1.BN_ZERO
|
1400
|
+
});
|
1345
1401
|
}
|
1346
|
-
return maxProfitPrice.isNeg() ?
|
1402
|
+
return maxProfitPrice.price.isNeg() ? zeroOraclePrice : maxProfitPrice;
|
1347
1403
|
};
|
1348
1404
|
this.getPnlSync = function (positionAccount, targetTokenPrice, targetTokenEmaPrice, targetCustodyAccount, collateralPrice, collateralEmaPrice, collateralCustodyAccount, currentTimestamp, delay, poolConfig) {
|
1349
1405
|
if (positionAccount.sizeUsd.isZero() || positionAccount.entryPrice.price.isZero()) {
|
@@ -1353,61 +1409,64 @@ var PerpetualsClient = (function () {
|
|
1353
1409
|
};
|
1354
1410
|
}
|
1355
1411
|
var side = poolConfig.getMarketConfigByPk(positionAccount.market).side;
|
1356
|
-
var
|
1412
|
+
var exitOraclePrice = _this.getExitOraclePriceSync(side, targetTokenPrice, targetTokenEmaPrice, targetCustodyAccount);
|
1357
1413
|
var collateralMinPrice = _this.getMinAndMaxOraclePriceSync(collateralPrice, collateralEmaPrice, collateralCustodyAccount).min;
|
1358
|
-
var
|
1414
|
+
var priceDiffProfit, priceDiffLoss;
|
1359
1415
|
var positionEntryPrice = OraclePrice_1.OraclePrice.from({
|
1360
1416
|
price: positionAccount.entryPrice.price,
|
1361
1417
|
exponent: new anchor_1.BN(positionAccount.entryPrice.exponent),
|
1362
1418
|
confidence: constants_1.BN_ZERO,
|
1363
1419
|
timestamp: constants_1.BN_ZERO
|
1364
|
-
})
|
1365
|
-
|
1420
|
+
});
|
1421
|
+
if (!exitOraclePrice.exponent.eq(positionEntryPrice.exponent)) {
|
1422
|
+
throw new Error("exponent mistach");
|
1423
|
+
}
|
1366
1424
|
if ((0, types_1.isVariant)(side, 'long')) {
|
1367
|
-
if (
|
1425
|
+
if (exitOraclePrice.price.gt(positionEntryPrice.price)) {
|
1368
1426
|
if (currentTimestamp.gt(positionAccount.updateTime.add(delay))) {
|
1369
|
-
|
1370
|
-
|
1427
|
+
priceDiffProfit = new OraclePrice_1.OraclePrice({ price: exitOraclePrice.price.sub(positionEntryPrice.price), exponent: exitOraclePrice.exponent, confidence: exitOraclePrice.confidence, timestamp: constants_1.BN_ZERO });
|
1428
|
+
priceDiffLoss = new OraclePrice_1.OraclePrice({ price: constants_1.BN_ZERO, exponent: exitOraclePrice.exponent, confidence: constants_1.BN_ZERO, timestamp: constants_1.BN_ZERO });
|
1371
1429
|
}
|
1372
1430
|
else {
|
1373
|
-
|
1374
|
-
|
1431
|
+
priceDiffProfit = new OraclePrice_1.OraclePrice({ price: constants_1.BN_ZERO, exponent: exitOraclePrice.exponent, confidence: constants_1.BN_ZERO, timestamp: constants_1.BN_ZERO });
|
1432
|
+
priceDiffLoss = new OraclePrice_1.OraclePrice({ price: constants_1.BN_ZERO, exponent: exitOraclePrice.exponent, confidence: constants_1.BN_ZERO, timestamp: constants_1.BN_ZERO });
|
1375
1433
|
}
|
1376
1434
|
}
|
1377
1435
|
else {
|
1378
|
-
|
1379
|
-
|
1436
|
+
priceDiffProfit = new OraclePrice_1.OraclePrice({ price: constants_1.BN_ZERO, exponent: exitOraclePrice.exponent, confidence: constants_1.BN_ZERO, timestamp: constants_1.BN_ZERO });
|
1437
|
+
priceDiffLoss = new OraclePrice_1.OraclePrice({ price: positionEntryPrice.price.sub(exitOraclePrice.price), exponent: exitOraclePrice.exponent, confidence: constants_1.BN_ZERO, timestamp: constants_1.BN_ZERO });
|
1380
1438
|
}
|
1381
1439
|
}
|
1382
1440
|
else {
|
1383
|
-
if (
|
1441
|
+
if (exitOraclePrice.price.lt(positionEntryPrice.price)) {
|
1384
1442
|
if (currentTimestamp.gt(positionAccount.updateTime.add(delay))) {
|
1385
|
-
|
1386
|
-
|
1443
|
+
priceDiffProfit = new OraclePrice_1.OraclePrice({ price: positionEntryPrice.price.sub(exitOraclePrice.price), exponent: exitOraclePrice.exponent, confidence: constants_1.BN_ZERO, timestamp: constants_1.BN_ZERO });
|
1444
|
+
priceDiffLoss = new OraclePrice_1.OraclePrice({ price: constants_1.BN_ZERO, exponent: exitOraclePrice.exponent, confidence: constants_1.BN_ZERO, timestamp: constants_1.BN_ZERO });
|
1387
1445
|
}
|
1388
1446
|
else {
|
1389
|
-
|
1390
|
-
|
1447
|
+
priceDiffProfit = new OraclePrice_1.OraclePrice({ price: constants_1.BN_ZERO, exponent: exitOraclePrice.exponent, confidence: constants_1.BN_ZERO, timestamp: constants_1.BN_ZERO });
|
1448
|
+
priceDiffLoss = new OraclePrice_1.OraclePrice({ price: constants_1.BN_ZERO, exponent: exitOraclePrice.exponent, confidence: constants_1.BN_ZERO, timestamp: constants_1.BN_ZERO });
|
1391
1449
|
}
|
1392
1450
|
}
|
1393
1451
|
else {
|
1394
|
-
|
1395
|
-
|
1452
|
+
priceDiffProfit = new OraclePrice_1.OraclePrice({ price: constants_1.BN_ZERO, exponent: exitOraclePrice.exponent, confidence: constants_1.BN_ZERO, timestamp: constants_1.BN_ZERO });
|
1453
|
+
priceDiffLoss = new OraclePrice_1.OraclePrice({ price: exitOraclePrice.price.sub(positionEntryPrice.price), exponent: exitOraclePrice.exponent, confidence: constants_1.BN_ZERO, timestamp: constants_1.BN_ZERO });
|
1396
1454
|
}
|
1397
1455
|
}
|
1398
1456
|
;
|
1399
|
-
|
1400
|
-
|
1401
|
-
|
1457
|
+
if (!priceDiffProfit.exponent.eq(priceDiffLoss.exponent)) {
|
1458
|
+
throw new Error("exponent mistach");
|
1459
|
+
}
|
1460
|
+
if (priceDiffProfit.price.gt(constants_1.BN_ZERO)) {
|
1402
1461
|
return {
|
1403
|
-
profitUsd: anchor_1.BN.min(
|
1462
|
+
profitUsd: anchor_1.BN.min(priceDiffProfit.getAssetAmountUsd(positionAccount.sizeAmount, positionAccount.sizeDecimals), collateralMinPrice.getAssetAmountUsd(positionAccount.lockedAmount, positionAccount.lockedDecimals)),
|
1404
1463
|
lossUsd: constants_1.BN_ZERO,
|
1405
1464
|
};
|
1406
1465
|
}
|
1407
1466
|
else {
|
1408
1467
|
return {
|
1409
1468
|
profitUsd: constants_1.BN_ZERO,
|
1410
|
-
lossUsd:
|
1469
|
+
lossUsd: priceDiffLoss.getAssetAmountUsd(positionAccount.sizeAmount, positionAccount.sizeDecimals),
|
1411
1470
|
};
|
1412
1471
|
}
|
1413
1472
|
};
|
@@ -1457,13 +1516,10 @@ var PerpetualsClient = (function () {
|
|
1457
1516
|
pairPrice = outputMinMaxPrice.min.price.mul(new anchor_1.BN(10).pow(outputMinMaxPrice.min.exponent)).div(inputMinMaxPrice.max.price);
|
1458
1517
|
}
|
1459
1518
|
var swapPrice = pairPrice.sub(pairPrice.mul(outputTokenCustodyAccount.pricing.swapSpread).div(new anchor_1.BN(constants_1.BPS_POWER)));
|
1460
|
-
console.log("NEWW swapPrice", swapPrice.toString());
|
1461
1519
|
inputTokenAmount = (0, utils_1.checkedDecimalMul)(amountOut, new anchor_1.BN(-1 * outputTokenCustodyAccount.decimals), swapPrice, inputMinMaxPrice.min.exponent, new anchor_1.BN(-1 * inputTokenCustodyAccount.decimals));
|
1462
|
-
|
1463
|
-
|
1464
|
-
feeOut = _this.getFeeHelper(types_1.FeesAction.SwapOut, constants_1.BN_ZERO, amountOut, outputTokenCustodyAccount, outputMinMaxPrice.max.price, poolAumUsdMax, poolAccount, poolConfig).feeAmount;
|
1520
|
+
feeIn = _this.getFeeHelper(types_1.FeesAction.SwapIn, inputTokenAmount, constants_1.BN_ZERO, inputTokenCustodyAccount, inputMinMaxPrice.max, poolAumUsdMax, poolAccount, poolConfig).feeAmount;
|
1521
|
+
feeOut = _this.getFeeHelper(types_1.FeesAction.SwapOut, constants_1.BN_ZERO, amountOut, outputTokenCustodyAccount, outputMinMaxPrice.max, poolAumUsdMax, poolAccount, poolConfig).feeAmount;
|
1465
1522
|
var swapAmount = (0, utils_1.checkedDecimalMul)(amountOut.add(feeOut), new anchor_1.BN(-1 * outputTokenCustodyAccount.decimals), swapPrice, inputMinMaxPrice.min.exponent, new anchor_1.BN(-1 * inputTokenCustodyAccount.decimals)).add(feeIn);
|
1466
|
-
console.log(" OUT => IN swapAmount :", swapAmount.toString());
|
1467
1523
|
return {
|
1468
1524
|
minAmountIn: swapAmount,
|
1469
1525
|
minAmountOut: constants_1.BN_ZERO,
|
@@ -1481,13 +1537,10 @@ var PerpetualsClient = (function () {
|
|
1481
1537
|
pairPrice = inputMinMaxPrice.min.price.mul(new anchor_1.BN(10).pow(inputMinMaxPrice.min.exponent)).div(outputMinMaxPrice.max.price);
|
1482
1538
|
}
|
1483
1539
|
var swapPrice = pairPrice.sub(pairPrice.mul(inputTokenCustodyAccount.pricing.swapSpread).div(new anchor_1.BN(constants_1.BPS_POWER)));
|
1484
|
-
console.log("NEWW swapPrice", swapPrice.toString());
|
1485
1540
|
outputTokenAmount = (0, utils_1.checkedDecimalMul)(amountIn, new anchor_1.BN(-1 * inputTokenCustodyAccount.decimals), swapPrice, inputMinMaxPrice.min.exponent, new anchor_1.BN(-1 * outputTokenCustodyAccount.decimals));
|
1486
|
-
|
1487
|
-
|
1488
|
-
feeOut = _this.getFeeHelper(types_1.FeesAction.SwapOut, constants_1.BN_ZERO, outputTokenAmount, outputTokenCustodyAccount, outputMinMaxPrice.max.price, poolAumUsdMax, poolAccount, poolConfig).feeAmount;
|
1541
|
+
feeIn = _this.getFeeHelper(types_1.FeesAction.SwapIn, amountIn, constants_1.BN_ZERO, inputTokenCustodyAccount, inputMinMaxPrice.max, poolAumUsdMax, poolAccount, poolConfig).feeAmount;
|
1542
|
+
feeOut = _this.getFeeHelper(types_1.FeesAction.SwapOut, constants_1.BN_ZERO, outputTokenAmount, outputTokenCustodyAccount, outputMinMaxPrice.max, poolAumUsdMax, poolAccount, poolConfig).feeAmount;
|
1489
1543
|
var swapAmount = (0, utils_1.checkedDecimalMul)(amountIn.sub(feeIn), new anchor_1.BN(-1 * inputTokenCustodyAccount.decimals), swapPrice, inputMinMaxPrice.min.exponent, new anchor_1.BN(-1 * outputTokenCustodyAccount.decimals)).sub(feeOut);
|
1490
|
-
console.log(" IN => OUT swapAmount :", swapAmount.toString());
|
1491
1544
|
return {
|
1492
1545
|
minAmountIn: constants_1.BN_ZERO,
|
1493
1546
|
minAmountOut: swapAmount,
|
@@ -4097,9 +4150,8 @@ var PerpetualsClient = (function () {
|
|
4097
4150
|
this.getMarketPk(targetCustody, collateralCustody, side),
|
4098
4151
|
]).publicKey;
|
4099
4152
|
};
|
4100
|
-
PerpetualsClient.prototype.getNewRatioHelper = function (amountAdd, amountRemove, custodyAccount,
|
4153
|
+
PerpetualsClient.prototype.getNewRatioHelper = function (amountAdd, amountRemove, custodyAccount, maxPriceOracle, poolAumUsdMax) {
|
4101
4154
|
var newRatio = constants_1.BN_ZERO;
|
4102
|
-
var maxPriceOracle = OraclePrice_1.OraclePrice.from({ price: new anchor_1.BN(maxPrice), exponent: new anchor_1.BN(-1 * constants_1.USD_DECIMALS), confidence: constants_1.BN_ZERO, timestamp: constants_1.BN_ZERO });
|
4103
4155
|
var tokenAumUsd = maxPriceOracle.getAssetAmountUsd(custodyAccount.assets.owned, custodyAccount.decimals);
|
4104
4156
|
if (amountAdd.gt(constants_1.BN_ZERO) && amountRemove.gt(constants_1.BN_ZERO)) {
|
4105
4157
|
throw new Error("cannot add and remove liquidity together");
|
@@ -4122,50 +4174,16 @@ var PerpetualsClient = (function () {
|
|
4122
4174
|
}
|
4123
4175
|
return newRatio;
|
4124
4176
|
};
|
4125
|
-
PerpetualsClient.prototype.getPriceAfterSlippageOld = function (isEntry, slippageBps, targetPrice, targetEmaPrice, side, custody) {
|
4126
|
-
if (isEntry) {
|
4127
|
-
var current_price_usd = this.getEntryPriceUsdSync(side, targetPrice, targetEmaPrice, custody);
|
4128
|
-
var spread_i = (0, utils_1.checkedDecimalCeilMul)(current_price_usd, new anchor_1.BN(-1 * constants_1.USD_DECIMALS), slippageBps, new anchor_1.BN(-1 * constants_1.BPS_DECIMALS), new anchor_1.BN(-1 * constants_1.USD_DECIMALS));
|
4129
|
-
if ((0, types_1.isVariant)(side, 'long')) {
|
4130
|
-
return { price: current_price_usd.add(spread_i), exponent: targetPrice.exponent.toNumber() };
|
4131
|
-
}
|
4132
|
-
else {
|
4133
|
-
if (spread_i.lt(current_price_usd)) {
|
4134
|
-
return { price: current_price_usd.sub(spread_i), exponent: targetPrice.exponent.toNumber() };
|
4135
|
-
}
|
4136
|
-
else {
|
4137
|
-
return { price: constants_1.BN_ZERO, exponent: targetPrice.exponent.toNumber() };
|
4138
|
-
}
|
4139
|
-
;
|
4140
|
-
}
|
4141
|
-
}
|
4142
|
-
else {
|
4143
|
-
var current_price = this.getExitPriceSync(side, targetPrice, targetEmaPrice, custody);
|
4144
|
-
var spread_i = (0, utils_1.checkedDecimalCeilMul)(current_price, new anchor_1.BN(-1 * constants_1.USD_DECIMALS), slippageBps, new anchor_1.BN(-1 * constants_1.BPS_DECIMALS), new anchor_1.BN(-1 * constants_1.USD_DECIMALS));
|
4145
|
-
if ((0, types_1.isVariant)(side, 'long')) {
|
4146
|
-
if (spread_i.lt(current_price)) {
|
4147
|
-
return { price: current_price.sub(spread_i), exponent: targetPrice.exponent.toNumber() };
|
4148
|
-
}
|
4149
|
-
else {
|
4150
|
-
return { price: constants_1.BN_ZERO, exponent: targetPrice.exponent.toNumber() };
|
4151
|
-
}
|
4152
|
-
;
|
4153
|
-
}
|
4154
|
-
else {
|
4155
|
-
return { price: current_price.add(spread_i), exponent: targetPrice.exponent.toNumber() };
|
4156
|
-
}
|
4157
|
-
}
|
4158
|
-
};
|
4159
4177
|
PerpetualsClient.prototype.getPriceAfterSlippage = function (isEntry, slippageBps, targetPrice, side) {
|
4160
4178
|
if (isEntry) {
|
4161
|
-
var
|
4162
|
-
var spread_i = (0, utils_1.checkedDecimalCeilMul)(
|
4179
|
+
var currentPrice = targetPrice.price;
|
4180
|
+
var spread_i = (0, utils_1.checkedDecimalCeilMul)(currentPrice, targetPrice.exponent, slippageBps, new anchor_1.BN(-1 * constants_1.BPS_DECIMALS), targetPrice.exponent);
|
4163
4181
|
if ((0, types_1.isVariant)(side, 'long')) {
|
4164
|
-
return { price:
|
4182
|
+
return { price: currentPrice.add(spread_i), exponent: targetPrice.exponent.toNumber() };
|
4165
4183
|
}
|
4166
4184
|
else {
|
4167
|
-
if (spread_i.lt(
|
4168
|
-
return { price:
|
4185
|
+
if (spread_i.lt(currentPrice)) {
|
4186
|
+
return { price: currentPrice.sub(spread_i), exponent: targetPrice.exponent.toNumber() };
|
4169
4187
|
}
|
4170
4188
|
else {
|
4171
4189
|
return { price: constants_1.BN_ZERO, exponent: targetPrice.exponent.toNumber() };
|
@@ -4175,7 +4193,7 @@ var PerpetualsClient = (function () {
|
|
4175
4193
|
}
|
4176
4194
|
else {
|
4177
4195
|
var current_price = targetPrice.price;
|
4178
|
-
var spread_i = (0, utils_1.checkedDecimalCeilMul)(current_price,
|
4196
|
+
var spread_i = (0, utils_1.checkedDecimalCeilMul)(current_price, targetPrice.exponent, slippageBps, new anchor_1.BN(-1 * constants_1.BPS_DECIMALS), targetPrice.exponent);
|
4179
4197
|
if ((0, types_1.isVariant)(side, 'long')) {
|
4180
4198
|
if (spread_i.lt(current_price)) {
|
4181
4199
|
return { price: current_price.sub(spread_i), exponent: targetPrice.exponent.toNumber() };
|
@@ -7,6 +7,7 @@ export declare const BPS_POWER: number;
|
|
7
7
|
export declare const LP_DECIMALS = 6;
|
8
8
|
export declare const RATE_DECIMALS = 9;
|
9
9
|
export declare const RATE_POWER: number;
|
10
|
+
export declare const ORACLE_EXPONENT = 9;
|
10
11
|
export declare const BN_ZERO: import("bn.js");
|
11
12
|
export declare const BN_ONE: import("bn.js");
|
12
13
|
export declare const METAPLEX_PROGRAM_ID: PublicKey;
|
package/dist/constants/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.METAPLEX_PROGRAM_ID = exports.BN_ONE = exports.BN_ZERO = exports.RATE_POWER = exports.RATE_DECIMALS = exports.LP_DECIMALS = exports.BPS_POWER = exports.BPS_DECIMALS = exports.USD_DECIMALS = exports.PERCENTAGE_DECIMALS = void 0;
|
3
|
+
exports.METAPLEX_PROGRAM_ID = exports.BN_ONE = exports.BN_ZERO = exports.ORACLE_EXPONENT = exports.RATE_POWER = exports.RATE_DECIMALS = exports.LP_DECIMALS = exports.BPS_POWER = exports.BPS_DECIMALS = exports.USD_DECIMALS = exports.PERCENTAGE_DECIMALS = void 0;
|
4
4
|
var web3_js_1 = require("@solana/web3.js");
|
5
5
|
var bn_js_1 = require("bn.js");
|
6
6
|
exports.PERCENTAGE_DECIMALS = 4;
|
@@ -10,6 +10,7 @@ exports.BPS_POWER = Math.pow(10, (exports.BPS_DECIMALS));
|
|
10
10
|
exports.LP_DECIMALS = exports.USD_DECIMALS;
|
11
11
|
exports.RATE_DECIMALS = 9;
|
12
12
|
exports.RATE_POWER = Math.pow(10, (exports.RATE_DECIMALS));
|
13
|
+
exports.ORACLE_EXPONENT = 9;
|
13
14
|
exports.BN_ZERO = new bn_js_1.BN(0);
|
14
15
|
exports.BN_ONE = new bn_js_1.BN(1);
|
15
16
|
exports.METAPLEX_PROGRAM_ID = new web3_js_1.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s");
|
@@ -1 +1 @@
|
|
1
|
-
{"program":{"fileNames":["../node_modules/typescript/lib/lib.d.ts","../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/dom-events.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/buffer/index.d.ts","../node_modules/formdata-polyfill/esm.min.d.ts","../node_modules/fetch-blob/file.d.ts","../node_modules/fetch-blob/index.d.ts","../node_modules/fetch-blob/from.d.ts","../node_modules/node-fetch/@types/index.d.ts","../node_modules/@solana/web3.js/lib/index.d.ts","../node_modules/@types/bn.js/index.d.ts","../src/constants/index.ts","../node_modules/eventemitter3/index.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/idl.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/context.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/common.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/utils/rpc.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/provider.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/nodewallet.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/error.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/account.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/accounts-resolver.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/instruction.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/transaction.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/rpc.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/simulate.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/views.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/methods.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/types.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/event.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/accounts.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/event.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/types.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/index.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/coder/system/instruction.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/coder/system/accounts.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/coder/system/events.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/coder/system/types.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/coder/system/index.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/coder/index.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/instruction.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/utils/sha256.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/utils/pubkey.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/hex.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/utf8.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/bs58.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/base64.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/index.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/utils/token.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/utils/features.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/utils/registry.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/utils/index.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/index.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/index.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/native/system.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/native/index.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/index.d.ts","../src/idl/perpetuals.ts","../src/idl/fbnft_rewards.ts","../src/types/index.ts","../src/positionaccount.ts","../node_modules/bignumber.js/bignumber.d.ts","../src/utils/index.ts","../src/custodyaccount.ts","../src/marketaccount.ts","../src/oracleprice.ts","../node_modules/@solana/spl-token/lib/types/actions/amounttouiamount.d.ts","../node_modules/@solana/spl-token/lib/types/actions/approve.d.ts","../node_modules/@solana/spl-token/lib/types/actions/approvechecked.d.ts","../node_modules/@solana/spl-token/lib/types/actions/burn.d.ts","../node_modules/@solana/spl-token/lib/types/actions/burnchecked.d.ts","../node_modules/@solana/spl-token/lib/types/actions/closeaccount.d.ts","../node_modules/@solana/spl-token/lib/types/actions/createaccount.d.ts","../node_modules/@solana/spl-token/lib/types/actions/createassociatedtokenaccount.d.ts","../node_modules/@solana/spl-token/lib/types/actions/createassociatedtokenaccountidempotent.d.ts","../node_modules/@solana/spl-token/lib/types/actions/createmint.d.ts","../node_modules/@solana/spl-token/lib/types/actions/createmultisig.d.ts","../node_modules/@solana/spl-token/lib/types/actions/createnativemint.d.ts","../node_modules/@solana/spl-token/lib/types/actions/createwrappednativeaccount.d.ts","../node_modules/@solana/spl-token/lib/types/actions/freezeaccount.d.ts","../node_modules/@solana/buffer-layout/lib/layout.d.ts","../node_modules/@solana/spl-token/lib/types/state/mint.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/extensiontype.d.ts","../node_modules/@solana/spl-token/lib/types/state/account.d.ts","../node_modules/@solana/spl-token/lib/types/actions/getorcreateassociatedtokenaccount.d.ts","../node_modules/@solana/spl-token/lib/types/actions/mintto.d.ts","../node_modules/@solana/spl-token/lib/types/actions/minttochecked.d.ts","../node_modules/@solana/spl-token/lib/types/actions/revoke.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/types.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/setauthority.d.ts","../node_modules/@solana/spl-token/lib/types/actions/setauthority.d.ts","../node_modules/@solana/spl-token/lib/types/actions/syncnative.d.ts","../node_modules/@solana/spl-token/lib/types/actions/thawaccount.d.ts","../node_modules/@solana/spl-token/lib/types/actions/transfer.d.ts","../node_modules/@solana/spl-token/lib/types/actions/transferchecked.d.ts","../node_modules/@solana/spl-token/lib/types/actions/uiamounttoamount.d.ts","../node_modules/@solana/spl-token/lib/types/actions/index.d.ts","../node_modules/@solana/spl-token/lib/types/constants.d.ts","../node_modules/@solana/spl-token/lib/types/errors.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/accounttype.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/cpiguard/actions.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/cpiguard/instructions.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/cpiguard/state.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/cpiguard/index.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/defaultaccountstate/actions.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/defaultaccountstate/instructions.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/defaultaccountstate/state.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/defaultaccountstate/index.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/immutableowner.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/interestbearingmint/actions.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/interestbearingmint/instructions.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/interestbearingmint/state.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/interestbearingmint/index.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/memotransfer/actions.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/memotransfer/instructions.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/memotransfer/state.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/memotransfer/index.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/mintcloseauthority.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/nontransferable.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/transferfee/actions.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/transferfee/instructions.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/transferfee/state.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/transferfee/index.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/permanentdelegate.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/index.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/associatedtokenaccount.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/amounttouiamount.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/approve.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/approvechecked.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/burn.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/burnchecked.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/closeaccount.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/freezeaccount.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/initializeaccount.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/initializeaccount2.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/initializeaccount3.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/initializemint.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/initializemint2.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/initializemultisig.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/mintto.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/minttochecked.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/revoke.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/syncnative.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/thawaccount.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/transfer.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/transferchecked.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/uiamounttoamount.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/decode.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/initializemultisig2.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/initializeimmutableowner.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/initializemintcloseauthority.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/reallocate.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/createnativemint.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/initializenontransferablemint.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/initializepermanentdelegate.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/index.d.ts","../node_modules/@solana/spl-token/lib/types/state/multisig.d.ts","../node_modules/@solana/spl-token/lib/types/state/index.d.ts","../node_modules/@solana/spl-token/lib/types/index.d.ts","../node_modules/js-sha256/index.d.ts","../node_modules/base-x/src/index.d.ts","../node_modules/bs58/index.d.ts","../src/poolaccount.ts","../src/idl/perp_composability.ts","../src/utils/rpc.ts","../src/poolconfig.json","../src/poolconfig.ts","../node_modules/@pythnetwork/price-service-sdk/lib/index.d.ts","../node_modules/ts-log/build/src/index.d.ts","../node_modules/@pythnetwork/price-service-client/lib/priceserviceconnection.d.ts","../node_modules/@pythnetwork/price-service-client/lib/index.d.ts","../node_modules/tweetnacl/nacl.d.ts","../src/backuporacle.ts","../src/utils/getnftaccounts.ts","../src/perpetualsclient.ts","../src/pooldataclient.ts","../src/tradingaccount.ts","../src/utils/anchorcpievents.ts","../src/utils/alt.ts","../src/index.ts","../src/test.ts","../src/test2.ts","../node_modules/@types/connect/index.d.ts","../node_modules/@types/ws/index.d.ts","../../node_modules/@types/chai/index.d.ts","../../node_modules/@types/json5/index.d.ts","../../node_modules/@types/mocha/index.d.ts"],"fileInfos":["2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60",{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"b4473933ebd454f0b38bf002e92738f978f5197ad47627e6b2a6647046997256","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"f749812878fecfa53cfc13b36e5d35086fb6377983a9df44175da83ccc23af1f","affectsGlobalScope":true},"84168c1e1f6e21906eea5167154748c1e9fea5ef6f2e1b2b2d2cb19e89fbd81a",{"version":"8155b7b79b6e7d7c13d3203f40cd8c201bdf2c0c25af536992d8962a28cac561","affectsGlobalScope":true},"5ca34a9a8b59bcc0e58730e702aa0823557122c86d6a6e1b6eeae85babb48513","c1d93a28c5312d757e449ad068c3a43ad0d961ab06e6a3b7aaa7d48c204a1deb",{"version":"77b2a2f1719b4c19b79bf2bf4833f67770e30767e49102a6b75ab3b3cf8b5db7","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","57e75559358fd6f9593b44506d75871004c124a70b6be3e0ce18597b71a08fc2","160f307d5ccc1f934de7fbed97f1d2016402f90f204c484e20bd5c2a19a4172a","9c1363edb96f09d8d2140284a39015dba08d5b01a98334ba9ad8784ab160c835","2a56407acc5881608ef5fa4c0688d446df6adfd010578ce83dd1b747d895b17f","ffa8324a4c0611f9a50262fb36f097eeabe0fa0d71755aa67156da13cde1b932","ad5c7ca4a4dc8e39e0aa221b981f6306ca1c037c99bd4902bf02831ba5d7fae9",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"5362b44ccdfba77ac392febf7f8d755af484222cfdc7a9aa1dee67bf51a352f9","affectsGlobalScope":true},"4866843595b27b290ce6cc8092818ede98631734525453dec48d32d7f6726f18","d036da8d9e6391ad06ff5a71b8018838f0990667a178390eb48462059dba92de","63728b518fee91037e3d44081b0c7f3cc6fafb79a997dca5300a899277384867","8c4a16f8523cd932b16f3b6feb983037d2ca5699946d1f32b3787055fccbfff3","b76baf9af98ef1da1c3a681e66034c9ce21862fa4177235153d9719df72c2b1d","89d639ae440d34751d94c0333d83bc4dcfadc45cd15849f74cc1d9c0f0ce0413",{"version":"125af9d85cb9d5e508353f10a8d52f01652d2d48b2cea54789a33e5b4d289c1c","affectsGlobalScope":true},"92cfb0fd9ea018f140b7a9af0868daa80646e4f2fcbde2d60fb60c0319862ec8","7faa534c9c865c9338a8b46fe3fc3822f6ad58747240b103d0606e63990a4935","0ae6b96cc95c41d86deb7c208256f126bc58bbb6829e1e29b063aa9eed9ea3f7",{"version":"c6e4a85271072ff15b04d09075b357407d4cdead8ca536ec613a2bb02a03285e","affectsGlobalScope":true},{"version":"5761c90b0cabdd6bd1f5fb1c3bf942088fdd39e18ed35dbe39b0c34bc733bf13","affectsGlobalScope":true},"e9f997f4724f4a19ddb396660061b55ae90dd0e4bb7a34788f7c9d1ceaf7dade","f6c9e1baa89f163bc1b29001ed43d3a24734e53a756e0ed89a92e40be17af5e3","4103297e96869b5226a7570a295fbf5f845e9dc4a3b3f8f242993c7f8aad1d42","2b847f2aba41dcd69677684d5d300c08aea4e306c305fd39bf548cef19f03cfe","f3b323d28220d61475dc0229fad6d0bff24381766b40a30fe67743da772c82ad","b966a6e620b297ecd31d0359894a4018255d85da5a277b21867296e97e21fefd","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","785e5be57d4f20f290a20e7b0c6263f6c57fd6e51283050756cef07d6d651c68","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","cd2b61246eeb62ebc6842fe28f7b3389c081d3b6355091cffe3d12c083bd5705","48e2eb12763f6f72f9daf15967499f69bc4dcda00e1c93696ba25d14af513660",{"version":"57141225815ac2d5caf7e781c6442861854149675096afd9ed5b699aff80a5e7","affectsGlobalScope":true},"ad08154d9602429522cac965a715fde27d421d69b24756c5d291877dda75353e","1edbd43bfc703943f0eabfef8aac222fb3e509d9b13c60295cb206b9b75bb6be","12fd795309573a15193cf71d22f7e5debbec599b77ffeb3bb5c0fd1bd15cbe6d","4082bc53696f77cae7f84dd002d4766f3a814b9b2b0d9be4e399ee3f9afc501d",{"version":"e32d7b239d2649efbb57eca949ffc764fb76fd8cce9f57632c0217407a79fa1a","affectsGlobalScope":true},{"version":"5bf73febf7c8cc741ba62e94758eed3208f62473c50702d209bcfece18e12421","affectsGlobalScope":true},"3758d3cb9971c113455a802ad7fa16fa216639add0f2c90767cf177f8d85106d","048a373805662e209f7af8717b45ae77a8052ff2272234d6f8cb84d87831f516","f71e0cc279b5086fa3f46f0bb467d376a18776ec7c99c45b3bd7c670097e1308",{"version":"09e6c9b5d3f323c84bc103e387d1b41e03f5155909615ad877d862ff82758d00","affectsGlobalScope":true},"5af698993d8ba0b74e6d34902091b9cadab8e30d3b009746331721651b5890a4",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"27fea46e25bceaf52375ad48afdf5b9f78af76d551e30cc86077541d1c405e8e","4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","d782e571cb7d6ec0f0645957ed843d00e3f8577e08cc2940f400c931bc47a8df","9167246623f181441e6116605221268d94e33a1ebd88075e2dc80133c928ae7e","dc1a838d8a514b6de9fbce3bd5e6feb9ccfe56311e9338bb908eb4d0d966ecaf","186f09ed4b1bc1d5a5af5b1d9f42e2d798f776418e82599b3de16423a349d184","d692ae73951775d2448df535ce8bc8abf162dc343911fedda2c37b8de3b20d8e","867d62c61432e319e2cbdef2980ae7e1fc034f72fd265c91f92eec3d07e4d9d6","01f7828047b5c6703d3c601473618b448f5506a88fcac852638b0715c3abf4eb",{"version":"3fc7bf669e43be917f25676356a67c127a64320f195c70113f33db1f5427bb9a","signature":"701c197aa021424dfca5d2f3315063c8ae68a8f0b2c708241cbfdb4559e948f8"},"b80c780c52524beb13488942543972c8b0e54400e8b59cee0169f38d0fabb968","b61b573ff4ba88d0ca9f59655f66ddd34db4696d2b51c6ef7a959f2b70cb4109","8174e9c229331b9202cf34327e89794a98bb1a442aeee03c46c4b50034b72142","f40fd5b46add805ff018d3490352931e069eb524e3068b86d46d048534d1b824","2c31f69dc0e07f3c396462dae566bf822b1fbc9b56ae1f64ac73a652cf7e4a35","6888c13dda417d9057790a8c403e77e0fa1d7a083d947fdd9310961548a0a08e","a0ff940b1a0e503c45976623abdb39bcfecee97e9f40c3c59f16c659a4da3239","e2befcff13777268fe913fdae10fdca86632e142d0a56bafa88c2a15ee220701","5a739f3dbc49e8769afe70233c31489ed34ba9efe7f1150635658497cb1cbc71","3035306296b362047b08a2a4040a3bf33f0625287b3891e69b864b5d78b8286b","b11e5173a66497863b6d525009624f56ec5124cd6c30e56e8a3e9b41dd303962","178e4bbf4575f0f3d8027d67870aa11bf30ea98663a9f205ca03adc05fa135d7","d57e501aa9e3208fa52cdf03c414173e40523b20a89b5f70c5bffb53ead42c07","a011ef547fb4aca43d5b37d44419f9fc16ba089edf1eb96d20d9c9ee6beefc77","0eb499336fda2cdb3acbfb5c160153028f647904326921b84103e2c83f6892fb","29d441a45ca67aa4b9dc48eb80f26dce82602a066e51af92978a1b4bcb78c507","c5dbca090d5b388006482f4c159f9560ac5a44a7a6d77bb4a64c8749cf8ddb4b","cf18efc36568036078617bb6bd66186f3f68ba789baa67147a0e3128c9398bd0","dc4b884038ecf1dc687a89944e04cf6b1e83391f2d541212dccbb0de67c97f1d","8835ccff7f7bf75094749fd5da9604becacc31016f683907642f92cfefa9346d","8ac4904be5b82699041086aa0dd33327d2afa3bcb107fa887c308bbdde1ea7ce","257e143511763fc89bde384f58bf0a02e1708330705370c0a4483e9f1500ceaa","18584847cdf14e522faa67916d50b8ba7479c8f12262c99d90078dffcae12a8e","44e590a660a2ed3c71e92c85a4af2507b43359825ab4805ec2dcef54e9d564ee","30a39429dd194c9bd3bbb32a32e247d9b547524308d61acc1ba8f16e72e61ee9","f0b04452cd330d29522cbe34176e683f21429e690c2aaec5ecee88303537fda4","f499b42bfdba1be1e0a9cf2ea797ad00694bc7908fdbb8f1f50e4a8034387f67","57794fc7348347817d469e09db6a3faf7aec386f92cb0dad0acbe1336a3f68d7","b82e3f89b8b5d563df90b8e5da3dc2b39443a4db8a3c0310919d55a242da56dc","847ccc20490110124a2252c5a705dfe1355921470d2bd6da9af1d4943e54346b","4cc6d8bdf1e7d492569cf7437ca3f01bf9cc767c3295953b415a6c8d5badf1ab","3b0309147d62225ffd116d3440f480e8df63a47e71e47fb6b432858db931b9e0","139db12276e11f90df65778f7513bc3f85957d74fd0d1bbeb19e4a1dace4f662","2884fcc91f5d42a3288a75a558b036923e3d926354fa0c3fa0251c2c3d4b54e8","013446b40d561ed0b2c2822d01954d4612d5e67222369073345aeebeb03fd406","4cb9df3ea8035d85480096a5ff94dbbcf941efb38c5c1ea77f1dc164d4342728","b35517e270f8735aa771989daa684625bc6285c91e8e4377f13f70a6ff415fc9","291b47b629e4c15e96bacb8d1f707573e72fedbb0fcab43f729e5f9d73560c3c","ae147af43f062662157775c85e3801ea3b70dc7b8f39c7aa260ad215e1942cb3","2a1d0598c9acba389f6a3369d52822a34045bd2ce75d012613bd0b802663c73b","78e817751f43865838b80e44aec551f4d2eb50c7a8ef528a628da9cf8c427b66","878d8319802cbd907be389848225859546d87c66c5b8cf7b864fab14d3dda283","897537e8a5aa22a4ec865ade55b791c0010c863ac5f34e57e7e1c156d9862546","f253b0f34ac2757af5c73868b3235104f5e311c03859987b2402afd1382db058","88f98a99221fa413325886b54d3f2eec69c6092190c2693c2a460240c7bb2f28",{"version":"21c7b736a1eb7eecfbd0376d213a12dfcabf2ad2e793eaa2a9edea54cb5b47c9","signature":"e3f87cf182e37db39140153d6dd402e27a6c8ec09ac11818f725f83addd99e49"},{"version":"bde91d00e949079f2a24fb755db1a4909ff414e3c31f9157251ca32e4860c6de","signature":"ea396182e508f85b63200842f3a1cdc75ae8058b62921de226045791d3893bcd"},{"version":"d747ee2d57b89a426f8835f41839c95bdeaf24ced137e9fb2b694ff34d028f82","signature":"9652e11959fd3240efded61ae3fd54c21f09e545d0f276cc8b0ab759bf39f724"},{"version":"b8749593d3681b39437b6bcdbe2bc9870ac15b5ea3f3ac5465fbc745354c3295","signature":"6e4e77c8de2e84b944f3c04d8b89f5002693aa778d5c6fb553e1c93b2525ec09"},"e9b48596baefe465d46567a4beccd564035024a154d99f54c7fed02380707333",{"version":"6eb50a0c85cda6b9a3bb7de0a4768fbac1e10b82adac1ab9c9e4c712137604a6","signature":"78a24d28a45c741b54a73122c3a894d0ca7064e7e9c74d499e1881f9fb112e30"},{"version":"fd302f59ee36e743946b4d4591a722fdeeff5e9d8b44909e26963393cf38a4e7","signature":"959fd34ec12f56c83415222876bda8ba540724a44d5a40ae44e0ca84f984d760"},{"version":"035c97517b53f6404703525f8a366ca8cb445ce796352110c27f89d4af3aeb44","signature":"c4fb23423b7b38403c0a0d59473167633539995eeb42e842ec35cc5b65f4a857"},{"version":"7a8b986cbf4f9befb594e7ec761cebb9ee2de486f88f9a5953bec3054148855d","signature":"fd7c479f74afe26ef554e363cd00d6a95d6d00669ea0940d4b781a2c5300b257"},"f2e5fa7d4aefe542762909ac966abdeaaaa76befbf561924edabb02b9b57542d","28e9fcac58f5957d1b82ab2b856799c24f7530e1d048198c1d0b9923762265ed","072a49808080400016c2557d47648297d854da5d75c2005083432f5bbbc19949","f25d3ac13258725686f0fbad31b82418ce00799f5d145570d6ee398a39651043","bbfcec9ed673c3dcb2668c3b216c7be9102a9e900e3d73801611da7f21746fdc","da3e4adedc5b5fd041f31a11d6bd98dde20febb2f2705988396d5a07f6f17543","9e6a844fae8202f8aa8bc6c7d076980221a15106c2a6a6f1e38fe1f2b8d07d62","99b07e053c9eae92b706ce3914d4b14bde4d896afc5a351c4660918ac64c6584","9fd36cbc7e5eaa50308919a4496ac677490c20a36a26208ef288f3033ad4c855","739adbaa02fd46f768fb88c72bc3359966241d36bc844a54f158fc68539f951b","8909288948f7bf5a408b6521a659a78765939ee319cd68ad5df4fb76fe1a755d","ff90f20e235b71cea80a352916e7f2a4737302e4f5b539d00e75204c82014b70","10ed1e58a17e61a6eb4f1bca430999ac214629058239489d498b88dc891f2327","1d1c0c879e2139313479670b032fc056ac93136a8199ed3e30fd118004077627","92ad95e6220ab829c8f5cfca9be43e26e041a2922cde6e998782030d41c49963","12c924e7f2e516943ce436ad51965a38cbbd9dee5fe670ae6349bd8c1bf76f52","75f4d060766b9c61825a122b94d61c45bbb6cafaa9f077c59987dc6c00467c76","42b7e0b9bed165997eb168904dfcd11254ff978ceeacda906e77d8f44c89f31f","b16879b91b181532922b7f279d8cba9c877c1436d3b0c55285ab8c6f43fd5dce","278055752eff1ed4b30b663d6b812923f041fbfd6cb6563d1b9350b53850059e","4ba1b1b1750a88a8fcc7d521d3ec3ba6235c28c73993e38adcaaec51afd57d5b","4991ee4482820b62aa2e6cd775d9984e0a45a7f6ba64d8a2737cbbb8af7c53f9","450257cba6657271a6646f9561b43062a5d2b39dba8b2e7b4d7c7fda73c6fe57","9a909c6bcc1cd061f649dc3b4dc9922fda9858166617bbc7263dd4c8bee7546f","c47421f20cec5286ce39834a3327579f36cad21f053ef8c09076c1894cd66d93","4c9975f07791ea91c74c2b8140ab48eb5ac2cc81417a108e6612c889a8bd23b3","b7b49dc760f6440dc8677ef49f0ca75c7f0f2f97f461a07bf2aa03723ac61d3d","79d938cb2e44b94e4f1497a9ccc2ff5da2fb7360d4eb7485da114055bc712379","566fd6af165b3acfa13b916594e422994e5d14f4138609fd252504800c9b96b7","ba9605656fa2ff88d69fd3676770ff1440fd70b4cbdce4ca85ac4ce27e659c7a","fedb9303cc3d1af9e5698092e3fd3622c2eb05805582107ac36c8cf0a160d16e","65d51b460383b6f7546f22c888c8b41e0de7385f20ec971acbb56da83bcbe611","b64e1ff30069e6fcfbd6b01df71b89e9f7d34581d1eba2e1fe3f3b1eaf70f28e","b725c869a5ff20458780f26afbe392017e690ee03decdb7d1202ac3539a8e235","4aaaa437c7b26c9b2668da29c1674d5be3b8f8fa150f3d7dac75d67314be9f37","f945eeb4aa141ce1af78affc6547c979f97b1cbb7d8995d4762d006e3e35c667","13bce356dc26c750244fe75f160388f59a1725d33e401ae26dc084277dd9491e","1c91d24b8452adecfa340f4eefa3752b546eb68441b01a6ec43aa39f182f2181","8a561d8bcaf60594a95c3390a489824c6688e81802701260444fb47881950257","cbc6cad822896d9d97bda9a0cea0834be8999dbe2040758cd6da3948c24415b3","e6ee1dcd00ca1c765c95b0abb2114c2ead786ae7610c823df4cd8fffbcbede10","1c91d24b8452adecfa340f4eefa3752b546eb68441b01a6ec43aa39f182f2181","8b25e65927ea90be5da89799997c6f7e7dbcd826a954bd1a466a931d380a3511","af7d2a7f8f8a0d9bcce2a017b1a9f6ec85f57e9484a65f46b6cafe8fb079e9a3","9cb1f37abda1396ced2508edf3d111c99a94421553138edc06353c1c824b8cc8","68a8ceeea894c6d5989c89207e3ac1b33c2c2026ad4a9e8c3cff1d87ea67ec77","1c91d24b8452adecfa340f4eefa3752b546eb68441b01a6ec43aa39f182f2181","989b5f3bf15619484ef2327c0a108ad33191bfc2e3deb6347bf175e79fd02e51","2b51763cbd722ee2747bc9e860dd0cc0200cdfdf6735c5c2fd4f5e3e02f1ec86","b650f3fdfd9e86f82d906dfbd81b87ef7c7d7434ee1de923d7d6cf5647434a02","1c91d24b8452adecfa340f4eefa3752b546eb68441b01a6ec43aa39f182f2181","3e2b6603bed1f4a82bdad05b68a66cc5943f8e12c647bf2f45a06c9d72cc0e00","eabca6c007c20da02a0cbbf23f6de3c39e662a9adc1a92736968179d7c4cc569","625ea89b6b179966c652b7bb93b57e7c1c2343eb9aba6cfb3ddf801359cde65c","1a69659e9cd6e3785e995d1e748809aa708a76fda03988b7ead402534311c106","27e553ea7ffbcaef2be2af5a79fdbf83cfcda0f95bf17e3c378b33402a28c1d6","1c91d24b8452adecfa340f4eefa3752b546eb68441b01a6ec43aa39f182f2181","068a6c2f0554b945cbfb006187f4c9c27386684810189dfe026a9b30470d3984","dd22a6e590d7fbabb29b903a809141cb1426846d23c21164ff4223a7f9dcff1d","93cd3ba5193ea2029b2eb0b20b94ca9c4e6b9c2a696d7d1a05211a2916ca0d77","748553e51bfbef2b4c8e646275f687e60ea77665c514ee1f880bf5a3cd509f37","a4d09f9410ec90d4b07cd054e8e2f234feb27b66b106202b386ab0b157663358","3749f5690d24338ff4b878db8d0f1b47d04fe891634c88ca56f7166f944fb96b","939f5a5215d6be2165c6a4116f5abb433b84df00f3ac4e458f3cd732786e8431","5f92a8bc72a87fca63d413ed8f303a2df36fb8143f0e974d0844c7422318909c","2a0e1e0a89c6a3991cc04812d4c6fcf92fe7511de87a684bc60357438dddf399","4ddb790ba5f1fd3689213c0501dbf21a7285f2edf562a8f7d86654877a868fc9","b0b840a3379f3539d037cb5b602541d2ab6984462761e505a23793866dc7a0d7","7aed6616e78d880577a37fa5edd42b690354874f1001acdbf21ead2f803a36a0","73a7dc6d00925ef047bc915a54cab15bb242d549b9334d9b5151cc0f35cfaf77","0a1c74bccc0c5a1f22012144a3d9afc19951348540c7ff5e5feaf4eef6259b80","3a1d5de5adaede0fb1ca2045f8b10a0e86f480a1082a11829a0b48da8ad6157f","0a1057aef93b764fb9665d101f2a050f6e060c37ec5b88f2d27bb83412a3487e","6164b754612e5776cc934dc0d6494fe2ee084d39d1cbc6fe4a23a45326730ccc","47679a6b6411019e8f7a443ec3addbec38a79a7e4679c00bc73d3ccdb81d64ce","cac86b9dbfd00f0ac7731f4074d2c69260c88ea28de96a71b0cb4efb5779b869","65bd0d34233fcaab54f5463703a0f022b2db197ef24c4a1d3adda1a9d3d6d502","f5cd1b398a44c53407e4aa1e8b503d0664299f002313d31bbce221644aadc6cb","c2f032cbe6aa8d59f021ccd865990d4d55c11fd3a1b96b81c56903cf05e36f1f","aa20bc1ba435f2a49bd640992da9517e31896e8f6d1a4817800ac96d6f10d6ea","5621180d5cf6e50f53fd6c73e0a60cd4115353f919bdd193580746896167da63","9cc5c390465b87096b69b2b0612a341d974b658cd28447696583f2762226f8c3","08371984685828cedaa25037b76def8f8f7f8304910dc66627bb58a2f53ecea4","7dd1c6c1b927f9edb94773f9333666f52f7b0bdf49a9a7f63129e9e66d1222cf","174f99dc1948a64c4211702a0fcc45d684d05fdfba3100ba4485fe45adb4d7f3","19405c79422e9c2d9ae1affae558857d3cbd138b17db596c642d008cd6c485cb","6c2ba8fe0797b626104a2fd4e8de0dad6edc4b932e4a50a7b72afa09fdcddbe9","dabc6bfb18fc1f988d37c8b659eb07fd35e8269bfa099b6dc02c14093c2b8b1a","ec9dd267b792e7c5c3733a45a3d2e43b93f02b98d86d8be50e11f9c15940c02b","a8f278a697ab8646f88cb2ba9783814e5438637cdfc3c5278e8aca82b4a1fc44","239d9e77e0026e7375dc9b6122f1b62d2c39fc2e5c10f50787cd321880146b95","0f3ca52b0d50160be177f8c79efbbcd666726c2de9256d6335e0d0bcb2e40d6f","1d8820a067af2309ef4f7739d2ada59882eebb3b2b595ff78496760c6f51ba60","0afbe91142eb631d6f31be624cf8a550b03736bfd22b0f309405a6fe4d4c9517","a3c89483a38d76c77a13b69b268a9e5d13abcdf0957ca3f28c9702c47ce8050f","40ec7e761ea0ddfc0add7aedb95dacfc579b25010ed0e2190abc1d34bb67f81e",{"version":"265c4b41188faaf3f3df19ce0a3db7ddb9abc0f23d08a50924dafccb56c42a37","signature":"f548175f791289c972d7cd46572ec62718628239a03788a3fff340c3da6cdd7c"},{"version":"f48b23659d9df2a552af95e294962d7ad9c026452048eb45e6ab86e3c1eed116","signature":"5ecaedf7a6d5aa6081b49e4c6b1599cacca80b7dee6822267e463544db780fab"},{"version":"dd416f262dbf5240dedb6fdde65b5281f37a5e7130448177be9d15a8f7a54db7","signature":"446ed87d33d7b7785288f4fe1cbb5c75c15503d249510a1fdd210ba2027d5de7"},"c6c620c05dabce5c87f725bdcb62cf154e9cea856a9c463fd38961cc73640e59",{"version":"66bf15731ae7da8df39ba0ad3a3097f5b301e946ad6beb0ca0cd56abaf2bda22","signature":"2f2ccacae4b3074c6924f4624235fe24b73f79876c49116e6a6ebaa2453de583"},"a3236c8367c87e6f65b9ffc0c6156aa3baacd241227c544c5d030237c7b544f3","eed09b7c5ba70de22474b9b92fa037e95ba0a65d5e21c38355c0a6c70812df2f","f7826f9a68a0e18c6926a3c977aebfc7876f523d5562a2009674951315676373","6c3465d4cc3ca86c4b4e540af16a1fca4310e29600a58ec29876ad84483d0bdb","60592f5ae1b739c9607a99895d4a3ad5c865b16903e4180e50b256e360a4a104",{"version":"26c744d117e2eaef8a524e01cb00303169ad36d171c6ffa0607ffdc696a4e765","signature":"fce849d567e0d2297e00f0ef65a48eb76e92c2f52f33d1ea21d4fb6577f96e68"},{"version":"a94c31e45487709bf85f4404bf1c2cec9b2deab8a81476342bde03a9237289bf","signature":"432a295507da7ad393064e725004e0dfe7b81a74fe9ca3e293ec8b40cd5e8288"},{"version":"00f57c1e93c5eaac582305e8dfabe120cd4bca742197fa869e34e646a8482b5f","signature":"a2680cdff1f85fbd195ebbdf9ead634691f693051c106a27ff4098d8b769a4ee"},{"version":"1a7e1755ac7c40e244716d1ce2ee79c4a3c4f498c4b6e162d70ce214a6225352","signature":"69ab4e06f1e59d50a9b25626c43cf0154399e0fdefded058c876c3462d1dbf6b"},{"version":"a9e481e578b0c3cba5d673aa33013d479378a4cafc1f6273f47d1d418d9d9526","signature":"e38a45770d714d00c3400cf26f5a10b790a107aa0e933d7dced4463ec5309ef2"},{"version":"4bb86003d8526672afbd15a347660b6749d83124d2d8302a645b0493bb9dcb1e","signature":"78fa342775f68d2c9160b5728b6642e66479372e62f5c5d08c399a4a95786243"},{"version":"2ee083bf1b1c02fb348e15c45754f18b926d3796d0d9e18c467246f3079ff489","signature":"7d920f00d4638306b7d2a381069c79b1490065e394f6c9e29949a70bca33934a"},{"version":"4075ad14a0f1b8fe92a8a99dd296353ad5751ad4bf892338a785fe7970eced22","signature":"c719d6a587f5d6c201c1d30f27e97e469fe2c6bd356882b67fa3f9f4fb80dd7a"},{"version":"4b73e88eabffc14f9973f1a25a4690f6dcef6be0ee5994cdb91928629c421201","signature":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"},{"version":"94d2649a1a8a5e931d10e1e88f748057fa8b7216f97ac178a0b45662079dc002","signature":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"},"6d829824ead8999f87b6df21200df3c6150391b894b4e80662caa462bd48d073","f7163a5d37d21f636f6a5cd1c064ce95fada21917859a64b6cc49a8b6fd5c1a8",{"version":"1fb008c1a29f86a8a0e9a674b7235f23c6d2a86c9658772941fb626a60aac53b","affectsGlobalScope":true},"96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538",{"version":"677646e2620795c98a539fb12fb531f10331c217cef1492132b2518f894fa92d","affectsGlobalScope":true}],"options":{"declaration":true,"esModuleInterop":true,"module":1,"outDir":"./","removeComments":true,"skipLibCheck":true,"target":1},"fileIdsList":[[50,92,99,110,136],[50,92,99,110,126,136],[92,110,127,128,129,136,137],[50,92,99,106,110,136],[92,99,110,126,130,135],[92,99,110,136],[92,110,126,136],[92,110,131,132,133,134,136],[92,106],[50,92,99,106],[92,106,107,110,114,115,116,118,136,137,148,150,152],[92,151,153],[92,114,135,150],[92,106,114],[92,106,110,114,117,124,125],[92,106,109,110,111],[92,106,110,112],[92,106,110,114,125,136],[92,106,110,111,112,114,118,126,136,149],[92,99,106,109,110,112,114,125,136],[92,106,110,114,117,118,119,120,121,122,123,124,125,136],[92,99,106,110,111,125],[92,106,110,111,112,114,117,118,119,120,121,122,123,125],[92,106,110,114,120,125],[92,106,110,114,120,125,126,136],[92,106,110,119,125],[92,99,106,107,110,111,124,153],[92,106,110,122,125],[92,106,113],[50,92,99],[92,99],[92,140,141,142,143],[92],[92,113,138,139,144,145,146,147],[50,92,99,106,112],[92,99,106,107],[50,92,99,106,112,114],[92,264,266],[92,264,265],[50,92],[92,106,180],[92,163,164,165,166,167,168,169,170,171,172,173,174,175,176,181,182,183,184,187,188,189,190,191,192],[92,106,186],[92,197,198,199],[92,106,177,185],[92,177,180],[92,201,202,203],[92,106,177,180,185],[92,177,178,180],[92,99,178],[92,179,196,200,204,205,209,213,214,215,219,220],[92,206,207,208],[92,106,177,178],[92,210,211,212],[92,177,178],[92,216,217,218],[92,106,177,178,180],[92,193,194,195,221,252,254],[92,106,186,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243],[92,185,186,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251],[92,106,179,185],[92,106,185],[92,99,106,177,179],[92,178,180,253],[92,99,106,177],[50,65,67,92,99,105],[65,92,99],[46,92],[49,92],[50,55,83,92],[51,62,63,70,80,91,92],[51,52,62,70,92],[53,92],[54,55,63,71,92],[55,80,88,92],[56,58,62,70,92],[57,92],[58,59,92],[62,92],[60,62,92],[62,63,64,80,91,92],[62,63,64,77,80,83,92],[92,96],[58,65,70,80,91,92],[62,63,65,66,70,80,88,91,92],[65,67,80,88,91,92],[46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],[62,68,92],[69,91,92],[58,62,70,80,92],[71,92],[72,92],[49,73,92],[74,90,92,96],[75,92],[76,92],[62,77,78,92],[77,79,92,94],[50,62,80,81,82,83,92],[50,80,82,92],[80,81,92],[83,92],[84,92],[62,86,87,92],[86,87,92],[55,70,80,88,92],[89,92],[70,90,92],[50,65,76,91,92],[55,92],[80,92,93],[92,94],[92,95],[50,55,62,64,73,80,91,92,94,96],[80,92,97],[62,65,67,80,88,91,92,97,99],[92,257],[92,102,103],[65,92,99,101,104],[92,106,107,153,154,156,258,263,267,268],[92,106,107],[92,106,107,108,156,157,159],[92,108,154,156,157,159,160,161,162,259,261,263,269,271,272,273,274,275],[92,106,107,108,156,157],[92,108,153,156,159],[92,106,107,108,144,153,154,155,156,157,158,159,160,161,162,255,256,258,259,260,261,263,268,269,270],[92,106,153,156],[92,106,153,156,262],[92,108,153,158,159,160,161,162,255,259,263],[92,106,108,153,154,155],[92,144,153,154],[92,106,156],[92,106,107,108,158],[92,106,115,153],[106,153,154,156,263,267],[106,107],[106,107,156],[108,154,156,157,159,160,161,162,259,261,263,269,271,272,273,274,275],[106,107,156,157],[153,156],[106,107,153,154,155,156,157,160,161,162,259,260,261,263],[106,153,156],[106,153,156,262],[153,160,161,162,255,259,263],[153,154,155],[106],[153],[106,156],[106,107,158],[106,153]],"referencedMap":[[127,1],[128,2],[130,3],[137,4],[129,1],[136,5],[132,6],[133,7],[135,8],[131,6],[134,6],[116,9],[110,10],[153,11],[152,12],[151,13],[115,14],[118,15],[112,16],[111,17],[126,18],[150,19],[117,20],[149,21],[119,22],[124,23],[121,24],[122,25],[120,26],[125,27],[123,28],[114,29],[143,30],[142,31],[140,30],[144,32],[141,33],[146,33],[148,34],[139,35],[147,36],[113,37],[138,33],[145,9],[267,38],[266,39],[264,33],[177,40],[163,9],[164,9],[165,9],[166,9],[167,9],[168,9],[169,9],[170,9],[171,9],[172,9],[173,9],[174,9],[175,9],[176,9],[181,41],[193,42],[182,9],[183,9],[184,9],[187,43],[188,9],[189,9],[190,9],[191,9],[192,9],[194,9],[195,33],[196,33],[197,9],[200,44],[198,45],[199,46],[201,41],[204,47],[202,48],[203,49],[179,50],[205,46],[221,51],[206,9],[209,52],[207,45],[208,53],[210,9],[213,54],[211,45],[212,46],[214,53],[215,55],[220,53],[216,9],[219,56],[217,45],[218,57],[255,58],[223,45],[224,45],[225,45],[222,9],[226,45],[227,45],[228,45],[249,45],[244,59],[229,45],[252,60],[230,45],[231,45],[232,45],[246,45],[233,45],[234,45],[247,45],[235,45],[245,33],[250,45],[251,45],[236,45],[237,45],[248,61],[238,45],[186,45],[239,45],[240,45],[241,45],[242,45],[185,33],[243,62],[180,63],[254,64],[178,63],[253,65],[106,66],[107,31],[279,67],[46,68],[47,68],[49,69],[50,70],[51,71],[52,72],[53,73],[54,74],[55,75],[56,76],[57,77],[58,78],[59,78],[61,79],[60,80],[62,79],[63,81],[64,82],[48,83],[98,33],[65,84],[66,85],[67,86],[99,87],[68,88],[69,89],[70,90],[71,91],[72,92],[73,93],[74,94],[75,95],[76,96],[77,97],[78,97],[79,98],[80,99],[82,100],[81,101],[83,102],[84,103],[85,33],[86,104],[87,105],[88,106],[89,107],[90,108],[91,109],[92,110],[93,111],[94,112],[95,113],[96,114],[97,115],[280,116],[257,33],[158,33],[258,117],[100,33],[109,33],[102,33],[104,118],[103,33],[101,33],[256,33],[105,119],[265,33],[268,33],[1,33],[9,33],[13,33],[12,33],[3,33],[14,33],[15,33],[16,33],[17,33],[18,33],[19,33],[20,33],[21,33],[4,33],[5,33],[25,33],[22,33],[23,33],[24,33],[26,33],[27,33],[28,33],[6,33],[29,33],[30,33],[31,33],[32,33],[7,33],[36,33],[33,33],[34,33],[35,33],[37,33],[8,33],[38,33],[43,33],[44,33],[39,33],[40,33],[41,33],[42,33],[2,33],[45,33],[11,33],[10,33],[269,120],[108,121],[160,122],[155,33],[260,33],[154,33],[276,123],[161,124],[162,125],[271,126],[259,127],[262,33],[263,128],[272,129],[157,127],[277,33],[278,33],[273,127],[156,130],[275,9],[274,131],[270,132],[159,133],[261,134],[281,33],[282,33],[283,33]],"exportedModulesMap":[[127,1],[128,2],[130,3],[137,4],[129,1],[136,5],[132,6],[133,7],[135,8],[131,6],[134,6],[116,9],[110,10],[153,11],[152,12],[151,13],[115,14],[118,15],[112,16],[111,17],[126,18],[150,19],[117,20],[149,21],[119,22],[124,23],[121,24],[122,25],[120,26],[125,27],[123,28],[114,29],[143,30],[142,31],[140,30],[144,32],[141,33],[146,33],[148,34],[139,35],[147,36],[113,37],[138,33],[145,9],[267,38],[266,39],[264,33],[177,40],[163,9],[164,9],[165,9],[166,9],[167,9],[168,9],[169,9],[170,9],[171,9],[172,9],[173,9],[174,9],[175,9],[176,9],[181,41],[193,42],[182,9],[183,9],[184,9],[187,43],[188,9],[189,9],[190,9],[191,9],[192,9],[194,9],[195,33],[196,33],[197,9],[200,44],[198,45],[199,46],[201,41],[204,47],[202,48],[203,49],[179,50],[205,46],[221,51],[206,9],[209,52],[207,45],[208,53],[210,9],[213,54],[211,45],[212,46],[214,53],[215,55],[220,53],[216,9],[219,56],[217,45],[218,57],[255,58],[223,45],[224,45],[225,45],[222,9],[226,45],[227,45],[228,45],[249,45],[244,59],[229,45],[252,60],[230,45],[231,45],[232,45],[246,45],[233,45],[234,45],[247,45],[235,45],[245,33],[250,45],[251,45],[236,45],[237,45],[248,61],[238,45],[186,45],[239,45],[240,45],[241,45],[242,45],[185,33],[243,62],[180,63],[254,64],[178,63],[253,65],[106,66],[107,31],[279,67],[46,68],[47,68],[49,69],[50,70],[51,71],[52,72],[53,73],[54,74],[55,75],[56,76],[57,77],[58,78],[59,78],[61,79],[60,80],[62,79],[63,81],[64,82],[48,83],[98,33],[65,84],[66,85],[67,86],[99,87],[68,88],[69,89],[70,90],[71,91],[72,92],[73,93],[74,94],[75,95],[76,96],[77,97],[78,97],[79,98],[80,99],[82,100],[81,101],[83,102],[84,103],[85,33],[86,104],[87,105],[88,106],[89,107],[90,108],[91,109],[92,110],[93,111],[94,112],[95,113],[96,114],[97,115],[280,116],[257,33],[158,33],[258,117],[100,33],[109,33],[102,33],[104,118],[103,33],[101,33],[256,33],[105,119],[265,33],[268,33],[1,33],[9,33],[13,33],[12,33],[3,33],[14,33],[15,33],[16,33],[17,33],[18,33],[19,33],[20,33],[21,33],[4,33],[5,33],[25,33],[22,33],[23,33],[24,33],[26,33],[27,33],[28,33],[6,33],[29,33],[30,33],[31,33],[32,33],[7,33],[36,33],[33,33],[34,33],[35,33],[37,33],[8,33],[38,33],[43,33],[44,33],[39,33],[40,33],[41,33],[42,33],[2,33],[45,33],[11,33],[10,33],[269,135],[108,136],[160,137],[276,138],[161,139],[162,140],[271,141],[259,142],[262,33],[263,143],[272,144],[157,142],[273,142],[156,145],[275,146],[274,147],[270,148],[159,149],[261,150],[281,33],[282,33],[283,33]],"semanticDiagnosticsPerFile":[127,128,130,137,129,136,132,133,135,131,134,116,110,153,152,151,115,118,112,111,126,150,117,149,119,124,121,122,120,125,123,114,143,142,140,144,141,146,148,139,147,113,138,145,267,266,264,177,163,164,165,166,167,168,169,170,171,172,173,174,175,176,181,193,182,183,184,187,188,189,190,191,192,194,195,196,197,200,198,199,201,204,202,203,179,205,221,206,209,207,208,210,213,211,212,214,215,220,216,219,217,218,255,223,224,225,222,226,227,228,249,244,229,252,230,231,232,246,233,234,247,235,245,250,251,236,237,248,238,186,239,240,241,242,185,243,180,254,178,253,106,107,279,46,47,49,50,51,52,53,54,55,56,57,58,59,61,60,62,63,64,48,98,65,66,67,99,68,69,70,71,72,73,74,75,76,77,78,79,80,82,81,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,280,257,158,258,100,109,102,104,103,101,256,105,265,268,1,9,13,12,3,14,15,16,17,18,19,20,21,4,5,25,22,23,24,26,27,28,6,29,30,31,32,7,36,33,34,35,37,8,38,43,44,39,40,41,42,2,45,11,10,269,108,160,155,260,154,276,161,162,271,259,262,263,272,157,277,278,273,156,275,274,270,159,261,281,282,283]},"version":"4.9.5"}
|
1
|
+
{"program":{"fileNames":["../node_modules/typescript/lib/lib.d.ts","../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/dom-events.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/buffer/index.d.ts","../node_modules/formdata-polyfill/esm.min.d.ts","../node_modules/fetch-blob/file.d.ts","../node_modules/fetch-blob/index.d.ts","../node_modules/fetch-blob/from.d.ts","../node_modules/node-fetch/@types/index.d.ts","../node_modules/@solana/web3.js/lib/index.d.ts","../node_modules/@types/bn.js/index.d.ts","../src/constants/index.ts","../node_modules/eventemitter3/index.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/idl.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/context.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/common.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/utils/rpc.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/provider.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/nodewallet.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/error.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/account.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/accounts-resolver.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/instruction.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/transaction.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/rpc.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/simulate.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/views.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/methods.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/types.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/event.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/accounts.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/event.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/types.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/index.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/coder/system/instruction.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/coder/system/accounts.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/coder/system/events.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/coder/system/types.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/coder/system/index.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/coder/index.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/coder/borsh/instruction.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/utils/sha256.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/utils/pubkey.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/hex.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/utf8.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/bs58.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/base64.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/utils/bytes/index.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/utils/token.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/utils/features.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/utils/registry.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/utils/index.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/namespace/index.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/program/index.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/native/system.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/native/index.d.ts","../node_modules/@coral-xyz/anchor/dist/cjs/index.d.ts","../src/idl/perpetuals.ts","../src/idl/fbnft_rewards.ts","../node_modules/bignumber.js/bignumber.d.ts","../src/utils/index.ts","../src/oracleprice.ts","../src/types/index.ts","../src/positionaccount.ts","../src/custodyaccount.ts","../src/marketaccount.ts","../node_modules/@solana/spl-token/lib/types/actions/amounttouiamount.d.ts","../node_modules/@solana/spl-token/lib/types/actions/approve.d.ts","../node_modules/@solana/spl-token/lib/types/actions/approvechecked.d.ts","../node_modules/@solana/spl-token/lib/types/actions/burn.d.ts","../node_modules/@solana/spl-token/lib/types/actions/burnchecked.d.ts","../node_modules/@solana/spl-token/lib/types/actions/closeaccount.d.ts","../node_modules/@solana/spl-token/lib/types/actions/createaccount.d.ts","../node_modules/@solana/spl-token/lib/types/actions/createassociatedtokenaccount.d.ts","../node_modules/@solana/spl-token/lib/types/actions/createassociatedtokenaccountidempotent.d.ts","../node_modules/@solana/spl-token/lib/types/actions/createmint.d.ts","../node_modules/@solana/spl-token/lib/types/actions/createmultisig.d.ts","../node_modules/@solana/spl-token/lib/types/actions/createnativemint.d.ts","../node_modules/@solana/spl-token/lib/types/actions/createwrappednativeaccount.d.ts","../node_modules/@solana/spl-token/lib/types/actions/freezeaccount.d.ts","../node_modules/@solana/buffer-layout/lib/layout.d.ts","../node_modules/@solana/spl-token/lib/types/state/mint.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/extensiontype.d.ts","../node_modules/@solana/spl-token/lib/types/state/account.d.ts","../node_modules/@solana/spl-token/lib/types/actions/getorcreateassociatedtokenaccount.d.ts","../node_modules/@solana/spl-token/lib/types/actions/mintto.d.ts","../node_modules/@solana/spl-token/lib/types/actions/minttochecked.d.ts","../node_modules/@solana/spl-token/lib/types/actions/revoke.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/types.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/setauthority.d.ts","../node_modules/@solana/spl-token/lib/types/actions/setauthority.d.ts","../node_modules/@solana/spl-token/lib/types/actions/syncnative.d.ts","../node_modules/@solana/spl-token/lib/types/actions/thawaccount.d.ts","../node_modules/@solana/spl-token/lib/types/actions/transfer.d.ts","../node_modules/@solana/spl-token/lib/types/actions/transferchecked.d.ts","../node_modules/@solana/spl-token/lib/types/actions/uiamounttoamount.d.ts","../node_modules/@solana/spl-token/lib/types/actions/index.d.ts","../node_modules/@solana/spl-token/lib/types/constants.d.ts","../node_modules/@solana/spl-token/lib/types/errors.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/accounttype.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/cpiguard/actions.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/cpiguard/instructions.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/cpiguard/state.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/cpiguard/index.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/defaultaccountstate/actions.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/defaultaccountstate/instructions.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/defaultaccountstate/state.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/defaultaccountstate/index.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/immutableowner.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/interestbearingmint/actions.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/interestbearingmint/instructions.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/interestbearingmint/state.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/interestbearingmint/index.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/memotransfer/actions.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/memotransfer/instructions.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/memotransfer/state.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/memotransfer/index.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/mintcloseauthority.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/nontransferable.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/transferfee/actions.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/transferfee/instructions.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/transferfee/state.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/transferfee/index.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/permanentdelegate.d.ts","../node_modules/@solana/spl-token/lib/types/extensions/index.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/associatedtokenaccount.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/amounttouiamount.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/approve.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/approvechecked.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/burn.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/burnchecked.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/closeaccount.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/freezeaccount.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/initializeaccount.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/initializeaccount2.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/initializeaccount3.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/initializemint.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/initializemint2.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/initializemultisig.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/mintto.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/minttochecked.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/revoke.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/syncnative.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/thawaccount.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/transfer.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/transferchecked.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/uiamounttoamount.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/decode.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/initializemultisig2.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/initializeimmutableowner.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/initializemintcloseauthority.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/reallocate.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/createnativemint.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/initializenontransferablemint.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/initializepermanentdelegate.d.ts","../node_modules/@solana/spl-token/lib/types/instructions/index.d.ts","../node_modules/@solana/spl-token/lib/types/state/multisig.d.ts","../node_modules/@solana/spl-token/lib/types/state/index.d.ts","../node_modules/@solana/spl-token/lib/types/index.d.ts","../node_modules/js-sha256/index.d.ts","../node_modules/base-x/src/index.d.ts","../node_modules/bs58/index.d.ts","../src/poolaccount.ts","../src/idl/perp_composability.ts","../src/utils/rpc.ts","../src/poolconfig.json","../src/poolconfig.ts","../node_modules/@pythnetwork/price-service-sdk/lib/index.d.ts","../node_modules/ts-log/build/src/index.d.ts","../node_modules/@pythnetwork/price-service-client/lib/priceserviceconnection.d.ts","../node_modules/@pythnetwork/price-service-client/lib/index.d.ts","../node_modules/tweetnacl/nacl.d.ts","../src/backuporacle.ts","../src/utils/getnftaccounts.ts","../src/perpetualsclient.ts","../src/pooldataclient.ts","../src/tradingaccount.ts","../src/utils/anchorcpievents.ts","../src/utils/alt.ts","../src/index.ts","../src/test.ts","../src/test2.ts","../node_modules/@types/connect/index.d.ts","../node_modules/@types/ws/index.d.ts","../../node_modules/@types/chai/index.d.ts","../../node_modules/@types/json5/index.d.ts","../../node_modules/@types/mocha/index.d.ts"],"fileInfos":["2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60",{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"b4473933ebd454f0b38bf002e92738f978f5197ad47627e6b2a6647046997256","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"f749812878fecfa53cfc13b36e5d35086fb6377983a9df44175da83ccc23af1f","affectsGlobalScope":true},"84168c1e1f6e21906eea5167154748c1e9fea5ef6f2e1b2b2d2cb19e89fbd81a",{"version":"8155b7b79b6e7d7c13d3203f40cd8c201bdf2c0c25af536992d8962a28cac561","affectsGlobalScope":true},"5ca34a9a8b59bcc0e58730e702aa0823557122c86d6a6e1b6eeae85babb48513","c1d93a28c5312d757e449ad068c3a43ad0d961ab06e6a3b7aaa7d48c204a1deb",{"version":"77b2a2f1719b4c19b79bf2bf4833f67770e30767e49102a6b75ab3b3cf8b5db7","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","57e75559358fd6f9593b44506d75871004c124a70b6be3e0ce18597b71a08fc2","160f307d5ccc1f934de7fbed97f1d2016402f90f204c484e20bd5c2a19a4172a","9c1363edb96f09d8d2140284a39015dba08d5b01a98334ba9ad8784ab160c835","2a56407acc5881608ef5fa4c0688d446df6adfd010578ce83dd1b747d895b17f","ffa8324a4c0611f9a50262fb36f097eeabe0fa0d71755aa67156da13cde1b932","ad5c7ca4a4dc8e39e0aa221b981f6306ca1c037c99bd4902bf02831ba5d7fae9",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"5362b44ccdfba77ac392febf7f8d755af484222cfdc7a9aa1dee67bf51a352f9","affectsGlobalScope":true},"4866843595b27b290ce6cc8092818ede98631734525453dec48d32d7f6726f18","d036da8d9e6391ad06ff5a71b8018838f0990667a178390eb48462059dba92de","63728b518fee91037e3d44081b0c7f3cc6fafb79a997dca5300a899277384867","8c4a16f8523cd932b16f3b6feb983037d2ca5699946d1f32b3787055fccbfff3","b76baf9af98ef1da1c3a681e66034c9ce21862fa4177235153d9719df72c2b1d","89d639ae440d34751d94c0333d83bc4dcfadc45cd15849f74cc1d9c0f0ce0413",{"version":"125af9d85cb9d5e508353f10a8d52f01652d2d48b2cea54789a33e5b4d289c1c","affectsGlobalScope":true},"92cfb0fd9ea018f140b7a9af0868daa80646e4f2fcbde2d60fb60c0319862ec8","7faa534c9c865c9338a8b46fe3fc3822f6ad58747240b103d0606e63990a4935","0ae6b96cc95c41d86deb7c208256f126bc58bbb6829e1e29b063aa9eed9ea3f7",{"version":"c6e4a85271072ff15b04d09075b357407d4cdead8ca536ec613a2bb02a03285e","affectsGlobalScope":true},{"version":"5761c90b0cabdd6bd1f5fb1c3bf942088fdd39e18ed35dbe39b0c34bc733bf13","affectsGlobalScope":true},"e9f997f4724f4a19ddb396660061b55ae90dd0e4bb7a34788f7c9d1ceaf7dade","f6c9e1baa89f163bc1b29001ed43d3a24734e53a756e0ed89a92e40be17af5e3","4103297e96869b5226a7570a295fbf5f845e9dc4a3b3f8f242993c7f8aad1d42","2b847f2aba41dcd69677684d5d300c08aea4e306c305fd39bf548cef19f03cfe","f3b323d28220d61475dc0229fad6d0bff24381766b40a30fe67743da772c82ad","b966a6e620b297ecd31d0359894a4018255d85da5a277b21867296e97e21fefd","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","785e5be57d4f20f290a20e7b0c6263f6c57fd6e51283050756cef07d6d651c68","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","cd2b61246eeb62ebc6842fe28f7b3389c081d3b6355091cffe3d12c083bd5705","48e2eb12763f6f72f9daf15967499f69bc4dcda00e1c93696ba25d14af513660",{"version":"57141225815ac2d5caf7e781c6442861854149675096afd9ed5b699aff80a5e7","affectsGlobalScope":true},"ad08154d9602429522cac965a715fde27d421d69b24756c5d291877dda75353e","1edbd43bfc703943f0eabfef8aac222fb3e509d9b13c60295cb206b9b75bb6be","12fd795309573a15193cf71d22f7e5debbec599b77ffeb3bb5c0fd1bd15cbe6d","4082bc53696f77cae7f84dd002d4766f3a814b9b2b0d9be4e399ee3f9afc501d",{"version":"e32d7b239d2649efbb57eca949ffc764fb76fd8cce9f57632c0217407a79fa1a","affectsGlobalScope":true},{"version":"5bf73febf7c8cc741ba62e94758eed3208f62473c50702d209bcfece18e12421","affectsGlobalScope":true},"3758d3cb9971c113455a802ad7fa16fa216639add0f2c90767cf177f8d85106d","048a373805662e209f7af8717b45ae77a8052ff2272234d6f8cb84d87831f516","f71e0cc279b5086fa3f46f0bb467d376a18776ec7c99c45b3bd7c670097e1308",{"version":"09e6c9b5d3f323c84bc103e387d1b41e03f5155909615ad877d862ff82758d00","affectsGlobalScope":true},"5af698993d8ba0b74e6d34902091b9cadab8e30d3b009746331721651b5890a4",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"27fea46e25bceaf52375ad48afdf5b9f78af76d551e30cc86077541d1c405e8e","4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","d782e571cb7d6ec0f0645957ed843d00e3f8577e08cc2940f400c931bc47a8df","9167246623f181441e6116605221268d94e33a1ebd88075e2dc80133c928ae7e","dc1a838d8a514b6de9fbce3bd5e6feb9ccfe56311e9338bb908eb4d0d966ecaf","186f09ed4b1bc1d5a5af5b1d9f42e2d798f776418e82599b3de16423a349d184","d692ae73951775d2448df535ce8bc8abf162dc343911fedda2c37b8de3b20d8e","867d62c61432e319e2cbdef2980ae7e1fc034f72fd265c91f92eec3d07e4d9d6","01f7828047b5c6703d3c601473618b448f5506a88fcac852638b0715c3abf4eb",{"version":"1d2d4bbeb12421dd87975bc0c5a2a784f28f88b944056b18303bf63b1a0b2cbd","signature":"481169efe6993f1bf22d5cde3da6dfc64662c4a1b5b03586d63070e785027bd0"},"b80c780c52524beb13488942543972c8b0e54400e8b59cee0169f38d0fabb968","b61b573ff4ba88d0ca9f59655f66ddd34db4696d2b51c6ef7a959f2b70cb4109","8174e9c229331b9202cf34327e89794a98bb1a442aeee03c46c4b50034b72142","f40fd5b46add805ff018d3490352931e069eb524e3068b86d46d048534d1b824","2c31f69dc0e07f3c396462dae566bf822b1fbc9b56ae1f64ac73a652cf7e4a35","6888c13dda417d9057790a8c403e77e0fa1d7a083d947fdd9310961548a0a08e","a0ff940b1a0e503c45976623abdb39bcfecee97e9f40c3c59f16c659a4da3239","e2befcff13777268fe913fdae10fdca86632e142d0a56bafa88c2a15ee220701","5a739f3dbc49e8769afe70233c31489ed34ba9efe7f1150635658497cb1cbc71","3035306296b362047b08a2a4040a3bf33f0625287b3891e69b864b5d78b8286b","b11e5173a66497863b6d525009624f56ec5124cd6c30e56e8a3e9b41dd303962","178e4bbf4575f0f3d8027d67870aa11bf30ea98663a9f205ca03adc05fa135d7","d57e501aa9e3208fa52cdf03c414173e40523b20a89b5f70c5bffb53ead42c07","a011ef547fb4aca43d5b37d44419f9fc16ba089edf1eb96d20d9c9ee6beefc77","0eb499336fda2cdb3acbfb5c160153028f647904326921b84103e2c83f6892fb","29d441a45ca67aa4b9dc48eb80f26dce82602a066e51af92978a1b4bcb78c507","c5dbca090d5b388006482f4c159f9560ac5a44a7a6d77bb4a64c8749cf8ddb4b","cf18efc36568036078617bb6bd66186f3f68ba789baa67147a0e3128c9398bd0","dc4b884038ecf1dc687a89944e04cf6b1e83391f2d541212dccbb0de67c97f1d","8835ccff7f7bf75094749fd5da9604becacc31016f683907642f92cfefa9346d","8ac4904be5b82699041086aa0dd33327d2afa3bcb107fa887c308bbdde1ea7ce","257e143511763fc89bde384f58bf0a02e1708330705370c0a4483e9f1500ceaa","18584847cdf14e522faa67916d50b8ba7479c8f12262c99d90078dffcae12a8e","44e590a660a2ed3c71e92c85a4af2507b43359825ab4805ec2dcef54e9d564ee","30a39429dd194c9bd3bbb32a32e247d9b547524308d61acc1ba8f16e72e61ee9","f0b04452cd330d29522cbe34176e683f21429e690c2aaec5ecee88303537fda4","f499b42bfdba1be1e0a9cf2ea797ad00694bc7908fdbb8f1f50e4a8034387f67","57794fc7348347817d469e09db6a3faf7aec386f92cb0dad0acbe1336a3f68d7","b82e3f89b8b5d563df90b8e5da3dc2b39443a4db8a3c0310919d55a242da56dc","847ccc20490110124a2252c5a705dfe1355921470d2bd6da9af1d4943e54346b","4cc6d8bdf1e7d492569cf7437ca3f01bf9cc767c3295953b415a6c8d5badf1ab","3b0309147d62225ffd116d3440f480e8df63a47e71e47fb6b432858db931b9e0","139db12276e11f90df65778f7513bc3f85957d74fd0d1bbeb19e4a1dace4f662","2884fcc91f5d42a3288a75a558b036923e3d926354fa0c3fa0251c2c3d4b54e8","013446b40d561ed0b2c2822d01954d4612d5e67222369073345aeebeb03fd406","4cb9df3ea8035d85480096a5ff94dbbcf941efb38c5c1ea77f1dc164d4342728","b35517e270f8735aa771989daa684625bc6285c91e8e4377f13f70a6ff415fc9","291b47b629e4c15e96bacb8d1f707573e72fedbb0fcab43f729e5f9d73560c3c","ae147af43f062662157775c85e3801ea3b70dc7b8f39c7aa260ad215e1942cb3","2a1d0598c9acba389f6a3369d52822a34045bd2ce75d012613bd0b802663c73b","78e817751f43865838b80e44aec551f4d2eb50c7a8ef528a628da9cf8c427b66","878d8319802cbd907be389848225859546d87c66c5b8cf7b864fab14d3dda283","897537e8a5aa22a4ec865ade55b791c0010c863ac5f34e57e7e1c156d9862546","f253b0f34ac2757af5c73868b3235104f5e311c03859987b2402afd1382db058","88f98a99221fa413325886b54d3f2eec69c6092190c2693c2a460240c7bb2f28",{"version":"21c7b736a1eb7eecfbd0376d213a12dfcabf2ad2e793eaa2a9edea54cb5b47c9","signature":"e3f87cf182e37db39140153d6dd402e27a6c8ec09ac11818f725f83addd99e49"},{"version":"bde91d00e949079f2a24fb755db1a4909ff414e3c31f9157251ca32e4860c6de","signature":"ea396182e508f85b63200842f3a1cdc75ae8058b62921de226045791d3893bcd"},"e9b48596baefe465d46567a4beccd564035024a154d99f54c7fed02380707333",{"version":"6eb50a0c85cda6b9a3bb7de0a4768fbac1e10b82adac1ab9c9e4c712137604a6","signature":"78a24d28a45c741b54a73122c3a894d0ca7064e7e9c74d499e1881f9fb112e30"},{"version":"7a8b986cbf4f9befb594e7ec761cebb9ee2de486f88f9a5953bec3054148855d","signature":"fd7c479f74afe26ef554e363cd00d6a95d6d00669ea0940d4b781a2c5300b257"},{"version":"3a4ffffd1c0b1d94b6ec8f26803ad4a8802a9a5be0e8c59c49268812168aae1e","signature":"589f7f5b12cf8b6b878e4cb36cf0ca6bbb3bcb1ebae50ff4b8429989efa737af"},{"version":"b8749593d3681b39437b6bcdbe2bc9870ac15b5ea3f3ac5465fbc745354c3295","signature":"6e4e77c8de2e84b944f3c04d8b89f5002693aa778d5c6fb553e1c93b2525ec09"},{"version":"fd302f59ee36e743946b4d4591a722fdeeff5e9d8b44909e26963393cf38a4e7","signature":"959fd34ec12f56c83415222876bda8ba540724a44d5a40ae44e0ca84f984d760"},{"version":"035c97517b53f6404703525f8a366ca8cb445ce796352110c27f89d4af3aeb44","signature":"c4fb23423b7b38403c0a0d59473167633539995eeb42e842ec35cc5b65f4a857"},"f2e5fa7d4aefe542762909ac966abdeaaaa76befbf561924edabb02b9b57542d","28e9fcac58f5957d1b82ab2b856799c24f7530e1d048198c1d0b9923762265ed","072a49808080400016c2557d47648297d854da5d75c2005083432f5bbbc19949","f25d3ac13258725686f0fbad31b82418ce00799f5d145570d6ee398a39651043","bbfcec9ed673c3dcb2668c3b216c7be9102a9e900e3d73801611da7f21746fdc","da3e4adedc5b5fd041f31a11d6bd98dde20febb2f2705988396d5a07f6f17543","9e6a844fae8202f8aa8bc6c7d076980221a15106c2a6a6f1e38fe1f2b8d07d62","99b07e053c9eae92b706ce3914d4b14bde4d896afc5a351c4660918ac64c6584","9fd36cbc7e5eaa50308919a4496ac677490c20a36a26208ef288f3033ad4c855","739adbaa02fd46f768fb88c72bc3359966241d36bc844a54f158fc68539f951b","8909288948f7bf5a408b6521a659a78765939ee319cd68ad5df4fb76fe1a755d","ff90f20e235b71cea80a352916e7f2a4737302e4f5b539d00e75204c82014b70","10ed1e58a17e61a6eb4f1bca430999ac214629058239489d498b88dc891f2327","1d1c0c879e2139313479670b032fc056ac93136a8199ed3e30fd118004077627","92ad95e6220ab829c8f5cfca9be43e26e041a2922cde6e998782030d41c49963","12c924e7f2e516943ce436ad51965a38cbbd9dee5fe670ae6349bd8c1bf76f52","75f4d060766b9c61825a122b94d61c45bbb6cafaa9f077c59987dc6c00467c76","42b7e0b9bed165997eb168904dfcd11254ff978ceeacda906e77d8f44c89f31f","b16879b91b181532922b7f279d8cba9c877c1436d3b0c55285ab8c6f43fd5dce","278055752eff1ed4b30b663d6b812923f041fbfd6cb6563d1b9350b53850059e","4ba1b1b1750a88a8fcc7d521d3ec3ba6235c28c73993e38adcaaec51afd57d5b","4991ee4482820b62aa2e6cd775d9984e0a45a7f6ba64d8a2737cbbb8af7c53f9","450257cba6657271a6646f9561b43062a5d2b39dba8b2e7b4d7c7fda73c6fe57","9a909c6bcc1cd061f649dc3b4dc9922fda9858166617bbc7263dd4c8bee7546f","c47421f20cec5286ce39834a3327579f36cad21f053ef8c09076c1894cd66d93","4c9975f07791ea91c74c2b8140ab48eb5ac2cc81417a108e6612c889a8bd23b3","b7b49dc760f6440dc8677ef49f0ca75c7f0f2f97f461a07bf2aa03723ac61d3d","79d938cb2e44b94e4f1497a9ccc2ff5da2fb7360d4eb7485da114055bc712379","566fd6af165b3acfa13b916594e422994e5d14f4138609fd252504800c9b96b7","ba9605656fa2ff88d69fd3676770ff1440fd70b4cbdce4ca85ac4ce27e659c7a","fedb9303cc3d1af9e5698092e3fd3622c2eb05805582107ac36c8cf0a160d16e","65d51b460383b6f7546f22c888c8b41e0de7385f20ec971acbb56da83bcbe611","b64e1ff30069e6fcfbd6b01df71b89e9f7d34581d1eba2e1fe3f3b1eaf70f28e","b725c869a5ff20458780f26afbe392017e690ee03decdb7d1202ac3539a8e235","4aaaa437c7b26c9b2668da29c1674d5be3b8f8fa150f3d7dac75d67314be9f37","f945eeb4aa141ce1af78affc6547c979f97b1cbb7d8995d4762d006e3e35c667","13bce356dc26c750244fe75f160388f59a1725d33e401ae26dc084277dd9491e","1c91d24b8452adecfa340f4eefa3752b546eb68441b01a6ec43aa39f182f2181","8a561d8bcaf60594a95c3390a489824c6688e81802701260444fb47881950257","cbc6cad822896d9d97bda9a0cea0834be8999dbe2040758cd6da3948c24415b3","e6ee1dcd00ca1c765c95b0abb2114c2ead786ae7610c823df4cd8fffbcbede10","1c91d24b8452adecfa340f4eefa3752b546eb68441b01a6ec43aa39f182f2181","8b25e65927ea90be5da89799997c6f7e7dbcd826a954bd1a466a931d380a3511","af7d2a7f8f8a0d9bcce2a017b1a9f6ec85f57e9484a65f46b6cafe8fb079e9a3","9cb1f37abda1396ced2508edf3d111c99a94421553138edc06353c1c824b8cc8","68a8ceeea894c6d5989c89207e3ac1b33c2c2026ad4a9e8c3cff1d87ea67ec77","1c91d24b8452adecfa340f4eefa3752b546eb68441b01a6ec43aa39f182f2181","989b5f3bf15619484ef2327c0a108ad33191bfc2e3deb6347bf175e79fd02e51","2b51763cbd722ee2747bc9e860dd0cc0200cdfdf6735c5c2fd4f5e3e02f1ec86","b650f3fdfd9e86f82d906dfbd81b87ef7c7d7434ee1de923d7d6cf5647434a02","1c91d24b8452adecfa340f4eefa3752b546eb68441b01a6ec43aa39f182f2181","3e2b6603bed1f4a82bdad05b68a66cc5943f8e12c647bf2f45a06c9d72cc0e00","eabca6c007c20da02a0cbbf23f6de3c39e662a9adc1a92736968179d7c4cc569","625ea89b6b179966c652b7bb93b57e7c1c2343eb9aba6cfb3ddf801359cde65c","1a69659e9cd6e3785e995d1e748809aa708a76fda03988b7ead402534311c106","27e553ea7ffbcaef2be2af5a79fdbf83cfcda0f95bf17e3c378b33402a28c1d6","1c91d24b8452adecfa340f4eefa3752b546eb68441b01a6ec43aa39f182f2181","068a6c2f0554b945cbfb006187f4c9c27386684810189dfe026a9b30470d3984","dd22a6e590d7fbabb29b903a809141cb1426846d23c21164ff4223a7f9dcff1d","93cd3ba5193ea2029b2eb0b20b94ca9c4e6b9c2a696d7d1a05211a2916ca0d77","748553e51bfbef2b4c8e646275f687e60ea77665c514ee1f880bf5a3cd509f37","a4d09f9410ec90d4b07cd054e8e2f234feb27b66b106202b386ab0b157663358","3749f5690d24338ff4b878db8d0f1b47d04fe891634c88ca56f7166f944fb96b","939f5a5215d6be2165c6a4116f5abb433b84df00f3ac4e458f3cd732786e8431","5f92a8bc72a87fca63d413ed8f303a2df36fb8143f0e974d0844c7422318909c","2a0e1e0a89c6a3991cc04812d4c6fcf92fe7511de87a684bc60357438dddf399","4ddb790ba5f1fd3689213c0501dbf21a7285f2edf562a8f7d86654877a868fc9","b0b840a3379f3539d037cb5b602541d2ab6984462761e505a23793866dc7a0d7","7aed6616e78d880577a37fa5edd42b690354874f1001acdbf21ead2f803a36a0","73a7dc6d00925ef047bc915a54cab15bb242d549b9334d9b5151cc0f35cfaf77","0a1c74bccc0c5a1f22012144a3d9afc19951348540c7ff5e5feaf4eef6259b80","3a1d5de5adaede0fb1ca2045f8b10a0e86f480a1082a11829a0b48da8ad6157f","0a1057aef93b764fb9665d101f2a050f6e060c37ec5b88f2d27bb83412a3487e","6164b754612e5776cc934dc0d6494fe2ee084d39d1cbc6fe4a23a45326730ccc","47679a6b6411019e8f7a443ec3addbec38a79a7e4679c00bc73d3ccdb81d64ce","cac86b9dbfd00f0ac7731f4074d2c69260c88ea28de96a71b0cb4efb5779b869","65bd0d34233fcaab54f5463703a0f022b2db197ef24c4a1d3adda1a9d3d6d502","f5cd1b398a44c53407e4aa1e8b503d0664299f002313d31bbce221644aadc6cb","c2f032cbe6aa8d59f021ccd865990d4d55c11fd3a1b96b81c56903cf05e36f1f","aa20bc1ba435f2a49bd640992da9517e31896e8f6d1a4817800ac96d6f10d6ea","5621180d5cf6e50f53fd6c73e0a60cd4115353f919bdd193580746896167da63","9cc5c390465b87096b69b2b0612a341d974b658cd28447696583f2762226f8c3","08371984685828cedaa25037b76def8f8f7f8304910dc66627bb58a2f53ecea4","7dd1c6c1b927f9edb94773f9333666f52f7b0bdf49a9a7f63129e9e66d1222cf","174f99dc1948a64c4211702a0fcc45d684d05fdfba3100ba4485fe45adb4d7f3","19405c79422e9c2d9ae1affae558857d3cbd138b17db596c642d008cd6c485cb","6c2ba8fe0797b626104a2fd4e8de0dad6edc4b932e4a50a7b72afa09fdcddbe9","dabc6bfb18fc1f988d37c8b659eb07fd35e8269bfa099b6dc02c14093c2b8b1a","ec9dd267b792e7c5c3733a45a3d2e43b93f02b98d86d8be50e11f9c15940c02b","a8f278a697ab8646f88cb2ba9783814e5438637cdfc3c5278e8aca82b4a1fc44","239d9e77e0026e7375dc9b6122f1b62d2c39fc2e5c10f50787cd321880146b95","0f3ca52b0d50160be177f8c79efbbcd666726c2de9256d6335e0d0bcb2e40d6f","1d8820a067af2309ef4f7739d2ada59882eebb3b2b595ff78496760c6f51ba60","0afbe91142eb631d6f31be624cf8a550b03736bfd22b0f309405a6fe4d4c9517","a3c89483a38d76c77a13b69b268a9e5d13abcdf0957ca3f28c9702c47ce8050f","40ec7e761ea0ddfc0add7aedb95dacfc579b25010ed0e2190abc1d34bb67f81e",{"version":"265c4b41188faaf3f3df19ce0a3db7ddb9abc0f23d08a50924dafccb56c42a37","signature":"f548175f791289c972d7cd46572ec62718628239a03788a3fff340c3da6cdd7c"},{"version":"f48b23659d9df2a552af95e294962d7ad9c026452048eb45e6ab86e3c1eed116","signature":"5ecaedf7a6d5aa6081b49e4c6b1599cacca80b7dee6822267e463544db780fab"},{"version":"dd416f262dbf5240dedb6fdde65b5281f37a5e7130448177be9d15a8f7a54db7","signature":"446ed87d33d7b7785288f4fe1cbb5c75c15503d249510a1fdd210ba2027d5de7"},"c6c620c05dabce5c87f725bdcb62cf154e9cea856a9c463fd38961cc73640e59",{"version":"66bf15731ae7da8df39ba0ad3a3097f5b301e946ad6beb0ca0cd56abaf2bda22","signature":"2f2ccacae4b3074c6924f4624235fe24b73f79876c49116e6a6ebaa2453de583"},"a3236c8367c87e6f65b9ffc0c6156aa3baacd241227c544c5d030237c7b544f3","eed09b7c5ba70de22474b9b92fa037e95ba0a65d5e21c38355c0a6c70812df2f","f7826f9a68a0e18c6926a3c977aebfc7876f523d5562a2009674951315676373","6c3465d4cc3ca86c4b4e540af16a1fca4310e29600a58ec29876ad84483d0bdb","60592f5ae1b739c9607a99895d4a3ad5c865b16903e4180e50b256e360a4a104",{"version":"26c744d117e2eaef8a524e01cb00303169ad36d171c6ffa0607ffdc696a4e765","signature":"fce849d567e0d2297e00f0ef65a48eb76e92c2f52f33d1ea21d4fb6577f96e68"},{"version":"a94c31e45487709bf85f4404bf1c2cec9b2deab8a81476342bde03a9237289bf","signature":"432a295507da7ad393064e725004e0dfe7b81a74fe9ca3e293ec8b40cd5e8288"},{"version":"a10cdc27c236351fafb8fd8406aab44c85c19f569ab6398414dac55e21cadb6c","signature":"db75b7e6c8f87ed791265b8a06bfe5ed8491cc4c6e6a753a9ba7739c80e4f47d"},{"version":"1a7e1755ac7c40e244716d1ce2ee79c4a3c4f498c4b6e162d70ce214a6225352","signature":"69ab4e06f1e59d50a9b25626c43cf0154399e0fdefded058c876c3462d1dbf6b"},{"version":"a9e481e578b0c3cba5d673aa33013d479378a4cafc1f6273f47d1d418d9d9526","signature":"e38a45770d714d00c3400cf26f5a10b790a107aa0e933d7dced4463ec5309ef2"},{"version":"4bb86003d8526672afbd15a347660b6749d83124d2d8302a645b0493bb9dcb1e","signature":"78fa342775f68d2c9160b5728b6642e66479372e62f5c5d08c399a4a95786243"},{"version":"2ee083bf1b1c02fb348e15c45754f18b926d3796d0d9e18c467246f3079ff489","signature":"7d920f00d4638306b7d2a381069c79b1490065e394f6c9e29949a70bca33934a"},{"version":"4075ad14a0f1b8fe92a8a99dd296353ad5751ad4bf892338a785fe7970eced22","signature":"c719d6a587f5d6c201c1d30f27e97e469fe2c6bd356882b67fa3f9f4fb80dd7a"},{"version":"4b73e88eabffc14f9973f1a25a4690f6dcef6be0ee5994cdb91928629c421201","signature":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"},{"version":"94d2649a1a8a5e931d10e1e88f748057fa8b7216f97ac178a0b45662079dc002","signature":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"},"6d829824ead8999f87b6df21200df3c6150391b894b4e80662caa462bd48d073","f7163a5d37d21f636f6a5cd1c064ce95fada21917859a64b6cc49a8b6fd5c1a8",{"version":"1fb008c1a29f86a8a0e9a674b7235f23c6d2a86c9658772941fb626a60aac53b","affectsGlobalScope":true},"96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538",{"version":"677646e2620795c98a539fb12fb531f10331c217cef1492132b2518f894fa92d","affectsGlobalScope":true}],"options":{"declaration":true,"esModuleInterop":true,"module":1,"outDir":"./","removeComments":true,"skipLibCheck":true,"target":1},"fileIdsList":[[50,92,99,110,136],[50,92,99,110,126,136],[92,110,127,128,129,136,137],[50,92,99,106,110,136],[92,99,110,126,130,135],[92,99,110,136],[92,110,126,136],[92,110,131,132,133,134,136],[92,106],[50,92,99,106],[92,106,107,110,114,115,116,118,136,137,148,150,152],[92,151,153],[92,114,135,150],[92,106,114],[92,106,110,114,117,124,125],[92,106,109,110,111],[92,106,110,112],[92,106,110,114,125,136],[92,106,110,111,112,114,118,126,136,149],[92,99,106,109,110,112,114,125,136],[92,106,110,114,117,118,119,120,121,122,123,124,125,136],[92,99,106,110,111,125],[92,106,110,111,112,114,117,118,119,120,121,122,123,125],[92,106,110,114,120,125],[92,106,110,114,120,125,126,136],[92,106,110,119,125],[92,99,106,107,110,111,124,153],[92,106,110,122,125],[92,106,113],[50,92,99],[92,99],[92,140,141,142,143],[92],[92,113,138,139,144,145,146,147],[50,92,99,106,112],[92,99,106,107],[50,92,99,106,112,114],[92,264,266],[92,264,265],[50,92],[92,106,180],[92,163,164,165,166,167,168,169,170,171,172,173,174,175,176,181,182,183,184,187,188,189,190,191,192],[92,106,186],[92,197,198,199],[92,106,177,185],[92,177,180],[92,201,202,203],[92,106,177,180,185],[92,177,178,180],[92,99,178],[92,179,196,200,204,205,209,213,214,215,219,220],[92,206,207,208],[92,106,177,178],[92,210,211,212],[92,177,178],[92,216,217,218],[92,106,177,178,180],[92,193,194,195,221,252,254],[92,106,186,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243],[92,185,186,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251],[92,106,179,185],[92,106,185],[92,99,106,177,179],[92,178,180,253],[92,99,106,177],[50,65,67,92,99,105],[65,92,99],[46,92],[49,92],[50,55,83,92],[51,62,63,70,80,91,92],[51,52,62,70,92],[53,92],[54,55,63,71,92],[55,80,88,92],[56,58,62,70,92],[57,92],[58,59,92],[62,92],[60,62,92],[62,63,64,80,91,92],[62,63,64,77,80,83,92],[92,96],[58,65,70,80,91,92],[62,63,65,66,70,80,88,91,92],[65,67,80,88,91,92],[46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],[62,68,92],[69,91,92],[58,62,70,80,92],[71,92],[72,92],[49,73,92],[74,90,92,96],[75,92],[76,92],[62,77,78,92],[77,79,92,94],[50,62,80,81,82,83,92],[50,80,82,92],[80,81,92],[83,92],[84,92],[62,86,87,92],[86,87,92],[55,70,80,88,92],[89,92],[70,90,92],[50,65,76,91,92],[55,92],[80,92,93],[92,94],[92,95],[50,55,62,64,73,80,91,92,94,96],[80,92,97],[62,65,67,80,88,91,92,97,99],[92,257],[92,102,103],[65,92,99,101,104],[92,106,107,153,154,159,258,263,267,268],[92,106,107],[92,106,107,108,157,159,160],[92,108,154,157,158,159,160,161,162,259,261,263,269,271,272,273,274,275],[92,106,107,108,159,160],[92,108,153,157,159],[92,106,107,108,144,153,154,155,156,157,158,159,160,161,162,255,256,258,259,260,261,263,268,269,270],[92,106,153,159],[92,106,153,159,262],[92,108,153,156,157,158,161,162,255,259,263],[92,106,108,153,154,155,158],[92,144,153,154],[92,106,159],[92,106,107,108,156],[92,106,115,153],[106,153,154,159,263,267],[106,107],[106,107,159],[108,154,157,158,159,160,161,162,259,261,263,269,271,272,273,274,275],[106,107,159,160],[153,159],[106,107,153,154,155,158,159,160,161,162,259,260,261,263],[106,153,159],[106,153,159,262],[153,158,161,162,255,259,263],[153,154,155,158],[106],[153],[106,159],[106,107,156],[106,153]],"referencedMap":[[127,1],[128,2],[130,3],[137,4],[129,1],[136,5],[132,6],[133,7],[135,8],[131,6],[134,6],[116,9],[110,10],[153,11],[152,12],[151,13],[115,14],[118,15],[112,16],[111,17],[126,18],[150,19],[117,20],[149,21],[119,22],[124,23],[121,24],[122,25],[120,26],[125,27],[123,28],[114,29],[143,30],[142,31],[140,30],[144,32],[141,33],[146,33],[148,34],[139,35],[147,36],[113,37],[138,33],[145,9],[267,38],[266,39],[264,33],[177,40],[163,9],[164,9],[165,9],[166,9],[167,9],[168,9],[169,9],[170,9],[171,9],[172,9],[173,9],[174,9],[175,9],[176,9],[181,41],[193,42],[182,9],[183,9],[184,9],[187,43],[188,9],[189,9],[190,9],[191,9],[192,9],[194,9],[195,33],[196,33],[197,9],[200,44],[198,45],[199,46],[201,41],[204,47],[202,48],[203,49],[179,50],[205,46],[221,51],[206,9],[209,52],[207,45],[208,53],[210,9],[213,54],[211,45],[212,46],[214,53],[215,55],[220,53],[216,9],[219,56],[217,45],[218,57],[255,58],[223,45],[224,45],[225,45],[222,9],[226,45],[227,45],[228,45],[249,45],[244,59],[229,45],[252,60],[230,45],[231,45],[232,45],[246,45],[233,45],[234,45],[247,45],[235,45],[245,33],[250,45],[251,45],[236,45],[237,45],[248,61],[238,45],[186,45],[239,45],[240,45],[241,45],[242,45],[185,33],[243,62],[180,63],[254,64],[178,63],[253,65],[106,66],[107,31],[279,67],[46,68],[47,68],[49,69],[50,70],[51,71],[52,72],[53,73],[54,74],[55,75],[56,76],[57,77],[58,78],[59,78],[61,79],[60,80],[62,79],[63,81],[64,82],[48,83],[98,33],[65,84],[66,85],[67,86],[99,87],[68,88],[69,89],[70,90],[71,91],[72,92],[73,93],[74,94],[75,95],[76,96],[77,97],[78,97],[79,98],[80,99],[82,100],[81,101],[83,102],[84,103],[85,33],[86,104],[87,105],[88,106],[89,107],[90,108],[91,109],[92,110],[93,111],[94,112],[95,113],[96,114],[97,115],[280,116],[257,33],[156,33],[258,117],[100,33],[109,33],[102,33],[104,118],[103,33],[101,33],[256,33],[105,119],[265,33],[268,33],[1,33],[9,33],[13,33],[12,33],[3,33],[14,33],[15,33],[16,33],[17,33],[18,33],[19,33],[20,33],[21,33],[4,33],[5,33],[25,33],[22,33],[23,33],[24,33],[26,33],[27,33],[28,33],[6,33],[29,33],[30,33],[31,33],[32,33],[7,33],[36,33],[33,33],[34,33],[35,33],[37,33],[8,33],[38,33],[43,33],[44,33],[39,33],[40,33],[41,33],[42,33],[2,33],[45,33],[11,33],[10,33],[269,120],[108,121],[161,122],[155,33],[260,33],[154,33],[276,123],[162,124],[158,125],[271,126],[259,127],[262,33],[263,128],[272,129],[160,127],[277,33],[278,33],[273,127],[159,130],[275,9],[274,131],[270,132],[157,133],[261,134],[281,33],[282,33],[283,33]],"exportedModulesMap":[[127,1],[128,2],[130,3],[137,4],[129,1],[136,5],[132,6],[133,7],[135,8],[131,6],[134,6],[116,9],[110,10],[153,11],[152,12],[151,13],[115,14],[118,15],[112,16],[111,17],[126,18],[150,19],[117,20],[149,21],[119,22],[124,23],[121,24],[122,25],[120,26],[125,27],[123,28],[114,29],[143,30],[142,31],[140,30],[144,32],[141,33],[146,33],[148,34],[139,35],[147,36],[113,37],[138,33],[145,9],[267,38],[266,39],[264,33],[177,40],[163,9],[164,9],[165,9],[166,9],[167,9],[168,9],[169,9],[170,9],[171,9],[172,9],[173,9],[174,9],[175,9],[176,9],[181,41],[193,42],[182,9],[183,9],[184,9],[187,43],[188,9],[189,9],[190,9],[191,9],[192,9],[194,9],[195,33],[196,33],[197,9],[200,44],[198,45],[199,46],[201,41],[204,47],[202,48],[203,49],[179,50],[205,46],[221,51],[206,9],[209,52],[207,45],[208,53],[210,9],[213,54],[211,45],[212,46],[214,53],[215,55],[220,53],[216,9],[219,56],[217,45],[218,57],[255,58],[223,45],[224,45],[225,45],[222,9],[226,45],[227,45],[228,45],[249,45],[244,59],[229,45],[252,60],[230,45],[231,45],[232,45],[246,45],[233,45],[234,45],[247,45],[235,45],[245,33],[250,45],[251,45],[236,45],[237,45],[248,61],[238,45],[186,45],[239,45],[240,45],[241,45],[242,45],[185,33],[243,62],[180,63],[254,64],[178,63],[253,65],[106,66],[107,31],[279,67],[46,68],[47,68],[49,69],[50,70],[51,71],[52,72],[53,73],[54,74],[55,75],[56,76],[57,77],[58,78],[59,78],[61,79],[60,80],[62,79],[63,81],[64,82],[48,83],[98,33],[65,84],[66,85],[67,86],[99,87],[68,88],[69,89],[70,90],[71,91],[72,92],[73,93],[74,94],[75,95],[76,96],[77,97],[78,97],[79,98],[80,99],[82,100],[81,101],[83,102],[84,103],[85,33],[86,104],[87,105],[88,106],[89,107],[90,108],[91,109],[92,110],[93,111],[94,112],[95,113],[96,114],[97,115],[280,116],[257,33],[156,33],[258,117],[100,33],[109,33],[102,33],[104,118],[103,33],[101,33],[256,33],[105,119],[265,33],[268,33],[1,33],[9,33],[13,33],[12,33],[3,33],[14,33],[15,33],[16,33],[17,33],[18,33],[19,33],[20,33],[21,33],[4,33],[5,33],[25,33],[22,33],[23,33],[24,33],[26,33],[27,33],[28,33],[6,33],[29,33],[30,33],[31,33],[32,33],[7,33],[36,33],[33,33],[34,33],[35,33],[37,33],[8,33],[38,33],[43,33],[44,33],[39,33],[40,33],[41,33],[42,33],[2,33],[45,33],[11,33],[10,33],[269,135],[108,136],[161,137],[276,138],[162,139],[158,140],[271,141],[259,142],[262,33],[263,143],[272,144],[160,142],[273,142],[159,145],[275,146],[274,147],[270,148],[157,149],[261,150],[281,33],[282,33],[283,33]],"semanticDiagnosticsPerFile":[127,128,130,137,129,136,132,133,135,131,134,116,110,153,152,151,115,118,112,111,126,150,117,149,119,124,121,122,120,125,123,114,143,142,140,144,141,146,148,139,147,113,138,145,267,266,264,177,163,164,165,166,167,168,169,170,171,172,173,174,175,176,181,193,182,183,184,187,188,189,190,191,192,194,195,196,197,200,198,199,201,204,202,203,179,205,221,206,209,207,208,210,213,211,212,214,215,220,216,219,217,218,255,223,224,225,222,226,227,228,249,244,229,252,230,231,232,246,233,234,247,235,245,250,251,236,237,248,238,186,239,240,241,242,185,243,180,254,178,253,106,107,279,46,47,49,50,51,52,53,54,55,56,57,58,59,61,60,62,63,64,48,98,65,66,67,99,68,69,70,71,72,73,74,75,76,77,78,79,80,82,81,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,280,257,156,258,100,109,102,104,103,101,256,105,265,268,1,9,13,12,3,14,15,16,17,18,19,20,21,4,5,25,22,23,24,26,27,28,6,29,30,31,32,7,36,33,34,35,37,8,38,43,44,39,40,41,42,2,45,11,10,269,108,161,155,260,154,276,162,158,271,259,262,263,272,160,277,278,273,159,275,274,270,157,261,281,282,283]},"version":"4.9.5"}
|
package/dist/types/index.d.ts
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
import { MethodsNamespace, IdlTypes, IdlAccounts, BN, IdlEvents } from "@coral-xyz/anchor";
|
3
3
|
import { Perpetuals } from "../idl/perpetuals";
|
4
4
|
import { FbnftRewards } from "../idl/fbnft_rewards";
|
5
|
+
import { OraclePrice } from "../OraclePrice";
|
5
6
|
export type PositionSide = "long" | "short";
|
6
7
|
export type Methods = MethodsNamespace<Perpetuals>;
|
7
8
|
export type Accounts = IdlAccounts<Perpetuals>;
|
@@ -126,26 +127,26 @@ export interface ExitPriceAndFee {
|
|
126
127
|
exitFeeAmount: BN;
|
127
128
|
exitFeeUsdAfterDiscount: BN;
|
128
129
|
exitFeeAmountAfterDiscount: BN;
|
129
|
-
liquidationPrice:
|
130
|
+
liquidationPrice: OraclePrice;
|
130
131
|
}
|
131
132
|
export interface MinAndMaxPrice {
|
132
133
|
min: BN;
|
133
134
|
max: BN;
|
134
135
|
}
|
135
136
|
export interface EntryPriceAndFee {
|
136
|
-
|
137
|
+
entryOraclePrice: OraclePrice;
|
137
138
|
feeUsd: BN;
|
138
139
|
feeAmount: BN;
|
139
140
|
feeUsdAfterDiscount: BN;
|
140
141
|
feeAmountAfterDiscount: BN;
|
141
|
-
liquidationPrice:
|
142
|
+
liquidationPrice: OraclePrice;
|
142
143
|
}
|
143
144
|
export interface RemoveCollateralData {
|
144
145
|
newSizeUsd: BN;
|
145
146
|
feeUsd: BN;
|
146
147
|
feeUsdWithDiscount: BN;
|
147
148
|
newLev: BN;
|
148
|
-
liquidationPrice:
|
149
|
+
liquidationPrice: OraclePrice;
|
149
150
|
collateralAmountRecieved: BN;
|
150
151
|
newCollateralAmount: BN;
|
151
152
|
newPnl: BN;
|