mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Polished comments in UserLogic
This commit is contained in:
parent
a84f26670c
commit
2b459fc578
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user