mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-05 18:38:09 +01:00
Merge pull request #316 from nahuhh/pr/mantissa
utils: round inputAmount to avoid mantissa err
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user