Platform: Code4rena
Start Date: 09/11/2021
Pot Size: $30,000 ETH
Total HM: 6
Participants: 17
Period: 3 days
Judge: pauliax
Total Solo HM: 3
Id: 50
League: ETH
Rank: 16/17
Findings: 2
Award: $13.41
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: ye0lde
Also found by: WatchPug, elprofesor, pants
elprofesor
Strings are allocated space in storage slots at 32 bytes at a time. Excessive string lengths can cause unnecessary storage allocation which in turn costs gas.
Examples can be found throughout the code, however, notably Dao L427
uses the following require strings "FairSideDAO::propose: one live proposal per proposer, found an already active proposal". This string length totals 86 bytes which therefore takes 3 lots of 32 bytes. We believe this to be unnecessary, examples of smaller sized require reason strings could be: Dao: User has active proposal
use shorter strings in require reasons where possible
#0 - YunChe404
2021-11-14T11:19:51Z
#15
#1 - pauliax
2021-11-16T21:50:21Z
A duplicate of #43