AxelarGateway.sol:207: for (uint256 i = 0; i < symbols.length; i++) {
deposit-service/AxelarDepositService.sol:114: for (uint256 i; i < refundTokens.length; i++) {
deposit-service/AxelarDepositService.sol:168: for (uint256 i; i < refundTokens.length; i++) {
deposit-service/AxelarDepositService.sol:204: for (uint256 i; i < refundTokens.length; i++) {
gas-service/AxelarGasService.sol:123: for (uint256 i; i < tokens.length; i++) {
cache array.lenght to a memory variable
AxelarGateway.sol:207: for (uint256 i = 0; i < symbols.length; i++) {
deposit-service/AxelarDepositService.sol:114: for (uint256 i; i < refundTokens.length; i++) {
deposit-service/AxelarDepositService.sol:168: for (uint256 i; i < refundTokens.length; i++) {
deposit-service/AxelarDepositService.sol:204: for (uint256 i; i < refundTokens.length; i++) {
gas-service/AxelarGasService.sol:123: for (uint256 i; i < tokens.length; i++) {
make i unchecked when it wont overflow
you are saving gas on solidity not checking on an overflow
AxelarGateway.sol:207: for (uint256 i = 0; i < symbols.length; i++) {
deposit-service/AxelarDepositService.sol:114: for (uint256 i; i < refundTokens.length; i++) {
deposit-service/AxelarDepositService.sol:168: for (uint256 i; i < refundTokens.length; i++) {
deposit-service/AxelarDepositService.sol:204: for (uint256 i; i < refundTokens.length; i++) {
gas-service/AxelarGasService.sol:123: for (uint256 i; i < tokens.length; i++) {
get the keccak hash ofline and put that value to constant to save gas
https://github.com/code-423n4/2022-07-axelar/blob/3373c48a71c07cfce856b53afc02ef4fc2357f8c/contracts/AxelarGateway.sol#L30-L44
when getting the keccak hash of value you should make the variables immutable to save gas
https://github.com/code-423n4/2022-07-axelar/blob/3373c48a71c07cfce856b53afc02ef4fc2357f8c/contracts/AxelarGateway.sol#L30-L44
onlyowner functions can be made payable because payable there is no check if msg.value ==0
https://github.com/code-423n4/2022-07-axelar/blob/a1205d2ba78e0db583d136f8563e8097860a110f/xc20/contracts/XC20Wrapper.sol#L44-L46 https://github.com/code-423n4/2022-07-axelar/blob/a1205d2ba78e0db583d136f8563e8097860a110f/xc20/contracts/XC20Wrapper.sol#L44-L73
make i++ into ++i to save 3 gas on a copy
cache array.lenght to a memory variable
make i unchecked when it wont overflow
you are saving gas on solidity not checking on an overflow