diff --git a/server.py b/server.py index 7a929df..585f441 100644 --- a/server.py +++ b/server.py @@ -186,10 +186,9 @@ def get_token_price(token_address: str): except: return 0 -@cache.file_cache() def getTokenSupplyString() -> str: - supply = solana_client.get_token_supply(stWDBRN_token_mint) - return supply.value.ui_amount_string + supply = getTokenSupply() + return "{:.2f}".format(supply) @cache.file_cache() def getTokenSupply() -> int: