From fb5d05f93c9390c5cf9f55b26073dc6496ad5dd8 Mon Sep 17 00:00:00 2001 From: HojouFotytu <36724681+HojouFotytu@users.noreply.github.com> Date: Tue, 9 Feb 2021 13:28:37 +0900 Subject: [PATCH] leveraged profits fix --- Monitor/Pages/_get/DashboardTop.cshtml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Monitor/Pages/_get/DashboardTop.cshtml b/Monitor/Pages/_get/DashboardTop.cshtml index 9793351..48ae690 100644 --- a/Monitor/Pages/_get/DashboardTop.cshtml +++ b/Monitor/Pages/_get/DashboardTop.cshtml @@ -159,11 +159,6 @@ profitPercentage = gainStrategy.CurrentValue; } } - - // Aggregate totals - double bagGain = (profitPercentage / 100) * dcaLogEntry.TotalCost * leverageValue; - Model.TotalBagCost = Model.TotalBagCost + dcaLogEntry.TotalCost; - Model.TotalBagGain = Model.TotalBagGain + bagGain; // Render the row