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

[I-06] - Variables should follow the naming convention.

Details

Solidity style guides and all general programming languages suggest the following naming convention for variables:

  • Variable should be mixedCase.

  • constant variables should be capitalized and words separated using _ underscore.

Links

WETH should be wETH
https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Fees.sol#L12

swapRouter should be SWAP_ROUTER
https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Fees.sol#L16

TKN should be tKN
WETH should be wETH
https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Staking.sol#L26-L29

Recommendations

Convert the above-mentioned variables to mixedCase.

Support

FAQs

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