From 5fb6ab09726339d7969347b3acc13605d903c82a Mon Sep 17 00:00:00 2001 From: MrPai <1164934857@qq.com> Date: Tue, 26 Mar 2024 11:36:23 +0800 Subject: [PATCH] Revert "improve multi_withdraw_unbond (#1969)" This reverts commit a5dd383d7b0cbb5dd9e46d8e86d0c0b5580b43e3. --- pallets/liquid-staking/src/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pallets/liquid-staking/src/lib.rs b/pallets/liquid-staking/src/lib.rs index 1c74d38ef..851ec05d5 100644 --- a/pallets/liquid-staking/src/lib.rs +++ b/pallets/liquid-staking/src/lib.rs @@ -1648,10 +1648,8 @@ pub mod pallet { #[require_transactional] fn do_multi_withdraw_unbonded(num_slashing_spans: u32) -> DispatchResult { - if XcmRequests::::iter().count().is_zero() { - for derivative_index in StakingLedgers::::iter_keys() { - Self::do_withdraw_unbonded(derivative_index, num_slashing_spans)?; - } + for derivative_index in StakingLedgers::::iter_keys() { + Self::do_withdraw_unbonded(derivative_index, num_slashing_spans)?; } Ok(())