mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-28 11:34:52 +01:00
Check if the provider supportsFixedRate only if fixed rate is applied [skip ci]
This commit is contained in:
@@ -310,7 +310,7 @@ abstract class ExchangeViewModelBase with Store {
|
|||||||
|
|
||||||
final result = await Future.wait<double>(
|
final result = await Future.wait<double>(
|
||||||
_tradeAvailableProviders
|
_tradeAvailableProviders
|
||||||
.where((element) => element.supportsFixedRate)
|
.where((element) => !isFixedRateMode || element.supportsFixedRate)
|
||||||
.map((element) => element.calculateAmount(
|
.map((element) => element.calculateAmount(
|
||||||
from: depositCurrency,
|
from: depositCurrency,
|
||||||
to: receiveCurrency,
|
to: receiveCurrency,
|
||||||
|
|||||||
Reference in New Issue
Block a user