From d2323f8f0ee26850407976f7da0c602dd93bdaf2 Mon Sep 17 00:00:00 2001 From: Hadrien Charlanes Date: Thu, 27 May 2021 08:12:27 +0200 Subject: [PATCH] feat: configurator: added reserveDropped event --- contracts/interfaces/ILendingPoolConfigurator.sol | 6 ++++++ contracts/protocol/lendingpool/LendingPoolConfigurator.sol | 1 + 2 files changed, 7 insertions(+) diff --git a/contracts/interfaces/ILendingPoolConfigurator.sol b/contracts/interfaces/ILendingPoolConfigurator.sol index 26de950f..69b7d417 100644 --- a/contracts/interfaces/ILendingPoolConfigurator.sol +++ b/contracts/interfaces/ILendingPoolConfigurator.sol @@ -132,6 +132,12 @@ interface ILendingPoolConfigurator { **/ 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 * @param asset The address of the underlying asset of the reserve diff --git a/contracts/protocol/lendingpool/LendingPoolConfigurator.sol b/contracts/protocol/lendingpool/LendingPoolConfigurator.sol index cf5bbaec..4d9c8859 100644 --- a/contracts/protocol/lendingpool/LendingPoolConfigurator.sol +++ b/contracts/protocol/lendingpool/LendingPoolConfigurator.sol @@ -163,6 +163,7 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur function dropReserve(address asset) external onlyPoolAdmin { pool.dropReserve(asset); + emit ReserveDropped(asset); } /**