mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 20:39:51 +00:00
Cw 897 stable coins exchanges rate issue (#1939)
* update amount in UI when best rate changes * minor fixes * update rate when amount has changed
This commit is contained in:
parent
066eec2b26
commit
c88809133f
5 changed files with 36 additions and 21 deletions
|
@ -12,6 +12,7 @@ import 'package:cake_wallet/exchange/trade_request.dart';
|
|||
import 'package:cake_wallet/exchange/trade_state.dart';
|
||||
import 'package:cake_wallet/exchange/utils/currency_pairs_utils.dart';
|
||||
import 'package:cw_core/crypto_currency.dart';
|
||||
import 'package:cw_core/utils/print_verbose.dart';
|
||||
import 'package:http/http.dart';
|
||||
|
||||
class SideShiftExchangeProvider extends ExchangeProvider {
|
||||
|
@ -152,7 +153,7 @@ class SideShiftExchangeProvider extends ExchangeProvider {
|
|||
|
||||
return double.parse(responseJSON['rate'] as String);
|
||||
} catch (e) {
|
||||
log('Error fetching rate in SideShift Provider: ${e.toString()}');
|
||||
printV(e.toString());
|
||||
return 0.00;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue