Skip to content

Commit 08abcad

Browse files
committed
update config
1 parent c2a2bd3 commit 08abcad

File tree

6 files changed

+17
-5
lines changed

6 files changed

+17
-5
lines changed

src/swapService/config/bsc.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const bscRoutingConfig: ChainRoutingConfig = [
2727
"magpie",
2828
"enso",
2929
"pendle",
30+
"okx-dex",
3031
],
3132
},
3233
},

src/swapService/config/default.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const defaultRoutingConfig: ChainRoutingConfig = [
2626
"oku",
2727
"magpie",
2828
"enso",
29+
"okx-dex",
2930
],
3031
},
3132
},

src/swapService/config/mainnet.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const mainnetRoutingConfig: ChainRoutingConfig = [
6969
"li-fi",
7070
"open-ocean",
7171
"magpie",
72-
"okx",
72+
"okx-dex",
7373
],
7474
},
7575
},
@@ -91,6 +91,7 @@ const mainnetRoutingConfig: ChainRoutingConfig = [
9191
"magpie",
9292
"enso",
9393
"pendle",
94+
"okx-dex",
9495
],
9596
},
9697
},

src/swapService/config/sonic.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ const sonicConfig: ChainRoutingConfig = [
3131
"open-ocean",
3232
"uniswap",
3333
"0x",
34-
// "magpie",
34+
"magpie",
3535
"pendle",
3636
"enso",
37+
"okx-dex",
3738
],
3839
},
3940
},
@@ -55,9 +56,10 @@ const sonicConfig: ChainRoutingConfig = [
5556
"open-ocean",
5657
"uniswap",
5758
"0x",
58-
// "magpie",
59+
"magpie",
5960
"pendle",
6061
"enso",
62+
"okx-dex",
6163
],
6264
},
6365
},

src/swapService/config/unichain.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,14 @@ const unichainRoutingConfig: ChainRoutingConfig = [
2727
strategy: StrategyBalmySDK.name(),
2828
config: {
2929
sourcesFilter: {
30-
includeSources: ["kyberswap", "li-fi", "open-ocean", "uniswap", "enso"],
30+
includeSources: [
31+
"kyberswap",
32+
"li-fi",
33+
"open-ocean",
34+
"uniswap",
35+
"enso",
36+
"okx-dex",
37+
],
3138
},
3239
},
3340
match: {},

src/swapService/strategies/balmySDK/sources/okxDexQuoteSource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ async function fetch({
229229

230230
const url = `https://web3.okx.com${path}`
231231
const response = await fetchService.fetch(url, { timeout, headers })
232-
console.log("response: ", response.status)
232+
233233
if (!response.ok) {
234234
failed(
235235
OKX_DEX_METADATA,

0 commit comments

Comments
 (0)