balancednetwork / balanced-network-info

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

Total Collateral Number is incorrect #71

Closed BennyOptions closed 3 years ago

BennyOptions commented 3 years ago

You have two options to fix this:

1.) call balanceOf on the token contract and get the balanceOf(cx66d4d90f5f113eba575bf793570135f9b10cece1)

https://tracker.icon.foundation/token/cx2609b924e33ef00b648a409245c7ea394c467824#readcontract

2.) Change the number received from getTotalCollateral to sICX terms. Right now, getTotalCollateral calculates the value of collateral in ICX, not sICX

Screen Shot 2021-10-27 at 10.13.13 PM.png