@haven-fi/solauto-sdk 1.0.318 → 1.0.319

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.
@@ -233,7 +233,7 @@ async function sendSingleOptimizedTransaction(umi, connection, tx, txType, prior
233
233
  if (txType !== "skip-simulation") {
234
234
  const simulationResult = await (0, generalUtils_1.retryWithExponentialBackoff)(async () => await simulateTransaction(umi, connection, await assembleFinalTransaction(umi.identity, tx, cuPrice, 1400000).setLatestBlockhash(umi)), 3);
235
235
  simulationResult.value.err;
236
- computeUnitLimit = Math.round(simulationResult.value.unitsConsumed * 1.2);
236
+ computeUnitLimit = Math.round(simulationResult.value.unitsConsumed * 1.15);
237
237
  (0, generalUtils_1.consoleLog)("Compute unit limit: ", computeUnitLimit);
238
238
  }
239
239
  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.318",
3
+ "version": "1.0.319",
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",
@@ -416,7 +416,7 @@ export async function sendSingleOptimizedTransaction(
416
416
  3
417
417
  );
418
418
  simulationResult.value.err;
419
- computeUnitLimit = Math.round(simulationResult.value.unitsConsumed! * 1.2);
419
+ computeUnitLimit = Math.round(simulationResult.value.unitsConsumed! * 1.15);
420
420
  consoleLog("Compute unit limit: ", computeUnitLimit);
421
421
  }
422
422