Skip to content

Commit

Permalink
(BIDS-2566) Use FormatIncomeClEl for all earnings on dashboard (#2617)
Browse files Browse the repository at this point in the history
  • Loading branch information
D13ce authored Oct 19, 2023
1 parent f7287ad commit 0e0984c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions handlers/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,9 @@ func GetValidatorEarnings(validators []uint64, currency string) (*types.Validato
TotalDeposits: int64(totalDeposits),
ProposalData: validatorProposalData,
}
earnings.LastDayFormatted = utils.FormatElCurrency(earnings.Income1d.Total, currency, 5, true, true, true)
earnings.LastWeekFormatted = utils.FormatElCurrency(earnings.Income7d.Total, currency, 5, true, true, true)
earnings.LastMonthFormatted = utils.FormatElCurrency(earnings.Income31d.Total, currency, 5, true, true, true)
earnings.LastDayFormatted = utils.FormatIncomeClEl(earnings.Income1d, currency)
earnings.LastWeekFormatted = utils.FormatIncomeClEl(earnings.Income7d, currency)
earnings.LastMonthFormatted = utils.FormatIncomeClEl(earnings.Income31d, currency)
earnings.TotalFormatted = utils.FormatIncomeClEl(earnings.IncomeTotal, currency)
// earnings.TotalChangeFormatted = utils.FormatIncome(income.ClIncomeTotal+currentDayClIncome+int64(totalDeposits), currency, true)
earnings.TotalBalance = utils.FormatElCurrency(totalBalance, currency, 5, true, false, false)
Expand Down

0 comments on commit 0e0984c

Please sign in to comment.