15,000 USDC
View results
Submission Details
Severity: medium

_safeMint() should be used rather than _mint() wherever possible

Summary

Vulnerability Details

_mint() is discouraged in favor of _safeMint() which ensures that the recipient is either an EOA or implements IERC721Receiver. Both OpenZeppelin and solmate have versions of this function. In the cases below, _mint() does not call ERC721TokenReceiver.onERC721Received() on the recipient.

There are 1 instances of this issue:

64: _mint(_to, _amount);

Tools Used

Recommendations

Use _safeMint()

Support

FAQs

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