From f305e0828c97a40ac691a0139fe1f7b6835ddeba Mon Sep 17 00:00:00 2001 From: Zhuojie Zhou | rex <89176731+nothing0012@users.noreply.github.com> Date: Mon, 27 May 2024 07:33:33 +0800 Subject: [PATCH] Update stake.rs Signed-off-by: Zhuojie Zhou | rex <89176731+nothing0012@users.noreply.github.com> --- programs/vetoken/src/ins_v1/stake.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,