Sturdy contest - 0v3rf10w'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: 55/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

gas1:

use a newer solidity version atleast 0.8.4 to get the compiler benefits and various gas optimizations. Also, u'll not need safemath which will drastically reduce gas costs.

gas2:

use prefix ++i instead of suffix i++ ,no need to init i, better if use unchecked https://github.com/code-423n4/2022-05-sturdy/blob/78f51a7a74ebe8adfd055bdbaedfddc05632566f/smart-contracts/ConvexCurveLPVault.sol#L106 https://github.com/code-423n4/2022-05-sturdy/blob/78f51a7a74ebe8adfd055bdbaedfddc05632566f/smart-contracts/GeneralVault.sol#L218

gas3:

IConvexBaseRewardPool can gas-golfed as it's called around 4 times in function processYield (ConvexCurveLPVault.sol:87) by caching it https://github.com/code-423n4/2022-05-sturdy/blob/78f51a7a74ebe8adfd055bdbaedfddc05632566f/smart-contracts/ConvexCurveLPVault.sol#L87-L111

na1:

some typos https://github.com/code-423n4/2022-05-sturdy/blob/78f51a7a74ebe8adfd055bdbaedfddc05632566f/smart-contracts/ConvexCurveLPVault.sol#L169-L170

// Deliver Curve LP Token TransferHelper.safeTransfer(curveLPToken, _to, _amount);

na2:

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

    // Ex: if user deposit 100ETH, this will deposit 100ETH to Lido and receive 100stETH TODO No Lido
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