Platform: Code4rena
Start Date: 04/01/2022
Pot Size: $75,000 USDC
Total HM: 17
Participants: 33
Period: 7 days
Judge: 0xean
Total Solo HM: 14
Id: 74
League: ETH
Rank: 22/33
Findings: 1
Award: $97.53
🌟 Selected for report: 1
🚀 Solo Findings: 0
Jujic
!= 0 is a cheaper operation compared to > 0, when dealing with uint.
if (assetIn > 0) Callback.pay(asset, assetIn, data);
Remix
#0 - amateur-dev
2022-01-14T11:10:39Z
Similar issue reported over here #172 ; hence closing this
🌟 Selected for report: Jujic
93.0809 USDC - $93.08
Jujic
Here you could use unchecked{++i} to save gas since it is more efficient then i++.
for (uint256 i; i < ids.length; i++) {
Remix
#0 - Mathepreneur
2022-01-17T20:22:24Z