Badger Citadel contest - simon135'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: 69/72

Findings: 1

Award: $52.17

🌟 Selected for report: 0

🚀 Solo Findings: 0

Citadelminer.sol:

fundingPoolWeights[_pool] = 0;

Should be Uninitialized should be used and make it less gas with same result

Line 370 string require more then 32 bytes takes up more gas Funding.sol minCitadelPriceInAsset Variable never used so just leave it uninitialized Line 148 require string more then 32 bytes make shorter to save gas. Line 170 Require statement require says not zero so to save gas != 0 or change there require statement has to be Greater then 0 Line 424 same thing as above KnightingRound.sol Function initialize
Gas save with the non zero by != To save gas also the string have to be less then 32 bytes or cost more gas Lines:124,128,313 Stakedcitadel.sol uint256 constant ONE_ETH = 1e18; should be 10** 18 tp save gas StakedcitadelVestor.sol Line:138 require says not vest zero save gas != Supplyshed.sol Line:96 to big string

Line 143 string to big

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