Backed Protocol contest - z3s's results

Protocol for peer to peer NFT-Backed Loans.

General Information

Platform: Code4rena

Start Date: 05/04/2022

Pot Size: $30,000 USDC

Total HM: 10

Participants: 47

Period: 3 days

Judge: gzeon

Total Solo HM: 4

Id: 106

League: ETH

Backed Protocol

Findings Distribution

Researcher Performance

Rank: 35/47

Findings: 2

Award: $84.80

🌟 Selected for report: 0

🚀 Solo Findings: 0

Awards

51.8678 USDC - $51.87

Labels

bug
QA (Quality Assurance)
sponsor acknowledged

External Links

Non Critical

Use memory instead of storage, when you just read state vars:

It's more readable to use memory keyword, when we don't want to write changes or just read the state vars.

It's also more gas efficient but these are external view functions so gas doesn't matter here.

#0 - wilsoncusack

2022-04-16T01:50:57Z

using memory unnecessary copies the whole struct into memory which is not needed. This is more gas

Awards

32.9299 USDC - $32.93

Labels

bug
G (Gas Optimization)
sponsor acknowledged

External Links

Gas Optimizations

Use Custom Errors to save Gas:

Custom errors from Solidity 0.8.4 are cheaper than require messages. https://blog.soliditylang.org/2021/04/21/custom-errors/

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