Browse Source

Handle crypto reserve as decimal not float

dave/xdcc
dave 4 years ago
parent
commit
4bdce886ab
  1. 4
      examples/data/config/CryptoWalletRPC.json
  2. 2
      pyircbot/modules/CryptoWalletRPC.py

4
examples/data/config/CryptoWalletRPC.json

@ -7,7 +7,7 @@
"password": "pass",
"port": 12893,
"precision": 8,
"reserve": 0.01,
"reserve": "0.01",
"link": "https://litecoin.org/",
"addrfmt": "^[LM3][a-km-zA-HJ-NP-Z1-9]{26,33}$"
},
@ -18,7 +18,7 @@
"password": "pass",
"port": 48191,
"precision": 8,
"reserve": 0.001,
"reserve": "0.001",
"link": "http://bitcoin.org/",
"addrfmt": "^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$"
}

2
pyircbot/modules/CryptoWalletRPC.py

@ -33,7 +33,7 @@ class CryptoWalletRPC(ModuleBase):
coin["username"],
coin["password"],
coin["precision"],
coin["reserve"],
Decimal(coin["reserve"]),
re.compile(coin["addrfmt"]))
def getRpc(self, currencyAbbr):

Loading…
Cancel
Save