From 695559d915404caa11f4dece57c07dee0f52d97a Mon Sep 17 00:00:00 2001 From: Zak Date: Wed, 26 Jun 2024 11:23:02 +0100 Subject: [PATCH] chore: add temp debugging --- src/components/liquidation-pools/StakedAssets.jsx | 2 +- src/components/liquidation-pools/WithdrawModal.jsx | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/components/liquidation-pools/StakedAssets.jsx b/src/components/liquidation-pools/StakedAssets.jsx index 841338c..650bc13 100644 --- a/src/components/liquidation-pools/StakedAssets.jsx +++ b/src/components/liquidation-pools/StakedAssets.jsx @@ -20,7 +20,7 @@ const StakedAssets = ({ const isLoading = loading; - console.log('DEBUG true') + console.log('DEBUG TRUE') return ( <> diff --git a/src/components/liquidation-pools/WithdrawModal.jsx b/src/components/liquidation-pools/WithdrawModal.jsx index 3622d83..8c98764 100644 --- a/src/components/liquidation-pools/WithdrawModal.jsx +++ b/src/components/liquidation-pools/WithdrawModal.jsx @@ -63,6 +63,14 @@ const WithdrawModal = ({ const { writeContract, isError, isPending, isSuccess, error } = useWriteContract(); + const debugTstAvail = tstAvailable; + const debugFormatTstAvail = showTstAvailable; + const debugEurosAvail = eurosAvailable; + const debugFormatEurosAvail = showEurosAvailable; + + console.log({debugTstAvail}, {debugFormatTstAvail}) + console.log({debugEurosAvail}, {debugFormatEurosAvail}) + const handleApproveWithdraw = async () => { try { writeContract({ @@ -96,9 +104,8 @@ const WithdrawModal = ({ toast.error('There was a problem'); setShowError(true); // TEMP - console.log('tst-eth', parseEther(tstWithdrawAmount.toString()), parseEther(eurosWithdrawAmount.toString()), - console.log('isError:', error), -) + console.log('tst-eth123123', parseEther(tstWithdrawAmount.toString()), parseEther(eurosWithdrawAmount.toString())); + console.log('isError:', error); setClaimLoading(false); setTstWithdrawAmount(0); setEurosWithdrawAmount(0);