Skip to content

Commit

Permalink
check for default
Browse files Browse the repository at this point in the history
  • Loading branch information
ebatsell committed Aug 6, 2024
1 parent b92af33 commit a56426e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions programs/steward/src/state/steward_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -975,8 +975,11 @@ impl StewardState {
stake_deposit_unstake_lamports,
total_unstake_lamports,
}) => {
self.validator_lamport_balances[index] = self.validator_lamport_balances[index]
.saturating_sub(total_unstake_lamports);
if self.validator_lamport_balances[index] != LAMPORT_BALANCE_DEFAULT {
self.validator_lamport_balances[index] = self.validator_lamport_balances
[index]
.saturating_sub(total_unstake_lamports);
}

self.scoring_unstake_total = self
.scoring_unstake_total
Expand Down

0 comments on commit a56426e

Please sign in to comment.