Merge pull request #316 from nahuhh/pr/mantissa

utils: round inputAmount to avoid mantissa err
This commit is contained in:
Gerlof van Ek
2025-06-20 15:44:49 +02:00
committed by GitHub

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):