mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-10 21:04:53 +00:00
Merge branch 'main' of https://github.com/cake-tech/cake_wallet into CW-271-fixed-rate-incorrect-amount
This commit is contained in:
commit
e65bd87f06
1 changed files with 4 additions and 3 deletions
|
@ -249,11 +249,12 @@ class SideShiftExchangeProvider extends ExchangeProvider {
|
||||||
final expectedSendAmount = responseJSON['depositAmount'].toString();
|
final expectedSendAmount = responseJSON['depositAmount'].toString();
|
||||||
final deposits = responseJSON['deposits'] as List?;
|
final deposits = responseJSON['deposits'] as List?;
|
||||||
TradeState? state;
|
TradeState? state;
|
||||||
|
String? status;
|
||||||
|
|
||||||
if (deposits != null && deposits.isNotEmpty) {
|
if (deposits?.isNotEmpty ?? false) {
|
||||||
final status = deposits[0]['status'] as String;
|
status = deposits![0]['status'] as String?;
|
||||||
state = TradeState.deserialize(raw: status);
|
|
||||||
}
|
}
|
||||||
|
state = TradeState.deserialize(raw: status ?? 'created');
|
||||||
|
|
||||||
final expiredAtRaw = responseJSON['expiresAtISO'] as String;
|
final expiredAtRaw = responseJSON['expiresAtISO'] as String;
|
||||||
final expiredAt =
|
final expiredAt =
|
||||||
|
|
Loading…
Reference in a new issue