@haven-fi/solauto-sdk 1.0.159 → 1.0.160

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.
@@ -157,7 +157,7 @@ async function sendSingleOptimizedTransaction(umi, connection, tx, txType, attem
157
157
  if (txType !== "skip-simulation") {
158
158
  // TODO: we should only retry simulation if it's not a solauto error
159
159
  const simulationResult = await (0, generalUtils_1.retryWithExponentialBackoff)(async () => await simulateTransaction(connection, (0, umi_web3js_adapters_1.toWeb3JsTransaction)(await (await assembleFinalTransaction(umi.identity, tx, feeEstimate, 1400000).setLatestBlockhash(umi)).build(umi))), 3);
160
- const computeUnitLimit = Math.round(simulationResult.value.unitsConsumed * 1.1);
160
+ const computeUnitLimit = Math.round(simulationResult.value.unitsConsumed * 1.2);
161
161
  console.log("Compute unit limit: ", computeUnitLimit);
162
162
  }
163
163
  if (txType !== "only-simulate") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.159",
3
+ "version": "1.0.160",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "Typescript SDK for the Solauto program on the Solana blockchain",
@@ -309,7 +309,7 @@ export async function sendSingleOptimizedTransaction(
309
309
  );
310
310
 
311
311
  const computeUnitLimit = Math.round(
312
- simulationResult.value.unitsConsumed! * 1.1
312
+ simulationResult.value.unitsConsumed! * 1.2
313
313
  );
314
314
  console.log("Compute unit limit: ", computeUnitLimit);
315
315
  }