Tadle

Tadle
DeFiFoundry
27,750 USDC
View results
Submission Details
Severity: low
Invalid

Unnecessary Getter in `SystemConfig.sol`

Summary

Some variables are declared as public in the storage contract (SystemConfigStorage.sol) and also have getter functions in the main contract. This is redundant as public variables automaticaly generate getter functions.

function getBaseReferralRate() external view returns (uint256) {
return baseReferralRate;
}
function getReferralInfo(
address _referrer
) external view returns (ReferralInfo memory) {
return referralInfoMap[_referrer];
}
function getMarketPlaceInfo(
address _marketPlace
) external view returns (MarketPlaceInfo memory) {
return marketPlaceInfoMap[_marketPlace];
}

Tools Used

Manual Review

Recommendations

Remove the getters function

Updates

Lead Judging Commences

0xnevi Lead Judge
about 1 year ago
0xnevi Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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