Skip to content

Commit

Permalink
maintain bridge solana
Browse files Browse the repository at this point in the history
  • Loading branch information
haunv3 committed Dec 12, 2024
1 parent a03f92a commit 626d3b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/Balance/TransferConvertToken/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
toDisplay,
TokenItemType,
BTC_CONTRACT,
tonNetworkMainnet
tonNetworkMainnet,
solChainId
} from '@oraichain/oraidex-common';
import loadingGif from 'assets/gif/loading.gif';
import ArrowDownIcon from 'assets/icons/arrow.svg?react';
Expand Down Expand Up @@ -492,8 +493,10 @@ const TransferConvertToken: FC<TransferConvertProps> = ({
evmChains.find((chain) => chain.chainId === token.chainId) ||
btcChains.find((chain) => chain.chainId !== token.chainId)
) {
const isBridgeOraichainToSolana = toNetworkChainId === solChainId;
const isValidateFeeTon = bridgeFeeTon ? convertAmount < bridgeFeeTon : false;
const isDisabled =
isBridgeOraichainToSolana ||
transferLoading ||
!addressTransfer ||
receivedAmount < 0 ||
Expand Down

0 comments on commit 626d3b1

Please sign in to comment.