Aragon Protocol contest - chrisdior4's results

The most user-friendly tech stack to launch your DAO.

General Information

Platform: Code4rena

Start Date: 03/03/2023

Pot Size: $90,500 USDC

Total HM: 4

Participants: 42

Period: 7 days

Judge: 0xean

Total Solo HM: 2

Id: 219

League: ETH

Aragon Protocol

Findings Distribution

Researcher Performance

Rank: 23/42

Findings: 1

Award: $72.43

QA:
grade-b

🌟 Selected for report: 0

πŸš€ Solo Findings: 0

Awards

72.4344 USDC - $72.43

Labels

bug
grade-b
judge review requested
QA (Quality Assurance)
sponsor disputed
edited-by-warden
Q-04

External Links

QA report

Low Risk

L-NIssue
[L‑01]Missing event emission on setter function

Total: 1 issue

Non-critical

N-NIssue
[N‑01]Contract layout and order of function
[N‑02]Unused import and custom error
[N‑03]Typos in the comments
[N‑04]Functions are missing override keyword

Total: 4 issues

[L-01] Missing event emission on setter function

File: CounterV2.sol

setNewVariable is missing event emission which might not be good for off-chain monitoring. Emit an event on state change.

[NC-01] Contract layoyt and order of function

File: MajorityVotingBase.sol

The Solidity style guide recommends declaring internal functions below external functions. If possible, consider adding internal functions below external functions for the contract layout. Furthermore, it’s also recommended to declare pure and view functions at the end of a grouping. Also It is a best practice that custom errors, structs and events are declared in the interface not in the implementation contract.

[NC-02] Unused import and custom error

IProposal import is not unused and can be removed

[NC-03] Typos in the comments

File: MajorityVotingBase.sol

/// @param VoteReplacment -> /// @param VoteReplacement

proposa -> proposal

comparision -> comparison

File: PluginSetupProcessor.sol

inidcated -> indicated

File: TokenVotingSetup.sol

worng -> wrong

deployes -> deploys

[NC-04] Functions are missing override keyword

Functions from IMajorityVotingBase.sol that are declared in its implementation MajorityVotingBase.sol are missing override keyword. Consider adding it.

#0 - c4-judge

2023-03-12T16:04:42Z

0xean marked the issue as grade-b

#1 - novaknole20

2023-03-13T17:49:19Z

None of these bring any advantage to security or gas optimization. The typos for sure, but wouldn't be important and we won't fix them in the near future, hence disregarding this.

#2 - c4-sponsor

2023-03-13T17:49:24Z

novaknole20 marked the issue as sponsor disputed

#3 - c4-sponsor

2023-03-13T17:49:28Z

novaknole20 requested judge review

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