mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
Update contracts/mainnet/connectors/euler/main.sol
Co-authored-by: 0xPradyuman <63545809+pradyuman-verma@users.noreply.github.com>
This commit is contained in:
parent
78705e47c2
commit
f5fa8a429d
|
@ -514,8 +514,7 @@ abstract contract Euler is Helpers {
|
||||||
require(_length > 0, "0-markets-not-allowed");
|
require(_length > 0, "0-markets-not-allowed");
|
||||||
|
|
||||||
for (uint256 i = 0; i < _length; i++) {
|
for (uint256 i = 0; i < _length; i++) {
|
||||||
bool isEth = tokens[i] == ethAddr;
|
address _token = tokens[i] == ethAddr ? wethAddr : tokens[i];
|
||||||
address _token = isEth ? wethAddr : tokens[i];
|
|
||||||
|
|
||||||
IEulerEToken eToken = IEulerEToken(
|
IEulerEToken eToken = IEulerEToken(
|
||||||
markets.underlyingToEToken(_token)
|
markets.underlyingToEToken(_token)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user