Platform: Code4rena
Start Date: 09/12/2021
Pot Size: $25,000 USDC
Total HM: 12
Participants: 25
Period: 4 days
Judge: LSDan
Total Solo HM: 4
Id: 64
League: ETH
Rank: 23/25
Findings: 1
Award: $51.14
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: robee
Also found by: GiveMeTestEther, Jujic, Meta0xNull, WatchPug, defsec, sirhashalot, ye0lde
Jujic
Shortening revert strings to fit in 32 bytes will decrease deployment time gas and will decrease runtime gas when the revert condition has been met.
Shorten the revert strings to fit in 32 bytes.
#0 - PierrickGT
2021-12-13T16:46:27Z
18.2048 USDC - $18.20
Jujic
Here you could use unchecked{++index} to save gas since it is more efficient then index++.
#0 - PierrickGT
2021-12-13T16:45:14Z
🌟 Selected for report: Meta0xNull
26.9701 USDC - $26.97
Jujic
The require statement in the `cancelPromotion()' method can be placed earlier to reduce gas usage on revert
L128: can be placed at the very top of the function
Relocate the said require statement
#0 - PierrickGT
2021-12-13T17:58:37Z