From d738ec4627cab2e704f8bd93192c0a9bb09e949e Mon Sep 17 00:00:00 2001 From: Thomas Bouder Date: Tue, 7 Sep 2021 13:34:54 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Rename=20variable=20isEth?= =?UTF-8?q?=20to=20iswEth?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contracts/mainnet/connectors/yearn_v2/main.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/mainnet/connectors/yearn_v2/main.sol b/contracts/mainnet/connectors/yearn_v2/main.sol index 74d3d567..c8a238f3 100644 --- a/contracts/mainnet/connectors/yearn_v2/main.sol +++ b/contracts/mainnet/connectors/yearn_v2/main.sol @@ -30,12 +30,12 @@ abstract contract YearnResolver is Events, Basic { YearnV2Interface yearn = YearnV2Interface(vault); address want = yearn.token(); - bool isEth = want == wethAddr; + bool iswETH = want == wethAddr; TokenInterface tokenContract = TokenInterface(want); - if (isEth) { + if (iswETH) { _amt = _amt == uint(-1) ? address(this).balance : _amt; - convertEthToWeth(isEth, tokenContract, _amt); + convertEthToWeth(iswETH, tokenContract, _amt); } else { _amt = _amt == uint(-1) ? tokenContract.balanceOf(address(this)) : _amt; }