Skip to content

Commit

Permalink
uncheck token account
Browse files Browse the repository at this point in the history
  • Loading branch information
docongminh committed Jan 11, 2025
1 parent 7001eba commit 1b64a24
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions programs/locker/src/instructions/v3/cancel_vesting_escrow.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use crate::util::MemoTransferContext;
use crate::*;
use anchor_spl::memo::Memo;
use anchor_spl::token_interface::{
close_account, CloseAccount, Mint, TokenAccount, TokenInterface,
Expand All @@ -6,8 +8,6 @@ use util::{
harvest_fees, parse_remaining_accounts, transfer_to_user_v3, AccountsType,
ParsedRemainingAccounts, TRANSFER_MEMO_CANCEL_VESTING,
};
use crate::util::MemoTransferContext;
use crate::*;

/// Accounts for [locker::cancel_vesting_escrow_v3].
#[derive(Accounts)]
Expand Down Expand Up @@ -35,12 +35,7 @@ pub struct CancelVestingEscrowV3<'info> {
pub escrow_token: Box<InterfaceAccount<'info, TokenAccount>>,

/// Creator Token Account.
#[account(
mut,
associated_token::mint = token_mint,
associated_token::authority = escrow.load()?.creator,
associated_token::token_program = token_program
)]
#[account(mut)]
pub creator_token: Box<InterfaceAccount<'info, TokenAccount>>,

/// CHECKED: The Token Account will receive the rent
Expand Down

0 comments on commit 1b64a24

Please sign in to comment.