This commit is contained in:
M 2020-11-10 13:46:58 +02:00
parent 03f47e393c
commit c86c44a936
2 changed files with 6 additions and 6 deletions

View file

@ -89,8 +89,8 @@ class XMRTOExchangeProvider extends ExchangeProvider {
final url = await getApiUri() + _orderCreateUriSufix; final url = await getApiUri() + _orderCreateUriSufix;
final body = { final body = {
'amount': _request.isBTCRequest 'amount': _request.isBTCRequest
? _request.receiveAmount.replaceAll(',', '.') ? _request.receiveAmount
: _request.amount.replaceAll(',', '.'), : _request.amount,
'amount_currency': _request.isBTCRequest 'amount_currency': _request.isBTCRequest
? _request.to.toString() ? _request.to.toString()
: _request.from.toString(), : _request.from.toString(),

View file

@ -200,8 +200,8 @@ abstract class ExchangeViewModelBase with Store {
request = XMRTOTradeRequest( request = XMRTOTradeRequest(
from: depositCurrency, from: depositCurrency,
to: receiveCurrency, to: receiveCurrency,
amount: depositAmount, amount: depositAmount?.replaceAll(',', '.'),
receiveAmount: receiveAmount, receiveAmount: receiveAmount?.replaceAll(',', '.'),
address: receiveAddress, address: receiveAddress,
refundAddress: depositAddress, refundAddress: depositAddress,
isBTCRequest: isReceiveAmountEntered); isBTCRequest: isReceiveAmountEntered);
@ -213,7 +213,7 @@ abstract class ExchangeViewModelBase with Store {
request = ChangeNowRequest( request = ChangeNowRequest(
from: depositCurrency, from: depositCurrency,
to: receiveCurrency, to: receiveCurrency,
amount: depositAmount, amount: depositAmount?.replaceAll(',', '.'),
refundAddress: depositAddress, refundAddress: depositAddress,
address: receiveAddress); address: receiveAddress);
amount = depositAmount; amount = depositAmount;
@ -224,7 +224,7 @@ abstract class ExchangeViewModelBase with Store {
request = MorphTokenRequest( request = MorphTokenRequest(
from: depositCurrency, from: depositCurrency,
to: receiveCurrency, to: receiveCurrency,
amount: depositAmount, amount: depositAmount?.replaceAll(',', '.'),
refundAddress: depositAddress, refundAddress: depositAddress,
address: receiveAddress); address: receiveAddress);
amount = depositAmount; amount = depositAmount;