Closed BennyOptions closed 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
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