Fractional v2 contest - ReyAdmirado'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: 66/141

Findings: 2

Award: $103.79

🌟 Selected for report: 0

🚀 Solo Findings: 0

1. state variables only set in the constructor should be declared immutable

avoids a gsset (20000 gas)

implementation should be immutable.

2. state variables should be cached in stack variables rather than re-reading them from storage

3. x = x + y is cheaper than x += y

4. better to use ++i than i++

5. use custom errors rather than revert()/require() strings to save deployment gas

https://blog.soliditylang.org/2021/04/21/custom-errors/

6. expressions for constant values such as a call to keccak256(), should use immutable rather than constant

7. <array>.length should not be looked up in every loop of a for-loop

8.it costs more gas to initialize variables to zero than to let the default of zero be applied

9. require()/revert() strings longer than 32 bytes cost extra gas

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