From f61b56407b5734b63b11ba9c3a2a2456db62f149 Mon Sep 17 00:00:00 2001 From: Alfred Kamanda Date: Fri, 6 Feb 2026 16:19:45 +0300 Subject: [PATCH] rename the flag to flag_no_stable_vouchers --- handlers/application/balance.go | 6 +++--- services/registration/pay_debt.vis | 2 +- services/registration/pool_deposit.vis | 2 +- services/registration/pp.csv | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/handlers/application/balance.go b/handlers/application/balance.go index b45e369..ad9a2aa 100644 --- a/handlers/application/balance.go +++ b/handlers/application/balance.go @@ -119,7 +119,7 @@ func (h *MenuHandlers) CalculateCreditAndDebt(ctx context.Context, sym string, i l.AddDomain("default") flag_api_call_error, _ := h.flagManager.GetFlag("flag_api_call_error") - flag_no_pay_debt_vouchers, _ := h.flagManager.GetFlag("flag_no_pay_debt_vouchers") + flag_no_stable_vouchers, _ := h.flagManager.GetFlag("flag_no_stable_vouchers") // default response res.FlagReset = append(res.FlagReset, flag_api_call_error) @@ -161,11 +161,11 @@ func (h *MenuHandlers) CalculateCreditAndDebt(ctx context.Context, sym string, i // No stable vouchers → cannot pay debt if len(filteredSwappableVouchers) == 0 { - res.FlagSet = append(res.FlagSet, flag_no_pay_debt_vouchers) + res.FlagSet = append(res.FlagSet, flag_no_stable_vouchers) return res, nil } - res.FlagReset = append(res.FlagReset, flag_no_pay_debt_vouchers) + res.FlagReset = append(res.FlagReset, flag_no_stable_vouchers) // Process stable vouchers for later use data := store.ProcessVouchers(filteredSwappableVouchers) diff --git a/services/registration/pay_debt.vis b/services/registration/pay_debt.vis index 147fe06..7cd5592 100644 --- a/services/registration/pay_debt.vis +++ b/services/registration/pay_debt.vis @@ -1,5 +1,5 @@ CATCH no_voucher flag_no_active_voucher 1 -CATCH no_stable_voucher flag_no_pay_debt_vouchers 1 +CATCH no_stable_voucher flag_no_stable_vouchers 1 LOAD calculate_max_pay_debt 0 RELOAD calculate_max_pay_debt MAP calculate_max_pay_debt diff --git a/services/registration/pool_deposit.vis b/services/registration/pool_deposit.vis index d93dfec..29b0182 100644 --- a/services/registration/pool_deposit.vis +++ b/services/registration/pool_deposit.vis @@ -1,5 +1,5 @@ CATCH no_voucher flag_no_active_voucher 1 -CATCH no_stable_voucher flag_no_pay_debt_vouchers 1 +CATCH no_stable_voucher flag_no_stable_vouchers 1 LOAD get_pool_deposit_vouchers 0 MAP get_pool_deposit_vouchers MOUT back 0 diff --git a/services/registration/pp.csv b/services/registration/pp.csv index 92ba16d..3911af7 100644 --- a/services/registration/pp.csv +++ b/services/registration/pp.csv @@ -36,4 +36,4 @@ flag,flag_incorrect_pool,42,this is set when the user selects an invalid pool flag,flag_low_swap_amount,43,this is set when the swap max limit is less than 0.1 flag,flag_alias_unavailable,44,this is set when the preferred alias is not available flag,flag_swap_transaction,45,this is set when the transaction will involve performing a swap -flag,flag_no_pay_debt_vouchers,46,this is set when the user does not have a stable voucher to pay debt +flag,flag_no_stable_vouchers,46,this is set when the user does not have a stable voucher