veRWA - SUPERMAN_I4G's results

Incentivization Primitive for Real World Assets on Canto

General Information

Platform: Code4rena

Start Date: 07/08/2023

Pot Size: $36,500 USDC

Total HM: 11

Participants: 125

Period: 3 days

Judge: alcueca

Total Solo HM: 4

Id: 274

League: ETH

Canto

Findings Distribution

Researcher Performance

Rank: 121/125

Findings: 1

Award: $4.23

QA:
grade-b

🌟 Selected for report: 0

🚀 Solo Findings: 0

Title: High cyclomatic complexity

Code: https://github.com/code-423n4/2023-08-verwa/blob/a693b4db05b9e202816346a6f9cada94f28a2698/src/VotingEscrow.sol#L115-L259

Severity: Informational

Details: the _checkpoint function contains multiple conditional statements, loops, and calculations, contributing to its high cyclomatic complexity.

Impact: it makes the code harder to analyze, debug, and maintain.

Recommendation: Reduce cyclomatic complexity by splitting the function into several smaller subroutines.

Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#cyclomatic-complexity

#0 - c4-judge

2023-08-22T14:13:30Z

alcueca 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