mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
fix typo in StableDebtToken balanceOf method
This commit is contained in:
parent
94d8f38597
commit
4ecc53abee
|
@ -112,8 +112,8 @@ contract StableDebtToken is IStableDebtToken, DebtTokenBase {
|
|||
* @return the accumulated debt of the user
|
||||
**/
|
||||
function balanceOf(address account) public virtual override view returns (uint256) {
|
||||
uint256 accountsBalance = _balances[account];
|
||||
if (accountsBalance == 0) {
|
||||
uint256 accountBalance = _balances[account];
|
||||
if (accountBalance == 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -123,7 +123,7 @@ contract StableDebtToken is IStableDebtToken, DebtTokenBase {
|
|||
userData.currentRate,
|
||||
userData.lastUpdateTimestamp
|
||||
);
|
||||
return accountsBalance.wadToRay().rayMul(cumulatedInterest).rayToWad();
|
||||
return accountBalance.wadToRay().rayMul(cumulatedInterest).rayToWad();
|
||||
}
|
||||
|
||||
struct MintLocalVars {
|
||||
|
|
Loading…
Reference in New Issue
Block a user