CakeWallet/lib/entities/currency_formatter.dart

12 lines
261 B
Dart
Raw Normal View History

2020-09-21 14:50:26 +03:00
import 'package:cake_wallet/entities/crypto_currency.dart';
2020-01-04 21:31:52 +02:00
String cryptoToString(CryptoCurrency crypto) {
switch (crypto) {
case CryptoCurrency.xmr:
return 'XMR';
case CryptoCurrency.btc:
return 'BTC';
2020-01-04 21:31:52 +02:00
default:
return '';
}
}