Fractional v2 contest - Aymen0909's results

A collective ownership platform for NFTs on Ethereum.

General Information

Platform: Code4rena

Start Date: 07/07/2022

Pot Size: $75,000 USDC

Total HM: 32

Participants: 141

Period: 7 days

Judge: HardlyDifficult

Total Solo HM: 4

Id: 144

League: ETH

Fractional

Findings Distribution

Researcher Performance

Rank: 108/141

Findings: 1

Award: $61.94

🌟 Selected for report: 0

🚀 Solo Findings: 0

REPEATED CHECK STATEMENT SHOULD BE REPLACED BY A MODIFIER FOR BETTER CODE READABILITY :

This is not a gas optimisation technique as both approaches have the same gas usage but using modifier for if/require checks that are repeated more than 2 times is highly recommended and best practice.

File: src/Vault.sol

line 76 : if (owner != msg.sender) revert NotOwner(owner, msg.sender); line 87 : if (owner != msg.sender) revert NotOwner(owner, msg.sender); line 94 : if (owner != msg.sender) revert NotOwner(owner, msg.sender); line 102 : if (owner != msg.sender) revert NotOwner(owner, msg.sender);

IT SHOULD BE REPLACED BY :

modifier onlyOwner() { if (owner != msg.sender) revert NotOwner(owner, msg.sender); _; }

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