Skip to content

Commit

Permalink
Minor tweaks to readaibility
Browse files Browse the repository at this point in the history
  • Loading branch information
superduck35 committed Jan 15, 2021
1 parent 557ebdf commit 75a429d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ contract InitializableRewardsDistributionRecipient is IRewardsDistributionRecipi

/** @dev Recipient is a module, governed by mStable governance */
function _initialize(address _nexus, address _rewardsDistributor) internal {
rewardsDistributor = _rewardsDistributor;
InitializableModule2._initialize(_nexus);
rewardsDistributor = _rewardsDistributor;
}

/**
Expand Down
9 changes: 4 additions & 5 deletions contracts/savings/BoostedSavingsVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ contract BoostedSavingsVault is
InitializableRewardsDistributionRecipient,
BoostedTokenWrapper
{

using StableMath for uint256;
using SafeCast for uint256;

Expand All @@ -48,13 +47,13 @@ contract BoostedSavingsVault is
uint64 public constant UNLOCK = 2e17;

// Timestamp for current period finish
uint256 public periodFinish = 0;
uint256 public periodFinish;
// RewardRate for the rest of the PERIOD
uint256 public rewardRate = 0;
uint256 public rewardRate;
// Last time any user took action
uint256 public lastUpdateTime = 0;
uint256 public lastUpdateTime;
// Ever increasing rewardPerToken rate, based on % of total supply
uint256 public rewardPerTokenStored = 0;
uint256 public rewardPerTokenStored;
mapping(address => UserData) public userData;
// Locked reward tracking
mapping(address => Reward[]) public userRewards;
Expand Down

0 comments on commit 75a429d

Please sign in to comment.