@clonegod/ttd-bsc-common 3.1.93 → 3.1.94

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.
@@ -37,7 +37,12 @@ class AbstractDexQuote {
37
37
  const summary = await this.loadPool(p);
38
38
  if (summary.verifyContract)
39
39
  await this.chain.assertContractDeployed(summary.verifyContract);
40
- (0, ttd_core_1.log_info)(`[QUOTE INIT] ${p.pool_name} (${p.pool_address}) dex=${this.dexId}`, { ...summary });
40
+ const taxes = (0, token_tax_1.getPoolTokenTaxes)(p);
41
+ const symbolOf = (addr) => [p.tokenA, p.tokenB].find(t => t?.address?.toLowerCase() === addr.toLowerCase())?.symbol || addr.slice(0, 10) + '…';
42
+ const taxInfo = taxes.length > 0
43
+ ? { token_taxes: taxes.map(t => `${symbolOf(t.token_address)} buy=${t.buy_tax_bps}bps sell=${t.sell_tax_bps}bps`).join(', ') + '(报价=用户实际口径)' }
44
+ : {};
45
+ (0, ttd_core_1.log_info)(`[QUOTE INIT] ${p.pool_name} (${p.pool_address}) dex=${this.dexId}`, { ...summary, ...taxInfo });
41
46
  }));
42
47
  this.registerEventHandlers();
43
48
  (0, ttd_core_1.log_info)(`${this.dexId} Quote 初始化完成,${this.poolInfoMap.size} 个有效池`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-bsc-common",
3
- "version": "3.1.93",
3
+ "version": "3.1.94",
4
4
  "description": "BSC common library",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/index.js",