Nouns Builder contest - PaludoX0's results

A permissionless, governed protocol to deploy nouns-style DAOs complete with treasury, generative collections, and governance mechanisms.

General Information

Platform: Code4rena

Start Date: 06/09/2022

Pot Size: $90,000 USDC

Total HM: 33

Participants: 168

Period: 9 days

Judge: GalloDaSballo

Total Solo HM: 10

Id: 157

League: ETH

Nouns Builder

Findings Distribution

Researcher Performance

Rank: 97/168

Findings: 2

Award: $106.18

🌟 Selected for report: 0

🚀 Solo Findings: 0

https://github.com/code-423n4/2022-09-nouns-builder/blob/7e9fddbbacdd7d7812e912a369cfd862ee67dc03/src/lib/utils/Ownable.sol#L63 Because of function importance, it would be better to keep emit after ownership transfer, in case the transfership fails There's no control that address is different from address(0), settings.treasury could be = 0 if not has been set correctly

https://github.com/code-423n4/2022-09-nouns-builder/blob/7e9fddbbacdd7d7812e912a369cfd862ee67dc03/src/governance/treasury/Treasury.sol#L141 It's better to set only ProposalId as function parameter, instead of repeating _target/_values/_calldatas/_descriptionHash parameters which could led to errors

#0 - GalloDaSballo

2022-09-27T00:35:21Z

You can set owner to 0 to renounce

Other is valid R

https://github.com/code-423n4/2022-09-nouns-builder/blob/7e9fddbbacdd7d7812e912a369cfd862ee67dc03/src/governance/governor/Governor.sol#L248 It's better to check at function beginning (or at calling parent functions with a modifier) if voter has weight>0 in order to save gas: require(getVotes(_voter, proposal.timeCreated)>0,"NOT_ENOUGH_VOTES");

https://github.com/code-423n4/2022-09-nouns-builder/blob/7e9fddbbacdd7d7812e912a369cfd862ee67dc03/src/token/Token.sol#L88 Finding that INVALID_FOUNDER_OWNERSHIP() at the very last founder is a waste of gas, a previous check at line 74 through another for cycle would save gas

#0 - GalloDaSballo

2022-09-26T20:15:29Z

100 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