From c2a137cbeb2bebf017dc3701c0539ab76b027b9a Mon Sep 17 00:00:00 2001 From: Hadrien Charlanes Date: Mon, 7 Jun 2021 10:26:38 +0200 Subject: [PATCH] doc: added doc to drop reserve --- .../interfaces/ILendingPoolConfigurator.sol | 16 +++++++++++----- .../lendingpool/LendingPoolConfigurator.sol | 1 + 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/contracts/interfaces/ILendingPoolConfigurator.sol b/contracts/interfaces/ILendingPoolConfigurator.sol index 259c9446..312aebed 100644 --- a/contracts/interfaces/ILendingPoolConfigurator.sol +++ b/contracts/interfaces/ILendingPoolConfigurator.sol @@ -209,13 +209,13 @@ interface ILendingPoolConfigurator { address indexed implementation ); - /** + /** * @dev Emitted when a new borrower is authorized (fees = 0) * @param flashBorrower The address of the authorized borrower **/ event FlashBorrowerAuthorized(address indexed flashBorrower); - /** + /** * @dev Emitted when a borrower is unauthorized * @param flashBorrower The address of the unauthorized borrower **/ @@ -392,16 +392,22 @@ interface ILendingPoolConfigurator { * @param admin The address of the potential admin **/ function isRiskAdmin(address admin) external view returns (bool); - - /** + + /** * @dev Authorize a new borrower (fees are 0 for the authorized borrower) * @param flashBorrower The address of the authorized borrower **/ function authorizeFlashBorrower(address flashBorrower) external; - /** + /** * @dev Unauthorize a borrower * @param flashBorrower The address of the unauthorized borrower **/ function unauthorizeFlashBorrower(address flashBorrower) external; + + /** + * @dev Drops a reserve entirely + * @param asset the address of the reserve to drop + **/ + function dropReserve(address asset) external; } diff --git a/contracts/protocol/lendingpool/LendingPoolConfigurator.sol b/contracts/protocol/lendingpool/LendingPoolConfigurator.sol index 7e8bb9b3..c507089f 100644 --- a/contracts/protocol/lendingpool/LendingPoolConfigurator.sol +++ b/contracts/protocol/lendingpool/LendingPoolConfigurator.sol @@ -159,6 +159,7 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur ); } + /// @inheritdoc ILendingPoolConfigurator function dropReserve(address asset) external onlyPoolAdmin { pool.dropReserve(asset); emit ReserveDropped(asset);