You are viewing a single comment's thread:
Not sure, but I think so. Here is the script, for Orca, just divide by 1000.
import requests
def get_vests_per_hp():
payload = {
"jsonrpc": "2.0",
"method": "condenser_api.get_dynamic_global_properties",
"params": [],
"id": 1
}
r = requests.post("https://api.hive.blog", json=payload)
props = r.json()["result"]
hive = float(props["total_vesting_fund_hive"].split()[0])
vests = float(props["total_vesting_shares"].split()[0])
vests_per_hp = vests / hive
hp_per_vest = hive / vests
print(f"total_vesting_fund_hive : {hive:,.3f} HIVE")
print(f"total_vesting_shares : {vests:,.3f} VESTS")
print(f"---")
print(f"VESTS per HP : {vests_per_hp:,.6f}")
print(f"HP per VEST : {hp_per_vest:.10f}")
print(f"---")
whale_threshold = 1_000_000_000 / vests_per_hp
print(f"{whale_threshold:,.3f} HP are needed to become a whale (1,000,000,000 VESTS)")</code>
if name == "main":
get_vests_per_hp()
Greatly appreciated! 🤗