Polished comments in UserLogic

This commit is contained in:
emilio 2020-07-09 16:55:09 +02:00
parent a84f26670c
commit 2b459fc578

View File

@ -44,6 +44,12 @@ library UserLogic {
_amount > IERC20(_reserve.aTokenAddress).balanceOf(_userAddress); _amount > IERC20(_reserve.aTokenAddress).balanceOf(_userAddress);
} }
/**
* @dev fetches the user current stable and variable debt balances
* @param _user the user
* @param _reserve the reserve object
* @return the stable and variable debt balance
**/
function getUserCurrentDebt(address _user,ReserveLogic.ReserveData storage _reserve) function getUserCurrentDebt(address _user,ReserveLogic.ReserveData storage _reserve)
internal internal
view view
@ -55,6 +61,12 @@ library UserLogic {
); );
} }
/**
* @dev fetches the user principal stable and variable debt balances
* @param _user the user
* @param _reserve the reserve object
* @return the stable and variable debt balance
**/
function getUserPrincipalDebt(address _user,ReserveLogic.ReserveData storage _reserve) function getUserPrincipalDebt(address _user,ReserveLogic.ReserveData storage _reserve)
internal internal
view view