balancednetwork / balanced-network-info

ℹ️ Balanced network analytics.
https://stats.balanced.network
MIT License
0 stars 0 forks source link

Collateral Chart improvements and fixes #128

Closed BennyOptions closed 1 year ago

BennyOptions commented 1 year ago

See video, the historical chart of sICX is not correct. When you don't hover over the chart, it's correct at ~25.6M sICX. But when hovering over the chart, it provides incorrect data.

We need to call balanceOf(loans contract) on the sICX token contract at various block heights.

BennyOptions commented 1 year ago

https://user-images.githubusercontent.com/43685868/197873434-8ef8b9c6-9aa5-47d2-aeb8-99f5320d4b73.mov

BennyOptions commented 1 year ago

Decided to use blockchain APIs to call balanceOf at varying blockheights and varying granularity to prevent over-calling the network

@hetfly

BennyOptions commented 1 year ago

Also includes adding other types of collateral to view