From b860c11180508d75c31f8862f2bc1a1e341044b4 Mon Sep 17 00:00:00 2001 From: Michal Vanek Date: Thu, 19 Dec 2024 10:06:38 +0100 Subject: [PATCH] fix(coinmarket): fix send all amount mismatch with created trade --- .../hooks/wallet/coinmarket/form/useCoinmarketExchangeForm.ts | 1 - .../src/hooks/wallet/coinmarket/form/useCoinmarketSellForm.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/packages/suite/src/hooks/wallet/coinmarket/form/useCoinmarketExchangeForm.ts b/packages/suite/src/hooks/wallet/coinmarket/form/useCoinmarketExchangeForm.ts index fdce997a18a..d09774f8497 100644 --- a/packages/suite/src/hooks/wallet/coinmarket/form/useCoinmarketExchangeForm.ts +++ b/packages/suite/src/hooks/wallet/coinmarket/form/useCoinmarketExchangeForm.ts @@ -554,7 +554,6 @@ export const useCoinmarketExchangeForm = ({ address: sendAddress, amount: sendStringAmount, destinationTag: sendPaymentExtraId, - setMaxOutputId: values.setMaxOutputId, }); // in case of not success, recomposeAndSign shows notification if (result?.success) { diff --git a/packages/suite/src/hooks/wallet/coinmarket/form/useCoinmarketSellForm.ts b/packages/suite/src/hooks/wallet/coinmarket/form/useCoinmarketSellForm.ts index 008fdc1a064..7a55e387009 100644 --- a/packages/suite/src/hooks/wallet/coinmarket/form/useCoinmarketSellForm.ts +++ b/packages/suite/src/hooks/wallet/coinmarket/form/useCoinmarketSellForm.ts @@ -498,7 +498,6 @@ export const useCoinmarketSellForm = ({ address: destinationAddress, amount: cryptoStringAmount, destinationTag: destinationPaymentExtraId, - setMaxOutputId: values.setMaxOutputId, }); if (result?.success) { // send txid to the server as confirmation