@meteora-ag/dlmm 1.6.0-rc.30 → 1.6.0-rc.31

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.mjs CHANGED
@@ -15742,7 +15742,10 @@ var DLMM = class {
15742
15742
  async quoteCreatePosition({ strategy }) {
15743
15743
  const { minBinId, maxBinId } = strategy;
15744
15744
  const binCount = maxBinId - minBinId + 1;
15745
- const positionCount = Math.floor(binCount / MAX_BINS_PER_POSITION.toNumber()) + 1;
15745
+ let positionCount = Math.floor(binCount / MAX_BINS_PER_POSITION.toNumber());
15746
+ if (binCount % MAX_BINS_PER_POSITION.toNumber() > 0) {
15747
+ positionCount++;
15748
+ }
15746
15749
  let positionReallocCost = 0;
15747
15750
  let lastUpperBinId = minBinId;
15748
15751
  for (let i = 0; i < positionCount; i++) {