diff --git a/packages/state-transition/src/epoch/processSlashings.ts b/packages/state-transition/src/epoch/processSlashings.ts index 7cba5905018..6548f2dd8be 100644 --- a/packages/state-transition/src/epoch/processSlashings.ts +++ b/packages/state-transition/src/epoch/processSlashings.ts @@ -51,8 +51,7 @@ export function processSlashings( ); const increment = EFFECTIVE_BALANCE_INCREMENT; - const penaltyPerEffectiveBalanceIncrement = - Math.floor(adjustedTotalSlashingBalanceByIncrement / totalBalanceByIncrement) * increment; + const penaltyPerEffectiveBalanceIncrement = Math.floor((adjustedTotalSlashingBalanceByIncrement * increment) / totalBalanceByIncrement); const penalties: number[] = []; const penaltiesByEffectiveBalanceIncrement = new Map();