mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-25 05:58:42 +01:00
CAKE-18 | created fiat convertation service and fiat convertation store; added calculating price to bootstrap; applied fiat convertation store to balance view model
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import 'dart:async';
|
||||
import 'package:cake_wallet/src/domain/common/fiat_currency.dart';
|
||||
import 'package:cake_wallet/src/domain/common/crypto_currency.dart';
|
||||
import 'package:cake_wallet/src/domain/common/fetch_price.dart';
|
||||
|
||||
class FiatConvertationService {
|
||||
Future<double> getPrice({CryptoCurrency crypto, FiatCurrency fiat}) async {
|
||||
return await fetchPriceFor(crypto: crypto, fiat: fiat);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user