From db60ca06cc5220c27c5133951630234efd98a653 Mon Sep 17 00:00:00 2001 From: Steven Ewald Date: Mon, 14 Oct 2024 23:47:41 -0500 Subject: [PATCH] Changed capital to initial capital in bot container --- exchange/src/exchange/bots/bot_container.cpp | 2 +- web/app/dash/submit/form.tsx | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/exchange/src/exchange/bots/bot_container.cpp b/exchange/src/exchange/bots/bot_container.cpp index 8a77ff15..c52d2fea 100644 --- a/exchange/src/exchange/bots/bot_container.cpp +++ b/exchange/src/exchange/bots/bot_container.cpp @@ -22,7 +22,7 @@ BotContainer::generate_orders( common::decimal_quantity cumulative_quantity_held{}; for (const auto& bot : bots_) { - cumulative_interest_limit += bot->get_portfolio().get_capital(); + cumulative_interest_limit += bot->get_portfolio().get_initial_capital(); cumulative_quantity_held += bot->get_portfolio().get_holdings(bot->get_ticker()); } diff --git a/web/app/dash/submit/form.tsx b/web/app/dash/submit/form.tsx index 5c7625d9..e6563565 100644 --- a/web/app/dash/submit/form.tsx +++ b/web/app/dash/submit/form.tsx @@ -61,8 +61,6 @@ export default function SubmissionForm(props: { user: any }) { }); const onSubmit: SubmitHandler = async data => { - Swal.fire({title: "Under maintenance", text: "We are deploying a bugfix, please check back tomorrow morning"}); - return; const responsePromise = fetch("/api/protected/db/user/createAlgo", { method: "POST", body: JSON.stringify(data),