Skip to content

Commit

Permalink
📚 fix typos in contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
MathisGD authored and MerlinEgalite committed May 28, 2022
1 parent 068ebc4 commit d384e30
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion contracts/common/libraries/uniswap/PoolAddress.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ library PoolAddress {
/// @param tokenA The first token of a pool, unsorted
/// @param tokenB The second token of a pool, unsorted
/// @param fee The fee level of the pool
/// @return Poolkey The pool details with ordered token0 and token1 assignments
/// @return PoolKey The pool details with ordered token0 and token1 assignments
function getPoolKey(
address tokenA,
address tokenB,
Expand Down
8 changes: 4 additions & 4 deletions contracts/common/rewards-distribution/RewardsDistributor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ contract RewardsDistributor is Ownable {

/// EVENTS ///

/// @notice Emitted when the root is udpated.
/// @notice Emitted when the root is updated.
/// @param _newRoot The new merkle's tree root.
event RootUpdated(bytes32 _newRoot);

/// @notice Emitted when an account claims rewards.
/// @param _account The address of the claimor.
/// @param _account The address of the claimer.
/// @param _amountClaimed The amount of rewards claimed.
event RewardsClaimed(address _account, uint256 _amountClaimed);

Expand All @@ -35,7 +35,7 @@ contract RewardsDistributor is Ownable {
/// @notice Thrown when the proof is invalid or expired.
error ProofInvalidOrExpired();

/// @notice Thrown when the claimor has already claimed the rewards.
/// @notice Thrown when the claimer has already claimed the rewards.
error AlreadyClaimed();

/// EXTERNAL ///
Expand All @@ -49,7 +49,7 @@ contract RewardsDistributor is Ownable {
}

/// @notice Claims rewards.
/// @param _account The address of the claimor.
/// @param _account The address of the claimer.
/// @param _token The address of token being claimed (ie MORPHO).
/// @param _claimable The overall claimable amount of token rewards.
/// @param _proof The merkle proof that validates this claim.
Expand Down
4 changes: 2 additions & 2 deletions contracts/compound/IncentivesVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ contract IncentivesVault is IIncentivesVault, Ownable {
/// @param _morphoAmount The amount of MORPHO sent.
event CompTokensTraded(address indexed _receiver, uint256 _compAmount, uint256 _morphoAmount);

/// ERRROS ///
/// ERRORS ///

/// @notice Thrown when an other address than Morpho triggers the function.
error OnlyMorpho();
Expand Down Expand Up @@ -91,7 +91,7 @@ contract IncentivesVault is IIncentivesVault, Ownable {
emit OracleSet(address(_newOracle));
}

/// @notice Sets the morho DAO.
/// @notice Sets the morpho DAO.
/// @param _newMorphoDao The address of the Morpho DAO.
function setMorphoDao(address _newMorphoDao) external onlyOwner {
morphoDao = _newMorphoDao;
Expand Down
4 changes: 2 additions & 2 deletions contracts/compound/MorphoStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ abstract contract MorphoStorage is OwnableUpgradeable, ReentrancyGuardUpgradeabl

uint8 public constant CTOKEN_DECIMALS = 8; // The number of decimals for cToken.
uint16 public constant MAX_BASIS_POINTS = 10_000; // 100% in basis points.
uint16 public constant MAX_CLAIMABLE_RESERVE = 9_000; // The max propotion of reserve fee claimable by the DAO at once (90% in basis points).
uint16 public constant MAX_CLAIMABLE_RESERVE = 9_000; // The max proportion of reserve fee claimable by the DAO at once (90% in basis points).
uint256 public constant WAD = 1e18;

uint256 public maxSortedUsers; // The max number of users to sort in the data structure.
uint256 public dustThreshold; // The minimum amount to keep in the data stucture.
uint256 public dustThreshold; // The minimum amount to keep in the data structure.
Types.MaxGasForMatching public defaultMaxGasForMatching; // The default max gas to consume within loops in matching engine functions.

/// POSITIONS STORAGE ///
Expand Down

0 comments on commit d384e30

Please sign in to comment.