CW-1200-Dust-amount-error-when-sending-All (#2495)

* Add isSendAll parameter to exchange provider trade creation

* Improve send-all transaction handling and fee calculation

change.
This commit is contained in:
Serhii
2025-09-05 05:26:53 +03:00
committed by GitHub
parent 4b7a89d397
commit 2d52d4585f
5 changed files with 104 additions and 1 deletions
@@ -213,6 +213,7 @@ class LetsExchangeExchangeProvider extends ExchangeProvider {
extraId: extraId,
userCurrencyFromRaw: '${request.fromCurrency.title}_${request.fromCurrency.tag ?? ''}',
userCurrencyToRaw: '${request.toCurrency.title}_${request.toCurrency.tag ?? ''}',
isSendAll: isSendAll,
);
} catch (e) {
log(e.toString());
@@ -200,6 +200,7 @@ class StealthExExchangeProvider extends ExchangeProvider {
extraId: extraId,
userCurrencyFromRaw: '${request.fromCurrency.title}_${request.fromCurrency.tag ?? ''}',
userCurrencyToRaw: '${request.toCurrency.title}_${request.toCurrency.tag ?? ''}',
isSendAll: isSendAll,
);
} catch (e) {
log(e.toString());
@@ -260,6 +260,7 @@ class XOSwapExchangeProvider extends ExchangeProvider {
extraId: extraId,
userCurrencyFromRaw: '${request.fromCurrency.title}_${request.fromCurrency.tag ?? ''}',
userCurrencyToRaw: '${request.toCurrency.title}_${request.toCurrency.tag ?? ''}',
isSendAll: isSendAll,
);
} catch (e) {
printV(e.toString());
+1 -1
View File
@@ -119,7 +119,7 @@ class Trade extends HiveObject {
bool? isRefund;
@HiveField(21)
bool? isSendAll;
bool? isSendAll; /// Must be set on createTrade;
@HiveField(22)
String? router;