Skip to content

Commit

Permalink
add fix for timestamp
Browse files Browse the repository at this point in the history
- when user unlocks tokens from stake createTime must be shifted to avoid recalculation of same amount being unlocked.
  • Loading branch information
vm06007 committed Jan 17, 2024
1 parent 0503743 commit 3c96553
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/TimeLockFarmV2Dual.sol
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,7 @@ contract TimeLockFarmV2Dual is TokenWrapper {
break;
}
} else {
userStake.createTime = block.timestamp;
i++;
}

Expand Down

0 comments on commit 3c96553

Please sign in to comment.