From 16ef101d03ffea7c29707667ad76501a44ce1c7e Mon Sep 17 00:00:00 2001 From: Kyrylo Stepanov Date: Wed, 10 Jul 2024 17:29:53 +0300 Subject: [PATCH] hotfix for exnted_stake and lockup period --- programs/voter-stake-registry/src/instructions/extend_stake.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/voter-stake-registry/src/instructions/extend_stake.rs b/programs/voter-stake-registry/src/instructions/extend_stake.rs index 0dcb44f5..10b8d7a5 100644 --- a/programs/voter-stake-registry/src/instructions/extend_stake.rs +++ b/programs/voter-stake-registry/src/instructions/extend_stake.rs @@ -76,6 +76,7 @@ pub fn extend_stake( target.lockup.end_ts = curr_ts .checked_add(new_lockup_period.to_secs()) .ok_or(VsrError::InvalidTimestampArguments)?; + target.lockup.period = new_lockup_period; let reward_pool = &ctx.accounts.reward_pool; let mining = &ctx.accounts.deposit_mining;