Yield Witch v2 contest - 0x1f8b's results

Fixed-rate borrowing and lending on Ethereum

General Information

Platform: Code4rena

Start Date: 14/07/2022

Pot Size: $25,000 USDC

Total HM: 2

Participants: 63

Period: 3 days

Judge: PierrickGT

Total Solo HM: 1

Id: 147

League: ETH

Yield

Findings Distribution

Researcher Performance

Rank: 55/63

Findings: 1

Award: $16.89

🌟 Selected for report: 0

🚀 Solo Findings: 0

Gas

1. Remove indexed parameter

The indices can be useful for filtering, but it doesn't make much sense to add them in values, but in keys. It is possible to save gas by eliminating the followings:

2. Remove argument

The param argument is not required because it must be constant.

3. Use error messages instead of require

The project uses the new solidity error system. However, the following lines have not been updated and represent an extra cost when pushing the message to the stack.

Affected source code:

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