Skip to content

Commit

Permalink
fix(bridge-ui): fix funds message (#17507)
Browse files Browse the repository at this point in the history
  • Loading branch information
KorbinianK authored Jun 6, 2024
1 parent a2daec6 commit 55293a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
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

0 comments on commit 55293a5

Please sign in to comment.