Revert SimpleSwap changes since we disabled it for fixed rate

This commit is contained in:
OmarHatem 2022-12-06 20:10:26 +02:00
parent f14c01303f
commit a9f0466825

View file

@ -53,7 +53,7 @@ class SimpleSwapExchangeProvider extends ExchangeProvider {
'currency_from': fromCurrency, 'currency_from': fromCurrency,
'currency_to': toCurrency, 'currency_to': toCurrency,
'amount': amount.toString(), 'amount': amount.toString(),
'fixed': (!isFixedRateMode).toString() 'fixed': isFixedRateMode.toString()
}; };
final uri = Uri.https(apiAuthority, getEstimatePath, params); final uri = Uri.https(apiAuthority, getEstimatePath, params);
final response = await get(uri); final response = await get(uri);
@ -86,7 +86,7 @@ class SimpleSwapExchangeProvider extends ExchangeProvider {
"currency_from": _normalizeCryptoCurrency(_request.from), "currency_from": _normalizeCryptoCurrency(_request.from),
"currency_to": _normalizeCryptoCurrency(_request.to), "currency_to": _normalizeCryptoCurrency(_request.to),
"amount": _request.amount, "amount": _request.amount,
"fixed": !isFixedRateMode, "fixed": isFixedRateMode,
"user_refund_address": _request.refundAddress, "user_refund_address": _request.refundAddress,
"address_to": _request.address "address_to": _request.address
}; };