Skip to content

Commit

Permalink
Merge pull request #217 from XY-Finance/feature/xy_finance_taiko
Browse files Browse the repository at this point in the history
XY Finance: add taiko config
  • Loading branch information
vrtnd authored Jun 18, 2024
2 parents d20f1b6 + 7421579 commit ef0eba8
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
23 changes: 20 additions & 3 deletions src/adapters/xy-finance/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export enum Chain {
Numbers = 'numbers',
Wemix = 'wemix',
Blast = 'blast',
XLayer = 'xlayer'
XLayer = 'xlayer',
Taiko = 'taiko',
}

export enum VAULTS_TOKEN {
Expand Down Expand Up @@ -343,6 +344,20 @@ export const YBridgeVaultsTokenContractAddress: Record<Exclude<Chain, Chain.Numb
contractAddress: '0xFa77c2DecCB21ACb9Bf196408Bf6aD5973D07762',
tokenAddress: '0x5A77f1443D16ee5761d310e38b62f77f726bC71c'
},
},
[Chain.Taiko]: {
[VAULTS_TOKEN.USDT]: {
contractAddress: '',
tokenAddress: ''
},
[VAULTS_TOKEN.USDC]: {
contractAddress: '0x1e4992E1Be86c9d8ed7dcBFcF3665FE568dE98Ab',
tokenAddress: '0x07d83526730c7438048D55A4fc0b850e2aaB6f0b'
},
[VAULTS_TOKEN.ETH]: {
contractAddress: '0xFa77c2DecCB21ACb9Bf196408Bf6aD5973D07762',
tokenAddress: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE'
},
}
}

Expand All @@ -368,7 +383,8 @@ export const YBridgeContractAddress: Record<Exclude<Chain, Chain.Numbers>, Contr
[Chain.ThunderCore]: "0xF103b5B479d2A629F422C42bb35E7eEceE1ad55E",
[Chain.Wemix]: "0x73Ce60416035B8D7019f6399778c14ccf5C9c7A1",
[Chain.Blast]: "0x73Ce60416035B8D7019f6399778c14ccf5C9c7A1",
[Chain.XLayer]: "0x73Ce60416035B8D7019f6399778c14ccf5C9c7A1"
[Chain.XLayer]: "0x73Ce60416035B8D7019f6399778c14ccf5C9c7A1",
[Chain.Taiko]: "0x73Ce60416035B8D7019f6399778c14ccf5C9c7A1"
}

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

export default adapter;
1 change: 1 addition & 0 deletions src/data/bridgeNetworkData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,7 @@ export default [
"Blast",
"X Layer",
// "Numbers",
"Taiko"
],
chainMapping: {
"zksync era": "era",
Expand Down

0 comments on commit ef0eba8

Please sign in to comment.