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

Using private rather than public for constants

Summary

Vulnerability Details

The constants variables in the contract have been set as public which has not been used by other contracts, it can be set as private.

Impact

Using public instead of private for constants can consume more gas.

Tools Used

Manual Review

Recommendations

Set visibility as private instead.

ISwapRouter private constant swapRouter =
ISwapRouter(0xE592427A0AEce92De3Edee1F18E0157C05861564);
uint256 private constant MAX_INTEREST_RATE = 100000;
uint256 private constant MAX_AUCTION_LENGTH = 3 days;

Support

FAQs

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