mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-24 11:36:21 +00:00
calculate best rate based on min/max amount
This commit is contained in:
parent
091ac41ee2
commit
3bcd31ac44
1 changed files with 1 additions and 1 deletions
|
@ -296,7 +296,7 @@ abstract class ExchangeViewModelBase with Store {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _calculateBestRate() async {
|
Future<void> _calculateBestRate() async {
|
||||||
final amount = double.tryParse(depositAmount) ?? double.tryParse(receiveAmount) ?? 1;
|
final amount = limits.min ?? limits.max ?? 1;
|
||||||
|
|
||||||
final result = await Future.wait<double>(
|
final result = await Future.wait<double>(
|
||||||
_tradeAvailableProviders
|
_tradeAvailableProviders
|
||||||
|
|
Loading…
Reference in a new issue