Skip to content

Commit

Permalink
Merge pull request #1001 from gobitfly/BEDS-101/scale_withdawal_amounts
Browse files Browse the repository at this point in the history
fix(notifications): scale withdrawal amounts
  • Loading branch information
peterbitfly authored Oct 21, 2024
2 parents 23f73ca + 73f0f26 commit d42b8d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/pkg/api/data_access/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d42b8d4

Please sign in to comment.