Skip to content

Commit 09f1d77

Browse files
committed
update config
1 parent 1af2832 commit 09f1d77

File tree

7 files changed

+25
-1
lines changed

7 files changed

+25
-1
lines changed

src/common/utils/viemClients.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ export const RPC_URLS: Record<number, string> = {
164164
[1923]: process.env.RPC_URL_130 || "", //swell
165165
[tac.id]: process.env.RPC_URL_239 || "",
166166
[plasma.id]: process.env.RPC_URL_9745 || "",
167+
// [143]: process.env.RPC_URL_143 || "", // monad
167168
} as const
168169

169170
export const createHttp = (chainId: number) =>

src/swapService/config/mainnet.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,15 @@ const mainnetRoutingConfig: ChainRoutingConfig = [
103103
},
104104
{
105105
strategy: StrategyMidas.name(),
106-
match: {},
106+
match: {
107+
excludeTrades: [
108+
{
109+
// TODO detect PT pairs dynamically
110+
tokenIn: "0x8CfEd6A728017A8641a213Bd9E2Ea6183dE275E8", // PT-mAPOLLO-20NOV2025
111+
tokenOut: "0x7CF9DEC92ca9FD46f8d86e7798B72624Bc116C05", // mAPOLLO
112+
},
113+
],
114+
},
107115
},
108116
{
109117
strategy: StrategyRedirectDepositWrapper.name(),

src/swapService/interface.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ export interface StrategyMatchConfig {
7979
tokenIn: Address
8080
tokenOut: Address
8181
}[]
82+
excludeTrades?: {
83+
tokenIn: Address
84+
tokenOut: Address
85+
}[]
8286
}
8387

8488
export interface RoutingItem {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const ENSO_METADATA: QuoteSourceMetadata<EnsoSupport> = {
3131
80094,
3232
130,
3333
9745,
34+
143, // monad
3435
],
3536
swapAndTransfer: false,
3637
buyOrders: false,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const SUPPORTED_CHAINS: Record<ChainId, string> = {
4545
[130]: "unichain",
4646
[59144]: "linea",
4747
[9745]: "plasma",
48+
[143]: "monad",
4849
}
4950

5051
const KYBERSWAP_METADATA: QuoteSourceMetadata<KyberswapSupport> = {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const SUPPORTED_CHAINS: Record<ChainId, string> = {
3737
80094: "berachain",
3838
130: "unichain",
3939
9745: "plasma",
40+
143: "monad",
4041
}
4142

4243
const MAGPIE_METADATA: QuoteSourceMetadata<MagpieSupport> = {

src/swapService/utils.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,14 @@ export function matchParams(
115115
)
116116
})
117117
}
118+
if (match.excludeTrades) {
119+
return !match.excludeTrades.some((trade) => {
120+
return (
121+
isAddressEqual(trade.tokenIn, swapParams.tokenIn.address) &&
122+
isAddressEqual(trade.tokenOut, swapParams.tokenOut.address)
123+
)
124+
})
125+
}
118126

119127
return true
120128
}

0 commit comments

Comments
 (0)