Blur Exchange contest - adriro's results

An NFT exchange for the Blur marketplace.

General Information

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

Blur Exchange

Findings Distribution

Researcher Performance

Rank: 70/80

Findings: 1

Award: $32.65

🌟 Selected for report: 0

🚀 Solo Findings: 0

Awards

32.6464 USDC - $32.65

Labels

bug
G (Gas Optimization)

External Links

Storage variables packing

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.

Change the weth variable to be immutable

The 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

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter