mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-18 05:51:34 +02:00
Revert SimpleSwap changes since we disabled it for fixed rate
This commit is contained in:
@@ -53,7 +53,7 @@ class SimpleSwapExchangeProvider extends ExchangeProvider {
|
||||
'currency_from': fromCurrency,
|
||||
'currency_to': toCurrency,
|
||||
'amount': amount.toString(),
|
||||
'fixed': (!isFixedRateMode).toString()
|
||||
'fixed': isFixedRateMode.toString()
|
||||
};
|
||||
final uri = Uri.https(apiAuthority, getEstimatePath, params);
|
||||
final response = await get(uri);
|
||||
@@ -86,7 +86,7 @@ class SimpleSwapExchangeProvider extends ExchangeProvider {
|
||||
"currency_from": _normalizeCryptoCurrency(_request.from),
|
||||
"currency_to": _normalizeCryptoCurrency(_request.to),
|
||||
"amount": _request.amount,
|
||||
"fixed": !isFixedRateMode,
|
||||
"fixed": isFixedRateMode,
|
||||
"user_refund_address": _request.refundAddress,
|
||||
"address_to": _request.address
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user