Skip to content

Commit

Permalink
Merge pull request #9424 from DefiLlama/hedera-unlocks
Browse files Browse the repository at this point in the history
morph LZ tokens
  • Loading branch information
waynebruce0x authored Mar 6, 2025
2 parents 61609ed + 44a49c6 commit 0a98a84
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion defi/l2/adapters/thirdParty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const hyperlane = async (): Promise<void> => {
).then((r) => r.json());
const data = await bridgePromises[bridge];
if (doneAdapters.includes(bridge)) return;
if (!addresses.eclipse) addresses.eclipse = [];
data.map(({ address }: any) => addresses.eclipse.push(address));
doneAdapters.push(bridge);
};
Expand Down Expand Up @@ -111,7 +112,22 @@ const celer = async (): Promise<void> => {
doneAdapters.push(bridge);
};

const adapters = [axelar(), wormhole(), celer(), hyperlane()];
const layerzero = async (): Promise<void> => {
const bridge = "layerzero";
if (doneAdapters.includes(bridge)) return;

const staticTokens: { [chain: string]: string[] } = {
morph: ["0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34", "0x7DCC39B4d1C53CB31e1aBc0e358b43987FEF80f7"],
};

Object.keys(staticTokens).map((chain: string) => {
addresses[chain].push(...staticTokens[chain]);
});

doneAdapters.push(bridge);
};

const adapters = [axelar(), wormhole(), celer(), hyperlane(), layerzero()];
const filteredAddresses: { [chain: Chain]: Address[] } = {};

const tokenAddresses = async (): Promise<{ [chain: Chain]: Address[] }> => {
Expand Down

0 comments on commit 0a98a84

Please sign in to comment.