Skip to content

Commit

Permalink
Merge pull request #237 from spiehdid/master
Browse files Browse the repository at this point in the history
Add chains to EYWA
  • Loading branch information
Define101 authored Jul 1, 2024
2 parents 9295539 + 3e6b023 commit 95bca85
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/adapters/eywa/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ enum Chains {
fantom = "fantom",
ethereum = "ethereum",
optimism = "optimism",
base = "base",
gnosis = "gnosis"
}

const contractAddresses = {
Expand Down Expand Up @@ -40,6 +42,14 @@ const contractAddresses = {
portal: "0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe",
synthesis: "0xf370D9Ed0141207e81321158393Eea5D8a50CC72",
},
[Chains.base]: {
portal: "0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe",
synthesis: "0xf370D9Ed0141207e81321158393Eea5D8a50CC72",
},
[Chains.gnosis]: {
portal: "0xac8f44ceca92b2a4b30360e5bd3043850a0ffcbe",
synthesis: "0xf370D9Ed0141207e81321158393Eea5D8a50CC72",
},
};

const depositPortalEventParams: ContractEventParams = {
Expand Down Expand Up @@ -167,6 +177,8 @@ const adapter: BridgeAdapter = {
[Chains.ethereum]: constructParams(Chains.ethereum),
[Chains.optimism]: constructParams(Chains.optimism),
avalanche: constructParams(Chains.avax),
[Chains.base]: constructParams(Chains.base),
[Chains.gnosis]: constructParams(Chains.gnosis),
};

export default adapter;
2 changes: 1 addition & 1 deletion src/data/bridgeNetworkData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ export default [
iconLink: "icons:eywa",
largeTxThreshold: 10000,
url: "https://crosscurve.fi/",
chains: ["Ethereum", "Polygon", "Fantom", "Avalanche", "Arbitrum", "Optimism", "BSC"],
chains: ["Ethereum", "Polygon", "Fantom", "Avalanche", "Arbitrum", "Optimism", "BSC", "Base", "Gnosis"],
chainMapping: {
avalanche: "avax",
},
Expand Down

0 comments on commit 95bca85

Please sign in to comment.