Skip to content

Commit dfe8c12

Browse files
committed
Fix benachmarks
1 parent f55d2dc commit dfe8c12

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

pallets/swap/src/benchmarking.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ use subtensor_runtime_common::NetUid;
1212

1313
use crate::{
1414
pallet::{
15-
AlphaSqrtPrice, Call, Config, CurrentLiquidity, CurrentTick, EnabledUserLiquidity, Pallet,
16-
Positions, SwapV3Initialized,
15+
AlphaSqrtPrice, Call, Config, CurrentLiquidity, CurrentTick, Pallet, Positions,
16+
SwapV3Initialized,
1717
},
1818
position::{Position, PositionId},
1919
tick::TickIndex,
@@ -131,17 +131,17 @@ mod benchmarks {
131131
);
132132
}
133133

134-
#[benchmark]
135-
fn toggle_user_liquidity() {
136-
let netuid = NetUid::from(101);
134+
// #[benchmark]
135+
// fn toggle_user_liquidity() {
136+
// let netuid = NetUid::from(101);
137137

138-
assert!(!EnabledUserLiquidity::<T>::get(netuid));
138+
// assert!(!EnabledUserLiquidity::<T>::get(netuid));
139139

140-
#[extrinsic_call]
141-
toggle_user_liquidity(RawOrigin::Root, netuid.into(), true);
140+
// #[extrinsic_call]
141+
// toggle_user_liquidity(RawOrigin::Root, netuid.into(), true);
142142

143-
assert!(EnabledUserLiquidity::<T>::get(netuid));
144-
}
143+
// assert!(EnabledUserLiquidity::<T>::get(netuid));
144+
// }
145145

146146
impl_benchmark_test_suite!(Pallet, crate::mock::new_test_ext(), crate::mock::Test);
147147
}

pallets/swap/src/pallet/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ mod pallet {
619619
});
620620
}
621621

622-
// Remove provided liquidity unconditionally because the network may have
622+
// Remove provided liquidity unconditionally because the network may have
623623
// user liquidity previously disabled
624624
Self::do_dissolve_all_liquidity_providers(netuid)?;
625625
}

0 commit comments

Comments
 (0)