utils: round inputAmount to avoid mantissa err

This commit is contained in:
nahuhh
2025-06-14 15:32:16 +00:00
parent aa9b1c0eb9
commit 740924632e

View File

@@ -55,7 +55,7 @@ def validateAmountString(amount, ci):
def inputAmount(amount_str, ci): def inputAmount(amount_str, ci):
validateAmountString(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): def get_data_entry_or(post_data, name, default):