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:
parent
1a6266e2ec
commit
b96e6ee9ce
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user