doc: added doc to drop reserve

This commit is contained in:
Hadrien Charlanes 2021-06-07 10:26:38 +02:00
parent 6bc1ef13ef
commit c2a137cbeb
2 changed files with 12 additions and 5 deletions

View File

@ -404,4 +404,10 @@ interface ILendingPoolConfigurator {
* @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;
}

View File

@ -159,6 +159,7 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur
);
}
/// @inheritdoc ILendingPoolConfigurator
function dropReserve(address asset) external onlyPoolAdmin {
pool.dropReserve(asset);
emit ReserveDropped(asset);