mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
withdarw address -> address(this)
This commit is contained in:
parent
a599b46dee
commit
2b0c84c74d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user