Skip to content

Commit

Permalink
Update calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
ensi321 committed Sep 6, 2024
1 parent 9cd9e6c commit 92d364a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/state-transition/src/epoch/processSlashings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ export function processSlashings(
totalBalanceByIncrement
);
const increment = EFFECTIVE_BALANCE_INCREMENT;
const adjustedTotalSlashingBalance = adjustedTotalSlashingBalanceByIncrement * increment;

const penaltyPerEffectiveBalanceIncrement = Math.floor(adjustedTotalSlashingBalance / totalBalanceByIncrement);
const penaltyPerEffectiveBalanceIncrement = Math.floor(adjustedTotalSlashingBalanceByIncrement / totalBalanceByIncrement) * increment;
const penalties: number[] = [];

const penaltiesByEffectiveBalanceIncrement = new Map<number, number>();
Expand Down

0 comments on commit 92d364a

Please sign in to comment.