Skip to content

Commit

Permalink
Merge pull request #27 from The-3D/master
Browse files Browse the repository at this point in the history
Updated LendingPoolCore to the current deployed version
  • Loading branch information
eboadom authored Nov 11, 2020
2 parents 2466ace + 0d156bb commit 209f0c6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions contracts/lendingpool/LendingPoolCore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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");
}
}

Expand Down

0 comments on commit 209f0c6

Please sign in to comment.