15,000 USDC
View results
Submission Details
Severity: gas
Valid

Spelling errors

Summary

There are numerous instances throughout the codebase where spelling errors have been encountered.

Vulnerability Details

Spelling errors should be strictly avoided.

Instances:

https://github.com/Cyfrin/2023-07-foundry-defi-stablecoin/blob/main/src/DSCEngine.sol#L40

   @audit change Algoritmically to Algorithmically
 * - Algoritmically Stable

https://github.com/Cyfrin/2023-07-foundry-defi-stablecoin/blob/main/src/DSCEngine.sol#L210

   @audit change you to your
 * you DSC but keep your collateral in.

https://github.com/Cyfrin/2023-07-foundry-defi-stablecoin/blob/main/src/DSCEngine.sol#L220

   @audit change users to user's
 * @param debtToCover The amount of DSC you want to burn to improve the users health factor

https://github.com/Cyfrin/2023-07-foundry-defi-stablecoin/blob/main/src/DSCEngine.sol#L224

  @audit change incentive to incentivize 
 * @notice A known bug would be if the protocol were 100% or less collateralized, then we wouldn't be able to incentive the liquidators. 

https://github.com/Cyfrin/2023-07-foundry-defi-stablecoin/blob/main/src/DSCEngine.sol#L365

     @audit change CL to Chainlink
    // The returned value from CL will be 1000 * 1e8

Impact

The prevention of spelling errors prevents confusion and also improves readability.

Tools Used

Manual review and VS Code

Recommendations

Correct the spelling errors.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.