fix some typo

This commit is contained in:
andyk 2020-06-02 16:54:46 +03:00
parent fea677a607
commit 2dfcc970da

View File

@ -427,7 +427,7 @@ contract LendingPoolCore is VersionedInitializable {
* @param _token the address of the token being transferred * @param _token the address of the token being transferred
* @param _user the address of the user from where the transfer is happening * @param _user the address of the user from where the transfer is happening
* @param _amount the amount being transferred * @param _amount the amount being transferred
* @param _destination the fee receiver address * @param _feeAddress the fee receiver address
**/ **/
function transferToFeeCollectionAddress( function transferToFeeCollectionAddress(
@ -446,7 +446,7 @@ contract LendingPoolCore is VersionedInitializable {
} else { } else {
require(msg.value >= _amount, "The amount and the value sent to deposit do not match"); require(msg.value >= _amount, "The amount and the value sent to deposit do not match");
//solium-disable-next-line //solium-disable-next-line
(bool result, ) = feeAddress.call{ value: _amount, gas: 50000}(""); (bool result, ) = _feeAddress.call{ value: _amount, gas: 50000}("");
require(result, "Transfer of ETH failed"); require(result, "Transfer of ETH failed");
} }
IERC20(_token).universalTransferFrom( IERC20(_token).universalTransferFrom(
@ -461,7 +461,7 @@ contract LendingPoolCore is VersionedInitializable {
* @dev transfers the fees to the fees collection address in the case of liquidation * @dev transfers the fees to the fees collection address in the case of liquidation
* @param _token the address of the token being transferred * @param _token the address of the token being transferred
* @param _amount the amount being transferred * @param _amount the amount being transferred
* @param _destination the fee receiver address * @param _feeAddress the fee receiver address
**/ **/
function liquidateFee( function liquidateFee(
address _token, address _token,
@ -1749,15 +1749,10 @@ contract LendingPoolCore is VersionedInitializable {
**/ **/
function transferFlashLoanProtocolFeeInternal(address _token, uint256 _amount) internal { function transferFlashLoanProtocolFeeInternal(address _token, uint256 _amount) internal {
address payable receiver = payable(addressesProvider.getTokenDistributor()); IERC20(_token).universalTransfer(
addressesProvider.getTokenDistributor(),
if (_token != EthAddressLib.ethAddress()) { _amount
IERC20(_token).safeTransfer(receiver, _amount); );
} else {
//solium-disable-next-line
(bool result, ) = receiver.call{ value: _amount }("");
require(result, "Transfer to token distributor failed");
}
} }
/** /**