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

Large numeric literals should use underscores for readability

Summary

Contributes to better visibility of the code

Vulnerability Details

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;

https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Lender.sol#

Impact

Informational

Tools Used

Manual review

Recommendations

Large numeric literals should use underscores for readability

Support

FAQs

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

Give us feedback!