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 body = {
'amount': _request.isBTCRequest
? _request.receiveAmount.replaceAll(',', '.')
: _request.amount.replaceAll(',', '.'),
? _request.receiveAmount
: _request.amount,
'amount_currency': _request.isBTCRequest
? _request.to.toString()
: _request.from.toString(),

View file

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