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: 19/67
Findings: 1
Award: $342.00
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: berndartmueller
Also found by: 0x1f8b, 0x4non, 0xNazgul, 0xSmartContract, Aymen0909, BClabs, Diana, Jeiwan, Lambda, LeoS, RaoulSchaffranek, RaymondFam, RedOneN, ReyAdmirado, Rolezn, SaharAP, Trust, V_B, __141345__, a12jmx, bharg4v, brgltd, carlitox477, ch0bu, chaduke, cloudjunky, cryptostellar5, cryptphi, csanuragjain, d3e4, delfin454000, erictee, fatherOfBlocks, hansfriese, ignacio, joestakey, karanctf, ladboy233, lukris02, mcwildy, minhtrng, peanuts, ret2basic, seyni, slowmoses, svskaushik, tnevler, yixxas
341.9967 USDC - $342.00
emit TierDelegateVotesChanged(_from, _oldValue, _newValue, _tierId, msg.sender);
It should be modified like below.
emit TierDelegateVotesChanged(_from, _tierId, _oldValue, _newValue, msg.sender);
if ( _data.metadata.length > 36 && bytes4(_data.metadata[32:36]) == type(IJB721Delegate).interfaceId ) {
4 bytes of interfaceId is saved from 32 to 36(exclusive) and it's enough to check if _data.metadata.length >= 36
instead of _data.metadata.length > 36
.
// Make the original un-initializable. require(address(this) != codeOrigin); // Stop re-initialization. require(address(store) == address(0));
#0 - c4-judge
2022-11-04T14:38:13Z
Picodes marked the issue as grade-a
#1 - Picodes
2022-11-04T14:38:18Z
1 is a nice catch, so grading A