Skip to content

Commit

Permalink
remove magic numbers and replace with WAD
Browse files Browse the repository at this point in the history
  • Loading branch information
0xean committed May 14, 2024
1 parent e526f57 commit c0b11f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions foundry/src/FoxStakingV1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ contract FoxStakingV1 is
}
return
rewardPerTokenStored +
(((block.timestamp - lastUpdateTime) * REWARD_RATE * 1e18) /
(((block.timestamp - lastUpdateTime) * REWARD_RATE * WAD) /
totalStaked);
}

Expand All @@ -169,7 +169,7 @@ contract FoxStakingV1 is
return
(info.stakingBalance *
(rewardPerToken() - info.rewardPerTokenStored)) /
1e18 +
WAD +
info.earnedRewards;
}

Expand Down

0 comments on commit c0b11f8

Please sign in to comment.