Access community resources, and learn how to retrieve data from the Balanced smart contracts to track Balanced's usage.

Community resources

You can also track key statistics manually using the Balanced smart contracts.

Total Balanced Dollars

For everything else, view the Read Contract section on each page...

Total value locked in loans (sICX)

Find 22. getTotalCollateral
    Divide the amount by 1,000,000,000,000,000,000
    Multiply by the current USD value of sICX

Unique borrowers

Find 16. getNonzeroPositionCount

Total value locked in DEX


Find 44. totalSupply and query 1

sICX/bnUSD (in bnUSD)

Find 23. getPoolTotal and query 2, cx88fd7df7ddff82f7cc735c871dc519838cb235bb

BALN/bnUSD (in bnUSD)

Find 23. getPoolTotal and query 3, cx88fd7df7ddff82f7cc735c871dc519838cb235bb
    Divide each result by 1,000,000,000,000,000,000
    Multiply ICX by current USD price
    Add together

Unique liquidity providers

Find 43. totalDexAddresses and query:
    1 for sICX/ICX liquidity providers
    2 for sICX/bnUSD liquidity providers
    3 for BALN/bnUSD liquidity providers

Total fees

Find 3. getBalances
    Convert the string for each asset here, then divide the result by 1,000,000,000,000,000,000
    To get the USD value, multiply sICX, BALN, and ICX by their bnUSD or USDT price, then add together
Last modified 3mo ago