@meteora-ag/dlmm 1.6.0-rc.6 → 1.6.0-rc.8

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 CHANGED
@@ -10302,8 +10302,6 @@ declare class DLMM {
10302
10302
  quoteCreatePosition({ strategy }: TQuoteCreatePositionParams): Promise<{
10303
10303
  binArraysCount: number;
10304
10304
  binArrayCost: number;
10305
- positionCount: number;
10306
- positionCost: number;
10307
10305
  }>;
10308
10306
  /**
10309
10307
  * Creates an empty position and initializes the corresponding bin arrays if needed.
package/dist/index.js CHANGED
@@ -15107,16 +15107,10 @@ var DLMM = class {
15107
15107
  lowerBinArrayIndex.add(new (0, _anchor.BN)(1))
15108
15108
  );
15109
15109
  const binArraysCount = (await this.binArraysToBeCreate(lowerBinArrayIndex, upperBinArrayIndex)).length;
15110
- const positionCount = Math.ceil(
15111
- (maxBinId - minBinId + 1) / Number(MAX_BINS_PER_POSITION)
15112
- );
15113
15110
  const binArrayCost = binArraysCount * BIN_ARRAY_FEE;
15114
- const positionCost = positionCount * POSITION_FEE;
15115
15111
  return {
15116
15112
  binArraysCount,
15117
- binArrayCost,
15118
- positionCount,
15119
- positionCost
15113
+ binArrayCost
15120
15114
  };
15121
15115
  }
15122
15116
  /**
@@ -18486,7 +18480,8 @@ var DLMM = class {
18486
18480
  );
18487
18481
  const latestBlockhashInfo = await this.program.provider.connection.getLatestBlockhash();
18488
18482
  const tx = new (0, _web3js.Transaction)({
18489
- ...latestBlockhashInfo
18483
+ ...latestBlockhashInfo,
18484
+ feePayer: owner
18490
18485
  }).add(...ixs);
18491
18486
  return tx;
18492
18487
  }