export const formatBalanceNumber = (n: number, addSign = true) => {
    const roundNumber = (n: number, digits: number): number => parseInt(n.toFixed(digits))
    const formatNumber = (n: number): string => n
    >= 0 ? `${addSign ? '+' : ''}${roundNumber(n, 2).toLocaleString('ru-RU')}` :
        `${roundNumber(n, 2).toLocaleString('ru-RU')}`;

    return formatNumber(n);
}