From d384e3025f7459427f6375fdc93435658070efc1 Mon Sep 17 00:00:00 2001 From: MathisGD Date: Thu, 26 May 2022 19:14:26 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9A=20fix=20typos=20in=20contracts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contracts/common/libraries/uniswap/PoolAddress.sol | 2 +- .../common/rewards-distribution/RewardsDistributor.sol | 8 ++++---- contracts/compound/IncentivesVault.sol | 4 ++-- contracts/compound/MorphoStorage.sol | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/contracts/common/libraries/uniswap/PoolAddress.sol b/contracts/common/libraries/uniswap/PoolAddress.sol index 09c876272..b29bf5cc9 100644 --- a/contracts/common/libraries/uniswap/PoolAddress.sol +++ b/contracts/common/libraries/uniswap/PoolAddress.sol @@ -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, diff --git a/contracts/common/rewards-distribution/RewardsDistributor.sol b/contracts/common/rewards-distribution/RewardsDistributor.sol index 77639a5e4..e72c0f7f6 100644 --- a/contracts/common/rewards-distribution/RewardsDistributor.sol +++ b/contracts/common/rewards-distribution/RewardsDistributor.sol @@ -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); @@ -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 /// @@ -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. diff --git a/contracts/compound/IncentivesVault.sol b/contracts/compound/IncentivesVault.sol index 435ff75df..a383290a5 100644 --- a/contracts/compound/IncentivesVault.sol +++ b/contracts/compound/IncentivesVault.sol @@ -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(); @@ -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; diff --git a/contracts/compound/MorphoStorage.sol b/contracts/compound/MorphoStorage.sol index 640e4d7f8..861b4f075 100644 --- a/contracts/compound/MorphoStorage.sol +++ b/contracts/compound/MorphoStorage.sol @@ -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 ///