@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.d.ts CHANGED
@@ -7770,7 +7770,7 @@ declare class DLMM {
7770
7770
  quoteCreatePosition({ strategy }: TQuoteCreatePositionParams): Promise<{
7771
7771
  binArraysCount: number;
7772
7772
  binArrayCost: number;
7773
- positionCost: Promise<number>;
7773
+ positionCost: number;
7774
7774
  }>;
7775
7775
  /**
7776
7776
  * Creates an empty position and initializes the corresponding bin arrays if needed.
@@ -8523,6 +8523,7 @@ declare function toStrategyParameters({ maxBinId, minBinId, strategyType, single
8523
8523
  */
8524
8524
  declare function getTokensMintFromPoolAddress(connection: Connection, poolAddress: string, opt?: {
8525
8525
  cluster?: Cluster;
8526
+ programId?: PublicKey;
8526
8527
  }): Promise<{
8527
8528
  tokenXMint: PublicKey;
8528
8529
  tokenYMint: PublicKey;
package/dist/index.js CHANGED
@@ -9634,7 +9634,7 @@ async function getTokensMintFromPoolAddress(connection, poolAddress, opt) {
9634
9634
  );
9635
9635
  const program = new (0, _anchor.Program)(
9636
9636
  IDL,
9637
- LBCLMM_PROGRAM_IDS[_nullishCoalesce(_optionalChain([opt, 'optionalAccess', _21 => _21.cluster]), () => ( "mainnet-beta"))],
9637
+ _nullishCoalesce(opt.programId, () => ( LBCLMM_PROGRAM_IDS[_nullishCoalesce(_optionalChain([opt, 'optionalAccess', _21 => _21.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 (0, _anchor.BN)(binCount)
11718
11718
  );