Check if fixed rate
Godwin Asuquo committed
Feb 6, 2023 at 21:42 UTC
37045578c27f3edc368fd4a5f5b71f148af62815
1 file changed
+2
-2
lib/exchange/trocador/trocador_exchange_provider.dart
+2
-2
@@ -160,8 +160,8 @@ class TrocadorExchangeProvider extends ExchangeProvider {
160
'ticker_to': to.title.toLowerCase(),
161
'network_from': _networkFor(from),
162
'network_to': _networkFor(to),
163
- 'amount_from': amount.toString(),
164
- 'amount_to': amount.toString(),
163
+ if (!isFixedRateMode) 'amount_from': amount.toString(),
164
+ if (isFixedRateMode) 'amount_to': amount.toString(),
165
'payment': isFixedRateMode ? 'True' : 'False',
166
'min_kycrating': 'C',
167
'markup': '3',