@@ -215,11 +216,11 @@ const StatsCard = ({ name, value }: { name: string; value: string }) => {
draggable={false}
/>
-
-
diff --git a/frontend/src/app/(routes)/staking/validator/[validator]/components/TableHeader.tsx b/frontend/src/app/(routes)/staking/validator/[validator]/components/TableHeader.tsx
index 8627a53cd..e02a541b5 100644
--- a/frontend/src/app/(routes)/staking/validator/[validator]/components/TableHeader.tsx
+++ b/frontend/src/app/(routes)/staking/validator/[validator]/components/TableHeader.tsx
@@ -3,7 +3,7 @@ import React from 'react';
const TableHeader = ({ title }: { title: string }) => {
return (
- |
diff --git a/frontend/src/app/(routes)/staking/validator/[validator]/components/ValidatorItem.tsx b/frontend/src/app/(routes)/staking/validator/[validator]/components/ValidatorItem.tsx
index b0b35edfc..dff0992ec 100644
--- a/frontend/src/app/(routes)/staking/validator/[validator]/components/ValidatorItem.tsx
+++ b/frontend/src/app/(routes)/staking/validator/[validator]/components/ValidatorItem.tsx
@@ -119,7 +119,7 @@ const ValidatorItem = ({
};
return (
-
+
{
+ return parseInt(data[b].totalStakedInUSD) - parseInt(data[a].totalStakedInUSD);
+ });
+
+ const sortedObject: Record = {};
+ sortedKeys.forEach(key => {
+ sortedObject[key] = data[key];
+ });
+
return (
-
+
@@ -41,7 +50,13 @@ const ValidatorsTable = ({
|
- {Object.keys(data).map((chainID) => {
+ {isWitval ? (
+ <>
+
+
+ >
+ ) : null}
+ {Object.keys(sortedObject).map((chainID) => {
return (
);
})}
- {isWitval ? (
- <>
-
-
- >
- ) : null}
+
@@ -89,7 +99,7 @@ const NonCosmosValidators = ({ networkName }: { networkName: string }) => {
const connected = useAppSelector((state) => state.wallet.connected);
return (
-
+
{
stakingData[validator.chainID].validatorProfiles?.[
validator.operatorAddress
];
+
totalDelegators += Number(delegatorsCount?.totalDelegators || 0);
totalCommission += Number(validator?.commission) || 0;
if (validator.validatorStatus === 'BOND_STATUS_BONDED') {
@@ -186,10 +187,11 @@ const useGetValidatorInfo = () => {
const {
commission,
totalDelegators: delegators,
- totalStakedInUSD: totalStaked,
+ // totalStakedInUSD: totalStaked,
} = getPolygonValidatorInfo();
totalCommission += Number(commission || 0);
- totalDelegators += totalStaked;
+ // totalDelegators += totalStaked;
+ // totalStaked+=totalS
totalDelegators += delegators;
activeNetworks += 1;
totalNetworks += 1;
@@ -199,10 +201,10 @@ const useGetValidatorInfo = () => {
const {
commission,
totalDelegators: delegators,
- totalStakedInUSD: totalStaked,
+ // totalStakedInUSD: totalStaked,
} = getOasisValidatorInfo();
totalCommission += Number(commission || 0);
- totalDelegators += totalStaked;
+ // totalDelegators += totalStaked;
totalDelegators += delegators;
activeNetworks += 1;
totalNetworks += 1;
|