Badger-Vested-Aura contest - 0xNineDec's results

Bringing BTC to DeFi

General Information

Platform: Code4rena

Start Date: 15/06/2022

Pot Size: $30,000 USDC

Total HM: 5

Participants: 55

Period: 3 days

Judge: Jack the Pug

Id: 138

League: ETH

BadgerDAO

Findings Distribution

Researcher Performance

Rank: 38/55

Findings: 1

Award: $53.62

🌟 Selected for report: 0

🚀 Solo Findings: 0

Awards

53.6173 USDC - $53.62

Labels

bug
QA (Quality Assurance)
valid

External Links

L: EVENT LACKS OF INDEXED PARAMETERS

https://github.com/Badger-Finance/vested-aura/blob/d504684e4f9b56660a9e6c6dfb839dcebac3c174/contracts/MyStrategy.sol#L51

The MyStrategy.RewardsCollected event lacks of indexed parameter that help offchain event filtering for better analysis. It is avisable to index a relevant parameter within that event to help with offchain services event filtering.

GAS: SAVE GAS WHILE FOR LOOPING

https://github.com/Badger-Finance/vested-aura/blob/d504684e4f9b56660a9e6c6dfb839dcebac3c174/contracts/MyStrategy.sol#L299 https://github.com/Badger-Finance/vested-aura/blob/d504684e4f9b56660a9e6c6dfb839dcebac3c174/contracts/MyStrategy.sol#L317

Calculating the _claim.length once before looping instead of performing the calculation once each loop is done & using ++i, helps saving gas while looping.

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