@meteora-ag/dlmm 1.3.9-dp.0 → 1.3.9-dp.2

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
@@ -9634,7 +9634,7 @@ async function getTokensMintFromPoolAddress(connection, poolAddress, opt) {
9634
9634
  );
9635
9635
  const program = new Program2(
9636
9636
  IDL,
9637
- LBCLMM_PROGRAM_IDS[opt?.cluster ?? "mainnet-beta"],
9637
+ opt.programId ?? LBCLMM_PROGRAM_IDS[opt?.cluster ?? "mainnet-beta"],
9638
9638
  provider
9639
9639
  );
9640
9640
  const poolAccount = await program.account.lbPair.fetchNullable(
@@ -11712,7 +11712,7 @@ var DLMM = class {
11712
11712
  const binArraysCount = (await this.binArraysToBeCreate(lowerBinArrayIndex, upperBinArrayIndex)).length;
11713
11713
  const binArrayCost = binArraysCount * BIN_ARRAY_FEE;
11714
11714
  const binCount = maxBinId - minBinId + 1;
11715
- const positionCost = getPositionRentExemption(
11715
+ const positionCost = await getPositionRentExemption(
11716
11716
  this.program.provider.connection,
11717
11717
  new BN13(binCount)
11718
11718
  );