Badger Citadel contest - peritoflores's results

Bringing BTC to DeFi

General Information

Platform: Code4rena

Start Date: 14/04/2022

Pot Size: $75,000 USDC

Total HM: 8

Participants: 72

Period: 7 days

Judge: Jack the Pug

Total Solo HM: 2

Id: 110

League: ETH

BadgerDAO

Findings Distribution

Researcher Performance

Rank: 58/72

Findings: 1

Award: $91.39

🌟 Selected for report: 0

🚀 Solo Findings: 0

LOW AND NC for Badger Citadel by PeritoFlores

[L-01] Missing zero-address check in claim function

External function claim#StackedCitadelVester.solis missing zero-address check for the parameter recipient . User could accidentally burn vestingTokens by transfering them to zero-address.

Add

require(recipient =! address(0))

[L-02] Lack of event emission at clearCitadelPriceFlag

Function clearCitadelPriceFlag#Funding.sol is missing an event after setting the parameter

citadelpriceFlag to false.

This is important as users will be unaware and can call the public function deposit#Funding.sol that will revert and will spend gas unnecessarily.

Add event

[NC-01] Lack of event emission in several functions at SettAccessControl contract

Functions setStrategist, setKeeper and setGovernance lack even emission after those variables are set. Consider adding new events and emit them at the end of every function.

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