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

Using Private Rather Than Public For Constants,Saves Gas

Summary

Using Private Rather Than Public For Constants,Saves Gas

Vulnerability Details

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

File: src/Lender.sol
59 uint256 public constant MAX_INTEREST_RATE = 100000;
61 uint256 public constant MAX_AUCTION_LENGTH = 3 days;

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

File: src/Fees.sol
16 ISwapRouter public constant swapRouter =
17 ISwapRouter(0xE592427A0AEce92De3Edee1F18E0157C05861564);

Support

FAQs

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