From 1c00913cb8961188ade99e69accf0bc690c128d2 Mon Sep 17 00:00:00 2001 From: martonp Date: Mon, 21 Oct 2024 18:10:10 +0200 Subject: [PATCH] Update UI --- client/webserver/locales/en-us.go | 6 ++ .../webserver/site/src/html/mmsettings.tmpl | 28 +++++++ client/webserver/site/src/js/mm.ts | 26 ++++++- client/webserver/site/src/js/mmsettings.ts | 73 +++++++++++++++++-- client/webserver/site/src/js/registry.ts | 4 + 5 files changed, 127 insertions(+), 10 deletions(-) diff --git a/client/webserver/locales/en-us.go b/client/webserver/locales/en-us.go index cff6a9089e..1f837b1db4 100644 --- a/client/webserver/locales/en-us.go +++ b/client/webserver/locales/en-us.go @@ -653,4 +653,10 @@ var EnUS = map[string]*intl.Translation{ "Transaction": {T: "Transaction"}, "Value": {T: "Value"}, "Prepaid bond redeemed": {T: "Prepaid bond redeemed!"}, + "Top up fee reserves": {T: "Top up fee reserves"}, + "top_up_fee_reserves_tooltip": {T: "When enabled, if the bot's fee reserves run too low, it will be allocated additional available funds from the wallet to be able to cover all configured placements. This is only applicable when the fee asset is neither the base nor quote asset."}, + "Allow external transfers": {T: "Allow external transfers"}, + "external_transfers_tooltip": {T: "When enabled, the bot will be able to transfer funds between the DEX and the CEX."}, + "Internal transfers only": {T: "Internal transfers only"}, + "internal_only_tooltip": {T: "When enabled, the bot will be able to use any available funds in the wallet to simulate a transfer between the DEX and the CEX, (i.e. increase the bot's DEX balance and decrease the bot's CEX balance when a withdrawal needs to be made) but no actual transfers will be made."}, } diff --git a/client/webserver/site/src/html/mmsettings.tmpl b/client/webserver/site/src/html/mmsettings.tmpl index 2402fef851..7f18f3797f 100644 --- a/client/webserver/site/src/html/mmsettings.tmpl +++ b/client/webserver/site/src/html/mmsettings.tmpl @@ -659,6 +659,16 @@ Knobs + + {{- /* TOP UP FEE RESERVES */ -}} + + {{- /* CEX REBALANCE CHECKBOX */ -}}