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:
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user