You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
764 B
18 lines
764 B
4 years ago
|
import 'package:mobx/mobx.dart';
|
||
|
import 'package:cake_wallet/store/settings_store.dart';
|
||
|
import 'package:cake_wallet/store/app_store.dart';
|
||
|
import 'package:cake_wallet/entities/fiat_currency.dart';
|
||
|
|
||
|
ReactionDisposer _onCurrentFiatCurrencyChangeDisposer;
|
||
|
|
||
|
void startCurrentFiatChangeReaction(AppStore appStore, SettingsStore settingsStore) {
|
||
|
_onCurrentFiatCurrencyChangeDisposer?.reaction?.dispose();
|
||
|
_onCurrentFiatCurrencyChangeDisposer = reaction(
|
||
|
(_) => settingsStore.fiatCurrency, (FiatCurrency fiatCurrency) async {
|
||
|
final cryptoCurrency = appStore.wallet.currency;
|
||
|
// final price = await fiatConvertationService.getPrice(
|
||
|
// crypto: cryptoCurrency, fiat: fiatCurrency);
|
||
|
//
|
||
|
// fiatConvertationStore.setPrice(price);
|
||
|
});
|
||
|
}
|