Fixes comments

This commit is contained in:
emilio 2020-08-06 19:49:41 +02:00
parent 5c4df95b87
commit 1015a7ca13
2 changed files with 9 additions and 4 deletions

View File

@ -128,7 +128,6 @@ library GenericLogic {
uint256 avgLtv; uint256 avgLtv;
uint256 avgLiquidationThreshold; uint256 avgLiquidationThreshold;
uint256 reservesLength; uint256 reservesLength;
UserConfiguration.Map userConfig;
bool healthFactorBelowThreshold; bool healthFactorBelowThreshold;
address currentReserveAddress; address currentReserveAddress;
bool usageAsCollateralEnabled; bool usageAsCollateralEnabled;
@ -141,7 +140,10 @@ library GenericLogic {
* the average Loan To Value, the average Liquidation Ratio, and the Health factor. * the average Loan To Value, the average Liquidation Ratio, and the Health factor.
* @param _user the address of the user * @param _user the address of the user
* @param _reservesData data of all the reserves * @param _reservesData data of all the reserves
* @return the total liquidity, total collateral, total borrow balances of the user in ETH. * @param _userConfig the configuration of the user
* @param _reserves the list of the available reserves
* @param _oracle the price oracle address
* @return the total collateral and total borrow balance of the user in ETH, the avg ltv and liquidation threshold and the HF
* also the average Ltv, liquidation threshold, and the health factor * also the average Ltv, liquidation threshold, and the health factor
**/ **/
function calculateUserAccountData( function calculateUserAccountData(

View File

@ -301,12 +301,15 @@ library ValidationLogic {
* @param _reserve the state of the reserve that the user is enabling or disabling as collateral * @param _reserve the state of the reserve that the user is enabling or disabling as collateral
* @param _reserveAddress the address of the reserve * @param _reserveAddress the address of the reserve
* @param _reservesData the data of all the reserves * @param _reservesData the data of all the reserves
* @param _userConfig the state of the user for the specific reserve
* @param _reserves the addresses of all the active reserves
* @param _oracle the price oracle
*/ */
function validateSetUseReserveAsCollateral( function validateSetUseReserveAsCollateral(
ReserveLogic.ReserveData storage _reserve, ReserveLogic.ReserveData storage _reserve,
address _reserveAddress, address _reserveAddress,
mapping(address => ReserveLogic.ReserveData) storage _reservesData, mapping(address => ReserveLogic.ReserveData) storage _reservesData,
UserConfiguration.Map storage userConfig, UserConfiguration.Map storage _userConfig,
address[] calldata _reserves, address[] calldata _reserves,
address _oracle address _oracle
) external view { ) external view {
@ -320,7 +323,7 @@ library ValidationLogic {
msg.sender, msg.sender,
underlyingBalance, underlyingBalance,
_reservesData, _reservesData,
userConfig, _userConfig,
_reserves, _reserves,
_oracle _oracle
), ),