diff --git a/src/components/ManaCalculator/components/OutputForm.tsx b/src/components/ManaCalculator/components/OutputForm.tsx index 6104bd95563..107bd458778 100644 --- a/src/components/ManaCalculator/components/OutputForm.tsx +++ b/src/components/ManaCalculator/components/OutputForm.tsx @@ -23,7 +23,9 @@ export function OutputForm() {
Mana rewards
-
{fromMicro(generatedRewards)}
+
+ {fromMicro(generatedRewards)} +
Total TPS granted with
diff --git a/src/components/ManaCalculator/hooks/useResults.ts b/src/components/ManaCalculator/hooks/useResults.ts index e279eadf24e..7fececeeda2 100644 --- a/src/components/ManaCalculator/hooks/useResults.ts +++ b/src/components/ManaCalculator/hooks/useResults.ts @@ -18,14 +18,14 @@ export function useResults(state: ManaCalculatorProps) { const validatorParameters = state.userType === UserType.VALIDATOR ? ({ - performanceFactor: state.validator.performanceFactor, - fixedCost: state.validator.fixedCost, - shareOfYourStakeLocked: state.validator.shareOfYourStakeLocked, - attractedNewDelegatedStake: - state.validator.attractedNewDelegatedStake, - attractedDelegatedStakeFromOtherPools: - state.validator.attractedDelegatedStakeFromOtherPools, - } as ValidatorParameters) + performanceFactor: state.validator.performanceFactor, + fixedCost: state.validator.fixedCost, + shareOfYourStakeLocked: state.validator.shareOfYourStakeLocked, + attractedNewDelegatedStake: + state.validator.attractedNewDelegatedStake, + attractedDelegatedStakeFromOtherPools: + state.validator.attractedDelegatedStakeFromOtherPools, + } as ValidatorParameters) : null; const generatedRewards = calculateManaRewards( diff --git a/src/components/ManaCalculator/hooks/useResultsPerEpoch.ts b/src/components/ManaCalculator/hooks/useResultsPerEpoch.ts index dde820bd288..a8f873e7c67 100644 --- a/src/components/ManaCalculator/hooks/useResultsPerEpoch.ts +++ b/src/components/ManaCalculator/hooks/useResultsPerEpoch.ts @@ -50,7 +50,10 @@ export function useResultsPerEpoch(state: ManaCalculatorProps): EpochReward[] { passiveRewards, state.congestion, ); - const tpsFromGeneratedMana = calculateTPS(generatedRewards, state.congestion); + const tpsFromGeneratedMana = calculateTPS( + generatedRewards, + state.congestion, + ); const totalTps = tpsFromPassiveRewards + tpsFromGeneratedMana; results.push({