Nibbl contest - zuhaibmohd's results

NFT fractionalization protocol with guaranteed liquidity and price based buyout.

General Information

Platform: Code4rena

Start Date: 21/06/2022

Pot Size: $30,000 USDC

Total HM: 12

Participants: 96

Period: 3 days

Judge: HardlyDifficult

Total Solo HM: 5

Id: 140

League: ETH

Nibbl

Findings Distribution

Researcher Performance

Rank: 61/96

Findings: 2

Award: $45.50

🌟 Selected for report: 0

🚀 Solo Findings: 0

Gas Optimizations

  1. The state variable defined at https://github.com/code-423n4/2022-06-nibbl/blob/8c3dbd6adf350f35c58b31723d42117765644110/contracts/NibblVault.sol#L28 is defined as type "uint32"

The datatypes of the state variables defined before and after the variable are uint256. and the EVM Storage works slot works in way that it will pad the extra zero and then store it in the storage slot.

Recommendation : Change uint32 to uint256

  1. The state variable defined at https://github.com/code-423n4/2022-06-nibbl/blob/8c3dbd6adf350f35c58b31723d42117765644110/contracts/NibblVault.sol#L72 can be placed after https://github.com/code-423n4/2022-06-nibbl/blob/8c3dbd6adf350f35c58b31723d42117765644110/contracts/NibblVault.sol#L66 to prevent the usage of one extra storage slot for "bidder".
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