Skip to content

Commit

Permalink
dashboard: correct accountant normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-gray committed Nov 21, 2023
1 parent 4dc0867 commit 1efc9ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboard/src/components/Accountant.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1efc9ea

Please sign in to comment.