mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
Exchange rate update
use exchange rate value instead of string to calculate balance
This commit is contained in:
parent
86917c2ff3
commit
b2a80d8522
1 changed files with 1 additions and 1 deletions
|
@ -358,7 +358,7 @@ class Plugin(BasePlugin):
|
||||||
if quote:
|
if quote:
|
||||||
price_text = "1 BTC~%s"%quote
|
price_text = "1 BTC~%s"%quote
|
||||||
fiat_currency = quote[-3:]
|
fiat_currency = quote[-3:]
|
||||||
btc_price = quote[:-4]
|
btc_price = self.btc_rate
|
||||||
fiat_balance = Decimal(btc_price) * (Decimal(btc_balance)/100000000)
|
fiat_balance = Decimal(btc_price) * (Decimal(btc_balance)/100000000)
|
||||||
balance_text = "(%.2f %s)" % (fiat_balance,fiat_currency)
|
balance_text = "(%.2f %s)" % (fiat_balance,fiat_currency)
|
||||||
text = " " + balance_text + " " + price_text + " "
|
text = " " + balance_text + " " + price_text + " "
|
||||||
|
|
Loading…
Add table
Reference in a new issue