Redacted Cartel contest - Tomio's results

Boosted GMX assets from your favorite liquid token wrapper, Pirex - brought to you by Redacted Cartel.

General Information

Platform: Code4rena

Start Date: 21/11/2022

Pot Size: $90,500 USDC

Total HM: 18

Participants: 101

Period: 7 days

Judge: Picodes

Total Solo HM: 4

Id: 183

League: ETH

Redacted Cartel

Findings Distribution

Researcher Performance

Rank: 86/101

Findings: 1

Award: $39.65

Gas:
grade-b

🌟 Selected for report: 0

🚀 Solo Findings: 0

Awards

39.6537 USDC - $39.65

Labels

bug
G (Gas Optimization)
grade-b
G-31

External Links

Title: Expression for constant values such as a call to keccak256(), should use immutable rather than constant

Proof of Concept: PxERC20.sol#L9-L10

Recommended Mitigation Steps: Change from constant to immutable reference: here


Title: >= is cheaper than >

Impact: Strict inequalities (>) are more expensive than non-strict ones (>=). This is due to some supplementary checks (ISZERO, 3 gas)

Proof of Concept: PirexGmx.sol#L252

Recommended Mitigation Steps: Consider using >= instead of > to avoid some opcodes


#0 - c4-judge

2022-12-05T11:03:24Z

Picodes marked the issue as grade-c

#1 - c4-judge

2022-12-05T11:03:53Z

Picodes marked the issue as grade-b

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