We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a690db commit 7e54205Copy full SHA for 7e54205
programs/drift/src/instructions/user.rs
@@ -2980,8 +2980,7 @@ pub struct EnableUserHighLeverageMode<'info> {
2980
pub state: Box<Account<'info, State>>,
2981
#[account(
2982
mut,
2983
- seeds = [b"user", authority.key.as_ref(), sub_account_id.to_le_bytes().as_ref()],
2984
- bump,
+ constraint = can_sign_for_user(&user, &authority)?
2985
)]
2986
pub user: AccountLoader<'info, User>,
2987
pub authority: Signer<'info>,
0 commit comments