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

Declare interfaces on separate files

Summary

Declare interfaces on separate files

Vulnerability Details

Interfaces should be declared on a separate file and not on the same file where the contract resides in

7 interface FeeDistribution {
8 function claim(address) external;

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

Impact

Informational

Tools Used

Manual review

Recommendations

Declare interfaces on separate files

Support

FAQs

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