diff --git a/programs/vetoken/src/ins_v1/stake.rs b/programs/vetoken/src/ins_v1/stake.rs index 3cbeb0b..99a22e6 100644 --- a/programs/vetoken/src/ins_v1/stake.rs +++ b/programs/vetoken/src/ins_v1/stake.rs @@ -31,7 +31,7 @@ pub struct Stake<'info> { token_account: Box>, #[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,