From 2f290fa5d0e15b9c7d9b708a217c77626a4998b9 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Mon, 24 Jun 2019 19:45:23 +0100 Subject: [PATCH] =?UTF-8?q?[fix]=20#233:=20round=20passed=20amount=20and?= =?UTF-8?q?=20amoundUD=20floats=20=C3=97=20by=20100?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- silkaj/tx.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/silkaj/tx.py b/silkaj/tx.py index d8fd8cca..0c0bee9a 100644 --- a/silkaj/tx.py +++ b/silkaj/tx.py @@ -108,9 +108,9 @@ async def transaction_amount(amount, amountUD, allSources): if not (amount or amountUD or allSources): message_exit("--amount nor --amountUD nor --allSources is set") if amount: - return amount * 100 + return round(amount * 100) if amountUD: - return amountUD * await UDValue().ud_value + return round(amountUD * await UDValue().ud_value) def check_transaction_values( -- GitLab