fix: Round token supply on ui
All checks were successful
Build Docker / BuildImage (push) Successful in 30s

This commit is contained in:
Nathan Woodburn 2024-12-05 20:56:30 +11:00
parent 1c2cb23b15
commit c249364464
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -186,10 +186,9 @@ def get_token_price(token_address: str):
except: except:
return 0 return 0
@cache.file_cache()
def getTokenSupplyString() -> str: def getTokenSupplyString() -> str:
supply = solana_client.get_token_supply(stWDBRN_token_mint) supply = getTokenSupply()
return supply.value.ui_amount_string return "{:.2f}".format(supply)
@cache.file_cache() @cache.file_cache()
def getTokenSupply() -> int: def getTokenSupply() -> int: