+
+ {localize('popups.withdrawFromL2.title')}
+
+
{localize('popups.withdrawFromL2.body')}
+ {#if address}
+
+ {:else}
+
+
+
+ {/if}
+
+
+
+
+
diff --git a/packages/shared/lib/auxiliary/popup/enums/popup-id.enum.ts b/packages/shared/lib/auxiliary/popup/enums/popup-id.enum.ts
index c0378ef4623..568a7fab5d4 100644
--- a/packages/shared/lib/auxiliary/popup/enums/popup-id.enum.ts
+++ b/packages/shared/lib/auxiliary/popup/enums/popup-id.enum.ts
@@ -49,4 +49,5 @@ export enum PopupId {
VestingCollect = 'vestingCollect',
PayoutDetails = 'payoutDetails',
VestingRewardsFinder = 'vestingRewardsFinder',
+ WithdrawFromL2 = 'withdrawFromL2',
}
diff --git a/packages/shared/lib/core/layer-2/constants/withdraw.constant.ts b/packages/shared/lib/core/layer-2/constants/withdraw.constant.ts
index 6f807a1fb1a..bb28c9b935b 100644
--- a/packages/shared/lib/core/layer-2/constants/withdraw.constant.ts
+++ b/packages/shared/lib/core/layer-2/constants/withdraw.constant.ts
@@ -1 +1 @@
-export const WITHDRAW = 0x9dcc0f41;
\ No newline at end of file
+export const WITHDRAW = 0x9dcc0f41
diff --git a/packages/shared/lib/core/layer-2/helpers/getArchivedBaseTokens.ts b/packages/shared/lib/core/layer-2/helpers/getArchivedBaseTokens.ts
index ac8165f4d92..29ace955b4b 100644
--- a/packages/shared/lib/core/layer-2/helpers/getArchivedBaseTokens.ts
+++ b/packages/shared/lib/core/layer-2/helpers/getArchivedBaseTokens.ts
@@ -1,18 +1,20 @@
-const URL =
- "https://archive.evm.shimmer.shimmer.network/v1/chains/smr1prxvwqvwf7nru5q5xvh5thwg54zsm2y4wfnk6yk56hj3exxkg92mx20wl3s/core/accounts/account/{address}/balance";
+import { get } from 'svelte/store'
+import { activeProfile } from '@core/profile'
+import { DEFAULT_CHAIN_CONFIGURATIONS } from '@core/network'
interface Response {
- baseTokens: number;
+ baseTokens: number
}
export async function getArchivedBaseTokens(address: string): Promise