mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
refactor isETH
This commit is contained in:
parent
32754bea19
commit
a069f9569e
|
@ -161,11 +161,9 @@ abstract contract MorphoCompound is Helpers, Events {
|
|||
{
|
||||
uint256 _amt = getUint(_getId, _amount);
|
||||
|
||||
bool _isETH = _tokenAddress == ethAddr;
|
||||
|
||||
MORPHO_COMPOUND.borrow(_poolTokenAddress, _amt);
|
||||
|
||||
if (_isETH) convertWethToEth(_isETH, TokenInterface(wethAddr), _amt);
|
||||
convertWethToEth(_tokenAddress == ethAddr, TokenInterface(wethAddr), _amt);
|
||||
|
||||
setUint(_setId, _amt);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user