File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -609,18 +609,19 @@ mod pallet {
609609 pub fn disable_lp ( origin : OriginFor < T > ) -> DispatchResult {
610610 ensure_root ( origin) ?;
611611
612- for netuid in 1 ..128 {
612+ for netuid in 1 ..= 128 {
613613 let netuid = NetUid :: from ( netuid as u16 ) ;
614614 if EnabledUserLiquidity :: < T > :: get ( netuid) {
615615 EnabledUserLiquidity :: < T > :: insert ( netuid, false ) ;
616616 Self :: deposit_event ( Event :: UserLiquidityToggled {
617617 netuid,
618618 enable : false ,
619619 } ) ;
620-
621- // Remove provided liquidity
622- // Self::do_dissolve_all_liquidity_providers(netuid)?;
623620 }
621+
622+ // Remove provided liquidity unconditionally because the network may have
623+ // user liquidity previously disabled
624+ Self :: do_dissolve_all_liquidity_providers ( netuid) ?;
624625 }
625626
626627 Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments