From 13f77ec0d200b9eb97916d55b0709825979f0e6b Mon Sep 17 00:00:00 2001 From: The3D Date: Mon, 14 Sep 2020 11:34:40 +0200 Subject: [PATCH] Fixed repay --- contracts/lendingpool/LendingPool.sol | 4 ++-- contracts/libraries/logic/ReserveLogic.sol | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/lendingpool/LendingPool.sol b/contracts/lendingpool/LendingPool.sol index eeeb0d9a..79940ef2 100644 --- a/contracts/lendingpool/LendingPool.sol +++ b/contracts/lendingpool/LendingPool.sol @@ -241,9 +241,9 @@ contract LendingPool is VersionedInitializable, ILendingPool { _usersConfig[onBehalfOf].setBorrowing(reserve.id, false); } - IERC20(asset).safeTransferFrom(user, aToken, paybackAmount); + IERC20(asset).safeTransferFrom(msg.sender, aToken, paybackAmount); - emit Repay(asset, onBehalfOf, user, paybackAmount); + emit Repay(asset, onBehalfOf, msg.sender, paybackAmount); } /** diff --git a/contracts/libraries/logic/ReserveLogic.sol b/contracts/libraries/logic/ReserveLogic.sol index 58bf29bd..0cb07416 100644 --- a/contracts/libraries/logic/ReserveLogic.sol +++ b/contracts/libraries/logic/ReserveLogic.sol @@ -243,7 +243,7 @@ library ReserveLogic { } function _mintToTreasury(ReserveData storage reserve) internal { - + }