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:07:28 +04:00 committed by GitHub
parent ce50ce0024
commit 3df9257ea0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -537,8 +537,7 @@ abstract contract Euler is Helpers {
payable
returns (string memory _eventName, bytes memory _eventParam)
{
bool isEth = token == ethAddr;
address _token = isEth ? wethAddr : token;
address _token = token == ethAddr ? wethAddr : token;
markets.exitMarket(subAccountId, _token);
_eventName = "LogExitMarket(uint256,address)";