From 8d1d06bbddd626cd70deb2d804507c5878c948dd Mon Sep 17 00:00:00 2001 From: The3D Date: Fri, 24 Jul 2020 14:57:52 +0200 Subject: [PATCH] Removed change on calculateUserAccountData --- contracts/libraries/GenericLogic.sol | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contracts/libraries/GenericLogic.sol b/contracts/libraries/GenericLogic.sol index 37696175..e019d466 100644 --- a/contracts/libraries/GenericLogic.sol +++ b/contracts/libraries/GenericLogic.sol @@ -156,8 +156,7 @@ library GenericLogic { { CalculateUserAccountDataVars memory vars; - vars.reservesLength = _reserves.length; - for (vars.i = 0; vars.i < vars.reservesLength; vars.i++) { + for (vars.i = 0; vars.i < _reserves.length; vars.i++) { vars.currentReserveAddress = _reserves[vars.i]; ReserveLogic.ReserveData storage currentReserve = _reservesData[vars.currentReserveAddress];