diff --git a/eth2/state_processing/src/common/slash_validator.rs b/eth2/state_processing/src/common/slash_validator.rs index 3fce3756eb..2a2db1a774 100644 --- a/eth2/state_processing/src/common/slash_validator.rs +++ b/eth2/state_processing/src/common/slash_validator.rs @@ -37,7 +37,7 @@ pub fn slash_validator( safe_add_assign!(state.balances[proposer_index], proposer_reward); safe_add_assign!( state.balances[whistleblower_index], - whistleblowing_reward - proposer_reward + whistleblowing_reward.saturating_sub(proposer_reward) ); safe_sub_assign!(state.balances[slashed_index], whistleblowing_reward);