@meteora-ag/dlmm 1.7.3 → 1.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +10 -2
- package/dist/index.js +14 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -13786,27 +13786,22 @@ async function chunkDepositWithRebalanceEndpoint(dlmm, strategy, slippagePercent
|
|
|
13786
13786
|
}
|
|
13787
13787
|
const minDeltaId = new BN18(chunkMinBinId - dlmm.lbPair.activeId);
|
|
13788
13788
|
const maxDeltaId = new BN18(chunkMaxBinId - dlmm.lbPair.activeId);
|
|
13789
|
-
const { bitFlag, ...baseAndDelta } = buildBitFlagAndNegateStrategyParameters(
|
|
13790
|
-
liquidityStrategyParameters.x0,
|
|
13791
|
-
liquidityStrategyParameters.y0,
|
|
13792
|
-
liquidityStrategyParameters.deltaX,
|
|
13793
|
-
liquidityStrategyParameters.deltaY
|
|
13794
|
-
);
|
|
13795
13789
|
const { deltaX, deltaY, x0, y0 } = resetUninvolvedLiquidityParams(
|
|
13796
13790
|
minDeltaId,
|
|
13797
13791
|
maxDeltaId,
|
|
13798
13792
|
strategy.singleSidedX,
|
|
13799
13793
|
{
|
|
13800
|
-
...
|
|
13794
|
+
...liquidityStrategyParameters
|
|
13801
13795
|
}
|
|
13802
13796
|
);
|
|
13797
|
+
const { bitFlag, ...baseAndDelta } = buildBitFlagAndNegateStrategyParameters(x0, y0, deltaX, deltaY);
|
|
13803
13798
|
const addParam = {
|
|
13804
13799
|
minDeltaId: minDeltaId.toNumber(),
|
|
13805
13800
|
maxDeltaId: maxDeltaId.toNumber(),
|
|
13806
|
-
x0,
|
|
13807
|
-
y0,
|
|
13808
|
-
deltaX,
|
|
13809
|
-
deltaY,
|
|
13801
|
+
x0: baseAndDelta.x0,
|
|
13802
|
+
y0: baseAndDelta.y0,
|
|
13803
|
+
deltaX: baseAndDelta.deltaX,
|
|
13804
|
+
deltaY: baseAndDelta.deltaY,
|
|
13810
13805
|
bitFlag,
|
|
13811
13806
|
favorXInActiveId: strategy.singleSidedX,
|
|
13812
13807
|
padding: Array(36).fill(0)
|
|
@@ -20006,6 +20001,7 @@ export {
|
|
|
20006
20001
|
autoFillXByWeight,
|
|
20007
20002
|
autoFillYByStrategy,
|
|
20008
20003
|
autoFillYByWeight,
|
|
20004
|
+
binArrayLbPairFilter,
|
|
20009
20005
|
binIdToBinArrayIndex,
|
|
20010
20006
|
buildBitFlagAndNegateStrategyParameters,
|
|
20011
20007
|
buildLiquidityStrategyParameters,
|
|
@@ -20090,6 +20086,12 @@ export {
|
|
|
20090
20086
|
isPositionNoFee,
|
|
20091
20087
|
isPositionNoReward,
|
|
20092
20088
|
parseLogs,
|
|
20089
|
+
positionLbPairFilter,
|
|
20090
|
+
positionOwnerFilter,
|
|
20091
|
+
positionV2Filter,
|
|
20092
|
+
presetParameter2BaseFactorFilter,
|
|
20093
|
+
presetParameter2BaseFeePowerFactor,
|
|
20094
|
+
presetParameter2BinStepFilter,
|
|
20093
20095
|
range,
|
|
20094
20096
|
resetUninvolvedLiquidityParams,
|
|
20095
20097
|
suggestBalancedXParametersFromY,
|