From a217046bd20a6b7fd6d5b7cc627160f01866b315 Mon Sep 17 00:00:00 2001 From: Volodymyr Biloshytskyi Date: Tue, 15 Sep 2020 16:33:53 +0300 Subject: [PATCH] Rounding error bug fix --- server/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils.py b/server/utils.py index 0583581..40d481a 100644 --- a/server/utils.py +++ b/server/utils.py @@ -48,7 +48,7 @@ def supply(height): } def satoshis(value): - return int(value * math.pow(10, 8)) + return math.ceil(value * math.pow(10, 8)) def amount(value): return round(value / math.pow(10, 8), 8)