mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-11 05:14:46 +00:00
CAKE-161
This commit is contained in:
parent
03f47e393c
commit
c86c44a936
2 changed files with 6 additions and 6 deletions
|
@ -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(),
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue