Check if fixed rate

This commit is contained in:
Godwin Asuquo 2023-02-06 21:42:17 +02:00
parent 032a8c8c33
commit 37045578c2

View file

@ -160,8 +160,8 @@ class TrocadorExchangeProvider extends ExchangeProvider {
'ticker_to': to.title.toLowerCase(), 'ticker_to': to.title.toLowerCase(),
'network_from': _networkFor(from), 'network_from': _networkFor(from),
'network_to': _networkFor(to), 'network_to': _networkFor(to),
'amount_from': amount.toString(), if (!isFixedRateMode) 'amount_from': amount.toString(),
'amount_to': amount.toString(), if (isFixedRateMode) 'amount_to': amount.toString(),
'payment': isFixedRateMode ? 'True' : 'False', 'payment': isFixedRateMode ? 'True' : 'False',
'min_kycrating': 'C', 'min_kycrating': 'C',
'markup': '3', 'markup': '3',