Skip to content

Commit

Permalink
fix(bridge): add val validate and log (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisloh95 authored Apr 28, 2024
1 parent 3360ffa commit 27007de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/bridge/src/components/account/Status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,11 @@ export default function Status({
);
const isMantleV2 = IS_MANTLE_V2;

useEffect(() => {
// add log for user debug
console.log({ isLoading, calStatus });
}, [isLoading, calStatus]);

if (isMantleV2) {
// 0: Waiting 1:Ready to Prove [status=2 && time_left != 0]: In Challenge Period [status=2 && time_left == 0] : Ready to Finalized 3:Relayed
return (
Expand Down
1 change: 1 addition & 0 deletions apps/bridge/src/components/bridge/CTA.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export default function CTA({
) {
text = "Insufficient balance";
} else if (
selected.address &&
tokensToRevoke.includes(selected.address.toLocaleLowerCase()) &&
direction === Direction.Deposit &&
fixDecimals(allowance).gt(0) &&
Expand Down

0 comments on commit 27007de

Please sign in to comment.