mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
calculate best rate based on min/max amount
This commit is contained in:
@@ -296,7 +296,7 @@ abstract class ExchangeViewModelBase with Store {
|
||||
}
|
||||
|
||||
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>(
|
||||
_tradeAvailableProviders
|
||||
|
||||
Reference in New Issue
Block a user