nucypher / nucypher-monitor

NuCypher network intelligence crawler and web dashboard
7 stars 15 forks source link

Add current total supply to /supply_information endpoint #86

Closed derekpierre closed 3 years ago

derekpierre commented 3 years ago

Related to #80, follow-up to #81.

Also based over #85 since the monitor is currently running that code (so tested) and won't run properly without it. We should merge #85 and then this PR.

derekpierre commented 3 years ago

Current supply_information endpoint output:

{
   "initial_supply":{
      "total_allocated":1000000000,
      "locked_allocations":{
         "saft2":80000000,
         "team":106000000,
         "company":200000000,
         "worklock":225000000,
         "university":19500000
      },
      "unlocked_allocations":{
         "saft1":319000000,
         "casi":9000000,
         "vested":0,
         "ecosystem":41500000
      }
   },
   "staking_rewards_supply":{
      "total_allocated":2885390081.75,
      "staking_rewards_issued":12073806.44,
      "staking_rewards_remaining":2873316275.3
   },
   "max_supply":3885390081.75,
   "current_total_supply":1012073806.44,
   "est_circulating_supply":369500000
}