diff --git a/hwilib/devices/ledger_bitcoin/btchip/btchipHelpers.py b/hwilib/devices/ledger_bitcoin/btchip/btchipHelpers.py index ba5b66c5f..bb74cd56b 100644 --- a/hwilib/devices/ledger_bitcoin/btchip/btchipHelpers.py +++ b/hwilib/devices/ledger_bitcoin/btchip/btchipHelpers.py @@ -21,8 +21,8 @@ import re # from pycoin -SATOSHI_PER_COIN = decimal.Decimal(1e8) -COIN_PER_SATOSHI = decimal.Decimal(1)/SATOSHI_PER_COIN +SATOSHI_PER_COIN = decimal.Decimal(100_000_000) +COIN_PER_SATOSHI = decimal.Decimal('0.00000001') def satoshi_to_btc(satoshi_count): if satoshi_count == 0: