From 582f349be39af1b97e6134223645a8ace7a6f715 Mon Sep 17 00:00:00 2001 From: Alfred Kamanda Date: Thu, 30 Oct 2025 11:12:16 +0300 Subject: [PATCH] handle normal send transactions based on the sym --- handlers/application/send.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/application/send.go b/handlers/application/send.go index 9c054dd..cd93102 100644 --- a/handlers/application/send.go +++ b/handlers/application/send.go @@ -335,8 +335,8 @@ func (h *MenuHandlers) MaxAmount(ctx context.Context, sym string, input []byte) // Format the active balance amount to 2 decimal places formattedBalance, _ := store.TruncateDecimalString(string(activeBal), 2) - // If normal transaction, return balance - if string(transactionType) == "normal" { + // If normal transaction, or if the sym is max_amount, return balance + if string(transactionType) == "normal" || sym == "max_amount" { res.FlagReset = append(res.FlagReset, flag_swap_transaction) res.Content = l.Get("Maximum amount: %s %s\nEnter amount:", formattedBalance, string(activeSym))