Skip to content

Commit

Permalink
🎨 (setters) Update comments and naming
Browse files Browse the repository at this point in the history
  • Loading branch information
MerlinEgalite committed May 2, 2022
1 parent d03e770 commit f8a8e10
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions contracts/compound/morpho-parts/MorphoGovernance.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,38 +28,38 @@ abstract contract MorphoGovernance is MorphoEventsErrors {
}

/// @notice Sets the `positionsManager`.
/// @param _positionsManager The address of the `positionsManager`.
/// @param _positionsManager The new `positionsManager`.
function setPositionsManager(IPositionsManager _positionsManager) external onlyOwner {
positionsManager = _positionsManager;
emit PositionsManagerSet(address(_positionsManager));
}

/// @notice Sets the `rewardsManager`.
/// @param _rewardsManagerAddress The address of the `rewardsManager`.
function setRewardsManager(IRewardsManager _rewardsManagerAddress) external onlyOwner {
rewardsManager = _rewardsManagerAddress;
emit RewardsManagerSet(address(_rewardsManagerAddress));
/// @param _rewardsManager The new `rewardsManager`.
function setRewardsManager(IRewardsManager _rewardsManager) external onlyOwner {
rewardsManager = _rewardsManager;
emit RewardsManagerSet(address(_rewardsManager));
}

/// @notice Sets the `intersRates`.
/// @notice Sets the `interestRates`.
/// @param _interestRates The new `interestRates` contract.
function setInterestRates(IInterestRates _interestRates) external onlyOwner {
interestRates = _interestRates;
emit InterestRatesSet(address(_interestRates));
}

/// @notice Sets the `treasuryVault`.
/// @param _newTreasuryVaultAddress The address of the new `treasuryVault`.
function setTreasuryVault(address _newTreasuryVaultAddress) external onlyOwner {
treasuryVault = _newTreasuryVaultAddress;
emit TreasuryVaultSet(_newTreasuryVaultAddress);
/// @param _treasuryVault The address of the new `treasuryVault`.
function setTreasuryVault(address _treasuryVault) external onlyOwner {
treasuryVault = _treasuryVault;
emit TreasuryVaultSet(_treasuryVault);
}

/// @notice Sets the `incentivesVault`.
/// @param _newIncentivesVault The address of the new `incentivesVault`.
function setIncentivesVault(IIncentivesVault _newIncentivesVault) external onlyOwner {
incentivesVault = _newIncentivesVault;
emit IncentivesVaultSet(address(_newIncentivesVault));
/// @param _incentivesVault The new `incentivesVault`.
function setIncentivesVault(IIncentivesVault _incentivesVault) external onlyOwner {
incentivesVault = _incentivesVault;
emit IncentivesVaultSet(address(_incentivesVault));
}

/// @dev Sets `dustThreshold`.
Expand Down

0 comments on commit f8a8e10

Please sign in to comment.