minor updates

This commit is contained in:
Shriya Tyagi 2022-04-28 21:34:54 +04:00
parent 390bacaa01
commit ba6f368b72
6 changed files with 8 additions and 9 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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;

View File

@ -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)`)