From ae9e26dccca78d38a5edb0f778567351e0583981 Mon Sep 17 00:00:00 2001 From: Jeroen <1748621+hieronx@users.noreply.github.com> Date: Mon, 12 Aug 2024 14:24:52 +0200 Subject: [PATCH] Change fees in cashflows chart (#2365) --- centrifuge-app/src/components/Charts/CashflowsChart.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/centrifuge-app/src/components/Charts/CashflowsChart.tsx b/centrifuge-app/src/components/Charts/CashflowsChart.tsx index fb1cbfaaec..957cdbd6e2 100644 --- a/centrifuge-app/src/components/Charts/CashflowsChart.tsx +++ b/centrifuge-app/src/components/Charts/CashflowsChart.tsx @@ -45,10 +45,10 @@ export const CashflowsChart = ({ poolStates, pool }: Props) => { pool.currency.decimals ).toFloat() - const interest = new CurrencyBalance(day.sumInterestRepaidAmountByPeriod, pool.currency.decimals).toFloat() - const fees = - new CurrencyBalance(day.sumPoolFeesChargedAmountByPeriod ?? 0, pool.currency.decimals).toFloat() + - new CurrencyBalance(day.sumPoolFeesAccruedAmountByPeriod ?? 0, pool.currency.decimals).toFloat() + const interest = + new CurrencyBalance(day.sumInterestRepaidAmountByPeriod, pool.currency.decimals).toFloat() + + new CurrencyBalance(day.sumUnscheduledRepaidAmountByPeriod, pool.currency.decimals).toFloat() + const fees = new CurrencyBalance(day.sumPoolFeesPaidAmountByPeriod ?? 0, pool.currency.decimals).toFloat() return { name: new Date(day.timestamp), purchases, principalRepayments, interest, fees } }) || [], [poolStates, pool.currency.decimals]