fix: fixed error on balance"

This commit is contained in:
Hadrien Charlanes 2021-06-30 17:12:51 +02:00
parent 57e26ebe0e
commit 9bd5b99654

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;
}