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

Disable deposit to zkEVM #1433

Merged
merged 4 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion src/components/bridge/ethereum/L1Bridge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export default defineComponent({
const store = useStore();
const isHandling = ref<boolean>(false);
const isLoading = computed<boolean>(() => store.getters['general/isLoading']);
const isEnabledWithdrawal = computed<boolean>(() => true);
const isEnabledWithdrawal = computed<boolean>(() => false);
impelcrypto marked this conversation as resolved.
Show resolved Hide resolved
const isHighTrafficModalOpen = ref<boolean>(false);
const isWarningHighTraffic = computed<boolean>(() => false);

Expand Down
2 changes: 1 addition & 1 deletion src/components/bridge/layerzero/LzBridge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export default defineComponent({
const store = useStore();
const isHandling = ref<boolean>(false);
const isLoading = computed<boolean>(() => store.getters['general/isLoading']);
const isEnabledWithdrawal = computed<boolean>(() => true);
const isEnabledWithdrawal = computed<boolean>(() => false);
impelcrypto marked this conversation as resolved.
Show resolved Hide resolved

const isNativeToken = computed<boolean>(() => {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/features.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Bridges
export const nativeBridgeEnabled = true;
export const layerZeroBridgeEnabled = true;
export const layerSwapBridgeEnabled = true;
export const layerSwapBridgeEnabled = false;
export const celerBridgeEnabled = true;
export const omniBridgeEnabled = true;
export const ccipMinatoBridgeEnabled = true;
Expand Down
4 changes: 2 additions & 2 deletions src/hooks/bridge/useL1Bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ export const useL1Bridge = () => {
const isGasPayable = ref<boolean | undefined>(undefined);
const isLoadingGasPayable = ref<boolean>(true);
const errMsg = ref<string>('');
const fromChainName = ref<EthBridgeNetworkName>(l1Network.value);
const toChainName = ref<EthBridgeNetworkName>(l2Network.value);
const fromChainName = ref<EthBridgeNetworkName>(l2Network.value);
const toChainName = ref<EthBridgeNetworkName>(l1Network.value);
const isApproved = ref<boolean>(false);
const isApproving = ref<boolean>(false);
const isApproveMaxAmount = ref<boolean>(false);
Expand Down
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
Loading