@clonegod/ttd-sol-common 1.0.79 → 1.0.80

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.
@@ -8,6 +8,9 @@ const constants_1 = require("../common/constants");
8
8
  function create_solana_trade_runtime(connection, trade_runtime, pool_info) {
9
9
  let trade_strategy = trade_runtime.settings.strategy;
10
10
  let { total_gas, priority_fee, tip_amount } = get_priority_fee_and_tip(trade_strategy);
11
+ console.log({
12
+ total_gas, priority_fee, tip_amount
13
+ });
11
14
  let { cu_limit, use_jito_plugin } = pool_info;
12
15
  if (isNaN(cu_limit) || cu_limit < 35000) {
13
16
  cu_limit = 35000;
@@ -45,7 +48,7 @@ function get_priority_fee_and_tip(trade_strategy) {
45
48
  priority_fee = total_gas;
46
49
  tip_amount = 0;
47
50
  }
48
- if (trade_strategy.broadcast_type === 'jito') {
51
+ else if (trade_strategy.broadcast_type === 'jito') {
49
52
  priority_fee = 0;
50
53
  tip_amount = total_gas;
51
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sol-common",
3
- "version": "1.0.79",
3
+ "version": "1.0.80",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",