diff --git a/src/v2/components/TourDeSol/Table/index.jsx b/src/v2/components/TourDeSol/Table/index.jsx
index c7bec8b9..22e63d3e 100644
--- a/src/v2/components/TourDeSol/Table/index.jsx
+++ b/src/v2/components/TourDeSol/Table/index.jsx
@@ -11,30 +11,31 @@ import {map} from 'lodash/fp';
import Table from 'v2/components/UI/Table';
import HelpLink from 'v2/components/HelpLink';
import ValidatorName from 'v2/components/UI/ValidatorName';
+
import useStyles from './styles';
const fields = [
{
label: 'ranking',
- name: 'ranking',
+ id: 'rank',
text: '',
term: '',
},
{
label: 'name',
- name: 'name',
+ id: 'name',
text: '',
term: '',
},
{
label: 'Staked sol',
- name: 'staked_sol',
+ id: 'activatedStake',
text: '',
term: '',
},
{
label: 'Uptime',
- name: 'uptime',
+ id: 'uptimePercent',
text: '',
term: '',
},
@@ -43,9 +44,11 @@ const fields = [
const ValidatorsTable = ({
activeValidators,
separate,
+ totalStaked,
}: {
activeValidators: Array,
separate: boolean,
+ totalStaked: number,
}) => {
const classes = useStyles();
const theme = useTheme();
@@ -53,19 +56,32 @@ const ValidatorsTable = ({
const renderRow = ({data: row}) => {
const {name, pubkey, avatarUrl, activatedStake, uptimePercent, rank} = row;
+ const uptime =
+ uptimePercent > 100
+ ? 100
+ : parseFloat(uptimePercent.toFixed(uptimePercent ? 4 : 2));
return (