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
lib
|
@ -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(),
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue