mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
minor updates
This commit is contained in:
parent
390bacaa01
commit
ba6f368b72
|
@ -219,7 +219,7 @@ abstract contract AaveResolver is Events, Helpers {
|
|||
address _token = isEth ? wethAddr : token;
|
||||
|
||||
aave.borrow(_token, _amt, rateMode, referralCode, onBehalfOf);
|
||||
convertEthToWeth(isEth, TokenInterface(_token), _amt);
|
||||
convertWethToEth(isEth, TokenInterface(_token), _amt);
|
||||
|
||||
setUint(setId, _amt);
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ abstract contract AaveResolver is Events, Helpers {
|
|||
}
|
||||
|
||||
/**
|
||||
* @dev Deposit ETH/ERC20_Token without collateral
|
||||
* @dev Deposit avax/ERC20_Token without collateral
|
||||
* @notice Deposit a token to Aave v3 without enabling it as collateral.
|
||||
* @param token The address of the token to deposit.(For avax: 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE)
|
||||
* @param amt The amount of the token to deposit. (For max: `uint256(-1)`)
|
||||
|
@ -219,7 +219,7 @@ abstract contract AaveResolver is Events, Helpers {
|
|||
address _token = isAVAX ? wavaxAddr : token;
|
||||
|
||||
aave.borrow(_token, _amt, rateMode, referralCode, onBehalfOf);
|
||||
convertAvaxToWavax(isAVAX, TokenInterface(_token), _amt);
|
||||
convertWavaxToAvax(isAVAX, TokenInterface(_token), _amt);
|
||||
|
||||
setUint(setId, _amt);
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ abstract contract AaveResolver is Events, Helpers {
|
|||
}
|
||||
|
||||
/**
|
||||
* @dev Deposit ETH/ERC20_Token without collateral
|
||||
* @dev Deposit Ftm/ERC20_Token without collateral
|
||||
* @notice Deposit a token to Aave v3 without enabling it as collateral.
|
||||
* @param token The address of the token to deposit.(For FTM: 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE)
|
||||
* @param amt The amount of the token to deposit. (For max: `uint256(-1)`)
|
||||
|
@ -219,7 +219,7 @@ abstract contract AaveResolver is Events, Helpers {
|
|||
address _token = isFTM ? wftmAddr : token;
|
||||
|
||||
aave.borrow(_token, _amt, rateMode, referralCode, onBehalfOf);
|
||||
convertFtmToWftm(isFTM, TokenInterface(_token), _amt);
|
||||
convertWftmToFtm(isFTM, TokenInterface(_token), _amt);
|
||||
|
||||
setUint(setId, _amt);
|
||||
|
||||
|
|
|
@ -219,7 +219,7 @@ abstract contract AaveResolver is Events, Helpers {
|
|||
address _token = isEth ? wethAddr : token;
|
||||
|
||||
aave.borrow(_token, _amt, rateMode, referralCode, onBehalfOf);
|
||||
convertEthToWeth(isEth, TokenInterface(_token), _amt);
|
||||
convertWethToEth(isEth, TokenInterface(_token), _amt);
|
||||
|
||||
setUint(setId, _amt);
|
||||
|
||||
|
|
|
@ -219,7 +219,7 @@ abstract contract AaveResolver is Events, Helpers {
|
|||
address _token = isEth ? wethAddr : token;
|
||||
|
||||
aave.borrow(_token, _amt, rateMode, referralCode, onBehalfOf);
|
||||
convertEthToWeth(isEth, TokenInterface(_token), _amt);
|
||||
convertWethToEth(isEth, TokenInterface(_token), _amt);
|
||||
|
||||
setUint(setId, _amt);
|
||||
|
||||
|
@ -430,7 +430,6 @@ abstract contract AaveResolver is Events, Helpers {
|
|||
require(rateMode == 1 || rateMode == 2, "Invalid debt type");
|
||||
uint256 _amt = getUint(getId, amount);
|
||||
|
||||
|
||||
bool isEth = token == ethAddr;
|
||||
address _token = isEth ? wethAddr : token;
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ abstract contract AaveResolver is Events, Helpers {
|
|||
}
|
||||
|
||||
/**
|
||||
** @dev Deposit ETH/ERC20_Token without collateral
|
||||
** @dev Deposit Matic/ERC20_Token without collateral
|
||||
* @notice Deposit a token to Aave v3 without enabling it as collateral.
|
||||
* @param token The address of the token to deposit.(For Matic: 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE)
|
||||
* @param amt The amount of the token to deposit. (For max: `uint256(-1)`)
|
||||
|
|
Loading…
Reference in New Issue
Block a user