cake_wallet/lib/entities/currency_formatter.dart
2020-09-21 14:50:26 +03:00

12 lines
No EOL
261 B
Dart

import 'package:cake_wallet/entities/crypto_currency.dart';
String cryptoToString(CryptoCurrency crypto) {
switch (crypto) {
case CryptoCurrency.xmr:
return 'XMR';
case CryptoCurrency.btc:
return 'BTC';
default:
return '';
}
}