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
Rank: 83/101
Findings: 1
Award: $39.65
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: gzeon
Also found by: 0xPanda, 0xSmartContract, B2, Deivitto, Diana, JohnSmith, PaludoX0, Rahoz, RaymondFam, ReyAdmirado, Rolezn, Schlagatron, Secureverse, Tomio, __141345__, adriro, ajtra, aphak5010, c3phas, chaduke, codeislight, cryptonue, datapunk, dharma09, halden, karanctf, keccak123, oyc_109, pavankv, sakshamguruji, saneryee, unforgiven
39.6537 USDC - $39.65
PirexRewards.sol: 163, 351, 396
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);
Information about msg.sender can be getted from the transaction, so adding additional field in the event wastes gas
PirexGmx.sol: 281, 409, 453, 533, 665
AutoPxGmx.sol: 302, 334, 359, 402
PirexERC4626.sol: 75, 94, 117, 143
PirexERC4626.sol: 130
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