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

[L-04] Draft Openzeppelin Dependencies

Summary

The Beedle contract is imported from a previous deprecated preview provided by OpenZeppelin.

Using deprecated contracts that are in a draft state and not properly audited can be dangerous and increase the attack surface.

Internally you are importing import "./ERC20Permit.sol; you could do this implementation directly.

Impact

Low

Tools Used

Manual code review

Recommendations

You can change for that:

- import {ERC20Permit} from "openzeppelin-contracts/contracts/token/ERC20/extensions/draft-ERC20Permit.sol";
+ import {ERC20Permit} from "openzeppelin-contracts/contracts/token/ERC20/extensions/ERC20Permit.sol";

Support

FAQs

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