@meteora-ag/dlmm 1.6.0-rc.20 → 1.6.0-rc.21
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.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -13057,8 +13057,8 @@ function getAutoFillAmountByRebalancedPosition(rebalancePosition, strategyType)
|
|
|
13057
13057
|
} else {
|
|
13058
13058
|
minBinId = rebalancePosition.rebalancePositionBinData[favorXInActiveBin ? activeIdIndex - 1 : activeIdIndex].binId;
|
|
13059
13059
|
}
|
|
13060
|
-
const minDeltaId = lbPair.activeId
|
|
13061
|
-
const maxDeltaId = lbPair.activeId
|
|
13060
|
+
const minDeltaId = minBinId - lbPair.activeId;
|
|
13061
|
+
const maxDeltaId = maxBinId - lbPair.activeId;
|
|
13062
13062
|
const { amountX } = builder.suggestBalancedXParametersFromY(
|
|
13063
13063
|
new BN15(lbPair.activeId),
|
|
13064
13064
|
new BN15(lbPair.binStep),
|