Skip to content

Commit 99e23ce

Browse files
authored
program: allow delegate to update user position max margin ratio (#1913)
1 parent 76e880d commit 99e23ce

File tree

1 file changed

+0
-5
lines changed
  • programs/drift/src/instructions

1 file changed

+0
-5
lines changed

programs/drift/src/instructions/user.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4448,14 +4448,9 @@ pub struct UpdateUser<'info> {
44484448
}
44494449

44504450
#[derive(Accounts)]
4451-
#[instruction(
4452-
sub_account_id: u16,
4453-
)]
44544451
pub struct UpdateUserPerpPositionCustomMarginRatio<'info> {
44554452
#[account(
44564453
mut,
4457-
seeds = [b"user", authority.key.as_ref(), sub_account_id.to_le_bytes().as_ref()],
4458-
bump,
44594454
constraint = can_sign_for_user(&user, &authority)?
44604455
)]
44614456
pub user: AccountLoader<'info, User>,

0 commit comments

Comments
 (0)