Skip to content

Commit

Permalink
Disable deposit to zk when connected to L1
Browse files Browse the repository at this point in the history
  • Loading branch information
bobo-k2 committed Jan 2, 2025
1 parent 0d11b19 commit 04bd37c
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/hooks/bridge/useLayerZeroBridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ import { HistoryTxType, addLzHistories } from 'src/modules/account';
import { isHex } from '@polkadot/util';

export const useLayerZeroBridge = () => {
const { isAstar } = useNetworkInfo();

const lzTokens = ref<LayerZeroToken[]>([]);
const selectedToken = ref<LayerZeroToken>(LayerZeroTokens[0]);
const importTokenAddress = ref<string>('');
Expand All @@ -37,12 +35,8 @@ export const useLayerZeroBridge = () => {
const isGasPayable = ref<boolean | undefined>(undefined);
const isLoadingGasPayable = ref<boolean>(true);
const errMsg = ref<string>('');
const fromChainName = ref<LayerZeroNetworkName>(
isAstar.value ? LayerZeroNetworkName.AstarEvm : LayerZeroNetworkName.AstarZk
);
const toChainName = ref<LayerZeroNetworkName>(
isAstar.value ? LayerZeroNetworkName.AstarZk : LayerZeroNetworkName.AstarEvm
);
const fromChainName = ref<LayerZeroNetworkName>(LayerZeroNetworkName.AstarZk);
const toChainName = ref<LayerZeroNetworkName>(LayerZeroNetworkName.AstarEvm);
const isApproved = ref<boolean>(false);
const isApproving = ref<boolean>(false);
const isApproveMaxAmount = ref<boolean>(false);
Expand Down

0 comments on commit 04bd37c

Please sign in to comment.