Sturdy contest - delfin454000's results

The first protocol for interest-free borrowing and high yield lending.

General Information

Platform: Code4rena

Start Date: 13/05/2022

Pot Size: $30,000 USDC

Total HM: 8

Participants: 65

Period: 3 days

Judge: hickuphh3

Total Solo HM: 1

Id: 125

League: ETH

Sturdy

Findings Distribution

Researcher Performance

Rank: 37/65

Findings: 2

Award: $68.78

🌟 Selected for report: 0

🚀 Solo Findings: 0

#0 - HickupHH3

2022-06-06T06:44:03Z

Grammar, grouped as 1 NC

Awards

23.4569 USDC - $23.46

Labels

bug
G (Gas Optimization)

External Links

Issue: Should use != 0 instead of > 0 in a require statement if variable is an unsigned integer (uint) Explanation: != 0 should be used where possible since > 0 costs more gas

https://github.com/code-423n4/2022-05-sturdy/blob/78f51a7a74ebe8adfd055bdbaedfddc05632566f/smart-contracts/GeneralVault.sol#L179

    require(yieldStAsset > 0, Errors.VT_PROCESS_YIELD_INVALID);

Change yieldStAsset > 0 to yieldStAsset != 0

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