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): add BLL warning #14723

Merged
merged 6 commits into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
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
Next Next commit
add warning for BLL
  • Loading branch information
KorbinianK committed Sep 19, 2023
commit 4e3e2abc97825214541e64787ba3b5bbe91e2526
5 changes: 4 additions & 1 deletion packages/bridge-ui-v2/src/components/Bridge/Bridge.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import { ProcessingFee } from './ProcessingFee';
import Recipient from './Recipient.svelte';
import { bridgeService, destNetwork, enteredAmount, processingFee, recipientAddress, selectedToken } from './state';
import { FlatAlert } from '$components/Alert';

let amountComponent: Amount;
let recipientComponent: Recipient;
Expand Down Expand Up @@ -305,7 +306,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": "Be aware: BLL fails ~50% by design. Check our guide!",
"unknown_error": "An error occured",
"custom_token": {
"not_found": "Token not found!",
Expand Down