Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated wording deposit reclaim #82

Merged
merged 6 commits into from
Dec 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore - logs clean up
  • Loading branch information
setbern committed Dec 19, 2024
commit c7161ed45e2e25e001224c759f0773541ebc0205
4 changes: 0 additions & 4 deletions src/comps/Deposit.tsx
Original file line number Diff line number Diff line change
@@ -463,16 +463,12 @@ const DepositFlowReview = ({ txId }: DepositFlowReviewProps) => {
return (statusResponse?.vout[0].value || 0) / 1e8;
}, [statusResponse?.vout]);

console.log("confirmedBlockHeight", confirmedBlockHeight);
console.log("currentBlockHeight", currentBlockHeight);

const showDepositWarning = useMemo(() => {
if (confirmedBlockHeight === 0) {
return false;
} else {
const elapsedBlocks = currentBlockHeight - confirmedBlockHeight;

console.log("elapsedBlocks,", elapsedBlocks);
return elapsedBlocks >= 6;
}
}, [confirmedBlockHeight, currentBlockHeight]);
2 changes: 0 additions & 2 deletions src/hooks/use-deposit-status.ts
Original file line number Diff line number Diff line change
@@ -77,8 +77,6 @@ export function useDepositStatus(txId: string) {
}
setStatusResponse(info);

console.log("info", info);
console.log("txInfo", txInfo);
if (info.status.confirmed) {
setEmilyResponse(txInfo);

Loading