From 2b0c84c74d8f1ec9fbb002f114a559bc6d1b7c82 Mon Sep 17 00:00:00 2001 From: Shriya Tyagi Date: Sun, 14 Aug 2022 21:12:17 +0800 Subject: [PATCH] withdarw address -> address(this) --- contracts/mainnet/connectors/euler/main.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/mainnet/connectors/euler/main.sol b/contracts/mainnet/connectors/euler/main.sol index 5c99fbf6..296ee60a 100644 --- a/contracts/mainnet/connectors/euler/main.sol +++ b/contracts/mainnet/connectors/euler/main.sol @@ -98,11 +98,11 @@ abstract contract Euler is Helpers { address _subAccount = getSubAccount(address(this), subAccount); _amt = _amt == uint256(-1) ? eToken.balanceOfUnderlying(_subAccount) : _amt; - uint256 initialBal = tokenContract.balanceOf(_subAccount); + uint256 initialBal = tokenContract.balanceOf(address(this)); eToken.withdraw(subAccount, _amt); - uint256 finalBal = tokenContract.balanceOf(_subAccount); + uint256 finalBal = tokenContract.balanceOf(address(this)); _amt = finalBal - initialBal; convertWethToEth(isEth, tokenContract, _amt);