Skip to content

Commit

Permalink
program: let delgate update protected mm
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Dec 5, 2024
1 parent 9a690db commit 7e54205
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions programs/drift/src/instructions/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2980,8 +2980,7 @@ pub struct EnableUserHighLeverageMode<'info> {
pub state: Box<Account<'info, State>>,
#[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>,
Expand Down

0 comments on commit 7e54205

Please sign in to comment.