Badger Citadel contest - teryanarmen'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: 49/72

Findings: 2

Award: $143.56

🌟 Selected for report: 0

🚀 Solo Findings: 0

  1. initialize functions can be frontrun

CitadelMinter CitadelToken Funding GlobalAccesssControl KnightingRound StakedCitadel StakedCitadelVester SupplySchedule

This can be pretty annoying, especially if deployer realizes too late. Consider writing a factory contract that deploys all contracts atomically.

  1. version function might need to be virtual for future upgrades.

StakedCitadel

  1. In _withdraw, balance is called in L811 and in L815 token.balanceOf(address(this)) is called and cached. Since balance just returns token.balanceOf(address(this)), its output can be cached in L811 and reused in L815. Consider caching balance initially and saving a SLOAD.
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