Function simpleFormatBalance

  • Extract decimals from the balance and converts it to human readable format

    Parameters

    • balance: string | number | BN
    • Optional decimals: number
    • Optional currency: string
    • withUnit: boolean = true

    Returns string