From 740924632e04f1718a8b0c08d13f4997757dd2f9 Mon Sep 17 00:00:00 2001 From: nahuhh <50635951+nahuhh@users.noreply.github.com> Date: Sat, 14 Jun 2025 15:32:16 +0000 Subject: [PATCH] utils: round inputAmount to avoid mantissa err --- basicswap/ui/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basicswap/ui/util.py b/basicswap/ui/util.py index 70be243..13f8172 100644 --- a/basicswap/ui/util.py +++ b/basicswap/ui/util.py @@ -55,7 +55,7 @@ def validateAmountString(amount, ci): def inputAmount(amount_str, ci): validateAmountString(amount_str, ci) - return make_int(amount_str, ci.exp()) + return make_int(amount_str, ci.exp(), r=1) def get_data_entry_or(post_data, name, default):