Skip to content

Commit 7e54205

Browse files
committed
program: let delgate update protected mm
1 parent 9a690db commit 7e54205

File tree

1 file changed

+1
-2
lines changed
  • programs/drift/src/instructions

1 file changed

+1
-2
lines changed

programs/drift/src/instructions/user.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2980,8 +2980,7 @@ pub struct EnableUserHighLeverageMode<'info> {
29802980
pub state: Box<Account<'info, State>>,
29812981
#[account(
29822982
mut,
2983-
seeds = [b"user", authority.key.as_ref(), sub_account_id.to_le_bytes().as_ref()],
2984-
bump,
2983+
constraint = can_sign_for_user(&user, &authority)?
29852984
)]
29862985
pub user: AccountLoader<'info, User>,
29872986
pub authority: Signer<'info>,

0 commit comments

Comments
 (0)