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:
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: