Badger-Vested-Aura contest - zzzitron'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: 3/55

Findings: 2

Award: $3,600.11

🌟 Selected for report: 0

🚀 Solo Findings: 0

Awards

53.6173 USDC - $53.62

Labels

bug
QA (Quality Assurance)
sponsor disputed
valid

External Links

Badger Vested Aura QA Report

Summary

  • The README.md could be updated to give better understanding.

Non-Critical

Missing zero address check for bribesProcessor

  • MyStrategy.sol:100
       ///@dev Change the contract that handles bribes
      function setBribesProcessor(IBribesProcessor newBribesProcessor) external {
          _onlyGovernance();
          bribesProcessor = newBribesProcessor;
      }

The bribeProcessor is not set in the initialize function, so it starts with zero address. Also, setBribesProcessor can set the bribesProcessor to the zero address. Although no amount can be transferred to zero address thanks to the usage of safeTransfer, sweepRewardToken and claimBribesFromHiddenHand will revert when the bribesProcessor is not set. To mitigate this, the bribesProcessor can be set in the initialize function and add zero address check to setBribesProcessor.

typo in comment

  • MyStrategy.sol:218
    /// after claiming rewards or swapping are auto-compunded.
    auto-compunded to auto-compounded

todo in comment

#0 - GalloDaSballo

2022-06-19T01:37:47Z

Missing zero address check for bribesProcessor

What if we don't want to have a bribesProcessor anymore?

ack rest

#1 - jack-the-pug

2022-07-10T08:36:12Z

I'll upgrade Missing zero address check for bribesProcessor to High and that's a dup of #18

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