@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
|
-
|
|
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
|
});
|
package/dist/strategy_util.js
CHANGED