Nouns DAO contest - tay054's results

A DAO-driven NFT project on Ethereum.

General Information

Platform: Code4rena

Start Date: 22/08/2022

Pot Size: $50,000 USDC

Total HM: 4

Participants: 160

Period: 5 days

Judge: gzeon

Total Solo HM: 2

Id: 155

League: ETH

Nouns DAO

Findings Distribution

Researcher Performance

Rank: 158/160

Findings: 1

Award: $16.66

🌟 Selected for report: 0

πŸš€ Solo Findings: 0

USING > 0 COSTS MORE GAS THAN != 0

this saves 6 gas per loop iteration instance 4 instances line 541, 967 in NounsDAOLogicV2.sol line 215, 243 in ERC721Checkpointable.sol

<ARRAY>.LENGTH SHOULD NOT BE LOOKED UP IN EVERY LOOP OF A FOR-LOOP

4 instances line 292, 330, 357, 382 in NounsDAOLogicV2.sol

++I COSTS LESS GAS THAN I++, ESPECIALLY WHEN IT’S USED IN FOR-LOOPS (--I/I-- TOO)

this saves 6 gas per loop

4 instances line 292, 330, 357, 382 in NounsDAOLogicV2.sol

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