- Rename calculateAmount to fetchRate to be more descriptive

- Add Disable Exchange change reaction to save in shared prefs [skip ci]
This commit is contained in:
OmarHatem
2022-12-08 21:14:42 +02:00
parent d0c22aa082
commit 4b1e9a10eb
8 changed files with 13 additions and 8 deletions
@@ -311,7 +311,7 @@ abstract class ExchangeViewModelBase with Store {
final result = await Future.wait<double>(
_tradeAvailableProviders
.where((element) => !isFixedRateMode || element.supportsFixedRate)
.map((element) => element.calculateAmount(
.map((element) => element.fetchRate(
from: depositCurrency,
to: receiveCurrency,
amount: amount,