Redacted Cartel contest - halden'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: 83/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-30

External Links

[G-01] Using unchecked blocks to save gas - Increments in for loop can be unchecked

PirexRewards.sol: 163, 351, 396

[G-02] Superfluous event fields

block.timestamp is added to event information by default so adding them manually wastes gas

PirexRewards.sol: 323-328

emit GlobalAccrue( producerToken, block.timestamp, totalSupply, rewards );

297 emit UserAccrue(producerToken, user, block.timestamp, balance, rewards);

[G-03] Superfluous event fields for msg.sender

Information about msg.sender can be getted from the transaction, so adding additional field in the event wastes gas

PirexRewards.sol: 121, 143

PirexGmx.sol: 281, 409, 453, 533, 665

AutoPxGlp.sol: 285, 319

AutoPxGmx.sol: 302, 334, 359, 402

PirexERC4626.sol: 75, 94, 117, 143

PirexERC4626.sol: 130

[G-04] Add unchecked {} where the operands can not underflow/overflow because of a previous check

Penalty will never be smaller than assets. AutoPxGlp.sol: 168

AutoPxGmx.sol: 190

#0 - Picodes

2022-12-05T11:05:59Z

2 and 3 are interesting

#1 - Picodes

2022-12-05T11:06:03Z

2 and 3 are interesting

#2 - c4-judge

2022-12-05T11:06:03Z

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