From 34d764299003bfa3f14d15955203ae6291948f4a Mon Sep 17 00:00:00 2001 From: eboado Date: Sun, 31 Jan 2021 22:06:10 +0100 Subject: [PATCH] - Fixed incompatible initialize() interface on LendingPool --- contracts/protocol/lendingpool/LendingPool.sol | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/contracts/protocol/lendingpool/LendingPool.sol b/contracts/protocol/lendingpool/LendingPool.sol index 75e80230..0f4d9674 100644 --- a/contracts/protocol/lendingpool/LendingPool.sol +++ b/contracts/protocol/lendingpool/LendingPool.sol @@ -82,20 +82,12 @@ contract LendingPool is VersionedInitializable, ILendingPool, LendingPoolStorage * - Caching the address of the LendingPoolAddressesProvider in order to reduce gas consumption * on subsequent operations * @param provider The address of the LendingPoolAddressesProvider - * @param maxStableRateBorrowSizePercent The percentage of available liquidity that can be borrowed at once at stable rate - * @param flashLoanPremiumTotal The fee on flash loans - * @param maxNumberOfReserves Maximum number of reserves supported to be listed in this LendingPool **/ - function initialize( - ILendingPoolAddressesProvider provider, - uint256 maxStableRateBorrowSizePercent, - uint256 flashLoanPremiumTotal, - uint256 maxNumberOfReserves - ) public initializer { + function initialize(ILendingPoolAddressesProvider provider) public initializer { _addressesProvider = provider; - _maxStableRateBorrowSizePercent = maxStableRateBorrowSizePercent; - _flashLoanPremiumTotal = flashLoanPremiumTotal; - _maxNumberOfReserves = maxNumberOfReserves; + _maxStableRateBorrowSizePercent = 2500; + _flashLoanPremiumTotal = 9; + _maxNumberOfReserves = 128; } /**