Skip to content

Commit

Permalink
hotfix for exnted_stake and lockup period
Browse files Browse the repository at this point in the history
  • Loading branch information
kstepanovdev committed Jul 10, 2024
1 parent c5fc21e commit 16ef101
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 16ef101

Please sign in to comment.