diff --git a/programs/voter-stake-registry/src/instructions/withdraw_v0.rs b/programs/voter-stake-registry/src/instructions/withdraw_v0.rs index a77ee63f5..68ebf9590 100644 --- a/programs/voter-stake-registry/src/instructions/withdraw_v0.rs +++ b/programs/voter-stake-registry/src/instructions/withdraw_v0.rs @@ -16,7 +16,7 @@ pub struct WithdrawArgsV0 { #[instruction(args: WithdrawArgsV0)] pub struct WithdrawV0<'info> { #[account(mut)] - pub payer: Signer<'info>, + pub position_authority: Signer<'info>, pub registrar: Box>, #[account( @@ -32,13 +32,12 @@ pub struct WithdrawV0<'info> { pub mint: Box>, #[account( init_if_needed, - payer = payer, + payer = position_authority, token::mint = mint, token::authority = position_authority, constraint = position_token_account.amount > 0 )] pub position_token_account: Box>, - pub position_authority: Signer<'info>, #[account( mut,