Skip to content

Commit

Permalink
update event
Browse files Browse the repository at this point in the history
  • Loading branch information
vvalecha519 committed Oct 29, 2024
1 parent 9211587 commit dc4199f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/EtherFiNodesManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ contract EtherFiNodesManager is

event PartialWithdrawal(uint256 indexed _validatorId, address indexed etherFiNode, uint256 toTnft);
event FullWithdrawal(uint256 indexed _validatorId, address indexed etherFiNode, uint256 toTnft, uint256 toBnft);
event PartialWithdrawal_V2(uint256 indexed _validatorId, address indexed etherFiNode, uint256 toTnft);
event FullWithdrawal_V2(uint256 indexed _validatorId, address indexed etherFiNode, uint256 toTnft, uint256 toBnft);
event QueuedRestakingWithdrawal(uint256 indexed _validatorId, address indexed etherFiNode, bytes32[] withdrawalRoots);

event AllowedForwardedExternalCallsUpdated(bytes4 indexed selector, address indexed _target, bool _allowed);
Expand Down Expand Up @@ -262,7 +264,7 @@ contract EtherFiNodesManager is
uint256 toTnft = _getTotalRewardsPayoutsFromSafe(_validatorId, true);
_distributePayouts(etherfiNode, _validatorId, toTnft, 0);

emit PartialWithdrawal(_validatorId, etherfiNode, toTnft);
emit PartialWithdrawal_V2(_validatorId, etherfiNode, toTnft);
}

function batchPartialWithdraw(uint256[] calldata _validatorIds) external whenNotPaused{
Expand Down Expand Up @@ -297,7 +299,7 @@ contract EtherFiNodesManager is
tnft.burnFromWithdrawal(_validatorId);
bnft.burnFromWithdrawal(_validatorId);

emit FullWithdrawal(_validatorId, etherfiNode, toTnft, toBnft);
emit FullWithdrawal_V2(_validatorId, etherfiNode, toTnft, toBnft);
}

/// @notice Process the full withdrawal for multiple validators
Expand Down

0 comments on commit dc4199f

Please sign in to comment.