From d88efa962b253385cd779c206c65344295746d16 Mon Sep 17 00:00:00 2001 From: Richa-iitr Date: Thu, 1 Sep 2022 20:18:40 +0530 Subject: [PATCH] minor changes --- .../mainnet/connectors/compound-iii/main.sol | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/contracts/mainnet/connectors/compound-iii/main.sol b/contracts/mainnet/connectors/compound-iii/main.sol index 03d7bb66..3e55c6ff 100644 --- a/contracts/mainnet/connectors/compound-iii/main.sol +++ b/contracts/mainnet/connectors/compound-iii/main.sol @@ -477,7 +477,7 @@ abstract contract CompoundV3Resolver is Events, Helpers { require(market != address(0), "invalid market address"); address token_ = getBaseToken(market); - bool isEth = token == wethAddr; + bool isEth = token_ == wethAddr; TokenInterface tokenContract = TokenInterface(token_); amt_ = amt_ == uint256(-1) @@ -500,7 +500,7 @@ abstract contract CompoundV3Resolver is Events, Helpers { setUint(setId, amt_); eventName_ = "LogPayback(address,address,uint256,uint256,uint256)"; - eventParam_ = abi.encode(market, token, amt_, getId, setId); + eventParam_ = abi.encode(market, token_, amt_, getId, setId); } /** @@ -527,7 +527,7 @@ abstract contract CompoundV3Resolver is Events, Helpers { require(market != address(0), "invalid market address"); address token_ = getBaseToken(market); - bool isEth = token == wethAddr; + bool isEth = token_ == wethAddr; TokenInterface tokenContract = TokenInterface(token_); amt_ = amt_ == uint256(-1) @@ -547,7 +547,7 @@ abstract contract CompoundV3Resolver is Events, Helpers { setUint(setId, amt_); eventName_ = "LogPaybackOnBehalf(address,address,address,uint256,uint256,uint256)"; - eventParam_ = abi.encode(market, token, to, amt_, getId, setId); + eventParam_ = abi.encode(market, token_, to, amt_, getId, setId); } /** @@ -576,7 +576,7 @@ abstract contract CompoundV3Resolver is Events, Helpers { require(market != address(0), "invalid market address"); address token_ = getBaseToken(market); - bool isEth = token == wethAddr; + bool isEth = token_ == wethAddr; TokenInterface tokenContract = TokenInterface(token_); amt_ = setAmt(market, token_, from, amt_, isEth, true); @@ -594,7 +594,7 @@ abstract contract CompoundV3Resolver is Events, Helpers { setUint(setId, amt_); eventName_ = "LogPaybackFromUsingManager(address,address,address,address,uint256,uint256,uint256)"; - eventParam_ = abi.encode(market, token, from, to, amt_, getId, setId); + eventParam_ = abi.encode(market, token_, from, to, amt_, getId, setId); } /** @@ -644,7 +644,7 @@ abstract contract CompoundV3Resolver is Events, Helpers { eventName_ = "LogBuyCollateral(address,address,uint256,uint256,uint256,uint256,uint256)"; eventParam_ = abi.encode( market, - asset, + token_, amt_, minCollateralAmt, collAmt, @@ -842,7 +842,7 @@ abstract contract CompoundV3Resolver is Events, Helpers { setUint(setId, amt_); eventName_ = "LogApproveMarket(address,address,uint256,uint256,uint256)"; - eventParam_ = abi.encode(market, token, amt_, getId, setId); + eventParam_ = abi.encode(market, token_, amt_, getId, setId); } }