cake_wallet/cw_haven/lib/update_haven_rate.dart

15 lines
722 B
Dart
Raw Normal View History

2022-03-30 15:57:04 +00:00
//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';
2022-10-12 17:09:57 +00:00
import 'package:cw_haven/api/balance_list.dart';
2022-03-30 15:57:04 +00:00
//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;
// });
//}