diff --git a/programs/drift/src/instructions/user.rs b/programs/drift/src/instructions/user.rs index bc713d167..8eca9b8eb 100644 --- a/programs/drift/src/instructions/user.rs +++ b/programs/drift/src/instructions/user.rs @@ -2980,8 +2980,7 @@ pub struct EnableUserHighLeverageMode<'info> { pub state: Box>, #[account( mut, - seeds = [b"user", authority.key.as_ref(), sub_account_id.to_le_bytes().as_ref()], - bump, + constraint = can_sign_for_user(&user, &authority)? )] pub user: AccountLoader<'info, User>, pub authority: Signer<'info>,