@clonegod/ttd-sol-common 1.0.104 → 1.0.106

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.
@@ -57,16 +57,22 @@ function get_latest_jito_tip(speed, fee_max_cap) {
57
57
  if (tip_sol > JITO_TIP_MAX) {
58
58
  tip_sol = JITO_TIP_MAX;
59
59
  }
60
- let tip_lamports = Math.ceil((tip_sol * 1.02) * web3_js_1.LAMPORTS_PER_SOL);
60
+ let tip_lamports = Math.ceil((tip_sol * 1.2) * web3_js_1.LAMPORTS_PER_SOL);
61
61
  if (tip_lamports > fee_max_cap) {
62
62
  tip_lamports = fee_max_cap;
63
63
  }
64
+ (0, dist_1.log_info)('get_latest_jito_tip', {
65
+ jito_tip_floor,
66
+ tip_sol,
67
+ tip_lamports
68
+ });
64
69
  return tip_lamports;
65
70
  });
66
71
  }
67
72
  const jito_tip_ws_url = 'ws://bundles-api-rest.jito.wtf/api/v1/bundles/tip_stream';
68
73
  const subscribe_jito_tips = () => __awaiter(void 0, void 0, void 0, function* () {
69
74
  if (process.env.SUB_JITO_TIPS !== 'true') {
75
+ (0, dist_1.log_info)(`subscribe_jito_tips, process.env.SUB_JITO_TIPS=${process.env.SUB_JITO_TIPS}, skip!`);
70
76
  return;
71
77
  }
72
78
  (0, dist_1.log_info)(`subscribe_jito_tips`, jito_tip_ws_url);
@@ -75,7 +81,7 @@ const subscribe_jito_tips = () => __awaiter(void 0, void 0, void 0, function* ()
75
81
  setInterval(() => {
76
82
  if (ws.readyState === ws_1.default.OPEN) {
77
83
  ws.ping();
78
- (0, dist_1.log_debug)('Ping helius ws server');
84
+ (0, dist_1.log_debug)('Ping ws server');
79
85
  }
80
86
  }, 30000);
81
87
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sol-common",
3
- "version": "1.0.104",
3
+ "version": "1.0.106",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",