feat: configurator: added reserveDropped event

This commit is contained in:
Hadrien Charlanes 2021-05-27 08:12:27 +02:00
parent 776220d705
commit 52b903cd20
2 changed files with 12 additions and 5 deletions

View File

@ -132,6 +132,12 @@ interface ILendingPoolConfigurator {
**/ **/
event ReserveUnpaused(address indexed asset); event ReserveUnpaused(address indexed asset);
/**
* @dev Emitted when a reserve is dropped
* @param asset The address of the underlying asset of the reserve
**/
event ReserveDropped(address indexed asset);
/** /**
* @dev Emitted when a reserve factor is updated * @dev Emitted when a reserve factor is updated
* @param asset The address of the underlying asset of the reserve * @param asset The address of the underlying asset of the reserve
@ -203,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
**/ **/
@ -387,13 +393,13 @@ 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
**/ **/

View File

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