mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-10-31 17:37:41 +00:00
15 lines
718 B
Dart
15 lines
718 B
Dart
|
//import 'package:cake_wallet/store/dashboard/fiat_conversion_store.dart';
|
||
|
import 'package:cw_core/crypto_currency.dart';
|
||
|
import 'package:cw_core/monero_amount_format.dart';
|
||
|
import 'package:cw_haven/balance_list.dart';
|
||
|
|
||
|
//Future<void> updateHavenRate(FiatConversionStore fiatConversionStore) async {
|
||
|
// final rate = getRate();
|
||
|
// final base = rate.firstWhere((row) => row.getAssetType() == 'XUSD', orElse: () => null);
|
||
|
// rate.forEach((row) {
|
||
|
// final cur = CryptoCurrency.fromString(row.getAssetType());
|
||
|
// final baseRate = moneroAmountToDouble(amount: base.getRate());
|
||
|
// final rowRate = moneroAmountToDouble(amount: row.getRate());
|
||
|
// fiatConversionStore.prices[cur] = baseRate * rowRate;
|
||
|
// });
|
||
|
//}
|