Skip to content

Commit

Permalink
Merge pull request #271 from XY-Finance/feature/xy_finance_cronos_zkevm
Browse files Browse the repository at this point in the history
XY Finance: add cronos zkevm config
  • Loading branch information
vrtnd committed Aug 25, 2024
2 parents 17228df + 49e6c55 commit cbd7667
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"ts-loader": "^9.3.1"
},
"dependencies": {
"@defillama/sdk": "^5.0.77",
"@defillama/sdk": "^5.0.80",
"@graphql-typed-document-node/core": "^3.2.0",
"@solana/web3.js": "^1.87.3",
"async-retry": "^1.3.1",
Expand Down
21 changes: 19 additions & 2 deletions src/adapters/xy-finance/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export enum Chain {
Blast = 'blast',
XLayer = 'xlayer',
Taiko = 'taiko',
CronosZkevm = 'cronos_zkevm',
}

export enum VAULTS_TOKEN {
Expand Down Expand Up @@ -379,6 +380,20 @@ export const YBridgeVaultsTokenContractAddress: Record<Exclude<Chain, Chain.Numb
contractAddress: '0xFa77c2DecCB21ACb9Bf196408Bf6aD5973D07762',
tokenAddress: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE'
},
},
[Chain.CronosZkevm]: {
[VAULTS_TOKEN.USDT]: {
contractAddress: '',
tokenAddress: ''
},
[VAULTS_TOKEN.USDC]: {
contractAddress: '',
tokenAddress: ''
},
[VAULTS_TOKEN.ETH]: {
contractAddress: '0xAa0b0654E79E17332d983E2351bD926cE336B9BD',
tokenAddress: '0x271602A97027ee1dd03b1E6e5dB153eB659A80b1'
},
}
}

Expand All @@ -405,7 +420,8 @@ export const YBridgeContractAddress: Record<Exclude<Chain, Chain.Numbers>, Addre
[Chain.Wemix]: "0x73Ce60416035B8D7019f6399778c14ccf5C9c7A1",
[Chain.Blast]: "0x73Ce60416035B8D7019f6399778c14ccf5C9c7A1",
[Chain.XLayer]: "0x73Ce60416035B8D7019f6399778c14ccf5C9c7A1",
[Chain.Taiko]: "0x73Ce60416035B8D7019f6399778c14ccf5C9c7A1"
[Chain.Taiko]: "0x73Ce60416035B8D7019f6399778c14ccf5C9c7A1",
[Chain.CronosZkevm]: "0xE22747472A565e96D0867741811193895b9538f2",
}

export const XYRouterContractAddress: Record<Chain, Address> = {
Expand All @@ -432,5 +448,6 @@ export const XYRouterContractAddress: Record<Chain, Address> = {
[Chain.Wemix]: "0x6471fAd467ac2854b403e7FE3e95FBbB3287a7ee",
[Chain.Blast]: "0x43A86823EBBe2ECF9A384aDfD989E26A30626458",
[Chain.XLayer]: "0x6A816cEE105a9409D8df0A83d8eeaeD9EB4309fE",
[Chain.Taiko]: "0xedC061306A79257f15108200C5B82ACc874C239d"
[Chain.Taiko]: "0xedC061306A79257f15108200C5B82ACc874C239d",
[Chain.CronosZkevm]: "0x986138f6ed1350a85De6B18280f7d139F74B7282",
}
1 change: 1 addition & 0 deletions src/adapters/xy-finance/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ const adapter: BridgeAdapter = {
blast: constructParams(Chain.Blast),
'x layer': constructParams(Chain.XLayer),
taiko: constructParams(Chain.Taiko),
'cronos zkevm': constructParams(Chain.CronosZkevm),
};

export default adapter;
2 changes: 2 additions & 0 deletions src/data/bridgeNetworkData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -977,12 +977,14 @@ export default [
"X Layer",
// "Numbers",
"Taiko",
"Cronos zkEVM"
],
chainMapping: {
"zksync era": "era",
"polygon zkevm": "polygon_zkevm",
avalanche: "avax",
"x layer": "xlayer",
"cronos zkevm": "cronos_zkevm",
},
},
// {
Expand Down

0 comments on commit cbd7667

Please sign in to comment.