Rigor Protocol contest - tofunmi's results

Community lending and instant payments for new home construction.

General Information

Platform: Code4rena

Start Date: 01/08/2022

Pot Size: $50,000 USDC

Total HM: 26

Participants: 133

Period: 5 days

Judge: Jack the Pug

Total Solo HM: 6

Id: 151

League: ETH

Rigor Protocol

Findings Distribution

Researcher Performance

Rank: 129/133

Findings: 1

Award: $21.72

🌟 Selected for report: 0

🚀 Solo Findings: 0

Use a more efficient loops for all operations to save a lot of gas use unchecked{ ++i; } to increment i on each iteration like so

Affected lines of inefficient loops for gas savings
for (uint256 i = 0; i < _communities[_communityID].memberCount;) { unchecked{ ++i; } }
for (uint256 i = 0; i < _length;) { unchecked { ++i; } }
for (uint256 i = 0; i < _length;) { unchecked { ++i; } }
for (uint256 i = 0; i < _length;) { unchecked { ++i; } }
for (uint256 i = 0; i < _length;) { unchecked { ++i; } }
for (uint256 i = 0; i < _length;) { unchecked { ++i; } }
for (uint256 _taskID = 1; _taskID <= _length;) { unchecked { ++_taskID; } }
for (; i < _changeOrderedTask.length;) { unchecked { ++i; } }
for (uint256 _taskID = 1; _taskID <= _length;) { unchecked { ++_taskID; } }

#0 - zgorizzo69

2022-08-11T08:09:08Z

thanks for your work

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