Fixed repay

This commit is contained in:
The3D 2020-09-14 11:34:40 +02:00
parent d1ffac6380
commit 13f77ec0d2
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}
/**

View File

@ -243,7 +243,7 @@ library ReserveLogic {
}
function _mintToTreasury(ReserveData storage reserve) internal {
}