mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
doc: added doc to drop reserve
This commit is contained in:
parent
6bc1ef13ef
commit
c2a137cbeb
|
@ -209,13 +209,13 @@ interface ILendingPoolConfigurator {
|
||||||
address indexed implementation
|
address indexed implementation
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev Emitted when a new borrower is authorized (fees = 0)
|
* @dev Emitted when a new borrower is authorized (fees = 0)
|
||||||
* @param flashBorrower The address of the authorized borrower
|
* @param flashBorrower The address of the authorized borrower
|
||||||
**/
|
**/
|
||||||
event FlashBorrowerAuthorized(address indexed flashBorrower);
|
event FlashBorrowerAuthorized(address indexed flashBorrower);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev Emitted when a borrower is unauthorized
|
* @dev Emitted when a borrower is unauthorized
|
||||||
* @param flashBorrower The address of the unauthorized borrower
|
* @param flashBorrower The address of the unauthorized borrower
|
||||||
**/
|
**/
|
||||||
|
@ -393,15 +393,21 @@ interface ILendingPoolConfigurator {
|
||||||
**/
|
**/
|
||||||
function isRiskAdmin(address admin) external view returns (bool);
|
function isRiskAdmin(address admin) external view returns (bool);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev Authorize a new borrower (fees are 0 for the authorized borrower)
|
* @dev Authorize a new borrower (fees are 0 for the authorized borrower)
|
||||||
* @param flashBorrower The address of the authorized borrower
|
* @param flashBorrower The address of the authorized borrower
|
||||||
**/
|
**/
|
||||||
function authorizeFlashBorrower(address flashBorrower) external;
|
function authorizeFlashBorrower(address flashBorrower) external;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev Unauthorize a borrower
|
* @dev Unauthorize a borrower
|
||||||
* @param flashBorrower The address of the unauthorized borrower
|
* @param flashBorrower The address of the unauthorized borrower
|
||||||
**/
|
**/
|
||||||
function unauthorizeFlashBorrower(address flashBorrower) external;
|
function unauthorizeFlashBorrower(address flashBorrower) external;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @dev Drops a reserve entirely
|
||||||
|
* @param asset the address of the reserve to drop
|
||||||
|
**/
|
||||||
|
function dropReserve(address asset) external;
|
||||||
}
|
}
|
||||||
|
|
|
@ -159,6 +159,7 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// @inheritdoc ILendingPoolConfigurator
|
||||||
function dropReserve(address asset) external onlyPoolAdmin {
|
function dropReserve(address asset) external onlyPoolAdmin {
|
||||||
pool.dropReserve(asset);
|
pool.dropReserve(asset);
|
||||||
emit ReserveDropped(asset);
|
emit ReserveDropped(asset);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user