diff --git a/src/popup/views/addressToken.js b/src/popup/views/addressToken.js
index 11f377e..e7763df 100644
--- a/src/popup/views/addressToken.js
+++ b/src/popup/views/addressToken.js
@@ -142,30 +142,24 @@ function show() {
const tokenHolders = tb && tb.holders != null ? tb.holders : null;
const dot = addressDotHtml(tokenId);
const tokenLink = `https://etherscan.io/token/${escapeHtml(tokenId)}`;
- let infoHtml =
- `
${dot}` +
+ const knownToken = TOKEN_BY_ADDRESS.get(tokenId.toLowerCase());
+ const projectUrl = knownToken && knownToken.url ? knownToken.url : null;
+ let infoHtml = `
Contract Address
`;
+ infoHtml +=
+ `
`;
- const details = [];
if (tokenName)
- details.push(`
Name: ${tokenName}`);
+ infoHtml += `
Name: ${tokenName}
`;
if (tokenSymbol)
- details.push(
- `
Symbol: ${tokenSymbol}`,
- );
+ infoHtml += `
Symbol: ${tokenSymbol}
`;
if (tokenDecimals != null)
- details.push(
- `
Decimals: ${tokenDecimals}`,
- );
+ infoHtml += `
Decimals: ${tokenDecimals}
`;
if (tokenHolders != null)
- details.push(
- `
Holders: ${Number(tokenHolders).toLocaleString()}`,
- );
- if (details.length > 0) {
- infoHtml += `
${details.join("")}
`;
- }
+ infoHtml += `
Holders: ${Number(tokenHolders).toLocaleString()}
`;
+ if (projectUrl)
+ infoHtml += `
`;
contractInfo.innerHTML = infoHtml;
contractInfo.classList.remove("hidden");
} else {