Skip to content

Commit

Permalink
Chore: forge fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielVF committed May 8, 2024
1 parent ada8a9f commit 454af8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/FixedRateRewardsSource.sol
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ contract FixedRateRewardsSource is Governable, Initializable {
/// @return rewardAmount Amount of reward that'll be distributed if collected now
function previewRewards() public view returns (uint256 rewardAmount) {
RewardConfig memory _config = rewardConfig;

if (_config.lastCollect == 0) {
return 0;
}

rewardAmount = (block.timestamp - _config.lastCollect) * _config.rewardsPerSecond;
uint256 balance = IERC20(rewardToken).balanceOf(address(this));
if (rewardAmount > balance) {
Expand Down

0 comments on commit 454af8d

Please sign in to comment.