@clonegod/ttd-bsc-common 3.1.59 → 3.1.60

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.
@@ -138,9 +138,8 @@ class QuotePriceVerify {
138
138
  const absDiffBps = Math.abs(diffBps);
139
139
  const status = absDiffBps < 10 ? '✅' : absDiffBps < 30 ? '⚠️' : '❌';
140
140
  const usdStr = swapUsd > 0 ? `$${swapUsd.toFixed(0)}` : '$?';
141
- const minUsd = cached.quoteAmountUsd * 0.5;
142
141
  const maxUsd = cached.quoteAmountUsd * 2;
143
- const inRange = swapUsd <= 0 || (swapUsd >= minUsd && swapUsd <= maxUsd);
142
+ const inRange = swapUsd <= 0 || swapUsd <= maxUsd;
144
143
  const rangeTag = inRange ? '' : ' [out]';
145
144
  const tradeFlow = isBuy
146
145
  ? `${inputAmountUi.toFixed(4)} ${quoteToken.symbol} -> ${outputAmountUi.toFixed(4)} ${baseToken.symbol}`
@@ -158,6 +157,8 @@ class QuotePriceVerify {
158
157
  pool_address: poolAddress,
159
158
  pool_name: poolName,
160
159
  price_id: cached.priceId,
160
+ source: cached.source,
161
+ quote_amount_usd: cached.quoteAmountUsd,
161
162
  quote_block: cached.referenceBlock,
162
163
  swap_block: swapBlockNumber,
163
164
  tx_hash: txHash || '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-bsc-common",
3
- "version": "3.1.59",
3
+ "version": "3.1.60",
4
4
  "description": "BSC common library",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/index.js",