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),