1
0

simple_config: factor out self.decimal_point and self.get_decimal_point() in favor of self.BTC_AMOUNTS_DECIMAL_POINT

This commit is contained in:
Sander van Grieken
2025-11-25 12:24:06 +01:00
parent c8dc4a557c
commit 0f2a41e078
8 changed files with 15 additions and 21 deletions

View File

@@ -615,7 +615,7 @@ class ElectrumGui(BaseElectrumGui, EventListener):
x = Decimal(text)
except Exception:
return None
power = pow(10, self.config.get_decimal_point())
power = pow(10, self.config.BTC_AMOUNTS_DECIMAL_POINT)
return int(power * x)
def read_invoice(self):