diff --git a/programs/drift/src/instructions/user.rs b/programs/drift/src/instructions/user.rs index 64e1a13ba..bc713d167 100644 --- a/programs/drift/src/instructions/user.rs +++ b/programs/drift/src/instructions/user.rs @@ -2222,11 +2222,6 @@ pub fn handle_update_user_pool_id<'c: 'info, 'info>( _sub_account_id: u16, pool_id: u8, ) -> Result<()> { - #[cfg(all(feature = "mainnet-beta", not(feature = "anchor-test")))] - { - panic!("pools disabled on mainnet-beta"); - } - let remaining_accounts_iter = &mut ctx.remaining_accounts.iter().peekable(); let AccountMaps { perp_market_map,