mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
Update contracts/mainnet/connectors/morpho-aave-v3/main.sol
I think we can reduce a line like this so that gas fee will be more reduced. Co-authored-by: Shriya Tyagi <47134275+shriyatyagii@users.noreply.github.com>
This commit is contained in:
parent
810de5d9d3
commit
541f22c214
|
@ -307,7 +307,8 @@ abstract contract MorphoAaveV3 is Helpers, Events {
|
|||
{
|
||||
uint256 _amt = getUint(_getId, _amount);
|
||||
|
||||
MORPHO_AAVE_V3.borrow(_tokenAddress, _amt, _onBehalf, _receiver, max_iteration);
|
||||
address _token = _tokenAddress == ethAddr ? wethAddr : _tokenAddress;
|
||||
MORPHO_AAVE_V3.borrow(_token, _amt, _onBehalf, _receiver, max_iteration);
|
||||
|
||||
convertWethToEth(_tokenAddress == ethAddr, TokenInterface(wethAddr), _amt);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user