@meteora-ag/dlmm 1.4.6-rc.3 → 1.4.6

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
@@ -14572,10 +14572,11 @@ var DLMM = class {
14572
14572
  _nullishCoalesce(_optionalChain([this, 'access', _94 => _94.binArrayBitmapExtension, 'optionalAccess', _95 => _95.account]), () => ( null))
14573
14573
  );
14574
14574
  const accountsToFetch = [];
14575
- const binArrayBitMapExtensionPubkey = isOverflowDefaultBinArrayBitmap(
14576
- fromBinArrayIndex
14577
- ) ? deriveBinArrayBitmapExtension(this.pubkey, this.program.programId)[0] : null;
14578
- binArrayBitMapExtensionPubkey && accountsToFetch.push(binArrayBitMapExtensionPubkey);
14575
+ const [binArrayBitMapExtensionPubkey] = deriveBinArrayBitmapExtension(
14576
+ this.pubkey,
14577
+ this.program.programId
14578
+ );
14579
+ accountsToFetch.push(binArrayBitMapExtensionPubkey);
14579
14580
  const [fromBinArrayPubkey] = deriveBinArray(
14580
14581
  this.pubkey,
14581
14582
  fromBinArrayIndex,
@@ -14596,20 +14597,11 @@ var DLMM = class {
14596
14597
  const binArrayAccounts = await this.program.provider.connection.getMultipleAccountsInfo(
14597
14598
  accountsToFetch
14598
14599
  );
14599
- const preInstructions = [];
14600
14600
  let fromBinArray = null;
14601
14601
  let toBinArray = null;
14602
14602
  let binArrayBitmapExtension = null;
14603
- if (binArrayBitMapExtensionPubkey) {
14603
+ if (!!_optionalChain([binArrayAccounts, 'optionalAccess', _96 => _96[0]])) {
14604
14604
  binArrayBitmapExtension = binArrayBitMapExtensionPubkey;
14605
- if (!_optionalChain([binArrayAccounts, 'optionalAccess', _96 => _96[0]])) {
14606
- const initializeBitmapExtensionIx = await this.program.methods.initializeBinArrayBitmapExtension().accounts({
14607
- binArrayBitmapExtension: binArrayBitMapExtensionPubkey,
14608
- funder: owner,
14609
- lbPair: this.pubkey
14610
- }).instruction();
14611
- preInstructions.push(initializeBitmapExtensionIx);
14612
- }
14613
14605
  }
14614
14606
  if (!!_optionalChain([binArrayAccounts, 'optionalAccess', _97 => _97[1]])) {
14615
14607
  fromBinArray = fromBinArrayPubkey;
@@ -14623,7 +14615,7 @@ var DLMM = class {
14623
14615
  binArrayBitmapExtension,
14624
14616
  fromBinArray,
14625
14617
  toBinArray
14626
- }).preInstructions(preInstructions).transaction();
14618
+ }).transaction();
14627
14619
  return new (0, _web3js.Transaction)({
14628
14620
  feePayer: owner,
14629
14621
  blockhash,