From 308dc93a91365cf71e4b631d8a7d3327d49f87b0 Mon Sep 17 00:00:00 2001 From: Alfred Kamanda Date: Thu, 13 Nov 2025 17:09:30 +0300 Subject: [PATCH] return nil to CATCH the flag_api_call_error --- handlers/application/poolswap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/application/poolswap.go b/handlers/application/poolswap.go index 2dd2f2c..7426cd9 100644 --- a/handlers/application/poolswap.go +++ b/handlers/application/poolswap.go @@ -204,7 +204,7 @@ func (h *MenuHandlers) SwapMaxLimit(ctx context.Context, sym string, input []byt if err != nil { res.FlagSet = append(res.FlagSet, flag_api_call_error) logg.ErrorCtxf(ctx, "failed on GetSwapFromTokenMaxLimit", "error", err) - return res, err + return res, nil } // Scale down the amount