From 9bd5b99654fb547a7e39e4ba972fd352cee60e22 Mon Sep 17 00:00:00 2001 From: Hadrien Charlanes Date: Wed, 30 Jun 2021 17:12:51 +0200 Subject: [PATCH] fix: fixed error on balance" --- contracts/protocol/libraries/logic/GenericLogic.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/contracts/protocol/libraries/logic/GenericLogic.sol b/contracts/protocol/libraries/logic/GenericLogic.sol index 5a087bc2..66053b6e 100644 --- a/contracts/protocol/libraries/logic/GenericLogic.sol +++ b/contracts/protocol/libraries/logic/GenericLogic.sol @@ -125,6 +125,7 @@ library GenericLogic { vars.userBalance = IScaledBalanceToken(currentReserve.aTokenAddress).scaledBalanceOf( user ); + vars.userBalance = vars.userBalance.rayMul(vars.normalizedIncome); vars.aTokenSupply = 0; }