mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
polished variable rate debt token comments
This commit is contained in:
parent
e5bf908d1c
commit
a84f26670c
|
@ -58,6 +58,10 @@ contract VariableDebtToken is DebtTokenBase, IVariableDebtToken {
|
||||||
uint256 _index
|
uint256 _index
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @dev calculates the accumulated debt balance of the user
|
||||||
|
* @return the debt balance of the user
|
||||||
|
**/
|
||||||
function balanceOf(address _user) public virtual override view returns (uint256) {
|
function balanceOf(address _user) public virtual override view returns (uint256) {
|
||||||
if (balances[_user] == 0) {
|
if (balances[_user] == 0) {
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -71,6 +75,11 @@ contract VariableDebtToken is DebtTokenBase, IVariableDebtToken {
|
||||||
.rayToWad();
|
.rayToWad();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @dev returns the index of the last user action
|
||||||
|
* @return the user index
|
||||||
|
**/
|
||||||
|
|
||||||
function getUserIndex(address _user) public virtual override view returns (uint256) {
|
function getUserIndex(address _user) public virtual override view returns (uint256) {
|
||||||
return userIndexes[_user];
|
return userIndexes[_user];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user