From 9bc29252c30537e9e84ef3d33d19a0a3e78f11d4 Mon Sep 17 00:00:00 2001 From: Richa-iitr Date: Sun, 5 Jun 2022 09:57:17 +0530 Subject: [PATCH] linted code --- contracts/avalanche/connectors/swap/events.sol | 2 +- contracts/mainnet/connectors/swap/events.sol | 2 +- contracts/mainnet/connectors/swap/helpers.sol | 2 +- contracts/polygon/connectors/swap/events.sol | 2 +- contracts/polygon/connectors/swap/helpers.sol | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/contracts/avalanche/connectors/swap/events.sol b/contracts/avalanche/connectors/swap/events.sol index 0440abf0..463d3730 100644 --- a/contracts/avalanche/connectors/swap/events.sol +++ b/contracts/avalanche/connectors/swap/events.sol @@ -3,7 +3,7 @@ pragma solidity ^0.7.0; contract Events { event LogSwap( - string _connector, + string _connector, address indexed buyToken, address indexed sellToken, uint256 buyAmt, diff --git a/contracts/mainnet/connectors/swap/events.sol b/contracts/mainnet/connectors/swap/events.sol index 0440abf0..463d3730 100644 --- a/contracts/mainnet/connectors/swap/events.sol +++ b/contracts/mainnet/connectors/swap/events.sol @@ -3,7 +3,7 @@ pragma solidity ^0.7.0; contract Events { event LogSwap( - string _connector, + string _connector, address indexed buyToken, address indexed sellToken, uint256 buyAmt, diff --git a/contracts/mainnet/connectors/swap/helpers.sol b/contracts/mainnet/connectors/swap/helpers.sol index c111767b..f25be85a 100644 --- a/contracts/mainnet/connectors/swap/helpers.sol +++ b/contracts/mainnet/connectors/swap/helpers.sol @@ -45,7 +45,7 @@ contract SwapHelpers is Helper { "callDatas-length-invalid" ); - // require _connectors[i] == "1INCH-A" || "ZEROX-A" || "PARASWAP-A" || similar connectors + // require _connectors[i] == "1INCH-A" || "ZEROX-A" || "PARASWAP-A" || similar connectors for (uint256 i = 0; i < _connectors.length; i++) { bytes4 swapData = bytes4( diff --git a/contracts/polygon/connectors/swap/events.sol b/contracts/polygon/connectors/swap/events.sol index 0440abf0..463d3730 100644 --- a/contracts/polygon/connectors/swap/events.sol +++ b/contracts/polygon/connectors/swap/events.sol @@ -3,7 +3,7 @@ pragma solidity ^0.7.0; contract Events { event LogSwap( - string _connector, + string _connector, address indexed buyToken, address indexed sellToken, uint256 buyAmt, diff --git a/contracts/polygon/connectors/swap/helpers.sol b/contracts/polygon/connectors/swap/helpers.sol index c2b3c67f..40c27b6b 100644 --- a/contracts/polygon/connectors/swap/helpers.sol +++ b/contracts/polygon/connectors/swap/helpers.sol @@ -45,7 +45,7 @@ contract SwapHelpers is Helper { "callDatas-length-invalid" ); - // require _connectors[i] == "1INCH-A" || "ZEROX-A" || "PARASWAP-A" || similar connectors + // require _connectors[i] == "1INCH-A" || "ZEROX-A" || "PARASWAP-A" || similar connectors for (uint256 i = 0; i < _connectors.length; i++) { bytes4 swapData = bytes4(