Update contracts/mainnet/connectors/morpho-compound/main.sol

Co-authored-by: Romain Milon <rmilon@gmail.com>
This commit is contained in:
Shriya Tyagi 2022-10-15 05:25:54 +04:00 committed by GitHub
parent ce8a9e3c21
commit fa00586039
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,7 +151,7 @@ abstract contract MorphoCompound is Helpers, Events {
: _tokenContract.balanceOf(address(this)); : _tokenContract.balanceOf(address(this));
} }
if (_isETH) convertEthToWeth(_isETH, _tokenContract, _amt); convertEthToWeth(_isETH, _tokenContract, _amt);
approve(_tokenContract, address(morphoCompound), _amt); approve(_tokenContract, address(morphoCompound), _amt);
morphoCompound.supply(_poolTokenAddress, _onBehalf, _amt); morphoCompound.supply(_poolTokenAddress, _onBehalf, _amt);