bitdao-io/bitdao-analytics

[Feature] Treasury - Inbound: Compute value

Closed this issue · 1 comments

Feature Description

BitDAO's treasury holds ERC-20 tokens. The value of these tokens needs to be aggregated and made available to downstream consumers (e.g., BitDAO website).

Steps:

  • Retrieve ERC-20 tokens held by BitDAO treasury
  • Get each token's spot price
  • Sum each token's value using its spot price
  • Record spot price
  • Store values
  • Allow retrieving these values by downstream consumers

Related to #5