@meteora-ag/dlmm 1.0.4 → 1.0.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.mjs CHANGED
@@ -7455,7 +7455,7 @@ var DLMM = class {
7455
7455
  pubkey
7456
7456
  };
7457
7457
  });
7458
- return await this.program.methods.swap(inAmount, minOutAmount).accounts({
7458
+ const swapTx = await this.program.methods.swap(inAmount, minOutAmount).accounts({
7459
7459
  lbPair,
7460
7460
  reserveX,
7461
7461
  reserveY,
@@ -7472,6 +7472,12 @@ var DLMM = class {
7472
7472
  oracle,
7473
7473
  hostFeeIn: null
7474
7474
  }).remainingAccounts(binArrays).preInstructions(preInstructions).postInstructions(postInstructions).transaction();
7475
+ const { blockhash, lastValidBlockHeight } = await this.program.provider.connection.getLatestBlockhash("confirmed");
7476
+ return new Transaction({
7477
+ blockhash,
7478
+ lastValidBlockHeight,
7479
+ feePayer: user
7480
+ }).add(swapTx);
7475
7481
  }
7476
7482
  /**
7477
7483
  * The claimLMReward function is used to claim rewards for a specific position owned by a specific owner.
@@ -8230,6 +8236,7 @@ export {
8230
8236
  DLMMError,
8231
8237
  EXTENSION_BINARRAY_BITMAP_SIZE,
8232
8238
  FEE_PRECISION,
8239
+ IDL,
8233
8240
  LBCLMM_PROGRAM_IDS,
8234
8241
  MAX_ACTIVE_BIN_SLIPPAGE,
8235
8242
  MAX_BIN_ARRAY_SIZE,