Handle crypto reserve as decimal not float
This commit is contained in:
parent
9c6e1056d0
commit
4bdce886ab
@ -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}$"
|
||||
}
|
||||
|
@ -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…
Reference in New Issue
Block a user