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

Use custom errors rather than require() strings to save gas

Summary

Vulnerability Details

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

File: src/Fees.sol
27 require(_profits != WETH, "not allowed");

https://github.com/Cyfrin/2023-07-beedle/blob/main/src/utils/Ownable.sol#L11

File: src/utils/Ownable.sol
11 require(msg.sender == owner, "UNAUTHORIZED");

Support

FAQs

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