CAKE-43 | added the ability to enter an amount for xmr.to exchange in both currencies xmr and btc; added isReceiveAmountEntered to ExchangeViewModel; added receiveAmount and isBTCRequest to XMRTOTradeRequest; added isReceiveAmount to calculateAmount method of ExchangeProvider; fixed XMRTOExchangeProvider

This commit is contained in:
OleksandrSobol 2020-09-25 22:55:41 +03:00
parent dcbaf01118
commit bc85058ad8
8 changed files with 50 additions and 20 deletions

View file

@ -7,12 +7,16 @@ class XMRTOTradeRequest extends TradeRequest {
{@required this.from,
@required this.to,
@required this.amount,
@required this.receiveAmount,
@required this.address,
@required this.refundAddress});
@required this.refundAddress,
@required this.isBTCRequest});
final CryptoCurrency from;
final CryptoCurrency to;
final String amount;
final String receiveAmount;
final String address;
final String refundAddress;
final bool isBTCRequest;
}