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

Large numeric literals should use underscores for readability

Summary

Large numeric literals should use underscores for readability

Vulnerability Details

File: src/Lender.sol
59: uint256 public constant MAX_INTEREST_RATE = 100000;
265: uint256 fees = (debt * borrowerFee) / 10000;
561: uint256 govFee = (borrowerFee * loan.collateral) / 10000;
650: uint256 fee = (borrowerFee * (debt - debtToPay)) / 10000;
724: interest = (l.interestRate * l.debt * timeElapsed) / 10000 / 365 days;
725: fees = (lenderFee * interest) / 10000;

Link to code - https://github.com/Cyfrin/2023-07-beedle/tree/main/src/Lender.sol

Tools Used

Code Review

Recommendations

Use underscores for readability

Auditor

NeoCrao

Support

FAQs

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