From 2a964405d78e25c502c32d150ec9cf6f62304762 Mon Sep 17 00:00:00 2001 From: Kenk Date: Mon, 17 Jul 2023 17:00:00 +0200 Subject: [PATCH] fix TTKO decimals --- packages/website/components/AddTokenButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/website/components/AddTokenButton.tsx b/packages/website/components/AddTokenButton.tsx index 20a446697c9..ef6f121e9c6 100644 --- a/packages/website/components/AddTokenButton.tsx +++ b/packages/website/components/AddTokenButton.tsx @@ -40,7 +40,7 @@ async function AddToken(network: AddTokenButtonProps["network"], token: AddToken const tokenAddress = tokenMap[network][token]; const tokenSymbol = token; - const tokenDecimals = 18; + const tokenDecimals = token === "TTKO" ? 8 : 18; // const tokenImage = 'http://placekitten.com/200/300'; if ((window as any).ethereum.chainId != chainMap[network]) {