@meteora-ag/dlmm 1.4.6-rc.2 → 1.4.6-rc.4

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
@@ -14575,6 +14575,7 @@ var DLMM = class {
14575
14575
  const binArrayBitMapExtensionPubkey = isOverflowDefaultBinArrayBitmap(
14576
14576
  fromBinArrayIndex
14577
14577
  ) ? deriveBinArrayBitmapExtension(this.pubkey, this.program.programId)[0] : null;
14578
+ console.log("\u{1F680} ~ DLMM ~ syncWithMarketPrice ~ binArrayBitMapExtensionPubkey:", binArrayBitMapExtensionPubkey);
14578
14579
  binArrayBitMapExtensionPubkey && accountsToFetch.push(binArrayBitMapExtensionPubkey);
14579
14580
  const [fromBinArrayPubkey] = deriveBinArray(
14580
14581
  this.pubkey,
@@ -14601,9 +14602,8 @@ var DLMM = class {
14601
14602
  let toBinArray = null;
14602
14603
  let binArrayBitmapExtension = null;
14603
14604
  if (binArrayBitMapExtensionPubkey) {
14604
- if (!!_optionalChain([binArrayAccounts, 'optionalAccess', _96 => _96[0]])) {
14605
- binArrayBitmapExtension = binArrayBitMapExtensionPubkey;
14606
- } else {
14605
+ binArrayBitmapExtension = binArrayBitMapExtensionPubkey;
14606
+ if (!_optionalChain([binArrayAccounts, 'optionalAccess', _96 => _96[0]])) {
14607
14607
  const initializeBitmapExtensionIx = await this.program.methods.initializeBinArrayBitmapExtension().accounts({
14608
14608
  binArrayBitmapExtension: binArrayBitMapExtensionPubkey,
14609
14609
  funder: owner,
@@ -14612,6 +14612,7 @@ var DLMM = class {
14612
14612
  preInstructions.push(initializeBitmapExtensionIx);
14613
14613
  }
14614
14614
  }
14615
+ console.log({ binArrayBitmapExtension });
14615
14616
  if (!!_optionalChain([binArrayAccounts, 'optionalAccess', _97 => _97[1]])) {
14616
14617
  fromBinArray = fromBinArrayPubkey;
14617
14618
  }