diff --git a/contracts/ExponentialStaking.sol b/contracts/ExponentialStaking.sol index 0a5d6e3c..59fec764 100644 --- a/contracts/ExponentialStaking.sol +++ b/contracts/ExponentialStaking.sol @@ -265,8 +265,8 @@ contract ExponentialStaking is ERC20Votes { } uint256 fullDuration = end - block.timestamp; (uint256 fullPoints,) = previewPoints(1e18, fullDuration); - (uint256 currentPoints,) = previewPoints(1e36, 0); // 1e36 saves a later multiplication - return amount * ((currentPoints / fullPoints)) / 1e18; + (uint256 currentPoints,) = previewPoints(1e18, 0); + return amount * currentPoints / fullPoints; } /// @notice Returns the total number of lockups the user has