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: 62/71
Findings: 1
Award: $39.44
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 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.4366 DAI - $39.44
(bool sent, bytes memory data) = ... you can change to (bool sent, ) = ... because it is a local variable which does not have to declared at all. It makes gas fee cheaper than you use (bool sent, bytes memory data) = ...
precision is a constant. to reduce gas fee i suggest changing the visibility from public to internal or private.
!= 0 more efficient than > 0. !=0 cheaper cost gas if compare with >0 for unsigned integers in require statements. gas optimizer must be enabled
uint i = 0, i suggest changing to uint i; becasuse default value of uint is 0. ++i is cheaper cost gas than i++ or i += 1 for unsigned integer, as pre-increment.
#0 - illuzen
2022-05-10T15:51:20Z
all duplicates, except #1