feat(2633): remove unneeded values in validator detail view (#2644)

* feat(2633): remove overstaked amount

* feat(2633): remove performance score
This commit is contained in:
Sam Keen 2023-01-17 15:01:51 +00:00 committed by GitHub
parent 1a6266e2ec
commit b96e6ee9ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,6 @@ import { useAppState } from '../../../contexts/app-state/app-state-context';
import * as Schema from '@vegaprotocol/types';
import { SubHeading } from '../../../components/heading';
import {
getFormattedPerformanceScore,
getLastEpochScoreAndPerformance,
getNormalisedVotingPower,
getOverstakedAmount,
@ -207,24 +206,12 @@ export const ValidatorTable = ({
<SubHeading title={t('PENALTIES')} />
<RoundedWrapper marginBottomLarge={true}>
<KeyValueTable data-testid="validator-table-penalties">
<KeyValueTableRow>
<span>{t('OVERSTAKED AMOUNT')}</span>
<span>
{formatNumber(toBigNum(overstakedAmount.toNumber(), decimals))}
</span>
</KeyValueTableRow>
<KeyValueTableRow>
<span>{t('OVERSTAKED PENALTY')}</span>
<span>
{getOverstakingPenalty(overstakedAmount, node.stakedTotal)}
</span>
</KeyValueTableRow>
<KeyValueTableRow>
<span>{t('PERFORMANCE SCORE')}</span>
<span>
{getFormattedPerformanceScore(performanceScore).toString()}
</span>
</KeyValueTableRow>
<KeyValueTableRow>
<span>{t('PERFORMANCE PENALTY')}</span>
<span>{getPerformancePenalty(performanceScore)}</span>