@clonegod/ttd-sol-common 1.0.28 → 1.0.30

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.
@@ -423,8 +423,7 @@ class RpcClient {
423
423
  throw new Error(`Error fetching compute units for the instructions provided`);
424
424
  }
425
425
  }), 0);
426
- let units = solana_trade_runtime.cu_limit;
427
- const customersCU = units < 1000 ? 1000 : Math.ceil(units * 1.1);
426
+ const customersCU = Math.ceil(solana_trade_runtime.cu_limit);
428
427
  const computeUnitsIx = web3_js_1.ComputeBudgetProgram.setComputeUnitLimit({
429
428
  units: customersCU,
430
429
  });
@@ -56,7 +56,7 @@ function get_excat_fee_by_speed(speed, fee_exact) {
56
56
  function get_dynamic_fee_by_speed(speed, estimate_priority_fee, fee_max_cap) {
57
57
  let factor = 1;
58
58
  if (speed === 'fast') {
59
- factor = 1.2;
59
+ factor = 1;
60
60
  }
61
61
  if (speed === 'turbo') {
62
62
  factor = 2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sol-common",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",