Skip to content

Commit

Permalink
Merge pull request #271 from zkLinkProtocol/feat/add_scroll_merge_token
Browse files Browse the repository at this point in the history
Feat/add scroll merge token
  • Loading branch information
zkLeonardo authored Jul 23, 2024
2 parents cefa715 + de90b6f commit 8eecb9d
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 4 deletions.
10 changes: 10 additions & 0 deletions public/img/zkJump.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion store/zksync/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const useZkSyncTokensStore = defineStore("zkSyncTokens", () => {
if (eraNetwork.value.blockExplorerApi) {
// const networkVal = route.path === "/assets" || route.path === "/balances" ? "" : eraNetwork.value.key;
const response: Api.Response.Collection<Api.Response.Token> = await $fetch(
`${eraNetwork.value.blockExplorerApi}/tokens?limit=200&key=`
`${eraNetwork.value.blockExplorerApi}/tokens?limit=300&key=`
);
const explorerTokens = response.items.map(mapApiToken);
const etherExplorerToken = explorerTokens.find((token) => token.address === ETH_TOKEN.address);
Expand Down
16 changes: 13 additions & 3 deletions utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,29 @@ export const MERGE_TOKENS =
{
symbol: "USDT",
address: "0x2F8A25ac62179B31D62D7F80884AE57464699059",
targetNetworkKeys: ["ethereum", "arbitrum", "zksync", "primary", "manta", "mantle", "optimism"],
targetNetworkKeys: ["ethereum", "arbitrum", "zksync", "primary", "manta", "mantle", "optimism", "scroll"],
decimals: 6,
},
{
symbol: "WBTC",
address: "0xDa4AaEd3A53962c83B35697Cd138cc6df43aF71f",
targetNetworkKeys: ["ethereum", "arbitrum", "zksync", "primary", "manta", "mantle", "optimism"],
targetNetworkKeys: ["ethereum", "arbitrum", "zksync", "primary", "manta", "mantle", "optimism", "scroll"],
decimals: 18,
},
{
symbol: "USDC",
address: "0x1a1A3b2ff016332e866787B311fcB63928464509",
targetNetworkKeys: ["ethereum", "arbitrum", "zksync", "primary", "manta", "mantle", "optimism", "base"],
targetNetworkKeys: [
"ethereum",
"arbitrum",
"zksync",
"primary",
"manta",
"mantle",
"optimism",
"base",
"scroll",
],
decimals: 6,
},
{
Expand Down
6 changes: 6 additions & 0 deletions views/transactions/Withdraw.vue
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,12 @@ import WithdrawalSubmitted from "@/views/transactions/WithdrawalSubmitted.vue";
import { ETH_ADDRESS } from "~/zksync-web3-nova/src/utils";
const showBridge = ref(true);
const chainList = [
{
name: "zkJump",
logo: "zkJump.svg",
url: "https://zkjump.io/app",
description: "Bridge your $ZKL from Nova to Ethereum in minutes",
},
{
name: "Orbiter Finance",
logo: "orbiter.svg",
Expand Down

0 comments on commit 8eecb9d

Please sign in to comment.