generated from nathanwoodburn/python-webserver-template
fix: Round token supply on ui
All checks were successful
Build Docker / BuildImage (push) Successful in 30s
All checks were successful
Build Docker / BuildImage (push) Successful in 30s
This commit is contained in:
parent
1c2cb23b15
commit
c249364464
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user