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 * as Schema from '@vegaprotocol/types';
|
||||||
import { SubHeading } from '../../../components/heading';
|
import { SubHeading } from '../../../components/heading';
|
||||||
import {
|
import {
|
||||||
getFormattedPerformanceScore,
|
|
||||||
getLastEpochScoreAndPerformance,
|
getLastEpochScoreAndPerformance,
|
||||||
getNormalisedVotingPower,
|
getNormalisedVotingPower,
|
||||||
getOverstakedAmount,
|
getOverstakedAmount,
|
||||||
@ -207,24 +206,12 @@ export const ValidatorTable = ({
|
|||||||
<SubHeading title={t('PENALTIES')} />
|
<SubHeading title={t('PENALTIES')} />
|
||||||
<RoundedWrapper marginBottomLarge={true}>
|
<RoundedWrapper marginBottomLarge={true}>
|
||||||
<KeyValueTable data-testid="validator-table-penalties">
|
<KeyValueTable data-testid="validator-table-penalties">
|
||||||
<KeyValueTableRow>
|
|
||||||
<span>{t('OVERSTAKED AMOUNT')}</span>
|
|
||||||
<span>
|
|
||||||
{formatNumber(toBigNum(overstakedAmount.toNumber(), decimals))}
|
|
||||||
</span>
|
|
||||||
</KeyValueTableRow>
|
|
||||||
<KeyValueTableRow>
|
<KeyValueTableRow>
|
||||||
<span>{t('OVERSTAKED PENALTY')}</span>
|
<span>{t('OVERSTAKED PENALTY')}</span>
|
||||||
<span>
|
<span>
|
||||||
{getOverstakingPenalty(overstakedAmount, node.stakedTotal)}
|
{getOverstakingPenalty(overstakedAmount, node.stakedTotal)}
|
||||||
</span>
|
</span>
|
||||||
</KeyValueTableRow>
|
</KeyValueTableRow>
|
||||||
<KeyValueTableRow>
|
|
||||||
<span>{t('PERFORMANCE SCORE')}</span>
|
|
||||||
<span>
|
|
||||||
{getFormattedPerformanceScore(performanceScore).toString()}
|
|
||||||
</span>
|
|
||||||
</KeyValueTableRow>
|
|
||||||
<KeyValueTableRow>
|
<KeyValueTableRow>
|
||||||
<span>{t('PERFORMANCE PENALTY')}</span>
|
<span>{t('PERFORMANCE PENALTY')}</span>
|
||||||
<span>{getPerformancePenalty(performanceScore)}</span>
|
<span>{getPerformancePenalty(performanceScore)}</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user