mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
- Fixed incompatible initialize() interface on LendingPool
This commit is contained in:
parent
bbd4aae7a6
commit
34d7642990
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user