Wenwin contest - bugradar's results

The next generation of chance-based gaming.

General Information

Platform: Code4rena

Start Date: 06/03/2023

Pot Size: $36,500 USDC

Total HM: 8

Participants: 93

Period: 3 days

Judge: cccz

Total Solo HM: 3

Id: 218

League: ETH

Wenwin

Findings Distribution

Researcher Performance

Rank: 80/93

Findings: 1

Award: $21.70

QA:
grade-b

🌟 Selected for report: 0

πŸš€ Solo Findings: 0

General recommendations:

  • Move logic closer together. A lot of single-use modifiers and functions, spread across different contracts.
  • (Too) Complex inheritance. Could be simplified/split into different contracts. Unwanted (& unnoticed) shadowing is a real risk in the current codebase imo.

Unnecessary Imports:

Unnecessary Overrides:

Unnecessary/Bad Practice Modifiers: Single use modifiers lead to logic far from the function declaration. Makes it hard to read

Shadowing: especially with complex inheritance like in the WenWin codebase shadowing is a potential origin of unexpected behavior.

Unnecessarily dispersed logic:

Unused Interfaces:

Unnecessary code:

Use more comments for easier entry into the codebase:

Pragmas should be locked:

#0 - thereksfour

2023-03-12T12:12:42Z

1 L 1 INFO

#1 - c4-judge

2023-03-12T12:12:50Z

thereksfour marked the issue as grade-c

#2 - c4-judge

2023-03-14T14:36:03Z

thereksfour marked the issue as grade-b

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