mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Pulled lendingPool fix from origin
This commit is contained in:
parent
517d51f900
commit
57996bd5b8
|
@ -82,20 +82,12 @@ contract LendingPool is VersionedInitializable, ILendingPool, LendingPoolStorage
|
||||||
* - Caching the address of the LendingPoolAddressesProvider in order to reduce gas consumption
|
* - Caching the address of the LendingPoolAddressesProvider in order to reduce gas consumption
|
||||||
* on subsequent operations
|
* on subsequent operations
|
||||||
* @param provider The address of the LendingPoolAddressesProvider
|
* @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(
|
function initialize(ILendingPoolAddressesProvider provider) public initializer {
|
||||||
ILendingPoolAddressesProvider provider,
|
|
||||||
uint256 maxStableRateBorrowSizePercent,
|
|
||||||
uint256 flashLoanPremiumTotal,
|
|
||||||
uint256 maxNumberOfReserves
|
|
||||||
) public initializer {
|
|
||||||
_addressesProvider = provider;
|
_addressesProvider = provider;
|
||||||
_maxStableRateBorrowSizePercent = maxStableRateBorrowSizePercent;
|
_maxStableRateBorrowSizePercent = 2500;
|
||||||
_flashLoanPremiumTotal = flashLoanPremiumTotal;
|
_flashLoanPremiumTotal = 9;
|
||||||
_maxNumberOfReserves = maxNumberOfReserves;
|
_maxNumberOfReserves = 128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user