Skip to content

Commit

Permalink
cleanup unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
vm06007 committed Apr 2, 2023
1 parent 8c9e1f3 commit 6384fff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contracts/TimeLockFarmV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ contract TimeLockFarmV2 is TokenWrapper {
uint256 public immutable timeLock;
uint256 constant PRECISION = 1E18;

mapping(address => uint256) public unlockTime;
mapping(address => uint256) public userRewards;
mapping(address => uint256) public perTokenPaid;

Expand Down Expand Up @@ -518,7 +517,7 @@ contract TimeLockFarmV2 is TokenWrapper {
: remainingAmount;

unlockedAmount += unlockAmount;
userStake.amount -= unlockAmount; // userStake.amount = amountToUnlock - unlockAmount;
userStake.amount -= unlockAmount;

if (userStake.amount == 0) {
if (userStakes.length > 1) {
Expand Down

0 comments on commit 6384fff

Please sign in to comment.