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

feat(bridge-ui-v2): cherry-pick (#14723) #14726

Merged
merged 1 commit into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
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
Loading