Hubble contest - 0v3rf10w's results

Multi-collateral/Cross-Margin Perpetual Futures on Avalanche.

General Information

Platform: Code4rena

Start Date: 17/02/2022

Pot Size: $75,000 USDC

Total HM: 20

Participants: 39

Period: 7 days

Judges: moose-code, JasoonS

Total Solo HM: 13

Id: 89

League: ETH

Hubble

Findings Distribution

Researcher Performance

Rank: 29/39

Findings: 2

Award: $240.99

🌟 Selected for report: 0

🚀 Solo Findings: 0

Awards

142.3223 USDC - $142.32

Labels

bug
QA (Quality Assurance)
sponsor disputed

External Links

L-01:

missing zero checks Registry.sol L#19-23

L-02:

TODOs ClearingHouse.sol L#172 MarginAccount.sol L#277 AMM.sol L#142,555,

Findings Information

Awards

98.6676 USDC - $98.67

Labels

bug
G (Gas Optimization)
sponsor confirmed

External Links

G-01:

use uint256 for best gas saving ClearingHouse.sol L#17,18,19,20 MarginAccount.sol L#47

G-02:

uint256 instead of bool ClearingHouse.sol L#79,250

G-04:

Prefix increments are cheaper than postfix increments. Further more, using unchecked {++x} is even more gas efficient, and the gas saving accumulates every iteration and can make a real change ClearingHouse.sol L#122,130,170,194,251,263,278 MarginAccount.sol L#331,373,521

G-05:

immutable instead of constant MarginAccount.sol L#34,15,

G-06:

use calldata instead of memory

G-07:

use memory instead of storage

G-03:

bytes32 instead of string

#0 - atvanguard

2022-02-26T08:05:34Z

G-05 is a good suggestioin

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