@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 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 - minBinId;
13061
- const maxDeltaId = lbPair.activeId - maxBinId;
13060
+ const minDeltaId = minBinId - lbPair.activeId;
13061
+ const maxDeltaId = maxBinId - lbPair.activeId;
13062
13062
  const { amountX } = builder.suggestBalancedXParametersFromY(
13063
13063
  new (0, _bnjs2.default)(lbPair.activeId),
13064
13064
  new (0, _bnjs2.default)(lbPair.binStep),