From 73f0f264a2bc9a14fde08798d38d1e7686ad99de Mon Sep 17 00:00:00 2001 From: peter <1674920+peterbitfly@users.noreply.github.com> Date: Mon, 21 Oct 2024 12:31:07 +0000 Subject: [PATCH] fix(notifications): scale withdrawal amounts --- backend/pkg/api/data_access/notifications.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/pkg/api/data_access/notifications.go b/backend/pkg/api/data_access/notifications.go index 2bf6d619f..b0819ac73 100644 --- a/backend/pkg/api/data_access/notifications.go +++ b/backend/pkg/api/data_access/notifications.go @@ -591,7 +591,7 @@ func (d *DataAccessService) GetValidatorDashboardNotificationDetails(ctx context addressMapping[hexutil.Encode(curNotification.Address)] = &addr notificationDetails.Withdrawal = append(notificationDetails.Withdrawal, t.NotificationEventWithdrawal{ Index: curNotification.ValidatorIndex, - Amount: decimal.NewFromUint64(curNotification.Amount), + Amount: decimal.NewFromUint64(curNotification.Amount).Mul(decimal.NewFromFloat(params.GWei)), // Amounts have to be in WEI Address: addr, }) case types.NetworkLivenessIncreasedEventName,