Skip to content

Commit ff79108

Browse files
committed
fix(api): cl withdrawal skimming estimate new fields
1 parent 7155c4e commit ff79108

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

backend/pkg/api/data_access/vdb_withdrawals.go

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -928,15 +928,21 @@ func (d *DataAccessService) getNextWithdrawalRow(queryValidators []validatorGrou
928928
}
929929

930930
nextData := &t.VDBWithdrawalsClTableRow{
931-
SlotProcessed: nextWithdrawalSlot,
932-
Index: nextValidator.ValidatorIndex,
933-
GroupId: nextValidator.GroupId,
931+
SlotProcessed: nextWithdrawalSlot,
932+
Index: nextValidator.ValidatorIndex,
933+
PublicKey: t.PubKey(hexutil.Encode(nextValidatorData.PublicKey)),
934+
WithdrawalCredentials: t.Hash(hexutil.Encode(nextValidatorData.WithdrawalCredentials)),
935+
GroupId: nextValidator.GroupId,
934936
Recipient: &t.Address{
935937
Hash: t.Hash(address.String()),
936938
Ens: ens_name,
937939
IsContract: contractStatus[0] == types.CONTRACT_CREATION || contractStatus[0] == types.CONTRACT_PRESENT,
938940
},
939-
Amount: utils.GWeiToWei(big.NewInt(int64(withdrawalAmount))),
941+
Amount: utils.GWeiToWei(big.NewInt(int64(withdrawalAmount))),
942+
Type: "auto",
943+
Status: "queued",
944+
Slot: nextWithdrawalSlot,
945+
SlotIndex: 0, // ?
940946
}
941947

942948
return nextData, nil

0 commit comments

Comments
 (0)