Skip to content

Commit

Permalink
support zksync<>arbitrum usdt
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 committed Nov 1, 2023
1 parent c729e3e commit a14df99
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
5 changes: 5 additions & 0 deletions packages/apps/src/bridges/lnbridge-default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ export class LnBridgeDefault extends LnBridgeBase {
sourceAddress: "0x7e101911E5FB461d78FBde3992f76F3Bf8BbA829",
targetAddress: "0xe8d55759c32fb608fD092aB2C0ef8A1F52B254d4",
};
} else if (this.sourceChain?.id === ChainID.ZKSYNC) {
this.contract = {
sourceAddress: "0x767Bc046c989f5e63683fB530f939DD34b91ceAC",
targetAddress: "0x767Bc046c989f5e63683fB530f939DD34b91ceAC",
};
} else if (isProduction()) {
this.contract = {
sourceAddress: "0x94C614DAeFDbf151E1BB53d6A201ae5fF56A9337",
Expand Down
5 changes: 4 additions & 1 deletion packages/apps/src/config/chains/arbitrum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ export const arbitrumChain: ChainConfig = {
type: "erc20",
address: "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
logo: "usdt.svg",
cross: [{ target: { network: "mantle", symbol: "USDT" }, bridge: { category: "lnbridgev20-default" } }],
cross: [
{ target: { network: "mantle", symbol: "USDT" }, bridge: { category: "lnbridgev20-default" } },
{ target: { network: "zksync", symbol: "USDT" }, bridge: { category: "lnbridgev20-default" } },
],
},
],
};
12 changes: 11 additions & 1 deletion packages/apps/src/config/chains/zksync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,15 @@ export const zksyncChain: ChainConfig = {
url: "https://explorer.zksync.io/",
},
},
tokens: [],
tokens: [
{
decimals: 6,
symbol: "USDT",
name: "USDT",
type: "erc20",
address: "0x493257fD37EDB34451f62EDf8D2a0C418852bA4C",
logo: "usdt.svg",
cross: [{ target: { network: "arbitrum", symbol: "USDT" }, bridge: { category: "lnbridgev20-default" } }],
},
],
};

0 comments on commit a14df99

Please sign in to comment.