From 5f5249d94ffc01020a15eb157cbf1f21642ca114 Mon Sep 17 00:00:00 2001 From: maro Date: Fri, 3 Jun 2022 02:20:53 +0900 Subject: [PATCH] remove: unnecessary deps and console.log --- src/forms/SwapForm.tsx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/forms/SwapForm.tsx b/src/forms/SwapForm.tsx index 8ef8b12b..ab02e4ef 100644 --- a/src/forms/SwapForm.tsx +++ b/src/forms/SwapForm.tsx @@ -865,10 +865,7 @@ const SwapForm = ({ type, tabs }: { type: Type; tabs: TabViewProps }) => { }) : "0", token: from, - beliefPrice: `${decimal( - div(value1, value2), - 18 - )}`, + beliefPrice: `${decimal(div(value1, value2), 18)}`, }) } else { msgs = await generateContractMessages( @@ -903,16 +900,11 @@ const SwapForm = ({ type, tabs }: { type: Type; tabs: TabViewProps }) => { }`, } - console.log("txOptions") - console.log(txOptions) - const signMsg = await terra.tx.create( [{ address: walletAddress }], txOptions ) - console.log("signMsg") - console.log(signMsg) txOptions.fee = signMsg.auth_info.fee const extensionResult = await terraExtensionPost(txOptions) @@ -937,7 +929,6 @@ const SwapForm = ({ type, tabs }: { type: Type; tabs: TabViewProps }) => { to, slippageTolerance, tokenInfo1, - tokenInfo2, getMsgs, profitableQuery, lpContract,