Platform: Code4rena
Start Date: 01/07/2022
Pot Size: $75,000 USDC
Total HM: 17
Participants: 105
Period: 7 days
Judge: Jack the Pug
Total Solo HM: 5
Id: 143
League: ETH
Rank: 88/105
Findings: 1
Award: $38.24
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: 0xA5DF
Also found by: 0v3rf10w, 0x09GTO, 0x1f8b, 0x29A, 0xDjango, 0xKitsune, 0xNazgul, 0xdanial, 0xf15ers, Aymen0909, Bnke0x0, Ch_301, Cheeezzyyyy, Chom, ElKu, Funen, Hawkeye, IllIllI, JC, JohnSmith, Kaiziron, Lambda, Limbooo, Meera, Metatron, MiloTruck, Noah3o6, Picodes, Randyyy, RedOneN, ReyAdmirado, Rohan16, Saintcode_, Sm4rty, TomJ, Tomio, Tutturu, UnusualTurtle, Waze, _Adam, __141345__, ajtra, apostle0x01, asutorufos, brgltd, c3phas, cRat1st0s, codexploder, defsec, delfin454000, djxploit, durianSausage, exd0tpy, fatherOfBlocks, hake, horsefacts, ignacio, jayfromthe13th, joestakey, jonatascm, kaden, kebabsec, m_Rassska, mektigboy, mrpathfindr, oyc_109, rajatbeladiya, rbserver, rfa, robee, sach1r0, sashik_eth, simon135
38.2406 USDC - $38.24
uint256 _i; do { for (uint256 _j = _i + 1; _j < _terminals.length; _j++) if (_terminals[_i] == _terminals[_j]) revert DUPLICATE_TERMINALS(); unchecked { ++_i; } } while (_i < _terminals.length);
_groupedSplits.length
directly in the for loopselfbalance()
instead of address(this).balance
++i
instead of i++
for (uint256 i; i < arr.length;) { ... unchecked { ++i; } }
> 0
instead != 0
> value - 1
instead of >= value
. Conversely, use < value + 1
instead of <= value
== 0
checks
function isZero(uint256/address/bool/etc value) returns (bool result) { assembly { bool := iszero(value); } }
if (condition && anotherCondition) { doSomething(); }
Do
if (condition) { if (anotherCondition) { doSomething(); } }