Platform: Code4rena
Start Date: 18/10/2022
Pot Size: $50,000 USDC
Total HM: 13
Participants: 67
Period: 5 days
Judge: Picodes
Total Solo HM: 7
Id: 172
League: ETH
Rank: 63/67
Findings: 1
Award: $25.96
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: Jeiwan
Also found by: 0x1f8b, 0x4non, 0x5rings, 0xSmartContract, Awesome, Aymen0909, Bnke0x0, CodingNameKiki, Diana, DimSon, JC, JrNet, LeoS, RaymondFam, ReyAdmirado, Saintcode_, Shinchan, __141345__, berndartmueller, bharg4v, brgltd, carlitox477, ch0bu, chaduke, cryptostellar5, emrekocak, gogo, lukris02, martin, mcwildy, sakman, trustindistrust, zishansami
25.9629 USDC - $25.96
uint256 i;
instead of uint256 i = 0;
contracts/libraries/JBIpfsDecoder.sol: L49 L68 L76 L84
contracts/JBTiered721Delegate.sol: L143-L152
contracts/libraries/JBIpfsDecoder.sol: L68 L76 L84
contracts/JBTiered721DelegateStore.sol: L1108
contracts/JBTiered721DelegateStore.sol: L827
contracts/abstract/JB721Delegate.sol: L206 L311 L323
contracts/libraries/JBIpfsDecoder.sol: L22 L44 L74 L82
contracts/libraries/JBBitmap.sol: L29 L59
contracts/JBTiered721DelegateDeployer.sol: L71
contracts/JBTiered721DelegateStore.sol: L628 L1091 L1227
contracts/JBTiered721Delegate.sol: L205 L208 L210 L211 L264 L290 L480 L598 L652 L789
contracts/JB721TieredGovernance.sol: L147 L313
contracts/JB721GlobalGovernance.sol: L55
contracts/JBTiered721DelegateProjectDeployer.sol: L72 L73 L109 L110 L152 L191 L218
x < y + 1
in stead of x <= y
contracts/JB721TieredGovernance.sol: L133
contracts/JBTiered721DelegateStore.sol: L903
uint
, use require(x != 0)
instead of require(x > 0)
contracts/libraries/JBIpfsDecoder.sol: L57
contracts/JBTiered721DelegateStore.sol: L1254
constant
and immutable
for constantscontracts/JBTiered721Delegate.sol: L48
payable
if there is no risk of sending value through themcontracts/JBTiered721Delegate.sol: L370 L402 L418
i++
in an unchecked
blocks in for-loops#0 - c4-judge
2022-11-05T12:26:54Z
Picodes marked the issue as grade-b