mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
add LogCancelAndRevoke event
This commit is contained in:
parent
cd46f4fae8
commit
059412ebcb
|
@ -17,4 +17,5 @@ contract Events {
|
|||
bool isPermanent
|
||||
);
|
||||
event LogCancelProtection(address indexed dsa, address indexed action);
|
||||
event LogCancelAndRevoke(address indexed dsa, address indexed action);
|
||||
}
|
||||
|
|
|
@ -67,11 +67,9 @@ abstract contract GAaveProtectionResolver is Events, Helpers {
|
|||
/// @dev Function for cancelling and removing allowance
|
||||
/// of aToken to _protectionAction
|
||||
function cancelAndRevoke() external payable {
|
||||
if (_dsaHasProtection()) {
|
||||
_cancelProtection();
|
||||
emit LogCancelProtection(address(this), _protectionAction);
|
||||
}
|
||||
if (_dsaHasProtection()) _cancelProtection();
|
||||
_revokeAllowance();
|
||||
emit LogCancelAndRevoke(address(this), _protectionAction);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user