Platform: Code4rena
Start Date: 29/07/2022
Pot Size: $50,000 USDC
Total HM: 6
Participants: 75
Period: 5 days
Judge: GalloDaSballo
Total Solo HM: 3
Id: 149
League: ETH
Rank: 74/75
Findings: 1
Award: $31.22
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: IllIllI
Also found by: 0x1f8b, 0xNazgul, 0xsam, 8olidity, Aymen0909, Bnke0x0, Chom, CodingNameKiki, Deivitto, Dravee, ElKu, Fitraldys, JC, Lambda, MiloTruck, Noah3o6, NoamYakov, RedOneN, Respx, ReyAdmirado, Rohan16, Rolezn, Ruhum, Sm4rty, TomJ, Tomio, Waze, __141345__, a12jmx, ajtra, ak1, apostle0x01, asutorufos, benbaessler, bharg4v, bulej93, c3phas, defsec, djxploit, durianSausage, erictee, fatherOfBlocks, gerdusx, gogo, kyteg, lucacez, medikko, mics, owenthurm, oyc_109, rbserver, robee, sashik_eth, simon135, tofunmi
31.2165 USDC - $31.22
Contract: AxelarGateway.sol
Line 207
unnecessary to initialize i in for loops i++ costs more gas than ++i in for loops result: for (uint256 i; i < symbols.length; ++i)
2.
Contract: AxelarGasService.sol
Line 123
i++ costs more gas than ++i in for loops result: for (uint256 i; i < tokens.length; ++i)
3.
Contract: AxelarDepositService.sol
Line 168 Line 204
i++ costs more gas than ++i in for loops Result: for (uint256 i; i < refundTokens.length; ++i) for (uint256 i; i < refundTokens.length; ++i)
4.
Contract: AxelarAuthWeighted.sol
Line 69 Line 98
unnecessary to initialize i in for loops Result: for (uint256 i; i < weightsLength; ++i) for (uint256 i; i < signatures.length; ++i)
This will also provide consistency across the rest of the code given that all other for loops are stated as such
#0 - GalloDaSballo
2022-08-20T18:54:52Z
50 gas at most