From 4527423a50596797eda1e968e343d15fa3211de1 Mon Sep 17 00:00:00 2001 From: Gustavo Mauricio Date: Tue, 13 Dec 2022 08:09:34 +0000 Subject: [PATCH] fix: add funds to message when depositing from wallet (#65) --- hooks/mutations/useTradeAsset.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hooks/mutations/useTradeAsset.tsx b/hooks/mutations/useTradeAsset.tsx index b16b7320..7679997b 100644 --- a/hooks/mutations/useTradeAsset.tsx +++ b/hooks/mutations/useTradeAsset.tsx @@ -60,6 +60,15 @@ const useTradeAsset = ( await creditManagerClient?.updateCreditAccount( { accountId: selectedAccount, actions }, hardcodedFee, + undefined, + depositAmount > 0 + ? [ + { + denom: tokenIn, + amount: String(depositAmount), + }, + ] + : undefined, ), { onSettled: () => {