prevent users from inputting amounts less than 0.1

This commit is contained in:
Alfred Kamanda 2026-02-07 17:29:40 +03:00
parent 857e237996
commit 35692d2bfd
Signed by: Alfred-mk
GPG Key ID: E60B2165A97F4D41

View File

@ -585,7 +585,7 @@ func (h *MenuHandlers) ValidateAmount(ctx context.Context, sym string, input []b
return res, nil
}
if inputAmount > balanceValue {
if inputAmount > balanceValue || inputAmount < 0.1{
res.FlagSet = append(res.FlagSet, flag_invalid_amount)
res.Content = amountStr
return res, nil