Skip to content

Commit

Permalink
Revert "improve multi_withdraw_unbond (#1969)"
Browse files Browse the repository at this point in the history
This reverts commit a5dd383.
  • Loading branch information
mclyk committed Mar 26, 2024
1 parent a5dd383 commit 5fb6ab0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pallets/liquid-staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1648,10 +1648,8 @@ pub mod pallet {

#[require_transactional]
fn do_multi_withdraw_unbonded(num_slashing_spans: u32) -> DispatchResult {
if XcmRequests::<T>::iter().count().is_zero() {
for derivative_index in StakingLedgers::<T>::iter_keys() {
Self::do_withdraw_unbonded(derivative_index, num_slashing_spans)?;
}
for derivative_index in StakingLedgers::<T>::iter_keys() {
Self::do_withdraw_unbonded(derivative_index, num_slashing_spans)?;
}

Ok(())
Expand Down

0 comments on commit 5fb6ab0

Please sign in to comment.