From 35eaa8fe56b935df20a4cad152dfafab0e5aeb5a Mon Sep 17 00:00:00 2001 From: nirvagold Date: Tue, 13 Jan 2026 11:17:57 +0700 Subject: [PATCH] fix(ui): Show N/A for tax when simulation fails + warning banner - Display 'N/A' instead of 0% when buy/sell simulation fails - Add yellow warning banner explaining why tax cannot be verified - Indicate (Unverified) in Tax Breakdown header - Better UX for tokens without V2 liquidity --- docs/index.html | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/docs/index.html b/docs/index.html index dec72f4..0ea285a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -917,33 +917,45 @@

💸 Tax Breakdown + ${(!data.buy_success && !data.sell_success) ? '(Unverified)' : ''}

+ ${(!data.buy_success && !data.sell_success) ? ` +
+
+ ⚠️ +
+
Cannot Verify Tax
+
No V2 liquidity found. Token may trade on Uniswap V3 or unsupported DEX. Tax data shown is 0% because simulation couldn't execute.
+
+
+
+ ` : ''}
Buy Tax - ${data.buy_tax_percent.toFixed(2)}% + ${data.buy_success ? data.buy_tax_percent.toFixed(2) + '%' : 'N/A'}
-
+
Sell Tax - ${data.sell_tax_percent.toFixed(2)}% + ${data.sell_success ? data.sell_tax_percent.toFixed(2) + '%' : 'N/A'}
-
+
Total Loss - ${data.total_loss_percent.toFixed(2)}% + ${(data.buy_success || data.sell_success) ? data.total_loss_percent.toFixed(2) + '%' : 'N/A'}
-
+