Function convertToBalanceWithDecimal

  • Extract decimals from the balance. Example convertToBalanceWithDecimal("50000000000", 10) // 5

    Parameters

    • balance: string | number
    • decimal: number

    Returns BigNumber