Skip to content

Commit

Permalink
chore(bridge-ui): update stablecoin warning and campaign info (#17716)
Browse files Browse the repository at this point in the history
  • Loading branch information
KorbinianK authored Jul 4, 2024
1 parent eb2b5c8 commit c370c7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
} from '$components/Bridge/state';
import { PUBLIC_SLOW_L1_BRIDGING_WARNING } from '$env/static/public';
import { LayerType } from '$libs/chain';
import { isStablecoin, isSupported, isWrapped, type Token, TokenType } from '$libs/token';
import { isWrapped, type Token, TokenType } from '$libs/token';
import { isToken } from '$libs/token/isToken';
import { account } from '$stores/account';
import { ethBalance } from '$stores/balance';
Expand All @@ -36,14 +36,12 @@
$: wrapped = $selectedToken !== null && isWrapped($selectedToken as Token);
$: unsupportedStableCoin =
$selectedToken !== null && !isSupported($selectedToken as Token) && isStablecoin($selectedToken as Token);
// $: unsupportedStableCoin =
// $selectedToken !== null && !isSupported($selectedToken as Token) && isStablecoin($selectedToken as Token);
$: wrappedAssetWarning = $t('bridge.alerts.wrapped_eth');
$: stableCoinWarning = $t('bridge.alerts.stable_coin');
$: if (wrapped || unsupportedStableCoin) {
$: if (wrapped) {
needsManualReviewConfirmation = true;
} else {
needsManualReviewConfirmation = false;
Expand Down Expand Up @@ -129,8 +127,3 @@ Recipient & Processing Fee
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
<Alert type="warning">{@html wrappedAssetWarning}</Alert>
{/if}

{#if unsupportedStableCoin}
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
<Alert type="warning">{@html stableCoinWarning}</Alert>
{/if}
1 change: 0 additions & 1 deletion packages/bridge-ui/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"not_enough_funds": "You do not have enough ETH to cover the processing fee and transaction fee. Please add more ETH to your wallet (>= 0.0015 ETH).",
"slow_bridging": "Please note: Bridging to L1 will take around 24hrs!",
"smart_contract_wallet": "It seems you are using a smart contract wallet. Please double check that the recipient matches your wallet on the destination or change it accordingly.",
"stable_coin": "You are bridging a stable coin. For USDC, we are currently partnering with <a target=\"_blank\" href=\"https://stargate.finance/transfer\" class=\"link\">Stargate Bridge</a> for liquidity. Consider using their bridge, as the ecosystem partners are likely using their bridged version",
"wrapped_eth": "You are bridging wrapped ETH. Please be aware that un-wrapping will only work on the original chain of the token, <span class=\"font-bold\">NOT</span> on the destination."
},
"button": {
Expand Down

0 comments on commit c370c7e

Please sign in to comment.