mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
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:
@@ -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());
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user