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.
2 parents dad1a54 + 2df49ea commit 9345a3eCopy full SHA for 9345a3e
programs/drift/src/instructions/user.rs
@@ -793,7 +793,7 @@ pub fn handle_deposit<'c: 'info, 'info>(
793
} else {
794
DepositExplanation::None
795
};
796
- let signer = if ctx.accounts.authority.key() == user.authority {
+ let signer = if ctx.accounts.authority.key() != user.authority {
797
Some(ctx.accounts.authority.key())
798
799
None
@@ -4338,9 +4338,7 @@ pub struct InitializeReferrerName<'info> {
4338
#[instruction(market_index: u16,)]
4339
pub struct Deposit<'info> {
4340
pub state: Box<Account<'info, State>>,
4341
- #[account(
4342
- mut
4343
- )]
+ #[account(mut)]
4344
pub user: AccountLoader<'info, User>,
4345
#[account(
4346
mut,
0 commit comments