Skip to content

Commit

Permalink
Merge pull request #13 from the-standard/202406-snagging
Browse files Browse the repository at this point in the history
chore: add temp debugging
  • Loading branch information
ZakMooney authored Jun 26, 2024
2 parents f780186 + 695559d commit 784ccc5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/liquidation-pools/StakedAssets.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const StakedAssets = ({

const isLoading = loading;

console.log('DEBUG true')
console.log('DEBUG TRUE')

return (
<>
Expand Down
13 changes: 10 additions & 3 deletions src/components/liquidation-pools/WithdrawModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 784ccc5

Please sign in to comment.