mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
refactor isETH condition
This commit is contained in:
parent
a069f9569e
commit
c27367aea3
|
@ -304,7 +304,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(MORPHO_COMPOUND), _amt);
|
approve(_tokenContract, address(MORPHO_COMPOUND), _amt);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user