Skip to content

Commit

Permalink
Stake: Remove automatic rewards withdrawal during an unbond
Browse files Browse the repository at this point in the history
  • Loading branch information
ueco-jb committed Sep 20, 2024
1 parent 22f32f1 commit c1ef57f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions contracts/stake/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,6 @@ impl StakingTrait for Staking {

let config = get_config(&env);

// check for rewards and withdraw them
let found_rewards: WithdrawableRewardsResponse =
Self::query_withdrawable_rewards(env.clone(), sender.clone());

if !found_rewards.rewards.is_empty() {
Self::withdraw_rewards(env.clone(), sender.clone());
}

let mut stakes = get_stakes(&env, &sender);

for (_asset, distribution_address) in get_distributions(&env) {
Expand Down

0 comments on commit c1ef57f

Please sign in to comment.