Skip to content

Commit

Permalink
L1-63: Remove idealStake
Browse files Browse the repository at this point in the history
  • Loading branch information
youPickItUp committed Oct 10, 2024
1 parent f6e24a7 commit c3b7b88
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packages/page-staking-legacy/src/Validators/Summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ interface Props {
targets: SortedTargets;
}

function Summary ({ className = '', stakingOverview, targets: { counterForNominators, inflation: { idealStake, inflation, stakedFraction }, nominators, waitingIds } }: Props): React.ReactElement<Props> {
function Summary ({ className = '', stakingOverview, targets: { counterForNominators, inflation: { inflation, stakedFraction }, nominators, waitingIds } }: Props): React.ReactElement<Props> {
const { t } = useTranslation();

const percent = <span className='percent'>%</span>;
Expand Down Expand Up @@ -64,14 +64,6 @@ function Summary ({ className = '', stakingOverview, targets: { counterForNomina
</CardSummary>
</section>
<section>
{(idealStake > 0) && Number.isFinite(idealStake) && (
<CardSummary
className='media--1400'
label={t('ideal staked')}
>
<>{(idealStake * 100).toFixed(1)}{percent}</>
</CardSummary>
)}
{(stakedFraction > 0) && (
<CardSummary
className='media--1300'
Expand Down

0 comments on commit c3b7b88

Please sign in to comment.