Platform: Code4rena
Start Date: 07/10/2022
Pot Size: $50,000 USDC
Total HM: 4
Participants: 62
Period: 5 days
Judge: 0xean
Total Solo HM: 2
Id: 169
League: ETH
Rank: 45/62
Findings: 1
Award: $20.79
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: IllIllI
Also found by: 0x1f8b, 0xNazgul, 0xSmartContract, 0xdeadbeef, B2, Bnke0x0, Deivitto, ElKu, Jujic, KoKo, Pheonix, RaymondFam, RedOneN, RockingMiles, Rolezn, Saintcode_, Shinchan, TomJ, Tomio, __141345__, ajtra, aysha, c3phas, carlitox477, catchup, delfin454000, emrekocak, erictee, fatherOfBlocks, gerdusx, gianganhnguyen, gogo, martin, mcwildy, medikko, oyc_109, pedr02b2, rbserver, ret2basic, rotcivegaf, saian, sakman, zishansami
20.7905 USDC - $20.79
emit NewPendingOwnership(oldPendingGovernor, _newGovernor);
emit NewOwnership(oldGovernor, oldPendingGovernor);
. In this particular case, move this line to the start of the function, and replace every instance of pendingGovernor
for oldPendingGovernor
, except from this line. Also replace this line for emit NewPendingOwnership(oldPendingGovernor, address(0));
emit PartialPauseChanged(_toPause);
; and this line can be replaced for if (_toPause) {
emit PauseChanged(_toPause);
; and this line can be replaced for if (_toPause) {
emit NewPauseGuardian(oldPauseGuardian, newPauseGuardian);
l1GRT
escrow
See this issue which describes the fact that there is a larger deployment gas cost, but with enough runtime calls, the change ends up being cheaper by 3 gas.
Instances found:
Not inlining costs 20 to 40 gas because of two extra JUMP instructions and additional stack operations needed for function calls.
modifier notPartialPaused()
modifier _notPaused()
modifier onlyController()
_initialize
functionkeccak256("Curation")
by putting its value in an immutable variablekeccak256("EpochManager")
by putting its value in an immutable variablekeccak256("RewardsManager")
by putting its value in an immutable variablekeccak256("Staking")
by putting its value in an immutable variablekeccak256("GraphToken")
by putting its value in an immutable variablekeccak256("GraphTokenGateway")
by putting its value in an immutable variable