Rigor Protocol contest - 0xSolus'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: 94/133

Findings: 2

Award: $62.34

🌟 Selected for report: 0

🚀 Solo Findings: 0

HomeFi Contract

The mintNFT() returns a uint value with the projectCount, but this is not used here. Remove unnecessary return value or use it in createProject() as projectCount replacement for saving gas with local variable.

Disputes Contract

Based in the context, there's no reason why the assertMember() L#172 should be decleared as public, as it is not used externally anywhere and it's only used internally in the Disputes contract. It's better to declare it as internal for gas optimizations.

Community Contract

Use of _communityProject.apr instead of _communities[_communityID].projectDetails[_project].apr in L#692 as stated for gas optimization.

Consider adding a local variable for _msgSender() as follows:
address _sender = _msgSender() in L#503 as done in Project.sol

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