The ADD-02 fix modifies how validatorDetails.lastBalanceUpdateTimestamp is set in the validateWithdrawalCredentials function. Specifically, this fix updates validatorDetails.lastBalanceUpdateTimestamp to node.lastSnapshotTimestamp when node.currentSnapshotTimestamp is zero; otherwise, it uses node.currentSnapshotTimestamp.
This approach ensures that the lastBalanceUpdateTimestamp consistently reflects the latest relevant snapshot data. By using snapshot timestamps as the reference point, the implementation ensures the timestamp used for balance updates is always derived from the most current recorded state.
Lines of code
Vulnerability details
Comments
link
The ADD-02 fix modifies how validatorDetails.lastBalanceUpdateTimestamp is set in the
validateWithdrawalCredentials
function. Specifically, this fix updates validatorDetails.lastBalanceUpdateTimestamp to node.lastSnapshotTimestamp when node.currentSnapshotTimestamp is zero; otherwise, it uses node.currentSnapshotTimestamp.This approach ensures that the lastBalanceUpdateTimestamp consistently reflects the latest relevant snapshot data. By using snapshot timestamps as the reference point, the implementation ensures the timestamp used for balance updates is always derived from the most current recorded state.