mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
Update contracts/mainnet/connectors/morpho-compound/main.sol
Co-authored-by: Romain Milon <rmilon@gmail.com>
This commit is contained in:
parent
1d3e65efb9
commit
ed16a59387
|
@ -337,7 +337,7 @@ abstract contract MorphoCompound is Helpers, Events {
|
||||||
_amt = _amtDSA <= _amtDebt ? _amtDSA : _amtDebt;
|
_amt = _amtDSA <= _amtDebt ? _amtDSA : _amtDebt;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_isETH) convertEthToWeth(_isETH, _tokenContract, _amt);
|
convertEthToWeth(_isETH, _tokenContract, _amt);
|
||||||
|
|
||||||
approve(_tokenContract, address(morphoCompound), _amt);
|
approve(_tokenContract, address(morphoCompound), _amt);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user