Platform: Code4rena
Start Date: 04/05/2022
Pot Size: $50,000 DAI
Total HM: 24
Participants: 71
Period: 5 days
Judge: Justin Goro
Total Solo HM: 14
Id: 119
League: ETH
Rank: 48/71
Findings: 2
Award: $113.93
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: horsefacts
Also found by: 0x1f8b, 0xYamiDancho, 0xf15ers, 0xkatana, ACai, AlleyCat, Bruhhh, Dravee, Funen, GimelSec, Hawkeye, IllIllI, MaratCerby, PPrieditis, Picodes, Ruhum, TerrierLover, VAD37, berndartmueller, csanuragjain, defsec, delfin454000, eccentricexit, ellahi, fatherOfBlocks, gzeon, hansfriese, hickuphh3, hyh, ilan, joestakey, juicy, kebabsec, oyc_109, rajatbeladiya, reassor, rfa, robee, samruna, simon135, sorrynotsorry, throttle
74.8899 DAI - $74.89
I. Account for the case in which totalDepositsWei==maxDepositWei
If a user input exceeds the maxDepositWei but the TotalDepositsWei is already ==maxDepositWei, the amount is zero and nothing gets added on line 186.
Add a require statement to ensure that on line 186, amount >0, “add to another pool”.
II. Variables are already their defaults,no need to assign them:
PermissionlessBasicPoolFactory.sol
MerkleDropFactory.sol
MerkleVesting.sol
MerkleResistor.sol
MerkleEligibility.sol
III. For better readability, change +=1 to ++:
#0 - illuzen
2022-05-12T09:11:28Z
all duplicates
#1 - gititGoro
2022-06-06T04:26:53Z
3 is a neutral subjective preference rather than an improvement in code quality.
🌟 Selected for report: IllIllI
Also found by: 0x1f8b, 0xNazgul, 0xYamiDancho, 0xf15ers, 0xkatana, ACai, CertoraInc, Dravee, Funen, GimelSec, Hawkeye, PPrieditis, Picodes, Ruhum, TerrierLover, Tomio, VAD37, Waze, csanuragjain, defsec, delfin454000, eccentricexit, ellahi, fatherOfBlocks, gzeon, hansfriese, horsefacts, ilan, joestakey, juicy, minhquanym, oyc_109, rajatbeladiya, reassor, rfa, robee, samruna, simon135, z3s
39.0375 DAI - $39.04
I. Cache numTrees in a local variable and use in LoC mentioned below:
MerkleDropFactory.sol
MerkleVesting.sol
https://github.com/code-423n4/2022-05-factorydao/blob/main/contracts/MerkleVesting.sol#L71-L72
https://github.com/code-423n4/2022-05-factorydao/blob/main/contracts/MerkleResistor.sol#L99-L100
II. Cache in a local variable and use ++
#0 - illuzen
2022-05-12T09:15:51Z
all duplicates