Platform: Code4rena
Start Date: 27/10/2022
Pot Size: $33,500 USDC
Total HM: 8
Participants: 96
Period: 3 days
Judge: kirk-baird
Total Solo HM: 1
Id: 176
League: ETH
Rank: 83/96
Findings: 1
Award: $11.52
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: c3phas
Also found by: 0x1f8b, 0xNazgul, 0xRoxas, 0xSmartContract, 0xbepresent, Amithuddar, Awesome, B2, Bnke0x0, Dravee, KoKo, Mathieu, Picodes, RaymondFam, RedOneN, ReyAdmirado, RockingMiles, Ruhum, SadBase, SooYa, Waze, __141345__, adriro, ajtra, ballx, carlitox477, ch0bu, cylzxje, djxploit, durianSausage, emrekocak, erictee, gogo, halden, horsefacts, imare, indijanc, karanctf, leosathya, lukris02, neko_nyaa, oyc_109, peiw, sakman, shark, skyle, tnevler
11.5153 USDC - $11.52
Saves 6 gas per instance if using assembly to check for address(0)
e.g.
assembly { Â if iszero(_addr) { Â mstore(0x00, "zero address") Â revert(0x00, 0x20) Â } }
Instances include:
contracts/WardenPledge.sol:310
contracts/WardenPledge.sol:460
contracts/WardenPledge.sol:492
contracts/WardenPledge.sol:527
contracts/WardenPledge.sol:571
contracts/WardenPledge.sol:586
contracts/WardenPledge.sol:600
Instances include:
contracts/WardenPledge.sol:24
instead of using this:
uint256 public constant WEEK = 7 * 86400;
use this:
uint256 public constant WEEK = 604800; // 7 * 86400
Error instances: NotAllowedToken() NotPledgeCreator() ExpiredPledge() PledgeClosed() InvalidPledgeID()
#0 - c4-judge
2022-11-12T00:20:31Z
kirk-baird marked the issue as grade-b