Axelar Network v2 contest - a12jmx's results

Decentralized interoperability network.

General Information

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

Axelar Network

Findings Distribution

Researcher Performance

Rank: 74/75

Findings: 1

Award: $31.22

🌟 Selected for report: 0

🚀 Solo Findings: 0

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

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter