Update contracts/mainnet/connectors/euler/main.sol

Co-authored-by: 0xPradyuman <63545809+pradyuman-verma@users.noreply.github.com>
This commit is contained in:
Shriya Tyagi 2022-07-07 17:03:23 +04:00 committed by GitHub
parent 78705e47c2
commit f5fa8a429d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -514,8 +514,7 @@ abstract contract Euler is Helpers {
require(_length > 0, "0-markets-not-allowed");
for (uint256 i = 0; i < _length; i++) {
bool isEth = tokens[i] == ethAddr;
address _token = isEth ? wethAddr : tokens[i];
address _token = tokens[i] == ethAddr ? wethAddr : tokens[i];
IEulerEToken eToken = IEulerEToken(
markets.underlyingToEToken(_token)