Skip to content

Commit

Permalink
Change on StakedTokenV2
Browse files Browse the repository at this point in the history
  • Loading branch information
eboadom committed Feb 19, 2021
1 parent baf9f32 commit 5bd671a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contracts/stake/StakedTokenV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ contract StakedTokenV2 is
uint256 amountToReceive,
address toAddress,
uint256 toBalance
) public returns (uint256) {
) public view returns (uint256) {
uint256 toCooldownTimestamp = stakersCooldowns[toAddress];
if (toCooldownTimestamp == 0) {
return 0;
Expand All @@ -307,7 +307,6 @@ contract StakedTokenV2 is
.div(amountToReceive.add(toBalance));
}
}
stakersCooldowns[toAddress] = toCooldownTimestamp;

return toCooldownTimestamp;
}
Expand Down

0 comments on commit 5bd671a

Please sign in to comment.