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

fix(bridge-ui): fix funds message #17507

Merged
merged 1 commit into from
Jun 6, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,16 @@
}

$: if ($selectedToken?.type === TokenType.ETH) {
if ($processingFee + $enteredAmount > $ethBalance || !hasEnoughEth) {
if ($processingFee + $enteredAmount > $ethBalance) {
hasEnoughFundsToContinue = false;
} else {
hasEnoughFundsToContinue = true;
}
} else if ($processingFee > $ethBalance) {
hasEnoughFundsToContinue = false;
} else {
hasEnoughFundsToContinue = true;
}
// else if (hasEnoughEth && $processingFee !== 0n) {
// hasEnoughFundsToContinue = true;
// } else {
// hasEnoughFundsToContinue = false;
// }

const dispatch = createEventDispatcher();

Expand Down
2 changes: 1 addition & 1 deletion packages/bridge-ui/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"nft_scan_again": "Scan again"
},
"alerts": {
"not_enough_funds": "You do not have enough funds to cover the processing fee and transaction fee",
"not_enough_funds": "You do not have enough ETH to cover the processing fee and transaction fee",
"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",
Expand Down