diff --git a/src/contracts/pods/EigenPod.sol b/src/contracts/pods/EigenPod.sol index 938f85612..e85af7d64 100644 --- a/src/contracts/pods/EigenPod.sol +++ b/src/contracts/pods/EigenPod.sol @@ -236,7 +236,7 @@ contract EigenPod is * @dev Verify one or more validators have their withdrawal credentials pointed at this EigenPod, and award * shares based on their effective balance. Proven validators are marked `ACTIVE` within the EigenPod, and * future checkpoint proofs will need to include them. - * @dev Withdrawal credential proofs MUST NOT be older than the `lastFinalizedCheckpoint` OR `currentCheckpointTimestamp`. + * @dev Withdrawal credential proofs MUST NOT be older than the `lastCheckpointTimestamp` OR `currentCheckpointTimestamp`. * @dev Validators proven via this method MUST NOT have an exit epoch set already. * @param beaconTimestamp the beacon chain timestamp sent to the 4788 oracle contract. Corresponds * to the parent beacon block root against which the proof is verified. @@ -265,7 +265,7 @@ contract EigenPod is ); require( - beaconTimestamp > lastFinalizedCheckpoint && beaconTimestamp > currentCheckpointTimestamp, + beaconTimestamp > lastCheckpointTimestamp && beaconTimestamp > currentCheckpointTimestamp, "EigenPod.verifyWithdrawalCredentials: specified timestamp is too far in past" ); @@ -593,7 +593,7 @@ contract EigenPod is * @dev If the checkpoint has no proofs remaining, it is finalized: * - a share delta is calculated and sent to the `EigenPodManager` * - the checkpointed `podBalance` is added to `withdrawableRestakedExecutionLayerGwei` - * - `lastFinalizedCheckpoint` is updated + * - `lastCheckpointTimestamp` is updated * - `currentCheckpoint` and `currentCheckpointTimestamp` are deleted */ function _updateCheckpoint(Checkpoint memory checkpoint) internal { @@ -606,7 +606,7 @@ contract EigenPod is withdrawableRestakedExecutionLayerGwei += uint64(checkpoint.podBalanceGwei); // Finalize the checkpoint - lastFinalizedCheckpoint = currentCheckpointTimestamp; + lastCheckpointTimestamp = currentCheckpointTimestamp; delete currentCheckpointTimestamp; delete currentCheckpoint; diff --git a/src/contracts/pods/EigenPodStorage.sol b/src/contracts/pods/EigenPodStorage.sol index d973109f7..897fef60e 100644 --- a/src/contracts/pods/EigenPodStorage.sol +++ b/src/contracts/pods/EigenPodStorage.sol @@ -37,7 +37,7 @@ abstract contract EigenPodStorage is IEigenPod { uint256 public activeValidatorCount; /// @notice The timestamp of the last checkpoint finalized - uint64 public lastFinalizedCheckpoint; + uint64 public lastCheckpointTimestamp; /// @notice The timestamp of the currently-active checkpoint. Will be 0 if there is not active checkpoint uint64 public currentCheckpointTimestamp;