✏️ Rename variable isEth to iswEth

This commit is contained in:
Thomas Bouder 2021-09-07 13:34:54 +02:00
parent 605bcc9dcf
commit d738ec4627
No known key found for this signature in database
GPG Key ID: 46DDE658A384B046

View File

@ -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;
}