1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-08 21:52:42 +00:00

fix(common/tools): cast a wider net when looking for CMC match

This commit is contained in:
matejcik 2021-03-01 11:32:21 +01:00 committed by matejcik
parent ed0ac98970
commit c101754842

View File

@ -69,7 +69,7 @@ def init(api_key, refresh=None):
market_cap = coin["quote"]["USD"]["market_cap"] market_cap = coin["quote"]["USD"]["market_cap"]
price = coin["quote"]["USD"]["price"] price = coin["quote"]["USD"]["price"]
if market_cap is not None: if market_cap is not None:
cap_data[slug] = int(market_cap) cap_data[slug] = cap_data[symbol] = int(market_cap)
price_data[symbol] = price price_data[symbol] = price
if platform is not None and platform["name"] == "Ethereum": if platform is not None and platform["name"] == "Ethereum":
address = platform["token_address"].lower() address = platform["token_address"].lower()