Skip to content

Commit

Permalink
👷 Remove uses of userLastStakeTime
Browse files Browse the repository at this point in the history
  • Loading branch information
Flocqst committed Sep 11, 2024
1 parent 48a2b16 commit 0d173e7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions contracts/StakingRewardsV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ contract StakingRewardsV2 is
if (_amount == 0) revert AmountZero();

// update state
userLastStakeTime[_account] = block.timestamp;
_addTotalSupplyCheckpoint(totalSupply() + _amount);
_addBalancesCheckpoint(_account, balanceOf(_account) + _amount);

Expand Down Expand Up @@ -277,7 +276,6 @@ contract StakingRewardsV2 is
if (_amount > unstakedEscrow) revert InsufficientUnstakedEscrow(unstakedEscrow);

// update state
userLastStakeTime[_account] = block.timestamp;
_addBalancesCheckpoint(_account, balanceOf(_account) + _amount);
_addEscrowedBalancesCheckpoint(_account, escrowedBalanceOf(_account) + _amount);

Expand Down

0 comments on commit 0d173e7

Please sign in to comment.