Skip to content

Commit

Permalink
Update stake.rs (#4)
Browse files Browse the repository at this point in the history
Signed-off-by: Zhuojie Zhou | rex <[email protected]>
  • Loading branch information
nothing0012 authored May 26, 2024
1 parent 1b9643f commit d45a2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/vetoken/src/ins_v1/stake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub struct Stake<'info> {
token_account: Box<InterfaceAccount<'info, TokenAccount>>,

#[account(
init_if_needed,
init_if_needed, // stake means upsert this lockup account, and users can extend the end_ts or deposit more tokens
payer=owner,
seeds=[b"lockup", ns.key().as_ref(), owner.key.as_ref()],
space= 8 + Lockup::INIT_SPACE,
Expand Down

0 comments on commit d45a2a2

Please sign in to comment.