From 1efc9ea4440e2a8d8470fbd4ed4e1131afe914ec Mon Sep 17 00:00:00 2001 From: Evan Gray Date: Tue, 21 Nov 2023 15:36:43 -0500 Subject: [PATCH] dashboard: correct accountant normalization --- dashboard/src/components/Accountant.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/components/Accountant.tsx b/dashboard/src/components/Accountant.tsx index cb24a2a6..b4035c01 100644 --- a/dashboard/src/components/Accountant.tsx +++ b/dashboard/src/components/Accountant.tsx @@ -313,7 +313,7 @@ function Accountant({ governorInfo }: { governorInfo: CloudGovernorInfo }) { adjBalance: 0, tvlTvm: 0, }; - const adjBalance = Number(a.balance) / 10 ** thisTokenData.decimals; + const adjBalance = Number(a.balance) / 10 ** Math.min(thisTokenData.decimals, 8); const tvlTvm = adjBalance * Number(thisTokenData.price_usd); return { ...a,