Sturdy contest - samruna'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: 57/65

Findings: 1

Award: $23.46

🌟 Selected for report: 0

🚀 Solo Findings: 0

Awards

23.4569 USDC - $23.46

Labels

bug
G (Gas Optimization)

External Links

Missing zero check

Description: https://github.com/sturdyfi/code4rena-may-2022/blob/main/contracts/protocol/vault/YieldManager.sol#L124 https://github.com/sturdyfi/code4rena-may-2022/blob/main/contracts/protocol/vault/YieldManager.sol#L132 On line 124 and 312, the amount is not validated before the exchange is called. If the amount is zero no need to exchange.

Mitigation: require(_amount != 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