@openocean.finance/openocean-sdk 1.6.9 → 1.6.10

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.
@@ -258,7 +258,7 @@ var Swap = /** @class */ (function () {
258
258
  lastValidBlockHeight = _d.sent();
259
259
  blockhashWithExpiryBlockHeight = {
260
260
  blockhash: transaction._message ? transaction._message.recentBlockhash : blockhashInfo.blockhash,
261
- lastValidBlockHeight: lastValidBlockHeight + 300,
261
+ lastValidBlockHeight: lastValidBlockHeight + 400,
262
262
  };
263
263
  _d.label = 11;
264
264
  case 11: return [4 /*yield*/, (0, solanaTransactionSender_1.transactionSenderAndConfirmationWaiter)({
@@ -134,7 +134,7 @@ function transactionSenderAndConfirmationWaiter(_a) {
134
134
  }); }),
135
135
  ];
136
136
  if (blockhashWithExpiryBlockHeight && blockhashWithExpiryBlockHeight.lastValidBlockHeight) {
137
- lastValidBlockHeight = blockhashWithExpiryBlockHeight.lastValidBlockHeight - 300;
137
+ lastValidBlockHeight = blockhashWithExpiryBlockHeight.lastValidBlockHeight - 150;
138
138
  races.push(connection.confirmTransaction(__assign(__assign({}, blockhashWithExpiryBlockHeight), { lastValidBlockHeight: lastValidBlockHeight, signature: txid, abortSignal: abortSignal }), "confirmed"));
139
139
  }
140
140
  // this would throw TransactionExpiredBlockheightExceededError
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openocean.finance/openocean-sdk",
3
- "version": "1.6.9",
3
+ "version": "1.6.10",
4
4
  "description": "Openocean sdk",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {