Skip to content

Commit

Permalink
don't auto-claim rewards when withdrawing
Browse files Browse the repository at this point in the history
  • Loading branch information
brentstone committed Oct 20, 2023
1 parent 7e1084e commit 77bb377
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions proof_of_stake/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2926,8 +2926,6 @@ where

// Update the rewards from the current unbonds first
add_rewards_to_counter(storage, source, validator, rewards)?;
// Then auto-claim all rewards with the withdrawal
claim_reward_tokens(storage, Some(source), validator, current_epoch)?;

let slashes = find_validator_slashes(storage, validator)?;

Expand Down

0 comments on commit 77bb377

Please sign in to comment.