@meteora-ag/dlmm 1.4.7-rc.1 → 1.4.7

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
@@ -14571,11 +14571,8 @@ var DLMM = class {
14571
14571
  this.lbPair,
14572
14572
  _nullishCoalesce(_optionalChain([this, 'access', _94 => _94.binArrayBitmapExtension, 'optionalAccess', _95 => _95.account]), () => ( null))
14573
14573
  );
14574
- const marketPriceBinArrayIndex = findNextBinArrayIndexWithLiquidity(
14575
- swapForY,
14576
- new (0, _anchor.BN)(marketPriceBinId),
14577
- this.lbPair,
14578
- _nullishCoalesce(_optionalChain([this, 'access', _96 => _96.binArrayBitmapExtension, 'optionalAccess', _97 => _97.account]), () => ( null))
14574
+ const marketPriceBinArrayIndex = binIdToBinArrayIndex(
14575
+ new (0, _anchor.BN)(marketPriceBinId)
14579
14576
  );
14580
14577
  const accountsToFetch = [];
14581
14578
  const binArrayBitMapExtensionPubkey = isOverflowDefaultBinArrayBitmap(
@@ -14608,7 +14605,7 @@ var DLMM = class {
14608
14605
  let binArrayBitmapExtension = null;
14609
14606
  if (binArrayBitMapExtensionPubkey) {
14610
14607
  binArrayBitmapExtension = binArrayBitMapExtensionPubkey;
14611
- if (!_optionalChain([binArrayAccounts, 'optionalAccess', _98 => _98[0]])) {
14608
+ if (!_optionalChain([binArrayAccounts, 'optionalAccess', _96 => _96[0]])) {
14612
14609
  const initializeBitmapExtensionIx = await this.program.methods.initializeBinArrayBitmapExtension().accounts({
14613
14610
  binArrayBitmapExtension: binArrayBitMapExtensionPubkey,
14614
14611
  funder: owner,
@@ -14617,10 +14614,10 @@ var DLMM = class {
14617
14614
  preInstructions.push(initializeBitmapExtensionIx);
14618
14615
  }
14619
14616
  }
14620
- if (!!_optionalChain([binArrayAccounts, 'optionalAccess', _99 => _99[1]])) {
14617
+ if (!!_optionalChain([binArrayAccounts, 'optionalAccess', _97 => _97[1]])) {
14621
14618
  fromBinArray = fromBinArrayPubkey;
14622
14619
  }
14623
- if (!!_optionalChain([binArrayAccounts, 'optionalAccess', _100 => _100[2]]) && !!toBinArrayIndex) {
14620
+ if (!!_optionalChain([binArrayAccounts, 'optionalAccess', _98 => _98[2]]) && !!toBinArrayIndex) {
14624
14621
  toBinArray = toBinArrayPubkey;
14625
14622
  }
14626
14623
  const { blockhash, lastValidBlockHeight } = await this.program.provider.connection.getLatestBlockhash("confirmed");
@@ -14960,7 +14957,7 @@ var DLMM = class {
14960
14957
  );
14961
14958
  })
14962
14959
  );
14963
- const version = _nullishCoalesce(_optionalChain([binArrays, 'access', _101 => _101.find, 'call', _102 => _102((binArray) => binArray != null), 'optionalAccess', _103 => _103.version]), () => ( 1));
14960
+ const version = _nullishCoalesce(_optionalChain([binArrays, 'access', _99 => _99.find, 'call', _100 => _100((binArray) => binArray != null), 'optionalAccess', _101 => _101.version]), () => ( 1));
14964
14961
  return Array.from(
14965
14962
  enumerateBins(
14966
14963
  binsById,