public static string ToCurrencyLabel(this UserBalanceItemModel currency) { if (currency != null) { return(string.Format("{0}({1})", currency.Name, currency.Symbol)); } return(string.Empty); }
public static bool IsZeroBalance(this UserBalanceItemModel balance) { return(balance.PendingWithdraw <= 0 && balance.PoolPending <= 0 && balance.HeldForTrades <= 0 && balance.Available <= 0); }