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-09 17:37:11 +04:00 committed by GitHub
parent 761ec4e3dc
commit 43a088ecb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,7 +179,8 @@ abstract contract Euler is Helpers {
);
if (isEth) {
_amt = _amt == uint256(-1) ? borrowedDToken.balanceOf(address(this)) : _amt;
_amt = _amt == uint256(-1) ? borrowedDToken.balanceOf(address(this)) : _amt;
if (isEth) {
convertEthToWeth(isEth, TokenInterface(_token), _amt);
}