From 0d156bb19e2abe6e796ce700d5b800550ada2952 Mon Sep 17 00:00:00 2001 From: The3D Date: Wed, 11 Nov 2020 14:07:21 +0100 Subject: [PATCH] Updated LendingPoolCore to the current deployed version --- contracts/lendingpool/LendingPoolCore.sol | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/contracts/lendingpool/LendingPoolCore.sol b/contracts/lendingpool/LendingPoolCore.sol index a5b13c8..afafab5 100644 --- a/contracts/lendingpool/LendingPoolCore.sol +++ b/contracts/lendingpool/LendingPoolCore.sol @@ -77,7 +77,7 @@ contract LendingPoolCore is VersionedInitializable { address[] public reservesList; - uint256 public constant CORE_REVISION = 0x4; + uint256 public constant CORE_REVISION = 0x6; /** * @dev returns the revision number of the contract @@ -1361,7 +1361,7 @@ contract LendingPoolCore is VersionedInitializable { uint256 _balanceIncrease ) internal { CoreLibrary.ReserveData storage reserve = reserves[_reserve]; - CoreLibrary.UserReserveData storage user = usersReserveData[_reserve][_user]; + CoreLibrary.UserReserveData storage user = usersReserveData[_user][_reserve]; CoreLibrary.InterestRateMode borrowRateMode = getUserCurrentBorrowRateMode(_reserve, _user); @@ -1747,7 +1747,9 @@ contract LendingPoolCore is VersionedInitializable { if (_token != EthAddressLib.ethAddress()) { ERC20(_token).safeTransfer(receiver, _amount); } else { - receiver.transfer(_amount); + //solium-disable-next-line + (bool result, ) = receiver.call.value(_amount)(""); + require(result, "Transfer to token distributor failed"); } }