diff --git a/web-app/src/modules/core/routes/CommunityWallets/CommunityWallets.tsx b/web-app/src/modules/core/routes/CommunityWallets/CommunityWallets.tsx index ef269e5..073b44b 100644 --- a/web-app/src/modules/core/routes/CommunityWallets/CommunityWallets.tsx +++ b/web-app/src/modules/core/routes/CommunityWallets/CommunityWallets.tsx @@ -35,7 +35,8 @@ const CommunityWallets: FC = () => {
+ | Wallet | @@ -55,7 +56,7 @@ const CommunityWallets: FC = () => { | Description | -+ | Balance | Liquid Balance | @@ -281,7 +281,7 @@ const Coinstats = () => { {account.address} -+ |
|
diff --git a/web-app/src/modules/core/routes/Validators/Validators.tsx b/web-app/src/modules/core/routes/Validators/Validators.tsx
index cabff6f..2bed3bb 100644
--- a/web-app/src/modules/core/routes/Validators/Validators.tsx
+++ b/web-app/src/modules/core/routes/Validators/Validators.tsx
@@ -1,11 +1,10 @@
-import { FC } from "react";
-import { gql, useQuery } from "@apollo/client";
-import _ from "lodash";
-import Page from "../../../ui/Page";
-import AccountAddress from "../../../ui/AccountAddress";
-import clsx from "clsx";
-import { LIBRA_SIGN } from "../../../../contants";
-import { CheckIcon, XMarkIcon } from "@heroicons/react/20/solid";
+import { FC } from 'react';
+import { gql, useQuery } from '@apollo/client';
+import Page from '../../../ui/Page';
+import AccountAddress from '../../../ui/AccountAddress';
+import Money from '../../../ui/Money';
+import clsx from 'clsx';
+import { CheckIcon, XMarkIcon } from '@heroicons/react/20/solid';
const GET_VALIDATORS = gql`
query GetValidators {
@@ -71,26 +70,22 @@ const Validators: FC = () => {
}
if (data) {
- const validatorSet = data.validators.filter((it) => it.inSet)
+ const validatorSet = data.validators.filter((it) => it.inSet);
const eligible = data.validators.length - validatorSet.length;
return (
-
-
+
-
-
+
@@ -140,14 +135,14 @@ const Validators: FC = () => {
|
|
-
+ |
{validator.inSet ? (
|
- {validator.votingPower.toLocaleString()}
+ {Number(validator.votingPower).toLocaleString()}
|
{validator.grade.compliant ? (
@@ -165,18 +160,21 @@ const Validators: FC = () => {
)}
{`${validator.grade.proposedBlocks.toLocaleString()} / ${validator.grade.failedBlocks.toLocaleString()}`}
|
-
+ |
{validator.vouches.length.toLocaleString()}
|
{`${validator.currentBid.currentBid.toLocaleString()} (${validator.currentBid.expirationEpoch.toLocaleString()})`}
|
- {`${LIBRA_SIGN} ${validator.account.balance.toLocaleString()}`}
+ |
- {validator.account.slowWallet &&
- `${LIBRA_SIGN} ${validator.account.slowWallet.unlocked.toLocaleString()}`}
+ {validator.account.slowWallet ? (
+ |
+ |
|
{communityWalletInfo.name}
|
{communityWalletInfo.description} |
-
- {data.account.balance && |
+ {data.account.balance && |
|
---|