Merge pull request #169 from aave/fix/protocol-2.5-scaledbalance-error

fix: fixed error on balance"
This commit is contained in:
The-3D 2021-06-30 18:12:09 +02:00 committed by GitHub
commit 8bf4b0acf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,6 +125,7 @@ library GenericLogic {
vars.userBalance = IScaledBalanceToken(currentReserve.aTokenAddress).scaledBalanceOf(
user
);
vars.userBalance = vars.userBalance.rayMul(vars.normalizedIncome);
vars.aTokenSupply = 0;
}