Skip to content

Commit

Permalink
fix(bridge-ui-v2): validation of token balance (#14755)
Browse files Browse the repository at this point in the history
  • Loading branch information
KorbinianK authored Sep 20, 2023
1 parent 2503bea commit 40bbaf1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export async function checkBalanceToBridge({
chainId: srcChainId,
});

if (!tokenAddress || tokenAddress === zeroAddress || balance === BigInt(0) || tokenBalance.value <= amount)
if (!tokenAddress || tokenAddress === zeroAddress || balance === BigInt(0) || tokenBalance.value < amount)
throw new InsufficientBalanceError('you do not have enough balance to bridge');

const bridge = bridges[token.type];
Expand Down

1 comment on commit 40bbaf1

@vercel
Copy link

@vercel vercel bot commented on 40bbaf1 Sep 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

bridge-ui-v2-internal – ./packages/bridge-ui-v2

bridge-ui-v2-internal-git-main-taikoxyz.vercel.app
bridge-ui-v2-internal-taikoxyz.vercel.app
bridge-ui-v2-internal.vercel.app

Please sign in to comment.