Platform: Code4rena
Start Date: 05/10/2022
Pot Size: $50,000 USDC
Total HM: 2
Participants: 80
Period: 5 days
Judge: GalloDaSballo
Id: 168
League: ETH
Rank: 70/80
Findings: 1
Award: $32.65
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: IllIllI
Also found by: 0x1f8b, 0xNazgul, 0xSmartContract, Aymen0909, Heuss, Lambda, Pheonix, RaymondFam, ReyAdmirado, Ruhum, Shinchan, Shishigami, __141345__, adriro, ajtra, c3phas, ch0bu, cryptostellar5, d3e4, enckrish, gogo, halden, lucacez, mcwildy, medikko, neko_nyaa, pedr02b2, pfapostol, ret2basic, rvierdiiev, saian, sakman, sakshamguruji
32.6464 USDC - $32.65
The storage variable isOpen
can be changed to a bool
type to use 1 byte and be packed in a single storage slot with one of the addresses that follow next.
Similarly, the blockRange variable can be reduced in size to a uint96 (which will still allow for a max value of 79228162514264337593543950335
) to be packed with one of the storage addresses and fit a single storage slot.
weth
variable to be immutableThe address for the WETH contract can be changed to be immutable (or constant) so it's fixed in the bytecode and isn't loaded from storage state, since it's known at deploy time and shouldn't be subject to change.
#0 - GalloDaSballo
2022-10-26T21:29:35Z
2.1k weh
2k from packing isOpen <- Really nice find
Another 2k from packing oracle
Really high impact short report
6.1k