Skip to content

Commit

Permalink
feat(bridge-ui-v2): add BLL warning (#14723)
Browse files Browse the repository at this point in the history
  • Loading branch information
KorbinianK committed Sep 19, 2023
1 parent 3ee161b commit 6e5b789
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/bridge-ui-v2/src/components/Bridge/Bridge.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import { routingContractsMap } from '$bridgeConfig';
import { chainConfig } from '$chainConfig';
import { FlatAlert } from '$components/Alert';
import ChainSelectorWrapper from '$components/Bridge/ChainSelectorWrapper.svelte';
import { Card } from '$components/Card';
import { successToast, warningToast } from '$components/NotificationToast';
Expand Down Expand Up @@ -50,7 +51,6 @@
if (newNetwork) {
const destChainId = $destNetwork?.id;
if (!$destNetwork?.id) return;
// determine if we simply swapped dest and src networks
if (newNetwork.id === destChainId) {
destNetwork.set(oldNetwork);
Expand Down Expand Up @@ -305,7 +305,9 @@
</div>

<TokenDropdown {tokens} bind:value={$selectedToken} />

{#if $selectedToken?.symbol === 'BLL' && !$selectedToken?.imported}
<FlatAlert class="!mt-2" message={$t('bridge.errors.bll_token')} type="warning" />
{/if}
<Amount bind:this={amountComponent} />

<div class="space-y-[16px]">
Expand Down
1 change: 1 addition & 0 deletions packages/bridge-ui-v2/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"insufficient_balance": "Not enough balance in your wallet for this token.",
"insufficient_allowance": "You need to increase your allowance in order to be able to bridge.",
"cannot_fetch_balance": "Error fetching balance. Wrong chain?",
"bll_token": "BLL has a deliberate ~50% failure rate. Refer to our guide",
"unknown_error": "An error occured",
"custom_token": {
"not_found": "Token not found!",
Expand Down

1 comment on commit 6e5b789

@vercel
Copy link

@vercel vercel bot commented on 6e5b789 Sep 19, 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-taikoxyz.vercel.app
bridge-ui-v2-internal-git-main-taikoxyz.vercel.app
bridge-ui-v2-internal.vercel.app

Please sign in to comment.