Skip to content

Commit 92beddd

Browse files
committed
Added DepositValidatorExited event
Added amountWei to the DepositValidatorExiting event
1 parent e04f76c commit 92beddd

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

contracts/contracts/strategies/NativeStaking/CompoundingValidatorManager.sol

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,12 @@ abstract contract CompoundingValidatorManager is Governable {
149149
event DepositVerified(bytes32 indexed depositDataRoot, uint256 amountWei);
150150
event DepositValidatorExiting(
151151
bytes32 indexed depositDataRoot,
152-
uint64 exitEpoch
152+
uint256 amountWei,
153+
uint64 withdrawableEpoch
154+
);
155+
event DepositValidatorExited(
156+
bytes32 indexed depositDataRoot,
157+
uint256 amountWei
153158
);
154159
event ValidatorWithdraw(bytes32 indexed pubKeyHash, uint256 amountWei);
155160
event BalancesSnapped(
@@ -493,7 +498,7 @@ abstract contract CompoundingValidatorManager is Governable {
493498
uint64 validatorIndex;
494499
bytes32 pubKeyHash;
495500
bytes pubKeyProof;
496-
bytes validatorExitEpochProof;
501+
bytes validatorWithdrawableEpochProof;
497502
bytes validatorPubKeyProof;
498503
}
499504

@@ -575,7 +580,7 @@ abstract contract CompoundingValidatorManager is Governable {
575580
firstPendingDeposit.validatorIndex,
576581
firstPendingDeposit.pubKeyHash,
577582
FAR_FUTURE_EPOCH,
578-
firstPendingDeposit.validatorExitEpochProof,
583+
firstPendingDeposit.validatorWithdrawableEpochProof,
579584
firstPendingDeposit.pubKeyProof
580585
);
581586
}
@@ -597,6 +602,7 @@ abstract contract CompoundingValidatorManager is Governable {
597602

598603
emit DepositValidatorExiting(
599604
depositDataRoot,
605+
uint256(deposit.amountGwei) * 1 gwei,
600606
validatorData.withdrawableEpoch
601607
);
602608

@@ -919,7 +925,7 @@ abstract contract CompoundingValidatorManager is Governable {
919925
firstPendingDeposit.validatorIndex,
920926
firstPendingDeposit.pubKeyHash,
921927
FAR_FUTURE_EPOCH,
922-
firstPendingDeposit.validatorExitEpochProof,
928+
firstPendingDeposit.validatorWithdrawableEpochProof,
923929
firstPendingDeposit.pubKeyProof
924930
);
925931

@@ -976,7 +982,7 @@ abstract contract CompoundingValidatorManager is Governable {
976982
) {
977983
_removeDeposit(depositDataRoot, depositData);
978984

979-
emit DepositVerified(
985+
emit DepositValidatorExited(
980986
depositDataRoot,
981987
uint256(depositData.amountGwei) * 1 gwei
982988
);

0 commit comments

Comments
 (0)