mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
fix: Add interface @inheritdoc to LendingPoolConfigurator
This commit is contained in:
parent
24a082ff1a
commit
98c5bfb9a0
|
@ -177,12 +177,28 @@ interface ILendingPoolConfigurator {
|
||||||
address indexed implementation
|
address indexed implementation
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @dev Initializes reserves in batch
|
||||||
|
* @param input The array of reserves initialization parameters
|
||||||
|
**/
|
||||||
function batchInitReserve(InitReserveInput[] calldata input) external;
|
function batchInitReserve(InitReserveInput[] calldata input) external;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @dev Updates the aToken implementation for the reserve
|
||||||
|
* @param input The aToken update paramenters
|
||||||
|
**/
|
||||||
function updateAToken(UpdateATokenInput calldata input) external;
|
function updateAToken(UpdateATokenInput calldata input) external;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @dev Updates the stable debt token implementation for the reserve
|
||||||
|
* @param input The stableDebtToken update parameters
|
||||||
|
**/
|
||||||
function updateStableDebtToken(UpdateDebtTokenInput calldata input) external;
|
function updateStableDebtToken(UpdateDebtTokenInput calldata input) external;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @dev Updates the variable debt token implementation for the asset
|
||||||
|
* @param input The variableDebtToken update parameters
|
||||||
|
**/
|
||||||
function updateVariableDebtToken(UpdateDebtTokenInput calldata input) external;
|
function updateVariableDebtToken(UpdateDebtTokenInput calldata input) external;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -57,9 +57,7 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur
|
||||||
_pool = ILendingPool(_addressesProvider.getLendingPool());
|
_pool = ILendingPool(_addressesProvider.getLendingPool());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/// @inheritdoc ILendingPoolConfigurator
|
||||||
* @dev Initializes reserves in batch
|
|
||||||
**/
|
|
||||||
function batchInitReserve(InitReserveInput[] calldata input) external override onlyPoolAdmin {
|
function batchInitReserve(InitReserveInput[] calldata input) external override onlyPoolAdmin {
|
||||||
ILendingPool cachedPool = _pool;
|
ILendingPool cachedPool = _pool;
|
||||||
for (uint256 i = 0; i < input.length; i++) {
|
for (uint256 i = 0; i < input.length; i++) {
|
||||||
|
@ -141,9 +139,7 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/// @inheritdoc ILendingPoolConfigurator
|
||||||
* @dev Updates the aToken implementation for the reserve
|
|
||||||
**/
|
|
||||||
function updateAToken(UpdateATokenInput calldata input) external override onlyPoolAdmin {
|
function updateAToken(UpdateATokenInput calldata input) external override onlyPoolAdmin {
|
||||||
ILendingPool cachedPool = _pool;
|
ILendingPool cachedPool = _pool;
|
||||||
|
|
||||||
|
@ -169,9 +165,7 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur
|
||||||
emit ATokenUpgraded(input.asset, reserveData.aTokenAddress, input.implementation);
|
emit ATokenUpgraded(input.asset, reserveData.aTokenAddress, input.implementation);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/// @inheritdoc ILendingPoolConfigurator
|
||||||
* @dev Updates the stable debt token implementation for the reserve
|
|
||||||
**/
|
|
||||||
function updateStableDebtToken(UpdateDebtTokenInput calldata input)
|
function updateStableDebtToken(UpdateDebtTokenInput calldata input)
|
||||||
external
|
external
|
||||||
override
|
override
|
||||||
|
@ -208,9 +202,7 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/// @inheritdoc ILendingPoolConfigurator
|
||||||
* @dev Updates the variable debt token implementation for the asset
|
|
||||||
**/
|
|
||||||
function updateVariableDebtToken(UpdateDebtTokenInput calldata input)
|
function updateVariableDebtToken(UpdateDebtTokenInput calldata input)
|
||||||
external
|
external
|
||||||
override
|
override
|
||||||
|
@ -247,11 +239,7 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/// @inheritdoc ILendingPoolConfigurator
|
||||||
* @dev Enables borrowing on a reserve
|
|
||||||
* @param asset The address of the underlying asset of the reserve
|
|
||||||
* @param stableBorrowRateEnabled True if stable borrow rate needs to be enabled by default on this reserve
|
|
||||||
**/
|
|
||||||
function enableBorrowingOnReserve(address asset, bool stableBorrowRateEnabled)
|
function enableBorrowingOnReserve(address asset, bool stableBorrowRateEnabled)
|
||||||
external
|
external
|
||||||
override
|
override
|
||||||
|
@ -267,10 +255,7 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur
|
||||||
emit BorrowingEnabledOnReserve(asset, stableBorrowRateEnabled);
|
emit BorrowingEnabledOnReserve(asset, stableBorrowRateEnabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/// @inheritdoc ILendingPoolConfigurator
|
||||||
* @dev Disables borrowing on a reserve
|
|
||||||
* @param asset The address of the underlying asset of the reserve
|
|
||||||
**/
|
|
||||||
function disableBorrowingOnReserve(address asset) external override onlyPoolAdmin {
|
function disableBorrowingOnReserve(address asset) external override onlyPoolAdmin {
|
||||||
DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset);
|
DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset);
|
||||||
|
|
||||||
|
@ -280,15 +265,7 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur
|
||||||
emit BorrowingDisabledOnReserve(asset);
|
emit BorrowingDisabledOnReserve(asset);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/// @inheritdoc ILendingPoolConfigurator
|
||||||
* @dev Configures the reserve collateralization parameters
|
|
||||||
* all the values are expressed in percentages with two decimals of precision. A valid value is 10000, which means 100.00%
|
|
||||||
* @param asset The address of the underlying asset of the reserve
|
|
||||||
* @param ltv The loan to value of the asset when used as collateral
|
|
||||||
* @param liquidationThreshold The threshold at which loans using this asset as collateral will be considered undercollateralized
|
|
||||||
* @param liquidationBonus The bonus liquidators receive to liquidate this asset. The values is always above 100%. A value of 105%
|
|
||||||
* means the liquidator will receive a 5% bonus
|
|
||||||
**/
|
|
||||||
function configureReserveAsCollateral(
|
function configureReserveAsCollateral(
|
||||||
address asset,
|
address asset,
|
||||||
uint256 ltv,
|
uint256 ltv,
|
||||||
|
@ -333,10 +310,7 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur
|
||||||
emit CollateralConfigurationChanged(asset, ltv, liquidationThreshold, liquidationBonus);
|
emit CollateralConfigurationChanged(asset, ltv, liquidationThreshold, liquidationBonus);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/// @inheritdoc ILendingPoolConfigurator
|
||||||
* @dev Enable stable rate borrowing on a reserve
|
|
||||||
* @param asset The address of the underlying asset of the reserve
|
|
||||||
**/
|
|
||||||
function enableReserveStableRate(address asset) external override onlyPoolAdmin {
|
function enableReserveStableRate(address asset) external override onlyPoolAdmin {
|
||||||
DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset);
|
DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset);
|
||||||
|
|
||||||
|
@ -347,10 +321,7 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur
|
||||||
emit StableRateEnabledOnReserve(asset);
|
emit StableRateEnabledOnReserve(asset);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/// @inheritdoc ILendingPoolConfigurator
|
||||||
* @dev Disable stable rate borrowing on a reserve
|
|
||||||
* @param asset The address of the underlying asset of the reserve
|
|
||||||
**/
|
|
||||||
function disableReserveStableRate(address asset) external override onlyPoolAdmin {
|
function disableReserveStableRate(address asset) external override onlyPoolAdmin {
|
||||||
DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset);
|
DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset);
|
||||||
|
|
||||||
|
@ -361,10 +332,7 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur
|
||||||
emit StableRateDisabledOnReserve(asset);
|
emit StableRateDisabledOnReserve(asset);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/// @inheritdoc ILendingPoolConfigurator
|
||||||
* @dev Activates a reserve
|
|
||||||
* @param asset The address of the underlying asset of the reserve
|
|
||||||
**/
|
|
||||||
function activateReserve(address asset) external override onlyPoolAdmin {
|
function activateReserve(address asset) external override onlyPoolAdmin {
|
||||||
DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset);
|
DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset);
|
||||||
|
|
||||||
|
@ -375,10 +343,7 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur
|
||||||
emit ReserveActivated(asset);
|
emit ReserveActivated(asset);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/// @inheritdoc ILendingPoolConfigurator
|
||||||
* @dev Deactivates a reserve
|
|
||||||
* @param asset The address of the underlying asset of the reserve
|
|
||||||
**/
|
|
||||||
function deactivateReserve(address asset) external override onlyPoolAdmin {
|
function deactivateReserve(address asset) external override onlyPoolAdmin {
|
||||||
_checkNoLiquidity(asset);
|
_checkNoLiquidity(asset);
|
||||||
|
|
||||||
|
@ -391,11 +356,7 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur
|
||||||
emit ReserveDeactivated(asset);
|
emit ReserveDeactivated(asset);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/// @inheritdoc ILendingPoolConfigurator
|
||||||
* @dev Freezes a reserve. A frozen reserve doesn't allow any new deposit, borrow or rate swap
|
|
||||||
* but allows repayments, liquidations, rate rebalances and withdrawals
|
|
||||||
* @param asset The address of the underlying asset of the reserve
|
|
||||||
**/
|
|
||||||
function freezeReserve(address asset) external override onlyPoolAdmin {
|
function freezeReserve(address asset) external override onlyPoolAdmin {
|
||||||
DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset);
|
DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset);
|
||||||
|
|
||||||
|
@ -406,10 +367,7 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur
|
||||||
emit ReserveFrozen(asset);
|
emit ReserveFrozen(asset);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/// @inheritdoc ILendingPoolConfigurator
|
||||||
* @dev Unfreezes a reserve
|
|
||||||
* @param asset The address of the underlying asset of the reserve
|
|
||||||
**/
|
|
||||||
function unfreezeReserve(address asset) external override onlyPoolAdmin {
|
function unfreezeReserve(address asset) external override onlyPoolAdmin {
|
||||||
DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset);
|
DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset);
|
||||||
|
|
||||||
|
@ -420,11 +378,7 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur
|
||||||
emit ReserveUnfrozen(asset);
|
emit ReserveUnfrozen(asset);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/// @inheritdoc ILendingPoolConfigurator
|
||||||
* @dev Updates the reserve factor of a reserve
|
|
||||||
* @param asset The address of the underlying asset of the reserve
|
|
||||||
* @param reserveFactor The new reserve factor of the reserve
|
|
||||||
**/
|
|
||||||
function setReserveFactor(address asset, uint256 reserveFactor) external override onlyPoolAdmin {
|
function setReserveFactor(address asset, uint256 reserveFactor) external override onlyPoolAdmin {
|
||||||
DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset);
|
DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset);
|
||||||
|
|
||||||
|
@ -435,11 +389,7 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur
|
||||||
emit ReserveFactorChanged(asset, reserveFactor);
|
emit ReserveFactorChanged(asset, reserveFactor);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/// @inheritdoc ILendingPoolConfigurator
|
||||||
* @dev Sets the interest rate strategy of a reserve
|
|
||||||
* @param asset The address of the underlying asset of the reserve
|
|
||||||
* @param rateStrategyAddress The new address of the interest strategy contract
|
|
||||||
**/
|
|
||||||
function setReserveInterestRateStrategyAddress(address asset, address rateStrategyAddress)
|
function setReserveInterestRateStrategyAddress(address asset, address rateStrategyAddress)
|
||||||
external
|
external
|
||||||
override
|
override
|
||||||
|
@ -449,10 +399,7 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur
|
||||||
emit ReserveInterestRateStrategyChanged(asset, rateStrategyAddress);
|
emit ReserveInterestRateStrategyChanged(asset, rateStrategyAddress);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/// @inheritdoc ILendingPoolConfigurator
|
||||||
* @dev pauses or unpauses all the actions of the protocol, including aToken transfers
|
|
||||||
* @param val true if protocol needs to be paused, false otherwise
|
|
||||||
**/
|
|
||||||
function setPoolPause(bool val) external override onlyEmergencyAdmin {
|
function setPoolPause(bool val) external override onlyEmergencyAdmin {
|
||||||
_pool.setPause(val);
|
_pool.setPause(val);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user