mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
update borrow functions
This commit is contained in:
parent
541f22c214
commit
a5840aa3fe
|
@ -346,8 +346,8 @@ abstract contract MorphoAaveV3 is Helpers, Events {
|
|||
returns (string memory _eventName, bytes memory _eventParam)
|
||||
{
|
||||
uint256 _amt = getUint(_getId, _amount);
|
||||
|
||||
MORPHO_AAVE_V3.borrow(_tokenAddress, _amt, address(this), _receiver, _maxIteration);
|
||||
address _token = _tokenAddress == ethAddr ? wethAddr : _tokenAddress;
|
||||
MORPHO_AAVE_V3.borrow(_token, _amt, address(this), _receiver, _maxIteration);
|
||||
|
||||
convertWethToEth(_tokenAddress == ethAddr, TokenInterface(wethAddr), _amt);
|
||||
|
||||
|
@ -386,8 +386,8 @@ abstract contract MorphoAaveV3 is Helpers, Events {
|
|||
returns (string memory _eventName, bytes memory _eventParam)
|
||||
{
|
||||
uint256 _amt = getUint(_getId, _amount);
|
||||
|
||||
MORPHO_AAVE_V3.borrow(_tokenAddress, _amt, _onBehalf, _receiver, _maxIteration);
|
||||
address _token = _tokenAddress == ethAddr ? wethAddr : _tokenAddress;
|
||||
MORPHO_AAVE_V3.borrow(_token, _amt, _onBehalf, _receiver, _maxIteration);
|
||||
|
||||
convertWethToEth(_tokenAddress == ethAddr, TokenInterface(wethAddr), _amt);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user