Infinity NFT Marketplace contest - Sm4rty's results

The world's most advanced NFT marketplace.

General Information

Platform: Code4rena

Start Date: 14/06/2022

Pot Size: $50,000 USDC

Total HM: 19

Participants: 99

Period: 5 days

Judge: HardlyDifficult

Total Solo HM: 4

Id: 136

League: ETH

Infinity NFT Marketplace

Findings Distribution

Researcher Performance

Rank: 84/99

Findings: 1

Award: $48.98

🌟 Selected for report: 0

🚀 Solo Findings: 0

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

_mint() is discouraged in favor of _safeMint() which ensures that the recipient is either an EOA or implements IERC721Receiver. Both open OpenZeppelin and solmate have versions of this function so that NFTs aren’t lost if they’re minted to contracts that cannot transfer them back out.

Instances

contracts/token/InfinityToken.sol:55: _mint(admin, supply); contracts/token/InfinityToken.sol:79: _mint(getAdmin(), supplyToMint); contracts/token/InfinityToken.sol:104: super._mint(to, amount); contracts/MockERC20.sol:8: _mint(msg.sender, supply);

Recommendations:

Use _safeMint() instead of _mint().

#0 - nneverlander

2022-06-23T12:27:52Z

Non issue

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter