Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Electron committed Nov 7, 2023
1 parent f2182f2 commit 36f07e6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
4 changes: 3 additions & 1 deletion src/components/ManaCalculator/components/OutputForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export function OutputForm() {
</div>
<div className='row '>
<div className='col col--6'>Mana rewards</div>
<div className='col col--6 align-right'>{fromMicro(generatedRewards)}</div>
<div className='col col--6 align-right'>
{fromMicro(generatedRewards)}
</div>
</div>
<div className='row '>
<div className='col col--6'>Total TPS granted with</div>
Expand Down
16 changes: 8 additions & 8 deletions src/components/ManaCalculator/hooks/useResults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
5 changes: 4 additions & 1 deletion src/components/ManaCalculator/hooks/useResultsPerEpoch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 36f07e6

Please sign in to comment.